diff --git a/1318.d46bbea74ffeb9638375.js b/1318.d62e20db5d6bfa7ed59a.js similarity index 98% rename from 1318.d46bbea74ffeb9638375.js rename to 1318.d62e20db5d6bfa7ed59a.js index 966d49661..542a42420 100644 --- a/1318.d46bbea74ffeb9638375.js +++ b/1318.d62e20db5d6bfa7ed59a.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1318],{71318:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorPasteEmojiToolModule:()=>x});var n=o(12057),i=o(24751),s=o(34016),r=o(47029),c=o(42600),a=o(43232),u=o(37195),l=o(74788),p=o(15997),d=o(73460),m=o(42328),h=o(23618),f=o(8820),g=o(98778),Z=o(16331),_=o(18289),b=o(55788);function T(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",6),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).insertSmile(e)})),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("innerHTML",t,l.oJD)}}function v(t,e){if(1&t&&(l.TgZ(0,"div",4),l.YNc(1,T,1,1,"button",5),l.qZA()),2&t){const t=e.$implicit,o=l.oxw();l.Q6J("tuiActiveZoneParent",t),l.xp6(1),l.Q6J("ngForOf",o.smiles)}}let A=(()=>{class t{constructor(t){this.editor=t,this.smiles=["🦁","⏰","☕","✅","❌","❗","➕","👀","👆","👌","😊","🚀"]}insertSmile(t){this.editor.getOriginTiptapEditor().chain().focus().insertContent(`

${t}

`).insertContent(" ").run()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(u.$3))},t.ɵcmp=l.Xpm({type:t,selectors:[["smiles-tool"]],decls:5,vars:3,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","icon","automation-id","smiles-tool__button","icon","tuiIconStarLarge","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","pseudoActive"],["smileDropdown",""],[1,"smiles",3,"tuiActiveZoneParent"],["type","button","class","smile",3,"innerHTML","click",4,"ngFor","ngForOf"],["type","button",1,"smile",3,"innerHTML","click"]],template:function(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",0,1),l._UZ(2,"button",2),l.YNc(3,v,2,2,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(1),e=l.MAs(4);l.Q6J("content",e),l.xp6(2),l.Q6J("focusable",t.open)("pseudoActive",t.open)}},directives:[g.o,Z.Ek,_.v,b.e,n.sg],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.smiles[_ngcontent-%COMP%]{max-width:18rem;display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center}.smile[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;flex:1 0 21%;cursor:pointer;border-radius:var(--tui-radius-s);font:var(--tui-font-heading-4);padding:1rem}.smile[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}"],changeDetection:0}),t})();var w=o(77825);let y=(()=>{class t{constructor(){this.builtInTools=[u._2.Undo],this.control=new i.NI("")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-editor-paste-emoji-tool-example-1"]],features:[l._Bn([{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:t})=>t)),o.e(7133).then(o.bind(o,27133)).then((({EmojiExtension:t})=>t))]}])],decls:7,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"]],template:function(t,e){1&t&&(l.TgZ(0,"tui-editor",0),l._uU(1," Smiles are custom tool. Try it. "),l.ynx(2,1),l._UZ(3,"smiles-tool",2),l.TgZ(4,"span",3),l._UZ(5,"tui-svg",4),l._uU(6," click it "),l.qZA(),l.BQk(),l.qZA()),2&t&&l.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[f.a,i.JJ,i.oH,A,w.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),t})(),U=(()=>{class t{constructor(){this.example1={HTML:o.e(6416).then(o.t.bind(o,6416,17)),TypeScript:o.e(1091).then(o.t.bind(o,1091,17)),LESS:o.e(2785).then(o.t.bind(o,52785,17)),"smiles-tool/emoji.extension.ts":o.e(5557).then(o.t.bind(o,95557,17)),"smiles-tool/smiles-tool.component.ts":o.e(8760).then(o.t.bind(o,48760,17)),"smiles-tool/smiles-tool.template.html":o.e(5625).then(o.t.bind(o,65625,17)),"smiles-tool/smiles-tool.styles.less":o.e(1720).then(o.t.bind(o,21720,17)),"smiles-tool/smiles-tool.module.ts":o.e(2809).then(o.t.bind(o,62809,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=l.Xpm({type:t,selectors:[["editor-paste-emoji-tool"]],features:[l._Bn([{provide:u.Wf,useValue:u.PD}])],decls:31,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-tool","heading","Custom emoji tool",3,"content"],[1,"tui-list","tui-space_bottom-6"],[1,"tui-list__item"],["href","https://tiptap.dev/api/introduction","rel","noreferrer","target","_blank","tuiLink",""],["tuiText",""]],template:function(t,e){1&t&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._uU(10," You can create your own tool: "),l.TgZ(11,"ul",4),l.TgZ(12,"li",5),l._uU(13," Create component with tool button, which can get access to "),l.TgZ(14,"a",6),l._uU(15," original TipTap editor API "),l.qZA(),l._uU(16," via "),l.TgZ(17,"code"),l._uU(18,"TuiTiptapEditorService"),l.qZA(),l._uU(19," from "),l.TgZ(20,"code"),l._uU(21,"@tinkoff/tui-editor"),l.qZA(),l._uU(22," . "),l.qZA(),l.TgZ(23,"li",5),l._uU(24," Pass the component as content projection (with "),l.TgZ(25,"code"),l._uU(26,'ngProjectAs="tools"'),l.qZA(),l._uU(27," ) to "),l._UZ(28,"code",7),l._uU(29," . "),l.qZA(),l.qZA(),l._UZ(30,"tui-editor-paste-emoji-tool-example-1"),l.qZA(),l.qZA()),2&t&&(l.xp6(9),l.Q6J("content",e.example1))},directives:[p.q,d.V,s.yS,m.f,h.v,y],encapsulation:2,changeDetection:0}),t})(),k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[n.ez,a.fNO,a.jhF,c.Ah6,a.dpK]]}),t})(),x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[n.ez,c.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,r.fV,i.u5,i.UX,u.T_,k,u.GK,s.Bz.forChild((0,r.Ve)(U)),r.Zp]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1318],{71318:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorPasteEmojiToolModule:()=>x});var n=o(12057),i=o(24751),s=o(34016),r=o(47029),c=o(42600),a=o(43232),u=o(37195),l=o(74788),p=o(15997),d=o(73460),m=o(42328),h=o(23618),f=o(8820),g=o(98778),Z=o(16331),_=o(18289),b=o(55788);function T(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",6),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).insertSmile(e)})),l.qZA()}if(2&t){const t=e.$implicit;l.Q6J("innerHTML",t,l.oJD)}}function v(t,e){if(1&t&&(l.TgZ(0,"div",4),l.YNc(1,T,1,1,"button",5),l.qZA()),2&t){const t=e.$implicit,o=l.oxw();l.Q6J("tuiActiveZoneParent",t),l.xp6(1),l.Q6J("ngForOf",o.smiles)}}let A=(()=>{class t{constructor(t){this.editor=t,this.smiles=["🦁","⏰","☕","✅","❌","❗","➕","👀","👆","👌","😊","🚀"]}insertSmile(t){this.editor.getOriginTiptapEditor().chain().focus().insertContent(`

${t}

`).insertContent(" ").run()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(u.$3))},t.ɵcmp=l.Xpm({type:t,selectors:[["smiles-tool"]],decls:5,vars:3,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","icon","automation-id","smiles-tool__button","icon","tuiIconStarLarge","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","pseudoActive"],["smileDropdown",""],[1,"smiles",3,"tuiActiveZoneParent"],["type","button","class","smile",3,"innerHTML","click",4,"ngFor","ngForOf"],["type","button",1,"smile",3,"innerHTML","click"]],template:function(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",0,1),l._UZ(2,"button",2),l.YNc(3,v,2,2,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(1),e=l.MAs(4);l.Q6J("content",e),l.xp6(2),l.Q6J("focusable",t.open)("pseudoActive",t.open)}},directives:[g.o,Z.Ek,_.v,b.e,n.sg],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.smiles[_ngcontent-%COMP%]{max-width:18rem;display:flex;flex-wrap:wrap;justify-content:space-around;align-items:center}.smile[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;flex:1 0 21%;cursor:pointer;border-radius:var(--tui-radius-s);font:var(--tui-font-heading-4);padding:1rem}.smile[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}"],changeDetection:0}),t})();var w=o(77825);let y=(()=>{class t{constructor(){this.builtInTools=[u._2.Undo],this.control=new i.NI("")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-editor-paste-emoji-tool-example-1"]],features:[l._Bn([{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:t})=>t)),o.e(7133).then(o.bind(o,27133)).then((({EmojiExtension:t})=>t))]}])],decls:7,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"]],template:function(t,e){1&t&&(l.TgZ(0,"tui-editor",0),l._uU(1," Smiles are custom tool. Try it. "),l.ynx(2,1),l._UZ(3,"smiles-tool",2),l.TgZ(4,"span",3),l._UZ(5,"tui-svg",4),l._uU(6," click it "),l.qZA(),l.BQk(),l.qZA()),2&t&&l.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[f.a,i.JJ,i.oH,A,w.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),t})(),U=(()=>{class t{constructor(){this.example1={HTML:o.e(6416).then(o.t.bind(o,6416,17)),TypeScript:o.e(1091).then(o.t.bind(o,1091,17)),LESS:o.e(2785).then(o.t.bind(o,52785,17)),"smiles-tool/emoji.extension.ts":o.e(5557).then(o.t.bind(o,95557,17)),"smiles-tool/smiles-tool.component.ts":o.e(8760).then(o.t.bind(o,48760,17)),"smiles-tool/smiles-tool.template.html":o.e(5625).then(o.t.bind(o,65625,17)),"smiles-tool/smiles-tool.styles.less":o.e(1720).then(o.t.bind(o,21720,17)),"smiles-tool/smiles-tool.module.ts":o.e(2809).then(o.t.bind(o,62809,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=l.Xpm({type:t,selectors:[["editor-paste-emoji-tool"]],features:[l._Bn([{provide:u.Wf,useValue:u.PD}])],decls:31,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-tool","heading","Custom emoji tool",3,"content"],[1,"tui-list","tui-space_bottom-6"],[1,"tui-list__item"],["href","https://tiptap.dev/api/introduction","rel","noreferrer","target","_blank","tuiLink",""],["tuiText",""]],template:function(t,e){1&t&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._uU(10," You can create your own tool: "),l.TgZ(11,"ul",4),l.TgZ(12,"li",5),l._uU(13," Create component with tool button, which can get access to "),l.TgZ(14,"a",6),l._uU(15," original TipTap editor API "),l.qZA(),l._uU(16," via "),l.TgZ(17,"code"),l._uU(18,"TuiTiptapEditorService"),l.qZA(),l._uU(19," from "),l.TgZ(20,"code"),l._uU(21,"@tinkoff/tui-editor"),l.qZA(),l._uU(22," . "),l.qZA(),l.TgZ(23,"li",5),l._uU(24," Pass the component as content projection (with "),l.TgZ(25,"code"),l._uU(26,'ngProjectAs="tools"'),l.qZA(),l._uU(27," ) to "),l._UZ(28,"code",7),l._uU(29," . "),l.qZA(),l.qZA(),l._UZ(30,"tui-editor-paste-emoji-tool-example-1"),l.qZA(),l.qZA()),2&t&&(l.xp6(9),l.Q6J("content",e.example1))},directives:[p.q,d.V,s.yS,m.f,h.v,y],encapsulation:2,changeDetection:0}),t})(),k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[n.ez,a.fNO,a.jhF,c.Ah6,a.dpK]]}),t})(),x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[n.ez,c.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,r.fV,i.u5,i.UX,u.T_,k,u.GK,s.Bz.forChild((0,r.Ve)(U)),r.Zp]]}),t})()}}]); \ No newline at end of file diff --git a/1320.53a606393e6dcbe6c955.js b/1320.087934738fb79ba17c67.js similarity index 98% rename from 1320.53a606393e6dcbe6c955.js rename to 1320.087934738fb79ba17c67.js index 2f01e1155..91bdc4fd1 100644 --- a/1320.53a606393e6dcbe6c955.js +++ b/1320.087934738fb79ba17c67.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1320],{51320:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorEmbedYoutubeModule:()=>k});var n=o(12057),i=o(24751),u=o(34016),r=o(47029),s=o(42600),l=o(43232),c=o(37195),d=o(74788),a=o(15997),p=o(73460),h=o(42328),b=o(97582),g=o(91211),m=o(8820),f=o(98778),w=o(16331),y=o(18289),v=o(55788),Z=o(36866);const x=["dropdown"];function _(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"label",5),d.TgZ(2,"div",6),d._uU(3,"Youtube URL"),d.qZA(),d.TgZ(4,"div",7),d.TgZ(5,"tui-input-inline",8),d.NdJ("ngModelChange",(function(e){return d.CHM(t),d.oxw().url=e}))("keydown.enter",(function(){d.CHM(t);const e=d.oxw();return e.insertYoutubeVideo(e.url)})),d._uU(6),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit,o=d.oxw();d.Q6J("tuiActiveZoneParent",t),d.xp6(5),d.ekj("t-input_filled",o.url),d.Q6J("ngModel",o.url),d.xp6(1),d.hij(" ",o.placeholder," ")}}let T=(()=>{class t{constructor(t){this.editor=t,this.youtubeLogo='',this.placeholder="https://www.youtube.com/embed/j2_NnV7nU6s",this.url=""}insertYoutubeVideo(t){var e;if(t){const o=this.editor.state.selection.anchor;this.editor.enter(),this.editor.setTextSelection(o),this.editor.setYoutubeVideo({src:t,width:"100%"}),this.url="",null===(e=this.dropdown)||void 0===e||e.close()}}}return t.ɵfac=function(e){return new(e||t)(d.Y36(c.$3))},t.ɵcmp=d.Xpm({type:t,selectors:[["youtube-tool"]],viewQuery:function(t,e){if(1&t&&d.Gf(x,5),2&t){let t;d.iGM(t=d.CRH())&&(e.dropdown=t.first)}},decls:5,vars:4,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","flat","automation-id","youtube-tool__button","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","icon","pseudoActive"],["youtubeDropdown",""],[1,"youtube-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(t,e){if(1&t&&(d.TgZ(0,"tui-hosted-dropdown",0,1),d._UZ(2,"button",2),d.YNc(3,_,7,5,"ng-template",null,3,d.W1O),d.qZA()),2&t){const t=d.MAs(1),o=d.MAs(4);d.Q6J("content",o),d.xp6(2),d.Q6J("focusable",t.open)("icon",e.youtubeLogo)("pseudoActive",t.open)}},directives:[f.o,w.Ek,y.v,v.e,Z.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.youtube-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})();var A=o(77825);class C{constructor(t){this.sanitizer=t,this.builtInTools=[c._2.Undo],this.control=new i.NI('\n

Editor now supports YouTube embeds!

\n
\n \n
\n

Try adding your own video to this editor!

\n ',i.kI.required)}safe(t){return this.sanitizer.bypassSecurityTrustHtml(null!=t?t:"")}}C.ɵfac=function(t){return new(t||C)(d.Y36(g.H7))},C.ɵcmp=d.Xpm({type:C,selectors:[["tui-editor-embed-youtube-example-1"]],features:[d._Bn([{provide:c.Wf,useValue:[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:t})=>t)),o.e(3851).then(o.bind(o,63851)).then((({Youtube:t})=>t))]}])],decls:13,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"],[3,"innerHTML"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-editor",0),d.ynx(1,1),d._UZ(2,"youtube-tool",2),d.TgZ(3,"span",3),d._UZ(4,"tui-svg",4),d._uU(5," click it "),d.qZA(),d.BQk(),d.qZA(),d.TgZ(6,"h4"),d._uU(7,"HTML:"),d.qZA(),d._UZ(8,"div",5),d.TgZ(9,"h4"),d._uU(10,"Text:"),d.qZA(),d.TgZ(11,"p"),d._uU(12),d.qZA()),2&t&&(d.Q6J("formControl",e.control)("tools",e.builtInTools),d.xp6(8),d.Q6J("innerHTML",e.safe(e.control.value),d.oJD),d.xp6(4),d.Oqu(e.control.value))},directives:[m.a,i.JJ,i.oH,T,A.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),(0,b.gn)([s.UMq],C.prototype,"safe",null);let M=(()=>{class t{constructor(){this.example1={HTML:o.e(250).then(o.t.bind(o,50250,17)),TypeScript:o.e(5501).then(o.t.bind(o,5501,17)),LESS:o.e(6847).then(o.t.bind(o,26847,17)),"youtube-tool/youtube-tool.component.ts":o.e(6014).then(o.t.bind(o,76014,17)),"youtube-tool/youtube-tool.template.html":o.e(8229).then(o.t.bind(o,28229,17)),"youtube-tool/youtube-tool.styles.less":o.e(7398).then(o.t.bind(o,87398,17)),"youtube-tool/youtube-tool.module.ts":o.e(9241).then(o.t.bind(o,59241,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["editor-embed-youtube"]],features:[d._Bn([{provide:c.Wf,useValue:c.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","youtube","heading","Youtube extension",3,"content"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-embed-youtube-example-1"),d.qZA(),d.qZA()),2&t&&(d.xp6(9),d.Q6J("content",e.example1))},directives:[a.q,p.V,u.yS,h.f,C],encapsulation:2,changeDetection:0}),t})();var U=o(6667);let q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,l.fNO,l.jhF,s.Ah6,l.dpK,U.z$l,i.u5]]}),t})(),k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,s.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,r.fV,i.u5,i.UX,c.T_,c.GK,q,u.Bz.forChild((0,r.Ve)(M))]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1320],{51320:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorEmbedYoutubeModule:()=>k});var n=o(12057),i=o(24751),u=o(34016),r=o(47029),s=o(42600),l=o(43232),c=o(37195),d=o(74788),a=o(15997),p=o(73460),h=o(42328),b=o(97582),g=o(91211),m=o(8820),f=o(98778),w=o(16331),y=o(18289),v=o(55788),Z=o(36866);const x=["dropdown"];function _(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"label",5),d.TgZ(2,"div",6),d._uU(3,"Youtube URL"),d.qZA(),d.TgZ(4,"div",7),d.TgZ(5,"tui-input-inline",8),d.NdJ("ngModelChange",(function(e){return d.CHM(t),d.oxw().url=e}))("keydown.enter",(function(){d.CHM(t);const e=d.oxw();return e.insertYoutubeVideo(e.url)})),d._uU(6),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit,o=d.oxw();d.Q6J("tuiActiveZoneParent",t),d.xp6(5),d.ekj("t-input_filled",o.url),d.Q6J("ngModel",o.url),d.xp6(1),d.hij(" ",o.placeholder," ")}}let T=(()=>{class t{constructor(t){this.editor=t,this.youtubeLogo='',this.placeholder="https://www.youtube.com/embed/j2_NnV7nU6s",this.url=""}insertYoutubeVideo(t){var e;if(t){const o=this.editor.state.selection.anchor;this.editor.enter(),this.editor.setTextSelection(o),this.editor.setYoutubeVideo({src:t,width:"100%"}),this.url="",null===(e=this.dropdown)||void 0===e||e.close()}}}return t.ɵfac=function(e){return new(e||t)(d.Y36(c.$3))},t.ɵcmp=d.Xpm({type:t,selectors:[["youtube-tool"]],viewQuery:function(t,e){if(1&t&&d.Gf(x,5),2&t){let t;d.iGM(t=d.CRH())&&(e.dropdown=t.first)}},decls:5,vars:4,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","flat","automation-id","youtube-tool__button","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","icon","pseudoActive"],["youtubeDropdown",""],[1,"youtube-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(t,e){if(1&t&&(d.TgZ(0,"tui-hosted-dropdown",0,1),d._UZ(2,"button",2),d.YNc(3,_,7,5,"ng-template",null,3,d.W1O),d.qZA()),2&t){const t=d.MAs(1),o=d.MAs(4);d.Q6J("content",o),d.xp6(2),d.Q6J("focusable",t.open)("icon",e.youtubeLogo)("pseudoActive",t.open)}},directives:[f.o,w.Ek,y.v,v.e,Z.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.youtube-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})();var A=o(77825);class C{constructor(t){this.sanitizer=t,this.builtInTools=[c._2.Undo],this.control=new i.NI('\n

Editor now supports YouTube embeds!

\n
\n \n
\n

Try adding your own video to this editor!

\n ',i.kI.required)}safe(t){return this.sanitizer.bypassSecurityTrustHtml(null!=t?t:"")}}C.ɵfac=function(t){return new(t||C)(d.Y36(g.H7))},C.ɵcmp=d.Xpm({type:C,selectors:[["tui-editor-embed-youtube-example-1"]],features:[d._Bn([{provide:c.Wf,useValue:[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:t})=>t)),o.e(3851).then(o.bind(o,63851)).then((({Youtube:t})=>t))]}])],decls:13,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"],[3,"innerHTML"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-editor",0),d.ynx(1,1),d._UZ(2,"youtube-tool",2),d.TgZ(3,"span",3),d._UZ(4,"tui-svg",4),d._uU(5," click it "),d.qZA(),d.BQk(),d.qZA(),d.TgZ(6,"h4"),d._uU(7,"HTML:"),d.qZA(),d._UZ(8,"div",5),d.TgZ(9,"h4"),d._uU(10,"Text:"),d.qZA(),d.TgZ(11,"p"),d._uU(12),d.qZA()),2&t&&(d.Q6J("formControl",e.control)("tools",e.builtInTools),d.xp6(8),d.Q6J("innerHTML",e.safe(e.control.value),d.oJD),d.xp6(4),d.Oqu(e.control.value))},directives:[m.a,i.JJ,i.oH,T,A.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),(0,b.gn)([s.UMq],C.prototype,"safe",null);let M=(()=>{class t{constructor(){this.example1={HTML:o.e(250).then(o.t.bind(o,50250,17)),TypeScript:o.e(5501).then(o.t.bind(o,5501,17)),LESS:o.e(6847).then(o.t.bind(o,26847,17)),"youtube-tool/youtube-tool.component.ts":o.e(6014).then(o.t.bind(o,76014,17)),"youtube-tool/youtube-tool.template.html":o.e(8229).then(o.t.bind(o,28229,17)),"youtube-tool/youtube-tool.styles.less":o.e(7398).then(o.t.bind(o,87398,17)),"youtube-tool/youtube-tool.module.ts":o.e(9241).then(o.t.bind(o,59241,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["editor-embed-youtube"]],features:[d._Bn([{provide:c.Wf,useValue:c.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","youtube","heading","Youtube extension",3,"content"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-embed-youtube-example-1"),d.qZA(),d.qZA()),2&t&&(d.xp6(9),d.Q6J("content",e.example1))},directives:[a.q,p.V,u.yS,h.f,C],encapsulation:2,changeDetection:0}),t})();var U=o(6667);let q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,l.fNO,l.jhF,s.Ah6,l.dpK,U.z$l,i.u5]]}),t})(),k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,s.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,r.fV,i.u5,i.UX,c.T_,c.GK,q,u.Bz.forChild((0,r.Ve)(M))]]}),t})()}}]); \ No newline at end of file diff --git a/1975.98fac8b6ee2dffb1bedb.js b/1975.190f33887501dd87155c.js similarity index 97% rename from 1975.98fac8b6ee2dffb1bedb.js rename to 1975.190f33887501dd87155c.js index d661afd55..be7e8472d 100644 --- a/1975.98fac8b6ee2dffb1bedb.js +++ b/1975.190f33887501dd87155c.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1975],{81975:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorResizableImagesToolModule:()=>v});var o=i(12057),s=i(24751),n=i(34016),r=i(47029),a=i(42600),c=i(43232),u=i(37195),l=i(74788),p=i(15997),d=i(73460),h=i(42328),m=i(58497),g=i(43190),f=i(46782),b=i(8820),T=i(76690);let _=(()=>{class e{constructor(e,t,i,o){this.imageLoader=e,this.http=t,this.isStackblitz=o,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[u._2.Undo,u._2.Img],this.base64Image$=this.http.get(`${this.relativePath}assets/images/lumberjack.png`,{responseType:"blob"}).pipe((0,g.w)((e=>this.imageLoader(e)))),this.control=new s.NI(""),this.base64Image$.pipe((0,f.R)(i)).subscribe((e=>{this.control.patchValue(`\n \n

Try to drag right border of image!

\n

To change min/max size of image use token TUI_IMAGE_EDITOR_OPTIONS.\n `)}))}}return e.ɵfac=function(t){return new(t||e)(l.Y36(u.p7),l.Y36(m.eN),l.Y36(a.a31,2),l.Y36(a.SgE))},e.ɵcmp=l.Xpm({type:e,selectors:[["tui-editor-resizable-editor-example-1"]],features:[l._Bn([a.a31,{provide:u.Wf,deps:[l.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({tuiCreateImageEditorExtension:t})=>t({injector:e})))]}])],decls:4,vars:3,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(l._UZ(0,"tui-editor",0),l.TgZ(1,"h4"),l._uU(2,"HTML:"),l.qZA(),l._UZ(3,"tui-editor-socket",1)),2&e&&(l.Q6J("formControl",t.control)("tools",t.builtInTools),l.xp6(3),l.Q6J("content",t.control.value||""))},directives:[b.a,s.JJ,s.oH,T.D],encapsulation:2,changeDetection:0}),e})(),Z=(()=>{class e{constructor(){this.example1={TypeScript:i.e(8499).then(i.t.bind(i,88499,17)),HTML:i.e(8932).then(i.t.bind(i,28932,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=l.Xpm({type:e,selectors:[["editor-resizable-images"]],features:[l._Bn([{provide:u.Wf,useValue:u.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","resizable-image","heading","Resizable image",3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._UZ(10,"tui-editor-resizable-editor-example-1"),l.qZA(),l.qZA()),2&e&&(l.xp6(9),l.Q6J("content",t.example1))},directives:[p.q,d.V,n.yS,h.f,_],encapsulation:2,changeDetection:0}),e})(),v=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.oAB({type:e}),e.ɵinj=l.cJS({imports:[[o.ez,a.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,r.fV,s.u5,s.UX,u.T_,u.GK,n.Bz.forChild((0,r.Ve)(Z))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[1975],{81975:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorResizableImagesToolModule:()=>v});var o=i(12057),s=i(24751),n=i(34016),r=i(47029),a=i(42600),c=i(43232),u=i(37195),l=i(74788),p=i(15997),d=i(73460),h=i(42328),m=i(58497),g=i(43190),f=i(46782),b=i(8820),T=i(76690);let _=(()=>{class e{constructor(e,t,i,o){this.imageLoader=e,this.http=t,this.isStackblitz=o,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[u._2.Undo,u._2.Img],this.base64Image$=this.http.get(`${this.relativePath}assets/images/lumberjack.png`,{responseType:"blob"}).pipe((0,g.w)((e=>this.imageLoader(e)))),this.control=new s.NI(""),this.base64Image$.pipe((0,f.R)(i)).subscribe((e=>{this.control.patchValue(`\n \n

Try to drag right border of image!

\n

To change min/max size of image use token TUI_IMAGE_EDITOR_OPTIONS.\n `)}))}}return e.ɵfac=function(t){return new(t||e)(l.Y36(u.p7),l.Y36(m.eN),l.Y36(a.a31,2),l.Y36(a.SgE))},e.ɵcmp=l.Xpm({type:e,selectors:[["tui-editor-resizable-editor-example-1"]],features:[l._Bn([a.a31,{provide:u.Wf,deps:[l.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({tuiCreateImageEditorExtension:t})=>t({injector:e})))]}])],decls:4,vars:3,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(l._UZ(0,"tui-editor",0),l.TgZ(1,"h4"),l._uU(2,"HTML:"),l.qZA(),l._UZ(3,"tui-editor-socket",1)),2&e&&(l.Q6J("formControl",t.control)("tools",t.builtInTools),l.xp6(3),l.Q6J("content",t.control.value||""))},directives:[b.a,s.JJ,s.oH,T.D],encapsulation:2,changeDetection:0}),e})(),Z=(()=>{class e{constructor(){this.example1={TypeScript:i.e(8499).then(i.t.bind(i,88499,17)),HTML:i.e(8932).then(i.t.bind(i,28932,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=l.Xpm({type:e,selectors:[["editor-resizable-images"]],features:[l._Bn([{provide:u.Wf,useValue:u.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","resizable-image","heading","Resizable image",3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._UZ(10,"tui-editor-resizable-editor-example-1"),l.qZA(),l.qZA()),2&e&&(l.xp6(9),l.Q6J("content",t.example1))},directives:[p.q,d.V,n.yS,h.f,_],encapsulation:2,changeDetection:0}),e})(),v=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.oAB({type:e}),e.ɵinj=l.cJS({imports:[[o.ez,a.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,r.fV,s.u5,s.UX,u.T_,u.GK,n.Bz.forChild((0,r.Ve)(Z))]]}),e})()}}]); \ No newline at end of file diff --git a/2291.4af2bcbadc519f3bec12.js b/2291.4c6604f104cfe2b206d5.js similarity index 99% rename from 2291.4af2bcbadc519f3bec12.js rename to 2291.4c6604f104cfe2b206d5.js index 6755395b4..9b6a8c8df 100644 --- a/2291.4af2bcbadc519f3bec12.js +++ b/2291.4c6604f104cfe2b206d5.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[2291],{2291:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiEditorEmbedIframeModule:()=>E});var o=n(12057),i=n(24751),r=n(34016),l=n(47029),s=n(42600),a=n(43232),u=n(37195),d=n(74788),c=n(15997),p=n(73460),m=n(42328),f=n(97582),h=n(91211),b=n(8820),g=n(98778),Z=n(16331),v=n(18289),w=n(55788),y=n(36866);const _=["dropdown"];function A(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"label",5),d.TgZ(2,"div",6),d._uU(3,"Embed URL"),d.qZA(),d.TgZ(4,"div",7),d.TgZ(5,"tui-input-inline",8),d.NdJ("ngModelChange",(function(t){return d.CHM(e),d.oxw().url=t}))("keydown.enter",(function(){d.CHM(e);const t=d.oxw();return t.embedSource(t.url)})),d._uU(6),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){const e=t.$implicit,n=d.oxw();d.Q6J("tuiActiveZoneParent",e),d.xp6(5),d.ekj("t-input_filled",n.url),d.Q6J("ngModel",n.url),d.xp6(1),d.hij(" ",n.placeholder," ")}}let T=(()=>{class e{constructor(e){this.editor=e,this.placeholder="https://my-embed.site.com/etc1235",this.url=""}embedSource(e){var t;e&&(this.editor.setIframe({src:e}),this.url="",null===(t=this.dropdown)||void 0===t||t.close())}}return e.ɵfac=function(t){return new(t||e)(d.Y36(u.$3))},e.ɵcmp=d.Xpm({type:e,selectors:[["embed-tool"]],viewQuery:function(e,t){if(1&e&&d.Gf(_,5),2&e){let e;d.iGM(e=d.CRH())&&(t.dropdown=e.first)}},decls:5,vars:3,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","icon","automation-id","embed-tool__button","icon","tuiIconCodeLarge","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","pseudoActive"],["youtubeDropdown",""],[1,"embed-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(e,t){if(1&e&&(d.TgZ(0,"tui-hosted-dropdown",0,1),d._UZ(2,"button",2),d.YNc(3,A,7,5,"ng-template",null,3,d.W1O),d.qZA()),2&e){const e=d.MAs(1),t=d.MAs(4);d.Q6J("content",t),d.xp6(2),d.Q6J("focusable",e.open)("pseudoActive",e.open)}},directives:[g.o,Z.Ek,v.v,w.e,y.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.embed-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),e})();var x=n(77825);class q{constructor(e,t){this.sanitizer=e,this.isE2E=t,this.builtInTools=[u._2.Undo],this.control=new i.NI(`\n

Here is an online IDE:

\n \n \n \n

Here is a media player:

\n \n \n

\n `,i.kI.required)}safe(e){return this.sanitizer.bypassSecurityTrustHtml(null!=e?e:"")}}q.ɵfac=function(e){return new(e||q)(d.Y36(h.H7),d.Y36(s.oDT))},q.ɵcmp=d.Xpm({type:q,selectors:[["tui-editor-embed-iframe-example-1"]],features:[d._Bn([{provide:u.Wf,deps:[d.gxx],useFactory:e=>[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(n.bind(n,33626)).then((({createIframeEditorExtension:t})=>t(e)))]}])],decls:13,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"],[3,"innerHTML"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-editor",0),d.ynx(1,1),d._UZ(2,"embed-tool",2),d.TgZ(3,"span",3),d._UZ(4,"tui-svg",4),d._uU(5," click it "),d.qZA(),d.BQk(),d.qZA(),d.TgZ(6,"h4"),d._uU(7,"HTML:"),d.qZA(),d._UZ(8,"div",5),d.TgZ(9,"h4"),d._uU(10,"Text:"),d.qZA(),d.TgZ(11,"p"),d._uU(12),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(8),d.Q6J("innerHTML",t.safe(t.control.value),d.oJD),d.xp6(4),d.Oqu(t.control.value))},directives:[b.a,i.JJ,i.oH,T,x.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),(0,f.gn)([s.UMq],q.prototype,"safe",null);let M=(()=>{class e{constructor(){this.example1={HTML:n.e(3270).then(n.t.bind(n,43270,17)),TypeScript:n.e(3878).then(n.t.bind(n,63878,17)),LESS:n.e(2889).then(n.t.bind(n,92889,17)),"embed-tool/embed-tool.component.ts":n.e(6949).then(n.t.bind(n,76949,17)),"embed-tool/embed-tool.template.html":n.e(8275).then(n.t.bind(n,58275,17)),"embed-tool/embed-tool.styles.less":n.e(6530).then(n.t.bind(n,26530,17)),"embed-tool/embed-tool.module.ts":n.e(7703).then(n.t.bind(n,7703,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-embed-iframe"]],features:[d._Bn([{provide:u.Wf,useValue:u.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","iframe","heading","Resizable iframe",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-embed-iframe-example-1"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1))},directives:[c.q,p.V,r.yS,m.f,q],encapsulation:2,changeDetection:0}),e})();var U=n(6667);let C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,a.fNO,a.jhF,s.Ah6,a.dpK,U.z$l,i.u5]]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,s.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,l.fV,i.u5,i.UX,u.T_,u.GK,C,r.Bz.forChild((0,l.Ve)(M))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[2291],{2291:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiEditorEmbedIframeModule:()=>E});var o=n(12057),i=n(24751),r=n(34016),l=n(47029),s=n(42600),a=n(43232),u=n(37195),d=n(74788),c=n(15997),p=n(73460),m=n(42328),f=n(97582),h=n(91211),b=n(8820),g=n(98778),Z=n(16331),v=n(18289),w=n(55788),y=n(36866);const _=["dropdown"];function A(e,t){if(1&e){const e=d.EpF();d.TgZ(0,"div",4),d.TgZ(1,"label",5),d.TgZ(2,"div",6),d._uU(3,"Embed URL"),d.qZA(),d.TgZ(4,"div",7),d.TgZ(5,"tui-input-inline",8),d.NdJ("ngModelChange",(function(t){return d.CHM(e),d.oxw().url=t}))("keydown.enter",(function(){d.CHM(e);const t=d.oxw();return t.embedSource(t.url)})),d._uU(6),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&e){const e=t.$implicit,n=d.oxw();d.Q6J("tuiActiveZoneParent",e),d.xp6(5),d.ekj("t-input_filled",n.url),d.Q6J("ngModel",n.url),d.xp6(1),d.hij(" ",n.placeholder," ")}}let T=(()=>{class e{constructor(e){this.editor=e,this.placeholder="https://my-embed.site.com/etc1235",this.url=""}embedSource(e){var t;e&&(this.editor.setIframe({src:e}),this.url="",null===(t=this.dropdown)||void 0===t||t.close())}}return e.ɵfac=function(t){return new(t||e)(d.Y36(u.$3))},e.ɵcmp=d.Xpm({type:e,selectors:[["embed-tool"]],viewQuery:function(e,t){if(1&e&&d.Gf(_,5),2&e){let e;d.iGM(e=d.CRH())&&(t.dropdown=e.first)}},decls:5,vars:3,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","icon","automation-id","embed-tool__button","icon","tuiIconCodeLarge","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","pseudoActive"],["youtubeDropdown",""],[1,"embed-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(e,t){if(1&e&&(d.TgZ(0,"tui-hosted-dropdown",0,1),d._UZ(2,"button",2),d.YNc(3,A,7,5,"ng-template",null,3,d.W1O),d.qZA()),2&e){const e=d.MAs(1),t=d.MAs(4);d.Q6J("content",t),d.xp6(2),d.Q6J("focusable",e.open)("pseudoActive",e.open)}},directives:[g.o,Z.Ek,v.v,w.e,y.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.embed-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),e})();var x=n(77825);class q{constructor(e,t){this.sanitizer=e,this.isE2E=t,this.builtInTools=[u._2.Undo],this.control=new i.NI(`\n

Here is an online IDE:

\n \n \n \n

Here is a media player:

\n \n \n

\n `,i.kI.required)}safe(e){return this.sanitizer.bypassSecurityTrustHtml(null!=e?e:"")}}q.ɵfac=function(e){return new(e||q)(d.Y36(h.H7),d.Y36(s.oDT))},q.ɵcmp=d.Xpm({type:q,selectors:[["tui-editor-embed-iframe-example-1"]],features:[d._Bn([{provide:u.Wf,deps:[d.gxx],useFactory:e=>[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(n.bind(n,33626)).then((({createIframeEditorExtension:t})=>t(e)))]}])],decls:13,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"],[3,"innerHTML"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-editor",0),d.ynx(1,1),d._UZ(2,"embed-tool",2),d.TgZ(3,"span",3),d._UZ(4,"tui-svg",4),d._uU(5," click it "),d.qZA(),d.BQk(),d.qZA(),d.TgZ(6,"h4"),d._uU(7,"HTML:"),d.qZA(),d._UZ(8,"div",5),d.TgZ(9,"h4"),d._uU(10,"Text:"),d.qZA(),d.TgZ(11,"p"),d._uU(12),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(8),d.Q6J("innerHTML",t.safe(t.control.value),d.oJD),d.xp6(4),d.Oqu(t.control.value))},directives:[b.a,i.JJ,i.oH,T,x.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),(0,f.gn)([s.UMq],q.prototype,"safe",null);let M=(()=>{class e{constructor(){this.example1={HTML:n.e(3270).then(n.t.bind(n,43270,17)),TypeScript:n.e(3878).then(n.t.bind(n,63878,17)),LESS:n.e(2889).then(n.t.bind(n,92889,17)),"embed-tool/embed-tool.component.ts":n.e(6949).then(n.t.bind(n,76949,17)),"embed-tool/embed-tool.template.html":n.e(8275).then(n.t.bind(n,58275,17)),"embed-tool/embed-tool.styles.less":n.e(6530).then(n.t.bind(n,26530,17)),"embed-tool/embed-tool.module.ts":n.e(7703).then(n.t.bind(n,7703,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-embed-iframe"]],features:[d._Bn([{provide:u.Wf,useValue:u.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","iframe","heading","Resizable iframe",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-embed-iframe-example-1"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1))},directives:[c.q,p.V,r.yS,m.f,q],encapsulation:2,changeDetection:0}),e})();var U=n(6667);let C=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,a.fNO,a.jhF,s.Ah6,a.dpK,U.z$l,i.u5]]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,s.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,l.fV,i.u5,i.UX,u.T_,u.GK,C,r.Bz.forChild((0,l.Ve)(M))]]}),e})()}}]); \ No newline at end of file diff --git a/2520.c707f476af2349f20893.js b/2520.76a3b82edb39860d812d.js similarity index 98% rename from 2520.c707f476af2349f20893.js rename to 2520.76a3b82edb39860d812d.js index 01f22e366..e86533334 100644 --- a/2520.c707f476af2349f20893.js +++ b/2520.76a3b82edb39860d812d.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[2520],{92520:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorEmbedHtml5Module:()=>g});var o=i(12057),n=i(24751),s=i(34016),r=i(47029),d=i(42600),a=i(43232),l=i(37195),u=i(74788),c=i(15997),p=i(73460),h=i(42328),m=i(97582),v=i(91211),f=i(88002),w=i(8820);class y{constructor(e,t){this.isE2E=e,this.sanitizer=t,this.builtInTools=[l._2.Undo,l._2.Link,l._2.Attach],this.control=new n.NI(`\n

Here is video:

\n\n \n\n

Here is audio:

\n \n\n

\n `,n.kI.required)}safe(e){return this.sanitizer.bypassSecurityTrustHtml(null!=e?e:"")}attach([e]){var t,i,o,n,s;const r=`${null!==(i=null===(t=e.attrs)||void 0===t?void 0:t.type)&&void 0!==i?i:""}`.split("/")[0];null===(n=null===(o=this.wysiwyg)||void 0===o?void 0:o.editor)||void 0===n||n.getOriginTiptapEditor().commands.insertContent(`<${r} controls width="100%">

Download ${e.name}

`)}}y.ɵfac=function(e){return new(e||y)(u.Y36(d.oDT),u.Y36(v.H7))},y.ɵcmp=u.Xpm({type:y,selectors:[["tui-editor-embed-html5-example-1"]],viewQuery:function(e,t){if(1&e&&u.Gf(l.aI,5),2&e){let e;u.iGM(e=u.CRH())&&(t.wysiwyg=e.first)}},hostAttrs:[1,"html5-editor-example"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("_e2e",t.isE2E)},features:[u._Bn([{provide:l.Wf,deps:[u.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(i.bind(i,48239)).then((({TuiLink:e})=>e)),i.e(6633).then(i.bind(i,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(i.bind(i,58101)).then((({TuiFileLink:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiVideo:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiAudio:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiSource:e})=>e))]},{provide:l.zc,deps:[],useFactory:()=>([e])=>{const t=new FileReader;return t.readAsDataURL(e),(0,d.mLY)(t,"load").pipe((0,f.U)((()=>[{name:e.name,link:String(t.result),attrs:{type:e.type}}])))}},{provide:l.dR,useValue:{accept:"video/mp4,video/x-m4v,video/*,audio/x-m4a,audio/*",multiple:!1}}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools","fileAttached"],[3,"innerHTML"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-editor",0),u.NdJ("fileAttached",(function(e){return t.attach(e)})),u.qZA(),u.TgZ(1,"h4"),u._uU(2,"HTML:"),u.qZA(),u._UZ(3,"div",1),u.TgZ(4,"h4"),u._uU(5,"Text:"),u.qZA(),u.TgZ(6,"p"),u._uU(7),u.qZA()),2&e&&(u.Q6J("formControl",t.control)("tools",t.builtInTools),u.xp6(3),u.Q6J("innerHTML",t.safe(t.control.value),u.oJD),u.xp6(4),u.Oqu(t.control.value))},directives:[w.a,n.JJ,n.oH],styles:["._e2e[_nghost-%COMP%] video::-webkit-media-controls-current-time-display, ._e2e[_nghost-%COMP%] video::-webkit-media-controls-time-remaining-display, ._e2e[_nghost-%COMP%] audio::-webkit-media-controls-current-time-display, ._e2e[_nghost-%COMP%] audio::-webkit-media-controls-time-remaining-display{display:none}"],changeDetection:0}),(0,m.gn)([d.UMq],y.prototype,"safe",null);let T=(()=>{class e{constructor(){this.example1={HTML:i.e(9507).then(i.t.bind(i,79507,17)),TypeScript:i.e(9889).then(i.t.bind(i,9889,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=u.Xpm({type:e,selectors:[["editor-embed-html5"]],features:[u._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","video-audio","heading","Video and audio / html5 native",3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-embed-html5-example-1"),u.qZA(),u.qZA()),2&e&&(u.xp6(9),u.Q6J("content",t.example1))},directives:[c.q,p.V,s.yS,h.f,y],encapsulation:2,changeDetection:0}),e})(),g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u.oAB({type:e}),e.ɵinj=u.cJS({imports:[[o.ez,d.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,r.fV,n.u5,n.UX,l.T_,l.GK,s.Bz.forChild((0,r.Ve)(T))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[2520],{92520:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorEmbedHtml5Module:()=>g});var o=i(12057),n=i(24751),s=i(34016),r=i(47029),d=i(42600),a=i(43232),l=i(37195),u=i(74788),c=i(15997),p=i(73460),h=i(42328),m=i(97582),v=i(91211),f=i(88002),w=i(8820);class y{constructor(e,t){this.isE2E=e,this.sanitizer=t,this.builtInTools=[l._2.Undo,l._2.Link,l._2.Attach],this.control=new n.NI(`\n

Here is video:

\n\n \n\n

Here is audio:

\n \n\n

\n `,n.kI.required)}safe(e){return this.sanitizer.bypassSecurityTrustHtml(null!=e?e:"")}attach([e]){var t,i,o,n,s;const r=`${null!==(i=null===(t=e.attrs)||void 0===t?void 0:t.type)&&void 0!==i?i:""}`.split("/")[0];null===(n=null===(o=this.wysiwyg)||void 0===o?void 0:o.editor)||void 0===n||n.getOriginTiptapEditor().commands.insertContent(`<${r} controls width="100%">

Download ${e.name}

`)}}y.ɵfac=function(e){return new(e||y)(u.Y36(d.oDT),u.Y36(v.H7))},y.ɵcmp=u.Xpm({type:y,selectors:[["tui-editor-embed-html5-example-1"]],viewQuery:function(e,t){if(1&e&&u.Gf(l.aI,5),2&e){let e;u.iGM(e=u.CRH())&&(t.wysiwyg=e.first)}},hostAttrs:[1,"html5-editor-example"],hostVars:2,hostBindings:function(e,t){2&e&&u.ekj("_e2e",t.isE2E)},features:[u._Bn([{provide:l.Wf,deps:[u.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(i.bind(i,48239)).then((({TuiLink:e})=>e)),i.e(6633).then(i.bind(i,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(i.bind(i,58101)).then((({TuiFileLink:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiVideo:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiAudio:e})=>e)),Promise.resolve().then(i.bind(i,39069)).then((({TuiSource:e})=>e))]},{provide:l.zc,deps:[],useFactory:()=>([e])=>{const t=new FileReader;return t.readAsDataURL(e),(0,d.mLY)(t,"load").pipe((0,f.U)((()=>[{name:e.name,link:String(t.result),attrs:{type:e.type}}])))}},{provide:l.dR,useValue:{accept:"video/mp4,video/x-m4v,video/*,audio/x-m4a,audio/*",multiple:!1}}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools","fileAttached"],[3,"innerHTML"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-editor",0),u.NdJ("fileAttached",(function(e){return t.attach(e)})),u.qZA(),u.TgZ(1,"h4"),u._uU(2,"HTML:"),u.qZA(),u._UZ(3,"div",1),u.TgZ(4,"h4"),u._uU(5,"Text:"),u.qZA(),u.TgZ(6,"p"),u._uU(7),u.qZA()),2&e&&(u.Q6J("formControl",t.control)("tools",t.builtInTools),u.xp6(3),u.Q6J("innerHTML",t.safe(t.control.value),u.oJD),u.xp6(4),u.Oqu(t.control.value))},directives:[w.a,n.JJ,n.oH],styles:["._e2e[_nghost-%COMP%] video::-webkit-media-controls-current-time-display, ._e2e[_nghost-%COMP%] video::-webkit-media-controls-time-remaining-display, ._e2e[_nghost-%COMP%] audio::-webkit-media-controls-current-time-display, ._e2e[_nghost-%COMP%] audio::-webkit-media-controls-time-remaining-display{display:none}"],changeDetection:0}),(0,m.gn)([d.UMq],y.prototype,"safe",null);let T=(()=>{class e{constructor(){this.example1={HTML:i.e(9507).then(i.t.bind(i,79507,17)),TypeScript:i.e(9889).then(i.t.bind(i,9889,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=u.Xpm({type:e,selectors:[["editor-embed-html5"]],features:[u._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","video-audio","heading","Video and audio / html5 native",3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-embed-html5-example-1"),u.qZA(),u.qZA()),2&e&&(u.xp6(9),u.Q6J("content",t.example1))},directives:[c.q,p.V,s.yS,h.f,y],encapsulation:2,changeDetection:0}),e})(),g=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u.oAB({type:e}),e.ɵinj=u.cJS({imports:[[o.ez,d.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,r.fV,n.u5,n.UX,l.T_,l.GK,s.Bz.forChild((0,r.Ve)(T))]]}),e})()}}]); \ No newline at end of file diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index 218b664f5..2a77b43f8 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -2499,6 +2499,12 @@ MIT @tiptap/extension-table-row MIT +@tiptap/extension-task-item +MIT + +@tiptap/extension-task-list +MIT + @tiptap/extension-text MIT diff --git a/404.html b/404.html index 9b915b691..15582892c 100644 --- a/404.html +++ b/404.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/4203.c3b915272f2acbeb30ae.js b/4203.c3b915272f2acbeb30ae.js new file mode 100644 index 000000000..0c306c748 --- /dev/null +++ b/4203.c3b915272f2acbeb30ae.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[4203],{64203:(e,n,t)=>{t.r(n),t.d(n,{ExampleTuiEditorCheckboxModule:()=>b});var a=t(12057),c=t(24751),i=t(34016),l=t(47029),o=t(37195),p=t(74788),s=t(15997),d=t(42328),r=t(8820),u=t(76690);let h=(()=>{class e{constructor(){this.builtInTools=[o._2.Undo,o._2.Size,o._2.List],this.control=new c.NI('\n

Which do you prefer?

\n
    \n \n \n
    \n

    Taiga UI

    \n
      \n \n \n

      v3.x

      \n \n \n \n

      v4.x

      \n \n
    \n
    \n \n \n \n

    Material

    \n \n \n \n

    Prime NG

    \n \n \n \n

    NG-Zorro

    \n \n \n \n

    Bootstrap

    \n \n
\n

\n ')}}return e.ɵfac=function(n){return new(n||e)},e.ɵcmp=p.Xpm({type:e,selectors:[["tui-editor-checkbox-example-1"]],features:[p._Bn([{provide:o.Wf,useValue:[Promise.resolve().then(t.bind(t,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(t.bind(t,84402)).then((({default:e})=>e))]}])],decls:8,vars:4,consts:[[3,"formControl","tools"],[3,"content"]],template:function(e,n){1&e&&(p._UZ(0,"tui-editor",0),p.TgZ(1,"h4"),p._uU(2,"HTML:"),p.qZA(),p._UZ(3,"tui-editor-socket",1),p.TgZ(4,"h4"),p._uU(5,"Text:"),p.qZA(),p.TgZ(6,"p"),p._uU(7),p.qZA()),2&e&&(p.Q6J("formControl",n.control)("tools",n.builtInTools),p.xp6(3),p.Q6J("content",n.control.value||""),p.xp6(4),p.Oqu(n.control.value))},directives:[r.a,c.JJ,c.oH,u.D],encapsulation:2,changeDetection:0}),e})(),k=(()=>{class e{constructor(){this.example1={TypeScript:t.e(5224).then(t.t.bind(t,85224,17)),HTML:t.e(6512).then(t.t.bind(t,66512,17))}}}return e.ɵfac=function(n){return new(n||e)},e.ɵcmp=p.Xpm({type:e,selectors:[["editor-checkbox"]],decls:3,vars:1,consts:[["header","Editor","type","components"],["id","checkbox","heading","Checkbox",3,"content"]],template:function(e,n){1&e&&(p.TgZ(0,"tui-doc-page",0),p.TgZ(1,"tui-doc-example",1),p._UZ(2,"tui-editor-checkbox-example-1"),p.qZA(),p.qZA()),2&e&&(p.xp6(1),p.Q6J("content",n.example1))},directives:[s.q,d.f,h],encapsulation:2,changeDetection:0}),e})(),b=(()=>{class e{}return e.ɵfac=function(n){return new(n||e)},e.ɵmod=p.oAB({type:e}),e.ɵinj=p.cJS({imports:[[a.ez,l.fV,c.UX,o.T_,o.GK,i.Bz.forChild((0,l.Ve)(k))]]}),e})()}}]); \ No newline at end of file diff --git a/517.6231d14d37d840138773.js b/517.926aa590f7c16b93cdc9.js similarity index 96% rename from 517.6231d14d37d840138773.js rename to 517.926aa590f7c16b93cdc9.js index 6babdf237..a46f81c82 100644 --- a/517.6231d14d37d840138773.js +++ b/517.926aa590f7c16b93cdc9.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[517],{80517:(t,e,i)=>{i.r(e),i.d(e,{ExampleTuiEditorMarkTextModule:()=>T});var o=i(12057),n=i(24751),r=i(34016),a=i(47029),l=i(43232),c=i(37195),s=i(74788),u=i(15997),d=i(73460),h=i(42328),g=i(8820),p=i(18289),m=i(76690);let f=(()=>{class t{constructor(){this.builtInTools=[c._2.Undo],this.control=new n.NI('\n

This isn’t highlighted.

\n

\n Grammar\n can be tricky,\n especially\n for the uninitiated\n

\n ')}toggleHighlight(){var t,e;null===(e=null===(t=this.wysiwyg)||void 0===t?void 0:t.editor)||void 0===e||e.getOriginTiptapEditor().commands.toggleHighlight({color:"#c8eefc"})}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-editor-mark-text-example-1"]],viewQuery:function(t,e){if(1&t&&s.Gf(c.aI,5),2&t){let t;s.iGM(t=s.CRH())&&(e.wysiwyg=t.first)}},features:[s._Bn([{provide:c.Wf,useValue:[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:t})=>t)),i.e(3336).then(i.bind(i,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(i.bind(i,84402)).then((({default:t})=>t)),i.e(4661).then(i.bind(i,34661)).then((({Highlight:t})=>t.configure({multicolor:!0,HTMLAttributes:{class:"marked"}})))]}])],decls:10,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["appearance","icon","icon","tuiIconDropletLarge","size","s","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"click"],[3,"content"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-editor",0),s.ynx(1,1),s.TgZ(2,"button",2),s.NdJ("click",(function(){return e.toggleHighlight()})),s.qZA(),s.BQk(),s.qZA(),s.TgZ(3,"h4"),s._uU(4,"HTML:"),s.qZA(),s._UZ(5,"tui-editor-socket",3),s.TgZ(6,"h4"),s._uU(7,"Text:"),s.qZA(),s.TgZ(8,"p"),s._uU(9),s.qZA()),2&t&&(s.Q6J("formControl",e.control)("tools",e.builtInTools),s.xp6(5),s.Q6J("content",e.control.value||""),s.xp6(4),s.Oqu(e.control.value))},directives:[g.a,n.JJ,n.oH,p.v,m.D],styles:[".marked{padding:.3125rem;border-radius:.3125rem;margin:0 .3125rem;box-shadow:0 0 0 2px #007bff40;line-height:2.6rem}"],changeDetection:0}),t})(),k=(()=>{class t{constructor(){this.example1={TypeScript:i.e(8929).then(i.t.bind(i,98929,17)),HTML:i.e(9746).then(i.t.bind(i,29746,17)),LESS:i.e(9869).then(i.t.bind(i,99869,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=s.Xpm({type:t,selectors:[["editor-mark-text"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","highlight","description","Use this extension to render highlighted text with . You can use only default HTML tag, which has a yellow background color by default, or apply different colors.","heading","Highlight",3,"content"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-doc-page",0),s.TgZ(1,"p"),s._uU(2," Rich Text Editor based on "),s.TgZ(3,"a",1),s._uU(4," TipTap Editor "),s.qZA(),s._uU(5," for using with Angular forms. For safety reasons use a "),s.TgZ(6,"a",2),s._uU(7," sanitizer "),s.qZA(),s._uU(8," with this component. "),s.qZA(),s.TgZ(9,"tui-doc-example",3),s._UZ(10,"tui-editor-mark-text-example-1"),s.qZA(),s.qZA()),2&t&&(s.xp6(9),s.Q6J("content",e.example1))},directives:[u.q,d.V,r.yS,h.f,f],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,l.EIu,l.jzK,l.fNO,a.fV,n.u5,n.UX,c.T_,c.GK,r.Bz.forChild((0,a.Ve)(k))]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[517],{80517:(t,e,i)=>{i.r(e),i.d(e,{ExampleTuiEditorMarkTextModule:()=>T});var o=i(12057),n=i(24751),r=i(34016),a=i(47029),l=i(43232),c=i(37195),s=i(74788),u=i(15997),d=i(73460),h=i(42328),g=i(8820),p=i(18289),m=i(76690);let f=(()=>{class t{constructor(){this.builtInTools=[c._2.Undo],this.control=new n.NI('\n

This isn’t highlighted.

\n

\n Grammar\n can be tricky,\n especially\n for the uninitiated\n

\n ')}toggleHighlight(){var t,e;null===(e=null===(t=this.wysiwyg)||void 0===t?void 0:t.editor)||void 0===e||e.getOriginTiptapEditor().commands.toggleHighlight({color:"#c8eefc"})}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-editor-mark-text-example-1"]],viewQuery:function(t,e){if(1&t&&s.Gf(c.aI,5),2&t){let t;s.iGM(t=s.CRH())&&(e.wysiwyg=t.first)}},features:[s._Bn([{provide:c.Wf,useValue:[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:t})=>t)),i.e(3336).then(i.bind(i,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(i.bind(i,84402)).then((({default:t})=>t)),i.e(4661).then(i.bind(i,34661)).then((({Highlight:t})=>t.configure({multicolor:!0,HTMLAttributes:{class:"marked"}})))]}])],decls:10,vars:4,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["appearance","icon","icon","tuiIconDropletLarge","size","s","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"click"],[3,"content"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-editor",0),s.ynx(1,1),s.TgZ(2,"button",2),s.NdJ("click",(function(){return e.toggleHighlight()})),s.qZA(),s.BQk(),s.qZA(),s.TgZ(3,"h4"),s._uU(4,"HTML:"),s.qZA(),s._UZ(5,"tui-editor-socket",3),s.TgZ(6,"h4"),s._uU(7,"Text:"),s.qZA(),s.TgZ(8,"p"),s._uU(9),s.qZA()),2&t&&(s.Q6J("formControl",e.control)("tools",e.builtInTools),s.xp6(5),s.Q6J("content",e.control.value||""),s.xp6(4),s.Oqu(e.control.value))},directives:[g.a,n.JJ,n.oH,p.v,m.D],styles:[".marked{padding:.3125rem;border-radius:.3125rem;margin:0 .3125rem;box-shadow:0 0 0 2px #007bff40;line-height:2.6rem}"],changeDetection:0}),t})(),k=(()=>{class t{constructor(){this.example1={TypeScript:i.e(8929).then(i.t.bind(i,98929,17)),HTML:i.e(9746).then(i.t.bind(i,29746,17)),LESS:i.e(9869).then(i.t.bind(i,99869,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=s.Xpm({type:t,selectors:[["editor-mark-text"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","highlight","description","Use this extension to render highlighted text with . You can use only default HTML tag, which has a yellow background color by default, or apply different colors.","heading","Highlight",3,"content"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-doc-page",0),s.TgZ(1,"p"),s._uU(2," Rich Text Editor based on "),s.TgZ(3,"a",1),s._uU(4," TipTap Editor "),s.qZA(),s._uU(5," for using with Angular forms. For safety reasons use a "),s.TgZ(6,"a",2),s._uU(7," sanitizer "),s.qZA(),s._uU(8," with this component. "),s.qZA(),s.TgZ(9,"tui-doc-example",3),s._UZ(10,"tui-editor-mark-text-example-1"),s.qZA(),s.qZA()),2&t&&(s.xp6(9),s.Q6J("content",e.example1))},directives:[u.q,d.V,r.yS,h.f,f],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,l.EIu,l.jzK,l.fNO,a.fV,n.u5,n.UX,c.T_,c.GK,r.Bz.forChild((0,a.Ve)(k))]]}),t})()}}]); \ No newline at end of file diff --git a/5224.883c53a9868a36ee9982.js b/5224.883c53a9868a36ee9982.js new file mode 100644 index 000000000..051a30502 --- /dev/null +++ b/5224.883c53a9868a36ee9982.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[5224],{85224:n=>{n.exports='import {ChangeDetectionStrategy, Component, ViewEncapsulation} from \'@angular/core\';\nimport {FormControl} from \'@angular/forms\';\nimport {TUI_EDITOR_EXTENSIONS, TuiEditorTool} from \'@tinkoff/tui-editor\';\n\n@Component({\n selector: \'tui-editor-checkbox-example-1\',\n templateUrl: \'./index.html\',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_EDITOR_EXTENSIONS,\n useValue: [\n import(\'@tinkoff/tui-editor/extensions/starter-kit\').then(\n ({StarterKit}) => StarterKit,\n ),\n import(\'@tiptap/extension-text-style\').then(\n ({default: TextStyle}) => TextStyle,\n ),\n ],\n },\n ],\n})\nexport class TuiEditorCheckboxExample1 {\n readonly builtInTools = [TuiEditorTool.Undo, TuiEditorTool.Size, TuiEditorTool.List];\n\n control = new FormControl(`\n

Which do you prefer?

\n
    \n \n \n
    \n

    Taiga UI

    \n
      \n \n \n

      v3.x

      \n \n \n \n

      v4.x

      \n \n
    \n
    \n \n \n \n

    Material

    \n \n \n \n

    Prime NG

    \n \n \n \n

    NG-Zorro

    \n \n \n \n

    Bootstrap

    \n \n
\n

\n `);\n}\n'}}]); \ No newline at end of file diff --git a/5833.0a7665132d1510262835.js b/5833.0a7665132d1510262835.js deleted file mode 100644 index cfea5f7be..000000000 --- a/5833.0a7665132d1510262835.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[5833],{75833:t=>{t.exports="# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.18.0 (2024-03-22)\n\n### Features\n\n- support floating toolbar ([#901](https://github.com/taiga-family/tui-editor/issues/901))\n ([e335879](https://github.com/taiga-family/tui-editor/commit/e335879b5226f11eb43adcfa0d4bcebb710f1ecc))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.17.0 (2024-03-14)\n\n### Bug Fixes\n\n- clear contenteditable focus after reset in Safari ([#862](https://github.com/taiga-family/tui-editor/issues/862))\n ([4866dc1](https://github.com/taiga-family/tui-editor/commit/4866dc13a3895fa5c1c2a7dd9d7bf337ec44e9ce))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.16.0 (2024-02-29)\n\n### Bug Fixes\n\n- change hidden to clip ([#827](https://github.com/taiga-family/tui-editor/issues/827))\n ([00bb79b](https://github.com/taiga-family/tui-editor/commit/00bb79b4ddf2302dc28907b7e32c8d9410816445))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.15.0 (2024-02-28)\n\n### Features\n\n- add `enableDefaultStyles` option ([#823](https://github.com/taiga-family/tui-editor/issues/823))\n ([defc64e](https://github.com/taiga-family/tui-editor/commit/defc64e604cb9361ab1fab03572cf9181a52aee0))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.14.0 (2024-02-28)\n\n### Bug Fixes\n\n- strange behaviour on Windows ([#821](https://github.com/taiga-family/tui-editor/issues/821))\n ([420a19c](https://github.com/taiga-family/tui-editor/commit/420a19cea534f288ab7eef6ff85ce714b2e2787d))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.13.0 (2024-02-22)\n\n### Bug Fixes\n\n- undo operation should work when updating attributes ([#793](https://github.com/taiga-family/tui-editor/issues/793))\n ([1d27675](https://github.com/taiga-family/tui-editor/commit/1d276756d2f58e46edad1512f7016b8e7c6c5c65))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.12.0 (2024-02-19)\n\n### Bug Fixes\n\n- use image loader when using drag-and-drop images ([#791](https://github.com/taiga-family/tui-editor/issues/791))\n ([38f7bf5](https://github.com/taiga-family/tui-editor/commit/38f7bf588536919a9f0d18b4201b857b74fbe5d7))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.11.0 (2024-01-10)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.10.0 (2023-12-13)\n\n### Features\n\n- support copy paste multiple links ([#610](https://github.com/taiga-family/tui-editor/issues/610))\n ([f261eff](https://github.com/taiga-family/tui-editor/commit/f261effd5bf6ada05d079a06a0915aba60178904))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.9.0 (2023-12-11)\n\n### Features\n\n- add angular content editable accessor\n ([01e0f1e](https://github.com/taiga-family/tui-editor/commit/01e0f1eb5e72819d8eb32a63398114e3bfd2b2d1))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.4 (2023-11-16)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.3 (2023-10-31)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.2 (2023-10-20)\n\n### Bug Fixes\n\n- cannot convert undefined or null to object at getOwnPropertyDescriptors\n ([2203aa7](https://github.com/taiga-family/tui-editor/commit/2203aa75cffe018f6cec4410cde20352b756c9e8))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.1 (2023-10-19)\n\n### Bug Fixes\n\n- cannot convert undefined or null to object at getOwnPropertyDescriptors\n ([b991466](https://github.com/taiga-family/tui-editor/commit/b99146633d2850c314150e248a3c1e07a3409895))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.8.0 (2023-10-18)\n\n### Features\n\n- reuse previous font color when change font size ([#314](https://github.com/taiga-family/tui-editor/issues/314))\n ([abd01e2](https://github.com/taiga-family/tui-editor/commit/abd01e2198e8be40808df3b2bcc5e0b0b1ed7916))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.7.1 (2023-10-11)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.7.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.6.1...@tinkoff/tui-editor@1.7.0) (2023-10-03)\n\n### Features\n\n- improve ui for color-edit component ([#257](https://github.com/taiga-family/tui-editor/issues/257))\n ([b023a6a](https://github.com/taiga-family/tui-editor/commit/b023a6a9bfe40f143f04a454ba04f69e2bb2ab9c))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.6.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.6.0...@tinkoff/tui-editor@1.6.1) (2023-10-03)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.6.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.5.1...@tinkoff/tui-editor@1.6.0) (2023-10-02)\n\n### Features\n\n- improve ux for touching edit link\n ([6744776](https://github.com/taiga-family/tui-editor/commit/6744776da7071cd0a05bce23905b37265c323f8b))\n- nowrap text in editor links\n ([0fdf555](https://github.com/taiga-family/tui-editor/commit/0fdf5555b4145eec06edbbb4c6d27de58ffbe7df))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.5.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.5.0...@tinkoff/tui-editor@1.5.1) (2023-09-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.5.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.4.0...@tinkoff/tui-editor@1.5.0) (2023-08-22)\n\n### Features\n\n- support override icons ([#165](https://github.com/taiga-family/tui-editor/issues/165))\n ([4dc5cd4](https://github.com/taiga-family/tui-editor/commit/4dc5cd4ab69786637e661fa877e5c8bdc28b069b))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.4.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.3.1...@tinkoff/tui-editor@1.4.0) (2023-08-18)\n\n### Bug Fixes\n\n- can't resolve item.directive.ts, but not a .d.ts file ([#157](https://github.com/taiga-family/tui-editor/issues/157))\n ([50b117e](https://github.com/taiga-family/tui-editor/commit/50b117e57626c8cd3cc93c8c912dc402b67f0d36))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.3.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.3.0...@tinkoff/tui-editor@1.3.1) (2023-08-18)\n\n### Bug Fixes\n\n- expect null pointer ([#156](https://github.com/taiga-family/tui-editor/issues/156))\n ([fb50ce7](https://github.com/taiga-family/tui-editor/commit/fb50ce734dfb61e7540203b983eeb8ae9cbb6b94))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.3.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.2.0...@tinkoff/tui-editor@1.3.0) (2023-08-18)\n\n### Features\n\n- change margin for list ([#152](https://github.com/taiga-family/tui-editor/issues/152))\n ([57d79ca](https://github.com/taiga-family/tui-editor/commit/57d79ca8741db87b88df887e921402477e228346))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.2.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.1.0...@tinkoff/tui-editor@1.2.0) (2023-07-27)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.1.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.0.1...@tinkoff/tui-editor@1.1.0) (2023-07-25)\n\n### Bug Fixes\n\n- show cursor `pointer` for color `picker` ([#73](https://github.com/taiga-family/tui-editor/issues/73))\n ([e593796](https://github.com/taiga-family/tui-editor/commit/e593796281fb875b8200be6d62ec2d2a8c86397e))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.0.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.0.0...@tinkoff/tui-editor@1.0.1) (2023-07-07)\n\n### Bug Fixes\n\n- revert package.json\n ([66ffc47](https://github.com/taiga-family/tui-editor/commit/66ffc479a3e03dbe6c5ce8c7ab408b5a59b14f13))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.0.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.3.0...@tinkoff/tui-editor@1.0.0) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [0.3.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.2...@tinkoff/tui-editor@0.3.0) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [0.2.2](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.1...@tinkoff/tui-editor@0.2.2) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [0.2.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.0...@tinkoff/tui-editor@0.2.1) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n"}}]); \ No newline at end of file diff --git a/5833.a3ff5b4cabc69f6592bb.js b/5833.a3ff5b4cabc69f6592bb.js new file mode 100644 index 000000000..e05e2dd66 --- /dev/null +++ b/5833.a3ff5b4cabc69f6592bb.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[5833],{75833:t=>{t.exports="# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.19.0 (2024-03-26)\n\n### Features\n\n- add checkbox ([#919](https://github.com/taiga-family/tui-editor/issues/919))\n ([96998c3](https://github.com/taiga-family/tui-editor/commit/96998c32913f7828602890b3b7b93811ca1e1df3))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.18.0 (2024-03-22)\n\n### Features\n\n- support floating toolbar ([#901](https://github.com/taiga-family/tui-editor/issues/901))\n ([e335879](https://github.com/taiga-family/tui-editor/commit/e335879b5226f11eb43adcfa0d4bcebb710f1ecc))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.17.0 (2024-03-14)\n\n### Bug Fixes\n\n- clear contenteditable focus after reset in Safari ([#862](https://github.com/taiga-family/tui-editor/issues/862))\n ([4866dc1](https://github.com/taiga-family/tui-editor/commit/4866dc13a3895fa5c1c2a7dd9d7bf337ec44e9ce))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.16.0 (2024-02-29)\n\n### Bug Fixes\n\n- change hidden to clip ([#827](https://github.com/taiga-family/tui-editor/issues/827))\n ([00bb79b](https://github.com/taiga-family/tui-editor/commit/00bb79b4ddf2302dc28907b7e32c8d9410816445))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.15.0 (2024-02-28)\n\n### Features\n\n- add `enableDefaultStyles` option ([#823](https://github.com/taiga-family/tui-editor/issues/823))\n ([defc64e](https://github.com/taiga-family/tui-editor/commit/defc64e604cb9361ab1fab03572cf9181a52aee0))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.14.0 (2024-02-28)\n\n### Bug Fixes\n\n- strange behaviour on Windows ([#821](https://github.com/taiga-family/tui-editor/issues/821))\n ([420a19c](https://github.com/taiga-family/tui-editor/commit/420a19cea534f288ab7eef6ff85ce714b2e2787d))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.13.0 (2024-02-22)\n\n### Bug Fixes\n\n- undo operation should work when updating attributes ([#793](https://github.com/taiga-family/tui-editor/issues/793))\n ([1d27675](https://github.com/taiga-family/tui-editor/commit/1d276756d2f58e46edad1512f7016b8e7c6c5c65))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.12.0 (2024-02-19)\n\n### Bug Fixes\n\n- use image loader when using drag-and-drop images ([#791](https://github.com/taiga-family/tui-editor/issues/791))\n ([38f7bf5](https://github.com/taiga-family/tui-editor/commit/38f7bf588536919a9f0d18b4201b857b74fbe5d7))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.11.0 (2024-01-10)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.10.0 (2023-12-13)\n\n### Features\n\n- support copy paste multiple links ([#610](https://github.com/taiga-family/tui-editor/issues/610))\n ([f261eff](https://github.com/taiga-family/tui-editor/commit/f261effd5bf6ada05d079a06a0915aba60178904))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.9.0 (2023-12-11)\n\n### Features\n\n- add angular content editable accessor\n ([01e0f1e](https://github.com/taiga-family/tui-editor/commit/01e0f1eb5e72819d8eb32a63398114e3bfd2b2d1))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.4 (2023-11-16)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.3 (2023-10-31)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.2 (2023-10-20)\n\n### Bug Fixes\n\n- cannot convert undefined or null to object at getOwnPropertyDescriptors\n ([2203aa7](https://github.com/taiga-family/tui-editor/commit/2203aa75cffe018f6cec4410cde20352b756c9e8))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.8.1 (2023-10-19)\n\n### Bug Fixes\n\n- cannot convert undefined or null to object at getOwnPropertyDescriptors\n ([b991466](https://github.com/taiga-family/tui-editor/commit/b99146633d2850c314150e248a3c1e07a3409895))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# 1.8.0 (2023-10-18)\n\n### Features\n\n- reuse previous font color when change font size ([#314](https://github.com/taiga-family/tui-editor/issues/314))\n ([abd01e2](https://github.com/taiga-family/tui-editor/commit/abd01e2198e8be40808df3b2bcc5e0b0b1ed7916))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## 1.7.1 (2023-10-11)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.7.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.6.1...@tinkoff/tui-editor@1.7.0) (2023-10-03)\n\n### Features\n\n- improve ui for color-edit component ([#257](https://github.com/taiga-family/tui-editor/issues/257))\n ([b023a6a](https://github.com/taiga-family/tui-editor/commit/b023a6a9bfe40f143f04a454ba04f69e2bb2ab9c))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.6.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.6.0...@tinkoff/tui-editor@1.6.1) (2023-10-03)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.6.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.5.1...@tinkoff/tui-editor@1.6.0) (2023-10-02)\n\n### Features\n\n- improve ux for touching edit link\n ([6744776](https://github.com/taiga-family/tui-editor/commit/6744776da7071cd0a05bce23905b37265c323f8b))\n- nowrap text in editor links\n ([0fdf555](https://github.com/taiga-family/tui-editor/commit/0fdf5555b4145eec06edbbb4c6d27de58ffbe7df))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.5.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.5.0...@tinkoff/tui-editor@1.5.1) (2023-09-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.5.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.4.0...@tinkoff/tui-editor@1.5.0) (2023-08-22)\n\n### Features\n\n- support override icons ([#165](https://github.com/taiga-family/tui-editor/issues/165))\n ([4dc5cd4](https://github.com/taiga-family/tui-editor/commit/4dc5cd4ab69786637e661fa877e5c8bdc28b069b))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.4.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.3.1...@tinkoff/tui-editor@1.4.0) (2023-08-18)\n\n### Bug Fixes\n\n- can't resolve item.directive.ts, but not a .d.ts file ([#157](https://github.com/taiga-family/tui-editor/issues/157))\n ([50b117e](https://github.com/taiga-family/tui-editor/commit/50b117e57626c8cd3cc93c8c912dc402b67f0d36))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.3.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.3.0...@tinkoff/tui-editor@1.3.1) (2023-08-18)\n\n### Bug Fixes\n\n- expect null pointer ([#156](https://github.com/taiga-family/tui-editor/issues/156))\n ([fb50ce7](https://github.com/taiga-family/tui-editor/commit/fb50ce734dfb61e7540203b983eeb8ae9cbb6b94))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.3.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.2.0...@tinkoff/tui-editor@1.3.0) (2023-08-18)\n\n### Features\n\n- change margin for list ([#152](https://github.com/taiga-family/tui-editor/issues/152))\n ([57d79ca](https://github.com/taiga-family/tui-editor/commit/57d79ca8741db87b88df887e921402477e228346))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.2.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.1.0...@tinkoff/tui-editor@1.2.0) (2023-07-27)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.1.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.0.1...@tinkoff/tui-editor@1.1.0) (2023-07-25)\n\n### Bug Fixes\n\n- show cursor `pointer` for color `picker` ([#73](https://github.com/taiga-family/tui-editor/issues/73))\n ([e593796](https://github.com/taiga-family/tui-editor/commit/e593796281fb875b8200be6d62ec2d2a8c86397e))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [1.0.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@1.0.0...@tinkoff/tui-editor@1.0.1) (2023-07-07)\n\n### Bug Fixes\n\n- revert package.json\n ([66ffc47](https://github.com/taiga-family/tui-editor/commit/66ffc479a3e03dbe6c5ce8c7ab408b5a59b14f13))\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [1.0.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.3.0...@tinkoff/tui-editor@1.0.0) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n# [0.3.0](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.2...@tinkoff/tui-editor@0.3.0) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [0.2.2](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.1...@tinkoff/tui-editor@0.2.2) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n\n# Change Log\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.\n\n## [0.2.1](https://github.com/taiga-family/tui-editor/compare/@tinkoff/tui-editor@0.2.0...@tinkoff/tui-editor@0.2.1) (2023-07-06)\n\n**Note:** Version bump only for package @tinkoff/tui-editor\n"}}]); \ No newline at end of file diff --git a/6233.b008b2c2277c0b892c6c.js b/6233.96bdbb5daac631583891.js similarity index 98% rename from 6233.b008b2c2277c0b892c6c.js rename to 6233.96bdbb5daac631583891.js index e30525fd6..638367a6f 100644 --- a/6233.b008b2c2277c0b892c6c.js +++ b/6233.96bdbb5daac631583891.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[6233],{6233:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiEditorFocusModule:()=>T});var o=n(12057),i=n(24751),s=n(34016),r=n(47029),a=n(42600),u=n(43232),l=n(37195),d=n(74788),c=n(15997),h=n(73460),p=n(42328),m=n(8820),g=n(76690);let b=(()=>{class e{constructor(){this.builtInTools=[l._2.Undo,l._2.Img,l._2.Link,l._2.Anchor],this.control=new i.NI('

WYSIWYG (What you see is what you get) — Rich Text Editor for using with Angular forms.

Heading

Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim

ad minim veniam, quis nostrud exercitation ullamco, laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

class EditorExample {}

Free

Pro

24/7 support

+

+

Code in text

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-focus-example-1"]],features:[d._Bn([{provide:l.Wf,deps:[d.gxx],useFactory:e=>[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:e})=>e)).then((e=>e.configure({heading:{levels:[1,2]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:e})=>e.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:e})=>e)),n.e(7991).then(n.bind(n,17991)).then((({default:e})=>e)),n.e(7147).then(n.bind(n,77147)).then((({default:e})=>e)),n.e(5034).then(n.bind(n,25034)).then((({default:e})=>e)),Promise.resolve().then(n.bind(n,30163)).then((({FontColor:e})=>e)),Promise.resolve().then(n.bind(n,48239)).then((({TuiLink:e})=>e)),n.e(6633).then(n.bind(n,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(n.bind(n,58101)).then((({TuiFileLink:e})=>e)),Promise.resolve().then(n.bind(n,44)).then((({BackgroundColor:e})=>e)),Promise.resolve().then(n.bind(n,90551)).then((({TuiTable:e})=>e.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:e})=>e)),n.e(1397).then(n.bind(n,71397)).then((({default:e})=>e)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:e})=>e)),Promise.resolve().then(n.bind(n,13575)).then((({TuiTabExtension:e})=>e)),Promise.resolve().then(n.bind(n,28227)).then((({TableCellBackground:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetailsContent:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetails:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiSummary:e})=>e)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:e})=>e)),Promise.resolve().then(n.bind(n,89681)).then((({createImageEditorExtension:t})=>t(e))),n.e(3725).then(n.bind(n,13725)).then((({FocusClasses:e})=>e.configure({className:"has-focus",mode:"shallowest"})))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[m.a,i.JJ,i.oH,g.D],styles:[".has-focus:not(tui-image-editor), tui-image-editor.has-focus img{border-radius:3px;box-shadow:0 0 0 3px #68cef8}"],changeDetection:0}),e})(),f=(()=>{class e{constructor(){this.example1={TypeScript:n.e(961).then(n.t.bind(n,60961,17)),HTML:n.e(5255).then(n.t.bind(n,25255,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-focus"]],features:[d._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","anchors","description","The Focus extension adds a CSS class to focused nodes. By default it adds .has-focus, but you can change that. Note that it’s only a class, the styling is totally up to you. The usage example below has some CSS for that class.","heading","Focus",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-focus-example-1"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1))},directives:[c.q,h.V,s.yS,p.f,b],encapsulation:2,changeDetection:0}),e})(),T=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,a.Ah6,u.EIu,u.jzK,u.jhF,u.fNO,r.fV,i.u5,i.UX,l.T_,l.GK,s.Bz.forChild((0,r.Ve)(f))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[6233],{6233:(e,t,n)=>{n.r(t),n.d(t,{ExampleTuiEditorFocusModule:()=>T});var o=n(12057),i=n(24751),s=n(34016),r=n(47029),a=n(42600),u=n(43232),l=n(37195),d=n(74788),c=n(15997),h=n(73460),p=n(42328),m=n(8820),g=n(76690);let b=(()=>{class e{constructor(){this.builtInTools=[l._2.Undo,l._2.Img,l._2.Link,l._2.Anchor],this.control=new i.NI('

WYSIWYG (What you see is what you get) — Rich Text Editor for using with Angular forms.

Heading

Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim

ad minim veniam, quis nostrud exercitation ullamco, laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

class EditorExample {}

Free

Pro

24/7 support

+

+

Code in text

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-focus-example-1"]],features:[d._Bn([{provide:l.Wf,deps:[d.gxx],useFactory:e=>[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:e})=>e)).then((e=>e.configure({heading:{levels:[1,2]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:e})=>e.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:e})=>e)),n.e(7991).then(n.bind(n,17991)).then((({default:e})=>e)),n.e(7147).then(n.bind(n,77147)).then((({default:e})=>e)),n.e(5034).then(n.bind(n,25034)).then((({default:e})=>e)),Promise.resolve().then(n.bind(n,30163)).then((({FontColor:e})=>e)),Promise.resolve().then(n.bind(n,48239)).then((({TuiLink:e})=>e)),n.e(6633).then(n.bind(n,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(n.bind(n,58101)).then((({TuiFileLink:e})=>e)),Promise.resolve().then(n.bind(n,44)).then((({BackgroundColor:e})=>e)),Promise.resolve().then(n.bind(n,90551)).then((({TuiTable:e})=>e.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:e})=>e)),n.e(1397).then(n.bind(n,71397)).then((({default:e})=>e)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:e})=>e)),Promise.resolve().then(n.bind(n,13575)).then((({TuiTabExtension:e})=>e)),Promise.resolve().then(n.bind(n,28227)).then((({TableCellBackground:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetailsContent:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetails:e})=>e)),n.e(5681).then(n.bind(n,5681)).then((({TuiSummary:e})=>e)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:e})=>e)),Promise.resolve().then(n.bind(n,89681)).then((({createImageEditorExtension:t})=>t(e))),n.e(3725).then(n.bind(n,13725)).then((({FocusClasses:e})=>e.configure({className:"has-focus",mode:"shallowest"})))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[m.a,i.JJ,i.oH,g.D],styles:[".has-focus:not(tui-image-editor), tui-image-editor.has-focus img{border-radius:3px;box-shadow:0 0 0 3px #68cef8}"],changeDetection:0}),e})(),f=(()=>{class e{constructor(){this.example1={TypeScript:n.e(961).then(n.t.bind(n,60961,17)),HTML:n.e(5255).then(n.t.bind(n,25255,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-focus"]],features:[d._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","anchors","description","The Focus extension adds a CSS class to focused nodes. By default it adds .has-focus, but you can change that. Note that it’s only a class, the styling is totally up to you. The usage example below has some CSS for that class.","heading","Focus",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-focus-example-1"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1))},directives:[c.q,h.V,s.yS,p.f,b],encapsulation:2,changeDetection:0}),e})(),T=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[o.ez,a.Ah6,u.EIu,u.jzK,u.jhF,u.fNO,r.fV,i.u5,i.UX,l.T_,l.GK,s.Bz.forChild((0,r.Ve)(f))]]}),e})()}}]); \ No newline at end of file diff --git a/6512.ea617fcaa751151e5ec9.js b/6512.ea617fcaa751151e5ec9.js new file mode 100644 index 000000000..01ca7f0e6 --- /dev/null +++ b/6512.ea617fcaa751151e5ec9.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[6512],{66512:t=>{t.exports='
\n\n

HTML:

\n\n\n

Text:

\n

{{ control.value }}

\n'}}]); \ No newline at end of file diff --git a/668.ad450f953726cd39c291.js b/668.eaead91a8682809a7d29.js similarity index 97% rename from 668.ad450f953726cd39c291.js rename to 668.eaead91a8682809a7d29.js index ccea53499..3ac71f03e 100644 --- a/668.ad450f953726cd39c291.js +++ b/668.eaead91a8682809a7d29.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[668],{668:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorCodeBlockModule:()=>T});var n=o(12057),i=o(24751),r=o(34016),s=o(47029),c=o(43232),a=o(37195),u=o(74788),l=o(15997),d=o(73460),p=o(42328),h=o(97582),g=o(8820),f=o(76690);let m=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Code],this.control=new i.NI("")}ngOnInit(){return(0,h.mG)(this,void 0,void 0,(function*(){const[t]=(0,s.vi)(yield(0,s.JQ)(o.e(122).then(o.t.bind(o,122,17))));this.control.patchValue(t)}))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=u.Xpm({type:t,selectors:[["tui-editor-code-block-example-1"]],features:[u._Bn([{provide:a.Wf,useFactory:()=>[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:t})=>t))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(u._UZ(0,"tui-editor",0),u.TgZ(1,"h4"),u._uU(2,"HTML:"),u.qZA(),u._UZ(3,"tui-editor-socket",1),u.TgZ(4,"h4"),u._uU(5,"Text:"),u.qZA(),u.TgZ(6,"p"),u._uU(7),u.qZA()),2&t&&(u.Q6J("formControl",e.control)("tools",e.builtInTools),u.xp6(3),u.Q6J("content",e.control.value||""),u.xp6(4),u.Oqu(e.control.value))},directives:[g.a,i.JJ,i.oH,f.D],styles:['[_nghost-%COMP%] tui-editor-socket pre:has(code[class="language-ts"]){background:var(--tui-base-08)}[_nghost-%COMP%] code[class=language-ts]{color:var(--tui-base-01);text-shadow:none}'],changeDetection:0}),t})(),b=(()=>{class t{constructor(){this.example1={TypeScript:o.e(8199).then(o.t.bind(o,78199,17)),HTML:o.e(5110).then(o.t.bind(o,75110,17)),LESS:o.e(5659).then(o.t.bind(o,95659,17)),"./example.md":o.e(122).then(o.t.bind(o,122,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=u.Xpm({type:t,selectors:[["editor-code-block"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","highlight","heading","Code block",3,"content"]],template:function(t,e){1&t&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-code-block-example-1"),u.qZA(),u.qZA()),2&t&&(u.xp6(9),u.Q6J("content",e.example1))},directives:[l.q,d.V,r.yS,p.f,m],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[n.ez,c.EIu,c.jzK,c.fNO,s.fV,i.u5,i.UX,a.T_,a.GK,r.Bz.forChild((0,s.Ve)(b))]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[668],{668:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorCodeBlockModule:()=>T});var n=o(12057),i=o(24751),r=o(34016),s=o(47029),c=o(43232),a=o(37195),u=o(74788),l=o(15997),d=o(73460),p=o(42328),h=o(97582),g=o(8820),f=o(76690);let m=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Code],this.control=new i.NI("")}ngOnInit(){return(0,h.mG)(this,void 0,void 0,(function*(){const[t]=(0,s.vi)(yield(0,s.JQ)(o.e(122).then(o.t.bind(o,122,17))));this.control.patchValue(t)}))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=u.Xpm({type:t,selectors:[["tui-editor-code-block-example-1"]],features:[u._Bn([{provide:a.Wf,useFactory:()=>[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:t})=>t))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(u._UZ(0,"tui-editor",0),u.TgZ(1,"h4"),u._uU(2,"HTML:"),u.qZA(),u._UZ(3,"tui-editor-socket",1),u.TgZ(4,"h4"),u._uU(5,"Text:"),u.qZA(),u.TgZ(6,"p"),u._uU(7),u.qZA()),2&t&&(u.Q6J("formControl",e.control)("tools",e.builtInTools),u.xp6(3),u.Q6J("content",e.control.value||""),u.xp6(4),u.Oqu(e.control.value))},directives:[g.a,i.JJ,i.oH,f.D],styles:['[_nghost-%COMP%] tui-editor-socket pre:has(code[class="language-ts"]){background:var(--tui-base-08)}[_nghost-%COMP%] code[class=language-ts]{color:var(--tui-base-01);text-shadow:none}'],changeDetection:0}),t})(),b=(()=>{class t{constructor(){this.example1={TypeScript:o.e(8199).then(o.t.bind(o,78199,17)),HTML:o.e(5110).then(o.t.bind(o,75110,17)),LESS:o.e(5659).then(o.t.bind(o,95659,17)),"./example.md":o.e(122).then(o.t.bind(o,122,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=u.Xpm({type:t,selectors:[["editor-code-block"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","highlight","heading","Code block",3,"content"]],template:function(t,e){1&t&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-code-block-example-1"),u.qZA(),u.qZA()),2&t&&(u.xp6(9),u.Q6J("content",e.example1))},directives:[l.q,d.V,r.yS,p.f,m],encapsulation:2,changeDetection:0}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=u.oAB({type:t}),t.ɵinj=u.cJS({imports:[[n.ez,c.EIu,c.jzK,c.fNO,s.fV,i.u5,i.UX,a.T_,a.GK,r.Bz.forChild((0,s.Ve)(b))]]}),t})()}}]); \ No newline at end of file diff --git a/7195.8887a1c2fff5dae78378.js b/7195.8887a1c2fff5dae78378.js new file mode 100644 index 000000000..dfaa1cd0d --- /dev/null +++ b/7195.8887a1c2fff5dae78378.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7195],{84219:(t,e,n)=>{n.d(e,{h:()=>A});var o=n(74788),i=n(42600),r=n(1065),s=n(75747),a=n(16331),l=n(28986),c=n(99036),d=n(24751),u=n(65266),h=n(12057),p=n(71753),f=n(21032),m=n(38190),g=n(22545),b=n(91283),v=n(75526),y=n(19042),w=n(4642),k=n(45642);function x(t,e){if(1&t&&(o.TgZ(0,"button",7),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.Q6J("value",t),o.xp6(1),o.hij(" ",t," ")}}function C(t,e){if(1&t&&(o.TgZ(0,"tui-data-list",5),o.YNc(1,x,2,2,"button",6),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngForOf",t.modes)}}function M(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-primitive-textfield",8),o.NdJ("valueChange",(function(e){return o.CHM(t),o.oxw().onHexChange(e)})),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("maskito",t.hexMask)("tuiTextfieldLabelOutside",!0)("value",t.hex)}}function S(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(e,n.color[1],n.color[2],n.color[3])})),o.qZA(),o.TgZ(1,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(n.color[0],e,n.color[2],n.color[3])})),o.qZA(),o.TgZ(2,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(n.color[0],n.color[1],e,n.color[3])})),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("max",255)("min",0)("ngModel",t.color[0])("tuiTextfieldLabelOutside",!0),o.xp6(1),o.Q6J("max",255)("min",0)("ngModel",t.color[1])("tuiTextfieldLabelOutside",!0),o.xp6(1),o.Q6J("max",255)("min",0)("ngModel",t.color[2])("tuiTextfieldLabelOutside",!0)}}let A=(()=>{class t{constructor(){this.color=[0,0,0,1],this.colorChange=new o.vpe,this.hexMask={mask:new RegExp("^[A-F\\d]{0,6}$","gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return(0,i.WSX)(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(100*this.color[3])}onHexChange(t){if(6!==t.length)return;const e=(0,i.ROF)(t);this.updateColor([e[0],e[1],e[2],this.color[3]])}onRgbChange(...t){this.updateColor(t)}updateColor(t){this.color=t,this.colorChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:8,consts:[["tuiDropdownAlign","left","tuiDropdownLimitWidth","min","tuiTextfieldSize","m",1,"t-select","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],["size","s",4,"tuiDataList"],["tuiTextfieldSize","m","tuiValueAccessor","",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["rgb",""],["decimal","never","tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity","tui-group__auto-width-item",3,"max","min","ngModel","tuiTextfieldLabelOutside","ngModelChange"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiTextfieldSize","m","tuiValueAccessor","",3,"maskito","tuiTextfieldLabelOutside","value","valueChange"],["decimal","never","tuiTextfieldSize","m",1,"t-rgb",3,"max","min","ngModel","tuiTextfieldLabelOutside","ngModelChange"]],template:function(t,e){if(1&t&&(o.TgZ(0,"tui-select",0),o.NdJ("ngModelChange",(function(t){return e.mode=t})),o.YNc(1,C,2,1,"tui-data-list",1),o.qZA(),o.YNc(2,M,1,3,"tui-primitive-textfield",2),o.YNc(3,S,3,12,"ng-template",null,3,o.W1O),o.TgZ(5,"tui-input-number",4),o.NdJ("ngModelChange",(function(t){return e.onRgbChange(e.color[0],e.color[1],e.color[2],t/100)})),o.qZA()),2&t){const t=o.MAs(4);o.Q6J("tuiTextfieldLabelOutside",!0)("ngModel",e.mode),o.xp6(2),o.Q6J("ngIf",e.isHex)("ngIfElse",t),o.xp6(3),o.Q6J("max",100)("min",0)("ngModel",e.opacity)("tuiTextfieldLabelOutside",!0)}},directives:[r.u,s.O,a.Ek,l.s,c.x,d.JJ,d.On,u.g,h.O5,p.q,f.g,m.T,g.q,h.sg,b.v,v.y,y.B,w.n,k.ro],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:5.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}.t-rgb[_ngcontent-%COMP%], .t-opacity[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},22540:(t,e,n)=>{n.d(e,{$:()=>c});var o=n(97582),i=n(74788),r=n(91211),s=n(42600),a=n(97398),l=n(19157);class c{constructor(t){this.sanitizer=t,this.colorChange=new i.vpe,this.point=[0,1],this.hue=0,this.opacity=1}set color(t){if(this.currentColor.every(((e,n)=>e===t[n]))&&t[3]===this.opacity)return;const[e,n,o]=(0,s.bDt)(t[0],t[1],t[2]);this.opacity=t[3],this.hue=e/360,this.point=[n,1-o/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${(0,s.qZG)(360*this.hue,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(t){this.point=t,this.updateColor()}onHueChange(t){this.hue=t,this.updateColor()}onOpacityChange(t){this.opacity=(0,s.FGw)(t,2),this.updateColor()}getCurrentColor(t,e){return(0,s.qZG)(360*t,e[0],255*(1-e[1]))}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}}c.ɵfac=function(t){return new(t||c)(i.Y36(r.H7))},c.ɵcmp=i.Xpm({type:c,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"value","valueChange"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-flat-picker",0),i.NdJ("valueChange",(function(t){return e.onPointChange(t)})),i.qZA(),i.TgZ(1,"div",1),i.TgZ(2,"tui-linear-picker",2),i.NdJ("valueChange",(function(t){return e.onHueChange(t)})),i.qZA(),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"tui-linear-picker",4),i.NdJ("valueChange",(function(t){return e.onOpacityChange(t)})),i.qZA(),i.qZA()),2&t&&(i.Udp("background-color",e.base),i.Q6J("value",e.point),i.xp6(2),i.Q6J("value",e.hue),i.xp6(1),i.Udp("background",e.gradient),i.xp6(1),i.Q6J("value",e.opacity))},directives:[a.J,l.P],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(rgba(0,0,0,0),#000000),linear-gradient(to right,#ffffff,rgba(255,255,255,0));margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:#ff0000}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0}),(0,o.gn)([s.UMq],c.prototype,"getCurrentColor",null)},58333:(t,e,n)=>{n.d(e,{s:()=>R});var o=n(97582),i=n(74788),r=n(91211),s=n(42600),a=n(40401),l=n(63097),c=n(98778),d=n(18289),u=n(12057),h=n(22540),p=n(77825),f=n(22545),m=n(91283),g=n(27626),b=n(44099),v=n(13938),y=n(10406),w=n(63790),k=n(51928),x=n(84219),C=n(20690),M=n(1706);function S(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){const t=i.oxw(),e=i.MAs(1);i.ekj("t-arrow_rotated",e.open),i.Q6J("src",t.options.icons.colorSelectorDropdownChevron)}}function A(t,e){if(1&t&&i._UZ(0,"tui-svg",14),2&t){const t=i.oxw(3);i.Q6J("src",t.options.icons.colorSelectorDropdownCheck)}}function O(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",12),i.NdJ("click",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.enter.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.space.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)})),i._uU(1),i.YNc(2,A,1,1,"tui-svg",13),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.uIk("aria-checked",n.isModeActive(t)),i.xp6(1),i.hij(" ",t," "),i.xp6(1),i.Q6J("ngIf",n.isModeActive(t))}}function T(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",10),i.YNc(1,O,3,3,"button",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function N(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).onDirectionChange(e)})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.ekj("t-direction_active",n.isDirectionActive(t)),i.Q6J("icon",n.getIcon(t))("tuiHint",t)}}function E(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"hr",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-linear-multi-picker",17),i.NdJ("indexChange",(function(e){return i.CHM(t),i.oxw().onIndexChange(e)}))("valueChange",(function(e){return i.CHM(t),i.oxw().onStopsChange(e)})),i.qZA(),i.qZA(),i.TgZ(4,"div",18),i.YNc(5,N,1,4,"button",19),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(2),i.Udp("background",t.gradient),i.xp6(1),i.Q6J("value",t.stopsKeys),i.xp6(2),i.Q6J("ngForOf",t.buttons)}}function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-edit",21),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().onColorChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("color",t.color)}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-palette",22),i.NdJ("selectedColor",(function(e){return i.CHM(t),i.oxw().onPalettePick(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("colors",t.palette)}}const L=[0,0,0,0],H=[[0,[0,0,0,1]],[1,[255,255,255,1]]],P={"to top right":"tuiIconArrowUpRight","to right":"tuiIconArrowRight","to bottom right":"tuiIconArrowDownRight","to bottom":"tuiIconArrowDown","to bottom left":"tuiIconArrowDownLeft","to left":"tuiIconArrowLeft","to top left":"tuiIconArrowUpLeft","to top":"tuiIconArrowUp"};class R{constructor(t,e,n){this.options=t,this.sanitizer=e,this.modes=n,this.stops=new Map(H),this.currentStop=0,this.direction="to bottom",this.colors=new Map,this.colorChange=new i.vpe,this.color=[0,0,0,1],this.currentMode=this.modes[0],this.buttons=["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}set colorSetter(t){this.parse(t)}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[1]}getIcon(t){return P[t]}isModeActive(t){return this.currentMode===t}isDirectionActive(t){return this.direction===t}onPalettePick(t){this.updateColor(t)}onDirectionChange(t){this.direction=t,this.updateColor(this.getGradient(t))}onModeSelect(t,e){this.currentMode=t,e.open=!1,this.updateColor(t===this.modes[0]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(t){this.currentStop=this.stopsKeys[t]}onColorChange(t){this.isGradient?(this.stops.set(this.currentStop,t),this.updateColor(this.getGradient(this.direction))):this.updateColor(`rgba(${t.join(", ")})`)}onStopsChange(t){const e=this.stopsKeys.find((e=>!t.includes(e))),n=t.find((t=>!this.stopsKeys.includes(t)));void 0===e&&void 0!==n&&this.addStop(n),void 0!==e&&void 0===n&&this.removeStop(e),void 0!==e&&void 0!==n&&this.replaceStop(e,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(t){return Array.from(t.keys())}filterPalette(t,e){const n=new Map(t);return n.forEach(((t,o)=>{(t.startsWith("linear-gradient")&&!e||!t.startsWith("linear-gradient")&&e)&&n.delete(o)})),n}updateColor(t){this.colorChange.emit(t)}getGradient(t){return`linear-gradient(${t}, ${[...this.stopsKeys].sort(s.A2j).map((t=>`rgba(${this.getStop(t).join(", ")}) ${100*t}%`)).join(", ")})`}getStop(t){return this.stops.get(t)||L}addStop(t){const e=this.stopsKeys.reduce(((e,n)=>Math.abs(n-t)o===t?[e,n]:[o,this.getStop(o)])))}parse(t){t.startsWith("linear-gradient")?this.parseGradient(t):this.parseColor(t)}parseGradient(t){if(t===this.getGradient(this.direction))return;const e=(0,l._N)((0,l.U5)(t));this.currentMode=this.modes[1],this.direction=e.side,this.currentStop=0,this.stops=new Map(e.stops.length?e.stops.map((({color:t,position:e})=>[parseFloat(e)/100,(0,s.MpC)(t)])):H)}parseColor(t){this.currentMode=this.modes[0],this.currentStop=0,this.color=(0,s.MpC)(t)}}R.ɵfac=function(t){return new(t||R)(i.Y36(a.mJ),i.Y36(r.H7),i.Y36(a.dj))},R.ɵcmp=i.Xpm({type:R,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:["color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:12,vars:7,consts:[[1,"t-select",3,"content"],["dropdown",""],["appearance","","size","s","tuiButton","","type","button",3,"iconRight"],["arrow",""],["menu",""],[4,"ngIf"],[3,"color","colorChange"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],[1,"t-arrow",3,"src"],["role","menu","size","s",1,"t-menu"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent"],["class","t-checkmark",3,"src",4,"ngIf"],[1,"t-checkmark",3,"src"],[1,"t-hr"],[1,"t-wrapper"],[1,"t-gradient",3,"value","indexChange","valueChange"],[1,"t-buttons"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button","class","t-direction",3,"t-direction_active","icon","tuiHint","click",4,"ngFor","ngForOf"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button",1,"t-direction",3,"icon","tuiHint","click"],["tuiGroup","",1,"t-edit",3,"color","colorChange"],[1,"t-palette",3,"colors","selectedColor"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-hosted-dropdown",0,1),i.TgZ(2,"button",2),i._uU(3),i.qZA(),i.YNc(4,S,1,3,"ng-template",null,3,i.W1O),i.YNc(6,T,2,1,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(8,E,6,4,"ng-container",5),i.TgZ(9,"tui-color-picker",6),i.NdJ("colorChange",(function(t){return e.onColorChange(t)})),i.qZA(),i.YNc(10,I,1,1,"tui-color-edit",7),i.YNc(11,D,1,1,"tui-palette",8)),2&t){const t=i.MAs(5),n=i.MAs(7);i.Q6J("content",n),i.xp6(2),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.currentMode," "),i.xp6(5),i.Q6J("ngIf",e.isGradient),i.xp6(1),i.Q6J("color",e.currentColor),i.xp6(1),i.Q6J("ngIf",!e.isGradient),i.xp6(1),i.Q6J("ngIf",e.palette.size)}},directives:[c.o,d.v,u.O5,h.$,p.P,f.q,u.sg,m.v,g.e,b.$,v.D,y.x,w.t,k.D,x.h,C.g,M.R],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0}),(0,o.gn)([s.UMq],R.prototype,"getStopsKeys",null),(0,o.gn)([s.UMq],R.prototype,"filterPalette",null)},97398:(t,e,n)=>{n.d(e,{J:()=>s});var o=n(74788),i=n(42600),r=n(87901);let s=(()=>{class t{constructor(t){this.value=[0,0],this.valueChange=new o.vpe,t.subscribe((t=>{this.value=t,this.valueChange.emit([t[0],t[1]])}))}get left(){return 100*this.value[0]}get top(){return 100*this.value[1]}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")("top",e.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},83950:(t,e,n)=>{n.d(e,{H9:()=>h,wl:()=>g,VM:()=>m}),n(84219);var o=n(12057),i=n(24751),r=n(45642),s=n(43232),a=n(6667),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,i.u5,r.U5,a.SCC,a.Jyo,s.KWI,s.cnw,s.dpK,s.pcV,a._Hh]]}),t})();n(22540);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,d,u]]}),t})();n(58333);var p=n(42600);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.goS]]}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fNO,s.jhF,h,f,s.goS,s.EIu,s.pcV,p.Ah6,c,s.n6B,m]]}),t})();n(97398),n(27626),n(19157),n(1706)},27626:(t,e,n)=>{n.d(e,{e:()=>l});var o=n(74788),i=n(42600),r=n(87901),s=n(12057);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.NdJ("dblclick",(function(){const e=o.CHM(t).index;return o.oxw().onClick(e)}))("mousedown",(function(){const e=o.CHM(t).index;return o.oxw().onMouseDown(e)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("left",100*t,"%")}}let l=(()=>{class t{constructor(t){this.value=[0,1],this.valueChange=new o.vpe,this.indexChange=new o.vpe,this.index=NaN,t.subscribe((([t])=>{this.onPicker(t)}))}onMouseUp(){this.index=NaN}onMouseDown(t){this.updateIndex(t)}onClick(t){this.value.length>2&&this.updateValue(this.value.filter(((e,n)=>n!==t)))}onPicker(t){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),this.value.some(((e,n)=>e===t&&n!==this.index))||this.updateValue(this.value.map(((e,n)=>n===this.index?t:e)))}updateIndex(t){this.index=t,this.indexChange.emit(t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(t,e){1&t&&o.NdJ("mouseup",(function(){return e.onMouseUp()}),!1,o.evT)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:1,consts:[["class","t-circle",3,"left","dblclick","mousedown",4,"ngFor","ngForOf"],[1,"t-circle",3,"dblclick","mousedown"]],template:function(t,e){1&t&&o.YNc(0,a,1,2,"div",0),2&t&&o.Q6J("ngForOf",e.value)},directives:[s.sg],styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},19157:(t,e,n)=>{n.d(e,{P:()=>s});var o=n(74788),i=n(42600),r=n(87901);let s=(()=>{class t{constructor(t){this.value=0,this.valueChange=new o.vpe,t.subscribe((([t])=>{this.value=t,this.valueChange.emit(t)}))}get left(){return 100*this.value}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},1706:(t,e,n)=>{n.d(e,{R:()=>u});var o=n(74788),i=n(12057),r=n(13938),s=n(10406),a=n(63790),l=n(51928),c=n(44099);function d(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",1),o.NdJ("click",(function(){const e=o.CHM(t).$implicit;return o.oxw().selectedColor.emit(e.value)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("background",t.value),o.Q6J("id",t.key)("tuiHint",t.key)("tuiHintDescribe",t.key)}}let u=(()=>{class t{constructor(){this.colors=new Map,this.selectedColor=new o.vpe,this.originalOrder=(t,e)=>0}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"id","background","tuiHint","tuiHintDescribe","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"id","tuiHint","tuiHintDescribe","click"]],template:function(t,e){1&t&&(o.YNc(0,d,1,5,"button",0),o.ALo(1,"keyvalue")),2&t&&o.Q6J("ngForOf",o.xi3(1,1,e.colors,e.originalOrder))},directives:[i.sg,r.D,s.x,a.t,l.D,c.$],pipes:[i.Nd],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0}),t})()},10553:(t,e,n)=>{n.d(e,{l:()=>T});var o=n(12057),i=n(74788),r=n(42600),s=n(69725),a=n(5915),l=n(40401),c=n(45400),d=n(36866),u=n(30528),h=n(24751),p=n(77825),f=n(18289),m=n(73460),g=n(96281),b=n(65538);let v=(()=>{class t{transform(t,e,n){return"#"===e?t.filter((t=>t!==n)):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilterAnchors",type:t,pure:!0}),t})();function y(t,e){1&t&&(i.ynx(0),i._uU(1,"Edit anchor"),i.BQk())}function w(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"Link to anchor"),i.qZA())}function k(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"URL"),i.qZA())}function x(t,e){if(1&t&&(i.YNc(0,w,2,0,"span",1),i.YNc(1,k,2,0,"ng-template",null,12,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.prefixIsHashMode)("ngIfElse",t)}}function C(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.ngIf,n=i.oxw(2);i.xp6(1),i.hij(" ",n.prefixIsHashMode?t.anchorExample:t.urlExample," ")}}function M(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"label",4),i.TgZ(2,"div",5),i.YNc(3,y,2,0,"ng-container",1),i.YNc(4,x,3,2,"ng-template",null,6,i.W1O),i.qZA(),i.TgZ(6,"div",7),i.TgZ(7,"div",8),i._uU(8),i.qZA(),i.TgZ(9,"tui-input-inline",9),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().url=e}))("input",(function(e){let n;return i.CHM(t),i.oxw().onChange(null==(n=e.target)?null:n.value)}))("keydown.backspace",(function(){return i.CHM(t),i.oxw().onBackspace()}))("keydown.prevent.enter",(function(){return i.CHM(t),i.oxw().onSave()})),i.YNc(10,C,2,1,"ng-container",3),i.ALo(11,"async"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"tui-svg",10),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClear()})),i.qZA(),i.TgZ(13,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onSave()})),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(5),e=i.oxw();i.xp6(3),i.Q6J("ngIf",e.anchorMode)("ngIfElse",t),i.xp6(5),i.Oqu(e.prefix),i.xp6(1),i.ekj("t-input_filled",e.hasUrl),i.Q6J("ngModel",e.url),i.xp6(1),i.Q6J("ngIf",i.lcZ(11,11,e.texts$)),i.xp6(2),i.ekj("t-cleaner_hidden",!e.hasUrl),i.Q6J("src",e.options.icons.popupLinkRemove),i.xp6(1),i.Q6J("icon",e.options.icons.popupLinkSave)}}function S(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i._uU(1),i.ALo(2,"tuiShortUrl"),i.qZA(),i.TgZ(3,"button",14),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onEdit()})),i.qZA(),i.TgZ(4,"button",15),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRemove()})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("href",t.href,i.LSH)("icon",t.prefixIsHashMode?"tuiIconHash":"tuiIconExternalLink"),i.xp6(1),i.hij(" ",i.lcZ(2,5,t.url)," "),i.xp6(2),i.Q6J("icon",t.options.icons.popupPreviewLinkEdit),i.xp6(1),i.Q6J("icon",t.options.icons.popupPreviewLinkClear)}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",19),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).setAnchor(e)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(1),i.hij(" #",t," ")}}function O(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"hr",16),i.TgZ(2,"tui-scrollbar"),i.TgZ(3,"div",17),i.YNc(4,A,2,1,"button",18),i.ALo(5,"tuiFilterAnchors"),i.qZA(),i.qZA(),i.BQk()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngForOf",i.Dn7(5,1,t.anchorIds,t.prefix,t.url))}}let T=(()=>{class t{constructor(t,e,n,o){this.doc=t,this.texts$=e,this.editor=n,this.options=o,this.isOnlyAnchorMode=this.detectAnchorMode(),this.addLink=new i.vpe,this.removeLink=new i.vpe,this.url=this.getHrefOrAnchorId(),this.edit=!this.url,this.prefix=this.makeDefaultPrefix(),this.anchorIds=this.getAllAnchorsIds()}get defaultProtocol(){var t,e;return null!==(e=null===(t=this.options.linkOptions)||void 0===t?void 0:t.protocol)&&void 0!==e?e:s.Ci}set anchorMode(t){this.isOnlyAnchorMode=t,this.prefix=t?s._s:this.makeDefaultPrefix()}get anchorMode(){return this.isOnlyAnchorMode}get prefixIsHashMode(){return this.prefix===s._s}get hasUrl(){return!!this.url}get href(){return`${this.prefix}${this.url}`}get showAnchorsList(){return!this.anchorMode&&this.edit&&this.anchorIds.length>0}get isViewMode(){return!this.edit}onSelectionChange(){this.isViewMode&&(this.url=this.getHrefOrAnchorId(),this.anchorMode=this.detectAnchorMode())}onMouseDown(t){(0,r.veZ)(t.target)&&!t.target.matches("a, button, input")&&t.preventDefault()}setAnchor(t){this.url=t,this.changePrefix(!0)}changePrefix(t){this.prefix=t?s._s:this.defaultProtocol}onSave(){this.url?this.addLink.emit(this.href):this.removeLink.emit()}onBackspace(){this.url||(this.prefix=this.isOnlyAnchorMode?s._s:this.defaultProtocol)}onEdit(){this.edit=!0}onRemove(){this.removeLink.emit()}onChange(t){this.url=this.removePrefix(t)}onClear(){this.url=""}makeDefaultPrefix(){var t,e;const n=this.getAnchorElement(),o=(0,c.$)(null!==(t=null==n?void 0:n.getAttribute("href"))&&void 0!==t?t:"").prefix||this.defaultProtocol;return n&&(!n.getAttribute("href")&&n.getAttribute("id")||(null===(e=n.getAttribute("href"))||void 0===e?void 0:e.startsWith(s._s)))?s._s:o}detectAnchorMode(){const t=this.getAnchorElement();return!(null==t?void 0:t.href)&&!!(null==t?void 0:t.getAttribute("id"))}getFocusedParentElement(){var t,e;return(null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentElement)||null}getAnchorElement(){var t,e,n;const o=this.getFocusedParentElement();return null!==(n=null!==(t=null==o?void 0:o.closest("a"))&&void 0!==t?t:null===(e=null==o?void 0:o.querySelector("img"))||void 0===e?void 0:e.closest("a"))&&void 0!==n?n:null}getHrefOrAnchorId(){const t=this.getAnchorElement();return t?this.removePrefix(t.getAttribute("href")||t.getAttribute("id")||""):this.url}removePrefix(t){var e;const n=t.startsWith(s._s)||this.prefix===s._s?t:`${null!==(e=this.prefix)&&void 0!==e?e:""}${t}`,{prefix:o,path:i}=(0,c.$)(n),r=this.isOnlyAnchorMode||o===s._s||""===o&&this.prefix===s._s;return this.prefix=r?s._s:""===o?this.defaultProtocol:o,i}getAllAnchorsIds(){var t;const e=Array.from(null!==(t=this.editor.getOriginTiptapEditor().view.dom.querySelectorAll('[data-type="jump-anchor"]'))&&void 0!==t?t:[]);return Array.from(e).map((t=>t.getAttribute("id")||"")).filter(Boolean)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.K0),i.Y36(l.b$),i.Y36(a.$3),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-edit-link"]],hostBindings:function(t,e){1&t&&i.NdJ("selectionchange",(function(){return e.onSelectionChange()}),!1,i.evT)("mousedown",(function(t){return e.onMouseDown(t)}))},inputs:{anchorMode:"anchorMode"},outputs:{addLink:"addLink",removeLink:"removeLink"},decls:5,vars:3,consts:[[1,"t-edit-link",3,"mousedown"],[4,"ngIf","ngIfElse"],["view",""],[4,"ngIf"],[1,"t-label"],[1,"t-label-properties"],["fullOptions",""],[1,"t-url"],[1,"t-prefix"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","input","keydown.backspace","keydown.prevent.enter"],[1,"t-cleaner",3,"src","click"],["appearance","icon","shape","rounded","size","s","title","Insert link","tuiIconButton","","type","button",1,"t-button",3,"icon","click"],["urlTitle",""],["iconAlign","left","target","_blank","tuiLink","",1,"t-link",3,"href","icon"],["appearance","icon","shape","rounded","size","s","title","Change link","tuiIconButton","","type","button",1,"t-button","t-edit-button",3,"icon","click"],["appearance","icon","automation-id","toolbar__popup-link-clear-button","shape","rounded","size","s","title","Remove link","tuiIconButton","","type","button",1,"t-button",3,"icon","click"],[1,"t-hr"],[1,"t-anchor-list"],["type","button","class","t-anchor",3,"click",4,"ngFor","ngForOf"],["type","button",1,"t-anchor",3,"click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.NdJ("mousedown",(function(t){return t.stopImmediatePropagation()})),i.YNc(1,M,14,13,"ng-container",1),i.YNc(2,S,5,7,"ng-template",null,2,i.W1O),i.qZA(),i.YNc(4,O,6,5,"ng-container",3)),2&t){const t=i.MAs(3);i.xp6(1),i.Q6J("ngIf",e.edit)("ngIfElse",t),i.xp6(3),i.Q6J("ngIf",e.showAnchorsList)}},directives:[o.O5,d.l,u.k,h.JJ,h.On,p.P,f.v,m.V,g.I,o.sg],pipes:[o.Ov,b.X,v],styles:["[_nghost-%COMP%]{display:block;min-width:18.75rem}.t-edit-link[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{font:var(--tui-font-text-s);height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-label-properties[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:8.375rem;justify-content:space-between}.t-property_inactive[_ngcontent-%COMP%]{opacity:.5}.t-url[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-m);color:var(--tui-text-02)}.t-input[_ngcontent-%COMP%]{flex:1}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-button[_ngcontent-%COMP%]{width:2rem;height:2rem;margin:0 .25rem;transition:background .2s}.t-edit-button[_ngcontent-%COMP%]{margin-left:auto}.t-link[_ngcontent-%COMP%]{margin:0 1rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.t-cleaner[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-base-06);cursor:pointer;margin-left:auto}.t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-cleaner_hidden[_ngcontent-%COMP%]{visibility:hidden}.t-anchor-list[_ngcontent-%COMP%]{display:flex;max-height:12.5rem;flex-direction:column}.t-anchor[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;min-height:2.75rem;padding:.375rem .5rem;margin:.125rem .5rem;border-radius:var(--tui-radius-m);text-align:left}.t-anchor[_ngcontent-%COMP%]:hover{background:var(--tui-base-02);cursor:pointer}"],changeDetection:0}),t})()},1884:(t,e,n)=>{n.d(e,{Fu:()=>c}),n(10553);var o=n(12057),i=n(24751),r=n(42600),s=n(43232),a=n(6667),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,i.u5,r.Q7V,s.fNO,s.EIu,s.jzK,a.z$l,a.YMv,s.Jyu]]}),t})();n(65538),n(45400)},65538:(t,e,n)=>{n.d(e,{X:()=>i});var o=n(74788);let i=(()=>{class t{transform(t){return t.length<60?t:`${t.slice(0,Math.max(0,40))}...${t.slice(t.length-10)}`}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=o.Yjl({name:"tuiShortUrl",type:t,pure:!0}),t})()},45400:(t,e,n)=>{n.d(e,{$:()=>a});var o=n(42600),i=n(69725);function r(t=""){var e;const n=null!==(e=t.indexOf(i.jU))&&void 0!==e?e:-1,[o,s]=n>-1?[t.slice(0,n+i.jU.length),t.slice(n+i.jU.length,t.length)]:["",t],a=[o,s].filter(Boolean);return(null==s?void 0:s.includes("://"))&&a.length>1?r(s):a}function s(t=""){const[e,n]=t.split(/:/).slice(-2).filter(Boolean);return e&&n&&!(0,o.lj0)(t)?[`${e}:`,n]:[]}function a(t=""){if(t.startsWith(i._s))return{prefix:i._s,path:t.slice(1)};const[e="",n=""]=t.includes(i.jU)?r(t):s(t);if(n.includes(i.DN)){const[t,e]=s(n);if(t&&e)return{prefix:t,path:e}}return{prefix:e,path:""===e?t:n}}},22916:(t,e,n)=>{n.d(e,{V:()=>p});var o=n(74788),i=n(42600),r=n(76995),s=n(51703),a=n(12057);const l=function(){return[0,1]};function c(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("tuiSizeChange",(function(e){return o.CHM(t),o.oxw().sizeChange.emit(e)})),o.qZA()}2&t&&o.Q6J("tuiResizer",o.DdM(1,l))}const d=function(t){return[t,0]},u=function(){return[1,0]},h=["*"];let p=(()=>{class t{constructor(){this.autoHeight=!1,this.width=null,this.height=null,this.sizeChange=new o.vpe}get hostWidth(){return(0,i.dtH)(this.width)?(0,i.O9r)(this.width):this.width}get hostHeight(){return this.autoHeight?null:(0,i.dtH)(this.height)?(0,i.O9r)(this.height):this.height}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-editor-resizable"]],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("width",e.hostWidth)("height",e.hostHeight)},inputs:{autoHeight:"autoHeight",width:"width",height:"height"},outputs:{sizeChange:"sizeChange"},ngContentSelectors:h,decls:5,vars:8,consts:[["tuiResizeable","",1,"t-resizable"],[1,"t-handle","t-handle-left-side",3,"tuiResizer","tuiSizeChange"],["class","t-handle t-handle-bottom-side",3,"tuiResizer","tuiSizeChange",4,"ngIf"],[1,"t-handle","t-handle-right-side",3,"tuiResizer","tuiSizeChange"],[1,"t-handle","t-handle-bottom-side",3,"tuiResizer","tuiSizeChange"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.TgZ(2,"div",1),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.YNc(3,c,1,2,"div",2),o.TgZ(4,"div",3),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.qZA()),2&t&&(o.ekj("t-resizable-auto-height",e.autoHeight),o.xp6(2),o.Q6J("tuiResizer",o.VKq(5,d,-1)),o.xp6(1),o.Q6J("ngIf",!e.autoHeight),o.xp6(1),o.Q6J("tuiResizer",o.DdM(7,u)))},directives:[r.U,s.L,a.O5],styles:['[_nghost-%COMP%]{position:relative;display:inline-block;box-sizing:border-box}[_nghost-%COMP%] .t-resizable[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%] .t-resizable-auto-height[_ngcontent-%COMP%]{height:auto!important}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}[_nghost-%COMP%]:hover .t-handle[_ngcontent-%COMP%]:after{opacity:1}.t-handle[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;width:.75rem;cursor:col-resize;justify-content:center;align-items:center;height:100%}.t-handle[_ngcontent-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";width:50%;height:33%;box-sizing:border-box;border-radius:var(--tui-radius-m);background:var(--tui-base-08);border:1px solid var(--tui-base-03);opacity:0}.t-handle-left-side[_ngcontent-%COMP%]{left:0}.t-handle-bottom-side[_ngcontent-%COMP%]{top:unset;bottom:.3125rem;height:.95rem;width:100%}.t-handle-right-side[_ngcontent-%COMP%]{right:0}'],changeDetection:0}),t})()},8274:(t,e,n)=>{n.d(e,{_3:()=>r,Sl:()=>l});var o=n(13704),i=n(74788);let r=(()=>{class t extends o.d{constructor(){super(...arguments),this.currentHeight=0,this.currentWidth=0}get attrs(){var t;return(null===(t=this.node)||void 0===t?void 0:t.attrs)||{src:""}}get width(){return this.currentWidth||this.attrs.width||null}get height(){return this.currentHeight||this.attrs.height||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})();n(22916);var s=n(12057),a=n(42600);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[s.ez,a.k54,a.gjW]]}),t})()},76690:(t,e,n)=>{n.d(e,{D:()=>c});var o=n(12057),i=n(74788),r=n(42600),s=n(43232),a=n(46561),l=n(40401);let c=(()=>{class t{constructor(t,e,n,o,i,r,s){this.el=t,this.renderer=e,this.sanitizer=n,this.tuiSanitizer=o,this.document=i,this.editor=r,this.options=s}set content(t){var e;this.renderer.setProperty(this.el.nativeElement,"innerHTML",this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,null!==(e=null==t?void 0:t.replace(/colwidth/g,"width"))&&void 0!==e?e:""):this.sanitizer.sanitize(i.q3G.HTML,null!=t?t:""))}click(t){var e,n;if(this.editor||!(0,r.veZ)(t.target))return;const o=(null===(n=null===(e=t.target)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.getAttribute("href"))||"";o.startsWith("#")&&(this.document.location.hash=o.replace("#",""),t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.Tiy),i.Y36(s.hmb,8),i.Y36(o.K0),i.Y36(a.JU,8),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-socket"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click",(function(t){return e.click(t)})),2&t&&i.ekj("tui-editor-socket",e.options.enableDefaultStyles)},inputs:{content:"content"},decls:0,vars:0,template:function(t,e){},styles:['.tui-editor-socket{display:block;margin:0;color:var(--tui-text-01);font:var(--tui-font-text-m)}.tui-editor-socket[tuiTiptapEditor]{overflow:hidden}.tui-editor-socket .ProseMirror{min-height:5.375rem;padding:.2rem 1rem;outline:none;white-space:pre-wrap}.tui-editor-socket .resize-cursor{cursor:ew-resize;cursor:col-resize}.tui-editor-socket h1,.tui-editor-socket h2,.tui-editor-socket h3,.tui-editor-socket h4,.tui-editor-socket h5,.tui-editor-socket h6{word-break:break-word;line-height:normal}.tui-editor-socket h1:first-child,.tui-editor-socket h2:first-child,.tui-editor-socket p:last-child{margin-bottom:0}.tui-editor-socket p:last-child,.tui-editor-socket pre:last-child{margin-bottom:0}.tui-editor-socket p:empty:after{content:" ";white-space:pre}.tui-editor-socket p:first-child{margin-top:0;min-width:1px}.tui-editor-socket p{margin:1rem 0}.tui-editor-socket p>span{line-height:initial}.tui-editor-socket blockquote{margin:1.25rem 0 1.25rem 1.5rem;padding-left:1.0625rem;border-left:1px solid var(--tui-base-04)}.tui-editor-socket hr{border:none;border-top:1px solid var(--tui-base-03);margin:1rem 0}.tui-editor-socket mark{background:unset;color:inherit}.tui-editor-socket font[face="Courier New"]{display:inline-block;padding:.25rem .5rem;border-radius:.25rem;background-color:#ecf1f7;word-break:break-word}.tui-editor-socket a:not([data-type="jump-anchor"]){color:var(--tui-link);text-decoration:none;outline:none}.tui-editor-socket a:not([data-type="jump-anchor"]):hover{color:var(--tui-link-hover);text-decoration:underline}.tui-editor-socket a:not([data-type="jump-anchor"]):active{color:var(--tui-primary-active)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]{text-decoration:underline;-webkit-text-decoration-color:var(--tui-link);text-decoration-color:var(--tui-link)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:before{content:"#"}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:hover{color:var(--tui-link)}.tui-editor-socket .ProseMirror a:hover img[contenteditable=false]{cursor:pointer;outline:.25rem solid var(--tui-link)}.tui-editor-socket ul:not([data-type]),.tui-editor-socket ol:not([data-type]){list-style-type:none;margin:1rem 1rem 1rem 1.5rem;padding:0}.tui-editor-socket ul:not([data-type]) li,.tui-editor-socket ol:not([data-type]) li{margin:.75rem 0}.tui-editor-socket ul:not([data-type]) li>p,.tui-editor-socket ol:not([data-type]) li>p{display:inline;margin:0 auto;word-break:break-word}.tui-editor-socket ul:not([data-type]) li:before,.tui-editor-socket ol:not([data-type]) li:before{unicode-bidi:-webkit-isolate;unicode-bidi:isolate;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-transform:none;text-indent:0;text-align:start;text-align-last:start}.tui-editor-socket ul:not([data-type]) li>p{display:block}.tui-editor-socket ul:not([data-type])>li:before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:100%;margin:.5rem .875rem .0625rem -1.375rem;background-color:var(--tui-primary);vertical-align:top;box-sizing:border-box;float:left}.tui-editor-socket li ul:not([data-type])>li:before{background:none;border:.125rem solid var(--tui-primary)}.tui-editor-socket li ul:not([data-type])>li>ul:not([data-type])>li:before{background:var(--tui-primary);border-radius:0;width:.375rem;height:.375rem}.tui-editor-socket ol:not([data-type]){counter-reset:item}.tui-editor-socket ol:not([data-type])>li:before{content:counters(item,".") ".";display:block;margin:0 .75rem 0 -1.5rem;counter-increment:item;color:var(--tui-base-05);vertical-align:top;float:left;white-space:nowrap}.tui-editor-socket ul[data-type] li[data-checked]{display:flex;grid-gap:.5rem;gap:.5rem}.tui-editor-socket ul[data-type] li[data-checked]>label>input[type=checkbox]{position:relative;width:var(--t-size, 1rem);height:var(--t-size, 1rem);border-radius:var(--tui-radius-xs, .25rem);transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem;margin-top:.25rem;cursor:pointer}.tui-editor-socket ul[data-type] li[data-checked]>label>input[type=checkbox]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:currentColor;-webkit-mask:url(\'data:image/svg+xml,\') center / 100%;mask:url(\'data:image/svg+xml,\') center / 100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}.tui-editor-socket ul[data-type] li[data-checked=true]>label>input[type=checkbox]{background:var(--tui-primary, #526ed3);color:var(--tui-primary-text, #fff)}.tui-editor-socket ul[data-type] li[data-checked=true]>label>input[type=checkbox]:before{-webkit-mask-image:url(\'data:image/svg+xml,\');mask-image:url(\'data:image/svg+xml,\');transform:scale(1)}.tui-editor-socket ul[data-type] li[data-checked=false]>label>input[type=checkbox]{box-shadow:inset 0 0 0 1px var(--tui-base-04);color:var(--tui-text-01)}.tui-editor-socket._preview-image img{cursor:pointer}.tui-editor-socket .ProseMirror video,.tui-editor-socket .ProseMirror audio{pointer-events:none}.tui-editor-socket img.ProseMirror-selectednode{outline:.25rem solid var(--tui-primary-hover)}.tui-editor-socket .t-editor-placeholder:before{content:attr(data-placeholder);float:left;color:var(--tui-base-05);pointer-events:none;height:0}.tui-editor-socket table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.tui-editor-socket table .tableWrapper{overflow-x:auto}.tui-editor-socket .tableWrapper,.tui-editor-socket .tui-table-wrapper{overflow-x:auto}.tui-editor-socket table td{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word}.tui-editor-socket table th{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word;font-weight:bold;text-align:left;background-color:var(--tui-base-02);min-height:2rem}.tui-editor-socket table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:#adf;pointer-events:none}.tui-editor-socket table td>*{margin-top:0;margin-bottom:0}.tui-editor-socket table th>*{margin-top:0;margin-bottom:0}.tui-editor-socket .selectedCell:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--tui-selection);pointer-events:none}.tui-editor-socket summary{display:flex;align-items:center;min-height:3.5rem;width:100%;padding:0 1.25rem;box-sizing:border-box;border-radius:var(--tui-radius-l);pointer-events:none;outline:none}.tui-editor-socket summary:focus-visible{outline:2px solid var(--tui-link)}.tui-editor-socket summary p{min-width:1px;margin:0}.tui-editor-socket summary::-webkit-details-marker{display:none}.tui-editor-socket details[open] summary{border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-editor-socket .details-arrow,.tui-editor-socket .t-details-arrow{position:absolute;top:1.5rem;right:1.25rem;height:.575rem;width:.575rem;border:1px solid var(--tui-base-06);border-width:0 2px 2px 0;transform:rotate(45deg);transition:var(--tui-duration, .3s);-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none}.tui-editor-socket details{width:100%;border:1px solid var(--tui-base-04);border-radius:var(--tui-radius-l)}.tui-editor-socket div[data-type=details-content]{padding:1.25rem;min-height:3rem;border:1px solid var(--tui-base-04);border-width:1px 0 0}.tui-editor-socket div[data-type=details-content] h1:first-child,.tui-editor-socket div[data-type=details-content] h2:first-child,.tui-editor-socket div[data-type=details-content] pre:first-child,.tui-editor-socket div[data-type=details-content] ul:first-child,.tui-editor-socket div[data-type=details-content] ol:first-child,.tui-editor-socket div[data-type=details-content] ol li:first-child,.tui-editor-socket div[data-type=details-content] ul li:first-child{margin-top:0}.tui-editor-socket .details-wrapper,.tui-editor-socket .t-details-wrapper{margin-bottom:.5rem;position:relative;display:flex}.tui-editor-socket .details-wrapper_rendered .details-arrow,.tui-editor-socket .t-details-wrapper_rendered .details-arrow,.tui-editor-socket .details-wrapper_rendered .t-details-arrow,.tui-editor-socket .t-details-wrapper_rendered .t-details-arrow{pointer-events:none}.tui-editor-socket .details-wrapper_rendered summary,.tui-editor-socket .t-details-wrapper_rendered summary{transition:transform var(--tui-duration, .3s);cursor:pointer;pointer-events:auto}.tui-editor-socket .details-wrapper_rendered summary:hover,.tui-editor-socket .t-details-wrapper_rendered summary:hover{background:var(--tui-base-02)}.tui-editor-socket details[open]+.details-arrow,.tui-editor-socket details[open]+.t-details-arrow{top:1.75rem;transform:rotate(225deg)}.tui-editor-socket pre{white-space:pre-wrap;word-break:break-word;border-radius:.25rem;margin:1rem 0;padding:.75rem 1rem;font-family:Courier,monospace;color:var(--tui-text-02);background:var(--tui-base-02)}.tui-editor-socket .tui-group-node{display:flex;flex-direction:row}.tui-editor-socket .tui-group-node:hover>.tui-group-pointer{pointer-events:auto;opacity:1}.tui-editor-socket .tui-group-pointer{opacity:0;min-height:.8125rem;max-height:.8125rem;min-width:.8125rem;max-width:.8125rem;margin:.3125rem .3125rem 0 0;cursor:grab;background-image:url(\'data:image/svg+xml;charset=UTF-8,\');background-repeat:no-repeat;background-size:contain;background-position:center}.tui-editor-socket [data-mode=onDark] .tui-group-pointer{background-image:url(\'data:image/svg+xml;charset=UTF-8,\')}\n'],encapsulation:2,changeDetection:0}),t})()},13099:(t,e,n)=>{n.d(e,{W:()=>u});var o=n(12057),i=n(74788),r=n(42600),s=n(43232),a=n(26215),l=n(9112),c=n(88002),d=n(87519);let u=(()=>{class t extends s.kkl{constructor(t,e,n,o,i,s){super((t=>this.stream$.subscribe(t))),this.range=t,this.doc=e,this.selection$=n,this.el=o,this.vcr=i,this.dropdown=s,this.handler$=new a.X(r.YeN),this.stream$=(0,l.aj)([this.handler$,this.selection$.pipe((0,c.U)((()=>this.getRange())),(0,d.x)(((t,e)=>t.startOffset===e.startOffset&&t.endOffset===e.endOffset)))]).pipe((0,c.U)((([t,e])=>{var n;const o=this.el.nativeElement.contains(e.commonAncestorContainer)||(null===(n=e.commonAncestorContainer.parentElement)||void 0===n?void 0:n.closest("tui-dropdown"));return this.range=o&&(0,r.wqZ)(e.commonAncestorContainer)?e:this.range,o&&t(this.range)||this.inDropdown(e)}))),this.position="selection",this.type="dropdown"}set tuiToolbarDropdown(t){(0,r.Ajw)(t)||this.handler$.next(t)}getClientRect(){var t;switch(this.position){case"tag":{const{commonAncestorContainer:t}=this.range,e=(0,r.veZ)(t)?t:t.parentNode;return e&&(0,r.veZ)(e)?e.getBoundingClientRect():r.Jy9}case"word":return(0,s.DII)(this.range).getBoundingClientRect();default:{const e=this.range.getBoundingClientRect();return 0===e.x&&0===e.y&&0===e.width&&0===e.height?(null!==(t=this.el.nativeElement.querySelector("p"))&&void 0!==t?t:this.el.nativeElement).getBoundingClientRect():e}}}ngOnDestroy(){this.ghost&&this.vcr.element.nativeElement.removeChild(this.ghost)}getRange(){const t=(0,r.ie4)(this.doc),e=this.doc.getSelection();return(t&&(0,r.qYx)(t)&&this.el.nativeElement.contains(t)?this.veryVerySadInputFix(t):(null==e?void 0:e.rangeCount)&&e.getRangeAt(0)||this.range).cloneRange()}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:o}=this.el,i=this.boxContains(t.commonAncestorContainer),r=this.boxContains(n)&&o.contains(e),s=this.boxContains(e)&&o.contains(n);return i||r||s}veryVerySadInputFix(t){const{ghost:e=this.initGhost(t)}=this,{top:n,left:o,width:i,height:s}=t.getBoundingClientRect(),{selectionStart:a,selectionEnd:l,value:c}=t,d=this.doc.createRange(),u=this.el.nativeElement.getBoundingClientRect();return e.style.top=(0,r.O9r)(n-u.top),e.style.left=(0,r.O9r)(o-u.left),e.style.width=(0,r.O9r)(i),e.style.height=(0,r.O9r)(s),e.textContent=r.tUj+c+r.f$6,d.setStart(e.firstChild,a||0),d.setEnd(e.firstChild,l||0),d}initGhost(t){const e=this.doc.createElement("div"),{font:n,letterSpacing:o,textTransform:i,padding:r}=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=o,e.style.textTransform=i,e.style.padding=r,this.vcr.element.nativeElement.appendChild(e),this.ghost=e,e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.i0M),i.Y36(o.K0),i.Y36(s.iSh),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(s.tdC))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiToolbarDropdown",""]],inputs:{position:["tuiToolbarDropdownPosition","position"],tuiToolbarDropdown:"tuiToolbarDropdown"},features:[i._Bn([(0,s.UKU)(t),(0,s.Ic9)(t)]),i.qOj]}),t})()},8820:(t,e,n)=>{n.d(e,{a:()=>J});var o=n(12057),i=n(74788),r=n(24751),s=n(42600),a=n(43232),l=n(90712),c=n(69725),d=n(5915),u=n(40401),h=n(63097),p=n(87874),f=n(46782),m=n(1566),g=n(42),b=n(55788),v=n(62490),y=n(96281),w=n(57495),k=n(21335),x=n(16331),C=n(82335),M=n(80475),S=n(62541),A=n(13099),O=n(76690),T=n(6723),N=n(10553);function E(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",7),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(2).fileAttached.emit(e)})),i.Hsn(1,1),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("disabled",!t.interactive)("tools",t.tools)}}function I(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij(" ",t.exampleText," ")}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",12),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(3).focus(e)})),i.GkF(1,13),i.qZA()}if(2&t){i.oxw();const t=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",t)}}function L(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",14),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(3).focus(e)})),i.GkF(1,13),i._UZ(2,"tui-editor-portal-host"),i.qZA()}if(2&t){i.oxw();const t=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",t)}}function H(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",20),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(5).fileAttached.emit(e)})),i.Hsn(1,2),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw(4);i.Q6J("disabled",!e.interactive)("tools",e.tools)("tuiActiveZoneParent",t)}}function P(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-edit-link",21,22),i.NdJ("addLink",(function(e){i.CHM(t);const n=i.MAs(1),o=i.oxw(5);return n.anchorMode?o.addAnchor(e):o.addLink(e)}))("removeLink",(function(){i.CHM(t);const e=i.MAs(1),n=i.oxw(5);return e.anchorMode?n.removeAnchor():n.removeLink()})),i.qZA()}}function R(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,H,2,3,"tui-toolbar",18),i.YNc(2,P,2,0,"tui-edit-link",19),i.qZA()),2&t){const t=i.oxw(3).ngIf,e=i.oxw();i.ekj("t-floating",e.floatingToolbar),i.xp6(1),i.Q6J("ngIf",t&&e.tools.length&&e.floatingToolbar),i.xp6(1),i.Q6J("ngIf",!e.floatingToolbar||e.isLinkSelected)}}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"tui-editor-socket",16),i.NdJ("stateChange",(function(){return 0}))("valueChange",(function(e){return i.CHM(t),i.oxw(3).onModelChange(e)})),i.qZA(),i.qZA(),i.YNc(2,R,3,4,"ng-template",null,17,i.W1O)}if(2&t){const t=i.MAs(3),e=i.oxw(3);i.Q6J("tuiDropdown",t)("tuiToolbarDropdown",e.dropdownSelectionHandler)("tuiToolbarDropdownPosition",e.floatingToolbar?"selection":"tag"),i.xp6(1),i.Q6J("editable",e.interactive)("value",e.value)}}function $(t,e){if(1&t&&(i.ynx(0),i.YNc(1,D,2,1,"tui-scrollbar",9),i.YNc(2,L,3,1,"tui-scrollbar",10),i.YNc(3,_,4,5,"ng-template",null,11,i.W1O),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.floatingToolbar),i.xp6(1),i.Q6J("ngIf",!t.floatingToolbar)}}function z(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.NdJ("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)})),i.TgZ(1,"div",2),i.YNc(2,E,2,2,"tui-toolbar",3),i.TgZ(3,"div",4),i.Hsn(4),i.qZA(),i.YNc(5,I,2,1,"div",5),i.qZA(),i.YNc(6,$,5,2,"ng-container",6),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("appearance",n.options.appearence)("disabled",n.disabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),i.xp6(2),i.Q6J("ngIf",t&&n.tools.length&&!n.floatingToolbar),i.xp6(1),i.ekj("t-placeholder_raised",n.placeholderRaised),i.xp6(2),i.Q6J("ngIf",n.hasExampleText),i.xp6(1),i.Q6J("ngIf",t)}}const B=["*",[["tools"]],[["tools"]]],F=["*","tools","tools"];let J=(()=>{class t extends s.M$T{constructor(t,e,n,o,r,s,a,l){super(t,e,a),this.editorLoaded$=n,this.editorService=o,this.contentProcessor=r,this.doc=s,this.options=l,this.exampleText="",this.tools=c.Db,this.floatingToolbar=!1,this.fileAttached=new i.vpe,this.focused=!1,this.isSelectionLink=t=>this.currentFocusedNodeIsTextAnchor(t)||this.currentFocusedNodeIsImageAnchor,this.editorLoaded$.pipe((0,p.g)(0),(0,f.R)(this.destroy$)).subscribe((()=>this.patchContentEditableElement()))}get nativeFocusableElement(){var t,e;return this.computedDisabled?null:(null===(e=null===(t=this.el)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("[contenteditable].ProseMirror"))||null}get dropdownSelectionHandler(){return this.floatingToolbar?s.YeN:this.focused?this.isSelectionLink:s.IyD}get editor(){return this.editorService.getOriginTiptapEditor()?this.editorService:null}get placeholderRaised(){return this.computedFocused&&!this.readOnly||this.hasValue}get hasExampleText(){return!!this.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly}get isLinkSelected(){var t,e,n;const o=null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentNode;return"a"===(null==o?void 0:o.nodeName.toLowerCase())||!!(null===(n=null==o?void 0:o.parentElement)||void 0===n?void 0:n.closest("tui-edit-link"))}writeValue(t){var e,n;if(t===this.value)return;const o=this.contentProcessor(t||"");super.writeValue(o),o!==t&&(null===(e=this.control)||void 0===e||e.setValue(o,{onlySelf:!1,emitEvent:!1,emitModelToViewChange:!1,emitViewToModelChange:!1})),this.focused||null===(n=this.doc.getSelection())||void 0===n||n.removeAllRanges()}onActiveZone(t){var e;this.focused=t,this.updateFocused(t),null===(e=this.control)||void 0===e||e.updateValueAndValidity()}onModelChange(t){this.value=t}addAnchor(t){var e;null===(e=this.editor)||void 0===e||e.setAnchor(t)}removeAnchor(){var t;null===(t=this.editor)||void 0===t||t.removeAnchor()}addLink(t){var e,n;null===(e=this.editor)||void 0===e||e.selectClosest(),null===(n=this.editor)||void 0===n||n.setLink(t)}removeLink(){var t;null===(t=this.editor)||void 0===t||t.unsetLink()}focus(t){var e,n;(null===(e=this.nativeFocusableElement)||void 0===e?void 0:e.contains(t.target))||(t.preventDefault(),null===(n=this.nativeFocusableElement)||void 0===n||n.focus())}ngOnDestroy(){var t;null===(t=this.editor)||void 0===t||t.destroy()}getFallbackValue(){return""}currentFocusedNodeIsTextAnchor(t){var e,n;return!!(null===(n=null===(e=t.startContainer.parentElement)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.contains(this.focusNode))&&(0,h.nC)(t)}get focusNode(){var t,e;return null!==(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)&&void 0!==e?e:null}get hasValue(){return!!this.value}get currentFocusedNodeIsImageAnchor(){var t,e,n;return"A"===(null===(t=this.focusNode)||void 0===t?void 0:t.nodeName)&&["IMG","TUI-IMAGE-EDITOR"].includes(null===(n=null===(e=this.focusNode)||void 0===e?void 0:e.childNodes[0])||void 0===n?void 0:n.nodeName)}patchContentEditableElement(){var t,e;null===(t=this.nativeFocusableElement)||void 0===t||t.setAttribute("translate",this.options.translate),null===(e=this.nativeFocusableElement)||void 0===e||e.setAttribute("spellcheck",String(this.options.spellcheck))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(u.ZW),i.Y36(d.$3),i.Y36(u.F1),i.Y36(o.K0),i.Y36(u.bK,8),i.Y36(u.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor"]],viewQuery:function(t,e){if(1&t&&(i.Gf(d.JU,5,i.SBq),i.Gf(l.M6,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.el=t.first),i.iGM(t=i.CRH())&&(e.toolbar=t.first)}},inputs:{exampleText:"exampleText",tools:"tools",floatingToolbar:"floatingToolbar"},outputs:{fileAttached:"fileAttached"},features:[i._Bn([(0,s.FTc)(t),(0,s.f$T)({delay:a.GcO}),m.m]),i.qOj],ngContentSelectors:F,decls:2,vars:3,consts:[["tuiWrapper","","class","t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange",4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange"],[1,"t-toolbar-wrapper"],[3,"disabled","tools","fileAttached",4,"ngIf"],[1,"t-placeholder"],["class","t-example-text",4,"ngIf"],[4,"ngIf"],[3,"disabled","tools","fileAttached"],[1,"t-example-text"],["class","t-scrollbar",3,"mousedown",4,"ngIf"],["tuiEditorPortal","","class","t-scrollbar",3,"mousedown",4,"ngIf"],["editor",""],[1,"t-scrollbar",3,"mousedown"],[3,"ngTemplateOutlet"],["tuiEditorPortal","",1,"t-scrollbar",3,"mousedown"],["tuiDropdownLimitWidth","auto",3,"tuiDropdown","tuiToolbarDropdown","tuiToolbarDropdownPosition"],["tuiTiptapEditor","",3,"editable","value","stateChange","valueChange"],["dropdown",""],[3,"disabled","tools","tuiActiveZoneParent","fileAttached",4,"ngIf"],[3,"addLink","removeLink",4,"ngIf"],[3,"disabled","tools","tuiActiveZoneParent","fileAttached"],[3,"addLink","removeLink"],["link",""]],template:function(t,e){1&t&&(i.F$t(B),i.YNc(0,z,7,11,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.editorLoaded$))},directives:[o.O5,g.o,b.e,v.M,y.I,o.tP,w.A,k.d,x.Ek,C.t,M.V,S.A,A.W,O.D,T.J,N.l],pipes:[o.Ov],styles:["[_nghost-%COMP%]{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);max-height:inherit;min-height:10rem;box-sizing:border-box;overflow:clip}.t-wrapper[_ngcontent-%COMP%]{display:flex;max-height:inherit;min-height:inherit;cursor:text;overflow:clip;flex-direction:column;border-radius:inherit}.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);margin:1rem 1rem -1rem;min-height:1.625rem;width:95%;font-size:.9375rem}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.t-placeholder_raised[_ngcontent-%COMP%]{width:110%}.t-placeholder[_ngcontent-%COMP%]:empty{min-height:.8rem}.t-example-text[_ngcontent-%COMP%]{position:absolute;left:1rem;margin-top:1.6rem;color:var(--tui-base-06);letter-spacing:normal;text-transform:none}.t-example-text_light[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-example-text_dark[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-scrollbar[_ngcontent-%COMP%]{display:flex;border-bottom:.3125rem solid transparent;padding-bottom:1.3125rem;box-sizing:border-box;flex:1}.t-floating[_ngcontent-%COMP%], .t-floating[_ngcontent-%COMP%] .t-tools-wrapper{max-width:var(--tui-floating-toolbar-max-width, 31.25rem);flex-wrap:nowrap}"],changeDetection:0}),t})()},1566:(t,e,n)=>{n.d(e,{m:()=>h});var o=n(74788),i=n(5915),r=n(40401),s=n(74235),a=n(9112),l=n(15257),c=n(88002),d=n(47349),u=n(53058);const h=[{provide:r.F4,deps:[r.Wf],useFactory:t=>{const e=new s.t(1);return Promise.all(t).then((t=>e.next(t))),e}},{provide:r.Y1,deps:[o.Qsj],useFactory:t=>t.createElement("div")},{provide:r.ZW,deps:[r.Y1,r.F4,r.bG],useFactory:(t,e,n)=>(0,a.aj)([n,e]).pipe((0,l.q)(1),(0,c.U)((([e,n])=>new e({element:t,extensions:n}))),(0,d.d)({bufferSize:1,refCount:!0}))},i.$3,u.Y]},21335:(t,e,n)=>{n.d(e,{d:()=>r});var o=n(42600),i=n(74788);let r=(()=>{class t extends o.ErH{}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-editor-portal-host"]],features:[i._Bn([{provide:o.N9Y,useExisting:o.ae2},{provide:o.ErH,useExisting:t}]),i.qOj],decls:2,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&i.GkF(0,null,0)},styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;display:block;height:100%;width:100%;pointer-events:none}"],changeDetection:0}),t})()},57495:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(74788),i=n(42600),r=n(43232),s=n(53058);let a=(()=>{class t extends r.O4x{constructor(t){super(),this.el=t,this.type="viewport"}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiEditorPortal",""]],features:[o._Bn([{provide:i.ae2,useExisting:s.Y},(0,r.ckU)(t)]),o.qOj]}),t})()},53058:(t,e,n)=>{n.d(e,{Y:()=>r});var o=n(42600),i=n(74788);let r=(()=>{class t extends o.N9Y{}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}),t})()},69057:(t,e,n)=>{n.d(e,{j:()=>v});var o=n(97582),i=n(74788),r=n(24751),s=n(91211),a=n(42600),l=n(43232),c=n(63097),d=n(98778),u=n(75526),h=n(19042),p=n(61183),f=n(58333),m=n(55788);function g(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Udp("background",t.background)}}function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-selector",5),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().value=e})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw();i.Q6J("colors",n.colors)("tuiActiveZoneParent",t)("color",n.value)}}class v extends a.M$T{constructor(t,e,n){super(t,e),this.domSanitizer=n,this.colors=new Map,this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return!!this.dropdown&&this.dropdown.focused}get background(){return this.sanitize(this.value,this.domSanitizer)}onClick(){this.open=!this.open}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}getFallbackValue(){return"#000000"}sanitize(t,e){return t.startsWith("linear-gradient(")?e.bypassSecurityTrustStyle((0,c.CH)((0,c._N)((0,c.U5)(t)))):t}}v.ɵfac=function(t){return new(t||v)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.H7))},v.ɵcmp=i.Xpm({type:v,selectors:[["tui-input-color"]],viewQuery:function(t,e){if(1&t&&(i.Gf(l.ycg,5),i.Gf(l.o1K,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.dropdown=t.first)}},hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.onClick()}))},inputs:{colors:"colors"},features:[i._Bn([],[(0,l.fxH)({maxHeight:600})]),i.qOj],ngContentSelectors:["*"],decls:7,vars:12,consts:[[1,"t-wrapper",3,"content","open","openChange"],[1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIconLeft","value","valueChange","focusedChange"],["color",""],["picker",""],[1,"t-color"],[3,"colors","tuiActiveZoneParent","color","colorChange"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.Hsn(2),i.qZA(),i.qZA(),i.YNc(3,g,1,2,"ng-template",null,2,i.W1O),i.YNc(5,b,1,3,"ng-template",null,3,i.W1O)),2&t){const t=i.MAs(4),n=i.MAs(6);i.Q6J("content",n)("open",e.open),i.xp6(1),i.Q6J("disabled",e.disabled)("focusable",e.focusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIconLeft",t)("value",e.value)}},directives:[d.o,u.y,h.B,p.a,f.s,m.e],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0}),(0,o.gn)([a.UMq],v.prototype,"sanitize",null)},29761:(t,e,n)=>{n.d(e,{X:()=>w});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(42486),d=n(98778),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("left")})),a.qZA(),a.TgZ(2,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("center")})),a.qZA(),a.TgZ(3,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("right")})),a.qZA(),a.TgZ(4,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("justify")})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf,n=a.oxw();a.xp6(1),a.Q6J("icon",n.options.icons.textAlignLeft)("pseudoActive",!(null==t||!t.left))("tuiHint",e.justifyLeft),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignCenter)("pseudoActive",!(null==t||!t.center))("tuiHint",e.justifyCenter),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignRight)("pseudoActive",!(null==t||!t.right))("tuiHint",e.justifyRight),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignJustify)("pseudoActive",!(null==t||!t.justify))("tuiHint",e.justifyFull)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,b,5,12,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=a.MAs(1),e=a.MAs(4),n=a.oxw().ngIf,o=a.oxw();a.Q6J("content",e),a.xp6(2),a.Q6J("focusable",t.open)("icon",o.options.icons.textAlignPreview)("pseudoActive",t.open)("tuiHint",n.justify)}}function y(t,e){if(1&t&&(a.ynx(0),a.YNc(1,v,5,5,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.alignState$))}}let w=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.alignState$=(0,r.aj)([this.editor.isActive$({textAlign:"left"}),this.editor.isActive$({textAlign:"right"}),this.editor.isActive$({textAlign:"center"}),this.editor.isActive$({textAlign:"justify"})]).pipe((0,s.U)((([t,e,n,o])=>({left:t,right:e,center:n,justify:o}))))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-align-content"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["align",""],["appearance","icon","automation-id","toolbar__align-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["alignDropdown",""],[1,"t-dropdown"],["appearance","icon","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,y,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.L,d.o,u.v,h.$,p.D,f.x,m.t,g.D],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},56496:(t,e,n)=>{n.d(e,{T:()=>w});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(98778),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(22545),g=n(12057),b=n(91283);function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).index;return a.oxw(2).onCode(!!e)})),a._uU(1),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t," ")}}function y(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,v,2,1,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.codeOptionsTexts$))}}let w=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.codeOptionsTexts$=o,this.hintText$=this.texts$.pipe((0,r.U)((t=>t.code))),this.insideCode$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.isActive("code")||this.editor.isActive("codeBlock"))),(0,s.x)())}onCode(t){t?this.editor.toggleCodeBlock():this.editor.toggleCode()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.Mr))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-code"]],decls:7,vars:9,consts:[[3,"content"],["codes",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["codesDropdown",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.ALo(4,"async"),a.YNc(5,y,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(6);a.Q6J("content",n),a.xp6(2),a.Q6J("focusable",t.open)("icon",e.options.icons.code)("pseudoActive",t.open||a.lcZ(3,5,e.insideCode$))("tuiHint",a.lcZ(4,7,e.hintText$))}},directives:[l.o,c.v,d.$,u.D,h.x,p.t,f.D,m.q,g.sg,b.v],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},47859:(t,e,n)=>{n.d(e,{U:()=>g});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(12057),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928);function m(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().removeDetails()})),a.ALo(1,"async"),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("disabled",!!a.lcZ(1,4,n.disabled$))("focusable",!1)("icon",n.options.icons.detailsRemove)("tuiHint",t.removeDetails)}}let g=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n,this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("details"))),(0,s.x)())}removeDetails(){this.editor.removeDetails()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-details-remove"]],decls:2,vars:3,consts:[["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,m,2,6,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.v,d.$,u.D,h.x,p.t,f.D],pipes:[l.Ov],encapsulation:2,changeDetection:0}),t})()},26929:(t,e,n)=>{n.d(e,{y:()=>f});var o=n(5915),i=n(40401),r=n(74788),s=n(12057),a=n(18289),l=n(44099),c=n(13938),d=n(10406),u=n(63790),h=n(51928);function p(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",1),r.NdJ("click",(function(){return r.CHM(t),r.oxw().setDetails()})),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("focusable",!1)("icon",n.options.icons.detailsAdd)("tuiHint",t.setDetails)}}let f=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n}setDetails(){this.editor.setDetails()}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.$3),r.Y36(i.rf),r.Y36(i.mJ))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-details"]],decls:2,vars:3,consts:[["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(r.YNc(0,p,1,3,"button",0),r.ALo(1,"async")),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.texts$))},directives:[s.O5,a.v,l.$,c.D,d.x,u.t,h.D],pipes:[s.Ov],encapsulation:2,changeDetection:0}),t})()},37982:(t,e,n)=>{n.d(e,{m:()=>x});var o=n(42600),i=n(69725),r=n(5915),s=n(40401),a=n(88002),l=n(74788),c=n(98778),d=n(18289),u=n(44099),h=n(13938),p=n(10406),f=n(63790),m=n(51928),g=n(22545),b=n(12057),v=n(91283);const y=function(){return{}};function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).setFontOption(e)})),l.ALo(1,"lowercase"),l._uU(2),l.qZA()}if(2&t){const t=e.$implicit;l.Udp("font-family",t.family)("font-size",t.px,"px")("font-weight",t.weight),l.Q6J("ngClass",(null==t?null:t.ngClass)||l.DdM(12,y))("ngStyle",(null==t?null:t.ngStyle)||l.DdM(13,y)),l.uIk("automation-id","tui_font__"+l.lcZ(1,10,t.name||"")),l.xp6(2),l.hij(" ",t.name," ")}}function k(t,e){if(1&t&&(l.TgZ(0,"tui-data-list"),l.YNc(1,w,3,14,"button",4),l.ALo(2,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",l.lcZ(2,1,t.fontsOptions$))}}let x=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.fontOptionsTexts$=o,this.fontsOptions$=this.fontOptionsTexts$.pipe((0,a.U)((t=>this.options.fontOptions(t)))),this.fontText$=this.texts$.pipe((0,a.U)((t=>t.font)))}onClick({headingLevel:t,px:e}){this.setFontOption({headingLevel:t,px:e})}setFontOption({headingLevel:t,px:e}){const n=this.editor.getFontColor();this.clearPreviousTextStyles(),t?this.editor.setHeading(t):this.editor.setParagraph({fontSize:(0,o.O9r)(e||0)}),n!==i.hK&&this.editor.setFontColor(n)}clearPreviousTextStyles(){this.editor.removeEmptyTextStyle(),this.editor.toggleMark("textStyle")}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.mJ),l.Y36(r.$3),l.Y36(s.rf),l.Y36(s.UN))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-font-size"]],decls:6,vars:7,consts:[[3,"content"],["fonts",""],["appearance","icon","automation-id","toolbar__font-size-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["fontsDropdown",""],["tuiOption","",3,"ngClass","ngStyle","fontFamily","fontSize","fontWeight","click",4,"ngFor","ngForOf"],["tuiOption","",3,"ngClass","ngStyle","click"]],template:function(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",0,1),l._UZ(2,"button",2),l.ALo(3,"async"),l.YNc(4,k,3,3,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(1),n=l.MAs(5);l.Q6J("content",n),l.xp6(2),l.Q6J("focusable",t.open)("icon",e.options.icons.fontSize)("pseudoActive",t.open)("tuiHint",l.lcZ(3,5,e.fontText$))}},directives:[c.o,d.v,u.$,h.D,p.x,f.t,m.D,g.q,b.sg,v.v,b.mk,b.PC],pipes:[b.Ov,b.i8],encapsulation:2,changeDetection:0}),t})()},10845:(t,e,n)=>{n.d(e,{h:()=>S});var o=n(69725),i=n(5915),r=n(72023),s=n(40401),a=n(9112),l=n(88002),c=n(74788),d=n(12057),u=n(98778),h=n(18289),p=n(44099),f=n(13938),m=n(10406),g=n(63790),b=n(51928);function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleBold()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleBold)("pseudoActive",t.bold)("tuiHint",e.bold)}}function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleItalic()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleItalic)("pseudoActive",t.italic)("tuiHint",e.italic)}}function w(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleUnderline()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleUnderline)("pseudoActive",t.underline)("tuiHint",e.underline)}}function k(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleStrike()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleStrike)("pseudoActive",t.strike)("tuiHint",e.strikeThrough)}}function x(t,e){if(1&t&&(c.TgZ(0,"div",6),c.YNc(1,v,1,3,"button",7),c.YNc(2,y,1,3,"button",7),c.YNc(3,w,1,3,"button",7),c.YNc(4,k,1,3,"button",7),c.qZA()),2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Bold)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Italic)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Underline)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Strikethrough))}}function C(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",2,3),c._UZ(2,"button",4),c.YNc(3,x,5,4,"ng-template",null,5,c.W1O),c.qZA()),2&t){const t=e.ngIf,n=c.MAs(1),o=c.MAs(4),i=c.oxw().ngIf,r=c.oxw();c.Q6J("content",o),c.xp6(2),c.Q6J("focusable",n.open)("icon",r.options.icons.fontStylePreview)("pseudoActive",n.open||t.bold||t.italic||t.underline||t.strike)("tuiHint",i.fontStyle)}}function M(t,e){if(1&t&&(c.ynx(0),c.YNc(1,C,5,5,"tui-hosted-dropdown",1),c.ALo(2,"async"),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",c.lcZ(2,1,t.fontStyleState$))}}let S=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.toolsSet=new Set(o.Db),this.editorTool=r._,this.fontStyleState$=(0,a.aj)([this.editor.isActive$("bold"),this.editor.isActive$("italic"),this.editor.isActive$("underline"),this.editor.isActive$("strike")]).pipe((0,l.U)((([t,e,n,o])=>({bold:t,italic:e,underline:n,strike:o}))))}set enabledTools(t){this.toolsSet=new Set(t)}isEnabled(t){return this.toolsSet.has(t)}}return t.ɵfac=function(e){return new(e||t)(c.Y36(s.mJ),c.Y36(i.$3),c.Y36(s.rf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-font-style"]],inputs:{enabledTools:"enabledTools"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"ngIf"],[3,"content"],["format",""],["appearance","icon","automation-id","toolbar__font-style-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["formatDropdown",""],[1,"t-dropdown"],["appearance","icon","size","s","tuiIconButton","","type","button","class","t-option t-option_margin",3,"icon","pseudoActive","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(c.YNc(0,M,3,3,"ng-container",0),c.ALo(1,"async")),2&t&&c.Q6J("ngIf",c.lcZ(1,1,e.texts$))},directives:[d.O5,u.o,h.v,p.$,f.D,m.x,g.t,b.D],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},28299:(t,e,n)=>{n.d(e,{d:()=>m});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(18289),c=n(44099),d=n(13938),u=n(10406),h=n(63790),p=n(51928),f=n(12057);let m=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n,this.insertGroupText$=this.texts$.pipe((0,r.U)((t=>t.insertGroup))),this.removeGroupText$=this.texts$.pipe((0,r.U)((t=>t.removeGroup))),this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("group"))),(0,s.x)())}addGroup(){this.editor.setGroup()}removeGroup(){this.editor.removeGroup()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-editor-group-tool"]],decls:5,vars:13,consts:[["appearance","icon","automation-id","toolbar__group-add-button","size","s","tuiHintDescribe","","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click"],["appearance","icon","automation-id","toolbar__group-remove-button","size","s","tuiHintDescribe","","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.TgZ(0,"button",0),a.NdJ("click",(function(){return e.addGroup()})),a.ALo(1,"async"),a.qZA(),a.TgZ(2,"button",1),a.NdJ("click",(function(){return e.removeGroup()})),a.ALo(3,"async"),a.ALo(4,"async"),a.qZA()),2&t&&(a.Q6J("focusable",!1)("icon",e.options.icons.groupAdd)("tuiHint",a.lcZ(1,7,e.insertGroupText$)),a.xp6(2),a.Q6J("disabled",!!a.lcZ(3,9,e.disabled$))("focusable",!1)("icon",e.options.icons.groupRemove)("tuiHint",a.lcZ(4,11,e.removeGroupText$)))},directives:[l.v,c.$,d.D,u.x,h.t,p.D],pipes:[f.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},78919:(t,e,n)=>{n.d(e,{U:()=>C});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(98778),d=n(16331),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928),b=n(12057),v=n(1706),y=n(55788);function w(t,e){if(1&t&&a._UZ(0,"div",6),2&t){const t=a.oxw().tuiLet;a.Udp("background",t)}}function k(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",7),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setBackgroundColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function x(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a.YNc(4,w,1,2,"div",4),a.YNc(5,k,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",n.open)("icon",i.options.icons.textHilite)("pseudoActive",n.open)("tuiHint",a.lcZ(3,7,i.backColorText$)),a.xp6(2),a.Q6J("ngIf",!i.isBlankColor(t||""))}}let C=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.backgroundColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getBackgroundColor()||this.options.blankColor)),(0,s.x)()),this.backColorText$=this.texts$.pipe((0,r.U)((t=>t.backColor)))}isBlankColor(t){return t===this.options.blankColor}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-highlight-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["hilite",""],["appearance","icon","automation-id","toolbar__hilite-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","pseudoActive","tuiHint"],["class","t-plate",3,"background",4,"ngIf"],["hiliteDropdown",""],[1,"t-plate"],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,x,7,9,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.backgroundColor$))},directives:[l.L,c.o,d.Ek,u.v,h.$,p.D,f.x,m.t,g.D,b.O5,v.R,y.e],pipes:[b.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},30560:(t,e,n)=>{n.d(e,{pu:()=>a,P_:()=>l,y9:()=>c,jP:()=>h,p7:()=>d,Zv:()=>u,XC:()=>f,Ur:()=>m,mp:()=>g,iA:()=>v,er:()=>y,__:()=>w,_t:()=>k}),n(29761);var o=n(12057),i=n(42600),r=n(43232),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,i.WDk]]}),t})();n(56496);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,r.pcV]]}),t})();n(26929);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS]]}),t})();n(47859),n(37982);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,r.pcV]]}),t})();n(10845);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS]]}),t})();n(28299);let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS]]}),t})();n(78919);var p=n(83950);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,p.VM,r.goS,r.dpK,i.Ah6,i.WDk]]}),t})();n(69201);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,i.WDk]]}),t})();n(82556);let g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,p.VM,r.fNO,r.goS,i.Ah6,r.dpK,i.WDk]]}),t})();n(76310),n(35659);let b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,i.IhY]]}),t})(),v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.dpK,r.fNO,r.goS,b]]}),t})();n(60020);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS,i.WDk]]}),t})();n(69023);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.goS,r.fNO,r.pcV,i.WDk]]}),t})();n(48838);let k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.jhF,r.dpK,r.goS,p.VM,i.Ah6,i.WDk]]}),t})()},69201:(t,e,n)=>{n.d(e,{w:()=>w});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(42486),d=n(98778),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleUnorderedList()})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleOrderedList()})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleTaskList()})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).sinkListItem()})),a.qZA(),a.TgZ(5,"button",11),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).liftListItem()})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf,n=a.oxw();a.xp6(1),a.Q6J("icon",n.options.icons.listUnOrdered)("pseudoActive",!(null==t||!t.unordered))("tuiHint",e.unorderedList),a.xp6(1),a.Q6J("icon",n.options.icons.listOrdered)("pseudoActive",!(null==t||!t.ordered))("tuiHint",e.orderedList),a.xp6(1),a.Q6J("icon",n.options.icons.taskList)("pseudoActive",!(null==t||!t.tasked)),a.xp6(1),a.Q6J("icon",n.options.icons.indent)("tuiHint",e.indent),a.xp6(1),a.Q6J("icon",n.options.icons.outdent)("tuiHint",e.outdent)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,b,6,12,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(4),i=a.oxw().ngIf,r=a.oxw();a.Q6J("content",o),a.xp6(2),a.Q6J("focusable",n.open)("icon",r.options.icons.listPreview)("pseudoActive",(null==n?null:n.open)||(null==t?null:t.unordered)||(null==t?null:t.ordered)||!1)("tuiHint",i.list)}}function y(t,e){if(1&t&&(a.ynx(0),a.YNc(1,v,5,5,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.listState$))}}let w=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.listState$=(0,r.aj)([this.editor.isActive$("orderedList"),this.editor.isActive$("bulletList"),this.editor.isActive$("taskList")]).pipe((0,s.U)((([t,e,n])=>({ordered:t,unordered:e,tasked:n}))))}sinkListItem(){this.editor.sinkListItem()}liftListItem(){this.editor.liftListItem()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-list-configs"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["list",""],["appearance","icon","automation-id","toolbar__ordering-list-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["listDropdown",""],[1,"t-dropdown","t-dropdown-list"],["appearance","icon","automation-id","toolbar__un-ordered-list-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"],["appearance","icon","automation-id","toolbar__ordered-list-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"],["appearance","icon","automation-id","toolbar__task-list-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","click"],["appearance","icon","automation-id","toolbar_indent-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","tuiHint","click"],["appearance","icon","automation-id","toolbar_outdent-button","size","s","tuiIconButton","","type","button",1,"t-option",3,"icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,y,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.L,d.o,u.v,h.$,p.D,f.x,m.t,g.D],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},82556:(t,e,n)=>{n.d(e,{p:()=>S});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(87519),l=n(74788),c=n(42486),d=n(98778),u=n(16331),h=n(18289),p=n(44099),f=n(13938),m=n(10406),g=n(63790),b=n(51928),v=n(12057),y=n(1706),w=n(55788);function k(t,e){if(1&t&&l._UZ(0,"div",7),2&t){const t=l.oxw(2).tuiLet;l.Udp("background",t)}}function x(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-palette",8),l.NdJ("selectedColor",(function(e){l.CHM(t),l.oxw();const n=l.MAs(1);return l.oxw(2).setCellColor(e),n.close()})),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(3);l.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function C(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",2,3),l._UZ(2,"button",4),l.ALo(3,"async"),l.YNc(4,k,1,2,"div",5),l.YNc(5,x,1,2,"ng-template",null,6,l.W1O),l.qZA()),2&t){const t=e.tuiLet,n=l.MAs(1),o=l.MAs(6),i=l.oxw().tuiLet,r=l.oxw();l.Q6J("canOpen",!!t)("content",o)("tuiDropdownMaxHeight",999),l.xp6(2),l.Q6J("disabled",!t)("focusable",n.open)("icon",r.options.icons.paint)("pseudoActive",n.open)("tuiHint",l.lcZ(3,9,r.colorText$)),l.xp6(2),l.Q6J("ngIf",!r.isBlankColor(i||""))}}function M(t,e){if(1&t&&(l.ynx(0),l.YNc(1,C,7,11,"tui-hosted-dropdown",1),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,1,t.isActive$))}}let S=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.colorText$=this.texts$.pipe((0,s.U)((t=>this.editor.isActive("group")&&t.hiliteGroup||this.editor.isActive("table")&&t.cellColor||""))),this.isActive$=(0,r.aj)([this.editor.isActive$("table"),this.editor.isActive$("group")]).pipe((0,s.U)((([t,e])=>t||e))),this.color$=this.editor.stateChange$.pipe((0,s.U)((()=>this.editor.getCellColor()||this.editor.getGroupColor()||this.options.blankColor)),(0,a.x)())}isBlankColor(t){return t===this.options.blankColor}setCellColor(t){this.editor.isActive("group")?this.editor.setGroupHilite(t):this.editor.isActive("table")&&this.editor.setCellColor(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.mJ),l.Y36(o.$3),l.Y36(i.rf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-table-cell-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[4,"tuiLet"],[3,"canOpen","content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"canOpen","content","tuiDropdownMaxHeight"],["colorSelect",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","pseudoActive","tuiHint"],["class","t-plate t-plate_paint",3,"background",4,"ngIf"],["cellColorDropdown",""],[1,"t-plate","t-plate_paint"],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(l.YNc(0,M,3,3,"ng-container",0),l.ALo(1,"async")),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.color$))},directives:[c.L,d.o,u.Ek,h.v,p.$,f.D,m.x,g.t,b.D,v.O5,y.R,w.e],pipes:[v.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},76310:(t,e,n)=>{n.d(e,{l:()=>v});var o=n(5915),i=n(40401),r=n(88002),s=n(74788),a=n(98778),l=n(16331),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(35659),g=n(12057);function b(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tui-table-size-selector",4),s.NdJ("selectSize",(function(e){return s.CHM(t),s.oxw().addTable(e)})),s.qZA()}}let v=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.insertTableText$=this.texts$.pipe((0,r.U)((t=>t.insertTable)))}addTable({rows:t,cols:e}){this.editor.enter();const n=this.editor.state.selection.anchor;this.editor.enter(),this.editor.enter(),this.editor.setTextSelection(n),this.editor.insertTable(t,e)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.mJ),s.Y36(o.$3),s.Y36(i.rf))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-create"]],decls:6,vars:6,consts:[["tuiDropdownAlign","left","tuiDropdownDirection","bottom",3,"content"],["table",""],["appearance","icon","automation-id","toolbar__insert-table-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint"],["tableDropdown",""],[3,"selectSize"]],template:function(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",0,1),s._UZ(2,"button",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,b,1,0,"ng-template",null,3,s.W1O)),2&t){const t=s.MAs(1),n=s.MAs(5);s.Q6J("content",n),s.xp6(2),s.Q6J("focusable",t.open)("icon",e.options.icons.insertTable)("tuiHint",s.lcZ(3,4,e.insertTableText$))}},directives:[a.o,l.Ek,c.v,d.$,u.D,h.x,p.t,f.D,m.M],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},60020:(t,e,n)=>{n.d(e,{Y:()=>y});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(12057),d=n(18289),u=n(44099),h=n(13938),p=n(10406),f=n(63790),m=n(51928);function g(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",(function(){a.CHM(t);const e=a.oxw().tuiLet,n=a.oxw();return e.mergeCells?n.mergeCells():n.splitCell()})),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw().tuiLet;a.Q6J("disabled",!n.mergeCells&&!n.splitCells)("focusable",!1)("icon",n.mergeCells?"tuiIconTableMergeLarge":"tuiIconTableSplitLarge")("tuiHint",n.mergeCells?t.mergeCells:t.splitCells)}}function b(t,e){if(1&t&&(a.ynx(0),a.YNc(1,g,1,4,"button",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,t.texts$))}}const v=function(t,e){return{mergeCells:t,splitCells:e}};let y=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.canMergeCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canMergeCells())),(0,s.x)()),this.canSplitCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canSplitCells())),(0,s.x)())}mergeCells(){this.editor.mergeCells()}splitCell(){this.editor.splitCell()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-table-merge-cells"]],decls:3,vars:8,consts:[[4,"tuiLet"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,b,3,3,"ng-container",0),a.ALo(1,"async"),a.ALo(2,"async")),2&t&&a.Q6J("tuiLet",a.WLB(5,v,a.lcZ(1,1,e.canMergeCells$),a.lcZ(2,3,e.canSplitCells$)))},directives:[l.L,c.O5,d.v,u.$,h.D,p.x,f.t,m.D],pipes:[c.Ov],encapsulation:2,changeDetection:0}),t})()},69023:(t,e,n)=>{n.d(e,{_:()=>M});var o=n(5915),i=n(40401),r=n(88002),s=n(74788),a=n(42486),l=n(98778),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(22545),g=n(12057),b=n(94052),v=n(91283);function y(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",2,3),s._UZ(2,"button",4),s.ALo(3,"async"),s.qZA()),2&t){const t=e.tuiLet,n=s.MAs(1),o=s.oxw(),i=s.MAs(3);s.Q6J("canOpen",!!t)("content",i),s.xp6(2),s.Q6J("disabled",!t)("focusable",n.open)("icon",o.options.icons.addRowTable)("tuiHint",s.lcZ(3,6,o.rowsColumnsManagingText$))}}function w(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",(function(){const e=s.CHM(t).index,n=s.oxw().index;return s.oxw(2).onTableOption(2*n+e)})),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function k(t,e){if(1&t&&(s.TgZ(0,"tui-opt-group"),s.YNc(1,w,2,1,"button",6),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t)}}function x(t,e){if(1&t&&(s.TgZ(0,"tui-data-list"),s.YNc(1,k,2,1,"tui-opt-group",5),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,t.tableCommandTexts$))}}var C=(()=>(function(t){t[t.InsertColumnBefore=0]="InsertColumnBefore",t[t.InsertColumnAfter=1]="InsertColumnAfter",t[t.InsertRowBefore=2]="InsertRowBefore",t[t.InsertRowAfter=3]="InsertRowAfter",t[t.DeleteColumn=4]="DeleteColumn",t[t.DeleteRow=5]="DeleteRow"}(C||(C={})),C))();let M=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.tableCommandTexts$=o,this.commandsRegistry={[C.InsertColumnAfter]:()=>this.editor.addColumnAfter(),[C.InsertColumnBefore]:()=>this.editor.addColumnBefore(),[C.InsertRowAfter]:()=>this.editor.addRowAfter(),[C.InsertRowBefore]:()=>this.editor.addRowBefore(),[C.DeleteColumn]:()=>this.editor.deleteColumn(),[C.DeleteRow]:()=>this.editor.deleteRow()},this.isActive$=this.editor.isActive$("table"),this.rowsColumnsManagingText$=this.texts$.pipe((0,r.U)((t=>t.rowsColumnsManaging)))}onTableOption(t){this.commandsRegistry[t]()}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.mJ),s.Y36(o.$3),s.Y36(i.rf),s.Y36(i.$i))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-row-column-manager"]],decls:4,vars:3,consts:[[3,"canOpen","content",4,"tuiLet"],["tableOptionsDropdown",""],[3,"canOpen","content"],["tableCommand",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint"],[4,"ngFor","ngForOf"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,y,4,8,"tui-hosted-dropdown",0),s.ALo(1,"async"),s.YNc(2,x,3,3,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("tuiLet",s.lcZ(1,1,e.isActive$))},directives:[a.L,l.o,c.v,d.$,u.D,h.x,p.t,f.D,m.q,g.sg,b.R,v.v],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},35659:(t,e,n)=>{n.d(e,{M:()=>c});var o=n(74788),i=n(62579),r=n(43232),s=n(46648);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).select()}))("mouseenter",(function(e){const n=o.CHM(t).$implicit,i=o.oxw().$implicit;return o.oxw().updateCurrentSize(n+1,i+1,e)})),o.qZA()}if(2&t){const t=e.$implicit,n=o.oxw().$implicit,i=o.oxw();o.ekj("t-cell_hovered",i.tableSelectHovered(t,n))}}function l(t,e){if(1&t&&(o.TgZ(0,"div",2),o.YNc(1,a,1,2,"div",3),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("tuiRepeatTimesOf",t.rowsNumber)}}let c=(()=>{class t{constructor(t){this.win=t,this.selectSize=new o.vpe,this.onSelectSize=this.selectSize,this.tableSize={rows:1,cols:1}}get columnsNumber(){return Math.min(Math.max(3,this.tableSize.cols+1),15)}get rowsNumber(){return Math.min(Math.max(3,this.tableSize.rows+1),15)}tableSelectHovered(t,e){return t70&&(this.tableSize={rows:t,cols:e})}onClick(){this.select()}select(){this.selectSize.emit(this.tableSize)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.m9))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-table-size-selector"]],outputs:{selectSize:"selectSize",onSelectSize:"onSelectSize"},decls:3,vars:3,consts:[["class","t-column",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-description"],[1,"t-column"],["class","t-cell",3,"t-cell_hovered","click","mouseenter",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-cell",3,"click","mouseenter"]],template:function(t,e){1&t&&(o.YNc(0,l,2,1,"div",0),o.TgZ(1,"div",1),o._uU(2),o.qZA()),2&t&&(o.Q6J("tuiRepeatTimesOf",e.columnsNumber),o.xp6(2),o.AsE("",e.tableSize.cols,"×",e.tableSize.rows,""))},directives:[s.X],styles:["[_nghost-%COMP%]{display:block;padding:.75rem}.t-cell[_ngcontent-%COMP%]{display:inline-block;background-color:var(--tui-base-01);width:1.25rem;height:1.25rem;border-radius:.25rem;margin:.125rem;border:1px solid var(--tui-base-04);cursor:pointer}.t-cell_hovered[_ngcontent-%COMP%]{background-color:var(--tui-base-02)}.t-column[_ngcontent-%COMP%]{white-space:nowrap}.t-description[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},48838:(t,e,n)=>{n.d(e,{G:()=>x});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(98778),d=n(16331),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928),b=n(1706),v=n(55788),y=n(12057);function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",6),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setFontColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function k(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a._UZ(4,"div",4),a.YNc(5,w,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",n.open)("icon",i.options.icons.textColor)("pseudoActive",n.open)("tuiHint",a.lcZ(3,8,i.foreColorText$)),a.xp6(2),a.Udp("background",t)}}let x=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.fontColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getFontColor()||this.options.blankColor)),(0,s.x)()),this.foreColorText$=this.texts$.pipe((0,r.U)((t=>t.foreColor)))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-text-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["color",""],["appearance","icon","automation-id","toolbar__color-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],[1,"t-plate"],["colorDropdown",""],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,k,7,10,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.fontColor$))},directives:[l.L,c.o,d.Ek,u.v,h.$,p.D,f.x,m.t,g.D,b.R,v.e],pipes:[y.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},90712:(t,e,n)=>{n.d(e,{M6:()=>o.M,yB:()=>d});var o=n(62490),i=n(12057),r=n(42600),s=n(43232),a=n(1884),l=n(30560),c=n(74788);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[i.ez,s.goS,r.udY,s.fNO,s.jhF,a.Fu,l.er,l.mp,l.__,l.iA,l.p7,l.Zv,l.pu,l.Ur,l._t,l.XC,l.P_,l.y9,r.HOV,l.jP]]}),t})();n(5028)},5028:(t,e,n)=>{n.d(e,{B:()=>r});var o=n(74788),i=n(42600);let r=(()=>{class t{constructor(t){this.el=t}get toolsContainers(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiItem]"))}onHorizontalNavigation(t){const{toolsContainers:e}=this,n=e.findIndex(i.zb4),o=e[(0,i.Kiv)(n+(t?-1:1),0,e.length-1)],r=t?this.findPreviousTool(o):this.findNextTool(o);r&&r.focus()}findFirstFocusableTool(t=!1){const e=t?this.toolsContainers.slice().reverse():this.toolsContainers;for(const t of e){const e=(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:t,keyboard:!1});if(e)return e}return null}findPreviousTool(t){return(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:t,keyboard:!1})||(0,i.BWF)({initial:t,root:this.el.nativeElement,previous:!0,keyboard:!1})}findNextTool(t){return(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:this.el.nativeElement,keyboard:!1})}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiToolbarNavigationManager",""]],hostBindings:function(t,e){1&t&&o.NdJ("keydown.arrowRight.prevent",(function(){return e.onHorizontalNavigation(!1)}))("keydown.arrowLeft.prevent",(function(){return e.onHorizontalNavigation(!0)}))}}),t})()},62490:(t,e,n)=>{n.d(e,{M:()=>mt});var o=n(74788),i=n(42600),r=n(69725),s=n(5915),a=n(72023),l=n(40401),c=n(15257),d=n(46782),u=n(5028),h=n(12057),p=n(63973),f=n(18289),m=n(44099),g=n(32489),b=n(13938),v=n(10406),y=n(63790),w=n(51928),k=n(37982),x=n(10845),C=n(29761),M=n(69201),S=n(98778),A=n(10553),O=n(48838),T=n(78919),N=n(56496),E=n(26929),I=n(47859),D=n(28299),L=n(82556),H=n(76310),P=n(69023),R=n(60020);const _=["dropdown"];function $(t,e){1&t&&o.GkF(0)}function z(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",7),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).undo()})),o.qZA(),o.TgZ(2,"button",8),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).redo()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("disabled",e.undoDisabled)("focusable",!1)("icon",e.options.icons.undo)("tuiHint",t.undo),o.xp6(1),o.Q6J("disabled",e.redoDisabled)("focusable",!1)("icon",e.options.icons.redo)("tuiHint",t.redo)}}function B(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-font-size",9),o.qZA())}function F(t,e){if(1&t&&o._UZ(0,"tui-font-style",15),2&t){const t=o.oxw(3);o.Q6J("enabledTools",t.toolsSet)}}function J(t,e){1&t&&o._UZ(0,"tui-align-content",9)}function Z(t,e){1&t&&o._UZ(0,"tui-list-configs",9)}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleQuote()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("disabled",e.unorderedList||e.orderedList)("focusable",!1)("icon",e.options.icons.quote)("pseudoActive",e.blockquote)("tuiHint",t.quote)}}function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",22,23),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).onLink(n,e)}))("removeLink",(function(){o.CHM(t),o.oxw();const e=o.MAs(1);return o.oxw(3).onLink(e)})),o.qZA()}}function q(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",18,19),o._UZ(2,"button",20,17),o.YNc(4,Y,2,0,"ng-template",null,21,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(5),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",t.open)("icon",i.options.icons.link)("pseudoActive",t.open||i.a)("tuiHint",n.link)}}function V(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",28),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).setAnchor(n,e)}))("removeLink",(function(){return o.CHM(t),o.oxw(4).removeAnchor()})),o.qZA()}2&t&&o.Q6J("anchorMode",!0)}function U(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",24,25),o._UZ(2,"button",26),o.YNc(3,V,1,1,"ng-template",null,27,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(4),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",!1)("icon",i.options.icons.anchor)("pseudoActive",t.open||i.jumpAnchor)("tuiHint",n.insertAnchor)}}function W(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",30,31),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onAttach(e)})),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.attach)("tuiHint",t.attach),o.xp6(2),o.Q6J("accept",e.attachOptions.accept)("multiple",e.attachOptions.multiple)("tuiFocusable",!1)}}function Q(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,F,1,1,"tui-font-style",10),o.YNc(2,J,1,0,"tui-align-content",11),o.YNc(3,Z,1,0,"tui-list-configs",11),o.YNc(4,j,2,5,"button",12),o.YNc(5,q,6,6,"tui-hosted-dropdown",13),o.YNc(6,U,5,6,"tui-hosted-dropdown",14),o.YNc(7,W,5,6,"ng-container",1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.formatEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Align)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.List)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Quote)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Link)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Anchor)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Attach))}}function K(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",33,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSubscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.sub)("pseudoActive",e.subscript)("tuiHint",t.subscript)}}function G(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",33,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSuperscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.sup)("pseudoActive",e.superscript)("tuiHint",t.superscript)}}function X(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,K,2,4,"button",32),o.YNc(2,G,2,4,"button",32),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sub)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sup))}}function tt(t,e){if(1&t&&o._UZ(0,"tui-text-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function et(t,e){if(1&t&&o._UZ(0,"tui-highlight-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function nt(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,tt,1,1,"tui-text-color",34),o.YNc(2,et,1,1,"tui-highlight-color",34),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Color)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Hilite))}}function ot(t,e){1&t&&o._UZ(0,"tui-code",9)}function it(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",39,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).onTeX()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.tex)("tuiHint",t.tex)}}function rt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",40),o.TgZ(1,"button",41,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",42,43),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onImage(e)})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.image)("tuiHint",t.image),o.xp6(2),o.Q6J("tuiFocusable",!1)}}function st(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).insertHorizontalRule()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.hr)("tuiHint",t.insertHorizontalRule)}}function at(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,ot,1,0,"tui-code",11),o.YNc(2,it,2,3,"button",36),o.YNc(3,rt,5,4,"div",37),o.YNc(4,st,2,3,"button",38),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Code)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Tex)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Img)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.HR))}}function lt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).removeFormat()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.clear)("tuiHint",t.clear)}}function ct(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-details",44),o._UZ(2,"tui-details-remove",44),o.qZA())}function dt(t,e){if(1&t&&o._UZ(0,"tui-table-cell-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function ut(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-editor-group-tool",44),o.YNc(2,dt,1,1,"tui-table-cell-color",34),o.qZA()),2&t){const t=o.oxw(2);o.xp6(2),o.Q6J("ngIf",!t.enabled(t.editorTool.Table))}}function ht(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-table-create",44),o._UZ(2,"tui-table-row-column-manager",44),o._UZ(3,"tui-table-merge-cells",44),o._UZ(4,"tui-table-cell-color",35),o.qZA()),2&t){const t=o.oxw(2);o.xp6(4),o.Q6J("colors",t.colors)}}function pt(t,e){if(1&t&&(o.TgZ(0,"section",4),o.YNc(1,z,3,8,"div",5),o.YNc(2,B,2,0,"div",5),o.YNc(3,Q,8,7,"div",5),o.YNc(4,X,3,2,"div",5),o.YNc(5,nt,3,2,"div",5),o.YNc(6,at,5,4,"div",5),o.YNc(7,lt,3,3,"div",5),o.YNc(8,ct,3,0,"div",5),o.YNc(9,ut,3,1,"div",5),o.YNc(10,ht,5,1,"div",5),o.TgZ(11,"div",6),o.Hsn(12),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Undo)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Size)),o.xp6(1),o.Q6J("ngIf",t.firstBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sub)||t.enabled(t.editorTool.Sup)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Color)||t.enabled(t.editorTool.Hilite)),o.xp6(1),o.Q6J("ngIf",t.secondBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Clear)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Details)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Group)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Table))}}const ft=["*"];let mt=(()=>{class t{constructor(t,e,n,s,l,c,d,u){this.el=t,this.editor=e,this.imageLoader=n,this.attachOptions=s,this.filesLoader=l,this.texts$=c,this.options=d,this.destroy$=u,this.dropdowns=i.Mmc,this.colors=this.options.colors,this.disabled=!1,this.linkAdded=new o.vpe,this.texClicked=new o.vpe,this.fileAttached=new o.vpe,this.editorTool=a._,this.toolsSet=new Set(r.Db)}set tools(t){this.toolsSet=new Set(t)}get focused(){return(0,i.zb4)(this.el.nativeElement)||!!this.dropdowns.find((({nativeElement:t})=>(0,i.zb4)(t)))}get focusable(){return!this.focused&&!this.disabled}get unorderedList(){return this.editor.isActive("bulletList")}get orderedList(){return this.editor.isActive("orderedList")}get blockquote(){return this.editor.isActive("blockquote")}get a(){return this.editor.isActive("link")}get jumpAnchor(){return this.editor.isActive("jumpAnchor")}get canOpenAnchor(){return!this.a&&!this.jumpAnchor}get undoDisabled(){return this.editor.undoDisabled()}get redoDisabled(){return this.editor.redoDisabled()}get subscript(){return this.editor.isActive("subscript")}get superscript(){return this.editor.isActive("superscript")}get formatEnabled(){return this.enabled(a._.Bold)||this.enabled(a._.Italic)||this.enabled(a._.Underline)||this.enabled(a._.Strikethrough)}get firstBigBlockEnabled(){return this.formatEnabled||this.enabled(a._.Align)||this.enabled(a._.List)||this.enabled(a._.Quote)||this.enabled(a._.Link)||this.enabled(a._.Anchor)||this.enabled(a._.Attach)}get secondBigBlockEnabled(){return this.enabled(a._.Code)||this.enabled(a._.Tex)||this.enabled(a._.Img)||this.enabled(a._.HR)}onMouseDown(t,e){e.closest("button")||(t.preventDefault(),this.editor.focus())}onBottomFocus(){this.focusLast()}onTopFocus(){this.focusFirst()}onImage(t){var e;const n=null===(e=t.files)||void 0===e?void 0:e[0];t.value="",n&&this.imageLoader(n).pipe((0,c.q)(1),(0,d.R)(this.destroy$)).subscribe((t=>this.addImage(t)))}onAttach(t){var e;const n=Array.from(t.files||[]);t.value="",n&&(null===(e=this.filesLoader)||void 0===e||e.call(this,n).pipe((0,c.q)(1),(0,d.R)(this.destroy$)).subscribe((t=>this.fileAttached.emit(t))))}onTeX(){this.texClicked.emit()}onLink(t,e){t.open=!1,e&&this.editor.toggleLink(e)}setAnchor(t,e){t.open=!1,e&&(this.editor.setAnchor(e),this.editor.selectClosest())}removeAnchor(){this.editor.removeAnchor()}enabled(t){return this.toolsSet.has(t)}undo(){this.editor.undo()}redo(){this.editor.redo()}insertHorizontalRule(){this.editor.setHorizontalRule()}removeFormat(){this.editor.removeFormat()}toggleOrderedList(){this.editor.toggleOrderedList()}toggleQuote(){this.editor.toggleBlockquote()}toggleSubscript(){this.editor.toggleSubscript()}toggleSuperscript(){this.editor.toggleSuperscript()}addImage(t){this.editor.setImage(t)}focusFirst(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool();e&&e.focus()}focusLast(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool(!0);e&&e.focus()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq,8),o.Y36(s.$3),o.Y36(l.p7),o.Y36(l.dR),o.Y36(l.zc,8),o.Y36(l.rf),o.Y36(l.mJ),o.Y36(i.a31,2))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-toolbar"]],viewQuery:function(t,e){if(1&t&&(o.Gf(u.B,5),o.Gf(_,5,o.SBq)),2&t){let t;o.iGM(t=o.CRH())&&(e.navigationManager=t.first),o.iGM(t=o.CRH())&&(e.dropdowns=t)}},hostAttrs:["role","toolbar"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",(function(t){return e.onMouseDown(t,t.target)})),2&t&&o.ekj("_disabled",e.disabled)},inputs:{colors:"colors",disabled:"disabled",tools:"tools"},outputs:{linkAdded:"linkAdded",texClicked:"texClicked",fileAttached:"fileAttached"},features:[o._Bn([i.a31])],ngContentSelectors:ft,decls:7,vars:8,consts:[["type","button",1,"t-prevent-parent-label-behavior"],[4,"ngIf"],[3,"tuiFocusable","focus"],["tuiToolbarNavigationManager","","class","t-tools-wrapper",4,"ngIf"],["tuiToolbarNavigationManager","",1,"t-tools-wrapper"],["class","t-block",4,"ngIf"],[1,"t-block"],["appearance","icon","automation-id","toolbar__undo-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","tuiHint","click"],["appearance","icon","automation-id","toolbar__redo-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","tuiHint","click"],["tuiItem","",1,"t-tool","t-wrapper"],["tuiItem","","class","t-tool t-wrapper",3,"enabledTools",4,"ngIf"],["tuiItem","","class","t-tool t-wrapper",4,"ngIf"],["appearance","icon","automation-id","toolbar__quote-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"disabled","focusable","icon","pseudoActive","tuiHint","click",4,"ngIf"],["tuiItem","","class","t-wrapper",3,"canOpen","content",4,"ngIf"],["class","t-wrapper",3,"canOpen","content",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"enabledTools"],["appearance","icon","automation-id","toolbar__quote-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","pseudoActive","tuiHint","click"],["button",""],["tuiItem","",1,"t-wrapper",3,"canOpen","content"],["link",""],["appearance","icon","automation-id","toolbar__link-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","pseudoActive","tuiHint"],["linkDropdown",""],[3,"addLink","removeLink"],["dropdown",""],[1,"t-wrapper",3,"canOpen","content"],["anchor",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["anchorDropdown",""],[3,"anchorMode","addLink","removeLink"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"focusable","icon","tuiHint","click"],["type","file",1,"t-file-upload",3,"accept","multiple","tuiFocusable","change"],["fileUpload",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"focusable","icon","pseudoActive","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"focusable","icon","pseudoActive","tuiHint","click"],["tuiItem","","class","t-tool t-wrapper",3,"colors",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"colors"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool",3,"focusable","icon","tuiHint","click",4,"ngIf"],["tuiItem","","class","t-wrapper",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool",3,"focusable","icon","tuiHint","click"],["tuiItem","",1,"t-wrapper"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","tuiHint","click"],["accept","image/*","type","file",1,"t-image",3,"tuiFocusable","change"],["image",""],["tuiItem","",1,"t-tool","t-tool_margin"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"button",0),o.YNc(1,$,1,0,"ng-container",1),o.ALo(2,"async"),o.TgZ(3,"div",2),o.NdJ("focus",(function(){return e.onTopFocus()})),o.qZA(),o.TgZ(4,"div",2),o.NdJ("focus",(function(){return e.onBottomFocus()})),o.qZA(),o.YNc(5,pt,13,10,"section",3),o.ALo(6,"async")),2&t&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,4,e.editor.stateChange$)),o.xp6(2),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("ngIf",o.lcZ(6,6,e.texts$)))},directives:[h.O5,p.t,u.B,f.v,m.$,g.w,b.D,v.x,y.t,w.D,k.m,x.h,C.X,M.w,S.o,A.l,O.G,T.U,N.T,E.y,I.U,D.d,L.p,H.l,P._,R.Y],pipes:[h.Ov],styles:['.t-tools-wrapper[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:-webkit-sticky;position:sticky;top:0;display:flex;padding:.25rem .75rem;overflow:auto;flex-wrap:wrap;box-shadow:0 .125rem .1875rem #0000001a}.t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar, .t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-tools-wrapper._disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-block[_ngcontent-%COMP%]{display:flex;padding:.25rem 0}.t-block[_ngcontent-%COMP%]:not(:last-child):after{content:"";display:block;margin:0 .25rem;width:1px;background:var(--tui-secondary-active)}.t-tool[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}button.t-tool[_ngcontent-%COMP%]:hover, .t-tool[_ngcontent-%COMP%] button:hover{background:var(--tui-secondary-hover)}.t-tool_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-font[_ngcontent-%COMP%]{padding:.3em 0;outline:none;width:100%;pointer-events:none}.t-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:0;opacity:0;cursor:pointer}.t-image[_ngcontent-%COMP%]::-webkit-file-upload-button{display:none}.t-file-upload[_ngcontent-%COMP%]{display:none}.t-color-picker[_ngcontent-%COMP%] tui-hosted-dropdown, .t-color-picker[_ngcontent-%COMP%] tui-color-picker, .t-color-picker[_ngcontent-%COMP%] tui-color-edit{display:none}.t-prevent-parent-label-behavior[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})()},69725:(t,e,n)=>{n.d(e,{hK:()=>i,pH:()=>c,pL:()=>f,nE:()=>a,_s:()=>d,Ci:()=>u,jU:()=>p,DN:()=>h,sw:()=>o,Db:()=>s,RR:()=>l});const o=new Map([["color-black-100","#909090"],["color-black-200","#666666"],["color-black-300","#333333"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["transparent","transparent"]]),i="rgb(51, 51, 51)";var r=n(72023);const s=[r._.Undo,r._.Size,r._.Bold,r._.Italic,r._.Underline,r._.Align,r._.List,r._.Quote,r._.Link,r._.Anchor,r._.Color,r._.Hilite,r._.Clear,r._.Strikethrough,r._.Code,r._.Img,r._.HR,r._.Sup,r._.Sub,r._.Table,r._.Details],a=s;function l(t){return[{px:13,name:t.small},{px:15,name:t.normal},{px:17,name:t.large},{px:24,family:"var(--tui-font-heading)",name:t.subtitle,headingLevel:2,weight:"bold"},{px:30,family:"var(--tui-font-heading)",name:t.title,headingLevel:1,weight:"bold"}]}const c=["id","class","src","style","controls","loop","muted","preload","autoplay","width","height","controlsList"],d="#",u="https://",h=":",p="://",f={protocol:u}},5915:(t,e,n)=>{n.d(e,{BN:()=>i,JU:()=>r.JU,mJ:()=>r.mJ,$3:()=>r.$3});var o=n(74788);let i=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var r=n(46561)},46561:(t,e,n)=>{n.d(e,{JU:()=>o.J,mJ:()=>r,$3:()=>s.$});var o=n(6723),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})();var s=n(20672)},6723:(t,e,n)=>{n.d(e,{J:()=>l});var o=n(74788),i=n(42600),r=n(40401),s=n(46782),a=n(20672);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.editor=n,this.editorContainer=o,this.editorLoaded$=i,this.valueChange=this.editor.valueChange$,this.stateChange=this.editor.stateChange$,this.editorLoaded$.pipe((0,s.R)(r)).subscribe((()=>{this.renderer.appendChild(this.el.nativeElement,this.editorContainer)}))}set value(t){this.editor.setValue(t)}set editable(t){this.editor.editable=t}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(a.$),o.Y36(r.Y1),o.Y36(r.ZW),o.Y36(i.a31,2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiTiptapEditor",""]],inputs:{value:"value",editable:"editable"},outputs:{valueChange:"valueChange",stateChange:"stateChange"},features:[o._Bn([i.a31])]}),t})()},20672:(t,e,n)=>{n.d(e,{$:()=>f});var o=n(42600),i=n(79765),r=n(74788);let s=(()=>{class t{constructor(){this.stateChange$=new i.xQ,this.valueChange$=new i.xQ}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t}),t})();var a=n(69725),l=n(40401),c=n(63097),d=n(62463),u=n(39761),h=n(88002),p=n(87519);let f=(()=>{class t extends s{constructor(t){super(),this.editorRef=t,this.editorRef.subscribe((t=>{this.editor=t;const e=()=>{this.stateChange$.next();const e=t.getHTML(),n=(o=t.getJSON().content,Array.isArray(o)&&1===o.length&&"paragraph"===o[0].type&&!o[0].hasOwnProperty("content")?"":e);var o;this.valueChange$.next(n)};t.on("transaction",e.bind(this)),t.on("update",e.bind(this))}))}get isFocused(){return this.editor.isFocused}get html(){return this.editor.getHTML()}get editable(){return this.editor.isEditable}set editable(t){this.editor.setEditable(t,!1)}get state(){return this.editor.state}getOriginTiptapEditor(){return this.editor}undoDisabled(){return!this.editor.can().undo()}redoDisabled(){return!this.editor.can().redo()}getFontColor(){return this.editor.getAttributes("textStyle").fontColor||a.hK}getFontSize(){return parseInt(this.editor.getAttributes("textStyle").fontSize,10)}setFontSize(t){this.editor.chain().setMark("textStyle",{fontSize:(0,o.O9r)(t)}).run()}getBackgroundColor(){var t;return(null===(t=this.editor)||void 0===t?void 0:t.getAttributes("textStyle").backgroundColor)||"transparent"}getCellColor(){return this.editor.getAttributes("tableCell").background||this.editor.getAttributes("tableHeader").background}getGroupColor(){var t,e,n,o;if(this.editor.isActive("group")){const i=null!==(e=null===(t=this.editor.getAttributes("group"))||void 0===t?void 0:t.style)&&void 0!==e?e:"",r=(0,c.jx)(i);return null!==(o=null!==(n=r["background-color"])&&void 0!==n?n:r.background)&&void 0!==o?o:""}return""}onAlign(t){this.editor.chain().focus().setTextAlign(t).run()}setImage(t){this.editor.chain().focus().command((({commands:e,state:n})=>{var o;const i=null!==(o=e.setEditableImage)&&void 0!==o?o:e.setImage;if(i){const o=n.selection.anchor;return i({src:t}),e.setTextSelection(o),!0}return!1})).run()}undo(){this.editor.chain().undo().run()}redo(){this.editor.chain().redo().run()}setHorizontalRule(){this.editor.chain().focus().setHorizontalRule().run()}removeFormat(){this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}setFontColor(t){this.editor.chain().focus().setFontColor(t).run()}setBackgroundColor(t){this.editor.chain().focus().setBackgroundColor(t).run()}toggleUnderline(){this.editor.chain().focus().toggleUnderline().run()}toggleStrike(){this.editor.chain().focus().toggleStrike().run()}toggleOrderedList(){this.editor.chain().focus().toggleOrderedList().run()}toggleUnorderedList(){this.editor.chain().focus().toggleBulletList().run()}togglePre(){this.editor.chain().focus().toggleCodeBlock().run()}toggleTaskList(){this.editor.commands.toggleTaskList()}sinkListItem(){const t=this.editor.isActive("taskList")?"taskItem":"listItem";this.editor.chain().focus().sinkListItem(t).run()}liftListItem(){const t=this.editor.isActive("taskList")?"taskItem":"listItem";this.editor.chain().focus().liftListItem(t).run()}isActive(t){return this.editor.isActive(t)}isActive$(t){return this.stateChange$.pipe((0,u.O)(null),(0,h.U)((()=>this.isActive(t))),(0,p.x)())}toggleBold(){this.editor.chain().focus().toggleBold().run()}toggleCode(){this.editor.chain().focus().toggleCode().run()}toggleItalic(){this.editor.chain().focus().toggleItalic().run()}toggleBlockquote(){this.editor.chain().focus().toggleBlockquote().run()}toggleSubscript(){this.editor.chain().focus().toggleSubscript().run()}toggleSuperscript(){this.editor.chain().focus().toggleSuperscript().run()}toggleCodeBlock(){this.editor.chain().focus().toggleCodeBlock().run()}insertTable(t,e){this.editor.chain().focus().insertTable({cols:t,rows:e}).run()}addColumnAfter(){this.editor.chain().focus().addColumnAfter().run()}addColumnBefore(){this.editor.chain().focus().addColumnBefore().run()}addRowAfter(){this.editor.chain().focus().addRowAfter().run()}addRowBefore(){this.editor.chain().focus().addRowBefore().run()}deleteColumn(){this.editor.chain().focus().deleteColumn().run()}deleteRow(){this.editor.chain().focus().deleteRow().run()}mergeCells(){this.editor.chain().focus().mergeCells().run()}splitCell(){this.editor.chain().focus().splitCell().run()}canMergeCells(){return this.editor.can().mergeCells()}canSplitCells(){return this.editor.can().splitCell()}setHeading(t){this.editor.chain().focus().setHeading({level:t}).run()}setParagraph(t){this.editor.chain().focus().setParagraph().run(),t&&this.editor.chain().setMark("textStyle",t).run()}setHardBreak(){this.editor.chain().setHardBreak().run()}setTextSelection(t){this.editor.commands.setTextSelection(t)}toggleLink(t){this.editor.chain().focus().toggleLink({href:t}).run()}setLink(t){this.editor.chain().focus().setLink({href:t}).run()}unsetLink(){this.editor.chain().focus().unsetLink().run()}focus(){this.editor.chain().focus().run()}setValue(t){t===this.html||""===t&&"

"===this.html||(this.editor.commands.setContent(t),this.editor.view.updateState(d.yy.create({schema:this.editor.state.schema,doc:this.editor.state.doc,selection:this.editor.state.selection,storedMarks:this.editor.state.storedMarks,plugins:this.editor.state.plugins})))}destroy(){this.editor.destroy()}setCellColor(t){this.editor.chain().focus().setCellBackground(t).run()}selectClosest(){const t=this.editor.state.selection.anchor,{schema:e,doc:n}=this.editor.state,o=(0,c.Yz)(n.resolve(t),e.marks.link);o&&this.editor.chain().setTextSelection(o).run()}enter(){this.editor.commands.enter()}setDetails(){this.editor.commands.setDetails()}removeDetails(){this.editor.commands.removeDetails()}setGroup(){this.editor.commands.setGroup()}removeGroup(){this.editor.commands.removeGroup()}setGroupHilite(t){this.editor.commands.setGroupHilite(t)}setAnchor(t){this.editor.commands.setAnchor(t.replace("#",""))}removeAnchor(){this.editor.commands.removeAnchor()}setFileLink(t){this.editor.commands.setFileLink(t)}setYoutubeVideo(t){this.editor.commands.setYoutubeVideo(t)}setIframe(t){this.editor.commands.setIframe(t)}removeEmptyTextStyle(){this.editor.commands.removeEmptyTextStyle()}toggleMark(t,e,n){this.editor.commands.toggleMark(t,e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(l.ZW))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},72023:(t,e,n)=>{n.d(e,{_:()=>o});var o=(()=>(function(t){t.Align="justify",t.Anchor="anchor",t.Attach="attach",t.Bold="bold",t.Clear="clear",t.Code="code",t.Color="foreColor",t.Details="details",t.Group="group",t.HR="insertHorizontalRule",t.Hilite="hiliteColor",t.Img="image",t.Italic="italic",t.Link="link",t.List="list",t.MergeCells="mergeCells",t.Quote="quote",t.RowsColumnsManaging="rowsColumnsManaging",t.Size="fontSize",t.SplitCells="splitCells",t.Strikethrough="strikeThrough",t.Sub="subscript",t.Sup="superscript",t.Table="insertTable",t.Tex="tex",t.Underline="underline",t.Undo="undo"}(o||(o={})),o))()},44:(t,e,n)=>{n.r(e),n.d(e,{BackgroundColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"backgroundColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,renderHTML:({backgroundColor:t})=>t?{style:`background-color: ${t}`}:{},parseHTML:({style:t})=>t.backgroundColor.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).run()})})},58101:(t,e,n)=>{n.r(e),n.d(e,{TuiFileLink:()=>o});const o=n(11046).Extension.create({name:"fileLink",addCommands:()=>({setFileLink:t=>({state:e,chain:n})=>{const{selection:o}=e,i=' ';return(Math.abs(o.to-o.from)>0?n().toggleMark("link",{href:t.link},{extendEmptyMarkRange:!0}).setTextSelection(o.to).insertContent(i):n().insertContent(`${t.name}${i}`)).setTextSelection(o.to).run()}})})},30163:(t,e,n)=>{n.r(e),n.d(e,{FontColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontColor:{default:null,renderHTML:({fontColor:t})=>t?{style:`color: ${t}`}:{},parseHTML:({style:t})=>t.color.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setFontColor:t=>({chain:e})=>e().setMark("textStyle",{fontColor:t}).run(),unsetFontColor:()=>({chain:t})=>t().setMark("textStyle",{fontColor:null}).run()})})},1604:(t,e,n)=>{n.r(e),n.d(e,{TuiFontSize:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:({style:t})=>t.fontSize,renderHTML:({fontSize:t})=>t?{style:`font-size: ${t}`}:{}}}}]},addCommands:()=>({setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})})},19818:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_GROUP_DEFAULT_OPTIONS:()=>r,createGroupExtension:()=>s});var o=n(63097),i=n(11046);const r={groupNodeClass:"tui-group-node",groupPointerNodeClass:"tui-group-pointer",nested:!0,draggable:!0,createOnEnter:!1},s=(t={})=>{const{draggable:e,nested:n,groupNodeClass:s,groupPointerNodeClass:a,createOnEnter:l}=Object.assign(Object.assign({},r),t);return i.Node.create({name:"group",draggable:e,group:"block",content:n?"block+":"block",addAttributes:()=>({style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>t.style?{style:t.style}:{}}}),parseHTML:()=>[{tag:'div[data-type="group"]'}],renderHTML:({HTMLAttributes:t})=>["div",(0,i.mergeAttributes)(t,{"data-type":"group"}),0],addNodeView:()=>({HTMLAttributes:t,node:n})=>{const o=document.createElement("div"),i=document.createElement("div");if(o.classList.add(s),i.setAttribute("data-type","group"),t.style&&(n.attrs.style=t.style,i.setAttribute("style",t.style)),e){const t=document.createElement("div");t.classList.add(a),t.innerHTML="",t.contentEditable="false",o.append(t,i)}else o.append(i);return{dom:o,contentDOM:i}},addCommands(){return{setGroup:()=>({commands:t,state:e})=>{this.editor.chain().focus().run();const n=(0,o.Ap)(e,""),i=`
${n.trim().startsWith("

")?n:`

${n}

`}
`;return t.insertContent(i)},setGroupHilite:t=>({editor:e})=>{for(let n=e.state.selection.$anchor,o=n.depth;o>0;o--){const i=n.node(o);if(i.type.name===this.name){setTimeout((()=>e.commands.updateAttributes(i.type,{style:`background: ${t}`})));break}}return!0},removeGroup:()=>({state:t,dispatch:e})=>(0,o.yU)(t,e,this.name)}},addKeyboardShortcuts(){return l?{Enter:this.editor.commands.setGroup}:{}}})}},33626:(t,e,n)=>{n.r(e),n.d(e,{TUI_IFRAME_EDITOR_OPTIONS:()=>a,TuiIframeEditorComponent:()=>c,TuiIframeEditorModule:()=>p,createIframeEditorExtension:()=>h});var o=n(91211),i=n(42600),r=n(8274),s=n(74788);const a=new s.OlP("[TUI_IFRAME_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0,minHeight:100,maxHeight:1/0})});var l=n(22916);let c=(()=>{class t extends r._3{constructor(t,e){super(),this.options=t,this.sanitizer=e}get src(){var t;return this.sanitizer.bypassSecurityTrustResourceUrl(null!==(t=this.attrs.src)&&void 0!==t?t:"")}updateSize([t,e]){this.currentWidth=Math.max(this.options.minWidth,Math.min(this.options.maxWidth,t)),this.currentHeight=Math.max(this.options.minHeight,Math.min(this.options.maxHeight,e)),this.attrs.width=this.currentWidth,this.attrs.height=this.currentHeight,this.editor.commands.setContent(this.editor.getJSON())}}return t.ɵfac=function(e){return new(e||t)(s.Y36(a),s.Y36(o.H7))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-iframe-editor"]],features:[s._Bn([i.a31]),s.qOj],decls:2,vars:13,consts:[[3,"height","width","sizeChange"],[3,"height","src","width"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-editor-resizable",0),s.NdJ("sizeChange",(function(t){return e.updateSize(t)})),s._UZ(1,"iframe",1),s.qZA()),2&t&&(s.Q6J("height",e.height)("width",e.width),s.xp6(1),s.Udp("max-height",e.options.maxHeight)("max-width",e.options.maxWidth)("min-height",e.options.minHeight)("min-width",e.options.minWidth),s.Q6J("height",e.height)("src",e.src,s.uOi)("width",e.width))},directives:[l.V],styles:["iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}"],changeDetection:0}),t})();var d=n(13704),u=n(11046);const h=t=>u.Node.create({name:"iframe",group:"block",atom:!0,draggable:!1,parseHTML:()=>[{tag:'iframe[data-type="iframe-editor"]'}],addAttributes(){return{src:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("src")},frameborder:{default:0,keepOnSplit:!1,parseHTML:t=>t.getAttribute("frameborder")},width:{default:"100%",keepOnSplit:!1,parseHTML:t=>t.getAttribute("width")},height:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("height")},allowfullscreen:{keepOnSplit:!1,default:this.options.allowFullscreen,parseHTML:t=>t.getAttribute("allowfullscreen")}}},renderHTML:({HTMLAttributes:t})=>["iframe",(0,u.mergeAttributes)(t,{"data-type":"iframe-editor"})],addNodeView:()=>e=>new d.y(c,e,Object.assign({injector:t},e)),addCommands(){return{setIframe:t=>({commands:e,state:n})=>{const o=n.selection.anchor;return e.enter(),e.setTextSelection(o),e.insertContent({type:this.name,attrs:t}),e.setTextSelection(n.selection.anchor),!0}}}});let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[r.Sl]]}),t})()},89681:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_MAX_IMAGE_WIDTH:()=>d,TUI_EDITOR_MIN_IMAGE_WIDTH:()=>c,TUI_IMAGE_EDITOR_OPTIONS:()=>u,TuiImageEditorComponent:()=>p,TuiImageEditorModule:()=>A,createImageEditorExtension:()=>S,tuiCreateImageEditorExtension:()=>M});var o=n(12057),i=n(74788),r=n(91211),s=n(62579),a=n(42600),l=n(8274);const c=new i.OlP("[TUI_EDITOR_MIN_IMAGE_WIDTH]",{factory:()=>null}),d=new i.OlP("[TUI_EDITOR_MAX_IMAGE_WIDTH]",{factory:()=>null}),u=new i.OlP("[TUI_IMAGE_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0})});var h=n(22916);let p=(()=>{class t extends l._3{constructor(t,e,n,o,i,r,s){super(),this.minWidth=t,this.maxWidth=e,this.options=n,this.doc=o,this.sanitizer=i,this.el=r,this.win=s,this.contenteditable=!0,this.focused=!1}get dragHandle(){var t;return null!==(t=this.attrs.draggable)&&void 0!==t?t:null}get height(){return null}get alt(){return this.attrs.alt||""}get title(){return this.attrs.title||""}get src(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.attrs.src)}currentTargetIsFocused(t){this.focused=this.el.nativeElement.contains(t),this.focused&&this.selectFakeText()}updateSize([t]){var e,n;const o=null!==(e=this.minWidth)&&void 0!==e?e:this.options.minWidth,i=null!==(n=this.maxWidth)&&void 0!==n?n:this.options.maxWidth;this.currentWidth=Math.max(o,Math.min(i,t)),this.attrs.width=this.currentWidth,this.editor.commands.setContent(this.editor.getJSON())}selectFakeText(){var t,e,n;const o=this.doc.createRange();null===(t=this.el.nativeElement.querySelector("p"))||void 0===t||t.focus(),o.selectNode(this.el.nativeElement),null===(e=this.win.getSelection())||void 0===e||e.removeAllRanges(),null===(n=this.win.getSelection())||void 0===n||n.addRange(o)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c),i.Y36(d),i.Y36(u),i.Y36(o.K0),i.Y36(r.H7),i.Y36(i.SBq),i.Y36(s.m9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-image-editor"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click.silent",(function(t){return e.currentTargetIsFocused(t.target)}),!1,i.evT),2&t&&i.uIk("contenteditable",e.contenteditable)("data-drag-handle",e.dragHandle)},features:[i._Bn([a.a31]),i.qOj],decls:4,vars:12,consts:[["contenteditable","false",1,"t-emulate-inline-node"],[3,"autoHeight","width","sizeChange"],["contenteditable","false",3,"alt","src","title","width"]],template:function(t,e){1&t&&(i._UZ(0,"p",0),i.TgZ(1,"tui-editor-resizable",1),i.NdJ("sizeChange",(function(t){return e.updateSize(t)})),i._UZ(2,"img",2),i.qZA(),i._UZ(3,"p",0)),2&t&&(i.xp6(1),i.Q6J("autoHeight",!0)("width",e.width),i.xp6(1),i.Udp("max-width",e.options.maxWidth,"px")("min-width",e.options.minWidth,"px"),i.ekj("ProseMirror-selectednode",e.focused),i.Q6J("alt",e.alt)("src",e.src,i.LSH)("title",e.title)("width",e.width))},directives:[h.V],styles:["[data-drag-handle][_nghost-%COMP%]{cursor:move}img[_ngcontent-%COMP%]{pointer-events:none}.t-emulate-inline-node[_ngcontent-%COMP%]{display:inline-block;margin:0;height:0}"],changeDetection:0}),t})();var f=n(13704),m=n(40401),g=n(11046),b=n(44632),v=n(62463),y=n(15257),w=n(70409);const k=[{tag:'img[data-type="image-editor"]'}],x={src:{default:"",keepOnSplit:!1},width:{default:300,keepOnSplit:!1},alt:{default:"",keepOnSplit:!1},title:{default:"",keepOnSplit:!1}};function C(t){return(e,n)=>{var o;const i=n instanceof DragEvent?n.dataTransfer:n.clipboardData,r=Array.from(null!==(o=null==i?void 0:i.files)&&void 0!==o?o:[]).filter((t=>/image/i.test(t.type)));r.length&&n.preventDefault();const s=t.get(m.p7);r.forEach((t=>{s(t).pipe((0,y.q)(1),(0,w.o)((()=>!e.isDestroyed))).subscribe((t=>{const n=e.state.schema.nodes.imageEditor.create({src:t}),o=e.state.tr.replaceSelectionWith(n);null===setTimeout||void 0===setTimeout||setTimeout((()=>{e.isDestroyed||e.dispatch(o)}))}))}))}}function M({injector:t,draggable:e}){return S(t,{draggable:e})}function S(t,{draggable:e}={}){const n=!(0,a.PcC)(e)||e;return b.Image.extend({name:"imageEditor",group:"inline",inline:!0,atom:!0,priority:0,selectable:!0,draggable:n,parseHTML:()=>k,addAttributes:()=>Object.assign(Object.assign({},x),{draggable:{default:n?"":null,keepOnSplit:!1}}),renderHTML:({HTMLAttributes:t})=>["img",(0,g.mergeAttributes)(t,{"data-type":"image-editor"})],addNodeView:()=>e=>new f.y(p,e,Object.assign({injector:t},e)),addCommands(){return{setEditableImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addProseMirrorPlugins:()=>[new v.Sy({props:{handleDOMEvents:{paste:C(t),drop:C(t)}}})]})}let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,l.Sl]]}),t})()},13575:(t,e,n)=>{function o(t){return t.isActive("bulletList")||t.isActive("orderedList")}n.r(e),n.d(e,{TuiTabExtension:()=>i,tuiIsOrderedOrBulletList:()=>o});const i=n(11046).Extension.create({name:"indent",addKeyboardShortcuts(){return{Tab:()=>!o(this.editor)&&this.editor.commands.insertContent("\t")}}})},48239:(t,e,n)=>{n.r(e),n.d(e,{TuiLink:()=>Xt});var o=n(63097),i=n(11046);const r="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",a=(t,e)=>{for(const n in e)t[n]=e[n];return t},l="numeric",c="ascii",d="alpha",u="asciinumeric",h="alphanumeric",p="domain",f="emoji",m="scheme",g="slashscheme",b="whitespace";function v(t,e){return t in e||(e[t]=[]),e[t]}function y(t,e,n){e[l]&&(e[u]=!0,e[h]=!0),e[c]&&(e[u]=!0,e[d]=!0),e[u]&&(e[h]=!0),e[d]&&(e[h]=!0),e[h]&&(e[p]=!0),e[f]&&(e[p]=!0);for(const o in e){const e=v(o,n);e.indexOf(t)<0&&e.push(t)}}function w(t){void 0===t&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}w.groups={},w.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let n=0;n=0&&(n[o]=!0);return n}(s.t,o),n);y(r,t,o)}else n&&y(r,n,o);s.t=r}return i.j[t]=s,s}};const k=(t,e,n,o,i)=>t.ta(e,n,o,i),x=(t,e,n,o,i)=>t.tr(e,n,o,i),C=(t,e,n,o,i)=>t.ts(e,n,o,i),M=(t,e,n,o,i)=>t.tt(e,n,o,i),S="WORD",A="UWORD",O="LOCALHOST",T="TLD",N="UTLD",E="SCHEME",I="SLASH_SCHEME",D="NUM",L="WS",H="NL",P="OPENBRACE",R="CLOSEBRACE",_="OPENBRACKET",$="CLOSEBRACKET",z="OPENPAREN",B="CLOSEPAREN",F="OPENANGLEBRACKET",J="CLOSEANGLEBRACKET",Z="FULLWIDTHLEFTPAREN",j="FULLWIDTHRIGHTPAREN",Y="LEFTCORNERBRACKET",q="RIGHTCORNERBRACKET",V="LEFTWHITECORNERBRACKET",U="RIGHTWHITECORNERBRACKET",W="FULLWIDTHLESSTHAN",Q="FULLWIDTHGREATERTHAN",K="AMPERSAND",G="APOSTROPHE",X="ASTERISK",tt="AT",et="BACKSLASH",nt="BACKTICK",ot="CARET",it="COLON",rt="COMMA",st="DOLLAR",at="DOT",lt="EQUALS",ct="EXCLAMATION",dt="HYPHEN",ut="PERCENT",ht="PIPE",pt="PLUS",ft="POUND",mt="QUERY",gt="QUOTE",bt="SEMI",vt="SLASH",yt="TILDE",wt="UNDERSCORE",kt="EMOJI",xt="SYM";var Ct=Object.freeze({__proto__:null,WORD:S,UWORD:A,LOCALHOST:O,TLD:T,UTLD:N,SCHEME:E,SLASH_SCHEME:I,NUM:D,WS:L,NL:H,OPENBRACE:P,CLOSEBRACE:R,OPENBRACKET:_,CLOSEBRACKET:$,OPENPAREN:z,CLOSEPAREN:B,OPENANGLEBRACKET:F,CLOSEANGLEBRACKET:J,FULLWIDTHLEFTPAREN:Z,FULLWIDTHRIGHTPAREN:j,LEFTCORNERBRACKET:Y,RIGHTCORNERBRACKET:q,LEFTWHITECORNERBRACKET:V,RIGHTWHITECORNERBRACKET:U,FULLWIDTHLESSTHAN:W,FULLWIDTHGREATERTHAN:Q,AMPERSAND:K,APOSTROPHE:G,ASTERISK:X,AT:tt,BACKSLASH:et,BACKTICK:nt,CARET:ot,COLON:it,COMMA:rt,DOLLAR:st,DOT:at,EQUALS:lt,EXCLAMATION:ct,HYPHEN:dt,PERCENT:ut,PIPE:ht,PLUS:pt,POUND:ft,QUERY:mt,QUOTE:gt,SEMI:bt,SLASH:vt,TILDE:yt,UNDERSCORE:wt,EMOJI:kt,SYM:xt});const Mt=/[a-z]/,St=/\p{L}/u,At=/\p{Emoji}/u,Ot=/\d/,Tt=/\s/,Nt="\n",Et="️",It="‍";let Dt=null,Lt=null;function Ht(t,e,n,o,i){let r;const s=e.length;for(let n=0;n=0;)i++;if(i>0){e.push(n.join(""));for(let e=parseInt(t.substring(o,o+i),10);e>0;e--)n.pop();o+=i}else n.push(t[o]),o++}return e}const Rt={defaultProtocol:"http",events:null,format:$t,formatHref:$t,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function _t(t,e){void 0===e&&(e=null);let n=a({},Rt);t&&(n=a(n,t instanceof _t?t.o:t));const o=n.ignoreTags,i=[];for(let t=0;tt,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=null!=e;let i=this.o[t];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Rt[t],"function"==typeof i&&o&&(i=i(e,n))):"function"==typeof i&&o&&(i=i(e,n.t,n)),i):i},getObj(t,e,n){let o=this.o[t];return"function"==typeof o&&null!=e&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},zt.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return void 0===t&&(t=Rt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),i=t.get("tagName",n,e),r=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return s.href=o,l&&(s.class=l),c&&(s.target=c),d&&(s.rel=d),u&&a(s,u),{tagName:i,attributes:s,content:r,eventListeners:h}}};const Ft=Bt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Jt=Bt("text"),Zt=Bt("nl"),jt=Bt("url",{isLink:!0,toHref(t){return void 0===t&&(t=Rt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==O&&t[1].t===it}}),Yt=t=>new w(t);function qt(t,e,n){const o=n[0].s,i=n[n.length-1].e;return new t(e.slice(o,i),n)}const Vt="undefined"!=typeof console&&console&&console.warn||(()=>{}),Ut={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Wt(t,e){if(void 0===e&&(e=!1),Ut.initialized&&Vt(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Ut.customSchemes.push([t,e])}function Qt(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new _t(n),i=function(t){return Ut.initialized||function(){Ut.scanner=function(t){void 0===t&&(t=[]);const e={};w.groups=e;const n=new w;null==Dt&&(Dt=Pt(r)),null==Lt&&(Lt=Pt(s)),M(n,"'",G),M(n,"{",P),M(n,"}",R),M(n,"[",_),M(n,"]",$),M(n,"(",z),M(n,")",B),M(n,"<",F),M(n,">",J),M(n,"(",Z),M(n,")",j),M(n,"「",Y),M(n,"」",q),M(n,"『",V),M(n,"』",U),M(n,"<",W),M(n,">",Q),M(n,"&",K),M(n,"*",X),M(n,"@",tt),M(n,"`",nt),M(n,"^",ot),M(n,":",it),M(n,",",rt),M(n,"$",st),M(n,".",at),M(n,"=",lt),M(n,"!",ct),M(n,"-",dt),M(n,"%",ut),M(n,"|",ht),M(n,"+",pt),M(n,"#",ft),M(n,"?",mt),M(n,'"',gt),M(n,"/",vt),M(n,";",bt),M(n,"~",yt),M(n,"_",wt),M(n,"\\",et);const o=x(n,Ot,D,{[l]:!0});x(o,Ot,o);const i=x(n,Mt,S,{[c]:!0});x(i,Mt,i);const h=x(n,St,A,{[d]:!0});x(h,Mt),x(h,St,h);const v=x(n,Tt,L,{[b]:!0});M(n,Nt,H,{[b]:!0}),M(v,Nt),x(v,Tt,v);const k=x(n,At,kt,{[f]:!0});x(k,At,k),M(k,Et,k);const Rt=M(k,It);x(Rt,At,k);const _t=[[Mt,i]],$t=[[Mt,null],[St,h]];for(let t=0;tt[0]>e[0]?1:-1));for(let e=0;e=0?i[p]=!0:Mt.test(o)?Ot.test(o)?i[u]=!0:i[c]=!0:i[l]=!0,C(n,o,o,i)}return C(n,"localhost",O,{ascii:!0}),n.jd=new w(xt),{start:n,tokens:a({groups:e},Ct)}}(Ut.customSchemes);for(let t=0;t=0&&h++,i++,d++;if(h<0)i-=d,i0&&(r.push(qt(Jt,e,s)),s=[]),i-=h,d-=h;const t=u.t,o=n.slice(i-d,i);r.push(qt(t,e,o))}}return s.length>0&&r.push(qt(Jt,e,s)),r}(Ut.parser.start,t,function(t,e){const n=function(t){const e=[],n=t.length;let o=0;for(;o56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}(e.replace(/[A-Z]/g,(t=>t.toLowerCase()))),o=n.length,i=[];let r=0,s=0;for(;s=0&&(u+=n[s].length,h++),c+=n[s].length,r+=n[s].length,s++;r-=u,s-=h,c-=u,i.push({t:d.t,v:e.slice(r-c,r),s:r-c,e:r})}return i}(Ut.scanner.start,t))}(t),h=[];for(let t=0;t{"string"!=typeof t?Wt(t.scheme,t.optionalSlashes):Wt(t)}))},onDestroy(){w.groups={},Ut.scanner=null,Ut.parser=null,Ut.tokenQueue=[],Ut.pluginQueue=[],Ut.customSchemes=[],Ut.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){var e;return(null===(e=t.href)||void 0===e?void 0:e.startsWith("javascript:"))?["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,{...t,href:""}),0]:["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,i.markPasteRule)({find:t=>Qt(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:(t,e)=>{var n,o;const i=null===(n=null==e?void 0:e.clipboardData)||void 0===n?void 0:n.getData("text/html"),r=null==i?void 0:i.match(/href="([^"]*)"/);return r?{href:r[1]}:{href:null===(o=t.data)||void 0===o?void 0:o.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push((e={type:this.type,validate:this.options.validate},new Kt.Sy({key:new Kt.H$("autolink"),appendTransaction:(t,n,o)=>{const r=t.some((t=>t.docChanged))&&!n.doc.eq(o.doc),s=t.some((t=>t.getMeta("preventAutolink")));if(!r||s)return;const{tr:a}=o,l=(0,i.combineTransactionSteps)(n.doc,[...t]);return(0,i.getChangedRanges)(l).forEach((({newRange:t})=>{const n=(0,i.findChildrenInRange)(o.doc,t,(t=>t.isTextblock));let r,s;if(n.length>1?(r=n[0],s=o.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ")):n.length&&o.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(r=n[0],s=o.doc.textBetween(r.pos,t.to,void 0," ")),r&&s){const t=s.split(" ").filter((t=>""!==t));if(t.length<=0)return!1;const n=t[t.length-1],l=r.pos+s.lastIndexOf(n);if(!n)return!1;Qt(n).filter((t=>t.isLink)).map((t=>({...t,from:l+t.start+1,to:l+t.end+1}))).filter((t=>!o.schema.marks.code||!o.doc.rangeHasMark(t.from,t.to,o.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{(0,i.getMarksBetween)(t.from,t.to,o.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),a.steps.length?a:void 0}}))),this.options.openOnClick&&t.push(function(t){return new Kt.Sy({key:new Kt.H$("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,s;if(0!==o.button)return!1;if("A"!==o.target.nodeName)return!1;const a=(0,i.getAttributes)(e.state,t.type.name),l=o.target,c=null!==(r=null==l?void 0:l.href)&&void 0!==r?r:a.href,d=null!==(s=null==l?void 0:l.target)&&void 0!==s?s:a.target;return!(!l||!c||(e.editable&&window.open(c,d),0))}}})}({type:this.type})),this.options.linkOnPaste&&t.push(function(t){return new Kt.Sy({key:new Kt.H$("handlePasteLink"),props:{handlePaste:(e,n,o)=>{var i;const{state:r}=e,{selection:s}=r,{empty:a}=s;if(a)return!1;let l="";o.content.forEach((t=>{l+=t.textContent}));const c=Qt(l).find((t=>t.isLink&&t.value===l));if(!l||!c)return!1;const d=null===(i=n.clipboardData)||void 0===i?void 0:i.getData("text/html"),u=null==d?void 0:d.match(/href="([^"]*)"/),h=u?u[1]:c.href;return t.editor.commands.setMark(t.type,{href:h}),!0}}})}({editor:this.editor,type:this.type})),t;var e}}),Xt=Gt.extend({addAttributes(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),(0,o.x6)(["download"]))},addCommands(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{toggleLink:t=>({chain:e,state:n})=>{{const{selection:o,doc:r}=n,s=r.cut(o.to,o.to+1),a=" "===(0,i.getHTMLFromFragment)(s.content,n.schema).replace(/<\/?[^>]+(>|$)/g,""),l=e().toggleMark(this.name,t,{extendEmptyMarkRange:!0});return(a?l.setTextSelection(o.to+1):l.setTextSelection(o.to).insertContent(' ')).run()}}})},addPasteRules(){return[(0,i.markPasteRule)({find:t=>Qt(t).filter((t=>{var e,n,o;return null===(o=null===(n=(e=this.options).validate)||void 0===n?void 0:n.call(e,t.value))||void 0===o||o})).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]}}).configure({openOnClick:!1})},39069:(t,e,n)=>{n.r(e),n.d(e,{TuiAudio:()=>s,TuiSource:()=>a,TuiVideo:()=>l});var o=n(69725),i=n(63097),r=n(11046);const s=r.Node.create({name:"audio",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"audio"}],renderHTML:({node:t,HTMLAttributes:e})=>["audio",e,...(0,i.YX)(t)]}),a=r.Node.create({name:"source",addAttributes:()=>(0,i.x6)(["src","type","width","height","media","sizes","srcset"]),parseHTML:()=>[{tag:"source"}],renderHTML:({HTMLAttributes:t})=>["source",(0,r.mergeAttributes)(t)]}),l=r.Node.create({name:"video",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"video"}],renderHTML:({node:t,HTMLAttributes:e})=>["video",e,...(0,i.YX)(t)]})},28730:(t,e,n)=>{n.r(e),n.d(e,{StarterKit:()=>At});var o=n(11046);const i=/^\s*>\s$/,r=o.Node.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,o.wrappingInputRule)({find:i,type:this.type})]}}),s=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,a=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,l=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,c=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,d=o.Mark.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],renderHTML({HTMLAttributes:t}){return["strong",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,o.markInputRule)({find:s,type:this.type}),(0,o.markInputRule)({find:l,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:a,type:this.type}),(0,o.markPasteRule)({find:c,type:this.type})]}}),u=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),h=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),p=/^\s*([-+*])\s$/,f=o.Node.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(u.name,this.editor.getAttributes(h.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:p,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:p,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(h.name),editor:this.editor})),[t]}}),m=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,g=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,b=o.Mark.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,o.markInputRule)({find:m,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:g,type:this.type})]}});var v=n(62463);const y=/^```([a-z]+)?[\s\n]$/,w=/^~~~([a-z]+)?[\s\n]$/,k=o.Node.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;return[...(null===(e=t.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter((t=>t.startsWith(n))).map((t=>t.replace(n,"")))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",(0,o.mergeAttributes)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!(!t||e.parent.type.name!==this.name)&&!(!n&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;const r=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith("\n\n");return!(!r||!s)&&t.chain().command((({tr:t})=>(t.delete(o.pos-2,o.pos),!0))).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;if(i.parentOffset!==i.parent.nodeSize-2)return!1;const s=i.after();return void 0!==s&&!o.nodeAt(s)&&t.commands.exitCode()}}},addInputRules(){return[(0,o.textblockTypeInputRule)({find:y,type:this.type,getAttributes:t=>({language:t[1]})}),(0,o.textblockTypeInputRule)({find:w,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new v.Sy({key:new v.H$("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),i=o?JSON.parse(o):void 0,r=null==i?void 0:i.mode;if(!n||!r)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(v.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),x=o.Node.create({name:"doc",topNode:!0,content:"block+"});var C=n(38480);function M(t={}){return new v.Sy({view:e=>new S(e,t)})}class S{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=e.width)&&void 0!==n?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map((e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}destroy(){this.handlers.forEach((({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e)))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent;if(n){let n=e.nodeBefore,o=e.nodeAfter;if(n||o){let e=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(e){let i=e.getBoundingClientRect(),r=n?i.bottom:i.top;n&&o&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:i.left,right:i.right,top:r-this.width/2,bottom:r+this.width/2}}}}if(!t){let e=this.editorView.coordsAtPos(this.cursorPos);t={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o,i,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!r||r==document.body&&"static"==getComputedStyle(r).position)o=-pageXOffset,i=-pageYOffset;else{let t=r.getBoundingClientRect();o=t.left-r.scrollLeft,i=t.top-r.scrollTop}this.element.style.left=t.left-o+"px",this.element.style.top=t.top-i+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),o=n&&n.type.spec.disableDropCursor,i="function"==typeof o?o(this.editorView,e,t):o;if(e&&!i){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,C.nj)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const A=o.Extension.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[M(this.options)]}});var O=n(31690),T=n(27439),N=n(43594);class E extends v.Y1{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return E.valid(n)?new E(n):v.Y1.near(n)}content(){return T.p2.empty}eq(t){return t instanceof E&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new E(t.resolve(e.pos))}getBookmark(){return new I(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(0!=n)for(let t=o.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n!=o.childCount)for(let t=o.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let o=e.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,e,n=!1){t:for(;;){if(!n&&E.valid(t))return t;let o=t.pos,i=null;for(let n=t.depth;;n--){let r=t.node(n);if(e>0?t.indexAfter(n)0){i=r.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}for(;;){let r=e>0?i.firstChild:i.lastChild;if(!r){if(i.isAtom&&!i.isText&&!v.qv.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*e),n=!1;continue t}break}i=r,o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}return null}}}E.prototype.visible=!1,E.findFrom=E.findGapCursorFrom,v.Y1.jsonID("gapcursor",E);class I{constructor(t){this.pos=t}map(t){return new I(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return E.valid(e)?new E(e):v.Y1.near(e)}}const D=(0,O.$)({ArrowLeft:L("horiz",-1),ArrowRight:L("horiz",1),ArrowUp:L("vert",-1),ArrowDown:L("vert",1)});function L(t,e){const n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,o,i){let r=t.selection,s=e>0?r.$to:r.$from,a=r.empty;if(r instanceof v.Bs){if(!i.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=t.doc.resolve(e>0?s.after():s.before())}let l=E.findGapCursorFrom(s,e,a);return!!l&&(o&&o(t.tr.setSelection(new E(l))),!0)}}function H(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!E.valid(o))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&v.qv.isSelectable(t.state.doc.nodeAt(i.inside))||(t.dispatch(t.state.tr.setSelection(new E(o))),0))}function P(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof E))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let i=T.HY.empty;for(let t=o.length-1;t>=0;t--)i=T.HY.from(o[t].createAndFill(null,i));let r=t.state.tr.replace(n.pos,n.pos,new T.p2(i,0,0));return r.setSelection(v.Bs.near(r.doc.resolve(n.pos+1))),t.dispatch(r),!1}function R(t){if(!(t.selection instanceof E))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",N.EH.create(t.doc,[N.p.widget(t.selection.head,e,{key:"gapcursor"})])}const _=o.Extension.create({name:"gapCursor",addProseMirrorPlugins:()=>[new v.Sy({props:{decorations:R,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&E.valid(n)?new E(n):null,handleClick:H,handleKeyDown:D,handleDOMEvents:{beforeinput:P}}})],extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!==(e=(0,o.callOrReturn)((0,o.getExtensionField)(t,"allowGapCursor",n)))&&void 0!==e?e:null}}}),$=o.Node.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:t,storedMarks:i}=n;if(t.$from.parent.type.spec.isolating)return!1;const{keepMarks:r}=this.options,{splittableMarks:s}=o.extensionManager,a=i||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command((({tr:t,dispatch:e})=>{if(e&&a&&r){const e=a.filter((t=>s.includes(t.type.name)));t.ensureMarks(e)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var z=n(54424),B=200,F=function(){};F.prototype.append=function(t){return t.length?(t=F.from(t),!this.length&&t||t.length=e?F.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},F.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},F.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},F.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var o=[];return this.forEach((function(e,n){return o.push(t(e,n))}),e,n),o},F.from=function(t){return t instanceof F?t:t&&t.length?new J(t):F.empty};var J=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,o){for(var i=e;i=n;i--)if(!1===t(this.values[i],o+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=B)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=B)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(F);F.empty=new J([]);var Z=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return ti&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,n)-i,o+i))&&void 0},e.prototype.forEachInvertedInner=function(t,e,n,o){var i=this.left.length;return!(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(n,i)-i,o+i))&&!(n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(F);const j=F;class Y{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(n=this.remapping(i,this.items.length),o=n.maps.length);let r,s,a=t.tr,l=[],c=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(i,e+1),o=n.maps.length),o--,void c.push(t);if(n){c.push(new q(t.map));let e,i=t.step.map(n.slice(o));i&&a.maybeStep(i).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],l.push(new q(e,void 0,void 0,l.length+c.length))),o--,e&&n.appendMap(e,o)}else a.maybeStep(t.step);return t.selection?(r=n?t.selection.map(n.slice(o)):t.selection,s=new Y(this.items.slice(0,i).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(t,e,n,o){let i=[],r=this.eventCount,s=this.items,a=!o&&s.length?s.get(s.length-1):null;for(let n=0;nU&&(s=function(t,e){let n;return t.forEach(((t,o)=>{if(t.selection&&0==e--)return n=o,!1})),t.slice(n)}(s,l),r-=l),new Y(s.append(i),r)}remapping(t,e){let n=new C.vs;return this.items.forEach(((e,o)=>{let i=null!=e.mirrorOffset&&o-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,i)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new Y(this.items.append(t.map((t=>new q(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-e),i=t.mapping,r=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),o);let a=e;this.items.forEach((e=>{let o=i.getMirror(--a);if(null==o)return;r=Math.min(r,o);let l=i.maps[o];if(e.step){let r=t.steps[o].invert(t.docs[o]),c=e.selection&&e.selection.map(i.slice(a+1,o));c&&s++,n.push(new q(l,r,c))}else n.push(new q(l))}),o);let l=[];for(let t=e;t500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,o=[],i=0;return this.items.forEach(((r,s)=>{if(s>=t)o.push(r),r.selection&&i++;else if(r.step){let t=r.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=r.selection&&r.selection.map(e.slice(n));a&&i++;let l,c=new q(s.invert(),t,a),d=o.length-1;(l=o.length&&o[d].merge(c))?o[d]=l:o.push(c)}}else r.map&&n--}),this.items.length,0),new Y(j.from(o.reverse()),i)}}Y.empty=new Y(j.empty,0);class q{constructor(t,e,n,o){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new q(e.getMap().invert(),e,this.selection)}}}class V{constructor(t,e,n,o,i){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=o,this.prevComposition=i}}const U=20;function W(t){let e=[];return t.forEach(((t,n,o,i)=>e.push(o,i))),e}function Q(t,e){if(!t)return null;let n=[];for(let o=0;onew V(Y.empty,Y.empty,null,0,-1),apply:(e,n,o)=>function(t,e,n,o){let i,r=n.getMeta(et);if(r)return r.historyState;n.getMeta(nt)&&(t=new V(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(et))return s.getMeta(et).redo?new V(t.done.addTransform(n,void 0,o,tt(e)),t.undone,W(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new V(t.done,t.undone.addTransform(n,void 0,o,tt(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new V(t.done.rebased(n,i),t.undone.rebased(n,i),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new V(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let i=n.getMeta("composition"),r=0==t.prevTime||!s&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-o.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,o)=>{for(let i=0;i=e[i]&&(n=!0)})),n}(n,t.prevRanges)),a=s?Q(t.prevRanges,n.mapping):W(n.mapping.maps[n.steps.length-1]);return new V(t.done.addTransform(n,r?e.selection.getBookmark():void 0,o,tt(e)),Y.empty,a,n.time,null==i?t.prevComposition:i)}}(n,o,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,o="historyUndo"==n?it:"historyRedo"==n?rt:null;return!!o&&(e.preventDefault(),o(t.state,t.dispatch))}}}})}const it=(t,e)=>{let n=et.getState(t);return!(!n||0==n.done.eventCount||(e&&K(n,t,e,!1),0))},rt=(t,e)=>{let n=et.getState(t);return!(!n||0==n.undone.eventCount||(e&&K(n,t,e,!0),0))},st=o.Extension.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>it(t,e),redo:()=>({state:t,dispatch:e})=>rt(t,e)}),addProseMirrorPlugins(){return[ot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),at=o.Node.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,o=t();return 0===n.parentOffset?o.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):o.insertContent({type:this.name}),o.command((({tr:t,dispatch:e})=>{var n;if(e){const{$to:e}=t.selection,o=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(v.Bs.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(v.qv.create(t.doc,e.pos)):t.setSelection(v.Bs.create(t.doc,e.pos));else{const i=null===(n=e.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(t.insert(o,i),t.setSelection(v.Bs.create(t.doc,o+1)))}t.scrollIntoView()}return!0})).run()}}},addInputRules(){return[(0,o.nodeInputRule)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),lt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,ct=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,dt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,ut=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,ht=o.Mark.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:t}){return["em",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,o.markInputRule)({find:lt,type:this.type}),(0,o.markInputRule)({find:dt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:ct,type:this.type}),(0,o.markPasteRule)({find:ut,type:this.type})]}}),pt=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ft=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mt=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),gt=/^(\d+)\.\s$/,bt=o.Node.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return 1===e?["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,n),0]:["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ft.name,this.editor.getAttributes(mt.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:gt,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:gt,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(mt.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),vt=o.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),yt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,wt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,kt=o.Mark.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return(0,o.isMacOS)()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[(0,o.markInputRule)({find:yt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:wt,type:this.type})]}}),xt=/^\s*(\[([( |x])?\])\s$/,Ct=o.Node.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:t=>"true"===t.getAttribute("data-checked"),renderHTML:t=>({"data-checked":t.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:o})=>{const i=document.createElement("li"),r=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div");return r.contentEditable="false",a.type="checkbox",a.addEventListener("change",(e=>{if(!o.isEditable&&!this.options.onReadOnlyChecked)return void(a.checked=!a.checked);const{checked:i}=e.target;o.isEditable&&"function"==typeof n&&o.chain().focus(void 0,{scrollIntoView:!1}).command((({tr:t})=>{const e=n(),o=t.doc.nodeAt(e);return t.setNodeMarkup(e,void 0,{...null==o?void 0:o.attrs,checked:i}),!0})).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,i)||(a.checked=!a.checked))})),Object.entries(this.options.HTMLAttributes).forEach((([t,e])=>{i.setAttribute(t,e)})),i.dataset.checked=t.attrs.checked,t.attrs.checked&&a.setAttribute("checked","checked"),r.append(a,s),i.append(r,l),Object.entries(e).forEach((([t,e])=>{i.setAttribute(t,e)})),{dom:i,contentDOM:l,update:t=>t.type===this.type&&(i.dataset.checked=t.attrs.checked,t.attrs.checked?a.setAttribute("checked","checked"):a.removeAttribute("checked"),!0)}}},addInputRules(){return[(0,o.wrappingInputRule)({find:xt,type:this.type,getAttributes:t=>({checked:"x"===t[t.length-1]})})]}}),Mt=o.Node.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",(0,o.mergeAttributes)(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),St=o.Node.create({name:"text",group:"inline"}),At=o.Extension.create({name:"starterKit",addExtensions(){const t=[],e=this.options;return!1!==(null==e?void 0:e.blockquote)&&t.push(r.configure(null==e?void 0:e.blockquote)),!1!==(null==e?void 0:e.bold)&&t.push(d.configure(null==e?void 0:e.bold)),!1!==(null==e?void 0:e.bulletList)&&t.push(f.configure(null==e?void 0:e.bulletList)),!1!==(null==e?void 0:e.code)&&t.push(b.configure(null==e?void 0:e.code)),!1!==(null==e?void 0:e.codeBlock)&&t.push(k.configure(null==e?void 0:e.codeBlock)),!1!==(null==e?void 0:e.document)&&t.push(x.configure(null==e?void 0:e.document)),!1!==(null==e?void 0:e.dropcursor)&&t.push(A.configure(null==e?void 0:e.dropcursor)),!1!==(null==e?void 0:e.gapcursor)&&t.push(_.configure(null==e?void 0:e.gapcursor)),!1!==(null==e?void 0:e.hardBreak)&&t.push($.configure(null==e?void 0:e.hardBreak)),!1!==(null==e?void 0:e.heading)&&t.push(z.Heading.configure(Object.assign({levels:[1,2,3,4,5,6]},null==e?void 0:e.heading)).extend({addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>Object.assign(Object.assign({},t||{}),{[`Mod-Alt-${e}`]:()=>null==this?void 0:this.editor.commands.toggleHeading({level:e})})),{})}})),!1!==(null==e?void 0:e.history)&&t.push(st.configure(Object.assign({depth:100,newGroupDelay:500},null==e?void 0:e.history))),!1!==(null==e?void 0:e.horizontalRule)&&t.push(at.configure(null==e?void 0:e.horizontalRule)),!1!==(null==e?void 0:e.italic)&&t.push(ht.configure(null==e?void 0:e.italic)),!1!==(null==e?void 0:e.listItem)&&t.push(pt.configure(null==e?void 0:e.listItem)),!1!==(null==e?void 0:e.taskList)&&t.push(Mt.configure(null==e?void 0:e.taskList)),!1!==(null==e?void 0:e.taskItem)&&t.push(Ct.configure(Object.assign({nested:!0},null==e?void 0:e.taskItem))),!1!==(null==e?void 0:e.orderedList)&&t.push(bt.configure(null==e?void 0:e.orderedList)),!1!==(null==e?void 0:e.paragraph)&&t.push(vt.configure(null==e?void 0:e.paragraph)),!1!==(null==e?void 0:e.strike)&&t.push(kt.configure(null==e?void 0:e.strike)),!1!==(null==e?void 0:e.text)&&t.push(St.configure(null==e?void 0:e.text)),t}})},28227:(t,e,n)=>{n.r(e),n.d(e,{TableCellBackground:()=>o});const o=n(11046).Extension.create({addGlobalAttributes:()=>[{types:["tableCell","tableHeader"],attributes:{background:{default:null,renderHTML:({background:t})=>t?{style:`background: ${t}`}:null,parseHTML:({style:t})=>t.background,keepOnSplit:!1}}}],addCommands:()=>({setCellBackground:t=>({chain:e})=>e().updateAttributes("tableCell",{background:t}).updateAttributes("tableHeader",{background:t}).run(),unsetCellBackground:()=>({chain:t})=>t().updateAttributes("tableCell",{background:null}).updateAttributes("tableHeader",{background:null}).run()})})},90551:(t,e,n)=>{n.r(e),n.d(e,{TuiTable:()=>mt});var o,i,r=n(11046),s=n(62463),a=n(27439),l=n(43594),c=n(31690),d=n(38480);if("undefined"!=typeof WeakMap){let t=new WeakMap;o=e=>t.get(e),i=(e,n)=>(t.set(e,n),n)}else{const t=[],e=10;let n=0;o=e=>{for(let n=0;n(n==e&&(n=0),t[n++]=o,t[n++]=i)}var u=class{constructor(t,e,n,o){this.width=t,this.height=e,this.map=n,this.problems=o}findCell(t){for(let e=0;eo&&(r+=i.attrs.colspan)}}for(let t=0;t1&&(n=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(t),n=t.childCount,o=[];let i=0,r=null;const s=[];for(let t=0,i=e*n;t=n){(r||(r=[])).push({type:"overlong_rowspan",pos:l,n:h-t});break}const c=i+t*e;for(let t=0;t0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function g(t){const e=t.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function b(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const n=m(e.$head)||function(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n-e.nodeSize)}}(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function v(t){return"row"==t.parent.type.spec.tableRole&&!!t.nodeAfter}function y(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function w(t,e,n){const o=t.node(-1),i=u.get(o),r=t.start(-1),s=i.nextCell(t.pos-r,e,n);return null==s?null:t.node(0).resolve(r+s)}function k(t,e,n=1){const o={...t,colspan:t.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(e,n),o.colwidth.some((t=>t>0))||(o.colwidth=null)),o}function x(t,e,n=1){const o={...t,colspan:t.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let t=0;tt!=e.pos-i));l.unshift(e.pos-i);const c=l.map((t=>{const e=n.nodeAt(t);if(!e)throw RangeError(`No cell with offset ${t} found`);const o=i+t+1;return new s.xm(a.resolve(o),a.resolve(o+e.content.size))}));super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(e,n){const o=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(v(o)&&v(i)&&y(o,i)){const e=this.$anchorCell.node(-1)!=o.node(-1);return e&&this.isRowSelection()?t.rowSelection(o,i):e&&this.isColSelection()?t.colSelection(o,i):new t(o,i)}return s.Bs.between(o,i)}content(){const t=this.$anchorCell.node(-1),e=u.get(t),n=this.$anchorCell.start(-1),o=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},r=[];for(let n=o.top;n0||d>0){let t=l.attrs;if(c>0&&(t=k(t,0,c)),d>0&&(t=k(t,t.colspan-d,d)),a.lefto.bottom){const t={...l.attrs,rowspan:Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)};l=a.top0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,o=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,o)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const o=e.node(-1),i=u.get(o),r=e.start(-1),s=i.findCell(e.pos-r),a=i.findCell(n.pos-r),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(r+i.map[s.left])),a.bottom0&&(n=l.resolve(r+i.map[a.left])),s.bottom0)return!1;const r=o+this.$anchorCell.nodeAfter.attrs.colspan,s=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,s)==e.width}eq(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const o=e.node(-1),i=u.get(o),r=e.start(-1),s=i.findCell(e.pos-r),a=i.findCell(n.pos-r),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(r+i.map[s.top*i.width])),a.right0&&(n=l.resolve(r+i.map[a.top*i.width])),s.right{e.push(l.p.node(n,n+t.nodeSize,{class:"selectedCell"}))})),l.EH.create(t.doc,e)}var A=new s.H$("fix-tables");function O(t,e,n,o){const i=t.childCount,r=e.childCount;t:for(let s=0,a=0;s{"table"==e.type.spec.tableRole&&(n=function(t,e,n,o){const i=u.get(e);if(!i.problems)return o;o||(o=t.tr);const r=[];for(let t=0;t0){let e="cell";n.firstChild&&(e=n.firstChild.type.spec.tableRole);const r=[];for(let n=0;ne.width)for(let r=0,a=0;re.height){const u=[];for(let t=0,o=(e.height-1)*e.width;t=e.width)&&n.nodeAt(e.map[o+t]).type==l.header_cell;u.push(i?d||(d=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,a.HY.from(u)),p=[];for(let t=e.height;t{if(!i)return!1;const r=n.selection;if(r instanceof C)return H(n,o,s.Y1.near(r.$headCell,e));if("horiz"!=t&&!r.empty)return!1;const a=F(i,t,e);if(null==a)return!1;if("horiz"==t)return H(n,o,s.Y1.near(n.doc.resolve(r.head+e),e));{const i=n.doc.resolve(a),r=w(i,t,e);let l;return l=r?s.Y1.near(r,1):e<0?s.Y1.near(n.doc.resolve(i.before(-1)),-1):s.Y1.near(n.doc.resolve(i.after(-1)),1),H(n,o,l)}}}function R(t,e){return(n,o,i)=>{if(!i)return!1;const r=n.selection;let s;if(r instanceof C)s=r;else{const o=F(i,t,e);if(null==o)return!1;s=new C(n.doc.resolve(o))}const a=w(s.$headCell,t,e);return!!a&&H(n,o,new C(s.$anchorCell,a))}}function _(t,e){const n=t.selection;if(!(n instanceof C))return!1;if(e){const o=t.tr,i=p(t.schema).cell.createAndFill().content;n.forEachCell(((t,e)=>{t.content.eq(i)||o.replace(o.mapping.map(e+1),o.mapping.map(e+t.nodeSize-1),new a.p2(i,0,0))})),o.docChanged&&e(o)}return!0}function $(t,e){const n=m(t.state.doc.resolve(e));return!!n&&(t.dispatch(t.state.tr.setSelection(new C(n))),!0)}function z(t,e,n){if(!g(t.state))return!1;let o=function(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:o}=t;for(;1==e.childCount&&(n>0&&o>0||"table"==e.child(0).type.spec.tableRole);)n--,o--,e=e.child(0).content;const i=e.child(0),r=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==r)for(let t=0;t=0;e--){const{rowspan:i,colspan:r}=o.child(e).attrs;for(let e=t;e=e.length&&e.push(a.HY.empty),n[i]o&&(a=a.type.createChecked(k(a.attrs,a.attrs.colspan,n+a.attrs.colspan-o),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;ni&&(e=e.type.create({...e.attrs,rowspan:Math.max(1,i-e.attrs.rowspan)},e.content)),s.push(e)}t.push(a.HY.from(s))}n=t,e=i}return{width:t,height:e,rows:n}}(o,s.right-s.left,s.bottom-s.top),D(t.state,t.dispatch,r,s,o),!0}if(o){const e=b(t.state),n=e.start(-1);return D(t.state,t.dispatch,n,u.get(e.node(-1)).findCell(e.pos-n),o),!0}return!1}function B(t,e){var n;if(e.ctrlKey||e.metaKey)return;const o=J(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof C)r(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&o&&null!=(i=m(t.state.selection.$anchor))&&(null==(n=Z(t,e))?void 0:n.pos)!=i.pos)r(i,e),e.preventDefault();else if(!o)return;function r(e,n){let o=Z(t,n);const i=null==f.getState(t.state);if(!o||!y(e,o)){if(!i)return;o=e}const r=new C(e,o);if(i||!t.state.selection.eq(r)){const n=t.state.tr.setSelection(r);i&&n.setMeta(f,e.pos),t.dispatch(n)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),null!=f.getState(t.state)&&t.dispatch(t.state.tr.setMeta(f,-1))}function a(n){const i=n,a=f.getState(t.state);let l;if(null!=a)l=t.state.doc.resolve(a);else if(J(t,i.target)!=o&&(l=Z(t,e),!l))return s();l&&r(l,i)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function F(t,e,n){if(!(t.state.selection instanceof s.Bs))return null;const{$head:o}=t.state.selection;for(let i=o.depth-1;i>=0;i--){const r=o.node(i);if((n<0?o.index(i):o.indexAfter(i))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const r=o.before(i),s="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?r:null}}return null}function J(t,e){for(;e&&e!=t.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function Z(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?m(t.state.doc.resolve(n.pos)):null}var j=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Y(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type==this.node.type&&(this.node=t,Y(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return"attributes"==t.type&&(t.target==this.table||this.colgroup.contains(t.target))}};function Y(t,e,n,o,i,r){var s;let a=0,l=!0,c=e.firstChild;const d=t.firstChild;if(d){for(let t=0,n=0;t(i.spec.props.nodeViews[p(o.schema).table.name]=(t,o)=>new n(t,e,o),new U(-1,!1)),apply:(t,e)=>e.apply(t)},props:{attributes:t=>{const e=q.getState(t);return e&&e.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(e,n)=>{!function(t,e,n,o,i){const r=q.getState(t.state);if(r&&!r.dragging){const o=function(t){for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}(e.target);let s=-1;if(o){const{left:i,right:r}=o.getBoundingClientRect();e.clientX-i<=n?s=W(t,e,"left",n):r-e.clientX<=n&&(s=W(t,e,"right",n))}if(s!=r.activeHandle){if(!i&&-1!==s){const e=t.state.doc.resolve(s),n=e.node(-1),o=u.get(n),i=e.start(-1);if(o.colCount(e.pos-i)+e.nodeAfter.attrs.colspan-1==o.width-1)return}K(t,s)}}}(e,n,t,0,o)},mouseleave:t=>{!function(t){const e=q.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&K(t,-1)}(t)},mousedown:(t,n)=>{!function(t,e,n){const o=q.getState(t.state);if(!o||-1==o.activeHandle||o.dragging)return!1;const i=t.state.doc.nodeAt(o.activeHandle),r=function(t,e,{colspan:n,colwidth:o}){const i=o&&o[o.length-1];if(i)return i;const r=t.domAtPos(e);let s=r.node.childNodes[r.offset].offsetWidth,a=n;if(o)for(let t=0;t{const e=q.getState(t);if(e&&e.activeHandle>-1)return function(t,e){const n=[],o=t.doc.resolve(e),i=o.node(-1);if(!i)return l.EH.empty;const r=u.get(i),s=o.start(-1),a=r.colCount(o.pos-s)+o.nodeAfter.attrs.colspan;for(let t=0;t-1&&e.docChanged){let o=e.mapping.map(n.activeHandle,-1);return v(e.doc.resolve(o))||(o=-1),new t(o,n.dragging)}return n}};function W(t,e,n,o){const i="right"==n?-o:o,r=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!r)return-1;const{pos:s}=r,a=m(t.state.doc.resolve(s));if(!a)return-1;if("right"==n)return a.pos;const l=u.get(a.node(-1)),c=a.start(-1),d=l.map.indexOf(a.pos-c);return d%l.width==0?-1:c+l.map[d-1]}function Q(t,e,n){const o=e.clientX-t.startX;return Math.max(n,t.startWidth+o)}function K(t,e){t.dispatch(t.state.tr.setMeta(q,{setHandle:e}))}function G(t){const e=t.selection,n=b(t),o=n.node(-1),i=n.start(-1),r=u.get(o);return{...e instanceof C?r.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):r.findCell(n.pos-i),tableStart:i,map:r,table:o}}function X(t,{map:e,tableStart:n,table:o},i){let r=i>0?-1:0;(function(t,e,n){const o=p(e.type.schema).header_cell;for(let i=0;i0&&i0&&e.map[a-1]==l||i0?-1:0;(function(t,e,n){var o;const i=p(e.type.schema).header_cell;for(let r=0;r0&&i0&&c==e.map[s-e.width]){const e=n.nodeAt(c).attrs;t.setNodeMarkup(t.mapping.slice(a).map(c+o),null,{...e,rowspan:e.rowspan-1}),r+=e.colspan-1}else if(i0&&n[r]==n[r-1]||o.right0&&n[i]==n[i-t]||o.bottomn[t.type.spec.tableRole],(t,e)=>{var n;const i=t.selection;let r,s;if(i instanceof C){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(r=function(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if("cell"===n||"header_cell"===n)return t.node(e)}return null}(i.$from),!r)return!1;s=null==(n=m(i.$from))?void 0:n.pos}if(null==r||null==s)return!1;if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let n=r.attrs;const a=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const c=G(t),d=t.tr;for(let t=0;ti.table.nodeAt(t)));for(let t=0;t{const e=t+i.tableStart,n=r.doc.nodeAt(e);n&&r.setNodeMarkup(e,d,n.attrs)})),n(r)}return!0}}at("row",{useDeprecatedLogic:!0}),at("column",{useDeprecatedLogic:!0});var lt=at("cell",{useDeprecatedLogic:!0});function ct(t){return function(e,n){if(!g(e))return!1;const o=function(t,e){if(e<0){const e=t.nodeBefore;if(e)return t.pos-e.nodeSize;for(let e=t.index(-1)-1,n=t.before();e>=0;e--){const o=t.node(-1).child(e),i=o.lastChild;if(i)return n-1-i.nodeSize;n-=o.nodeSize}}else{if(t.index()null,apply(t,e){const n=t.getMeta(f);if(null!=n)return-1==n?null:n;if(null==e||!t.docChanged)return e;const{deleted:o,pos:i}=t.mapping.mapResult(e);return o?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:B},createSelectionBetween:t=>null!=f.getState(t.state)?t.state.selection:null,handleTripleClick:$,handleKeyDown:L,handlePaste:z},appendTransaction:(e,n,o)=>function(t,e,n){const o=(e||t).selection,i=(e||t).doc;let r,a;if(o instanceof s.qv&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=C.create(i,o.from);else if("row"==a){const t=i.resolve(o.from+1);r=C.rowSelection(t,t)}else if(!n){const t=u.get(o.node),e=o.from+1,n=e+t.map[t.width*t.height-1];r=C.create(i,e+1,n)}}else o instanceof s.Bs&&function({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(t+1)>e.start(t));t--,o--);return n==o&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=s.Bs.create(i,o.from):o instanceof s.Bs&&function({$from:t,$to:e}){let n,o;for(let e=t.depth;e>0;e--){const o=t.node(e);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){n=o;break}}for(let t=e.depth;t>0;t--){const n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){o=n;break}}return n!==o&&0===e.parentOffset}(o)&&(r=s.Bs.create(i,o.$from.start(),o.$from.end()));return r&&(e||(e=t.tr)).setSelection(r),e}(o,T(o,n),t)})}function ut(t,e,n,o,i,r){let s=0,a=!0,l=e.firstChild;const c=t.firstChild;for(let t=0,n=0;t{const{selection:e}=t.state;if(!(e instanceof C))return!1;let n=0;const o=(0,r.findParentNodeClosestToPos)(e.ranges[0].$from,(t=>"table"===t.type.name));return null==o||o.node.descendants((t=>{if("table"===t.type.name)return!1;["tableCell","tableHeader"].includes(t.type.name)&&(n+=1)})),n===e.ranges.length&&(t.commands.deleteTable(),!0)},mt=r.Node.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:ht,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:t}){return["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,t),["tbody",0]]},addCommands:()=>({insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:o,dispatch:i,editor:r})=>{const a=function(t,e,n,o,i){const r=function(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach((n=>{const o=t.nodes[n];o.spec.tableRole&&(e[o.spec.tableRole]=o)})),t.cached.tableNodeTypes=e,e}(t),s=[],a=[];for(let t=0;t({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.left))}return!0}(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.right))}return!0}(t,e),deleteColumn:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let t=n.right-1;tt(o,n,t),t!=n.left;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(t)}e(o)}return!0}(t,e),addRowBefore:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.top))}return!0}(t,e),addRowAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.bottom))}return!0}(t,e),deleteRow:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let t=n.bottom-1;nt(o,n,t),t!=n.top;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(n.table)}e(o)}return!0}(t,e),deleteTable:()=>({state:t,dispatch:e})=>function(t,e){const n=t.selection.$anchor;for(let o=n.depth;o>0;o--)if("table"==n.node(o).type.spec.tableRole)return e&&e(t.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}(t,e),mergeCells:()=>({state:t,dispatch:e})=>it(t,e),splitCell:()=>({state:t,dispatch:e})=>rt(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>at("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>at("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>lt(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>!!it(t,e)||rt(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:o})=>function(t,e){return function(n,o){if(!g(n))return!1;const i=b(n);if(i.nodeAfter.attrs[t]===e)return!1;if(o){const r=n.tr;n.selection instanceof C?n.selection.forEachCell(((n,o)=>{n.attrs[t]!==e&&r.setNodeMarkup(o,null,{...n.attrs,[t]:e})})):r.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),o(r)}return!0}}(t,e)(n,o),goToNextCell:()=>({state:t,dispatch:e})=>ct(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>ct(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&T(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const n=C.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ft,"Mod-Backspace":ft,Delete:ft,"Mod-Delete":ft}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[V({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],dt({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:(0,r.callOrReturn)((0,r.getExtensionField)(t,"tableRole",e))}}}).extend({renderHTML({node:t,HTMLAttributes:e}){var n,o;let i=0,s=!0;try{const e=(null===(n=t.content)||void 0===n?void 0:n.content)[0];null===(o=null==e?void 0:e.content)||void 0===o||o.content.forEach((t=>{if(t.attrs.colwidth)t.attrs.colwidth.forEach((t=>{t?i+=t:(s=!1,i+=this.options.cellMinWidth)}));else{s=!1;const e=t.attrs.colspan||1;i+=this.options.cellMinWidth*e}}))}catch(t){s=!1}return e.style=s&&i>0?`width: ${i}px;`:i&&i>0?`min-width: ${i}px`:null,["div",{class:"tui-table-wrapper"},["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,e),["tbody",0]]]}})},13704:(t,e,n)=>{n.d(e,{y:()=>l,d:()=>a});var o=n(12057),i=n(11046),r=n(74788);class s{constructor(t,e,n){const o=e.get(r.z2F),i=e.get(r._Vd).resolveComponentFactory(t);this.componentRef=i.create(e,[]),this.updateProps(n),o.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get el(){return this.componentRef.injector.get(r.SBq)}get dom(){return this.el.nativeElement}updateProps(t){Object.entries(t).forEach((([t,e])=>{this.instance[t]=e}))}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy()}}class a{}class l extends i.NodeView{constructor(t,e,n){super(t,e,n),this.contentDOMElement=null}mount(){const t=this.options.injector,e=t.get(o.K0),n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(t={})=>this.updateAttributes(t),deleteNode:()=>this.deleteNode()};this.editor.on("selectionUpdate",this.handleSelectionUpdate.bind(this)),this.renderer=new s(this.component,t,n),this.extension.config.draggable&&(this.renderer.el.nativeElement.ondragstart=t=>{this.onDragStart(t)}),this.contentDOMElement=this.node.isLeaf?null:e.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges()),this.appendContendDom()}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.appendContendDom()),!0)}handleSelectionUpdate(){const{from:t,to:e}=this.editor.state.selection;t<=this.getPos()&&e>=this.getPos()+this.node.nodeSize?this.selectNode():this.deselectNode()}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate.bind(this)),this.contentDOMElement=null}appendContendDom(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}}},37195:(t,e,n)=>{n.d(e,{zc:()=>w.zc,dR:()=>w.dR,F1:()=>w.F1,nE:()=>m.nE,Xw:()=>v,Wf:()=>w.Wf,VE:()=>y.TUI_EDITOR_MAX_IMAGE_WIDTH,kB:()=>y.TUI_EDITOR_MIN_IMAGE_WIDTH,mJ:()=>w.mJ,bK:()=>w.bK,p7:()=>w.p7,H9:()=>o.H9,wl:()=>o.wl,aI:()=>r.a,BN:()=>h.BN,T_:()=>p,GK:()=>d,_2:()=>g._,Sz:()=>f,VM:()=>o.VM,$3:()=>h.$3,yB:()=>u.yB,sw:()=>m.sw,PD:()=>b,Uv:()=>w.Uv,Er:()=>k.Er});var o=n(83950),i=n(1884),r=(n(13099),n(8820)),s=n(12057),a=n(42600),l=n(43232),c=(n(76690),n(74788));let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({}),t})();var u=n(90712),h=n(5915);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[a.HOV,s.ez,u.yB,l.WUl,l.Jyu,i.Fu,a.Ah6,l.dpK,h.mJ,d]]}),t})();n(1566),n(57495),n(53058),n(21335),n(8274),n(69057);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[s.ez,l.KWI,l.cnw,l.jhF,o.wl,a.Ah6]]}),t})();n(30560);var m=n(69725),g=n(72023);n(44);const b=[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:t})=>t)).then((t=>t.configure({heading:{levels:[1,2,3,4,5,6]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),n.e(7991).then(n.bind(n,17991)).then((({default:t})=>t)),n.e(7147).then(n.bind(n,77147)).then((({default:t})=>t)),n.e(5034).then(n.bind(n,25034)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,30163)).then((({FontColor:t})=>t)),Promise.resolve().then(n.bind(n,44632)).then((({default:t})=>t.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(n.bind(n,48239)).then((({TuiLink:t})=>t)),n.e(6633).then(n.bind(n,96633)).then((({TuiJumpAnchor:t})=>t)),Promise.resolve().then(n.bind(n,58101)).then((({TuiFileLink:t})=>t)),Promise.resolve().then(n.bind(n,44)).then((({BackgroundColor:t})=>t)),Promise.resolve().then(n.bind(n,90551)).then((({TuiTable:t})=>t.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:t})=>t)),n.e(1397).then(n.bind(n,71397)).then((({default:t})=>t)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:t})=>t)),Promise.resolve().then(n.bind(n,13575)).then((({TuiTabExtension:t})=>t)),Promise.resolve().then(n.bind(n,28227)).then((({TableCellBackground:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetailsContent:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetails:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiSummary:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))],v=b;n(58101),n(30163),n(1604),n(19818),n(33626);var y=n(89681),w=(n(13575),n(48239),n(39069),n(28730),n(90551),n(28227),n(40401)),k=n(63097)},87901:(t,e,n)=>{n.d(e,{i:()=>h});var o=n(12057),i=n(74788),r=n(42600),s=n(63097),a=n(29856),l=n(43190),c=n(88002),d=n(46782),u=n(39761);let h=(()=>{class t extends a.y{constructor(t,{nativeElement:e},n){const o=(0,r.mLY)(e,"mousedown").pipe((0,r.mp3)(),(0,l.w)((t=>{const o=(0,r.mLY)(n,"mousemove").pipe((0,c.U)((({clientX:t,clientY:n})=>(0,s.Ws)(t,n,e))),(0,d.R)((0,r.mLY)(n,"mouseup")));return t.target===e?o.pipe((0,u.O)((0,s.Ws)(t.clientX,t.clientY,e))):o})),(0,d.R)(t));super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(r.a31,2),i.LFG(i.SBq),i.LFG(o.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},40401:(t,e,n)=>{n.d(e,{Y1:()=>T,F4:()=>r,bG:()=>O,ZW:()=>A,zc:()=>m,dR:()=>f,Mr:()=>k,dj:()=>b,F1:()=>h,Wf:()=>i,UN:()=>x,b$:()=>w,mJ:()=>c,$i:()=>y,rf:()=>v,bK:()=>p,p7:()=>M,Uv:()=>d});var o=n(74788);const i=new o.OlP("[TUI_EDITOR_EXTENSIONS]"),r=new o.OlP("[LAZY_EDITOR_EXTENSIONS]");var s=n(42600),a=n(69725);const l={translate:"no",appearence:"textfield",spellcheck:!1,enableDefaultStyles:!0,colors:a.sw,blankColor:a.hK,linkOptions:a.pL,fontOptions:a.RR,icons:{undo:"tuiIconUndoLarge",redo:"tuiIconRedoLarge",quote:"tuiIconQuoteLarge",link:"tuiIconLinkLarge",anchor:"tuiIconAnchorLarge",attach:"tuiIconPaperclipLarge",sub:"tuiIconSubscriptLarge",sup:"tuiIconSuperscriptLarge",tex:"tuiIconTeXLarge",image:"tuiIconImageLarge",hr:"tuiIconHrLarge",clear:"tuiIconClearFormatLarge",groupAdd:"tuiIconPlusLarge",groupRemove:"tuiIconCloseLarge",detailsAdd:"tuiIconSpoilerLarge",detailsRemove:"tuiIconSpoilerDeleteLarge",popupLinkSave:"tuiIconCheckCircleLarge",popupLinkRemove:"tuiIconCloseLarge",popupPreviewLinkEdit:"tuiIconEdit2Large",popupPreviewLinkClear:"tuiIconUnlinkLarge",paint:"tuiIconPaintLarge",textAlignPreview:"tuiIconAlignLeftLarge",textAlignLeft:"tuiIconAlignLeftLarge",textAlignCenter:"tuiIconAlignCenterLarge",textAlignRight:"tuiIconAlignRightLarge",textAlignJustify:"tuiIconAlignJustifyLarge",textColor:"tuiIconColorLarge",textHilite:"tuiIconHiliteLarge",listPreview:"tuiIconListLarge",listUnOrdered:"tuiIconListLarge",listOrdered:"tuiIconOLLarge",taskList:"tuiIconCheckSquare",indent:"tuiIconIndentLarge",outdent:"tuiIconOutdentLarge",fontSize:"tuiIconFontLarge",insertTable:"tuiIconTableLarge",addRowTable:"tuiIconAddRowLarge",code:"tuiIconCodeLarge",fontStylePreview:"tuiIconFormatLarge",fontStyleBold:"tuiIconBoldLarge",fontStyleItalic:"tuiIconItalicLarge",fontStyleUnderline:"tuiIconUnderlineLarge",fontStyleStrike:"tuiIconStrikeThroughLarge",colorSelectorDropdownChevron:"tuiIconChevronDown",colorSelectorDropdownCheck:"tuiIconCheck"}},c=(0,s.jHx)(l);function d(t){return(0,s.vKU)(c,t,l)}var u=n(54487);const h=new o.OlP("[TUI_EDITOR_CONTENT_PROCESSOR]",{factory:()=>u.y}),p=new o.OlP("[TUI_EDITOR_VALUE_TRANSFORMER]"),f=new o.OlP("[TUI_ATTACH_FILES_OPTIONS]",{factory:()=>({accept:"*/*",multiple:!0})}),m=new o.OlP("[TUI_ATTACH_FILES_LOADER]");var g=n(19633);const b=new o.OlP("[TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),v=new o.OlP("[TUI_EDITOR_TOOLBAR_TEXTS]",{factory:(0,g.vv)("toolbarTools")}),y=new o.OlP("[TUI_EDITOR_TABLE_COMMANDS]",{factory:(0,g.vv)("editorTableCommands")}),w=new o.OlP("[TUI_EDITOR_LINK_TEXTS]",{factory:(0,g.vv)("editorEditLink")}),k=new o.OlP("[TUI_EDITOR_CODE_OPTIONS]",{factory:(0,g.vv)("editorCodeOptions")}),x=new o.OlP("[TUI_EDITOR_FONT_OPTIONS]",{factory:(0,g.vv)("editorFontOptions")});var C=n(88002);const M=new o.OlP("[TUI_IMAGE_LOADER]",{factory:()=>t=>{const e=new FileReader;return e.readAsDataURL(t),(0,s.mLY)(e,"load").pipe((0,C.U)((()=>String(e.result))))}});var S=n(74235);const A=new o.OlP("[TIPTAP_EDITOR]"),O=new o.OlP("[LAZY_TIPTAP_EDITOR]",{factory:()=>{const t=new S.t(1);return Promise.resolve().then(n.bind(n,11046)).then((e=>t.next(e.Editor))),t}}),T=new o.OlP("[INITIALIZATION_TIPTAP_CONTAINER]")},63097:(t,e,n)=>{function o(t,e,n){const o=t.selection.$anchor;for(let i=o.depth;i>0;i--)if(o.node(i).type.name===n)return e&&e(t.tr.delete(o.before(i),o.after(i)).scrollIntoView()),!0;return!1}n.d(e,{yU:()=>o,Ws:()=>r,U5:()=>s,Yz:()=>l,YX:()=>d,Ap:()=>h,nC:()=>x,Er:()=>g,_N:()=>y,x6:()=>w,jx:()=>k,CH:()=>C});var i=n(42600);function r(t,e,n){const{left:o,top:r,width:s,height:a}=n.getBoundingClientRect();return[(0,i.Kiv)(t-o,0,s)/s,(0,i.Kiv)(e-r,0,a)/a]}function s(t){return t.slice(0,Math.max(0,t.length-1)).replace("linear-gradient(","")}function a(t,e,n={}){return t.find((({attrs:t,type:o})=>o===e&&function(t,e){const n=Object.keys(e);return!n.length||!!n.filter((n=>e[n]===t[n])).length}(t,n)))||null}function l(t,e,n={}){if(!t||!e)return null;const{node:o,offset:i}=t.parent.childAfter(t.parentOffset);if(!o)return null;const r=a(o.marks,e,n);if(!r)return null;let s=t.index(),l=t.start()+i,c=s+1,d=l+o.nodeSize;for(a(o.marks,e,n);s>0&&r.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;c{t instanceof c.NB&&e.push([t.type.name,t.attrs])})),e}var u=n(11046);function h(t,e){const n=null!=e?e:t.selection.$head.parent.textContent,o=t.doc.cut(t.selection.from,t.selection.to);return o.content.size?(0,u.getHTMLFromFragment)(o.content,t.schema):n}function p(t){Array.from(t.children).forEach((t=>{if(t.children.length&&p(t),"FONT"===t.tagName)if(t.hasAttribute("size"))switch(t.getAttribute("size")){case"6":f("h1",t);break;case"5":f("h2",t);break;case"4":m("17px",t);break;case"3":m("15px",t);break;case"2":m("13px",t)}else t.hasAttribute("color")&&function(t){var e;const n=document.createElement("span");n.setAttribute("style",`color: ${t.getAttribute("color")}`),n.innerHTML=t.innerHTML,null===(e=t.parentElement)||void 0===e||e.replaceChild(n,t)}(t)}))}function f(t,e){var n,o,i,r,s,a,l,c,d;const u=document.createElement(t);if(u.innerHTML=e.innerHTML,"P"===(null===(n=e.parentElement)||void 0===n?void 0:n.tagName)){const t=null===(i=null===(o=e.parentElement)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.insertBefore(u,e.parentElement);null===(r=e.parentElement)||void 0===r||r.removeChild(e),(null==t?void 0:t.nextSibling)&&!(null===(a=null===(s=null==t?void 0:t.nextSibling)||void 0===s?void 0:s.textContent)||void 0===a?void 0:a.trim())&&(null===(c=null===(l=t.nextSibling)||void 0===l?void 0:l.parentElement)||void 0===c||c.removeChild(t.nextSibling))}else null===(d=e.parentElement)||void 0===d||d.replaceChild(u,e)}function m(t,e){var n;const o=document.createElement("p"),i=document.createElement("span");i.setAttribute("style",`font-size: ${t}`),i.innerHTML=e.innerHTML,o.append(i),null===(n=e.parentElement)||void 0===n||n.replaceChild("P"===e.parentElement.tagName?i:o,e)}function g(t){const e=(new DOMParser).parseFromString(t,"text/html");return p(e.body),e.body.innerHTML}const b=["\\s*(","(?:","#(?:[a-f0-9]{6}|[a-f0-9]{3})","|","(?:rgb|hsl)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)","|","(?:rgba|hsla)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)","|","[_a-z-][_a-z0-9-]*",")",")","(?:\\s+","(","(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?","))?","(?:","\\s*,\\s*","\\s*)?"];function v(t,e){const n=1===e?"100%":`${e}%`;return(null==t?void 0:t.includes("%"))?t:n}function y(t){const e=new RegExp(b.join(""),"gi"),n=t.startsWith("to")||t.match(/^\d/)?t.slice(Math.max(0,t.indexOf(",")+1)).trim():t,o=t.startsWith("to")?t.split(",")[0]:"to bottom";let i=[],r=e.exec(n);for(;null!==r;)i=i.concat({color:r[1],position:v(r[2],i.length)}),r=e.exec(n);return i=i.filter((({color:t})=>t.startsWith("#")||t.startsWith("rgb"))),{stops:i,side:o}}function w(t){return t.reduce(((t,e)=>(t[e]={parseHTML:t=>null==t?void 0:t.getAttribute(`${e}`)},t)),{})}function k(t){return t.split(";").reduce(((t,e)=>{var n;const[o,i]=null!==(n=e.split(":"))&&void 0!==n?n:[];return o&&i&&(t[o.trim()]=i.trim()),t}),{})}function x(t){var e;const n=(null===(e=t.endContainer.nodeValue)||void 0===e?void 0:e.length)||0;return t.endOffset-t.startOffset>0||t.endOffset-t.startOffset==0&&1===n||0!==t.startOffset&&n>1&&t.endOffset!==n}function C({stops:t,side:e}){return`linear-gradient(${e}, ${t.map((({color:t,position:e})=>`rgba(${(0,i.MpC)(t).join(", ")}) ${e}`)).join(", ")})`}},11046:(t,e,n)=>{n.r(e),n.d(e,{CommandManager:()=>D,Editor:()=>ge,Extension:()=>ct,InputRule:()=>K,Mark:()=>xe,Node:()=>Ce,NodeView:()=>Me,PasteRule:()=>nt,Tracker:()=>Ee,callOrReturn:()=>F,combineTransactionSteps:()=>It,createChainableState:()=>I,createDocument:()=>Nt,createNodeFromContent:()=>Ct,createStyleTag:()=>me,defaultBlockAt:()=>Dt,deleteProps:()=>Tt,elementFromString:()=>xt,escapeForRegEx:()=>Ae,extensions:()=>fe,findChildren:()=>Lt,findChildrenInRange:()=>Ht,findDuplicates:()=>rt,findParentNode:()=>Rt,findParentNodeClosestToPos:()=>Pt,fromString:()=>Z,generateHTML:()=>zt,generateJSON:()=>Bt,generateText:()=>Jt,getAttributes:()=>jt,getAttributesFromExtensions:()=>R,getChangedRanges:()=>qt,getDebugJSON:()=>Vt,getExtensionField:()=>H,getHTMLFromFragment:()=>_t,getMarkAttributes:()=>Et,getMarkRange:()=>gt,getMarkType:()=>bt,getMarksBetween:()=>Ut,getNodeAtPosition:()=>Wt,getNodeAttributes:()=>Zt,getNodeType:()=>_,getRenderedAttributes:()=>z,getSchema:()=>$t,getSchemaByResolvedExtensions:()=>q,getSchemaTypeByName:()=>V,getSchemaTypeNameByName:()=>Ot,getSplittedAttributes:()=>Qt,getText:()=>Ft,getTextBetween:()=>dt,getTextContentFromNodes:()=>W,getTextSerializersFromSchema:()=>ut,injectExtensionAttributesToParseRule:()=>j,inputRulesPlugin:()=>tt,isActive:()=>Gt,isAtEndOfNode:()=>Xt,isAtStartOfNode:()=>te,isEmptyObject:()=>J,isExtensionRulesEnabled:()=>U,isFunction:()=>B,isList:()=>ee,isMacOS:()=>St,isMarkActive:()=>Kt,isNodeActive:()=>At,isNodeEmpty:()=>ne,isNodeSelection:()=>oe,isNumber:()=>et,isPlainObject:()=>at,isRegExp:()=>Q,isString:()=>Oe,isTextSelection:()=>vt,isiOS:()=>kt,markInputRule:()=>be,markPasteRule:()=>Se,mergeAttributes:()=>$,mergeDeep:()=>lt,minMax:()=>yt,nodeInputRule:()=>ve,nodePasteRule:()=>Te,objectIncludes:()=>pt,pasteRulesPlugin:()=>it,posToDOMRect:()=>ie,removeDuplicates:()=>Yt,resolveFocusPosition:()=>wt,selectionToInsertionEnd:()=>Mt,splitExtensions:()=>P,textInputRule:()=>we,textPasteRule:()=>Ne,textblockTypeInputRule:()=>ye,wrappingInputRule:()=>ke});var o=n(62463),i=n(43594),r=n(31690),s=n(27439),a=n(38480);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0),c=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}(t,n);if(!i)return!1;let r=h(i);if(!r){let n=i.blockRange(),o=n&&(0,a.k9)(n);return null!=o&&(e&&e(t.tr.lift(n,o).scrollIntoView()),!0)}let l=r.nodeBefore;if(!l.type.spec.isolating&&k(t,r,e))return!0;if(0==i.parent.content.size&&(d(l,"end")||o.qv.isSelectable(l))){let n=(0,a.dR)(t.doc,i.before(),i.after(),s.p2.empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):i.parentOffset>0)return!1;s=h(i)}let a=s&&s.nodeBefore;return!(!a||!o.qv.isSelectable(a)||(e&&e(t.tr.setSelection(o.qv.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),0))};function h(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}const p=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):i.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:o}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(o)||(e&&e(t.tr.insertText("\n").scrollIntoView()),0))};function b(t){for(let e=0;e{let{$head:n,$anchor:i}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),s=n.indexAfter(-1),a=b(r.contentMatchAt(s));if(!a||!r.canReplaceWith(s,s,a))return!1;if(e){let i=n.after(),r=t.tr.replaceWith(i,i,a.createAndFill());r.setSelection(o.Y1.near(r.doc.resolve(i),1)),e(r.scrollIntoView())}return!0},y=(t,e)=>{let n=t.selection,{$from:i,$to:r}=n;if(n instanceof o.C1||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=b(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if((0,a.Ax)(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),i=o&&(0,a.k9)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)};function k(t,e,n){let i,r,l=e.nodeBefore,c=e.nodeAfter;if(l.type.spec.isolating||c.type.spec.isolating)return!1;if(function(t,e,n){let o=e.nodeBefore,i=e.nodeAfter,r=e.index();return!(!(o&&i&&o.type.compatibleContent(i.type))||(!o.content.size&&e.parent.canReplace(r-1,r)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!i.isTextblock&&!(0,a.Mn)(t.doc,e.pos)||(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(r=l.contentMatchAt(l.childCount)).findWrapping(c.type))&&r.matchType(i[0]||c.type).validEnd){if(n){let o=e.pos+c.nodeSize,r=s.HY.empty;for(let t=i.length-1;t>=0;t--)r=s.HY.from(i[t].create(null,r));r=s.HY.from(l.copy(r));let d=t.tr.step(new a.FC(e.pos-1,o,e.pos,o,new s.p2(r,1,0),i.length,!0)),u=o+2*i.length;(0,a.Mn)(d.doc,u)&&d.join(u),n(d.scrollIntoView())}return!0}let h=o.Y1.findFrom(e,1),p=h&&h.$from.blockRange(h.$to),f=p&&(0,a.k9)(p);if(null!=f&&f>=e.depth)return n&&n(t.tr.lift(p,f).scrollIntoView()),!0;if(u&&d(c,"start",!0)&&d(l,"end")){let o=l,i=[];for(;i.push(o),!o.isTextblock;)o=o.lastChild;let r=c,d=1;for(;!r.isTextblock;r=r.firstChild)d++;if(o.canReplace(o.childCount,o.childCount,r.content)){if(n){let o=s.HY.empty;for(let t=i.length-1;t>=0;t--)o=s.HY.from(i[t].copy(o));n(t.tr.step(new a.FC(e.pos-i.length,e.pos+c.nodeSize,e.pos+d,e.pos+c.nodeSize-d,new s.p2(o,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function x(t){return function(e,n){let i=e.selection,r=t<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return!!r.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.Bs.create(e.doc,t<0?r.start(s):r.end(s)))),!0)}}const C=x(-1),M=x(1);function S(t,e=null){return function(n,o){let i=!1;for(let o=0;o{if(i)return!1;if(o.isTextblock&&!o.hasMarkup(t,e))if(o.type==t)i=!0;else{let e=n.doc.resolve(r),o=e.index();i=e.parent.canReplaceWith(o,o+1,t)}}))}if(!i)return!1;if(o){let i=n.tr;for(let o=0;o{let{$from:n,$to:i}=t.selection;if(t.selection instanceof o.qv&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,a.Ax)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.parent.isBlock)return!1;if(e){let r=i.parentOffset==i.parent.content.size,s=t.tr;(t.selection instanceof o.Bs||t.selection instanceof o.C1)&&s.deleteSelection();let l=0==n.depth?null:b(n.node(-1).contentMatchAt(n.indexAfter(-1))),c=r&&l?[{type:l}]:void 0,d=(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,c);if(c||d||!(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,l?[{type:l}]:void 0)||(l&&(c=[{type:l}]),d=!0),d&&(s.split(s.mapping.map(n.pos),1,c),!r&&!n.parentOffset&&n.parent.type!=l)){let t=s.mapping.map(n.before()),e=s.doc.resolve(t);l&&n.node(-1).canReplaceWith(e.index(),e.index()+1,l)&&s.setNodeMarkup(s.mapping.map(n.before()),l)}e(s.scrollIntoView())}return!0})),"Mod-Enter":v,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:T,"Mod-Delete":T,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.C1(t.doc))),!0)},E={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":C,"Ctrl-e":M};for(let t in N)E[t]=N[t];function I(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:i}=n,{storedMarks:r}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return o},get doc(){return i},get tr(){return o=n.selection,i=n.doc,r=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:o}=e,{tr:i}=n,r=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(...t)=>{const n=e(...t)(r);return i.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(i),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s=[],a=!!t,l=t||i.tr,c={...Object.fromEntries(Object.entries(n).map((([t,n])=>[t,(...t)=>{const o=this.buildProps(l,e),i=n(...t)(o);return s.push(i),c}]))),run:()=>(a||!e||l.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(l),s.every((t=>!0===t)))};return c}createCan(t){const{rawCommands:e,state:n}=this,o=!1,i=t||n.tr,r=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(e).map((([t,e])=>[t,(...t)=>e(...t)({...r,dispatch:void 0})]))),chain:()=>this.createChain(i,o)}}buildProps(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s={tr:t,editor:o,view:r,state:I({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map((([t,e])=>[t,(...t)=>e(...t)(s)])))}};return s}}class L{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach((t=>t.apply(this,e))),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter((t=>t!==e)):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return void 0===t.config[e]&&t.parent?H(t.parent,e,n):"function"==typeof t.config[e]?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function P(t){return{baseExtensions:t.filter((t=>"extension"===t.type)),nodeExtensions:t.filter((t=>"node"===t.type)),markExtensions:t.filter((t=>"mark"===t.type))}}function R(t){const e=[],{nodeExtensions:n,markExtensions:o}=P(t),i=[...n,...o],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach((t=>{const n=H(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage});n&&n().forEach((t=>{t.types.forEach((n=>{Object.entries(t.attributes).forEach((([t,o])=>{e.push({type:n,name:t,attribute:{...r,...o}})}))}))}))})),i.forEach((t=>{const n={name:t.name,options:t.options,storage:t.storage},o=H(t,"addAttributes",n);if(!o)return;const i=o();Object.entries(i).forEach((([n,o])=>{const i={...r,...o};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&void 0===(null==i?void 0:i.default)&&delete i.default,e.push({type:t.name,name:n,attribute:i})}))})),e}function _(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function $(...t){return t.filter((t=>!!t)).reduce(((t,e)=>{const n={...t};return Object.entries(e).forEach((([t,e])=>{if(n[t])if("class"===t){const o=e?e.split(" "):[],i=n[t]?n[t].split(" "):[],r=o.filter((t=>!i.includes(t)));n[t]=[...i,...r].join(" ")}else n[t]="style"===t?[n[t],e].join("; "):e;else n[t]=e})),n}),{})}function z(t,e){return e.filter((t=>t.attribute.rendered)).map((e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]})).reduce(((t,e)=>$(t,e)),{})}function B(t){return"function"==typeof t}function F(t,e=void 0,...n){return B(t)?e?t.bind(e)(...n):t(...n):t}function J(t={}){return 0===Object.keys(t).length&&t.constructor===Object}function Z(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}function j(t,e){return t.style?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===o)return!1;const i=e.reduce(((t,e)=>{const o=e.attribute.parseHTML?e.attribute.parseHTML(n):Z(n.getAttribute(e.name));return null==o?t:{...t,[e.name]:o}}),{});return{...o,...i}}}}function Y(t){return Object.fromEntries(Object.entries(t).filter((([t,e])=>("attrs"!==t||!J(e))&&null!=e)))}function q(t,e){var n;const o=R(t),{nodeExtensions:i,markExtensions:r}=P(t),a=null===(n=i.find((t=>H(t,"topNode"))))||void 0===n?void 0:n.name,l=Object.fromEntries(i.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=Y({...t.reduce(((t,e)=>{const o=H(e,"extendNodeSchema",r);return{...t,...o?o(n):{}}}),{}),content:F(H(n,"content",r)),marks:F(H(n,"marks",r)),group:F(H(n,"group",r)),inline:F(H(n,"inline",r)),atom:F(H(n,"atom",r)),selectable:F(H(n,"selectable",r)),draggable:F(H(n,"draggable",r)),code:F(H(n,"code",r)),defining:F(H(n,"defining",r)),isolating:F(H(n,"isolating",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);l&&(s.toDOM=t=>l({node:t,HTMLAttributes:z(t,i)}));const c=H(n,"renderText",r);return c&&(s.toText=c),[n.name,s]}))),c=Object.fromEntries(r.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=Y({...t.reduce(((t,e)=>{const o=H(e,"extendMarkSchema",r);return{...t,...o?o(n):{}}}),{}),inclusive:F(H(n,"inclusive",r)),excludes:F(H(n,"excludes",r)),group:F(H(n,"group",r)),spanning:F(H(n,"spanning",r)),code:F(H(n,"code",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>j(t,i))));const l=H(n,"renderHTML",r);return l&&(s.toDOM=t=>l({mark:t,HTMLAttributes:z(t,i)})),[n.name,s]})));return new s.V_({topNode:a,nodes:l,marks:c})}function V(t,e){return e.nodes[t]||e.marks[t]||null}function U(t,e){return Array.isArray(e)?e.some((e=>("string"==typeof e?e:e.name)===t.name)):e}const W=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,((t,e,i,r)=>{var s,a;const l=(null===(a=(s=t.type.spec).toText)||void 0===a?void 0:a.call(s,{node:t,pos:e,parent:i,index:r}))||t.textContent||"%leaf%";n+=l.slice(0,Math.max(0,o-e))})),n};function Q(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class K{constructor(t){this.find=t.find,this.handler=t.handler}}const G=(t,e)=>{if(Q(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function X(t){var e;const{editor:n,from:o,to:i,text:r,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find((t=>t.type.spec.code))))return!1;let d=!1;const u=W(c)+r;return s.forEach((t=>{if(d)return;const e=G(u,t.find);if(!e)return;const s=l.state.tr,c=I({state:l.state,transaction:s}),h={from:o-(e[0].length-r.length),to:i},{commands:p,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:p,chain:f,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:o,to:i,text:r}),l.dispatch(s),d=!0)})),d}function tt(t){const{editor:e,rules:n}=t,i=new o.Sy({state:{init:()=>null,apply:(t,e)=>t.getMeta(i)||(t.selectionSet||t.docChanged?null:e)},props:{handleTextInput:(t,o,r,s)=>X({editor:e,from:o,to:r,text:s,rules:n,plugin:i}),handleDOMEvents:{compositionend:t=>(setTimeout((()=>{const{$cursor:o}=t.state.selection;o&&X({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:i})})),!1)},handleKeyDown(t,o){if("Enter"!==o.key)return!1;const{$cursor:r}=t.state.selection;return!!r&&X({editor:e,from:r.pos,to:r.pos,text:"\n",rules:n,plugin:i})}},isInputRules:!0});return i}function et(t){return"number"==typeof t}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}const ot=(t,e)=>{if(Q(e))return[...t.matchAll(e)];const n=e(t);return n?n.map((e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n})):[]};function it(t){const{editor:e,rules:n}=t;let i=null,r=!1,s=!1,a=new ClipboardEvent("paste"),l=new DragEvent("drop");const c=n.map((t=>new o.Sy({view(t){const e=e=>{var n;i=(null===(n=t.dom.parentElement)||void 0===n?void 0:n.contains(e.target))?t.dom.parentElement:null};return window.addEventListener("dragstart",e),{destroy(){window.removeEventListener("dragstart",e)}}},props:{handleDOMEvents:{drop:(t,e)=>(s=i===t.dom.parentElement,l=e,!1),paste:(t,e)=>{var n;const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return a=e,r=!!(null==o?void 0:o.includes("data-pm-slice")),!1}}},appendTransaction:(n,o,i)=>{const c=n[0],d="paste"===c.getMeta("uiEvent")&&!r,u="drop"===c.getMeta("uiEvent")&&!s;if(!d&&!u)return;const h=o.doc.content.findDiffStart(i.doc.content),p=o.doc.content.findDiffEnd(i.doc.content);if(!et(h)||!p||h===p.b)return;const f=i.tr,m=I({state:i,transaction:f}),g=function(t){const{editor:e,state:n,from:o,to:i,rule:r,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:d}=new D({editor:e,state:n}),u=[];return n.doc.nodesBetween(o,i,((t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const h=Math.max(o,e),p=Math.min(i,e+t.content.size),f=t.textBetween(h-e,p-e,void 0,"");ot(f,r.find).forEach((t=>{if(void 0===t.index)return;const e=h+t.index+1,o=e+t[0].length,i={from:n.tr.mapping.map(e),to:n.tr.mapping.map(o)},p=r.handler({state:n,range:i,match:t,commands:l,chain:c,can:d,pasteEvent:s,dropEvent:a});u.push(p)}))})),u.every((t=>null!==t))}({editor:e,state:m,from:Math.max(h-1,0),to:p.b-1,rule:t,pasteEvent:a,dropEvent:l});return g&&f.steps.length?(l=new DragEvent("drop"),a=new ClipboardEvent("paste"),f):void 0}})));return c}function rt(t){const e=t.filter(((e,n)=>t.indexOf(e)!==n));return[...new Set(e)]}class st{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=st.resolve(t),this.schema=q(this.extensions,e),this.extensions.forEach((t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:V(t.name,this.schema)};"mark"===t.type&&(null===(e=F(H(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name);const o=H(t,"onBeforeCreate",n);o&&this.editor.on("beforeCreate",o);const i=H(t,"onCreate",n);i&&this.editor.on("create",i);const r=H(t,"onUpdate",n);r&&this.editor.on("update",r);const s=H(t,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=H(t,"onTransaction",n);a&&this.editor.on("transaction",a);const l=H(t,"onFocus",n);l&&this.editor.on("focus",l);const c=H(t,"onBlur",n);c&&this.editor.on("blur",c);const d=H(t,"onDestroy",n);d&&this.editor.on("destroy",d)}))}static resolve(t){const e=st.sort(st.flatten(t)),n=rt(e.map((t=>t.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((t=>`'${t}'`)).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map((t=>{const e=H(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t})).flat(10)}static sort(t){return t.sort(((t,e)=>{const n=H(t,"priority")||100,o=H(e,"priority")||100;return n>o?-1:n{const n=H(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:V(e.name,this.schema)});return n?{...t,...n()}:t}),{})}get plugins(){const{editor:t}=this,e=st.sort([...this.extensions].reverse()),n=[],o=[],i=e.map((e=>{const i={name:e.name,options:e.options,storage:e.storage,editor:t,type:V(e.name,this.schema)},s=[],a=H(e,"addKeyboardShortcuts",i);let l={};if("mark"===e.type&&e.config.exitable&&(l.ArrowRight=()=>xe.handleExit({editor:t,mark:e})),a){const e=Object.fromEntries(Object.entries(a()).map((([e,n])=>[e,()=>n({editor:t})])));l={...l,...e}}const c=(0,r.h)(l);s.push(c);const d=H(e,"addInputRules",i);U(e,t.options.enableInputRules)&&d&&n.push(...d());const u=H(e,"addPasteRules",i);U(e,t.options.enablePasteRules)&&u&&o.push(...u());const h=H(e,"addProseMirrorPlugins",i);if(h){const t=h();s.push(...t)}return s})).flat();return[tt({editor:t,rules:n}),...it({editor:t,rules:o}),...i]}get attributes(){return R(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=P(this.extensions);return Object.fromEntries(e.filter((t=>!!H(t,"addNodeView"))).map((e=>{const n=this.attributes.filter((t=>t.type===e.name)),o={name:e.name,options:e.options,storage:e.storage,editor:t,type:_(e.name,this.schema)},i=H(e,"addNodeView",o);return i?[e.name,(o,r,s,a)=>{const l=z(o,n);return i()({editor:t,node:o,getPos:s,decorations:a,HTMLAttributes:l,extension:e})}]:[]})))}}function at(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function lt(t,e){const n={...t};return at(t)&&at(e)&&Object.keys(e).forEach((o=>{at(e[o])?o in t?n[o]=lt(t[o],e[o]):Object.assign(n,{[o]:e[o]}):Object.assign(n,{[o]:e[o]})})),n}class ct{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ct(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ct(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}function dt(t,e,n){const{from:o,to:i}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return t.nodesBetween(o,i,((t,n,c,d)=>{var u;const h=null==s?void 0:s[t.type.name];h?(t.isBlock&&!l&&(a+=r,l=!0),c&&(a+=h({node:t,pos:n,parent:c,index:d,range:e}))):t.isText?(a+=null===(u=null==t?void 0:t.text)||void 0===u?void 0:u.slice(Math.max(o,n)-n,i-n),l=!1):t.isBlock&&!l&&(a+=r,l=!0)})),a}function ut(t){return Object.fromEntries(Object.entries(t.nodes).filter((([,t])=>t.spec.toText)).map((([t,e])=>[t,e.spec.toText])))}const ht=ct.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:i}=e,{ranges:r}=i;return dt(o,{from:Math.min(...r.map((t=>t.$from.pos))),to:Math.max(...r.map((t=>t.$to.pos)))},{textSerializers:ut(n)})}}})]}});function pt(t,e,n={strict:!0}){const o=Object.keys(e);return!o.length||o.every((o=>n.strict?e[o]===t[o]:Q(e[o])?e[o].test(t[o]):e[o]===t[o]))}function ft(t,e,n={}){return t.find((t=>t.type===e&&pt(t.attrs,n)))}function mt(t,e,n={}){return!!ft(t,e,n)}function gt(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(t.parentOffset===o.offset&&0!==o.offset&&(o=t.parent.childBefore(t.parentOffset)),!o.node)return;const i=ft([...o.node.marks],e,n);if(!i)return;let r=o.index,s=t.start()+o.offset,a=r+1,l=s+o.node.nodeSize;for(ft([...o.node.marks],e,n);r>0&&i.isInSet(t.parent.child(r-1).marks);)r-=1,s-=t.parent.child(r).nodeSize;for(;a${t}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function Ct(t,e,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof t&&null!==t)try{return Array.isArray(t)&&t.length>0?s.HY.fromArray(t.map((t=>e.nodeFromJSON(t)))):e.nodeFromJSON(t)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Ct("",e,n)}if("string"==typeof t){const o=s.aw.fromSchema(e);return n.slice?o.parseSlice(xt(t),n.parseOptions).content:o.parse(xt(t),n.parseOptions)}return Ct("",e,n)}function Mt(t,e,n){const i=t.steps.length-1;if(i{0===l&&(l=o)})),t.setSelection(o.Y1.near(t.doc.resolve(l),n))}function St(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function At(t,e,n={}){const{from:o,to:i,empty:r}=t.selection,s=e?_(e,t.schema):null,a=[];t.doc.nodesBetween(o,i,((t,e)=>{if(t.isText)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);a.push({node:t,from:n,to:r})}));const l=i-o,c=a.filter((t=>!s||s.name===t.node.type.name)).filter((t=>pt(t.node.attrs,n,{strict:!1})));return r?!!c.length:c.reduce(((t,e)=>t+e.to-e.from),0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Tt(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce(((e,o)=>(n.includes(o)||(e[o]=t[o]),e)),{})}function Nt(t,e,n={}){return Ct(t,e,{slice:!1,parseOptions:n})}function Et(t,e){const n=bt(e,t.schema),{from:o,to:i,empty:r}=t.selection,s=[];r?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,i,(t=>{s.push(...t.marks)}));const a=s.find((t=>t.type.name===n.name));return a?{...a.attrs}:{}}function It(t,e){const n=new a.wx(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}function Dt(t){for(let e=0;e{e(t)&&n.push({node:t,pos:o})})),n}function Ht(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&o.push({node:t,pos:e})})),o}function Pt(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Rt(t){return e=>Pt(e.$from,t)}function _t(t,e){const n=s.PW.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function $t(t,e){return q(st.resolve(t),e)}function zt(t,e){const n=$t(e);return _t(s.NB.fromJSON(n,t).content,n)}function Bt(t,e){const n=$t(e),o=xt(t);return s.aw.fromSchema(n).parse(o).toJSON()}function Ft(t,e){return dt(t,{from:0,to:t.content.size},e)}function Jt(t,e,n){const{blockSeparator:o="\n\n",textSerializers:i={}}=n||{},r=$t(e);return Ft(s.NB.fromJSON(r,t),{blockSeparator:o,textSerializers:{...ut(r),...i}})}function Zt(t,e){const n=_(e,t.schema),{from:o,to:i}=t.selection,r=[];t.doc.nodesBetween(o,i,(t=>{r.push(t)}));const s=r.reverse().find((t=>t.type.name===n.name));return s?{...s.attrs}:{}}function jt(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?Zt(t,e):"mark"===n?Et(t,e):{}}function Yt(t,e=JSON.stringify){const n={};return t.filter((t=>{const o=e(t);return!Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=!0)}))}function qt(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach(((t,i)=>{const r=[];if(t.ranges.length)t.forEach(((t,e)=>{r.push({from:t,to:e})}));else{const{from:t,to:e}=n[i];if(void 0===t||void 0===e)return;r.push({from:t,to:e})}r.forEach((({from:t,to:n})=>{const r=e.slice(i).map(t,-1),s=e.slice(i).map(n),a=e.invert().map(r,-1),l=e.invert().map(s);o.push({oldRange:{from:a,to:l},newRange:{from:r,to:s}})}))})),function(t){const e=Yt(t);return 1===e.length?e:e.filter(((t,n)=>!e.filter(((t,e)=>e!==n)).some((e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))))}(o)}function Vt(t,e=0){const n=t.type===t.type.schema.topNodeType?0:1,o=e,i=o+t.nodeSize,r=t.marks.map((t=>{const e={type:t.type.name};return Object.keys(t.attrs).length&&(e.attrs={...t.attrs}),e})),s={...t.attrs},a={type:t.type.name,from:o,to:i};return Object.keys(s).length&&(a.attrs=s),r.length&&(a.marks=r),t.content.childCount&&(a.content=[],t.forEach(((t,o)=>{var i;null===(i=a.content)||void 0===i||i.push(Vt(t,e+o+n))}))),t.text&&(a.text=t.text),a}function Ut(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach((e=>{const i=gt(n.resolve(t-1),e.type);i&&o.push({mark:e,...i})})):n.nodesBetween(t,e,((t,e)=>{o.push(...t.marks.map((n=>({from:e,to:e+t.nodeSize,mark:n}))))})),o}const Wt=(t,e,n,o=20)=>{const i=t.doc.resolve(n);let r=o,s=null;for(;r>0&&null===s;){const t=i.node(r);(null==t?void 0:t.type.name)===e?s=t:r-=1}return[s,r]};function Qt(t,e,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const o=t.find((t=>t.type===e&&t.name===n));return!!o&&o.attribute.keepOnSplit})))}function Kt(t,e,n={}){const{empty:o,ranges:i}=t.selection,r=e?bt(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter((t=>!r||r.name===t.type.name)).find((t=>pt(t.attrs,n,{strict:!1})));let s=0;const a=[];if(i.forEach((({$from:e,$to:n})=>{const o=e.pos,i=n.pos;t.doc.nodesBetween(o,i,((t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);s+=r-n,a.push(...t.marks.map((t=>({mark:t,from:n,to:r}))))}))})),0===s)return!1;const l=a.filter((t=>!r||r.name===t.mark.type.name)).filter((t=>pt(t.mark.attrs,n,{strict:!1}))).reduce(((t,e)=>t+e.to-e.from),0),c=a.filter((t=>!r||t.mark.type!==r&&t.mark.type.excludes(r))).reduce(((t,e)=>t+e.to-e.from),0);return(l>0?l+c:l)>=s}function Gt(t,e,n={}){if(!e)return At(t,null,n)||Kt(t,null,n);const o=Ot(e,t.schema);return"node"===o?At(t,e,n):"mark"===o&&Kt(t,e,n)}const Xt=(t,e)=>{const{$from:n,$to:o,$anchor:i}=t.selection;if(e){const n=Rt((t=>t.type.name===e))(t.selection);if(!n)return!1;const o=t.doc.resolve(n.pos+1);return i.pos+1===o.end()}return!(o.parentOffset{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function ee(t,e){const{nodeExtensions:n}=P(e),o=n.find((e=>e.name===t));if(!o)return!1;const i=F(H(o,"group",{name:o.name,options:o.options,storage:o.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function ne(t){var e;const n=null===(e=t.type.createAndFill())||void 0===e?void 0:e.toJSON(),o=t.toJSON();return JSON.stringify(n)===JSON.stringify(o)}function oe(t){return t instanceof o.qv}function ie(t,e,n){const o=t.state.doc.content.size,i=yt(e,0,o),r=yt(n,0,o),s=t.coordsAtPos(i),a=t.coordsAtPos(r,-1),l=Math.min(s.top,a.top),c=Math.max(s.bottom,a.bottom),d=Math.min(s.left,a.left),u=Math.max(s.right,a.right),h={top:l,bottom:c,left:d,right:u,width:u-d,height:c-l,x:d,y:l};return{...h,toJSON:()=>h}}function re(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter((t=>null==e?void 0:e.includes(t.type.name)));t.tr.ensureMarks(o)}}const se=(t,e)=>{const n=Rt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,n.pos)||(t.join(n.pos),!0)},ae=(t,e)=>{const n=Rt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,o)||(t.join(o),!0)};var le=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame((()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:i}=o;return!n||(i.forEach((({$from:n,$to:o})=>{t.doc.nodesBetween(n.pos,o.pos,((t,n)=>{if(t.type.isText)return;const{doc:o,mapping:i}=e,r=o.resolve(i.map(n)),s=o.resolve(i.map(n+t.nodeSize)),l=r.blockRange(s);if(!l)return;const c=(0,a.k9)(l);if(t.type.isTextblock){const{defaultType:t}=r.parent.contentMatchAt(r.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)}))})),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>y(t,e),cut:(t,e)=>({editor:n,tr:i})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);i.deleteRange(t.from,t.to);const a=i.mapping.map(e);return i.insert(a,s.content),i.setSelection(new o.Bs(i.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const i=t.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===o.type){if(e){const e=i.before(n),o=i.after(n);t.delete(e,o).scrollIntoView()}return!0}return!1},deleteNode:t=>({tr:e,state:n,dispatch:o})=>{const i=_(t,n.schema),r=e.selection.$anchor;for(let t=r.depth;t>0;t-=1)if(r.node(t).type===i){if(o){const n=r.before(t),o=r.after(t);e.delete(n,o).scrollIntoView()}return!0}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:o,to:i}=t;return n&&e.delete(o,i),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>v(t,e),extendMarkRange:(t,e={})=>({tr:n,state:i,dispatch:r})=>{const s=bt(t,i.schema),{doc:a,selection:l}=n,{$from:c,from:d,to:u}=l;if(r){const t=gt(c,s,e);if(t&&t.from<=d&&t.to>=u){const e=o.Bs.create(a,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t({editor:n,view:o,tr:i,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{kt()&&o.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(o.focus(),(null==e?void 0:e.scrollIntoView)&&n.commands.scrollIntoView())}))};if(o.hasFocus()&&null===t||!1===t)return!0;if(r&&null===t&&!vt(n.state.selection))return s(),!0;const a=wt(i.doc,t)||n.state.selection,l=n.state.selection.eq(a);return r&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},forEach:(t,e)=>n=>t.every(((t,o)=>e(t,{...n,index:o}))),insertContent:(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:r})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const i=Ct(e,r.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===i.toString())return!0;let{from:s,to:a}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},l=!0,c=!0;if((i.toString().startsWith("<")?i:[i]).forEach((t=>{t.check(),l=!!l&&t.isText&&0===t.marks.length,c=!!c&&t.isBlock})),s===a&&c){const{parent:t}=o.doc.resolve(s);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(s-=1,a+=1)}l?Array.isArray(e)?o.insertText(e.map((t=>t.text||"")).join(""),s,a):"object"==typeof e&&e&&e.text?o.insertText(e.text,s,a):o.insertText(e,s,a):o.replaceWith(s,a,i),n.updateSelection&&Mt(o,o.steps.length-1,-1)}return!0},joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection,r=i instanceof o.qv;if(r){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.from))return!1;n=i.from}else if(n=(0,a.GJ)(t.doc,i.from,-1),null==n)return!1;if(e){let i=t.tr.join(n);r&&i.setSelection(o.qv.create(i.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0})(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection;if(i instanceof o.qv){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.to))return!1;n=i.to}else if(n=(0,a.GJ)(t.doc,i.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinBackward:()=>({state:t,dispatch:e})=>c(t,e),joinForward:()=>({state:t,dispatch:e})=>p(t,e),joinItemBackward:()=>({tr:t,state:e,dispatch:n})=>{try{const o=(0,a.GJ)(e.doc,e.selection.$from.pos,-1);return null!=o&&(t.join(o,2),n&&n(t),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const o=(0,a.GJ)(t.doc,t.selection.$from.pos,1);return null!=o&&(n.join(o,2),e&&e(n),!0)}catch(t){return!1}},keyboardShortcut:t=>({editor:e,view:n,tr:o,dispatch:i})=>{const r=function(t){const e=t.split(/-(?!$)/);let n,o,i,r,s=e[e.length-1];"Space"===s&&(s=" ");for(let t=0;t!["Alt","Ctrl","Meta","Shift"].includes(t))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction((()=>{n.someProp("handleKeyDown",(t=>t(n,a)))}));return null==l||l.steps.forEach((t=>{const e=t.map(o.mapping);e&&i&&o.maybeStep(e)})),!0},lift:(t,e={})=>({state:n,dispatch:o})=>!!At(n,_(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:o}=t.selection,i=n.blockRange(o),r=i&&(0,a.k9)(i);return null!=r&&(e&&e(t.tr.lift(i,r).scrollIntoView()),!0)})(n,o),liftEmptyBlock:()=>({state:t,dispatch:e})=>w(t,e),liftListItem:t=>({state:e,dispatch:n})=>{return(o=_(t,e.schema),function(t,e){let{$from:n,$to:i}=t.selection,r=n.blockRange(i,(t=>t.childCount>0&&t.firstChild.type==o));return!!r&&(!e||(n.node(r.depth-1).type==o?function(t,e,n,o){let i=t.tr,r=o.end,l=o.$to.end(o.depth);rr;e--)t-=i.child(e).nodeSize,o.delete(t-1,t+1);let r=o.doc.resolve(n.start),l=r.nodeAfter;if(o.mapping.map(n.end)!=n.start+r.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==i.childCount,u=r.node(-1),h=r.index(-1);if(!u.canReplace(h+(c?0:1),h+1,l.content.append(d?s.HY.empty:s.HY.from(i))))return!1;let p=r.pos,f=p+l.nodeSize;return o.step(new a.FC(p-(c?1:0),f+(d?1:0),p+1,f-1,new s.p2((c?s.HY.empty:s.HY.from(i.copy(s.HY.empty))).append(d?s.HY.empty:s.HY.from(i.copy(s.HY.empty))),c?0:1,d?0:1),c?0:1)),e(o.scrollIntoView()),!0}(t,e,r)))})(e,n);var o},newlineInCode:()=>({state:t,dispatch:e})=>g(t,e),resetAttributes:(t,e)=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=_(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{o.doc.nodesBetween(t.$from.pos,t.$to.pos,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,Tt(t.attrs,e)),s&&t.marks.length&&t.marks.forEach((i=>{s===i.type&&n.addMark(o,o+t.nodeSize,s.create(Tt(i.attrs,e)))}))}))})),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>f(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:i,to:r}=t.selection,s=i.sharedDepth(r);return 0!=s&&(n=i.before(s),e&&e(t.tr.setSelection(o.qv.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>M(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>C(t,e),setContent:(t,e=!1,n={})=>({tr:o,editor:i,dispatch:r})=>{const{doc:s}=o,a=Nt(t,i.schema,n);return r&&o.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const{selection:r}=n,{empty:s,ranges:a}=r,l=bt(t,o.schema);if(i)if(s){const t=Et(o,l);n.addStoredMark(l.create({...t,...e}))}else a.forEach((t=>{const i=t.$from.pos,r=t.$to.pos;o.doc.nodesBetween(i,r,((t,o)=>{const s=Math.max(o,i),a=Math.min(o+t.nodeSize,r);t.marks.find((t=>t.type===l))?t.marks.forEach((t=>{l===t.type&&n.addMark(s,a,l.create({...t.attrs,...e}))})):n.addMark(s,a,l.create(e))}))}));return function(t,e,n){var o;const{selection:i}=e;let r=null;if(vt(i)&&(r=i.$cursor),r){const e=null!==(o=t.storedMarks)&&void 0!==o?o:r.marks();return!!n.isInSet(e)||!e.some((t=>t.type.excludes(n)))}const{ranges:s}=i;return s.some((({$from:e,$to:o})=>{let i=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,o.pos,((t,e,o)=>{if(i)return!1;if(t.isInline){const e=!o||o.type.allowsMarkType(n),r=!!n.isInSet(t.marks)||!t.marks.some((t=>t.type.excludes(n)));i=e&&r}return!i})),i}))}(o,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:o,chain:i})=>{const r=_(t,n.schema);return r.isTextblock?i().command((({commands:t})=>!!S(r,e)(n)||t.clearNodes())).command((({state:t})=>S(r,e)(t,o))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,i=yt(t,0,n.content.size),r=o.qv.create(n,i);e.setSelection(r)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:i,to:r}="number"==typeof t?{from:t,to:t}:t,s=o.Bs.atStart(n).from,a=o.Bs.atEnd(n).to,l=yt(i,s,a),c=yt(r,s,a),d=o.Bs.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const o=_(t,e.schema);return(i=o,function(t,e){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==i));if(!r)return!1;let l=r.startIndex;if(0==l)return!1;let c=r.parent,d=c.child(l-1);if(d.type!=i)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,o=s.HY.from(n?i.create():null),l=new s.p2(s.HY.from(i.create(null,s.HY.from(c.type.create(null,o)))),n?3:1,0),u=r.start,h=r.end;e(t.tr.step(new a.FC(u-(n?3:1),h,u,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var i},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:i,editor:r})=>{const{selection:s,doc:l}=e,{$from:c,$to:d}=s,u=Qt(r.extensionManager.attributes,c.node().type.name,c.node().attrs);if(s instanceof o.qv&&s.node.isBlock)return!(!c.parentOffset||!(0,a.Ax)(l,c.pos)||(i&&(t&&re(n,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),0));if(!c.parent.isBlock)return!1;if(i){const i=d.parentOffset===d.parent.content.size;s instanceof o.Bs&&e.deleteSelection();const l=0===c.depth?void 0:Dt(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=i&&l?[{type:l,attrs:u}]:void 0,p=(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,h);if(h||p||!(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,l?[{type:l}]:void 0)||(p=!0,h=l?[{type:l,attrs:u}]:void 0),p&&(e.split(e.mapping.map(c.pos),1,h),l&&!i&&!c.parentOffset&&c.parent.type!==l)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,l)&&e.setNodeMarkup(e.mapping.map(c.before()),l)}t&&re(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},splitListItem:t=>({tr:e,state:n,dispatch:i,editor:r})=>{var l;const c=_(t,n.schema),{$from:d,$to:u}=n.selection,h=n.selection.node;if(h&&h.isBlock||d.depth<2||!d.sameParent(u))return!1;const p=d.node(-1);if(p.type!==c)return!1;const f=r.extensionManager.attributes;if(0===d.parent.content.size&&d.node(-1).childCount===d.indexAfter(-1)){if(2===d.depth||d.node(-3).type!==c||d.index(-2)!==d.node(-2).childCount-1)return!1;if(i){let t=s.HY.empty;const n=d.index(-1)?1:d.index(-2)?2:3;for(let e=d.depth-n;e>=d.depth-3;e-=1)t=s.HY.from(d.node(e).copy(t));const i=d.indexAfter(-1){if(h>-1)return!1;t.isTextblock&&0===t.content.size&&(h=e+1)})),h>-1&&e.setSelection(o.Bs.near(e.doc.resolve(h))),e.scrollIntoView()}return!0}const m=u.pos===d.end()?p.contentMatchAt(0).defaultType:null,g=Qt(f,p.type.name,p.attrs),b=Qt(f,d.node().type.name,d.node().attrs);e.delete(d.pos,u.pos);const v=m?[{type:c,attrs:g},{type:m,attrs:b}]:[{type:c,attrs:g}];if(!(0,a.Ax)(e.doc,d.pos,2))return!1;if(i){const{selection:t,storedMarks:o}=n,{splittableMarks:s}=r.extensionManager,a=o||t.$to.parentOffset&&t.$from.marks();if(e.split(d.pos,2,v).scrollIntoView(),!a||!i)return!0;const l=a.filter((t=>s.includes(t.type.name)));e.ensureMarks(l)}return!0},toggleList:(t,e,n,o={})=>({editor:i,tr:r,state:s,dispatch:a,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,p=_(t,s.schema),f=_(e,s.schema),{selection:m,storedMarks:g}=s,{$from:b,$to:v}=m,y=b.blockRange(v),w=g||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const k=Rt((t=>ee(t.type.name,u)))(m);if(y.depth>=1&&k&&y.depth-k.depth<=1){if(k.node.type===p)return c.liftListItem(f);if(ee(k.node.type.name,u)&&p.validContent(k.node.content)&&a)return l().command((()=>(r.setNodeMarkup(k.pos,p),!0))).command((()=>se(r,p))).command((()=>ae(r,p))).run()}return n&&w&&a?l().command((()=>{const t=d().wrapInList(p,o),e=w.filter((t=>h.includes(t.type.name)));return r.ensureMarks(e),!!t||c.clearNodes()})).wrapInList(p,o).command((()=>se(r,p))).command((()=>ae(r,p))).run():l().command((()=>!!d().wrapInList(p,o)||c.clearNodes())).wrapInList(p,o).command((()=>se(r,p))).command((()=>ae(r,p))).run()},toggleMark:(t,e={},n={})=>({state:o,commands:i})=>{const{extendEmptyMarkRange:r=!1}=n,s=bt(t,o.schema);return Kt(o,s,e)?i.unsetMark(s,{extendEmptyMarkRange:r}):i.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:i})=>{const r=_(t,o.schema),s=_(e,o.schema);return At(o,r,n)?i.setNode(s):i.setNode(r,n)},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const i=_(t,n.schema);return At(n,i,e)?o.lift(i):o.wrapIn(i,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(r.text){const n=e.doc.resolve(r.from).marks();e.replaceWith(r.from,r.to,t.schema.text(r.text,n))}else e.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:i}=n;return o||e&&i.forEach((e=>{t.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bt(t,o.schema),{$from:c,empty:d,ranges:u}=a;if(!i)return!0;if(d&&s){let{from:t,to:e}=a;const o=null===(r=c.marks().find((t=>t.type===l)))||void 0===r?void 0:r.attrs,i=gt(c,l,o);i&&(t=i.from,e=i.to),n.removeMark(t,e,l)}else u.forEach((t=>{n.removeMark(t.$from.pos,t.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=_(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{const i=t.$from.pos,a=t.$to.pos;o.doc.nodesBetween(i,a,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,{...t.attrs,...e}),s&&t.marks.length&&t.marks.forEach((r=>{if(s===r.type){const l=Math.max(o,i),c=Math.min(o+t.nodeSize,a);n.addMark(l,c,s.create({...r.attrs,...e}))}}))}))})),!0)},wrapIn:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,s=i.blockRange(r),l=s&&(0,a.nd)(s,t,e);return!!l&&(o&&o(n.tr.wrap(s,l).scrollIntoView()),!0)}}(_(t,n.schema),e)(n,o),wrapInList:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,l=i.blockRange(r),c=!1,d=l;if(!l)return!1;if(l.depth>=2&&i.node(l.depth-1).type.compatibleContent(t)&&0==l.startIndex){if(0==i.index(l.depth-1))return!1;let t=n.doc.resolve(l.start-2);d=new s.Ts(t,t,l.depth),l.endIndex=0;t--)r=s.HY.from(n[t].type.create(n[t].attrs,r));t.step(new a.FC(e.start-(o?2:0),e.end,e.start,e.end,new s.p2(r,0,0),n.length,!0));let l=0;for(let t=0;t({...le})}),de=ct.create({name:"editable",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("editable"),props:{editable:()=>this.editor.options.editable}})]}}),ue=ct.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new o.Sy({key:new o.H$("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),he=ct.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first((({commands:t})=>[()=>t.undoInputRule(),()=>t.command((({tr:e})=>{const{selection:n,doc:i}=e,{empty:r,$anchor:s}=n,{pos:a,parent:l}=s,c=s.parent.isTextblock?e.doc.resolve(a-1):s,d=c.parent.type.spec.isolating,u=s.pos-s.parentOffset,h=d&&1===c.parent.childCount?u===s.pos:o.Y1.atStart(i).from===a;return!(!(r&&h&&l.type.isTextblock)||l.textContent.length)&&t.clearNodes()})),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()])),e=()=>this.editor.commands.first((({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},r={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return kt()||St()?r:i},addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clearDocument"),appendTransaction:(t,e,n)=>{if(!t.some((t=>t.docChanged))||e.doc.eq(n.doc))return;const{empty:i,from:r,to:s}=e.selection,a=o.Y1.atStart(e.doc).from,l=o.Y1.atEnd(e.doc).to;if(i||r!==a||s!==l)return;if(0!==n.doc.textBetween(0,n.doc.content.size," "," ").length)return;const c=n.tr,d=I({state:n,transaction:c}),{commands:u}=new D({editor:this.editor,state:d});return u.clearNodes(),c.steps.length?c:void 0}})]}}),pe=ct.create({name:"tabindex",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var fe=Object.freeze({__proto__:null,ClipboardTextSerializer:ht,Commands:ce,Editable:de,FocusEvents:ue,Keymap:he,Tabindex:pe});function me(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==o)return o;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class ge extends L{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=me('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=B(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],o=this.state.reconfigure({plugins:n});this.view.updateState(o)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((t=>!t.key.startsWith(e)))});this.view.updateState(n)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(fe):[],...this.options.extensions].filter((t=>["extension","node","mark"].includes(null==t?void 0:t.type)));this.extensionManager=new st(t,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=Nt(this.options.content,this.schema,this.options.parseOptions),e=wt(t,this.options.autofocus);this.view=new i.tk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:o.yy.create({doc:t,selection:e||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach((t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)})):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=t.getMeta("focus"),i=t.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:t}),i&&this.emit("blur",{editor:this,event:i.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return jt(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,o="string"==typeof t?e:t;return Gt(this.state,n,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return _t(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return Ft(this.state.doc,{blockSeparator:e,textSerializers:{...ut(this.schema),...n}})}get isEmpty(){return ne(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}}function be(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];if(s){const o=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(Ut(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>l)).length)return null;cn.from&&r.delete(n.from+o,l);const d=n.from+o+s.length;r.addMark(n.from+o,d,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function ve(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o)||{},{tr:r}=e,s=n.from;let a=n.to;const l=t.type.create(i);if(o[1]){let t=s+o[0].lastIndexOf(o[1]);t>a?t=a:a=t+o[1].length;const e=o[0][o[0].length-1];r.insertText(e,s+o[0].length-1),r.replaceWith(t,a,l)}else o[0]&&r.insert(s-1,t.type.create(i)).delete(r.mapping.map(s),r.mapping.map(a));r.scrollIntoView()}})}function ye(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=e.doc.resolve(n.from),r=F(t.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,r)}})}function we(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}function ke(t){return new K({find:t.find,handler:({state:e,range:n,match:o,chain:i})=>{const r=F(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&(0,a.nd)(l,t.type,r);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:o}=e,{splittableMarks:i}=t.editor.extensionManager,r=o||n.$to.parentOffset&&n.$from.marks();if(r){const t=r.filter((t=>i.includes(t.type.name)));s.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";i().updateAttributes(e,r).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,a.Mn)(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,d))&&s.join(n.from-1)}})}class xe{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new xe(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new xe(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){const i=o.marks();if(!i.find((t=>(null==t?void 0:t.type.name)===e.name)))return!1;const r=i.find((t=>(null==t?void 0:t.type.name)===e.name));return r&&n.removeStoredMark(r),n.insertText(" ",o.pos),t.view.dispatch(n),!0}return!1}}class Ce{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ce(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ce(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}class Me{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,i,r,s,a,l;const{view:c}=this.editor,d=t.target,u=3===d.nodeType?null===(e=d.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(d))||!u)return;let h=0,p=0;if(this.dom!==u){const e=this.dom.getBoundingClientRect(),n=u.getBoundingClientRect(),o=null!==(i=t.offsetX)&&void 0!==i?i:null===(r=t.nativeEvent)||void 0===r?void 0:r.offsetX,l=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=n.x-e.x+o,p=n.y-e.y+l}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=o.qv.create(c.state.doc,this.getPos()),m=c.state.tr.setSelection(f);c.dispatch(m)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const n=t.target;if(!this.dom.contains(n)||(null===(e=this.contentDOM)||void 0===e?void 0:e.contains(n)))return!1;const i=t.type.startsWith("drag"),r="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!r&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=o.qv.isSelectable(this.node),d="copy"===t.type,u="paste"===t.type,h="cut"===t.type,p="mousedown"===t.type;if(!l&&c&&i&&t.preventDefault(),l&&i&&!a)return t.preventDefault(),!1;if(l&&s&&!a&&p){const t=n.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("drop",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(a||r||d||u||h||p&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&(kt()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every((t=>t.isContentEditable))||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command((({tr:e})=>{const n=this.getPos();return e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0}))}deleteNode(){const t=this.getPos(),e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}}function Se(t){return new nt({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:i})=>{const r=F(t.getAttributes,void 0,o,i);if(!1===r||null===r)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const o=l.search(/\S/),i=n.from+l.indexOf(a),d=i+a.length;if(Ut(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>i)).length)return null;dn.from&&s.delete(n.from+o,i),c=n.from+o+a.length,s.addMark(n.from+o,c,t.type.create(r||{})),s.removeStoredMark(t.type)}}})}function Ae(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(t){return"string"==typeof t}function Te(t){return new nt({find:t.find,handler({match:e,chain:n,range:o,pasteEvent:i}){const r=F(t.getAttributes,void 0,e,i);if(!1===r||null===r)return null;e.input&&n().deleteRange(o).insertContentAt(o.from,{type:t.type.name,attrs:r})}})}function Ne(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}class Ee{constructor(t){this.transaction=t,this.currentStep=this.transaction.steps.length}map(t){let e=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce(((t,n)=>{const o=n.getMap().mapResult(t);return o.deleted&&(e=!0),o.pos}),t),deleted:e}}}},54424:(t,e,n)=>{n.r(e),n.d(e,{Heading:()=>i,default:()=>i});var o=n(11046);const i=o.Node.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,(0,o.mergeAttributes)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>(0,o.textblockTypeInputRule)({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}})},44632:(t,e,n)=>{n.r(e),n.d(e,{Image:()=>r,default:()=>r,inputRegex:()=>i});var o=n(11046);const i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,r=o.Node.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[(0,o.nodeInputRule)({find:i,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]}})},84402:(t,e,n)=>{n.r(e),n.d(e,{TextStyle:()=>i,default:()=>i});var o=n(11046);const i=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}})},31690:(t,e,n)=>{n.d(e,{$:()=>f,h:()=>p});for(var o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},r="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)o[48+a]=o[96+a]=String(a);for(a=1;a<=24;a++)o[a+111]="F"+a;for(a=65;a<=90;a++)o[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in o)i.hasOwnProperty(l)||(i[l]=o[l]);var c=n(62463);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function u(t){let e,n,o,i,r=t.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(let t=0;t127)&&(a=o[n.keyCode])&&a!=l){let o=e[h(a,n)];if(o&&o(t.state,t.dispatch,t))return!0}}return!1}}},27439:(t,e,n)=>{function o(t){this.content=t}n.d(e,{aw:()=>K,PW:()=>at,HY:()=>a,vc:()=>u,ZU:()=>U,NB:()=>I,Ts:()=>N,e4:()=>h,V_:()=>W,p2:()=>p}),o.prototype={constructor:o,find:function(t){for(var e=0;e>1}},o.from=function(t){if(t instanceof o)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new o(e)};const i=o;function r(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(o),s=e.child(o);if(i!=s){if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let t=0;i.text[t]==s.text[t];t++)n++;return n}if(i.content.size||s.content.size){let t=r(i.content,s.content,n+1);if(null!=t)return t}n+=i.nodeSize}else n+=i.nodeSize}}function s(t,e,n,o){for(let i=t.childCount,r=e.childCount;;){if(0==i||0==r)return i==r?null:{a:n,b:o};let a=t.child(--i),l=e.child(--r),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:o};if(a.isText&&a.text!=l.text){let t=0,e=Math.min(a.text.length,l.text.length);for(;tt&&!1!==n(a,o+s,i||null,r)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,t-i),Math.min(a.content.size,e-i),n,o+i)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,o){let i="",r=!0;return this.nodesBetween(t,e,((s,a)=>{s.isText?(i+=s.text.slice(Math.max(t,a)-a,e-a),r=!n):s.isLeaf?(o?i+="function"==typeof o?o(s):o:s.type.spec.leafText&&(i+=s.type.spec.leafText(s)),r=!n):!r&&s.isBlock&&(i+=n,r=!0)}),0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(o[o.length-1]=e.withText(e.text+n.text),i=1);it)for(let i=0,r=0;rt&&((re)&&(s=s.isText?s.cut(Math.max(0,t-r),Math.min(s.text.length,e-r)):s.cut(Math.max(0,t-r-1),Math.min(s.content.size,e-r-1))),n.push(s),o+=s.nodeSize),r=a}return new a(n,o)}cutByIndex(t,e){return t==e?a.empty:0==t&&e==this.content.length?this:new a(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let o=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return o[t]=e,new a(o,i)}addToStart(t){return new a([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new a(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,o=0;;n++){let i=o+this.child(n).nodeSize;if(i>=t)return i==t||e>0?c(n+1,i):c(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((t=>t.toJSON())):null}static fromJSON(t,e){if(!e)return a.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return a.empty;let e,n=0;for(let o=0;o{class t{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let o=0;othis.type.rank&&(e||(e=t.slice(0,o)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;et.type.rank-e.type.rank)),n}}return t.none=[],t})();class h extends Error{}class p{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new p(n,this.openStart,this.openEnd)}removeBetween(t,e){return new p(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let n=e.openStart||0,o=e.openEnd||0;if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new p(a.fromJSON(t,e.content),n,o)}static maxOpen(t,e=!0){let n=0,o=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)o++;return new p(t,n,o)}}function f(t,e,n){let{index:o,offset:i}=t.findIndex(e),r=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(i==e||r.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,r.copy(f(r.content,e-i-1,n-i-1)))}function m(t,e,n,o){let{index:i,offset:r}=t.findIndex(e),s=t.maybeChild(i);if(r==e||s.isText)return o&&!o.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=m(s.content,e-r-1,n);return a&&t.replaceChild(i,s.copy(a))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,o){let i=t.index(o),r=t.node(o);if(i==e.index(o)&&o=0;t--)o=e.node(t).copy(a.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}(n,t);return x(r,C(t,i,s,e,o))}{let o=t.parent,i=o.content;return x(o,i.cut(0,t.parentOffset).append(n.content).append(i.cut(e.parentOffset)))}}return x(r,M(t,e,o))}function v(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function y(t,e,n){let o=t.node(n);return v(o,e.node(n)),o}function w(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function k(t,e,n,o){let i=(e||t).node(n),r=0,s=e?e.index(n):i.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(w(t.nodeAfter,o),r++));for(let t=r;ti&&y(t,e,i+1),s=o.depth>i&&y(n,o,i+1),l=[];return k(null,t,i,l),r&&s&&e.index(i)==n.index(i)?(v(r,s),w(x(r,C(t,e,n,o,i+1)),l)):(r&&w(x(r,M(t,e,i+1)),l),k(e,n,i,l),s&&w(x(s,M(n,o,i+1)),l)),k(o,null,i,l),new a(l)}function M(t,e,n){let o=[];return k(null,t,n,o),t.depth>n&&w(x(y(t,e,n+1),M(t,e,n+1)),o),k(e,null,n,o),new a(o)}p.empty=new p(a.empty,0,0);class S{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=t.child(e);return n?t.child(e).cut(n):o}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],o=0==e?0:this.path[3*e-1]+1;for(let e=0;e0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new N(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],o=0,i=e;for(let e=t;;){let{index:t,offset:r}=e.content.findIndex(i),s=i-r;if(n.push(e,t,o+r),!s)break;if(e=e.child(t),e.isText)break;i=s-1,o+=r+1}return new S(e,n,i)}static resolveCached(t,e){for(let n=0;nt&&this.nodesBetween(t,e,(t=>(n.isInSet(t.marks)&&(o=!0),!o))),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),L(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=a.empty,o=0,i=n.childCount){let r=this.contentMatchAt(t).matchFragment(n,o,i),s=r&&r.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=o;tt.type.name))}`);this.content.forEach((t=>t.check()))}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((t=>t.toJSON()))),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let o=a.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,o,n)}}I.prototype.text=void 0;class D extends I{constructor(t,e,n,o){if(super(t,e,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):L(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new D(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new D(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function L(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class H{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new P(t,e);if(null==n.next)return H.empty;let o=R(n);n.next&&n.err("Unexpected trailing text");let i=function(t){let e=Object.create(null);return function n(o){let i=[];o.forEach((e=>{t[e].forEach((({term:e,to:n})=>{if(!e)return;let o;for(let t=0;t{o||i.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)}))}))}));let r=e[o.join(",")]=new H(o.indexOf(t.length-1)>-1);for(let t=0;te.concat(t(n,r))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return o(r,s),i(t(e.expr,s),s),[o(s)]}if("plus"==e.type){let s=n();return i(t(e.expr,r),s),i(t(e.expr,s),s),[o(s)]}if("opt"==e.type)return[o(r)].concat(t(e.expr,r));if("range"==e.type){let s=r;for(let o=0;ot.to=e))}}(o));return function(t,e){for(let n=0,o=[t];nt.createAndFill())));for(let t=0;t=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let o=0;o{let o=n+(e.validEnd?"*":" ")+" ";for(let n=0;n"+t.indexOf(e.next[n].next);return o})).join("\n")}}H.empty=new H(!0);class P{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function R(t){let e=[];do{e.push(_(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function _(t){let e=[];do{e.push($(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function $(t){let e=function(t){if(t.eat("(")){let e=R(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let i=[];for(let t in n){let o=n[t];o.groups.indexOf(e)>-1&&i.push(o)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i}(t,t.next).map((e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e})));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=B(t,e)}return e}function z(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function B(t,e){let n=z(t),o=n;return t.eat(",")&&(o="}"!=t.next?z(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function F(t,e){return e-t}function J(t,e){let n=[];return function e(o){let i=t[o];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(o);for(let t=0;t-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;en[t]=new q(t,e,o)));let o=e.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class V{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class U{constructor(t,e,n,o){this.name=t,this.rank=e,this.schema=n,this.spec=o,this.attrs=Y(o.attrs),this.excluded=null;let i=Z(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,j(this.attrs,t))}static compile(t,e){let n=Object.create(null),o=0;return t.forEach(((t,i)=>n[t]=new U(t,o++,e,i))),n}removeFromSet(t){for(var e=0;e-1}}class W{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=i.from(t.nodes),e.marks=i.from(t.marks||{}),this.nodes=q.compile(this.spec.nodes,this),this.marks=U.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],o=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[o]||(n[o]=H.parse(o,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?Q(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:Q(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,o){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof q))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,o)}text(t,e){let n=this.nodes.text;return new D(n,n.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return I.fromJSON(this,t)}markFromJSON(t){return u.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Q(t,e){let n=[];for(let o=0;o-1)&&n.push(s=o)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}class K{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((t=>{t.tag?this.tags.push(t):t.style&&this.styles.push(t)})),this.normalizeLists=!this.tags.some((e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,e.from,e.to),p.maxOpen(n.finish())}matchTag(t,e,n){for(let o=n?this.tags.indexOf(n)+1:0;ot.length&&(61!=r.charCodeAt(t.length)||r.slice(t.length+1)!=e))){if(o.getAttrs){let t=o.getAttrs(e);if(!1===t)continue;o.attrs=t||void 0}return o}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,o=0;for(;o{n(t=rt(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)}))}for(let e in t.nodes){let o=t.nodes[e].spec.parseDOM;o&&o.forEach((t=>{n(t=rt(t)),t.node||t.ignore||t.mark||(t.node=e)}))}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new K(t,K.schemaRules(t)))}}const G={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},X={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tt={ol:!0,ul:!0};function et(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class nt{constructor(t,e,n,o,i,r,s){this.type=t,this.attrs=e,this.marks=n,this.pendingMarks=o,this.solid=i,this.options=s,this.content=[],this.activeMarks=u.none,this.stashMarks=[],this.match=r||(4&s?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(a.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=a.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,n=this.pendingMarks;ethis.addAll(t))),e&&this.sync(n),this.needsBlock=r}else this.withStyleRules(t,(()=>{this.addElementByRule(t,i,!1===i.consuming?n:void 0)}))}leafFallback(t){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"))}ignoreFallback(t){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(t){let e=u.none,n=u.none;for(let o=0;o{r.clearMark(t)&&(n=t.addToSet(n))})):e=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(e),!1!==r.consuming)break;i=r}return[e,n]}addElementByRule(t,e,n){let o,i,r;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(t):o=this.enter(i,e.attrs||null,e.preserveWhitespace)):(r=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(r));let s=this.top;if(i&&i.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((t=>this.insertNode(t)));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n)}o&&this.sync(s)&&this.open--,r&&this.removePendingMark(r,s)}addAll(t,e,n){let o=e||0;for(let i=e?t.childNodes[e]:t.firstChild,r=null==n?null:t.childNodes[n];i!=r;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i);this.findAtPoint(t,o)}findPlace(t){let e,n;for(let o=this.open;o>=0;o--){let i=this.nodes[o],r=i.findWrapping(t);if(r&&(!e||e.length>r.length)&&(e=r,n=i,!r.length))break;if(i.solid)break}if(!e)return!1;this.sync(n);for(let t=0;tthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,o=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),i=-(n?n.depth+1:0)+(o?0:1),r=(t,s)=>{for(;t>=0;t--){let a=e[t];if(""==a){if(t==e.length-1||0==t)continue;for(;s>=i;s--)if(r(t-1,s))return!0;return!1}{let t=s>0||0==s&&o?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!t||t.name!=a&&-1==t.groups.indexOf(a))return!1;s--}}return!0};return r(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(t){let e=function(t,e){for(let n=0;n=0;n--){let o=this.nodes[n];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let e=o.popFromStashMark(t);e&&o.type&&o.type.allowsMarkType(e.type)&&(o.activeMarks=e.addToSet(o.activeMarks))}if(o==e)break}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function rt(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let o in n){let i=n[o];if(!i.allowsMarkType(t))continue;let r=[],s=t=>{r.push(t);for(let n=0;n{if(i.length||t.marks.length){let n=0,r=0;for(;n=0;o--){let i=this.serializeMark(t.marks[o],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let o=this.marks[t.type.name];return o&&at.renderSpec(ct(n),o(t,e))}static renderSpec(t,e,n=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));let s=n?t.createElementNS(n,i):t.createElement(i),a=e[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let t in a)if(null!=a[t]){let e=t.indexOf(" ");e>0?s.setAttributeNS(t.slice(0,e),t.slice(e+1),a[t]):s.setAttribute(t,a[t])}}for(let i=l;il)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:e,contentDOM:i}=at.renderSpec(t,r,n);if(s.appendChild(e),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new at(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=lt(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return lt(t.marks)}}function lt(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ct(t){return t.document||window.document}},62463:(t,e,n)=>{n.d(e,{C1:()=>f,yy:()=>C,qv:()=>h,Sy:()=>S,H$:()=>T,Y1:()=>s,xm:()=>a,Bs:()=>d});var o=n(27439),i=n(38480);const r=Object.create(null);class s{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new a(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let i=e<0?g(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):g(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=r[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in r)throw new RangeError("Duplicate use of selection JSON ID "+t);return r[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends s{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return s.near(n);let o=t.resolve(e.map(this.anchor));return new d(o.parent.inlineContent?o:n,n)}replace(t,e=o.p2.empty){if(super.replace(t,e),e==o.p2.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new u(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let o=t.resolve(e);return new this(o,n==e?o:t.resolve(n))}static between(t,e,n){let o=t.pos-e.pos;if(n&&!o||(n=o>=0?1:-1),!e.parent.inlineContent){let t=s.findFrom(e,n,!0)||s.findFrom(e,-n,!0);if(!t)return s.near(e,n);e=t.$head}return t.parent.inlineContent||(0==o||(t=(s.findFrom(t,-n,!0)||s.findFrom(t,n,!0)).$anchor).posnew f(t)};function g(t,e,n,o,i,r=!1){if(e.inlineContent)return d.create(t,n);for(let s=o-(i>0?0:1);i>0?s=0;s+=i){let o=e.child(s);if(o.isAtom){if(!r&&h.isSelectable(o))return h.create(t,n-(i<0?o.nodeSize:0))}else{let e=g(t,o,n+i,i<0?o.childCount:0,i,r);if(e)return e}n+=o.nodeSize*i}return null}function b(t,e,n){let o=t.steps.length-1;if(o{null==r&&(r=o)})),t.setSelection(s.near(t.doc.resolve(r),n)))}class v extends i.wx{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return o.vc.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||o.vc.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let o=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,o.text(t,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=y(e.init,n),this.apply=y(e.apply,n)}}const k=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||s.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,o)=>o.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class x{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=k.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new w(t.key,t.spec.state,t))}))}}class C{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;nt.toJSON()))),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[n],i=o.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(o,this[o.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new x(t.schema,t.plugins),r=new C(i);return i.fields.forEach((i=>{if("doc"==i.name)r.doc=o.NB.fromJSON(t.schema,e.doc);else if("selection"==i.name)r.selection=s.fromJSON(r.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(r.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,o))return void(r[i.name]=a.fromJSON.call(s,t,e[o],r))}r[i.name]=i.init(t,r)}})),r}}function M(t,e,n){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(e):"handleDOMEvents"==o&&(i=M(i,e,{})),n[o]=i}return n}class S{constructor(t){this.spec=t,this.props={},t.props&&M(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}const A=Object.create(null);function O(t){return t in A?t+"$"+ ++A[t]:(A[t]=0,t+"$")}class T{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},38480:(t,e,n)=>{n.d(e,{vs:()=>l,FC:()=>v,Pu:()=>b,wx:()=>J,Mn:()=>S,Ax:()=>M,nj:()=>T,nd:()=>x,GJ:()=>O,k9:()=>k,dR:()=>N});var o=n(27439);const i=Math.pow(2,16);function r(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,n=r(t);if(!this.inverted)for(let t=0;tt)break;let d=this.ranges[l+r],u=this.ranges[l+a],h=c+d;if(t<=h){let r=c+o+((d?t==c?-1:t==h?1:e:e)<0?0:u);if(n)return r;let a=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(a|=8),new s(r,a,t==(e<0?c:h)?null:l/3+(t-c)*i)}o+=u-d}return n?t+o:new s(t+o,0,null)}touches(t,e){let n=0,o=r(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;et)break;let a=this.ranges[e+i];if(t<=r+a&&e==3*o)return!0;n+=this.ranges[e+s]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,i=0;o=0;e--){let o=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=o&&o>e?n-o-1:void 0)}}invert(){let t=new l;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;nn&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),i),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,r)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new p(e.pos,n.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("addMark",p);class f extends d{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new o.p2(h(e.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),t),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,n)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("removeMark",f);class m extends d{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;nn.pos?null:new v(e.pos,n.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(e.from,e.to,e.gapFrom,e.gapTo,o.p2.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let o=t.resolve(e),i=n-e,r=o.depth;for(;i>0&&r>0&&o.indexAfter(r)==o.node(r).childCount;)r--,i--;if(i>0){let t=o.node(r).maybeChild(o.indexAfter(r));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function w(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function k(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let o=t.$from.node(n),i=t.$from.index(n),r=t.$to.indexAfter(n);if(nr;t--,e--){let n=i.node(t),r=i.index(t);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(r,n.childCount),a=o&&o[e+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=o&&o[e]||n;if(!n.canReplace(r+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(r),l=o&&o[0];return i.node(r).canReplaceWith(a,a,l?l.type:i.node(r+1).type)}function S(t,e){let n=t.resolve(e),o=n.index();return A(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function A(t,e){return!(!t||!e||t.isLeaf||!t.canAppend(e))}function O(t,e,n=-1){let o=t.resolve(e);for(let t=o.depth;;t--){let i,r,s=o.index(t);if(t==o.depth?(i=o.nodeBefore,r=o.nodeAfter):n>0?(i=o.node(t+1),s++,r=o.node(t).maybeChild(s)):(i=o.node(t).maybeChild(s-1),r=o.node(t+1)),i&&!i.isTextblock&&A(i,r)&&o.node(t).canReplace(s,s+1))return e;if(0==t)break;e=n<0?o.before(t):o.after(t)}}function T(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t=0;e--){let n=e==o.depth?0:o.pos<=(o.start(e+1)+o.end(e+1))/2?-1:1,r=o.index(e)+(n>0?1:0),s=o.node(e),a=!1;if(1==t)a=s.canReplace(r,r,i);else{let t=s.contentMatchAt(r).findWrapping(i.firstChild.type);a=t&&s.canReplaceWith(r,r,t[0])}if(a)return 0==n?o.pos:n<0?o.before(e+1):o.after(e+1)}return null}function N(t,e,n=e,i=o.p2.empty){if(e==n&&!i.size)return null;let r=t.resolve(e),s=t.resolve(n);return E(r,s,i)?new b(e,n,i):new I(r,s,i).fit()}function E(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}d.jsonID("replaceAround",v);class I{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=o.HY.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=o.HY.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let r=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new o.p2(r,s,a);return t>-1?new v(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new b(n.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,o=this.unplaced.openEnd;n1&&(o=0),i.type.spec.isolating&&o<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=H(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let r=t.firstChild;for(let t=this.depth;t>=0;t--){let s,{type:a,match:l}=this.frontier[t],c=null;if(1==e&&(r?l.matchType(r.type)||(c=l.fillBefore(o.HY.from(r),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:t,parent:i,inject:c};if(2==e&&r&&(s=l.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:t,parent:i,wrap:s};if(i&&l.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new o.p2(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);if(i.childCount<=1&&e>0){let r=t.size-e<=e+i.size;this.unplaced=new o.p2(D(t,e-1,1),e-1,r?e-1:n)}else this.unplaced=new o.p2(D(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:r}){for(;this.depth>e;)this.closeFrontierNode();if(r)for(let t=0;t1||0==l||t.content.size)&&(u=e,d.push(P(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=L(this.placed,e,o.HY.from(d)),this.frontier[e].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:o}=this.frontier[e],i=e=0;n--){let{match:e,type:o}=this.frontier[n],i=R(t,n,o,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:r,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=L(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),o=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,o)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=L(this.placed,this.depth,o.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(o.HY.empty,!0);t.childCount&&(this.placed=L(this.placed,this.frontier.length,t))}}function D(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(D(t.firstChild.content,e-1,n)))}function L(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(L(t.lastChild.content,e-1,n)))}function H(t,e){for(let n=0;n1&&(i=i.replaceChild(0,P(i.firstChild,e-1,1==i.childCount?n-1:0))),e>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(o.HY.empty,!0)))),t.copy(i)}function R(t,e,n,o,i){let r=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==r.childCount&&!n.compatibleContent(r.type))return null;let a=o.fillBefore(r.content,!0,s);return a&&!function(t,e,n){for(let o=n;oi){let e=r.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(o.HY.empty,!0))}return t}function $(t,e){let n=[];for(let o=Math.min(t.depth,e.depth);o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class z extends d{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(i),0,e.isLeaf?0:1))}getMap(){return a.empty}invert(t){return new z(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new z(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new z(e.pos,e.attr,e.value)}}d.jsonID("attr",z);class B extends d{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return u.ok(n)}getMap(){return a.empty}invert(t){return new B(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new B(e.attr,e.value)}}d.jsonID("docAttr",B);let F=class extends Error{};F=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(F.prototype=Object.create(Error.prototype)).constructor=F,F.prototype.name="TransformError";class J{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new F(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=o.p2.empty){let i=N(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new o.p2(o.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,o.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),s=t.doc.resolve(n);if(E(r,s,i))return t.step(new b(e,n,i));let a=$(r,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(r.depth+1);a.unshift(l);for(let t=r.depth,e=r.pos-1;t>0;t--,e--){let n=r.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:r.before(t)==e&&a.splice(1,0,-t)}let c=a.indexOf(l),d=[],u=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==i.openStart)break;t=n.content}for(let t=u-1;t>=0;t--){let e=d[t],n=(h=e.type).spec.defining||h.spec.definingForContent;if(n&&!e.sameMarkup(r.node(Math.abs(l)-1)))u=t;else if(n||!e.type.isTextblock)break}var h;for(let e=i.openStart;e>=0;e--){let l=(e+u+1)%(i.openStart+1),h=d[l];if(h)for(let e=0;e=0&&(t.replace(e,n,i),!(t.steps.length>p));o--){let t=a[o];t<0||(e=r.before(t),n=s.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=function(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(0==o.parentOffset)for(let t=o.depth-1;t>=0;t--){let e=o.index(t);if(o.node(t).canReplaceWith(e,e,n))return o.before(t+1);if(e>0)return null}if(o.parentOffset==o.parent.content.size)for(let t=o.depth-1;t>=0;t--){let e=o.indexAfter(t);if(o.node(t).canReplaceWith(e,e,n))return o.after(t+1);if(e0&&(s||o.node(n-1).canReplace(o.index(n-1),i.indexAfter(n-1))))return t.delete(o.before(n),i.after(n))}for(let r=1;r<=o.depth&&r<=i.depth;r++)if(e-o.start(r)==o.depth-r&&n>o.end(r)&&i.end(r)-n!=i.depth-r)return t.delete(o.before(r),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:i,$to:r,depth:s}=e,a=i.before(s+1),l=r.after(s+1),c=a,d=l,u=o.HY.empty,h=0;for(let t=s,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,u=o.HY.from(i.node(t).copy(u)),h++):c--;let p=o.HY.empty,f=0;for(let t=s,e=!1;t>n;t--)e||r.after(t+1)=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=o.HY.from(n[t].type.create(n[t].attrs,i))}let r=e.start,s=e.end;t.step(new v(r,s,r,s,new o.p2(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){return function(t,e,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,((e,n)=>{if(e.isTextblock&&!e.hasMarkup(i,r)&&function(t,e,n){let o=t.resolve(e),i=o.index();return o.parent.canReplaceWith(i,i+1,n)}(t.doc,t.mapping.slice(s).map(n),i)){t.clearIncompatible(t.mapping.slice(s).map(n,1),i);let a=t.mapping.slice(s),l=a.map(n,1),c=a.map(n+e.nodeSize,1);return t.step(new v(l,c,l+1,c-1,new o.p2(o.HY.from(i.create(r,null,e.marks)),0,0),1,!0)),!1}}))}(this,t,e,n,i),this}setNodeMarkup(t,e,n=null,i){return function(t,e,n,i,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new v(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new o.p2(o.HY.from(a),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new z(t,e,n)),this}setDocAttribute(t,e){return this.step(new B(t,e)),this}addNodeMark(t,e){return this.step(new m(t,e)),this}removeNodeMark(t,e){if(!(e instanceof o.vc)){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new g(t,e)),this}split(t,e=1,n){return function(t,e,n=1,i){let r=t.doc.resolve(e),s=o.HY.empty,a=o.HY.empty;for(let t=r.depth,e=r.depth-n,l=n-1;t>e;t--,l--){s=o.HY.from(r.node(t).copy(s));let e=i&&i[l];a=o.HY.from(e?e.type.create(e.attrs,a):r.node(t).copy(a))}t.step(new b(e,e,new o.p2(s.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,o){let i,r,s=[],a=[];t.doc.nodesBetween(e,n,((t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let c=Math.max(l,e),u=Math.min(l+t.nodeSize,n),h=o.addToSet(d);for(let t=0;tt.step(e))),a.forEach((e=>t.step(e)))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,i){let r=[],s=0;t.doc.nodesBetween(e,n,((t,a)=>{if(!t.isInline)return;s++;let l=null;if(i instanceof o.ZU){let e,n=t.marks;for(;e=i.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else i?i.isInSet(t.marks)&&(l=[i]):l=t.marks;if(l&&l.length){let o=Math.min(a+t.nodeSize,n);for(let t=0;tt.step(new f(e.from,e.to,e.style))))}(this,t,e,n),this}clearIncompatible(t,e,n){return function(t,e,n,i=n.contentMatch){let r=t.doc.nodeAt(e),s=[],a=e+1;for(let e=0;e=0;e--)t.step(s[e])}(this,t,e,n),this}}},43594:(t,e,n)=>{n.d(e,{p:()=>Re,EH:()=>ze,tk:()=>ln});var o=n(62463),i=n(27439),r=n(38480);const s=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},a=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let o=l||(l=document.createRange());return o.setEnd(t,null==n?t.nodeValue.length:n),o.setStart(t,e||0),o},d=function(t,e,n,o){return n&&(h(t,e,n,o,-1)||h(t,e,n,o,1))},u=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,o,i){for(;;){if(t==n&&e==o)return!0;if(e==(i<0?0:p(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||u.test(t.nodeName)||"false"==t.contentEditable)return!1;e=s(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if("false"==(t=t.childNodes[e+(i<0?-1:0)]).contentEditable)return!1;e=i<0?p(t):0}}}function p(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,v="undefined"!=typeof document?document:null,y=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(y),k=/MSIE \d/.exec(y),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),C=!!(k||x||w),M=k?document.documentMode:x?+x[1]:w?+w[1]:0,S=!C&&/gecko\/(\d+)/i.test(y);S&&(/Firefox\/(\d+)/.exec(y)||[0,0])[1];const A=!C&&/Chrome\/(\d+)/.exec(y),O=!!A,T=A?+A[1]:0,N=!C&&!!b&&/Apple Computer/.test(b.vendor),E=N&&(/Mobile\/\w+/.test(y)||!!b&&b.maxTouchPoints>2),I=E||!!b&&/Mac/.test(b.platform),D=!!b&&/Win/.test(b.platform),L=/Android \d/.test(y),H=!!v&&"webkitFontSmoothing"in v.documentElement.style,P=H?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function R(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function _(t,e){return"number"==typeof t?t:t[e]}function $(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function z(t,e,n){let o=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,r=t.dom.ownerDocument;for(let s=n||t.dom;s;s=a(s)){if(1!=s.nodeType)continue;let t=s,n=t==r.body,a=n?R(r):$(t),l=0,c=0;if(e.topa.bottom-_(o,"bottom")&&(c=e.bottom-e.top>a.bottom-a.top?e.top+_(i,"top")-a.top:e.bottom-a.bottom+_(i,"bottom")),e.lefta.right-_(o,"right")&&(l=e.right-a.right+_(i,"right")),l||c)if(n)r.defaultView.scrollBy(l,c);else{let n=t.scrollLeft,o=t.scrollTop;c&&(t.scrollTop+=c),l&&(t.scrollLeft+=l);let i=t.scrollLeft-n,r=t.scrollTop-o;e={left:e.left-i,top:e.top-r,right:e.right-i,bottom:e.bottom-r}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function B(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=a(o));return e}function F(t,e){for(let n=0;n=d){l=Math.max(p.bottom,l),d=Math.min(p.top,d);let t=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!i&&p.left<=e.left&&p.right>=e.left&&(i=u,r={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(a=h+1)}}return!n&&i&&(n=i,o=r,s=0),n&&3==n.nodeType?function(t,e){let n=t.nodeValue.length,o=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:t,offset:0}}(n,o):!n||s&&1==n.nodeType?{node:t,offset:a}:Z(n,o)}function j(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function Y(t,e,n){let o=t.childNodes.length;if(o&&n.tope.top&&i++}let o;H&&i&&1==n.nodeType&&1==(o=n.childNodes[i-1]).nodeType&&"false"==o.contentEditable&&o.getBoundingClientRect().top>=e.top&&i--,n==t.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(s=function(t,e,n,o){let i=-1;for(let n=e,r=!1;n!=t.dom;){let e=t.docView.nearestDesc(n,!0);if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent&&!r||!e.contentDOM)){let t=e.dom.getBoundingClientRect();if(e.node.isBlock&&e.parent&&!r&&(r=!0,t.left>o.left||t.top>o.top?i=e.posBefore:(t.right-1?i:t.docView.posFromDOM(e,n,-1)}(t,n,i,e))}null==s&&(s=function(t,e,n){let{node:o,offset:i}=Z(e,n),r=-1;if(1==o.nodeType&&!o.firstChild){let t=o.getBoundingClientRect();r=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(o,i,r)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function V(t){return t.top=0&&i==o.nodeValue.length?(t--,r=1):n<0?t--:e++,K(U(c(o,t,e),r),r<0)}{let t=U(c(o,i,i),n);if(S&&i&&/\s/.test(o.nodeValue[i-1])&&i=0)}if(null==r&&i&&(n<0||i==p(o))){let t=o.childNodes[i-1],e=3==t.nodeType?c(t,p(t)-(s?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return K(U(e,1),!1)}if(null==r&&i=0)}function K(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function X(t,e,n){let o=t.state,i=t.root.activeElement;o!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),i!=t.dom&&i&&i.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,ot=!1;class it{constructor(t,e,n,o){this.parent=t,this.children=e,this.dom=n,this.contentDOM=o,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;es(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!1;break}if(e.previousSibling)break}if(null==o&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!0;break}if(e.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,o=t;o;o=o.parentNode){let i,r=this.getDesc(o);if(r&&(!e||r.node)){if(!n||!(i=r.nodeDOM)||(1==i.nodeType?i.contains(1==t.nodeType?t:t.parentNode):i==t))return r;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;et||i instanceof ut){o=t-e;break}e=r}if(o)return this.children[n].domFromPos(o-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof rt&&t.side>=0;n--);if(e<=0){let t,o=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,o=!1);return t&&e&&o&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?s(t.dom)+1:0}}{let t,o=!0;for(;t=n=i&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,i);t=r;for(let e=a;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=s(n.dom)+1;break}t-=n.size}-1==o&&(o=0)}if(o>-1&&(l>e||a==this.children.length-1)){e=l;for(let t=a+1;ta&&re){let t=a;a=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,o=0;o=n:tn){let o=n+i.border,s=r-i.border;if(t>=o&&e<=s)return this.dirty=t==n||e==r?2:1,void(t!=o||e!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(t-o,e-o):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=r}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:o))),!e.type.spec.raw){if(1!=r.nodeType){let t=document.createElement("span");t.appendChild(r),r=t}r.contentEditable="false",r.classList.add("ProseMirror-widget")}super(t,[],r,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,o){super(t,[],e,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class at extends it{constructor(t,e,n,o){super(t,[],n,o),this.mark=e}static create(t,e,n,o){let r=o.nodeViews[e.type.name],s=r&&r(e,o,n);return s&&s.dom||(s=i.PW.renderSpec(document,e.type.spec.toDOM(e,n))),new at(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(i=Mt(i,0,t,n));for(let t=0;ta?a.parent?a.parent.posBeforeChild(a):void 0:s),n,o),d=c&&c.dom,u=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else d||({dom:d,contentDOM:u}=i.PW.renderSpec(document,e.type.spec.toDOM(e)));u||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=yt(d,n,e),c?a=new ht(t,e,n,o,d,u||null,h,c,r,s+1):e.isText?new dt(t,e,n,o,d,h,r):new lt(t,e,n,o,d,u||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>i.HY.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&wt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,o=e,r=t.composing?this.localCompositionInfo(t,e):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new xt(this,s&&s.node,t);!function(t,e,n,o){let i=e.locals(t),r=0;if(0==i.length){for(let n=0;nr;)a.push(i[s++]);let f=r+h.nodeSize;if(h.isText){let t=f;s!t.inline)):a.slice(),e.forChild(r,h),p),r=f}}(this.node,this.innerDeco,((e,r,s)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t):e.type.side>=0&&!s&&l.syncToMarks(r==this.node.childCount?i.vc.none:this.node.child(r).marks,n,t),l.placeWidget(e,t,o)}),((e,i,s,c)=>{let d;l.syncToMarks(e.marks,n,t),l.findNodeMatch(e,i,s,c)||a&&t.state.selection.from>o&&t.state.selection.to-1&&l.updateNodeAt(e,i,s,d,t)||l.updateNextNode(e,i,s,t,c,o)||l.addNode(e,i,s,t,o),o+=e.nodeSize})),l.syncToMarks([],n,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),pt(this.contentDOM,this.children,t),E&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:i}=t.state.selection;if(!(t.state.selection instanceof o.Bs)||ne+this.node.content.size)return null;let r=t.domSelectionRange(),s=function(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];e=p(t=t.childNodes[e-1])}else{if(!(1==t.nodeType&&e=n){if(r>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let t=a=0&&t+e.length+a>=n)return a+t;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}(this.node.content,t,n-e,i-e);return o<0?null:{node:s,pos:o,text:t}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:o}){if(this.getDesc(e))return;let i=e;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let r=new st(this,i,e,o);t.input.compositionNodes.push(r),this.children=Mt(this.children,n,n+o.length,t,r)}update(t,e,n,o){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,n,o),0))}updateInner(t,e,n,o){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(wt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=bt(this.dom,this.nodeDOM,gt(this.outerDeco,this.node,e),gt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ct(t,e,n,o,i){yt(o,e,t);let r=new lt(void 0,t,e,n,o,o,o,i,0);return r.contentDOM&&r.updateChildren(i,0),r}class dt extends lt{constructor(t,e,n,o,i,r,s){super(t,e,n,o,i,null,r,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let o=this.node.cut(t,e),i=document.createTextNode(o.text);return new dt(this.parent,o,this.outerDeco,this.innerDeco,i,i,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class ut extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ht extends lt{constructor(t,e,n,o,i,r,s,a,l,c){super(t,e,n,o,i,r,s,l,c),this.spec=a}update(t,e,n,o){if(3==this.dirty)return!1;if(this.spec.update){let i=this.spec.update(t,e,n);return i&&this.updateInner(t,e,n,o),i}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,o){this.spec.setSelection?this.spec.setSelection(t,e,n):super.setSelection(t,e,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function pt(t,e,n){let o=t.firstChild,i=!1;for(let r=0;r0;){let a;for(;;)if(o){let t=n.children[o-1];if(!(t instanceof at)){a=t,o--;break}n=t,o=t.children.length}else{if(n==e)break t;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,r.set(a,i),s.push(a)}}return{index:i,matched:r,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n>1,r=Math.min(i,t.length);for(;o-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let o=at.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,o),this.top=o,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,o){let i,r=-1;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(t,e,n))r=this.top.children.indexOf(i,this.index);else for(let o=this.index,i=Math.min(this.top.children.length,o+5);o=n||d<=e?r.push(l):(cn&&r.push(l.slice(n-c,l.size,o)))}return r}function St(t,e=null){let n=t.domSelectionRange(),i=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),a=r&&0==r.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,u=i.resolve(l);if(m(n)){for(c=u;r&&!r.node;)r=r.parent;let t=r.node;if(r&&t.isAtom&&o.qv.isSelectable(t)&&r.parent&&(!t.isInline||!function(t,e,n){for(let o=0==e,i=e==p(t);o||i;){if(t==n)return!0;let e=s(t);if(!(t=t.parentNode))return!1;o=o&&0==e,i=i&&e==p(t)}}(n.focusNode,n.focusOffset,r.dom))){let t=r.posBefore;d=new o.qv(l==t?u:i.resolve(t))}}else{let e=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(e<0)return null;c=i.resolve(e)}return d||(d=Ht(t,c,u,"pointer"==e||t.state.selection.head{n.anchorNode==o&&n.anchorOffset==i||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout((()=>{At(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")}),20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Tt=N||O&&T<63;function Nt(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),i=oo(t,e,n)))||o.Bs.between(e,n,i)}function Pt(t){return!(t.editable&&!t.hasFocus())&&Rt(t)}function Rt(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function _t(t,e){let{$anchor:n,$head:i}=t.selection,r=e>0?n.max(i):n.min(i),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&o.Y1.findFrom(s,e)}function $t(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function zt(t,e,n){let i=t.state.selection;if(!(i instanceof o.Bs)){if(i instanceof o.qv&&i.node.isInline)return $t(t,new o.Bs(e>0?i.$to:i.$from));{let n=_t(t.state,e);return!!n&&$t(t,n)}}if(n.indexOf("s")>-1){let{$head:n}=i,r=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!r||r.isText||!r.isLeaf)return!1;let s=t.state.doc.resolve(n.pos+r.nodeSize*(e<0?-1:1));return $t(t,new o.Bs(i.$anchor,s))}if(!i.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=_t(t.state,e);return!!(n&&n instanceof o.qv)&&$t(t,n)}if(!(I&&n.indexOf("m")>-1)){let n,r=i.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText)return!1;let a=e<0?r.pos-s.nodeSize:r.pos;return!!(s.isAtom||(n=t.docView.descAt(a))&&!n.contentDOM)&&(o.qv.isSelectable(s)?$t(t,new o.qv(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):!!H&&$t(t,new o.Bs(t.state.doc.resolve(e<0?a:a+s.nodeSize))))}}function Bt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t,e){let n=t.pmViewDesc;return n&&0==n.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function Jt(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=!1;for(S&&1==n.nodeType&&o0){if(1!=n.nodeType)break;{let t=n.childNodes[o-1];if(Ft(t,-1))i=n,r=--o;else{if(3!=t.nodeType)break;n=t,o=n.nodeValue.length}}}else{if(Zt(n))break;{let e=n.previousSibling;for(;e&&Ft(e,-1);)i=n.parentNode,r=s(e),e=e.previousSibling;if(e)n=e,o=Bt(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}a?jt(t,n,o):i&&jt(t,i,r)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=Bt(n);for(;;)if(o{t.state==i&&Ot(t)}),50)}function Yt(t,e){let n=t.state.doc.resolve(e);if(!O&&!D&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),i=(n.top+n.bottom)/2;if(i>o.top&&i1)return n.lefto.top&&i1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function qt(t,e,n){let i=t.state.selection;if(i instanceof o.Bs&&!i.empty||n.indexOf("s")>-1)return!1;if(I&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=_t(t.state,e);if(n&&n instanceof o.qv)return $t(t,n)}if(!r.parent.inlineContent){let n=e<0?r:s,a=i instanceof o.C1?o.Y1.near(n,e):o.Y1.findFrom(n,e);return!!a&&$t(t,a)}return!1}function Vt(t,e){if(!(t.state.selection instanceof o.Bs))return!0;let{$head:n,$anchor:i,empty:r}=t.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function Ut(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Wt(t,e){t.someProp("transformCopied",(n=>{e=n(e,t)}));let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&1==o.childCount&&1==o.firstChild.childCount;){r--,s--;let t=o.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),o=t.content}let a=t.someProp("clipboardSerializer")||i.PW.fromSchema(t.state.schema),l=re(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d,u=c.firstChild,h=0;for(;u&&1==u.nodeType&&(d=oe[u.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",(n=>n(e,t)))||e.content.textBetween(0,e.content.size,"\n\n")}}function Qt(t,e,n,o,r){let s,a,l=r.parent.type.spec.code;if(!n&&!e)return null;let c=e&&(o||l||!n);if(c){if(t.someProp("transformPastedText",(n=>{e=n(e,l||o,t)})),l)return e?new i.p2(i.HY.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):i.p2.empty;let n=t.someProp("clipboardTextParser",(n=>n(e,r,o,t)));if(n)a=n;else{let n=r.marks(),{schema:o}=t.state,a=i.PW.fromSchema(o);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach((t=>{let e=s.appendChild(document.createElement("p"));t&&e.appendChild(a.serializeNode(o.text(t,n)))}))}}else t.someProp("transformPastedHTML",(e=>{n=e(n,t)})),s=function(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,o=re().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(t);if((n=i&&oe[i[1].toLowerCase()])&&(t=n.map((t=>"<"+t+">")).join("")+t+n.map((t=>"")).reverse().join("")),o.innerHTML=t,n)for(let t=0;t0;t--){let t=s.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;s=t}if(!a){let e=t.someProp("clipboardParser")||t.someProp("domParser")||i.aw.fromSchema(t.state.schema);a=e.parseSlice(s,{preserveWhitespace:!(!c&&!u),context:r,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Kt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(t,e){if(!t.size)return t;let n,o=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:r,openStart:s,openEnd:a}=t;for(let t=n.length-2;t>=0;t-=2){let e=o.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;r=i.HY.from(e.create(n[t+1],r)),s++,a++}return new i.p2(r,s,a)}(ne(a,+u[1],+u[2]),u[4]);else if(a=i.p2.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o,r=e.node(n).contentMatchAt(e.index(n)),s=[];if(t.forEach((t=>{if(!s)return;let e,n=r.findWrapping(t.type);if(!n)return s=null;if(e=s.length&&o.length&&Xt(n,o,t,s[s.length-1],0))s[s.length-1]=e;else{s.length&&(s[s.length-1]=te(s[s.length-1],o.length));let e=Gt(t,n);s.push(e),r=r.matchType(e.type),o=n}})),s)return i.HY.from(s)}return t}(a.content,r),!0),a.openStart||a.openEnd){let t=0,e=0;for(let e=a.content.firstChild;t{a=e(a,t)})),a}const Kt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gt(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,i.HY.from(t));return t}function Xt(t,e,n,o,r){if(r1&&(s=0),r=n&&(l=e<0?a.contentMatchAt(0).fillBefore(l,s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.HY.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(l))}function ne(t,e,n){return e{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>he(t,e))}))}function he(t,e){return t.someProp("handleDOMEvents",(n=>{let o=n[e.type];return!!o&&(o(t,e)||e.defaultPrevented)}))}function pe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function fe(t){return{left:t.clientX,top:t.clientY}}function me(t,e,n,o,i){if(-1==o)return!1;let r=t.state.doc.resolve(o);for(let o=r.depth+1;o>0;o--)if(t.someProp(e,(e=>o>r.depth?e(t,n,r.nodeAfter,r.before(o),i,!0):e(t,n,r.node(o),r.before(o),i,!1))))return!0;return!1}function ge(t,e,n){t.focused||t.focus();let o=t.state.tr.setSelection(e);"pointer"==n&&o.setMeta("pointer",!0),t.dispatch(o)}function be(t,e,n,o){return me(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",(n=>n(t,e,o)))}function ve(t,e,n,i){return me(t,"handleTripleClickOn",e,n,i)||t.someProp("handleTripleClick",(n=>n(t,e,i)))||function(t,e,n){if(0!=n.button)return!1;let i=t.state.doc;if(-1==e)return!!i.inlineContent&&(ge(t,o.Bs.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(e);for(let e=r.depth+1;e>0;e--){let n=e>r.depth?r.nodeAfter:r.node(e),s=r.before(e);if(n.inlineContent)ge(t,o.Bs.create(i,s+1,s+1+n.content.size),"pointer");else{if(!o.qv.isSelectable(n))continue;ge(t,o.qv.create(i,s),"pointer")}return!0}}(t,n,i)}function ye(t){return Ae(t)}ae.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!xe(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!L||!O||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!E||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",(e=>e(t,n)))||function(t,e){let n=e.keyCode,o=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||I&&72==n&&"c"==o)return Vt(t,-1)||Jt(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==o)return Vt(t,1)||Jt(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==o){let e=37==n?"ltr"==Yt(t,t.state.selection.from)?-1:1:-1;return zt(t,e,o)||Jt(t,e)}if(39==n||I&&70==n&&"c"==o){let e=39==n?"ltr"==Yt(t,t.state.selection.from)?1:-1:1;return zt(t,e,o)||Jt(t,e)}return 38==n||I&&80==n&&"c"==o?qt(t,-1,o)||Jt(t,-1):40==n||I&&78==n&&"c"==o?function(t){if(!N||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Ut(t,n,"true"),setTimeout((()=>Ut(t,n,"false")),20)}return!1}(t)||qt(t,1,o)||Jt(t,1):o==(I?"m":"c")&&(66==n||73==n||89==n||90==n)}(t,n)?n.preventDefault():de(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))),t.input.lastIOSEnter=0)}),200)}},ae.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},ae.keypress=(t,e)=>{let n=e;if(xe(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||I&&n.metaKey)return;if(t.someProp("handleKeyPress",(e=>e(t,n))))return void n.preventDefault();let i=t.state.selection;if(!(i instanceof o.Bs&&i.$from.sameParent(i.$to))){let e=String.fromCharCode(n.charCode);/[\r\n]/.test(e)||t.someProp("handleTextInput",(n=>n(t,i.$from.pos,i.$to.pos,e)))||t.dispatch(t.state.tr.insertText(e).scrollIntoView()),n.preventDefault()}};const we=I?"metaKey":"ctrlKey";se.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=ye(t),i=Date.now(),r="singleClick";i-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}(n,t.input.lastClick)&&!n[we]&&("singleClick"==t.input.lastClick.type?r="doubleClick":"doubleClick"==t.input.lastClick.type&&(r="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:r};let s=t.posAtCoords(fe(n));s&&("singleClick"==r?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ke(t,s,n,!!o)):("doubleClick"==r?be:ve)(t,s.pos,s.inside,n)?n.preventDefault():de(t,"pointer"))};class ke{constructor(t,e,n,i){let r,s;if(this.view=t,this.pos=e,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[we],this.allowDefault=n.shiftKey,e.inside>-1)r=t.state.doc.nodeAt(e.inside),s=e.inside;else{let n=t.state.doc.resolve(e.pos);r=n.parent,s=n.depth?n.before():0}const a=i?null:n.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof o.qv&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!S||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),de(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Ot(this.view))),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(fe(t))),this.updateAllowDefault(t),this.allowDefault||!e?de(this.view,"pointer"):function(t,e,n,i,r){return me(t,"handleClickOn",e,n,i)||t.someProp("handleClick",(n=>n(t,e,i)))||(r?function(t,e){if(-1==e)return!1;let n,i,r=t.state.selection;r instanceof o.qv&&(n=r.node);let s=t.state.doc.resolve(e);for(let t=s.depth+1;t>0;t--){let e=t>s.depth?s.nodeAfter:s.node(t);if(o.qv.isSelectable(e)){i=n&&r.$from.depth>0&&t>=r.$from.depth&&s.before(r.$from.depth+1)==r.$from.pos?s.before(r.$from.depth):s.before(t);break}}return null!=i&&(ge(t,o.qv.create(t.state.doc,i),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),i=n.nodeAfter;return!!(i&&i.isAtom&&o.qv.isSelectable(i))&&(ge(t,new o.qv(n),"pointer"),!0)}(t,n))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||N&&this.mightDrag&&!this.mightDrag.node.isAtom||O&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(ge(this.view,o.Y1.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):de(this.view,"pointer")}move(t){this.updateAllowDefault(t),de(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function xe(t,e){return!!t.composing||!!(N&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}se.touchstart=t=>{t.input.lastTouch=Date.now(),ye(t),de(t,"pointer")},se.touchmove=t=>{t.input.lastTouch=Date.now(),de(t,"pointer")},se.contextmenu=t=>ye(t);const Ce=L?5e3:-1;function Me(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout((()=>Ae(t)),e))}function Se(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Ae(t,e=!1){if(!(L&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Se(t),e||t.docView&&t.docView.dirty){let e=St(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}ae.compositionstart=ae.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((t=>!1===t.type.spec.inclusive))))t.markCursor=t.state.storedMarks||n.marks(),Ae(t,!0),t.markCursor=null;else if(Ae(t),S&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,o=e.focusOffset;n&&1==n.nodeType&&0!=o;){let e=o<0?n.lastChild:n.childNodes[o-1];if(!e)break;if(3==e.nodeType){t.domSelection().collapse(e,e.nodeValue.length);break}n=e,o=-1}}t.input.composing=!0}Me(t,Ce)},ae.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then((()=>t.domObserver.flush())),t.input.compositionID++,Me(t,20))};const Oe=C&&M<15||E&&P<604;function Te(t,e,n,o,r){let s=Qt(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",(e=>e(t,r,s||i.p2.empty))))return!0;if(!s)return!1;let a=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(s),l=a?t.state.tr.replaceSelectionWith(a,o):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ne(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}se.copy=ae.cut=(t,e)=>{let n=e,o=t.state.selection,i="cut"==n.type;if(o.empty)return;let r=Oe?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Wt(t,s);r?(n.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(i),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()}),50)}(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ae.paste=(t,e)=>{let n=e;if(t.composing&&!L)return;let o=Oe?null:n.clipboardData,i=t.input.shiftKey&&45!=t.input.lastKeyCode;o&&Te(t,Ne(o),o.getData("text/html"),i,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let i=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout((()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Te(t,o.value,null,i,e):Te(t,o.textContent,o.innerHTML,i,e)}),50)}(t,n)};class Ee{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const Ie=I?"altKey":"ctrlKey";se.dragstart=(t,e)=>{let n=e,i=t.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r,s=t.state.selection,a=s.empty?null:t.posAtCoords(fe(n));if(a&&a.pos>=s.from&&a.pos<=(s instanceof o.qv?s.to-1:s.to));else if(i&&i.mightDrag)r=o.qv.create(t.state.doc,i.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&(r=o.qv.create(t.state.doc,e.posBefore))}let l=(r||t.state.selection).content(),{dom:c,text:d}=Wt(t,l);n.dataTransfer.clearData(),n.dataTransfer.setData(Oe?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Oe||n.dataTransfer.setData("text/plain",d),t.dragging=new Ee(l,!n[Ie],r)},se.dragend=t=>{let e=t.dragging;window.setTimeout((()=>{t.dragging==e&&(t.dragging=null)}),50)},ae.dragover=ae.dragenter=(t,e)=>e.preventDefault(),ae.drop=(t,e)=>{let n=e,s=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let a=t.posAtCoords(fe(n));if(!a)return;let l=t.state.doc.resolve(a.pos),c=s&&s.slice;c?t.someProp("transformPasted",(e=>{c=e(c,t)})):c=Qt(t,Ne(n.dataTransfer),Oe?null:n.dataTransfer.getData("text/html"),!1,l);let d=!(!s||n[Ie]);if(t.someProp("handleDrop",(e=>e(t,n,c||i.p2.empty,d))))return void n.preventDefault();if(!c)return;n.preventDefault();let u=c?(0,r.nj)(t.state.doc,l.pos,c):l.pos;null==u&&(u=l.pos);let h=t.state.tr;if(d){let{node:t}=s;t?t.replace(h):h.deleteSelection()}let p=h.mapping.map(u),f=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=h.doc;if(f?h.replaceRangeWith(p,p,c.content.firstChild):h.replaceRange(p,p,c),h.doc.eq(m))return;let g=h.doc.resolve(p);if(f&&o.qv.isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))h.setSelection(new o.qv(g));else{let e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach(((t,n,o,i)=>e=i)),h.setSelection(Ht(t,g,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))},se.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout((()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ot(t)}),20))},se.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},se.beforeinput=(t,e)=>{if(O&&L&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout((()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",(e=>e(t,g(8,"Backspace")))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let t in ae)se[t]=ae[t];function De(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Le{constructor(t,e){this.toDOM=t,this.spec=e||$e,this.side=this.spec.side||0}map(t,e,n,o){let{pos:i,deleted:r}=t.mapResult(e.from+o,this.side<0?-1:1);return r?null:new Re(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Le&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class He{constructor(t,e){this.attrs=t,this.spec=e||$e}map(t,e,n,o){let i=t.map(e.from+o,this.spec.inclusiveStart?-1:1)-n,r=t.map(e.to+o,this.spec.inclusiveEnd?1:-1)-n;return i>=r?null:new Re(i,r,this)}valid(t,e){return e.from=t&&(!i||i(s.spec))&&n.push(s.copy(s.from+o,s.to+o))}for(let r=0;rt){let s=this.children[r]+1;this.children[r+2].findInner(t-s,e-s,n,o+s,i)}}map(t,e,n){return this==Be||0==t.maps.length?this:this.mapInner(t,e,0,0,n||$e)}mapInner(t,e,n,o,i){let r;for(let s=0;s{let s=r-i-(n-t);for(let i=0;ir+e-o)continue;let l=a[i]+e-o;n>=l?a[i+1]=t<=l?-2:-1:t>=e&&s&&(a[i]+=s,a[i+1]+=s)}o+=s})),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e=o.content.size){l=!0;continue}let u=n.map(t[e+1]+r,-1)-i,{index:h,offset:p}=o.content.findIndex(d),f=o.maybeChild(h);if(f&&p==d&&p+f.nodeSize==u){let o=a[e+2].mapInner(n,f,c+1,t[e]+r+1,s);o!=Be?(a[e]=d,a[e+1]=u,a[e+2]=o):(a[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,o,i,r,s){function a(t,e){for(let r=0;r{let s,a=r+n;if(s=Ze(e,t,a)){for(o||(o=this.children.slice());ir&&e.to=t){this.children[e]==t&&(n=this.children[e+2]);break}let i=t+1,r=i+e.content.size;for(let t=0;ti&&e.type instanceof He){let t=Math.max(i,e.from)-i,n=Math.min(r,e.to)-i;tn.map(t,e,$e)));return Fe.from(n)}forChild(t,e){if(e.isLeaf)return ze.empty;let n=[];for(let o=0;ot instanceof ze))?t:t.reduce(((t,e)=>t.concat(e instanceof ze?e:e.members)),[]))}}}function Je(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;on&&e.to{let a=Ze(t,e,s+n);if(a){r=!0;let t=Ye(a,e,n+s+1,o);t!=Be&&i.push(s,s+e.nodeSize,t)}}));let s=Je(r?je(t):t,-n).sort(qe);for(let t=0;t0;)e++;t.splice(e,0,n)}function We(t){let e=[];return t.someProp("decorations",(n=>{let o=n(t.state);o&&o!=Be&&e.push(o)})),t.cursorWrapper&&e.push(ze.create(t.state.doc,[t.cursorWrapper.deco])),Fe.from(e)}const Qe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ke=C&&M<=11;class Ge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Xe{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ge,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((t=>{for(let e=0;e"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),Ke&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Qe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Pt(this.view)){if(this.suppressingSelectionUpdates)return Ot(this.view);if(C&&M<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=a(e))n.add(e);for(let o=t.anchorNode;o;o=a(o))if(n.has(o)){e=o;break}let o=e&&this.view.docView.nearestDesc(e);return o&&o.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Pt(t)&&!this.ignoreSelectionChange(n),r=-1,s=-1,a=!1,l=[];if(t.editable)for(let t=0;t1){let t=l.filter((t=>"BR"==t.nodeName));if(2==t.length){let e=t[0],n=t[1];e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}}let c=null;r<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(r>-1&&(t.docView.markDirty(r,s),function(t){if(!tn.has(t)&&(tn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))){if(t.requiresGeckoHackNode=S,en)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),en=!0}}(t)),this.handleDOMChange(r,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Ot(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;ne.content.size?null:Ht(t,e.resolve(n.anchor),e.resolve(n.head))}function sn(t,e,n){let o=t.depth,i=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,i++,e=!1;if(n){let e=t.node(o).maybeChild(t.indexAfter(o));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}function an(t){if(2!=t.length)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class ln{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ce,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(pn),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=un(this),dn(this),this.nodeViews=hn(this),this.docView=ct(this.state.doc,cn(this),We(this),this.dom,this),this.domObserver=new Xe(this,((t,e,n,r)=>function(t,e,n,r,s){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=St(t,e);if(n&&!t.state.selection.eq(n)){if(O&&L&&13===t.input.lastKeyCode&&Date.now()-100e(t,g(13,"Enter")))))return;let o=t.state.tr.setSelection(n);"pointer"==e?o.setMeta("pointer",!0):"key"==e&&o.scrollIntoView(),a&&o.setMeta("composition",a),t.dispatch(o)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,u,h=t.state.selection,p=function(t,e,n){let o,{node:r,fromOffset:s,toOffset:a,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),u=d.anchorNode;if(u&&t.dom.contains(1==u.nodeType?u:u.parentNode)&&(o=[{node:u,offset:d.anchorOffset}],m(d)||o.push({node:d.focusNode,offset:d.focusOffset})),O&&8===t.input.lastKeyCode)for(let t=a;t>s;t--){let e=r.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){a=t;break}if(!n||n.size)break}let h=t.state.doc,p=t.someProp("domParser")||i.aw.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=p.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:o,ruleFromNode:nn,context:f});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(p.from,p.to);8===t.input.lastKeyCode&&Date.now()-100=s?r-o:0;r-=t,r&&r=a?r-o:0;r-=e,r&&rDate.now()-225||L)&&s.some((t=>1==t.nodeType&&!on.test(t.nodeName)))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(!v){if(!(r&&h instanceof o.Bs&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let e=rn(t,t.state.doc,p.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);a&&n.setMeta("composition",a),t.dispatch(n)}}return}v={start:h.from,endA:h.to,endB:h.to}}if(O&&t.cursorWrapper&&p.sel&&p.sel.anchor==t.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let t=v.endB-v.start;p.sel={anchor:p.sel.anchor+t,head:p.sel.anchor+t}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=p.from?v.start=t.state.selection.from:v.endA=t.state.selection.to-2&&t.state.selection.to<=p.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.state.selection.to)),C&&M<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>p.from&&"  "==p.doc.textBetween(v.start-p.from-1,v.start-p.from+1)&&(v.start--,v.endA--,v.endB--);let y,w=p.doc.resolveNoCache(v.start-p.from),k=p.doc.resolveNoCache(v.endB-p.from),x=f.resolve(v.start),S=w.sameParent(k)&&w.parent.inlineContent&&x.end()>=v.endA;if((E&&t.input.lastIOSEnter>Date.now()-225&&(!S||s.some((t=>"DIV"==t.nodeName||"P"==t.nodeName)))||!S&&w.pose(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>v.start&&function(t,e,n,o,i){if(!o.parent.isTextblock||n-e<=i.pos-o.pos||sn(o,!0,!1)n||sn(s,!0,!1)e(t,g(8,"Backspace")))))return void(L&&O&&t.domObserver.suppressSelectionUpdates());O&&L&&v.endB==v.start&&(t.input.lastAndroidDelete=Date.now()),L&&!S&&w.start()!=k.start()&&0==k.parentOffset&&w.depth==k.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==v.endA&&(v.endB-=2,k=p.doc.resolveNoCache(v.endB-p.from),setTimeout((()=>{t.someProp("handleKeyDown",(function(e){return e(t,g(13,"Enter"))}))}),20));let A,T,N,I=v.start,D=v.endA;if(S)if(w.pos==k.pos)C&&M<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout((()=>Ot(t)),20)),A=t.state.tr.delete(I,D),T=f.resolve(v.start).marksAcross(f.resolve(v.endA));else if(v.endA==v.endB&&(N=function(t,e){let n,o,r,s=t.firstChild.marks,a=e.firstChild.marks,l=s,c=a;for(let t=0;tt.mark(o.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;o=c[0],n="remove",r=t=>t.mark(o.removeFromSet(t.marks))}let d=[];for(let t=0;tn(t,I,D,e))))return;A=t.state.tr.insertText(e,I,D)}if(A||(A=t.state.tr.replace(I,D,p.doc.slice(v.start-p.from,v.endB-p.from))),p.sel){let e=rn(t,A.doc,p.sel);e&&!(O&&L&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastAndroidDelete{!pe(t,e)||he(t,e)||!t.editable&&e.type in ae||n(t,e)},le[e]?{passive:!0}:void 0)}N&&t.dom.addEventListener("input",(()=>null)),ue(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ue(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(pn),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var n;let o=this.state,i=!1,r=!1;t.storedMarks&&this.composing&&(Se(this),r=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=hn(this);(function(t,e){let n=0,o=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let t in e)o++;return n!=o})(t,this.nodeViews)&&(this.nodeViews=t,i=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&ue(this),this.editable=un(this),dn(this);let a=We(this),l=cn(this),c=o.plugins==t.plugins||o.doc.eq(t.doc)?t.scrollToSelection>o.scrollToSelection?"to selection":"preserve":"reset",u=i||!this.docView.matchesNode(t.doc,l,a);!u&&t.selection.eq(o.selection)||(r=!0);let h="preserve"==c&&r&&null==this.dom.style.overflowAnchor&&function(t){let e,n,o=t.dom.getBoundingClientRect(),i=Math.max(0,o.top);for(let r=(o.left+o.right)/2,s=i+1;s=i-20){e=o,n=a.top;break}}return{refDOM:e,refTop:n,stack:B(t.dom)}}(this);if(r){this.domObserver.stop();let e=u&&(C||O)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(o.selection,t.selection);if(u){let n=O?this.trackWrites=this.domSelectionRange().focusNode:null;!i&&this.docView.update(t.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ct(t.doc,l,a,this.dom,this)),n&&!this.trackWrites&&(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Ot(this,e):(Dt(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;F(n,0==o?0:o-e)}(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(t=>t(this))));else if(this.state.selection instanceof o.qv){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&z(this,e.getBoundingClientRect(),t)}else z(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e0&&this.state.doc.nodeAt(t))==n.node&&(i=t)}this.dragging=new Ee(t.slice,t.move,i<0?void 0:o.qv.create(this.state.doc,i))}someProp(t,e){let n,o=this._props&&this._props[t];if(null!=o&&(n=e?e(o):o))return n;for(let o=0;ot.ownerDocument.getSelection()),this._root=t;return t||document}updateRoot(){this._root=null}posAtCoords(t){return q(this,t)}coordsAtPos(t,e=1){return Q(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let o=this.docView.posFromDOM(t,e,n);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,e){return function(t,e,n){return et==e&&nt==n?ot:(et=e,nt=n,ot="up"==n||"down"==n?function(t,e,n){let o=e.selection,i="up"==n?o.$from:o.$to;return X(t,e,(()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let o=Q(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;ti.top+1&&("up"==n?o.top-i.top>2*(i.bottom-o.top):i.bottom-o.bottom>2*(o.bottom-i.top)))return!1}}return!0}))}(t,e,n):function(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let i=o.parentOffset,r=!i,s=i==o.parent.content.size,a=t.domSelection();return tt.test(o.parent.textContent)&&a.modify?X(t,e,(()=>{let{focusNode:e,focusOffset:i,anchorNode:r,anchorOffset:s}=t.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:d,focusOffset:u}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&i==u;try{a.collapse(r,s),e&&(e!=r||i!=s)&&a.extend&&a.extend(e,i)}catch(t){}return null!=l&&(a.caretBidiLevel=l),h})):"left"==n||"backward"==n?r:s}(t,e,n))}(this,e||this.state,t)}pasteHTML(t,e){return Te(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Te(this,t,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],We(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){he(t,e)||!se[e.type]||!t.editable&&e.type in ae||se[e.type](t,e)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return N&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function(t){let e;function n(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let o=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,r,s)&&([o,i,r,s]=[r,s,o,i]),{anchorNode:o,anchorOffset:i,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function cn(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))})),e.translate||(e.translate="no"),[Re.node(0,t.state.doc.content.size,e)]}function dn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Re.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function un(t){return!t.someProp("editable",(e=>!1===e(t.state)))}function hn(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function pn(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}}}]); \ No newline at end of file diff --git a/7195.aaac9005caa42fa4f475.js b/7195.aaac9005caa42fa4f475.js deleted file mode 100644 index 9bda058d6..000000000 --- a/7195.aaac9005caa42fa4f475.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7195],{84219:(t,e,n)=>{n.d(e,{h:()=>A});var o=n(74788),i=n(42600),r=n(1065),s=n(75747),a=n(16331),l=n(28986),c=n(99036),d=n(24751),u=n(65266),h=n(12057),p=n(71753),f=n(21032),m=n(38190),g=n(22545),b=n(91283),v=n(75526),y=n(19042),w=n(4642),x=n(45642);function k(t,e){if(1&t&&(o.TgZ(0,"button",7),o._uU(1),o.qZA()),2&t){const t=e.$implicit;o.Q6J("value",t),o.xp6(1),o.hij(" ",t," ")}}function C(t,e){if(1&t&&(o.TgZ(0,"tui-data-list",5),o.YNc(1,k,2,2,"button",6),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngForOf",t.modes)}}function M(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-primitive-textfield",8),o.NdJ("valueChange",(function(e){return o.CHM(t),o.oxw().onHexChange(e)})),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("maskito",t.hexMask)("tuiTextfieldLabelOutside",!0)("value",t.hex)}}function S(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(e,n.color[1],n.color[2],n.color[3])})),o.qZA(),o.TgZ(1,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(n.color[0],e,n.color[2],n.color[3])})),o.qZA(),o.TgZ(2,"tui-input-number",9),o.NdJ("ngModelChange",(function(e){o.CHM(t);const n=o.oxw();return n.onRgbChange(n.color[0],n.color[1],e,n.color[3])})),o.qZA()}if(2&t){const t=o.oxw();o.Q6J("max",255)("min",0)("ngModel",t.color[0])("tuiTextfieldLabelOutside",!0),o.xp6(1),o.Q6J("max",255)("min",0)("ngModel",t.color[1])("tuiTextfieldLabelOutside",!0),o.xp6(1),o.Q6J("max",255)("min",0)("ngModel",t.color[2])("tuiTextfieldLabelOutside",!0)}}let A=(()=>{class t{constructor(){this.color=[0,0,0,1],this.colorChange=new o.vpe,this.hexMask={mask:new RegExp("^[A-F\\d]{0,6}$","gi")},this.modes=["HEX","RGB"],this.mode=this.modes[0]}get isHex(){return this.mode===this.modes[0]}get hex(){return(0,i.WSX)(this.color[0],this.color[1],this.color[2]).replace("#","")}get opacity(){return Math.round(100*this.color[3])}onHexChange(t){if(6!==t.length)return;const e=(0,i.ROF)(t);this.updateColor([e[0],e[1],e[2],this.color[3]])}onRgbChange(...t){this.updateColor(t)}updateColor(t){this.color=t,this.colorChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-color-edit"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:6,vars:8,consts:[["tuiDropdownAlign","left","tuiDropdownLimitWidth","min","tuiTextfieldSize","m",1,"t-select","tui-group__auto-width-item",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],["size","s",4,"tuiDataList"],["tuiTextfieldSize","m","tuiValueAccessor","",3,"maskito","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf","ngIfElse"],["rgb",""],["decimal","never","tuiTextfieldPostfix","%","tuiTextfieldSize","m",1,"t-opacity","tui-group__auto-width-item",3,"max","min","ngModel","tuiTextfieldLabelOutside","ngModelChange"],["size","s"],["tuiOption","",3,"value",4,"ngFor","ngForOf"],["tuiOption","",3,"value"],["tuiTextfieldSize","m","tuiValueAccessor","",3,"maskito","tuiTextfieldLabelOutside","value","valueChange"],["decimal","never","tuiTextfieldSize","m",1,"t-rgb",3,"max","min","ngModel","tuiTextfieldLabelOutside","ngModelChange"]],template:function(t,e){if(1&t&&(o.TgZ(0,"tui-select",0),o.NdJ("ngModelChange",(function(t){return e.mode=t})),o.YNc(1,C,2,1,"tui-data-list",1),o.qZA(),o.YNc(2,M,1,3,"tui-primitive-textfield",2),o.YNc(3,S,3,12,"ng-template",null,3,o.W1O),o.TgZ(5,"tui-input-number",4),o.NdJ("ngModelChange",(function(t){return e.onRgbChange(e.color[0],e.color[1],e.color[2],t/100)})),o.qZA()),2&t){const t=o.MAs(4);o.Q6J("tuiTextfieldLabelOutside",!0)("ngModel",e.mode),o.xp6(2),o.Q6J("ngIf",e.isHex)("ngIfElse",t),o.xp6(3),o.Q6J("max",100)("min",0)("ngModel",e.opacity)("tuiTextfieldLabelOutside",!0)}},directives:[r.u,s.O,a.Ek,l.s,c.x,d.JJ,d.On,u.g,h.O5,p.q,f.g,m.T,g.q,h.sg,b.v,v.y,y.B,w.n,x.ro],styles:["[_nghost-%COMP%]{display:flex}.t-select[_ngcontent-%COMP%]{width:5.875rem}.t-opacity[_ngcontent-%COMP%]{width:4.275rem}.t-rgb[_ngcontent-%COMP%], .t-opacity[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},22540:(t,e,n)=>{n.d(e,{$:()=>c});var o=n(97582),i=n(74788),r=n(91211),s=n(42600),a=n(97398),l=n(19157);class c{constructor(t){this.sanitizer=t,this.colorChange=new i.vpe,this.point=[0,1],this.hue=0,this.opacity=1}set color(t){if(this.currentColor.every(((e,n)=>e===t[n]))&&t[3]===this.opacity)return;const[e,n,o]=(0,s.bDt)(t[0],t[1],t[2]);this.opacity=t[3],this.hue=e/360,this.point=[n,1-o/255]}get currentColor(){return this.getCurrentColor(this.hue,this.point)}get base(){return`rgb(${(0,s.qZG)(360*this.hue,1,255)})`}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to right, rgba(${this.currentColor.join(",")}, 0), rgb(${this.currentColor.join(",")}))`)}onPointChange(t){this.point=t,this.updateColor()}onHueChange(t){this.hue=t,this.updateColor()}onOpacityChange(t){this.opacity=(0,s.FGw)(t,2),this.updateColor()}getCurrentColor(t,e){return(0,s.qZG)(360*t,e[0],255*(1-e[1]))}updateColor(){this.colorChange.emit([...this.currentColor,this.opacity])}}c.ɵfac=function(t){return new(t||c)(i.Y36(r.H7))},c.ɵcmp=i.Xpm({type:c,selectors:[["tui-color-picker"]],inputs:{color:"color"},outputs:{colorChange:"colorChange"},decls:5,vars:7,consts:[[1,"t-flat",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_hue"],[1,"t-hue",3,"value","valueChange"],[1,"t-wrapper","t-wrapper_opacity"],[1,"t-opacity",3,"value","valueChange"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-flat-picker",0),i.NdJ("valueChange",(function(t){return e.onPointChange(t)})),i.qZA(),i.TgZ(1,"div",1),i.TgZ(2,"tui-linear-picker",2),i.NdJ("valueChange",(function(t){return e.onHueChange(t)})),i.qZA(),i.qZA(),i.TgZ(3,"div",3),i.TgZ(4,"tui-linear-picker",4),i.NdJ("valueChange",(function(t){return e.onOpacityChange(t)})),i.qZA(),i.qZA()),2&t&&(i.Udp("background-color",e.base),i.Q6J("value",e.point),i.xp6(2),i.Q6J("value",e.hue),i.xp6(1),i.Udp("background",e.gradient),i.xp6(1),i.Q6J("value",e.opacity))},directives:[a.J,l.P],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block}.t-flat[_ngcontent-%COMP%]{height:14rem;background:linear-gradient(rgba(0,0,0,0),#000000),linear-gradient(to right,#ffffff,rgba(255,255,255,0));margin-bottom:.25rem;overflow:hidden}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1rem 1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper_hue[_ngcontent-%COMP%]{background:#ff0000}.t-wrapper_opacity[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hue[_ngcontent-%COMP%]{background:linear-gradient(to right,#ff0000,#ffff00,#00ff00,#00ffff,#0000ff,#ff00ff,#ff0000);border-radius:inherit;margin:0 .5rem}.t-opacity[_ngcontent-%COMP%]{border-radius:inherit;margin:0 .5rem}'],changeDetection:0}),(0,o.gn)([s.UMq],c.prototype,"getCurrentColor",null)},58333:(t,e,n)=>{n.d(e,{s:()=>R});var o=n(97582),i=n(74788),r=n(91211),s=n(42600),a=n(40401),l=n(63097),c=n(98778),d=n(18289),u=n(12057),h=n(22540),p=n(77825),f=n(22545),m=n(91283),g=n(27626),b=n(44099),v=n(13938),y=n(10406),w=n(63790),x=n(51928),k=n(84219),C=n(20690),M=n(1706);function S(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){const t=i.oxw(),e=i.MAs(1);i.ekj("t-arrow_rotated",e.open),i.Q6J("src",t.options.icons.colorSelectorDropdownChevron)}}function A(t,e){if(1&t&&i._UZ(0,"tui-svg",14),2&t){const t=i.oxw(3);i.Q6J("src",t.options.icons.colorSelectorDropdownCheck)}}function O(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",12),i.NdJ("click",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.enter.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)}))("keydown.space.prevent",(function(){const e=i.CHM(t).$implicit,n=i.oxw(2),o=i.MAs(1);return n.onModeSelect(e,o)})),i._uU(1),i.YNc(2,A,1,1,"tui-svg",13),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.uIk("aria-checked",n.isModeActive(t)),i.xp6(1),i.hij(" ",t," "),i.xp6(1),i.Q6J("ngIf",n.isModeActive(t))}}function T(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",10),i.YNc(1,O,3,3,"button",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.modes)}}function N(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).onDirectionChange(e)})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(2);i.ekj("t-direction_active",n.isDirectionActive(t)),i.Q6J("icon",n.getIcon(t))("tuiHint",t)}}function E(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"hr",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-linear-multi-picker",17),i.NdJ("indexChange",(function(e){return i.CHM(t),i.oxw().onIndexChange(e)}))("valueChange",(function(e){return i.CHM(t),i.oxw().onStopsChange(e)})),i.qZA(),i.qZA(),i.TgZ(4,"div",18),i.YNc(5,N,1,4,"button",19),i.qZA(),i.BQk()}if(2&t){const t=i.oxw();i.xp6(2),i.Udp("background",t.gradient),i.xp6(1),i.Q6J("value",t.stopsKeys),i.xp6(2),i.Q6J("ngForOf",t.buttons)}}function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-edit",21),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().onColorChange(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("color",t.color)}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-palette",22),i.NdJ("selectedColor",(function(e){return i.CHM(t),i.oxw().onPalettePick(e)})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("colors",t.palette)}}const P=[0,0,0,0],H=[[0,[0,0,0,1]],[1,[255,255,255,1]]],L={"to top right":"tuiIconArrowUpRight","to right":"tuiIconArrowRight","to bottom right":"tuiIconArrowDownRight","to bottom":"tuiIconArrowDown","to bottom left":"tuiIconArrowDownLeft","to left":"tuiIconArrowLeft","to top left":"tuiIconArrowUpLeft","to top":"tuiIconArrowUp"};class R{constructor(t,e,n){this.options=t,this.sanitizer=e,this.modes=n,this.stops=new Map(H),this.currentStop=0,this.direction="to bottom",this.colors=new Map,this.colorChange=new i.vpe,this.color=[0,0,0,1],this.currentMode=this.modes[0],this.buttons=["to top right","to right","to bottom right","to bottom","to bottom left","to left","to top left","to top"]}set colorSetter(t){this.parse(t)}get palette(){return this.filterPalette(this.colors,this.isGradient)}get stopsKeys(){return this.getStopsKeys(this.stops)}get currentColor(){return this.isGradient?this.getStop(this.currentStop):this.color}get gradient(){return this.sanitizer.bypassSecurityTrustStyle(this.getGradient("to right"))}get isGradient(){return this.currentMode===this.modes[1]}getIcon(t){return L[t]}isModeActive(t){return this.currentMode===t}isDirectionActive(t){return this.direction===t}onPalettePick(t){this.updateColor(t)}onDirectionChange(t){this.direction=t,this.updateColor(this.getGradient(t))}onModeSelect(t,e){this.currentMode=t,e.open=!1,this.updateColor(t===this.modes[0]?`rgba(${this.color.join(", ")})`:this.getGradient(this.direction))}onIndexChange(t){this.currentStop=this.stopsKeys[t]}onColorChange(t){this.isGradient?(this.stops.set(this.currentStop,t),this.updateColor(this.getGradient(this.direction))):this.updateColor(`rgba(${t.join(", ")})`)}onStopsChange(t){const e=this.stopsKeys.find((e=>!t.includes(e))),n=t.find((t=>!this.stopsKeys.includes(t)));void 0===e&&void 0!==n&&this.addStop(n),void 0!==e&&void 0===n&&this.removeStop(e),void 0!==e&&void 0!==n&&this.replaceStop(e,n),this.updateColor(this.getGradient(this.direction))}getStopsKeys(t){return Array.from(t.keys())}filterPalette(t,e){const n=new Map(t);return n.forEach(((t,o)=>{(t.startsWith("linear-gradient")&&!e||!t.startsWith("linear-gradient")&&e)&&n.delete(o)})),n}updateColor(t){this.colorChange.emit(t)}getGradient(t){return`linear-gradient(${t}, ${[...this.stopsKeys].sort(s.A2j).map((t=>`rgba(${this.getStop(t).join(", ")}) ${100*t}%`)).join(", ")})`}getStop(t){return this.stops.get(t)||P}addStop(t){const e=this.stopsKeys.reduce(((e,n)=>Math.abs(n-t)o===t?[e,n]:[o,this.getStop(o)])))}parse(t){t.startsWith("linear-gradient")?this.parseGradient(t):this.parseColor(t)}parseGradient(t){if(t===this.getGradient(this.direction))return;const e=(0,l._N)((0,l.U5)(t));this.currentMode=this.modes[1],this.direction=e.side,this.currentStop=0,this.stops=new Map(e.stops.length?e.stops.map((({color:t,position:e})=>[parseFloat(e)/100,(0,s.MpC)(t)])):H)}parseColor(t){this.currentMode=this.modes[0],this.currentStop=0,this.color=(0,s.MpC)(t)}}R.ɵfac=function(t){return new(t||R)(i.Y36(a.mJ),i.Y36(r.H7),i.Y36(a.dj))},R.ɵcmp=i.Xpm({type:R,selectors:[["tui-color-selector"]],inputs:{colors:"colors",colorSetter:["color","colorSetter"]},outputs:{colorChange:"colorChange"},decls:12,vars:7,consts:[[1,"t-select",3,"content"],["dropdown",""],["appearance","","size","s","tuiButton","","type","button",3,"iconRight"],["arrow",""],["menu",""],[4,"ngIf"],[3,"color","colorChange"],["tuiGroup","","class","t-edit",3,"color","colorChange",4,"ngIf"],["class","t-palette",3,"colors","selectedColor",4,"ngIf"],[1,"t-arrow",3,"src"],["role","menu","size","s",1,"t-menu"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["role","menuitemradio","tuiOption","",3,"click","keydown.enter.prevent","keydown.space.prevent"],["class","t-checkmark",3,"src",4,"ngIf"],[1,"t-checkmark",3,"src"],[1,"t-hr"],[1,"t-wrapper"],[1,"t-gradient",3,"value","indexChange","valueChange"],[1,"t-buttons"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button","class","t-direction",3,"t-direction_active","icon","tuiHint","click",4,"ngFor","ngForOf"],["appearance","","size","xs","tuiHintDescribe","","tuiIconButton","","type","button",1,"t-direction",3,"icon","tuiHint","click"],["tuiGroup","",1,"t-edit",3,"color","colorChange"],[1,"t-palette",3,"colors","selectedColor"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-hosted-dropdown",0,1),i.TgZ(2,"button",2),i._uU(3),i.qZA(),i.YNc(4,S,1,3,"ng-template",null,3,i.W1O),i.YNc(6,T,2,1,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(8,E,6,4,"ng-container",5),i.TgZ(9,"tui-color-picker",6),i.NdJ("colorChange",(function(t){return e.onColorChange(t)})),i.qZA(),i.YNc(10,I,1,1,"tui-color-edit",7),i.YNc(11,D,1,1,"tui-palette",8)),2&t){const t=i.MAs(5),n=i.MAs(7);i.Q6J("content",n),i.xp6(2),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.currentMode," "),i.xp6(5),i.Q6J("ngIf",e.isGradient),i.xp6(1),i.Q6J("color",e.currentColor),i.xp6(1),i.Q6J("ngIf",!e.isGradient),i.xp6(1),i.Q6J("ngIf",e.palette.size)}},directives:[c.o,d.v,u.O5,h.$,p.P,f.q,u.sg,m.v,g.e,b.$,v.D,y.x,w.t,x.D,k.h,C.g,M.R],styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;width:22.6rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:1.25rem;border-radius:.5rem}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-shadow:inset 0 0 0 1px #00000014;pointer-events:none;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";z-index:-1;background-image:linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03)),linear-gradient(45deg,var(--tui-base-03) 25%,transparent 25%,transparent 75%,var(--tui-base-03) 75%,var(--tui-base-03));background-size:.375rem .375rem;background-position:0 0,.1875rem .1875rem;border-radius:inherit}.t-hr[_ngcontent-%COMP%]{height:1px;margin:0 0 0 -1px;border:none;background:var(--tui-base-03)}.t-gradient[_ngcontent-%COMP%]{margin:0 .5rem;border-radius:inherit}.t-select[_ngcontent-%COMP%]{margin:.75rem .5rem}.t-arrow[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-arrow_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-menu[_ngcontent-%COMP%]{width:11.25rem}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}.t-buttons[_ngcontent-%COMP%]{display:flex;padding:0 .75rem 1.25rem}.t-direction[_ngcontent-%COMP%]{color:var(--tui-text-02);margin:0 .375rem}.t-direction[_ngcontent-%COMP%]:hover, .t-direction_active[_ngcontent-%COMP%]{color:var(--tui-text-01);background:var(--tui-secondary-hover)}.t-edit[_ngcontent-%COMP%]{margin:1.25rem}.t-palette[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:inset 0 1px var(--tui-base-03)}'],changeDetection:0}),(0,o.gn)([s.UMq],R.prototype,"getStopsKeys",null),(0,o.gn)([s.UMq],R.prototype,"filterPalette",null)},97398:(t,e,n)=>{n.d(e,{J:()=>s});var o=n(74788),i=n(42600),r=n(87901);let s=(()=>{class t{constructor(t){this.value=[0,0],this.valueChange=new o.vpe,t.subscribe((t=>{this.value=t,this.valueChange.emit([t[0],t[1]])}))}get left(){return 100*this.value[0]}get top(){return 100*this.value[1]}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-flat-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:4,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")("top",e.top,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:-.5rem 0 0 -.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},83950:(t,e,n)=>{n.d(e,{H9:()=>h,wl:()=>g,VM:()=>m}),n(84219);var o=n(12057),i=n(24751),r=n(45642),s=n(43232),a=n(6667),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,i.u5,r.U5,a.SCC,a.Jyo,s.KWI,s.cnw,s.dpK,s.pcV,a._Hh]]}),t})();n(22540);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,d,u]]}),t})();n(58333);var p=n(42600);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez]]}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.goS]]}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,s.fNO,s.jhF,h,f,s.goS,s.EIu,s.pcV,p.Ah6,c,s.n6B,m]]}),t})();n(97398),n(27626),n(19157),n(1706)},27626:(t,e,n)=>{n.d(e,{e:()=>l});var o=n(74788),i=n(42600),r=n(87901),s=n(12057);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",1),o.NdJ("dblclick",(function(){const e=o.CHM(t).index;return o.oxw().onClick(e)}))("mousedown",(function(){const e=o.CHM(t).index;return o.oxw().onMouseDown(e)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("left",100*t,"%")}}let l=(()=>{class t{constructor(t){this.value=[0,1],this.valueChange=new o.vpe,this.indexChange=new o.vpe,this.index=NaN,t.subscribe((([t])=>{this.onPicker(t)}))}onMouseUp(){this.index=NaN}onMouseDown(t){this.updateIndex(t)}onClick(t){this.value.length>2&&this.updateValue(this.value.filter(((e,n)=>n!==t)))}onPicker(t){Number.isNaN(this.index)&&(this.updateIndex(this.value.length),this.value=[...this.value,0]),this.value.some(((e,n)=>e===t&&n!==this.index))||this.updateValue(this.value.map(((e,n)=>n===this.index?t:e)))}updateIndex(t){this.index=t,this.indexChange.emit(t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-multi-picker"]],hostBindings:function(t,e){1&t&&o.NdJ("mouseup",(function(){return e.onMouseUp()}),!1,o.evT)},inputs:{value:"value"},outputs:{valueChange:"valueChange",indexChange:"indexChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:1,consts:[["class","t-circle",3,"left","dblclick","mousedown",4,"ngFor","ngForOf"],[1,"t-circle",3,"dblclick","mousedown"]],template:function(t,e){1&t&&o.YNc(0,a,1,2,"div",0),2&t&&o.Q6J("ngForOf",e.value)},directives:[s.sg],styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},19157:(t,e,n)=>{n.d(e,{P:()=>s});var o=n(74788),i=n(42600),r=n(87901);let s=(()=>{class t{constructor(t){this.value=0,this.valueChange=new o.vpe,t.subscribe((([t])=>{this.value=t,this.valueChange.emit(t)}))}get left(){return 100*this.value}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.i))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-linear-picker"]],inputs:{value:"value"},outputs:{valueChange:"valueChange"},features:[o._Bn([i.a31,r.i])],decls:1,vars:2,consts:[[1,"t-circle"]],template:function(t,e){1&t&&o._UZ(0,"div",0),2&t&&o.Udp("left",e.left,"%")},styles:["[_nghost-%COMP%]{position:relative;display:block;height:1rem;box-sizing:border-box}.t-circle[_ngcontent-%COMP%]{position:absolute;width:1rem;height:1rem;border-radius:100%;margin:0 -.5rem;box-shadow:inset 0 0 0 2px var(--tui-base-01),0 0 0 1px var(--tui-base-03)}"],changeDetection:0}),t})()},1706:(t,e,n)=>{n.d(e,{R:()=>u});var o=n(74788),i=n(12057),r=n(13938),s=n(10406),a=n(63790),l=n(51928),c=n(44099);function d(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",1),o.NdJ("click",(function(){const e=o.CHM(t).$implicit;return o.oxw().selectedColor.emit(e.value)})),o.qZA()}if(2&t){const t=e.$implicit;o.Udp("background",t.value),o.Q6J("id",t.key)("tuiHint",t.key)("tuiHintDescribe",t.key)}}let u=(()=>{class t{constructor(){this.colors=new Map,this.selectedColor=new o.vpe,this.originalOrder=(t,e)=>0}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-palette"]],inputs:{colors:"colors"},outputs:{selectedColor:"selectedColor"},decls:2,vars:4,consts:[["type","button","class","t-button",3,"id","background","tuiHint","tuiHintDescribe","click",4,"ngFor","ngForOf"],["type","button",1,"t-button",3,"id","tuiHint","tuiHintDescribe","click"]],template:function(t,e){1&t&&(o.YNc(0,d,1,5,"button",0),o.ALo(1,"keyvalue")),2&t&&o.Q6J("ngForOf",o.xi3(1,1,e.colors,e.originalOrder))},directives:[i.sg,r.D,s.x,a.t,l.D,c.$],pipes:[i.Nd],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap;padding:.875rem}.t-button[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;width:1.5625rem;height:1.5625rem;box-sizing:border-box;margin:.375rem;border-radius:var(--tui-radius-m);border:1px solid rgba(0,0,0,.08)}"],changeDetection:0}),t})()},10553:(t,e,n)=>{n.d(e,{l:()=>T});var o=n(12057),i=n(74788),r=n(42600),s=n(69725),a=n(5915),l=n(40401),c=n(45400),d=n(36866),u=n(30528),h=n(24751),p=n(77825),f=n(18289),m=n(73460),g=n(96281),b=n(65538);let v=(()=>{class t{transform(t,e,n){return"#"===e?t.filter((t=>t!==n)):t}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=i.Yjl({name:"tuiFilterAnchors",type:t,pure:!0}),t})();function y(t,e){1&t&&(i.ynx(0),i._uU(1,"Edit anchor"),i.BQk())}function w(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"Link to anchor"),i.qZA())}function x(t,e){1&t&&(i.TgZ(0,"span"),i._uU(1,"URL"),i.qZA())}function k(t,e){if(1&t&&(i.YNc(0,w,2,0,"span",1),i.YNc(1,x,2,0,"ng-template",null,12,i.W1O)),2&t){const t=i.MAs(2),e=i.oxw(2);i.Q6J("ngIf",e.prefixIsHashMode)("ngIfElse",t)}}function C(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.ngIf,n=i.oxw(2);i.xp6(1),i.hij(" ",n.prefixIsHashMode?t.anchorExample:t.urlExample," ")}}function M(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"label",4),i.TgZ(2,"div",5),i.YNc(3,y,2,0,"ng-container",1),i.YNc(4,k,3,2,"ng-template",null,6,i.W1O),i.qZA(),i.TgZ(6,"div",7),i.TgZ(7,"div",8),i._uU(8),i.qZA(),i.TgZ(9,"tui-input-inline",9),i.NdJ("ngModelChange",(function(e){return i.CHM(t),i.oxw().url=e}))("input",(function(e){let n;return i.CHM(t),i.oxw().onChange(null==(n=e.target)?null:n.value)}))("keydown.backspace",(function(){return i.CHM(t),i.oxw().onBackspace()}))("keydown.prevent.enter",(function(){return i.CHM(t),i.oxw().onSave()})),i.YNc(10,C,2,1,"ng-container",3),i.ALo(11,"async"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"tui-svg",10),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onClear()})),i.qZA(),i.TgZ(13,"button",11),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onSave()})),i.qZA(),i.BQk()}if(2&t){const t=i.MAs(5),e=i.oxw();i.xp6(3),i.Q6J("ngIf",e.anchorMode)("ngIfElse",t),i.xp6(5),i.Oqu(e.prefix),i.xp6(1),i.ekj("t-input_filled",e.hasUrl),i.Q6J("ngModel",e.url),i.xp6(1),i.Q6J("ngIf",i.lcZ(11,11,e.texts$)),i.xp6(2),i.ekj("t-cleaner_hidden",!e.hasUrl),i.Q6J("src",e.options.icons.popupLinkRemove),i.xp6(1),i.Q6J("icon",e.options.icons.popupLinkSave)}}function S(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",13),i._uU(1),i.ALo(2,"tuiShortUrl"),i.qZA(),i.TgZ(3,"button",14),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onEdit()})),i.qZA(),i.TgZ(4,"button",15),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRemove()})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("href",t.href,i.LSH)("icon",t.prefixIsHashMode?"tuiIconHash":"tuiIconExternalLink"),i.xp6(1),i.hij(" ",i.lcZ(2,5,t.url)," "),i.xp6(2),i.Q6J("icon",t.options.icons.popupPreviewLinkEdit),i.xp6(1),i.Q6J("icon",t.options.icons.popupPreviewLinkClear)}}function A(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",19),i.NdJ("click",(function(){const e=i.CHM(t).$implicit;return i.oxw(2).setAnchor(e)})),i._uU(1),i.qZA()}if(2&t){const t=e.$implicit;i.xp6(1),i.hij(" #",t," ")}}function O(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"hr",16),i.TgZ(2,"tui-scrollbar"),i.TgZ(3,"div",17),i.YNc(4,A,2,1,"button",18),i.ALo(5,"tuiFilterAnchors"),i.qZA(),i.qZA(),i.BQk()),2&t){const t=i.oxw();i.xp6(4),i.Q6J("ngForOf",i.Dn7(5,1,t.anchorIds,t.prefix,t.url))}}let T=(()=>{class t{constructor(t,e,n,o){this.doc=t,this.texts$=e,this.editor=n,this.options=o,this.isOnlyAnchorMode=this.detectAnchorMode(),this.addLink=new i.vpe,this.removeLink=new i.vpe,this.url=this.getHrefOrAnchorId(),this.edit=!this.url,this.prefix=this.makeDefaultPrefix(),this.anchorIds=this.getAllAnchorsIds()}get defaultProtocol(){var t,e;return null!==(e=null===(t=this.options.linkOptions)||void 0===t?void 0:t.protocol)&&void 0!==e?e:s.Ci}set anchorMode(t){this.isOnlyAnchorMode=t,this.prefix=t?s._s:this.makeDefaultPrefix()}get anchorMode(){return this.isOnlyAnchorMode}get prefixIsHashMode(){return this.prefix===s._s}get hasUrl(){return!!this.url}get href(){return`${this.prefix}${this.url}`}get showAnchorsList(){return!this.anchorMode&&this.edit&&this.anchorIds.length>0}get isViewMode(){return!this.edit}onSelectionChange(){this.isViewMode&&(this.url=this.getHrefOrAnchorId(),this.anchorMode=this.detectAnchorMode())}onMouseDown(t){(0,r.veZ)(t.target)&&!t.target.matches("a, button, input")&&t.preventDefault()}setAnchor(t){this.url=t,this.changePrefix(!0)}changePrefix(t){this.prefix=t?s._s:this.defaultProtocol}onSave(){this.url?this.addLink.emit(this.href):this.removeLink.emit()}onBackspace(){this.url||(this.prefix=this.isOnlyAnchorMode?s._s:this.defaultProtocol)}onEdit(){this.edit=!0}onRemove(){this.removeLink.emit()}onChange(t){this.url=this.removePrefix(t)}onClear(){this.url=""}makeDefaultPrefix(){var t,e;const n=this.getAnchorElement(),o=(0,c.$)(null!==(t=null==n?void 0:n.getAttribute("href"))&&void 0!==t?t:"").prefix||this.defaultProtocol;return n&&(!n.getAttribute("href")&&n.getAttribute("id")||(null===(e=n.getAttribute("href"))||void 0===e?void 0:e.startsWith(s._s)))?s._s:o}detectAnchorMode(){const t=this.getAnchorElement();return!(null==t?void 0:t.href)&&!!(null==t?void 0:t.getAttribute("id"))}getFocusedParentElement(){var t,e;return(null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentElement)||null}getAnchorElement(){var t,e,n;const o=this.getFocusedParentElement();return null!==(n=null!==(t=null==o?void 0:o.closest("a"))&&void 0!==t?t:null===(e=null==o?void 0:o.querySelector("img"))||void 0===e?void 0:e.closest("a"))&&void 0!==n?n:null}getHrefOrAnchorId(){const t=this.getAnchorElement();return t?this.removePrefix(t.getAttribute("href")||t.getAttribute("id")||""):this.url}removePrefix(t){var e;const n=t.startsWith(s._s)||this.prefix===s._s?t:`${null!==(e=this.prefix)&&void 0!==e?e:""}${t}`,{prefix:o,path:i}=(0,c.$)(n),r=this.isOnlyAnchorMode||o===s._s||""===o&&this.prefix===s._s;return this.prefix=r?s._s:""===o?this.defaultProtocol:o,i}getAllAnchorsIds(){var t;const e=Array.from(null!==(t=this.editor.getOriginTiptapEditor().view.dom.querySelectorAll('[data-type="jump-anchor"]'))&&void 0!==t?t:[]);return Array.from(e).map((t=>t.getAttribute("id")||"")).filter(Boolean)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.K0),i.Y36(l.b$),i.Y36(a.$3),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-edit-link"]],hostBindings:function(t,e){1&t&&i.NdJ("selectionchange",(function(){return e.onSelectionChange()}),!1,i.evT)("mousedown",(function(t){return e.onMouseDown(t)}))},inputs:{anchorMode:"anchorMode"},outputs:{addLink:"addLink",removeLink:"removeLink"},decls:5,vars:3,consts:[[1,"t-edit-link",3,"mousedown"],[4,"ngIf","ngIfElse"],["view",""],[4,"ngIf"],[1,"t-label"],[1,"t-label-properties"],["fullOptions",""],[1,"t-url"],[1,"t-prefix"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","input","keydown.backspace","keydown.prevent.enter"],[1,"t-cleaner",3,"src","click"],["appearance","icon","shape","rounded","size","s","title","Insert link","tuiIconButton","","type","button",1,"t-button",3,"icon","click"],["urlTitle",""],["iconAlign","left","target","_blank","tuiLink","",1,"t-link",3,"href","icon"],["appearance","icon","shape","rounded","size","s","title","Change link","tuiIconButton","","type","button",1,"t-button","t-edit-button",3,"icon","click"],["appearance","icon","automation-id","toolbar__popup-link-clear-button","shape","rounded","size","s","title","Remove link","tuiIconButton","","type","button",1,"t-button",3,"icon","click"],[1,"t-hr"],[1,"t-anchor-list"],["type","button","class","t-anchor",3,"click",4,"ngFor","ngForOf"],["type","button",1,"t-anchor",3,"click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"div",0),i.NdJ("mousedown",(function(t){return t.stopImmediatePropagation()})),i.YNc(1,M,14,13,"ng-container",1),i.YNc(2,S,5,7,"ng-template",null,2,i.W1O),i.qZA(),i.YNc(4,O,6,5,"ng-container",3)),2&t){const t=i.MAs(3);i.xp6(1),i.Q6J("ngIf",e.edit)("ngIfElse",t),i.xp6(3),i.Q6J("ngIf",e.showAnchorsList)}},directives:[o.O5,d.l,u.k,h.JJ,h.On,p.P,f.v,m.V,g.I,o.sg],pipes:[o.Ov,b.X,v],styles:["[_nghost-%COMP%]{display:block;min-width:18.75rem}.t-edit-link[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{font:var(--tui-font-text-s);height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-label-properties[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:8.375rem;justify-content:space-between}.t-property_inactive[_ngcontent-%COMP%]{opacity:.5}.t-url[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-text-m);color:var(--tui-text-02)}.t-input[_ngcontent-%COMP%]{flex:1}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-button[_ngcontent-%COMP%]{width:2rem;height:2rem;margin:0 .25rem;transition:background .2s}.t-edit-button[_ngcontent-%COMP%]{margin-left:auto}.t-link[_ngcontent-%COMP%]{margin:0 1rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.t-cleaner[_ngcontent-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-base-06);cursor:pointer;margin-left:auto}.t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-cleaner_hidden[_ngcontent-%COMP%]{visibility:hidden}.t-anchor-list[_ngcontent-%COMP%]{display:flex;max-height:12.5rem;flex-direction:column}.t-anchor[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;min-height:2.75rem;padding:.375rem .5rem;margin:.125rem .5rem;border-radius:var(--tui-radius-m);text-align:left}.t-anchor[_ngcontent-%COMP%]:hover{background:var(--tui-base-02);cursor:pointer}"],changeDetection:0}),t})()},1884:(t,e,n)=>{n.d(e,{Fu:()=>c}),n(10553);var o=n(12057),i=n(24751),r=n(42600),s=n(43232),a=n(6667),l=n(74788);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[o.ez,i.u5,r.Q7V,s.fNO,s.EIu,s.jzK,a.z$l,a.YMv,s.Jyu]]}),t})();n(65538),n(45400)},65538:(t,e,n)=>{n.d(e,{X:()=>i});var o=n(74788);let i=(()=>{class t{transform(t){return t.length<60?t:`${t.slice(0,Math.max(0,40))}...${t.slice(t.length-10)}`}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=o.Yjl({name:"tuiShortUrl",type:t,pure:!0}),t})()},45400:(t,e,n)=>{n.d(e,{$:()=>a});var o=n(42600),i=n(69725);function r(t=""){var e;const n=null!==(e=t.indexOf(i.jU))&&void 0!==e?e:-1,[o,s]=n>-1?[t.slice(0,n+i.jU.length),t.slice(n+i.jU.length,t.length)]:["",t],a=[o,s].filter(Boolean);return(null==s?void 0:s.includes("://"))&&a.length>1?r(s):a}function s(t=""){const[e,n]=t.split(/:/).slice(-2).filter(Boolean);return e&&n&&!(0,o.lj0)(t)?[`${e}:`,n]:[]}function a(t=""){if(t.startsWith(i._s))return{prefix:i._s,path:t.slice(1)};const[e="",n=""]=t.includes(i.jU)?r(t):s(t);if(n.includes(i.DN)){const[t,e]=s(n);if(t&&e)return{prefix:t,path:e}}return{prefix:e,path:""===e?t:n}}},22916:(t,e,n)=>{n.d(e,{V:()=>p});var o=n(74788),i=n(42600),r=n(76995),s=n(51703),a=n(12057);const l=function(){return[0,1]};function c(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("tuiSizeChange",(function(e){return o.CHM(t),o.oxw().sizeChange.emit(e)})),o.qZA()}2&t&&o.Q6J("tuiResizer",o.DdM(1,l))}const d=function(t){return[t,0]},u=function(){return[1,0]},h=["*"];let p=(()=>{class t{constructor(){this.autoHeight=!1,this.width=null,this.height=null,this.sizeChange=new o.vpe}get hostWidth(){return(0,i.dtH)(this.width)?(0,i.O9r)(this.width):this.width}get hostHeight(){return this.autoHeight?null:(0,i.dtH)(this.height)?(0,i.O9r)(this.height):this.height}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-editor-resizable"]],hostVars:4,hostBindings:function(t,e){2&t&&o.Udp("width",e.hostWidth)("height",e.hostHeight)},inputs:{autoHeight:"autoHeight",width:"width",height:"height"},outputs:{sizeChange:"sizeChange"},ngContentSelectors:h,decls:5,vars:8,consts:[["tuiResizeable","",1,"t-resizable"],[1,"t-handle","t-handle-left-side",3,"tuiResizer","tuiSizeChange"],["class","t-handle t-handle-bottom-side",3,"tuiResizer","tuiSizeChange",4,"ngIf"],[1,"t-handle","t-handle-right-side",3,"tuiResizer","tuiSizeChange"],[1,"t-handle","t-handle-bottom-side",3,"tuiResizer","tuiSizeChange"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.TgZ(2,"div",1),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.YNc(3,c,1,2,"div",2),o.TgZ(4,"div",3),o.NdJ("tuiSizeChange",(function(t){return e.sizeChange.emit(t)})),o.qZA(),o.qZA()),2&t&&(o.ekj("t-resizable-auto-height",e.autoHeight),o.xp6(2),o.Q6J("tuiResizer",o.VKq(5,d,-1)),o.xp6(1),o.Q6J("ngIf",!e.autoHeight),o.xp6(1),o.Q6J("tuiResizer",o.DdM(7,u)))},directives:[r.U,s.L,a.O5],styles:['[_nghost-%COMP%]{position:relative;display:inline-block;box-sizing:border-box}[_nghost-%COMP%] .t-resizable[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%] .t-resizable-auto-height[_ngcontent-%COMP%]{height:auto!important}[_nghost-%COMP%] iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}[_nghost-%COMP%]:hover .t-handle[_ngcontent-%COMP%]:after{opacity:1}.t-handle[_ngcontent-%COMP%]{position:absolute;top:0;display:flex;width:.75rem;cursor:col-resize;justify-content:center;align-items:center;height:100%}.t-handle[_ngcontent-%COMP%]:after{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";width:50%;height:33%;box-sizing:border-box;border-radius:var(--tui-radius-m);background:var(--tui-base-08);border:1px solid var(--tui-base-03);opacity:0}.t-handle-left-side[_ngcontent-%COMP%]{left:0}.t-handle-bottom-side[_ngcontent-%COMP%]{top:unset;bottom:.3125rem;height:.95rem;width:100%}.t-handle-right-side[_ngcontent-%COMP%]{right:0}'],changeDetection:0}),t})()},8274:(t,e,n)=>{n.d(e,{_3:()=>r,Sl:()=>l});var o=n(13704),i=n(74788);let r=(()=>{class t extends o.d{constructor(){super(...arguments),this.currentHeight=0,this.currentWidth=0}get attrs(){var t;return(null===(t=this.node)||void 0===t?void 0:t.attrs)||{src:""}}get width(){return this.currentWidth||this.attrs.width||null}get height(){return this.currentHeight||this.attrs.height||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})();n(22916);var s=n(12057),a=n(42600);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[s.ez,a.k54,a.gjW]]}),t})()},76690:(t,e,n)=>{n.d(e,{D:()=>c});var o=n(12057),i=n(74788),r=n(42600),s=n(43232),a=n(46561),l=n(40401);let c=(()=>{class t{constructor(t,e,n,o,i,r,s){this.el=t,this.renderer=e,this.sanitizer=n,this.tuiSanitizer=o,this.document=i,this.editor=r,this.options=s}set content(t){var e;this.renderer.setProperty(this.el.nativeElement,"innerHTML",this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,null!==(e=null==t?void 0:t.replace(/colwidth/g,"width"))&&void 0!==e?e:""):this.sanitizer.sanitize(i.q3G.HTML,null!=t?t:""))}click(t){var e,n;if(this.editor||!(0,r.veZ)(t.target))return;const o=(null===(n=null===(e=t.target)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.getAttribute("href"))||"";o.startsWith("#")&&(this.document.location.hash=o.replace("#",""),t.preventDefault())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.Tiy),i.Y36(s.hmb,8),i.Y36(o.K0),i.Y36(a.JU,8),i.Y36(l.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor-socket"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click",(function(t){return e.click(t)})),2&t&&i.ekj("tui-editor-socket",e.options.enableDefaultStyles)},inputs:{content:"content"},decls:0,vars:0,template:function(t,e){},styles:['.tui-editor-socket{display:block;margin:0;color:var(--tui-text-01);font:var(--tui-font-text-m)}.tui-editor-socket[tuiTiptapEditor]{overflow:hidden}.tui-editor-socket .ProseMirror{min-height:5.375rem;padding:.2rem 1rem;outline:none;white-space:pre-wrap}.tui-editor-socket .resize-cursor{cursor:ew-resize;cursor:col-resize}.tui-editor-socket h1,.tui-editor-socket h2,.tui-editor-socket h3,.tui-editor-socket h4,.tui-editor-socket h5,.tui-editor-socket h6{word-break:break-word;line-height:normal}.tui-editor-socket h1:first-child,.tui-editor-socket h2:first-child,.tui-editor-socket p:last-child{margin-bottom:0}.tui-editor-socket p:last-child,.tui-editor-socket pre:last-child{margin-bottom:0}.tui-editor-socket p:empty:after{content:" ";white-space:pre}.tui-editor-socket p:first-child{margin-top:0}.tui-editor-socket p{margin:1rem 0}.tui-editor-socket p>span{line-height:initial}.tui-editor-socket blockquote{margin:1.25rem 0 1.25rem 1.5rem;padding-left:1.0625rem;border-left:1px solid var(--tui-base-04)}.tui-editor-socket hr{border:none;border-top:1px solid var(--tui-base-03);margin:1rem 0}.tui-editor-socket mark{background:unset;color:inherit}.tui-editor-socket font[face="Courier New"]{display:inline-block;padding:.25rem .5rem;border-radius:.25rem;background-color:#ecf1f7;word-break:break-word}.tui-editor-socket a:not([data-type="jump-anchor"]){color:var(--tui-link);text-decoration:none;outline:none}.tui-editor-socket a:not([data-type="jump-anchor"]):hover{color:var(--tui-link-hover);text-decoration:underline}.tui-editor-socket a:not([data-type="jump-anchor"]):active{color:var(--tui-primary-active)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]{text-decoration:underline;-webkit-text-decoration-color:var(--tui-link);text-decoration-color:var(--tui-link)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:before{content:"#"}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:hover{color:var(--tui-link)}.tui-editor-socket .ProseMirror a:hover img[contenteditable=false]{cursor:pointer;outline:.25rem solid var(--tui-link)}.tui-editor-socket ul,.tui-editor-socket ol{list-style-type:none;margin:1rem 1rem 1rem 1.5rem;padding:0}.tui-editor-socket li{margin:.75rem 0}.tui-editor-socket li>p{display:inline;margin:0 auto;word-break:break-word}.tui-editor-socket ul li>p{display:block}.tui-editor-socket li:before{unicode-bidi:-webkit-isolate;unicode-bidi:isolate;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-transform:none;text-indent:0;text-align:start;text-align-last:start}.tui-editor-socket ul>li:before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:100%;margin:.5rem .875rem .0625rem -1.375rem;background-color:var(--tui-primary);vertical-align:top;box-sizing:border-box;float:left}.tui-editor-socket li ul>li:before{background:none;border:.125rem solid var(--tui-primary)}.tui-editor-socket li ul>li>ul>li:before{background:var(--tui-primary);border-radius:0;width:.375rem;height:.375rem}.tui-editor-socket ol{counter-reset:item}.tui-editor-socket ol>li:before{content:counters(item,".") ".";display:block;margin:0 .75rem 0 -1.5rem;counter-increment:item;color:var(--tui-base-05);vertical-align:top;float:left;white-space:nowrap}.tui-editor-socket._preview-image img{cursor:pointer}.tui-editor-socket .ProseMirror video,.tui-editor-socket .ProseMirror audio{pointer-events:none}.tui-editor-socket img.ProseMirror-selectednode{outline:.25rem solid var(--tui-primary-hover)}.tui-editor-socket .t-editor-placeholder:before{content:attr(data-placeholder);float:left;color:var(--tui-base-05);pointer-events:none;height:0}.tui-editor-socket table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden}.tui-editor-socket table .tableWrapper{overflow-x:auto}.tui-editor-socket .tableWrapper,.tui-editor-socket .tui-table-wrapper{overflow-x:auto}.tui-editor-socket table td{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word}.tui-editor-socket table th{position:relative;min-width:1em;height:2rem;border:2px solid var(--tui-base-03);padding:3px 5px;vertical-align:top;box-sizing:border-box;word-break:break-word;font-weight:bold;text-align:left;background-color:var(--tui-base-02);min-height:2rem}.tui-editor-socket table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:#adf;pointer-events:none}.tui-editor-socket table td>*{margin-top:0;margin-bottom:0}.tui-editor-socket table th>*{margin-top:0;margin-bottom:0}.tui-editor-socket .selectedCell:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--tui-selection);pointer-events:none}.tui-editor-socket summary{display:flex;align-items:center;min-height:3.5rem;width:100%;padding:0 1.25rem;box-sizing:border-box;border-radius:var(--tui-radius-l);pointer-events:none;outline:none}.tui-editor-socket summary:focus-visible{outline:2px solid var(--tui-link)}.tui-editor-socket summary p{min-width:1px;margin:0}.tui-editor-socket summary::-webkit-details-marker{display:none}.tui-editor-socket details[open] summary{border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-editor-socket .details-arrow,.tui-editor-socket .t-details-arrow{position:absolute;top:1.5rem;right:1.25rem;height:.575rem;width:.575rem;border:1px solid var(--tui-base-06);border-width:0 2px 2px 0;transform:rotate(45deg);transition:var(--tui-duration, .3s);-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none}.tui-editor-socket details{width:100%;border:1px solid var(--tui-base-04);border-radius:var(--tui-radius-l)}.tui-editor-socket div[data-type=details-content]{padding:1.25rem;min-height:3rem;border:1px solid var(--tui-base-04);border-width:1px 0 0}.tui-editor-socket div[data-type=details-content] h1:first-child,.tui-editor-socket div[data-type=details-content] h2:first-child,.tui-editor-socket div[data-type=details-content] pre:first-child,.tui-editor-socket div[data-type=details-content] ul:first-child,.tui-editor-socket div[data-type=details-content] ol:first-child,.tui-editor-socket div[data-type=details-content] ol li:first-child,.tui-editor-socket div[data-type=details-content] ul li:first-child{margin-top:0}.tui-editor-socket .details-wrapper,.tui-editor-socket .t-details-wrapper{margin-bottom:.5rem;position:relative;display:flex}.tui-editor-socket .details-wrapper_rendered .details-arrow,.tui-editor-socket .t-details-wrapper_rendered .details-arrow,.tui-editor-socket .details-wrapper_rendered .t-details-arrow,.tui-editor-socket .t-details-wrapper_rendered .t-details-arrow{pointer-events:none}.tui-editor-socket .details-wrapper_rendered summary,.tui-editor-socket .t-details-wrapper_rendered summary{transition:transform var(--tui-duration, .3s);cursor:pointer;pointer-events:auto}.tui-editor-socket .details-wrapper_rendered summary:hover,.tui-editor-socket .t-details-wrapper_rendered summary:hover{background:var(--tui-base-02)}.tui-editor-socket details[open]+.details-arrow,.tui-editor-socket details[open]+.t-details-arrow{top:1.75rem;transform:rotate(225deg)}.tui-editor-socket pre{white-space:pre-wrap;word-break:break-word;border-radius:.25rem;margin:1rem 0;padding:.75rem 1rem;font-family:Courier,monospace;color:var(--tui-text-02);background:var(--tui-base-02)}.tui-editor-socket .tui-group-node{display:flex;flex-direction:row}.tui-editor-socket .tui-group-node:hover>.tui-group-pointer{pointer-events:auto;opacity:1}.tui-editor-socket .tui-group-pointer{opacity:0;min-height:.8125rem;max-height:.8125rem;min-width:.8125rem;max-width:.8125rem;margin:.3125rem .3125rem 0 0;cursor:grab;background-image:url(\'data:image/svg+xml;charset=UTF-8,\');background-repeat:no-repeat;background-size:contain;background-position:center}.tui-editor-socket [data-mode=onDark] .tui-group-pointer{background-image:url(\'data:image/svg+xml;charset=UTF-8,\')}\n'],encapsulation:2,changeDetection:0}),t})()},13099:(t,e,n)=>{n.d(e,{W:()=>u});var o=n(12057),i=n(74788),r=n(42600),s=n(43232),a=n(26215),l=n(9112),c=n(88002),d=n(87519);let u=(()=>{class t extends s.kkl{constructor(t,e,n,o,i,s){super((t=>this.stream$.subscribe(t))),this.range=t,this.doc=e,this.selection$=n,this.el=o,this.vcr=i,this.dropdown=s,this.handler$=new a.X(r.YeN),this.stream$=(0,l.aj)([this.handler$,this.selection$.pipe((0,c.U)((()=>this.getRange())),(0,d.x)(((t,e)=>t.startOffset===e.startOffset&&t.endOffset===e.endOffset)))]).pipe((0,c.U)((([t,e])=>{var n;const o=this.el.nativeElement.contains(e.commonAncestorContainer)||(null===(n=e.commonAncestorContainer.parentElement)||void 0===n?void 0:n.closest("tui-dropdown"));return this.range=o&&(0,r.wqZ)(e.commonAncestorContainer)?e:this.range,o&&t(this.range)||this.inDropdown(e)}))),this.position="selection",this.type="dropdown"}set tuiToolbarDropdown(t){(0,r.Ajw)(t)||this.handler$.next(t)}getClientRect(){var t;switch(this.position){case"tag":{const{commonAncestorContainer:t}=this.range,e=(0,r.veZ)(t)?t:t.parentNode;return e&&(0,r.veZ)(e)?e.getBoundingClientRect():r.Jy9}case"word":return(0,s.DII)(this.range).getBoundingClientRect();default:{const e=this.range.getBoundingClientRect();return 0===e.x&&0===e.y&&0===e.width&&0===e.height?(null!==(t=this.el.nativeElement.querySelector("p"))&&void 0!==t?t:this.el.nativeElement).getBoundingClientRect():e}}}ngOnDestroy(){this.ghost&&this.vcr.element.nativeElement.removeChild(this.ghost)}getRange(){const t=(0,r.ie4)(this.doc),e=this.doc.getSelection();return(t&&(0,r.qYx)(t)&&this.el.nativeElement.contains(t)?this.veryVerySadInputFix(t):(null==e?void 0:e.rangeCount)&&e.getRangeAt(0)||this.range).cloneRange()}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:o}=this.el,i=this.boxContains(t.commonAncestorContainer),r=this.boxContains(n)&&o.contains(e),s=this.boxContains(e)&&o.contains(n);return i||r||s}veryVerySadInputFix(t){const{ghost:e=this.initGhost(t)}=this,{top:n,left:o,width:i,height:s}=t.getBoundingClientRect(),{selectionStart:a,selectionEnd:l,value:c}=t,d=this.doc.createRange(),u=this.el.nativeElement.getBoundingClientRect();return e.style.top=(0,r.O9r)(n-u.top),e.style.left=(0,r.O9r)(o-u.left),e.style.width=(0,r.O9r)(i),e.style.height=(0,r.O9r)(s),e.textContent=r.tUj+c+r.f$6,d.setStart(e.firstChild,a||0),d.setEnd(e.firstChild,l||0),d}initGhost(t){const e=this.doc.createElement("div"),{font:n,letterSpacing:o,textTransform:i,padding:r}=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=o,e.style.textTransform=i,e.style.padding=r,this.vcr.element.nativeElement.appendChild(e),this.ghost=e,e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.i0M),i.Y36(o.K0),i.Y36(s.iSh),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(s.tdC))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiToolbarDropdown",""]],inputs:{position:["tuiToolbarDropdownPosition","position"],tuiToolbarDropdown:"tuiToolbarDropdown"},features:[i._Bn([(0,s.UKU)(t),(0,s.Ic9)(t)]),i.qOj]}),t})()},8820:(t,e,n)=>{n.d(e,{a:()=>J});var o=n(12057),i=n(74788),r=n(24751),s=n(42600),a=n(43232),l=n(90712),c=n(69725),d=n(5915),u=n(40401),h=n(63097),p=n(87874),f=n(46782),m=n(1566),g=n(42),b=n(55788),v=n(62490),y=n(96281),w=n(57495),x=n(21335),k=n(16331),C=n(82335),M=n(80475),S=n(62541),A=n(13099),O=n(76690),T=n(6723),N=n(10553);function E(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",7),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(2).fileAttached.emit(e)})),i.Hsn(1,1),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("disabled",!t.interactive)("tools",t.tools)}}function I(t,e){if(1&t&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.hij(" ",t.exampleText," ")}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",12),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(3).focus(e)})),i.GkF(1,13),i.qZA()}if(2&t){i.oxw();const t=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",t)}}function P(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",14),i.NdJ("mousedown",(function(e){return i.CHM(t),i.oxw(3).focus(e)})),i.GkF(1,13),i._UZ(2,"tui-editor-portal-host"),i.qZA()}if(2&t){i.oxw();const t=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",t)}}function H(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toolbar",20),i.NdJ("fileAttached",(function(e){return i.CHM(t),i.oxw(5).fileAttached.emit(e)})),i.Hsn(1,2),i.qZA()}if(2&t){const t=i.oxw().$implicit,e=i.oxw(4);i.Q6J("disabled",!e.interactive)("tools",e.tools)("tuiActiveZoneParent",t)}}function L(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-edit-link",21,22),i.NdJ("addLink",(function(e){i.CHM(t);const n=i.MAs(1),o=i.oxw(5);return n.anchorMode?o.addAnchor(e):o.addLink(e)}))("removeLink",(function(){i.CHM(t);const e=i.MAs(1),n=i.oxw(5);return e.anchorMode?n.removeAnchor():n.removeLink()})),i.qZA()}}function R(t,e){if(1&t&&(i.TgZ(0,"div"),i.YNc(1,H,2,3,"tui-toolbar",18),i.YNc(2,L,2,0,"tui-edit-link",19),i.qZA()),2&t){const t=i.oxw(3).ngIf,e=i.oxw();i.ekj("t-floating",e.floatingToolbar),i.xp6(1),i.Q6J("ngIf",t&&e.tools.length&&e.floatingToolbar),i.xp6(1),i.Q6J("ngIf",!e.floatingToolbar||e.isLinkSelected)}}function _(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"tui-editor-socket",16),i.NdJ("stateChange",(function(){return 0}))("valueChange",(function(e){return i.CHM(t),i.oxw(3).onModelChange(e)})),i.qZA(),i.qZA(),i.YNc(2,R,3,4,"ng-template",null,17,i.W1O)}if(2&t){const t=i.MAs(3),e=i.oxw(3);i.Q6J("tuiDropdown",t)("tuiToolbarDropdown",e.dropdownSelectionHandler)("tuiToolbarDropdownPosition",e.floatingToolbar?"selection":"tag"),i.xp6(1),i.Q6J("editable",e.interactive)("value",e.value)}}function z(t,e){if(1&t&&(i.ynx(0),i.YNc(1,D,2,1,"tui-scrollbar",9),i.YNc(2,P,3,1,"tui-scrollbar",10),i.YNc(3,_,4,5,"ng-template",null,11,i.W1O),i.BQk()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.floatingToolbar),i.xp6(1),i.Q6J("ngIf",!t.floatingToolbar)}}function $(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1),i.NdJ("tuiActiveZoneChange",(function(e){return i.CHM(t),i.oxw().onActiveZone(e)})),i.TgZ(1,"div",2),i.YNc(2,E,2,2,"tui-toolbar",3),i.TgZ(3,"div",4),i.Hsn(4),i.qZA(),i.YNc(5,I,2,1,"div",5),i.qZA(),i.YNc(6,z,5,2,"ng-container",6),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("appearance",n.options.appearence)("disabled",n.disabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),i.xp6(2),i.Q6J("ngIf",t&&n.tools.length&&!n.floatingToolbar),i.xp6(1),i.ekj("t-placeholder_raised",n.placeholderRaised),i.xp6(2),i.Q6J("ngIf",n.hasExampleText),i.xp6(1),i.Q6J("ngIf",t)}}const B=["*",[["tools"]],[["tools"]]],F=["*","tools","tools"];let J=(()=>{class t extends s.M$T{constructor(t,e,n,o,r,s,a,l){super(t,e,a),this.editorLoaded$=n,this.editorService=o,this.contentProcessor=r,this.doc=s,this.options=l,this.exampleText="",this.tools=c.Db,this.floatingToolbar=!1,this.fileAttached=new i.vpe,this.focused=!1,this.isSelectionLink=t=>this.currentFocusedNodeIsTextAnchor(t)||this.currentFocusedNodeIsImageAnchor,this.editorLoaded$.pipe((0,p.g)(0),(0,f.R)(this.destroy$)).subscribe((()=>this.patchContentEditableElement()))}get nativeFocusableElement(){var t,e;return this.computedDisabled?null:(null===(e=null===(t=this.el)||void 0===t?void 0:t.nativeElement)||void 0===e?void 0:e.querySelector("[contenteditable].ProseMirror"))||null}get dropdownSelectionHandler(){return this.floatingToolbar?s.YeN:this.focused?this.isSelectionLink:s.IyD}get editor(){return this.editorService.getOriginTiptapEditor()?this.editorService:null}get placeholderRaised(){return this.computedFocused&&!this.readOnly||this.hasValue}get hasExampleText(){return!!this.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly}get isLinkSelected(){var t,e,n;const o=null===(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)||void 0===e?void 0:e.parentNode;return"a"===(null==o?void 0:o.nodeName.toLowerCase())||!!(null===(n=null==o?void 0:o.parentElement)||void 0===n?void 0:n.closest("tui-edit-link"))}writeValue(t){var e,n;if(t===this.value)return;const o=this.contentProcessor(t||"");super.writeValue(o),o!==t&&(null===(e=this.control)||void 0===e||e.setValue(o,{onlySelf:!1,emitEvent:!1,emitModelToViewChange:!1,emitViewToModelChange:!1})),this.focused||null===(n=this.doc.getSelection())||void 0===n||n.removeAllRanges()}onActiveZone(t){var e;this.focused=t,this.updateFocused(t),null===(e=this.control)||void 0===e||e.updateValueAndValidity()}onModelChange(t){this.value=t}addAnchor(t){var e;null===(e=this.editor)||void 0===e||e.setAnchor(t)}removeAnchor(){var t;null===(t=this.editor)||void 0===t||t.removeAnchor()}addLink(t){var e,n;null===(e=this.editor)||void 0===e||e.selectClosest(),null===(n=this.editor)||void 0===n||n.setLink(t)}removeLink(){var t;null===(t=this.editor)||void 0===t||t.unsetLink()}focus(t){var e,n;(null===(e=this.nativeFocusableElement)||void 0===e?void 0:e.contains(t.target))||(t.preventDefault(),null===(n=this.nativeFocusableElement)||void 0===n||n.focus())}ngOnDestroy(){var t;null===(t=this.editor)||void 0===t||t.destroy()}getFallbackValue(){return""}currentFocusedNodeIsTextAnchor(t){var e,n;return!!(null===(n=null===(e=t.startContainer.parentElement)||void 0===e?void 0:e.closest("a"))||void 0===n?void 0:n.contains(this.focusNode))&&(0,h.nC)(t)}get focusNode(){var t,e;return null!==(e=null===(t=this.doc.getSelection())||void 0===t?void 0:t.focusNode)&&void 0!==e?e:null}get hasValue(){return!!this.value}get currentFocusedNodeIsImageAnchor(){var t,e,n;return"A"===(null===(t=this.focusNode)||void 0===t?void 0:t.nodeName)&&["IMG","TUI-IMAGE-EDITOR"].includes(null===(n=null===(e=this.focusNode)||void 0===e?void 0:e.childNodes[0])||void 0===n?void 0:n.nodeName)}patchContentEditableElement(){var t,e;null===(t=this.nativeFocusableElement)||void 0===t||t.setAttribute("translate",this.options.translate),null===(e=this.nativeFocusableElement)||void 0===e||e.setAttribute("spellcheck",String(this.options.spellcheck))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(u.ZW),i.Y36(d.$3),i.Y36(u.F1),i.Y36(o.K0),i.Y36(u.bK,8),i.Y36(u.mJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-editor"]],viewQuery:function(t,e){if(1&t&&(i.Gf(d.JU,5,i.SBq),i.Gf(l.M6,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.el=t.first),i.iGM(t=i.CRH())&&(e.toolbar=t.first)}},inputs:{exampleText:"exampleText",tools:"tools",floatingToolbar:"floatingToolbar"},outputs:{fileAttached:"fileAttached"},features:[i._Bn([(0,s.FTc)(t),(0,s.f$T)({delay:a.GcO}),m.m]),i.qOj],ngContentSelectors:F,decls:2,vars:3,consts:[["tuiWrapper","","class","t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange",4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange"],[1,"t-toolbar-wrapper"],[3,"disabled","tools","fileAttached",4,"ngIf"],[1,"t-placeholder"],["class","t-example-text",4,"ngIf"],[4,"ngIf"],[3,"disabled","tools","fileAttached"],[1,"t-example-text"],["class","t-scrollbar",3,"mousedown",4,"ngIf"],["tuiEditorPortal","","class","t-scrollbar",3,"mousedown",4,"ngIf"],["editor",""],[1,"t-scrollbar",3,"mousedown"],[3,"ngTemplateOutlet"],["tuiEditorPortal","",1,"t-scrollbar",3,"mousedown"],["tuiDropdownLimitWidth","auto",3,"tuiDropdown","tuiToolbarDropdown","tuiToolbarDropdownPosition"],["tuiTiptapEditor","",3,"editable","value","stateChange","valueChange"],["dropdown",""],[3,"disabled","tools","tuiActiveZoneParent","fileAttached",4,"ngIf"],[3,"addLink","removeLink",4,"ngIf"],[3,"disabled","tools","tuiActiveZoneParent","fileAttached"],[3,"addLink","removeLink"],["link",""]],template:function(t,e){1&t&&(i.F$t(B),i.YNc(0,$,7,11,"div",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.editorLoaded$))},directives:[o.O5,g.o,b.e,v.M,y.I,o.tP,w.A,x.d,k.Ek,C.t,M.V,S.A,A.W,O.D,T.J,N.l],pipes:[o.Ov],styles:["[_nghost-%COMP%]{position:relative;z-index:0;display:block;font:var(--tui-font-text-m);border-radius:var(--tui-radius-m);max-height:inherit;min-height:10rem;box-sizing:border-box;overflow:clip}.t-wrapper[_ngcontent-%COMP%]{display:flex;max-height:inherit;min-height:inherit;cursor:text;overflow:clip;flex-direction:column;border-radius:inherit}.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);margin:1rem 1rem -1rem;min-height:1.625rem;width:95%;font-size:.9375rem}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.t-placeholder_raised[_ngcontent-%COMP%]{width:110%}.t-placeholder[_ngcontent-%COMP%]:empty{min-height:.8rem}.t-example-text[_ngcontent-%COMP%]{position:absolute;left:1rem;margin-top:1.6rem;color:var(--tui-base-06);letter-spacing:normal;text-transform:none}.t-example-text_light[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-example-text_dark[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-scrollbar[_ngcontent-%COMP%]{display:flex;border-bottom:.3125rem solid transparent;padding-bottom:1.3125rem;box-sizing:border-box;flex:1}.t-floating[_ngcontent-%COMP%], .t-floating[_ngcontent-%COMP%] .t-tools-wrapper{max-width:var(--tui-floating-toolbar-max-width, 31.25rem);flex-wrap:nowrap}"],changeDetection:0}),t})()},1566:(t,e,n)=>{n.d(e,{m:()=>h});var o=n(74788),i=n(5915),r=n(40401),s=n(74235),a=n(9112),l=n(15257),c=n(88002),d=n(47349),u=n(53058);const h=[{provide:r.F4,deps:[r.Wf],useFactory:t=>{const e=new s.t(1);return Promise.all(t).then((t=>e.next(t))),e}},{provide:r.Y1,deps:[o.Qsj],useFactory:t=>t.createElement("div")},{provide:r.ZW,deps:[r.Y1,r.F4,r.bG],useFactory:(t,e,n)=>(0,a.aj)([n,e]).pipe((0,l.q)(1),(0,c.U)((([e,n])=>new e({element:t,extensions:n}))),(0,d.d)({bufferSize:1,refCount:!0}))},i.$3,u.Y]},21335:(t,e,n)=>{n.d(e,{d:()=>r});var o=n(42600),i=n(74788);let r=(()=>{class t extends o.ErH{}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-editor-portal-host"]],features:[i._Bn([{provide:o.N9Y,useExisting:o.ae2},{provide:o.ErH,useExisting:t}]),i.qOj],decls:2,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&i.GkF(0,null,0)},styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;display:block;height:100%;width:100%;pointer-events:none}"],changeDetection:0}),t})()},57495:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(74788),i=n(42600),r=n(43232),s=n(53058);let a=(()=>{class t extends r.O4x{constructor(t){super(),this.el=t,this.type="viewport"}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiEditorPortal",""]],features:[o._Bn([{provide:i.ae2,useExisting:s.Y},(0,r.ckU)(t)]),o.qOj]}),t})()},53058:(t,e,n)=>{n.d(e,{Y:()=>r});var o=n(42600),i=n(74788);let r=(()=>{class t extends o.N9Y{}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}),t})()},69057:(t,e,n)=>{n.d(e,{j:()=>v});var o=n(97582),i=n(74788),r=n(24751),s=n(91211),a=n(42600),l=n(43232),c=n(63097),d=n(98778),u=n(75526),h=n(19042),p=n(61183),f=n(58333),m=n(55788);function g(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Udp("background",t.background)}}function b(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-color-selector",5),i.NdJ("colorChange",(function(e){return i.CHM(t),i.oxw().value=e})),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw();i.Q6J("colors",n.colors)("tuiActiveZoneParent",t)("color",n.value)}}class v extends a.M$T{constructor(t,e,n){super(t,e),this.domSanitizer=n,this.colors=new Map,this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return!!this.dropdown&&this.dropdown.focused}get background(){return this.sanitize(this.value,this.domSanitizer)}onClick(){this.open=!this.open}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}getFallbackValue(){return"#000000"}sanitize(t,e){return t.startsWith("linear-gradient(")?e.bypassSecurityTrustStyle((0,c.CH)((0,c._N)((0,c.U5)(t)))):t}}v.ɵfac=function(t){return new(t||v)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.H7))},v.ɵcmp=i.Xpm({type:v,selectors:[["tui-input-color"]],viewQuery:function(t,e){if(1&t&&(i.Gf(l.ycg,5),i.Gf(l.o1K,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.dropdown=t.first)}},hostBindings:function(t,e){1&t&&i.NdJ("click",(function(){return e.onClick()}))},inputs:{colors:"colors"},features:[i._Bn([],[(0,l.fxH)({maxHeight:600})]),i.qOj],ngContentSelectors:["*"],decls:7,vars:12,consts:[[1,"t-wrapper",3,"content","open","openChange"],[1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIconLeft","value","valueChange","focusedChange"],["color",""],["picker",""],[1,"t-color"],[3,"colors","tuiActiveZoneParent","color","colorChange"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",(function(t){return e.open=t})),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),i.Hsn(2),i.qZA(),i.qZA(),i.YNc(3,g,1,2,"ng-template",null,2,i.W1O),i.YNc(5,b,1,3,"ng-template",null,3,i.W1O)),2&t){const t=i.MAs(4),n=i.MAs(6);i.Q6J("content",n)("open",e.open),i.xp6(1),i.Q6J("disabled",e.disabled)("focusable",e.focusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIconLeft",t)("value",e.value)}},directives:[d.o,u.y,h.B,p.a,f.s,m.e],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-color[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}"],changeDetection:0}),(0,o.gn)([a.UMq],v.prototype,"sanitize",null)},29761:(t,e,n)=>{n.d(e,{X:()=>w});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(42486),d=n(98778),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("left")})),a.qZA(),a.TgZ(2,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("center")})),a.qZA(),a.TgZ(3,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("right")})),a.qZA(),a.TgZ(4,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.onAlign("justify")})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf,n=a.oxw();a.xp6(1),a.Q6J("icon",n.options.icons.textAlignLeft)("pseudoActive",!(null==t||!t.left))("tuiHint",e.justifyLeft),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignCenter)("pseudoActive",!(null==t||!t.center))("tuiHint",e.justifyCenter),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignRight)("pseudoActive",!(null==t||!t.right))("tuiHint",e.justifyRight),a.xp6(1),a.Q6J("icon",n.options.icons.textAlignJustify)("pseudoActive",!(null==t||!t.justify))("tuiHint",e.justifyFull)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,b,5,12,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=a.MAs(1),e=a.MAs(4),n=a.oxw().ngIf,o=a.oxw();a.Q6J("content",e),a.xp6(2),a.Q6J("focusable",t.open)("icon",o.options.icons.textAlignPreview)("pseudoActive",t.open)("tuiHint",n.justify)}}function y(t,e){if(1&t&&(a.ynx(0),a.YNc(1,v,5,5,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.alignState$))}}let w=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.alignState$=(0,r.aj)([this.editor.isActive$({textAlign:"left"}),this.editor.isActive$({textAlign:"right"}),this.editor.isActive$({textAlign:"center"}),this.editor.isActive$({textAlign:"justify"})]).pipe((0,s.U)((([t,e,n,o])=>({left:t,right:e,center:n,justify:o}))))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-align-content"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["align",""],["appearance","icon","automation-id","toolbar__align-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["alignDropdown",""],[1,"t-dropdown"],["appearance","icon","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,y,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.L,d.o,u.v,h.$,p.D,f.x,m.t,g.D],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},56496:(t,e,n)=>{n.d(e,{T:()=>w});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(98778),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(22545),g=n(12057),b=n(91283);function v(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",(function(){const e=a.CHM(t).index;return a.oxw(2).onCode(!!e)})),a._uU(1),a.qZA()}if(2&t){const t=e.$implicit;a.xp6(1),a.hij(" ",t," ")}}function y(t,e){if(1&t&&(a.TgZ(0,"tui-data-list"),a.YNc(1,v,2,1,"button",4),a.ALo(2,"async"),a.qZA()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngForOf",a.lcZ(2,1,t.codeOptionsTexts$))}}let w=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.codeOptionsTexts$=o,this.hintText$=this.texts$.pipe((0,r.U)((t=>t.code))),this.insideCode$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.isActive("code")||this.editor.isActive("codeBlock"))),(0,s.x)())}onCode(t){t?this.editor.toggleCodeBlock():this.editor.toggleCode()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.Mr))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-code"]],decls:7,vars:9,consts:[[3,"content"],["codes",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["codesDropdown",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.ALo(3,"async"),a.ALo(4,"async"),a.YNc(5,y,3,3,"ng-template",null,3,a.W1O),a.qZA()),2&t){const t=a.MAs(1),n=a.MAs(6);a.Q6J("content",n),a.xp6(2),a.Q6J("focusable",t.open)("icon",e.options.icons.code)("pseudoActive",t.open||a.lcZ(3,5,e.insideCode$))("tuiHint",a.lcZ(4,7,e.hintText$))}},directives:[l.o,c.v,d.$,u.D,h.x,p.t,f.D,m.q,g.sg,b.v],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},47859:(t,e,n)=>{n.d(e,{U:()=>g});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(12057),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928);function m(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().removeDetails()})),a.ALo(1,"async"),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("disabled",!!a.lcZ(1,4,n.disabled$))("focusable",!1)("icon",n.options.icons.detailsRemove)("tuiHint",t.removeDetails)}}let g=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n,this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("details"))),(0,s.x)())}removeDetails(){this.editor.removeDetails()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-details-remove"]],decls:2,vars:3,consts:[["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,m,2,6,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.v,d.$,u.D,h.x,p.t,f.D],pipes:[l.Ov],encapsulation:2,changeDetection:0}),t})()},26929:(t,e,n)=>{n.d(e,{y:()=>f});var o=n(5915),i=n(40401),r=n(74788),s=n(12057),a=n(18289),l=n(44099),c=n(13938),d=n(10406),u=n(63790),h=n(51928);function p(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",1),r.NdJ("click",(function(){return r.CHM(t),r.oxw().setDetails()})),r.qZA()}if(2&t){const t=e.ngIf,n=r.oxw();r.Q6J("focusable",!1)("icon",n.options.icons.detailsAdd)("tuiHint",t.setDetails)}}let f=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n}setDetails(){this.editor.setDetails()}}return t.ɵfac=function(e){return new(e||t)(r.Y36(o.$3),r.Y36(i.rf),r.Y36(i.mJ))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-details"]],decls:2,vars:3,consts:[["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(r.YNc(0,p,1,3,"button",0),r.ALo(1,"async")),2&t&&r.Q6J("ngIf",r.lcZ(1,1,e.texts$))},directives:[s.O5,a.v,l.$,c.D,d.x,u.t,h.D],pipes:[s.Ov],encapsulation:2,changeDetection:0}),t})()},37982:(t,e,n)=>{n.d(e,{m:()=>k});var o=n(42600),i=n(69725),r=n(5915),s=n(40401),a=n(88002),l=n(74788),c=n(98778),d=n(18289),u=n(44099),h=n(13938),p=n(10406),f=n(63790),m=n(51928),g=n(22545),b=n(12057),v=n(91283);const y=function(){return{}};function w(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).setFontOption(e)})),l.ALo(1,"lowercase"),l._uU(2),l.qZA()}if(2&t){const t=e.$implicit;l.Udp("font-family",t.family)("font-size",t.px,"px")("font-weight",t.weight),l.Q6J("ngClass",(null==t?null:t.ngClass)||l.DdM(12,y))("ngStyle",(null==t?null:t.ngStyle)||l.DdM(13,y)),l.uIk("automation-id","tui_font__"+l.lcZ(1,10,t.name||"")),l.xp6(2),l.hij(" ",t.name," ")}}function x(t,e){if(1&t&&(l.TgZ(0,"tui-data-list"),l.YNc(1,w,3,14,"button",4),l.ALo(2,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",l.lcZ(2,1,t.fontsOptions$))}}let k=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.fontOptionsTexts$=o,this.fontsOptions$=this.fontOptionsTexts$.pipe((0,a.U)((t=>this.options.fontOptions(t)))),this.fontText$=this.texts$.pipe((0,a.U)((t=>t.font)))}onClick({headingLevel:t,px:e}){this.setFontOption({headingLevel:t,px:e})}setFontOption({headingLevel:t,px:e}){const n=this.editor.getFontColor();this.clearPreviousTextStyles(),t?this.editor.setHeading(t):this.editor.setParagraph({fontSize:(0,o.O9r)(e||0)}),n!==i.hK&&this.editor.setFontColor(n)}clearPreviousTextStyles(){this.editor.removeEmptyTextStyle(),this.editor.toggleMark("textStyle")}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.mJ),l.Y36(r.$3),l.Y36(s.rf),l.Y36(s.UN))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-font-size"]],decls:6,vars:7,consts:[[3,"content"],["fonts",""],["appearance","icon","automation-id","toolbar__font-size-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["fontsDropdown",""],["tuiOption","",3,"ngClass","ngStyle","fontFamily","fontSize","fontWeight","click",4,"ngFor","ngForOf"],["tuiOption","",3,"ngClass","ngStyle","click"]],template:function(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",0,1),l._UZ(2,"button",2),l.ALo(3,"async"),l.YNc(4,x,3,3,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(1),n=l.MAs(5);l.Q6J("content",n),l.xp6(2),l.Q6J("focusable",t.open)("icon",e.options.icons.fontSize)("pseudoActive",t.open)("tuiHint",l.lcZ(3,5,e.fontText$))}},directives:[c.o,d.v,u.$,h.D,p.x,f.t,m.D,g.q,b.sg,v.v,b.mk,b.PC],pipes:[b.Ov,b.i8],encapsulation:2,changeDetection:0}),t})()},10845:(t,e,n)=>{n.d(e,{h:()=>S});var o=n(69725),i=n(5915),r=n(72023),s=n(40401),a=n(9112),l=n(88002),c=n(74788),d=n(12057),u=n(98778),h=n(18289),p=n(44099),f=n(13938),m=n(10406),g=n(63790),b=n(51928);function v(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleBold()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleBold)("pseudoActive",t.bold)("tuiHint",e.bold)}}function y(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleItalic()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleItalic)("pseudoActive",t.italic)("tuiHint",e.italic)}}function w(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleUnderline()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleUnderline)("pseudoActive",t.underline)("tuiHint",e.underline)}}function x(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"button",8),c.NdJ("click",(function(){return c.CHM(t),c.oxw(4).editor.toggleStrike()})),c.qZA()}if(2&t){const t=c.oxw(2).ngIf,e=c.oxw().ngIf,n=c.oxw();c.Q6J("icon",n.options.icons.fontStyleStrike)("pseudoActive",t.strike)("tuiHint",e.strikeThrough)}}function k(t,e){if(1&t&&(c.TgZ(0,"div",6),c.YNc(1,v,1,3,"button",7),c.YNc(2,y,1,3,"button",7),c.YNc(3,w,1,3,"button",7),c.YNc(4,x,1,3,"button",7),c.qZA()),2&t){const t=c.oxw(3);c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Bold)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Italic)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Underline)),c.xp6(1),c.Q6J("ngIf",t.isEnabled(t.editorTool.Strikethrough))}}function C(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",2,3),c._UZ(2,"button",4),c.YNc(3,k,5,4,"ng-template",null,5,c.W1O),c.qZA()),2&t){const t=e.ngIf,n=c.MAs(1),o=c.MAs(4),i=c.oxw().ngIf,r=c.oxw();c.Q6J("content",o),c.xp6(2),c.Q6J("focusable",n.open)("icon",r.options.icons.fontStylePreview)("pseudoActive",n.open||t.bold||t.italic||t.underline||t.strike)("tuiHint",i.fontStyle)}}function M(t,e){if(1&t&&(c.ynx(0),c.YNc(1,C,5,5,"tui-hosted-dropdown",1),c.ALo(2,"async"),c.BQk()),2&t){const t=c.oxw();c.xp6(1),c.Q6J("ngIf",c.lcZ(2,1,t.fontStyleState$))}}let S=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.toolsSet=new Set(o.Db),this.editorTool=r._,this.fontStyleState$=(0,a.aj)([this.editor.isActive$("bold"),this.editor.isActive$("italic"),this.editor.isActive$("underline"),this.editor.isActive$("strike")]).pipe((0,l.U)((([t,e,n,o])=>({bold:t,italic:e,underline:n,strike:o}))))}set enabledTools(t){this.toolsSet=new Set(t)}isEnabled(t){return this.toolsSet.has(t)}}return t.ɵfac=function(e){return new(e||t)(c.Y36(s.mJ),c.Y36(i.$3),c.Y36(s.rf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-font-style"]],inputs:{enabledTools:"enabledTools"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"ngIf"],[3,"content"],["format",""],["appearance","icon","automation-id","toolbar__font-style-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["formatDropdown",""],[1,"t-dropdown"],["appearance","icon","size","s","tuiIconButton","","type","button","class","t-option t-option_margin",3,"icon","pseudoActive","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"]],template:function(t,e){1&t&&(c.YNc(0,M,3,3,"ng-container",0),c.ALo(1,"async")),2&t&&c.Q6J("ngIf",c.lcZ(1,1,e.texts$))},directives:[d.O5,u.o,h.v,p.$,f.D,m.x,g.t,b.D],pipes:[d.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},28299:(t,e,n)=>{n.d(e,{d:()=>m});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(18289),c=n(44099),d=n(13938),u=n(10406),h=n(63790),p=n(51928),f=n(12057);let m=(()=>{class t{constructor(t,e,n){this.editor=t,this.texts$=e,this.options=n,this.insertGroupText$=this.texts$.pipe((0,r.U)((t=>t.insertGroup))),this.removeGroupText$=this.texts$.pipe((0,r.U)((t=>t.removeGroup))),this.disabled$=this.editor.stateChange$.pipe((0,r.U)((()=>!this.editor.isActive("group"))),(0,s.x)())}addGroup(){this.editor.setGroup()}removeGroup(){this.editor.removeGroup()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf),a.Y36(i.mJ))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-editor-group-tool"]],decls:5,vars:13,consts:[["appearance","icon","automation-id","toolbar__group-add-button","size","s","tuiHintDescribe","","tuiIconButton","","type","button",3,"focusable","icon","tuiHint","click"],["appearance","icon","automation-id","toolbar__group-remove-button","size","s","tuiHintDescribe","","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.TgZ(0,"button",0),a.NdJ("click",(function(){return e.addGroup()})),a.ALo(1,"async"),a.qZA(),a.TgZ(2,"button",1),a.NdJ("click",(function(){return e.removeGroup()})),a.ALo(3,"async"),a.ALo(4,"async"),a.qZA()),2&t&&(a.Q6J("focusable",!1)("icon",e.options.icons.groupAdd)("tuiHint",a.lcZ(1,7,e.insertGroupText$)),a.xp6(2),a.Q6J("disabled",!!a.lcZ(3,9,e.disabled$))("focusable",!1)("icon",e.options.icons.groupRemove)("tuiHint",a.lcZ(4,11,e.removeGroupText$)))},directives:[l.v,c.$,d.D,u.x,h.t,p.D],pipes:[f.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},78919:(t,e,n)=>{n.d(e,{U:()=>C});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(98778),d=n(16331),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928),b=n(12057),v=n(1706),y=n(55788);function w(t,e){if(1&t&&a._UZ(0,"div",6),2&t){const t=a.oxw().tuiLet;a.Udp("background",t)}}function x(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",7),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setBackgroundColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function k(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a.YNc(4,w,1,2,"div",4),a.YNc(5,x,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",n.open)("icon",i.options.icons.textHilite)("pseudoActive",n.open)("tuiHint",a.lcZ(3,7,i.backColorText$)),a.xp6(2),a.Q6J("ngIf",!i.isBlankColor(t||""))}}let C=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.backgroundColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getBackgroundColor()||this.options.blankColor)),(0,s.x)()),this.backColorText$=this.texts$.pipe((0,r.U)((t=>t.backColor)))}isBlankColor(t){return t===this.options.blankColor}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-highlight-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["hilite",""],["appearance","icon","automation-id","toolbar__hilite-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","pseudoActive","tuiHint"],["class","t-plate",3,"background",4,"ngIf"],["hiliteDropdown",""],[1,"t-plate"],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,k,7,9,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.backgroundColor$))},directives:[l.L,c.o,d.Ek,u.v,h.$,p.D,f.x,m.t,g.D,b.O5,v.R,y.e],pipes:[b.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},30560:(t,e,n)=>{n.d(e,{pu:()=>a,P_:()=>l,y9:()=>c,jP:()=>h,p7:()=>d,Zv:()=>u,XC:()=>f,Ur:()=>m,mp:()=>g,iA:()=>v,er:()=>y,__:()=>w,_t:()=>x}),n(29761);var o=n(12057),i=n(42600),r=n(43232),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,i.WDk]]}),t})();n(56496);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,r.pcV]]}),t})();n(26929);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS]]}),t})();n(47859),n(37982);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,r.pcV]]}),t})();n(10845);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS]]}),t})();n(28299);let h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS]]}),t})();n(78919);var p=n(83950);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,p.VM,r.goS,r.dpK,i.Ah6,i.WDk]]}),t})();n(69201);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.fNO,r.goS,i.WDk]]}),t})();n(82556);let g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,p.VM,r.fNO,r.goS,i.Ah6,r.dpK,i.WDk]]}),t})();n(76310),n(35659);let b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,i.IhY]]}),t})(),v=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.dpK,r.fNO,r.goS,b]]}),t})();n(60020);let y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.goS,i.WDk]]}),t})();n(69023);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.jhF,r.goS,r.fNO,r.pcV,i.WDk]]}),t})();n(48838);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[o.ez,r.fNO,r.jhF,r.dpK,r.goS,p.VM,i.Ah6,i.WDk]]}),t})()},69201:(t,e,n)=>{n.d(e,{w:()=>w});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(74788),l=n(12057),c=n(42486),d=n(98778),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"div",6),a.TgZ(1,"button",7),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleUnorderedList()})),a.qZA(),a.TgZ(2,"button",8),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).editor.toggleOrderedList()})),a.qZA(),a.TgZ(3,"button",9),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).sinkListItem()})),a.qZA(),a.TgZ(4,"button",10),a.NdJ("click",(function(){return a.CHM(t),a.oxw(3).liftListItem()})),a.qZA(),a.qZA()}if(2&t){const t=a.oxw().tuiLet,e=a.oxw().ngIf,n=a.oxw();a.xp6(1),a.Q6J("icon",n.options.icons.listUnOrdered)("pseudoActive",!(null==t||!t.unordered))("tuiHint",e.unorderedList),a.xp6(1),a.Q6J("icon",n.options.icons.listOrdered)("pseudoActive",!(null==t||!t.ordered))("tuiHint",e.orderedList),a.xp6(1),a.Q6J("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered))("icon",n.options.icons.indent)("tuiHint",e.indent),a.xp6(1),a.Q6J("disabled",!(null!=t&&t.ordered||null!=t&&t.unordered))("icon",n.options.icons.outdent)("tuiHint",e.outdent)}}function v(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",2,3),a._UZ(2,"button",4),a.YNc(3,b,5,12,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(4),i=a.oxw().ngIf,r=a.oxw();a.Q6J("content",o),a.xp6(2),a.Q6J("focusable",n.open)("icon",r.options.icons.listPreview)("pseudoActive",(null==n?null:n.open)||(null==t?null:t.unordered)||(null==t?null:t.ordered)||!1)("tuiHint",i.list)}}function y(t,e){if(1&t&&(a.ynx(0),a.YNc(1,v,5,5,"tui-hosted-dropdown",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("tuiLet",a.lcZ(2,1,t.listState$))}}let w=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.listState$=(0,r.aj)([this.editor.isActive$("orderedList"),this.editor.isActive$("bulletList")]).pipe((0,s.U)((([t,e])=>({ordered:t,unordered:e}))))}sinkListItem(){this.editor.sinkListItem()}liftListItem(){this.editor.liftListItem()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-list-configs"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"content",4,"tuiLet"],[3,"content"],["list",""],["appearance","icon","automation-id","toolbar__ordering-list-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["listDropdown",""],[1,"t-dropdown","t-dropdown-list"],["appearance","icon","automation-id","toolbar__un-ordered-list-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"],["appearance","icon","automation-id","toolbar__ordered-list-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"icon","pseudoActive","tuiHint","click"],["appearance","icon","automation-id","toolbar_indent-button","size","s","tuiIconButton","","type","button",1,"t-option","t-option_margin",3,"disabled","icon","tuiHint","click"],["appearance","icon","automation-id","toolbar_outdent-button","size","s","tuiIconButton","","type","button",1,"t-option",3,"disabled","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,y,3,3,"ng-container",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[l.O5,c.L,d.o,u.v,h.$,p.D,f.x,m.t,g.D],pipes:[l.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},82556:(t,e,n)=>{n.d(e,{p:()=>S});var o=n(5915),i=n(40401),r=n(9112),s=n(88002),a=n(87519),l=n(74788),c=n(42486),d=n(98778),u=n(16331),h=n(18289),p=n(44099),f=n(13938),m=n(10406),g=n(63790),b=n(51928),v=n(12057),y=n(1706),w=n(55788);function x(t,e){if(1&t&&l._UZ(0,"div",7),2&t){const t=l.oxw(2).tuiLet;l.Udp("background",t)}}function k(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-palette",8),l.NdJ("selectedColor",(function(e){l.CHM(t),l.oxw();const n=l.MAs(1);return l.oxw(2).setCellColor(e),n.close()})),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(3);l.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function C(t,e){if(1&t&&(l.TgZ(0,"tui-hosted-dropdown",2,3),l._UZ(2,"button",4),l.ALo(3,"async"),l.YNc(4,x,1,2,"div",5),l.YNc(5,k,1,2,"ng-template",null,6,l.W1O),l.qZA()),2&t){const t=e.tuiLet,n=l.MAs(1),o=l.MAs(6),i=l.oxw().tuiLet,r=l.oxw();l.Q6J("canOpen",!!t)("content",o)("tuiDropdownMaxHeight",999),l.xp6(2),l.Q6J("disabled",!t)("focusable",n.open)("icon",r.options.icons.paint)("pseudoActive",n.open)("tuiHint",l.lcZ(3,9,r.colorText$)),l.xp6(2),l.Q6J("ngIf",!r.isBlankColor(i||""))}}function M(t,e){if(1&t&&(l.ynx(0),l.YNc(1,C,7,11,"tui-hosted-dropdown",1),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,1,t.isActive$))}}let S=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.colorText$=this.texts$.pipe((0,s.U)((t=>this.editor.isActive("group")&&t.hiliteGroup||this.editor.isActive("table")&&t.cellColor||""))),this.isActive$=(0,r.aj)([this.editor.isActive$("table"),this.editor.isActive$("group")]).pipe((0,s.U)((([t,e])=>t||e))),this.color$=this.editor.stateChange$.pipe((0,s.U)((()=>this.editor.getCellColor()||this.editor.getGroupColor()||this.options.blankColor)),(0,a.x)())}isBlankColor(t){return t===this.options.blankColor}setCellColor(t){this.editor.isActive("group")?this.editor.setGroupHilite(t):this.editor.isActive("table")&&this.editor.setCellColor(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.mJ),l.Y36(o.$3),l.Y36(i.rf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-table-cell-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[4,"tuiLet"],[3,"canOpen","content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"canOpen","content","tuiDropdownMaxHeight"],["colorSelect",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","pseudoActive","tuiHint"],["class","t-plate t-plate_paint",3,"background",4,"ngIf"],["cellColorDropdown",""],[1,"t-plate","t-plate_paint"],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(l.YNc(0,M,3,3,"ng-container",0),l.ALo(1,"async")),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.color$))},directives:[c.L,d.o,u.Ek,h.v,p.$,f.D,m.x,g.t,b.D,v.O5,y.R,w.e],pipes:[v.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},76310:(t,e,n)=>{n.d(e,{l:()=>v});var o=n(5915),i=n(40401),r=n(88002),s=n(74788),a=n(98778),l=n(16331),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(35659),g=n(12057);function b(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"tui-table-size-selector",4),s.NdJ("selectSize",(function(e){return s.CHM(t),s.oxw().addTable(e)})),s.qZA()}}let v=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.insertTableText$=this.texts$.pipe((0,r.U)((t=>t.insertTable)))}addTable({rows:t,cols:e}){this.editor.enter();const n=this.editor.state.selection.anchor;this.editor.enter(),this.editor.enter(),this.editor.setTextSelection(n),this.editor.insertTable(t,e)}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.mJ),s.Y36(o.$3),s.Y36(i.rf))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-create"]],decls:6,vars:6,consts:[["tuiDropdownAlign","left","tuiDropdownDirection","bottom",3,"content"],["table",""],["appearance","icon","automation-id","toolbar__insert-table-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","tuiHint"],["tableDropdown",""],[3,"selectSize"]],template:function(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",0,1),s._UZ(2,"button",2),s.ALo(3,"async"),s.qZA(),s.YNc(4,b,1,0,"ng-template",null,3,s.W1O)),2&t){const t=s.MAs(1),n=s.MAs(5);s.Q6J("content",n),s.xp6(2),s.Q6J("focusable",t.open)("icon",e.options.icons.insertTable)("tuiHint",s.lcZ(3,4,e.insertTableText$))}},directives:[a.o,l.Ek,c.v,d.$,u.D,h.x,p.t,f.D,m.M],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},60020:(t,e,n)=>{n.d(e,{Y:()=>y});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(12057),d=n(18289),u=n(44099),h=n(13938),p=n(10406),f=n(63790),m=n(51928);function g(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",2),a.NdJ("click",(function(){a.CHM(t);const e=a.oxw().tuiLet,n=a.oxw();return e.mergeCells?n.mergeCells():n.splitCell()})),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw().tuiLet;a.Q6J("disabled",!n.mergeCells&&!n.splitCells)("focusable",!1)("icon",n.mergeCells?"tuiIconTableMergeLarge":"tuiIconTableSplitLarge")("tuiHint",n.mergeCells?t.mergeCells:t.splitCells)}}function b(t,e){if(1&t&&(a.ynx(0),a.YNc(1,g,1,4,"button",1),a.ALo(2,"async"),a.BQk()),2&t){const t=a.oxw();a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,t.texts$))}}const v=function(t,e){return{mergeCells:t,splitCells:e}};let y=(()=>{class t{constructor(t,e){this.editor=t,this.texts$=e,this.canMergeCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canMergeCells())),(0,s.x)()),this.canSplitCells$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.canSplitCells())),(0,s.x)())}mergeCells(){this.editor.mergeCells()}splitCell(){this.editor.splitCell()}}return t.ɵfac=function(e){return new(e||t)(a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-table-merge-cells"]],decls:3,vars:8,consts:[[4,"tuiLet"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint","click"]],template:function(t,e){1&t&&(a.YNc(0,b,3,3,"ng-container",0),a.ALo(1,"async"),a.ALo(2,"async")),2&t&&a.Q6J("tuiLet",a.WLB(5,v,a.lcZ(1,1,e.canMergeCells$),a.lcZ(2,3,e.canSplitCells$)))},directives:[l.L,c.O5,d.v,u.$,h.D,p.x,f.t,m.D],pipes:[c.Ov],encapsulation:2,changeDetection:0}),t})()},69023:(t,e,n)=>{n.d(e,{_:()=>M});var o=n(5915),i=n(40401),r=n(88002),s=n(74788),a=n(42486),l=n(98778),c=n(18289),d=n(44099),u=n(13938),h=n(10406),p=n(63790),f=n(51928),m=n(22545),g=n(12057),b=n(94052),v=n(91283);function y(t,e){if(1&t&&(s.TgZ(0,"tui-hosted-dropdown",2,3),s._UZ(2,"button",4),s.ALo(3,"async"),s.qZA()),2&t){const t=e.tuiLet,n=s.MAs(1),o=s.oxw(),i=s.MAs(3);s.Q6J("canOpen",!!t)("content",i),s.xp6(2),s.Q6J("disabled",!t)("focusable",n.open)("icon",o.options.icons.addRowTable)("tuiHint",s.lcZ(3,6,o.rowsColumnsManagingText$))}}function w(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",7),s.NdJ("click",(function(){const e=s.CHM(t).index,n=s.oxw().index;return s.oxw(2).onTableOption(2*n+e)})),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.hij(" ",t," ")}}function x(t,e){if(1&t&&(s.TgZ(0,"tui-opt-group"),s.YNc(1,w,2,1,"button",6),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Q6J("ngForOf",t)}}function k(t,e){if(1&t&&(s.TgZ(0,"tui-data-list"),s.YNc(1,x,2,1,"tui-opt-group",5),s.ALo(2,"async"),s.qZA()),2&t){const t=s.oxw();s.xp6(1),s.Q6J("ngForOf",s.lcZ(2,1,t.tableCommandTexts$))}}var C=(()=>(function(t){t[t.InsertColumnBefore=0]="InsertColumnBefore",t[t.InsertColumnAfter=1]="InsertColumnAfter",t[t.InsertRowBefore=2]="InsertRowBefore",t[t.InsertRowAfter=3]="InsertRowAfter",t[t.DeleteColumn=4]="DeleteColumn",t[t.DeleteRow=5]="DeleteRow"}(C||(C={})),C))();let M=(()=>{class t{constructor(t,e,n,o){this.options=t,this.editor=e,this.texts$=n,this.tableCommandTexts$=o,this.commandsRegistry={[C.InsertColumnAfter]:()=>this.editor.addColumnAfter(),[C.InsertColumnBefore]:()=>this.editor.addColumnBefore(),[C.InsertRowAfter]:()=>this.editor.addRowAfter(),[C.InsertRowBefore]:()=>this.editor.addRowBefore(),[C.DeleteColumn]:()=>this.editor.deleteColumn(),[C.DeleteRow]:()=>this.editor.deleteRow()},this.isActive$=this.editor.isActive$("table"),this.rowsColumnsManagingText$=this.texts$.pipe((0,r.U)((t=>t.rowsColumnsManaging)))}onTableOption(t){this.commandsRegistry[t]()}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.mJ),s.Y36(o.$3),s.Y36(i.rf),s.Y36(i.$i))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-table-row-column-manager"]],decls:4,vars:3,consts:[[3,"canOpen","content",4,"tuiLet"],["tableOptionsDropdown",""],[3,"canOpen","content"],["tableCommand",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"disabled","focusable","icon","tuiHint"],[4,"ngFor","ngForOf"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){1&t&&(s.YNc(0,y,4,8,"tui-hosted-dropdown",0),s.ALo(1,"async"),s.YNc(2,k,3,3,"ng-template",null,1,s.W1O)),2&t&&s.Q6J("tuiLet",s.lcZ(1,1,e.isActive$))},directives:[a.L,l.o,c.v,d.$,u.D,h.x,p.t,f.D,m.q,g.sg,b.R,v.v],pipes:[g.Ov],encapsulation:2,changeDetection:0}),t})()},35659:(t,e,n)=>{n.d(e,{M:()=>c});var o=n(74788),i=n(62579),r=n(43232),s=n(46648);function a(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",4),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).select()}))("mouseenter",(function(e){const n=o.CHM(t).$implicit,i=o.oxw().$implicit;return o.oxw().updateCurrentSize(n+1,i+1,e)})),o.qZA()}if(2&t){const t=e.$implicit,n=o.oxw().$implicit,i=o.oxw();o.ekj("t-cell_hovered",i.tableSelectHovered(t,n))}}function l(t,e){if(1&t&&(o.TgZ(0,"div",2),o.YNc(1,a,1,2,"div",3),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("tuiRepeatTimesOf",t.rowsNumber)}}let c=(()=>{class t{constructor(t){this.win=t,this.selectSize=new o.vpe,this.onSelectSize=this.selectSize,this.tableSize={rows:1,cols:1}}get columnsNumber(){return Math.min(Math.max(3,this.tableSize.cols+1),15)}get rowsNumber(){return Math.min(Math.max(3,this.tableSize.rows+1),15)}tableSelectHovered(t,e){return t70&&(this.tableSize={rows:t,cols:e})}onClick(){this.select()}select(){this.selectSize.emit(this.tableSize)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.m9))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-table-size-selector"]],outputs:{selectSize:"selectSize",onSelectSize:"onSelectSize"},decls:3,vars:3,consts:[["class","t-column",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-description"],[1,"t-column"],["class","t-cell",3,"t-cell_hovered","click","mouseenter",4,"tuiRepeatTimes","tuiRepeatTimesOf"],[1,"t-cell",3,"click","mouseenter"]],template:function(t,e){1&t&&(o.YNc(0,l,2,1,"div",0),o.TgZ(1,"div",1),o._uU(2),o.qZA()),2&t&&(o.Q6J("tuiRepeatTimesOf",e.columnsNumber),o.xp6(2),o.AsE("",e.tableSize.cols,"×",e.tableSize.rows,""))},directives:[s.X],styles:["[_nghost-%COMP%]{display:block;padding:.75rem}.t-cell[_ngcontent-%COMP%]{display:inline-block;background-color:var(--tui-base-01);width:1.25rem;height:1.25rem;border-radius:.25rem;margin:.125rem;border:1px solid var(--tui-base-04);cursor:pointer}.t-cell_hovered[_ngcontent-%COMP%]{background-color:var(--tui-base-02)}.t-column[_ngcontent-%COMP%]{white-space:nowrap}.t-description[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0}),t})()},48838:(t,e,n)=>{n.d(e,{G:()=>k});var o=n(5915),i=n(40401),r=n(88002),s=n(87519),a=n(74788),l=n(42486),c=n(98778),d=n(16331),u=n(18289),h=n(44099),p=n(13938),f=n(10406),m=n(63790),g=n(51928),b=n(1706),v=n(55788),y=n(12057);function w(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-palette",6),a.NdJ("selectedColor",(function(e){return a.CHM(t),a.oxw(2).editor.setFontColor(e)})),a.qZA()}if(2&t){const t=e.$implicit,n=a.oxw(2);a.Q6J("colors",n.colors)("tuiActiveZoneParent",t)}}function x(t,e){if(1&t&&(a.TgZ(0,"tui-hosted-dropdown",1,2),a._UZ(2,"button",3),a.ALo(3,"async"),a._UZ(4,"div",4),a.YNc(5,w,1,2,"ng-template",null,5,a.W1O),a.qZA()),2&t){const t=e.tuiLet,n=a.MAs(1),o=a.MAs(6),i=a.oxw();a.Q6J("content",o)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",n.open)("icon",i.options.icons.textColor)("pseudoActive",n.open)("tuiHint",a.lcZ(3,8,i.foreColorText$)),a.xp6(2),a.Udp("background",t)}}let k=(()=>{class t{constructor(t,e,n){this.options=t,this.editor=e,this.texts$=n,this.colors=this.options.colors,this.fontColor$=this.editor.stateChange$.pipe((0,r.U)((()=>this.editor.getFontColor()||this.options.blankColor)),(0,s.x)()),this.foreColorText$=this.texts$.pipe((0,r.U)((t=>t.foreColor)))}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.mJ),a.Y36(o.$3),a.Y36(i.rf))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-text-color"]],inputs:{colors:"colors"},decls:2,vars:3,consts:[[3,"content","tuiDropdownMaxHeight",4,"tuiLet"],[3,"content","tuiDropdownMaxHeight"],["color",""],["appearance","icon","automation-id","toolbar__color-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],[1,"t-plate"],["colorDropdown",""],[1,"t-color-picker",3,"colors","tuiActiveZoneParent","selectedColor"]],template:function(t,e){1&t&&(a.YNc(0,x,7,10,"tui-hosted-dropdown",0),a.ALo(1,"async")),2&t&&a.Q6J("tuiLet",a.lcZ(1,1,e.fontColor$))},directives:[l.L,c.o,d.Ek,u.v,h.$,p.D,f.x,m.t,g.D,b.R,v.e],pipes:[y.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}"],changeDetection:0}),t})()},90712:(t,e,n)=>{n.d(e,{M6:()=>o.M,yB:()=>d});var o=n(62490),i=n(12057),r=n(42600),s=n(43232),a=n(1884),l=n(30560),c=n(74788);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[i.ez,s.goS,r.udY,s.fNO,s.jhF,a.Fu,l.er,l.mp,l.__,l.iA,l.p7,l.Zv,l.pu,l.Ur,l._t,l.XC,l.P_,l.y9,r.HOV,l.jP]]}),t})();n(5028)},5028:(t,e,n)=>{n.d(e,{B:()=>r});var o=n(74788),i=n(42600);let r=(()=>{class t{constructor(t){this.el=t}get toolsContainers(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiItem]"))}onHorizontalNavigation(t){const{toolsContainers:e}=this,n=e.findIndex(i.zb4),o=e[(0,i.Kiv)(n+(t?-1:1),0,e.length-1)],r=t?this.findPreviousTool(o):this.findNextTool(o);r&&r.focus()}findFirstFocusableTool(t=!1){const e=t?this.toolsContainers.slice().reverse():this.toolsContainers;for(const t of e){const e=(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:t,keyboard:!1});if(e)return e}return null}findPreviousTool(t){return(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:t,keyboard:!1})||(0,i.BWF)({initial:t,root:this.el.nativeElement,previous:!0,keyboard:!1})}findNextTool(t){return(0,i._hh)(t)?t:(0,i.BWF)({initial:t,root:this.el.nativeElement,keyboard:!1})}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiToolbarNavigationManager",""]],hostBindings:function(t,e){1&t&&o.NdJ("keydown.arrowRight.prevent",(function(){return e.onHorizontalNavigation(!1)}))("keydown.arrowLeft.prevent",(function(){return e.onHorizontalNavigation(!0)}))}}),t})()},62490:(t,e,n)=>{n.d(e,{M:()=>mt});var o=n(74788),i=n(42600),r=n(69725),s=n(5915),a=n(72023),l=n(40401),c=n(15257),d=n(46782),u=n(5028),h=n(12057),p=n(63973),f=n(18289),m=n(44099),g=n(32489),b=n(13938),v=n(10406),y=n(63790),w=n(51928),x=n(37982),k=n(10845),C=n(29761),M=n(69201),S=n(98778),A=n(10553),O=n(48838),T=n(78919),N=n(56496),E=n(26929),I=n(47859),D=n(28299),P=n(82556),H=n(76310),L=n(69023),R=n(60020);const _=["dropdown"];function z(t,e){1&t&&o.GkF(0)}function $(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",7),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).undo()})),o.qZA(),o.TgZ(2,"button",8),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).redo()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("disabled",e.undoDisabled)("focusable",!1)("icon",e.options.icons.undo)("tuiHint",t.undo),o.xp6(1),o.Q6J("disabled",e.redoDisabled)("focusable",!1)("icon",e.options.icons.redo)("tuiHint",t.redo)}}function B(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-font-size",9),o.qZA())}function F(t,e){if(1&t&&o._UZ(0,"tui-font-style",15),2&t){const t=o.oxw(3);o.Q6J("enabledTools",t.toolsSet)}}function J(t,e){1&t&&o._UZ(0,"tui-align-content",9)}function Z(t,e){1&t&&o._UZ(0,"tui-list-configs",9)}function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",16,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleQuote()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("disabled",e.unorderedList||e.orderedList)("focusable",!1)("icon",e.options.icons.quote)("pseudoActive",e.blockquote)("tuiHint",t.quote)}}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",22,23),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).onLink(n,e)}))("removeLink",(function(){o.CHM(t),o.oxw();const e=o.MAs(1);return o.oxw(3).onLink(e)})),o.qZA()}}function q(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",18,19),o._UZ(2,"button",20,17),o.YNc(4,j,2,0,"ng-template",null,21,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(5),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",t.open)("icon",i.options.icons.link)("pseudoActive",t.open||i.a)("tuiHint",n.link)}}function V(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-edit-link",28),o.NdJ("addLink",(function(e){o.CHM(t),o.oxw();const n=o.MAs(1);return o.oxw(3).setAnchor(n,e)}))("removeLink",(function(){return o.CHM(t),o.oxw(4).removeAnchor()})),o.qZA()}2&t&&o.Q6J("anchorMode",!0)}function U(t,e){if(1&t&&(o.TgZ(0,"tui-hosted-dropdown",24,25),o._UZ(2,"button",26),o.YNc(3,V,1,1,"ng-template",null,27,o.W1O),o.qZA()),2&t){const t=o.MAs(1),e=o.MAs(4),n=o.oxw(2).ngIf,i=o.oxw();o.Q6J("canOpen",i.canOpenAnchor)("content",e),o.xp6(2),o.Q6J("focusable",!1)("icon",i.options.icons.anchor)("pseudoActive",t.open||i.jumpAnchor)("tuiHint",n.insertAnchor)}}function W(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",30,31),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onAttach(e)})),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.attach)("tuiHint",t.attach),o.xp6(2),o.Q6J("accept",e.attachOptions.accept)("multiple",e.attachOptions.multiple)("tuiFocusable",!1)}}function Q(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,F,1,1,"tui-font-style",10),o.YNc(2,J,1,0,"tui-align-content",11),o.YNc(3,Z,1,0,"tui-list-configs",11),o.YNc(4,Y,2,5,"button",12),o.YNc(5,q,6,6,"tui-hosted-dropdown",13),o.YNc(6,U,5,6,"tui-hosted-dropdown",14),o.YNc(7,W,5,6,"ng-container",1),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.formatEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Align)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.List)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Quote)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Link)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Anchor)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Attach))}}function K(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",33,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSubscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.sub)("pseudoActive",e.subscript)("tuiHint",t.subscript)}}function G(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",33,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).toggleSuperscript()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.sup)("pseudoActive",e.superscript)("tuiHint",t.superscript)}}function X(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,K,2,4,"button",32),o.YNc(2,G,2,4,"button",32),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sub)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sup))}}function tt(t,e){if(1&t&&o._UZ(0,"tui-text-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function et(t,e){if(1&t&&o._UZ(0,"tui-highlight-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function nt(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,tt,1,1,"tui-text-color",34),o.YNc(2,et,1,1,"tui-highlight-color",34),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Color)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Hilite))}}function ot(t,e){1&t&&o._UZ(0,"tui-code",9)}function it(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",39,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).onTeX()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.tex)("tuiHint",t.tex)}}function rt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",40),o.TgZ(1,"button",41,17),o.NdJ("click",(function(){return o.CHM(t),o.MAs(4).click()})),o.qZA(),o.TgZ(3,"input",42,43),o.NdJ("change",(function(){o.CHM(t);const e=o.MAs(4);return o.oxw(3).onImage(e)})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.image)("tuiHint",t.image),o.xp6(2),o.Q6J("tuiFocusable",!1)}}function st(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).insertHorizontalRule()})),o.qZA()}if(2&t){const t=o.oxw(2).ngIf,e=o.oxw();o.Q6J("focusable",!1)("icon",e.options.icons.hr)("tuiHint",t.insertHorizontalRule)}}function at(t,e){if(1&t&&(o.TgZ(0,"div",6),o.YNc(1,ot,1,0,"tui-code",11),o.YNc(2,it,2,3,"button",36),o.YNc(3,rt,5,4,"div",37),o.YNc(4,st,2,3,"button",38),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Code)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Tex)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Img)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.HR))}}function lt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.TgZ(1,"button",29,17),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).removeFormat()})),o.qZA(),o.qZA()}if(2&t){const t=o.oxw().ngIf,e=o.oxw();o.xp6(1),o.Q6J("focusable",!1)("icon",e.options.icons.clear)("tuiHint",t.clear)}}function ct(t,e){1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-details",44),o._UZ(2,"tui-details-remove",44),o.qZA())}function dt(t,e){if(1&t&&o._UZ(0,"tui-table-cell-color",35),2&t){const t=o.oxw(3);o.Q6J("colors",t.colors)}}function ut(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-editor-group-tool",44),o.YNc(2,dt,1,1,"tui-table-cell-color",34),o.qZA()),2&t){const t=o.oxw(2);o.xp6(2),o.Q6J("ngIf",!t.enabled(t.editorTool.Table))}}function ht(t,e){if(1&t&&(o.TgZ(0,"div",6),o._UZ(1,"tui-table-create",44),o._UZ(2,"tui-table-row-column-manager",44),o._UZ(3,"tui-table-merge-cells",44),o._UZ(4,"tui-table-cell-color",35),o.qZA()),2&t){const t=o.oxw(2);o.xp6(4),o.Q6J("colors",t.colors)}}function pt(t,e){if(1&t&&(o.TgZ(0,"section",4),o.YNc(1,$,3,8,"div",5),o.YNc(2,B,2,0,"div",5),o.YNc(3,Q,8,7,"div",5),o.YNc(4,X,3,2,"div",5),o.YNc(5,nt,3,2,"div",5),o.YNc(6,at,5,4,"div",5),o.YNc(7,lt,3,3,"div",5),o.YNc(8,ct,3,0,"div",5),o.YNc(9,ut,3,1,"div",5),o.YNc(10,ht,5,1,"div",5),o.TgZ(11,"div",6),o.Hsn(12),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Undo)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Size)),o.xp6(1),o.Q6J("ngIf",t.firstBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Sub)||t.enabled(t.editorTool.Sup)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Color)||t.enabled(t.editorTool.Hilite)),o.xp6(1),o.Q6J("ngIf",t.secondBigBlockEnabled),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Clear)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Details)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Group)),o.xp6(1),o.Q6J("ngIf",t.enabled(t.editorTool.Table))}}const ft=["*"];let mt=(()=>{class t{constructor(t,e,n,s,l,c,d,u){this.el=t,this.editor=e,this.imageLoader=n,this.attachOptions=s,this.filesLoader=l,this.texts$=c,this.options=d,this.destroy$=u,this.dropdowns=i.Mmc,this.colors=this.options.colors,this.disabled=!1,this.linkAdded=new o.vpe,this.texClicked=new o.vpe,this.fileAttached=new o.vpe,this.editorTool=a._,this.toolsSet=new Set(r.Db)}set tools(t){this.toolsSet=new Set(t)}get focused(){return(0,i.zb4)(this.el.nativeElement)||!!this.dropdowns.find((({nativeElement:t})=>(0,i.zb4)(t)))}get focusable(){return!this.focused&&!this.disabled}get unorderedList(){return this.editor.isActive("bulletList")}get orderedList(){return this.editor.isActive("orderedList")}get blockquote(){return this.editor.isActive("blockquote")}get a(){return this.editor.isActive("link")}get jumpAnchor(){return this.editor.isActive("jumpAnchor")}get canOpenAnchor(){return!this.a&&!this.jumpAnchor}get undoDisabled(){return this.editor.undoDisabled()}get redoDisabled(){return this.editor.redoDisabled()}get subscript(){return this.editor.isActive("subscript")}get superscript(){return this.editor.isActive("superscript")}get formatEnabled(){return this.enabled(a._.Bold)||this.enabled(a._.Italic)||this.enabled(a._.Underline)||this.enabled(a._.Strikethrough)}get firstBigBlockEnabled(){return this.formatEnabled||this.enabled(a._.Align)||this.enabled(a._.List)||this.enabled(a._.Quote)||this.enabled(a._.Link)||this.enabled(a._.Anchor)||this.enabled(a._.Attach)}get secondBigBlockEnabled(){return this.enabled(a._.Code)||this.enabled(a._.Tex)||this.enabled(a._.Img)||this.enabled(a._.HR)}onMouseDown(t,e){e.closest("button")||(t.preventDefault(),this.editor.focus())}onBottomFocus(){this.focusLast()}onTopFocus(){this.focusFirst()}onImage(t){var e;const n=null===(e=t.files)||void 0===e?void 0:e[0];t.value="",n&&this.imageLoader(n).pipe((0,c.q)(1),(0,d.R)(this.destroy$)).subscribe((t=>this.addImage(t)))}onAttach(t){var e;const n=Array.from(t.files||[]);t.value="",n&&(null===(e=this.filesLoader)||void 0===e||e.call(this,n).pipe((0,c.q)(1),(0,d.R)(this.destroy$)).subscribe((t=>this.fileAttached.emit(t))))}onTeX(){this.texClicked.emit()}onLink(t,e){t.open=!1,e&&this.editor.toggleLink(e)}setAnchor(t,e){t.open=!1,e&&(this.editor.setAnchor(e),this.editor.selectClosest())}removeAnchor(){this.editor.removeAnchor()}enabled(t){return this.toolsSet.has(t)}undo(){this.editor.undo()}redo(){this.editor.redo()}insertHorizontalRule(){this.editor.setHorizontalRule()}removeFormat(){this.editor.removeFormat()}toggleOrderedList(){this.editor.toggleOrderedList()}toggleQuote(){this.editor.toggleBlockquote()}toggleSubscript(){this.editor.toggleSubscript()}toggleSuperscript(){this.editor.toggleSuperscript()}addImage(t){this.editor.setImage(t)}focusFirst(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool();e&&e.focus()}focusLast(){var t;const e=null===(t=this.navigationManager)||void 0===t?void 0:t.findFirstFocusableTool(!0);e&&e.focus()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq,8),o.Y36(s.$3),o.Y36(l.p7),o.Y36(l.dR),o.Y36(l.zc,8),o.Y36(l.rf),o.Y36(l.mJ),o.Y36(i.a31,2))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-toolbar"]],viewQuery:function(t,e){if(1&t&&(o.Gf(u.B,5),o.Gf(_,5,o.SBq)),2&t){let t;o.iGM(t=o.CRH())&&(e.navigationManager=t.first),o.iGM(t=o.CRH())&&(e.dropdowns=t)}},hostAttrs:["role","toolbar"],hostVars:2,hostBindings:function(t,e){1&t&&o.NdJ("mousedown",(function(t){return e.onMouseDown(t,t.target)})),2&t&&o.ekj("_disabled",e.disabled)},inputs:{colors:"colors",disabled:"disabled",tools:"tools"},outputs:{linkAdded:"linkAdded",texClicked:"texClicked",fileAttached:"fileAttached"},features:[o._Bn([i.a31])],ngContentSelectors:ft,decls:7,vars:8,consts:[["type","button",1,"t-prevent-parent-label-behavior"],[4,"ngIf"],[3,"tuiFocusable","focus"],["tuiToolbarNavigationManager","","class","t-tools-wrapper",4,"ngIf"],["tuiToolbarNavigationManager","",1,"t-tools-wrapper"],["class","t-block",4,"ngIf"],[1,"t-block"],["appearance","icon","automation-id","toolbar__undo-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","tuiHint","click"],["appearance","icon","automation-id","toolbar__redo-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","tuiHint","click"],["tuiItem","",1,"t-tool","t-wrapper"],["tuiItem","","class","t-tool t-wrapper",3,"enabledTools",4,"ngIf"],["tuiItem","","class","t-tool t-wrapper",4,"ngIf"],["appearance","icon","automation-id","toolbar__quote-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"disabled","focusable","icon","pseudoActive","tuiHint","click",4,"ngIf"],["tuiItem","","class","t-wrapper",3,"canOpen","content",4,"ngIf"],["class","t-wrapper",3,"canOpen","content",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"enabledTools"],["appearance","icon","automation-id","toolbar__quote-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"disabled","focusable","icon","pseudoActive","tuiHint","click"],["button",""],["tuiItem","",1,"t-wrapper",3,"canOpen","content"],["link",""],["appearance","icon","automation-id","toolbar__link-button","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","pseudoActive","tuiHint"],["linkDropdown",""],[3,"addLink","removeLink"],["dropdown",""],[1,"t-wrapper",3,"canOpen","content"],["anchor",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",3,"focusable","icon","pseudoActive","tuiHint"],["anchorDropdown",""],[3,"anchorMode","addLink","removeLink"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"focusable","icon","tuiHint","click"],["type","file",1,"t-file-upload",3,"accept","multiple","tuiFocusable","change"],["fileUpload",""],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"focusable","icon","pseudoActive","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool","t-tool_margin",3,"focusable","icon","pseudoActive","tuiHint","click"],["tuiItem","","class","t-tool t-wrapper",3,"colors",4,"ngIf"],["tuiItem","",1,"t-tool","t-wrapper",3,"colors"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool",3,"focusable","icon","tuiHint","click",4,"ngIf"],["tuiItem","","class","t-wrapper",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button","class","t-tool t-tool_margin",3,"focusable","icon","tuiHint","click",4,"ngIf"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","tuiItem","","type","button",1,"t-tool",3,"focusable","icon","tuiHint","click"],["tuiItem","",1,"t-wrapper"],["appearance","icon","size","s","tuiHintDescribe","","tuiHintDirection","top-left","tuiIconButton","","type","button",1,"t-tool",3,"focusable","icon","tuiHint","click"],["accept","image/*","type","file",1,"t-image",3,"tuiFocusable","change"],["image",""],["tuiItem","",1,"t-tool","t-tool_margin"]],template:function(t,e){1&t&&(o.F$t(),o._UZ(0,"button",0),o.YNc(1,z,1,0,"ng-container",1),o.ALo(2,"async"),o.TgZ(3,"div",2),o.NdJ("focus",(function(){return e.onTopFocus()})),o.qZA(),o.TgZ(4,"div",2),o.NdJ("focus",(function(){return e.onBottomFocus()})),o.qZA(),o.YNc(5,pt,13,10,"section",3),o.ALo(6,"async")),2&t&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,4,e.editor.stateChange$)),o.xp6(2),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("tuiFocusable",e.focusable),o.xp6(1),o.Q6J("ngIf",o.lcZ(6,6,e.texts$)))},directives:[h.O5,p.t,u.B,f.v,m.$,g.w,b.D,v.x,y.t,w.D,x.m,k.h,C.X,M.w,S.o,A.l,O.G,T.U,N.T,E.y,I.U,D.d,P.p,H.l,L._,R.Y],pipes:[h.Ov],styles:['.t-tools-wrapper[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:-webkit-sticky;position:sticky;top:0;display:flex;padding:.25rem .75rem;overflow:auto;flex-wrap:wrap;box-shadow:0 .125rem .1875rem #0000001a}.t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar, .t-tools-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-tools-wrapper._disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-block[_ngcontent-%COMP%]{display:flex;padding:.25rem 0}.t-block[_ngcontent-%COMP%]:not(:last-child):after{content:"";display:block;margin:0 .25rem;width:1px;background:var(--tui-secondary-active)}.t-tool[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}button.t-tool[_ngcontent-%COMP%]:hover, .t-tool[_ngcontent-%COMP%] button:hover{background:var(--tui-secondary-hover)}.t-tool_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-font[_ngcontent-%COMP%]{padding:.3em 0;outline:none;width:100%;pointer-events:none}.t-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;font-size:0;opacity:0;cursor:pointer}.t-image[_ngcontent-%COMP%]::-webkit-file-upload-button{display:none}.t-file-upload[_ngcontent-%COMP%]{display:none}.t-color-picker[_ngcontent-%COMP%] tui-hosted-dropdown, .t-color-picker[_ngcontent-%COMP%] tui-color-picker, .t-color-picker[_ngcontent-%COMP%] tui-color-edit{display:none}.t-prevent-parent-label-behavior[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),t})()},69725:(t,e,n)=>{n.d(e,{hK:()=>i,pH:()=>c,pL:()=>f,nE:()=>a,_s:()=>d,Ci:()=>u,jU:()=>p,DN:()=>h,sw:()=>o,Db:()=>s,RR:()=>l});const o=new Map([["color-black-100","#909090"],["color-black-200","#666666"],["color-black-300","#333333"],["color-blue-100","#1771e6"],["color-blue-200","#1464cc"],["color-blue-300","#0953b3"],["color-gray-100","#f5f5f6"],["color-gray-200","#e7e8ea"],["color-gray-300","#cbcfd3"],["color-gray-400","#959ba4"],["color-gray-500","#79818c"],["color-gray-600","#616871"],["color-green-100","#39b54a"],["color-green-200","#2ca53a"],["color-green-300","#168a21"],["color-light-blue-100","#ecf1f7"],["color-light-blue-200","#e4ebf3"],["color-light-blue-300","#dde4ed"],["color-red-100","#e01f19"],["color-red-200","#d3120e"],["color-red-300","#c40b08"],["color-yellow-100","#FFDD2C"],["color-yellow-200","#FCC521"],["color-yellow-300","#FAB618"],["transparent","transparent"]]),i="rgb(51, 51, 51)";var r=n(72023);const s=[r._.Undo,r._.Size,r._.Bold,r._.Italic,r._.Underline,r._.Align,r._.List,r._.Quote,r._.Link,r._.Anchor,r._.Color,r._.Hilite,r._.Clear,r._.Strikethrough,r._.Code,r._.Img,r._.HR,r._.Sup,r._.Sub,r._.Table,r._.Details],a=s;function l(t){return[{px:13,name:t.small},{px:15,name:t.normal},{px:17,name:t.large},{px:24,family:"var(--tui-font-heading)",name:t.subtitle,headingLevel:2,weight:"bold"},{px:30,family:"var(--tui-font-heading)",name:t.title,headingLevel:1,weight:"bold"}]}const c=["id","class","src","style","controls","loop","muted","preload","autoplay","width","height","controlsList"],d="#",u="https://",h=":",p="://",f={protocol:u}},5915:(t,e,n)=>{n.d(e,{BN:()=>i,JU:()=>r.JU,mJ:()=>r.mJ,$3:()=>r.$3});var o=n(74788);let i=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var r=n(46561)},46561:(t,e,n)=>{n.d(e,{JU:()=>o.J,mJ:()=>r,$3:()=>s.$});var o=n(6723),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})();var s=n(20672)},6723:(t,e,n)=>{n.d(e,{J:()=>l});var o=n(74788),i=n(42600),r=n(40401),s=n(46782),a=n(20672);let l=(()=>{class t{constructor(t,e,n,o,i,r){this.el=t,this.renderer=e,this.editor=n,this.editorContainer=o,this.editorLoaded$=i,this.valueChange=this.editor.valueChange$,this.stateChange=this.editor.stateChange$,this.editorLoaded$.pipe((0,s.R)(r)).subscribe((()=>{this.renderer.appendChild(this.el.nativeElement,this.editorContainer)}))}set value(t){this.editor.setValue(t)}set editable(t){this.editor.editable=t}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(a.$),o.Y36(r.Y1),o.Y36(r.ZW),o.Y36(i.a31,2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiTiptapEditor",""]],inputs:{value:"value",editable:"editable"},outputs:{valueChange:"valueChange",stateChange:"stateChange"},features:[o._Bn([i.a31])]}),t})()},20672:(t,e,n)=>{n.d(e,{$:()=>f});var o=n(42600),i=n(79765),r=n(74788);let s=(()=>{class t{constructor(){this.stateChange$=new i.xQ,this.valueChange$=new i.xQ}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t}),t})();var a=n(69725),l=n(40401),c=n(63097),d=n(62463),u=n(39761),h=n(88002),p=n(87519);let f=(()=>{class t extends s{constructor(t){super(),this.editorRef=t,this.editorRef.subscribe((t=>{this.editor=t;const e=()=>{this.stateChange$.next();const e=t.getHTML(),n=(o=t.getJSON().content,Array.isArray(o)&&1===o.length&&"paragraph"===o[0].type&&!o[0].hasOwnProperty("content")?"":e);var o;this.valueChange$.next(n)};t.on("transaction",e.bind(this)),t.on("update",e.bind(this))}))}get isFocused(){return this.editor.isFocused}get html(){return this.editor.getHTML()}get editable(){return this.editor.isEditable}set editable(t){this.editor.setEditable(t,!1)}get state(){return this.editor.state}getOriginTiptapEditor(){return this.editor}undoDisabled(){return!this.editor.can().undo()}redoDisabled(){return!this.editor.can().redo()}getFontColor(){return this.editor.getAttributes("textStyle").fontColor||a.hK}getFontSize(){return parseInt(this.editor.getAttributes("textStyle").fontSize,10)}setFontSize(t){this.editor.chain().setMark("textStyle",{fontSize:(0,o.O9r)(t)}).run()}getBackgroundColor(){var t;return(null===(t=this.editor)||void 0===t?void 0:t.getAttributes("textStyle").backgroundColor)||"transparent"}getCellColor(){return this.editor.getAttributes("tableCell").background||this.editor.getAttributes("tableHeader").background}getGroupColor(){var t,e,n,o;if(this.editor.isActive("group")){const i=null!==(e=null===(t=this.editor.getAttributes("group"))||void 0===t?void 0:t.style)&&void 0!==e?e:"",r=(0,c.jx)(i);return null!==(o=null!==(n=r["background-color"])&&void 0!==n?n:r.background)&&void 0!==o?o:""}return""}onAlign(t){this.editor.chain().focus().setTextAlign(t).run()}setImage(t){this.editor.chain().focus().command((({commands:e,state:n})=>{var o;const i=null!==(o=e.setEditableImage)&&void 0!==o?o:e.setImage;if(i){const o=n.selection.anchor;return i({src:t}),e.setTextSelection(o),!0}return!1})).run()}undo(){this.editor.chain().undo().run()}redo(){this.editor.chain().redo().run()}setHorizontalRule(){this.editor.chain().focus().setHorizontalRule().run()}removeFormat(){this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}setFontColor(t){this.editor.chain().focus().setFontColor(t).run()}setBackgroundColor(t){this.editor.chain().focus().setBackgroundColor(t).run()}toggleUnderline(){this.editor.chain().focus().toggleUnderline().run()}toggleStrike(){this.editor.chain().focus().toggleStrike().run()}toggleOrderedList(){this.editor.chain().focus().toggleOrderedList().run()}toggleUnorderedList(){this.editor.chain().focus().toggleBulletList().run()}togglePre(){this.editor.chain().focus().toggleCodeBlock().run()}sinkListItem(){this.editor.chain().focus().sinkListItem("listItem").run()}liftListItem(){this.editor.chain().focus().liftListItem("listItem").run()}isActive(t){return this.editor.isActive(t)}isActive$(t){return this.stateChange$.pipe((0,u.O)(null),(0,h.U)((()=>this.isActive(t))),(0,p.x)())}toggleBold(){this.editor.chain().focus().toggleBold().run()}toggleCode(){this.editor.chain().focus().toggleCode().run()}toggleItalic(){this.editor.chain().focus().toggleItalic().run()}toggleBlockquote(){this.editor.chain().focus().toggleBlockquote().run()}toggleSubscript(){this.editor.chain().focus().toggleSubscript().run()}toggleSuperscript(){this.editor.chain().focus().toggleSuperscript().run()}toggleCodeBlock(){this.editor.chain().focus().toggleCodeBlock().run()}insertTable(t,e){this.editor.chain().focus().insertTable({cols:t,rows:e}).run()}addColumnAfter(){this.editor.chain().focus().addColumnAfter().run()}addColumnBefore(){this.editor.chain().focus().addColumnBefore().run()}addRowAfter(){this.editor.chain().focus().addRowAfter().run()}addRowBefore(){this.editor.chain().focus().addRowBefore().run()}deleteColumn(){this.editor.chain().focus().deleteColumn().run()}deleteRow(){this.editor.chain().focus().deleteRow().run()}mergeCells(){this.editor.chain().focus().mergeCells().run()}splitCell(){this.editor.chain().focus().splitCell().run()}canMergeCells(){return this.editor.can().mergeCells()}canSplitCells(){return this.editor.can().splitCell()}setHeading(t){this.editor.chain().focus().setHeading({level:t}).run()}setParagraph(t){this.editor.chain().focus().setParagraph().run(),t&&this.editor.chain().setMark("textStyle",t).run()}setHardBreak(){this.editor.chain().setHardBreak().run()}setTextSelection(t){this.editor.commands.setTextSelection(t)}toggleLink(t){this.editor.chain().focus().toggleLink({href:t}).run()}setLink(t){this.editor.chain().focus().setLink({href:t}).run()}unsetLink(){this.editor.chain().focus().unsetLink().run()}focus(){this.editor.chain().focus().run()}setValue(t){t===this.html||""===t&&"

"===this.html||(this.editor.commands.setContent(t),this.editor.view.updateState(d.yy.create({schema:this.editor.state.schema,doc:this.editor.state.doc,selection:this.editor.state.selection,storedMarks:this.editor.state.storedMarks,plugins:this.editor.state.plugins})))}destroy(){this.editor.destroy()}setCellColor(t){this.editor.chain().focus().setCellBackground(t).run()}selectClosest(){const t=this.editor.state.selection.anchor,{schema:e,doc:n}=this.editor.state,o=(0,c.Yz)(n.resolve(t),e.marks.link);o&&this.editor.chain().setTextSelection(o).run()}enter(){this.editor.commands.enter()}setDetails(){this.editor.commands.setDetails()}removeDetails(){this.editor.commands.removeDetails()}setGroup(){this.editor.commands.setGroup()}removeGroup(){this.editor.commands.removeGroup()}setGroupHilite(t){this.editor.commands.setGroupHilite(t)}setAnchor(t){this.editor.commands.setAnchor(t.replace("#",""))}removeAnchor(){this.editor.commands.removeAnchor()}setFileLink(t){this.editor.commands.setFileLink(t)}setYoutubeVideo(t){this.editor.commands.setYoutubeVideo(t)}setIframe(t){this.editor.commands.setIframe(t)}removeEmptyTextStyle(){this.editor.commands.removeEmptyTextStyle()}toggleMark(t,e,n){this.editor.commands.toggleMark(t,e,n)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(l.ZW))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},72023:(t,e,n)=>{n.d(e,{_:()=>o});var o=(()=>(function(t){t.Align="justify",t.Anchor="anchor",t.Attach="attach",t.Bold="bold",t.Clear="clear",t.Code="code",t.Color="foreColor",t.Details="details",t.Group="group",t.HR="insertHorizontalRule",t.Hilite="hiliteColor",t.Img="image",t.Italic="italic",t.Link="link",t.List="list",t.MergeCells="mergeCells",t.Quote="quote",t.RowsColumnsManaging="rowsColumnsManaging",t.Size="fontSize",t.SplitCells="splitCells",t.Strikethrough="strikeThrough",t.Sub="subscript",t.Sup="superscript",t.Table="insertTable",t.Tex="tex",t.Underline="underline",t.Undo="undo"}(o||(o={})),o))()},44:(t,e,n)=>{n.r(e),n.d(e,{BackgroundColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"backgroundColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{backgroundColor:{default:null,renderHTML:({backgroundColor:t})=>t?{style:`background-color: ${t}`}:{},parseHTML:({style:t})=>t.backgroundColor.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setBackgroundColor:t=>({chain:e})=>e().setMark("textStyle",{backgroundColor:t}).run(),unsetBackgroundColor:()=>({chain:t})=>t().setMark("textStyle",{backgroundColor:null}).run()})})},58101:(t,e,n)=>{n.r(e),n.d(e,{TuiFileLink:()=>o});const o=n(11046).Extension.create({name:"fileLink",addCommands:()=>({setFileLink:t=>({state:e,chain:n})=>{const{selection:o}=e,i=' ';return(Math.abs(o.to-o.from)>0?n().toggleMark("link",{href:t.link},{extendEmptyMarkRange:!0}).setTextSelection(o.to).insertContent(i):n().insertContent(`${t.name}${i}`)).setTextSelection(o.to).run()}})})},30163:(t,e,n)=>{n.r(e),n.d(e,{FontColor:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontColor",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontColor:{default:null,renderHTML:({fontColor:t})=>t?{style:`color: ${t}`}:{},parseHTML:({style:t})=>t.color.replace(/['"]+/g,""),keepOnSplit:!1}}}]},addCommands:()=>({setFontColor:t=>({chain:e})=>e().setMark("textStyle",{fontColor:t}).run(),unsetFontColor:()=>({chain:t})=>t().setMark("textStyle",{fontColor:null}).run()})})},1604:(t,e,n)=>{n.r(e),n.d(e,{TuiFontSize:()=>o}),n(84402);const o=n(11046).Extension.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:({style:t})=>t.fontSize,renderHTML:({fontSize:t})=>t?{style:`font-size: ${t}`}:{}}}}]},addCommands:()=>({setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})})},19818:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_GROUP_DEFAULT_OPTIONS:()=>r,createGroupExtension:()=>s});var o=n(63097),i=n(11046);const r={groupNodeClass:"tui-group-node",groupPointerNodeClass:"tui-group-pointer",nested:!0,draggable:!0,createOnEnter:!1},s=(t={})=>{const{draggable:e,nested:n,groupNodeClass:s,groupPointerNodeClass:a,createOnEnter:l}=Object.assign(Object.assign({},r),t);return i.Node.create({name:"group",draggable:e,group:"block",content:n?"block+":"block",addAttributes:()=>({style:{default:null,parseHTML:t=>t.getAttribute("style"),renderHTML:t=>t.style?{style:t.style}:{}}}),parseHTML:()=>[{tag:'div[data-type="group"]'}],renderHTML:({HTMLAttributes:t})=>["div",(0,i.mergeAttributes)(t,{"data-type":"group"}),0],addNodeView:()=>({HTMLAttributes:t,node:n})=>{const o=document.createElement("div"),i=document.createElement("div");if(o.classList.add(s),i.setAttribute("data-type","group"),t.style&&(n.attrs.style=t.style,i.setAttribute("style",t.style)),e){const t=document.createElement("div");t.classList.add(a),t.innerHTML="",t.contentEditable="false",o.append(t,i)}else o.append(i);return{dom:o,contentDOM:i}},addCommands(){return{setGroup:()=>({commands:t,state:e})=>{this.editor.chain().focus().run();const n=(0,o.Ap)(e,""),i=`
${n.trim().startsWith("

")?n:`

${n}

`}
`;return t.insertContent(i)},setGroupHilite:t=>({editor:e})=>{for(let n=e.state.selection.$anchor,o=n.depth;o>0;o--){const i=n.node(o);if(i.type.name===this.name){setTimeout((()=>e.commands.updateAttributes(i.type,{style:`background: ${t}`})));break}}return!0},removeGroup:()=>({state:t,dispatch:e})=>(0,o.yU)(t,e,this.name)}},addKeyboardShortcuts(){return l?{Enter:this.editor.commands.setGroup}:{}}})}},33626:(t,e,n)=>{n.r(e),n.d(e,{TUI_IFRAME_EDITOR_OPTIONS:()=>a,TuiIframeEditorComponent:()=>c,TuiIframeEditorModule:()=>p,createIframeEditorExtension:()=>h});var o=n(91211),i=n(42600),r=n(8274),s=n(74788);const a=new s.OlP("[TUI_IFRAME_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0,minHeight:100,maxHeight:1/0})});var l=n(22916);let c=(()=>{class t extends r._3{constructor(t,e){super(),this.options=t,this.sanitizer=e}get src(){var t;return this.sanitizer.bypassSecurityTrustResourceUrl(null!==(t=this.attrs.src)&&void 0!==t?t:"")}updateSize([t,e]){this.currentWidth=Math.max(this.options.minWidth,Math.min(this.options.maxWidth,t)),this.currentHeight=Math.max(this.options.minHeight,Math.min(this.options.maxHeight,e)),this.attrs.width=this.currentWidth,this.attrs.height=this.currentHeight,this.editor.commands.setContent(this.editor.getJSON())}}return t.ɵfac=function(e){return new(e||t)(s.Y36(a),s.Y36(o.H7))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-iframe-editor"]],features:[s._Bn([i.a31]),s.qOj],decls:2,vars:13,consts:[[3,"height","width","sizeChange"],[3,"height","src","width"]],template:function(t,e){1&t&&(s.TgZ(0,"tui-editor-resizable",0),s.NdJ("sizeChange",(function(t){return e.updateSize(t)})),s._UZ(1,"iframe",1),s.qZA()),2&t&&(s.Q6J("height",e.height)("width",e.width),s.xp6(1),s.Udp("max-height",e.options.maxHeight)("max-width",e.options.maxWidth)("min-height",e.options.minHeight)("min-width",e.options.minWidth),s.Q6J("height",e.height)("src",e.src,s.uOi)("width",e.width))},directives:[l.V],styles:["iframe[_ngcontent-%COMP%]{display:inline;pointer-events:none}"],changeDetection:0}),t})();var d=n(13704),u=n(11046);const h=t=>u.Node.create({name:"iframe",group:"block",atom:!0,draggable:!1,parseHTML:()=>[{tag:'iframe[data-type="iframe-editor"]'}],addAttributes(){return{src:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("src")},frameborder:{default:0,keepOnSplit:!1,parseHTML:t=>t.getAttribute("frameborder")},width:{default:"100%",keepOnSplit:!1,parseHTML:t=>t.getAttribute("width")},height:{default:null,keepOnSplit:!1,parseHTML:t=>t.getAttribute("height")},allowfullscreen:{keepOnSplit:!1,default:this.options.allowFullscreen,parseHTML:t=>t.getAttribute("allowfullscreen")}}},renderHTML:({HTMLAttributes:t})=>["iframe",(0,u.mergeAttributes)(t,{"data-type":"iframe-editor"})],addNodeView:()=>e=>new d.y(c,e,Object.assign({injector:t},e)),addCommands(){return{setIframe:t=>({commands:e,state:n})=>{const o=n.selection.anchor;return e.enter(),e.setTextSelection(o),e.insertContent({type:this.name,attrs:t}),e.setTextSelection(n.selection.anchor),!0}}}});let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[r.Sl]]}),t})()},89681:(t,e,n)=>{n.r(e),n.d(e,{TUI_EDITOR_MAX_IMAGE_WIDTH:()=>d,TUI_EDITOR_MIN_IMAGE_WIDTH:()=>c,TUI_IMAGE_EDITOR_OPTIONS:()=>u,TuiImageEditorComponent:()=>p,TuiImageEditorModule:()=>A,createImageEditorExtension:()=>S,tuiCreateImageEditorExtension:()=>M});var o=n(12057),i=n(74788),r=n(91211),s=n(62579),a=n(42600),l=n(8274);const c=new i.OlP("[TUI_EDITOR_MIN_IMAGE_WIDTH]",{factory:()=>null}),d=new i.OlP("[TUI_EDITOR_MAX_IMAGE_WIDTH]",{factory:()=>null}),u=new i.OlP("[TUI_IMAGE_EDITOR_OPTIONS]",{factory:()=>({minWidth:100,maxWidth:1/0})});var h=n(22916);let p=(()=>{class t extends l._3{constructor(t,e,n,o,i,r,s){super(),this.minWidth=t,this.maxWidth=e,this.options=n,this.doc=o,this.sanitizer=i,this.el=r,this.win=s,this.contenteditable=!0,this.focused=!1}get dragHandle(){var t;return null!==(t=this.attrs.draggable)&&void 0!==t?t:null}get height(){return null}get alt(){return this.attrs.alt||""}get title(){return this.attrs.title||""}get src(){return this.sanitizer.bypassSecurityTrustResourceUrl(this.attrs.src)}currentTargetIsFocused(t){this.focused=this.el.nativeElement.contains(t),this.focused&&this.selectFakeText()}updateSize([t]){var e,n;const o=null!==(e=this.minWidth)&&void 0!==e?e:this.options.minWidth,i=null!==(n=this.maxWidth)&&void 0!==n?n:this.options.maxWidth;this.currentWidth=Math.max(o,Math.min(i,t)),this.attrs.width=this.currentWidth,this.editor.commands.setContent(this.editor.getJSON())}selectFakeText(){var t,e,n;const o=this.doc.createRange();null===(t=this.el.nativeElement.querySelector("p"))||void 0===t||t.focus(),o.selectNode(this.el.nativeElement),null===(e=this.win.getSelection())||void 0===e||e.removeAllRanges(),null===(n=this.win.getSelection())||void 0===n||n.addRange(o)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(c),i.Y36(d),i.Y36(u),i.Y36(o.K0),i.Y36(r.H7),i.Y36(i.SBq),i.Y36(s.m9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-image-editor"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("click.silent",(function(t){return e.currentTargetIsFocused(t.target)}),!1,i.evT),2&t&&i.uIk("contenteditable",e.contenteditable)("data-drag-handle",e.dragHandle)},features:[i._Bn([a.a31]),i.qOj],decls:4,vars:12,consts:[["contenteditable","false",1,"t-emulate-inline-node"],[3,"autoHeight","width","sizeChange"],["contenteditable","false",3,"alt","src","title","width"]],template:function(t,e){1&t&&(i._UZ(0,"p",0),i.TgZ(1,"tui-editor-resizable",1),i.NdJ("sizeChange",(function(t){return e.updateSize(t)})),i._UZ(2,"img",2),i.qZA(),i._UZ(3,"p",0)),2&t&&(i.xp6(1),i.Q6J("autoHeight",!0)("width",e.width),i.xp6(1),i.Udp("max-width",e.options.maxWidth,"px")("min-width",e.options.minWidth,"px"),i.ekj("ProseMirror-selectednode",e.focused),i.Q6J("alt",e.alt)("src",e.src,i.LSH)("title",e.title)("width",e.width))},directives:[h.V],styles:["[data-drag-handle][_nghost-%COMP%]{cursor:move}img[_ngcontent-%COMP%]{pointer-events:none}.t-emulate-inline-node[_ngcontent-%COMP%]{display:inline-block;margin:0;height:0}"],changeDetection:0}),t})();var f=n(13704),m=n(40401),g=n(11046),b=n(44632),v=n(62463),y=n(15257),w=n(70409);const x=[{tag:'img[data-type="image-editor"]'}],k={src:{default:"",keepOnSplit:!1},width:{default:300,keepOnSplit:!1},alt:{default:"",keepOnSplit:!1},title:{default:"",keepOnSplit:!1}};function C(t){return(e,n)=>{var o;const i=n instanceof DragEvent?n.dataTransfer:n.clipboardData,r=Array.from(null!==(o=null==i?void 0:i.files)&&void 0!==o?o:[]).filter((t=>/image/i.test(t.type)));r.length&&n.preventDefault();const s=t.get(m.p7);r.forEach((t=>{s(t).pipe((0,y.q)(1),(0,w.o)((()=>!e.isDestroyed))).subscribe((t=>{const n=e.state.schema.nodes.imageEditor.create({src:t}),o=e.state.tr.replaceSelectionWith(n);null===setTimeout||void 0===setTimeout||setTimeout((()=>{e.isDestroyed||e.dispatch(o)}))}))}))}}function M({injector:t,draggable:e}){return S(t,{draggable:e})}function S(t,{draggable:e}={}){const n=!(0,a.PcC)(e)||e;return b.Image.extend({name:"imageEditor",group:"inline",inline:!0,atom:!0,priority:0,selectable:!0,draggable:n,parseHTML:()=>x,addAttributes:()=>Object.assign(Object.assign({},k),{draggable:{default:n?"":null,keepOnSplit:!1}}),renderHTML:({HTMLAttributes:t})=>["img",(0,g.mergeAttributes)(t,{"data-type":"image-editor"})],addNodeView:()=>e=>new f.y(p,e,Object.assign({injector:t},e)),addCommands(){return{setEditableImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addProseMirrorPlugins:()=>[new v.Sy({props:{handleDOMEvents:{paste:C(t),drop:C(t)}}})]})}let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[o.ez,l.Sl]]}),t})()},13575:(t,e,n)=>{function o(t){return t.isActive("bulletList")||t.isActive("orderedList")}n.r(e),n.d(e,{TuiTabExtension:()=>i,tuiIsOrderedOrBulletList:()=>o});const i=n(11046).Extension.create({name:"indent",addKeyboardShortcuts(){return{Tab:()=>!o(this.editor)&&this.editor.commands.insertContent("\t")}}})},48239:(t,e,n)=>{n.r(e),n.d(e,{TuiLink:()=>Xt});var o=n(63097),i=n(11046);const r="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",s="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",a=(t,e)=>{for(const n in e)t[n]=e[n];return t},l="numeric",c="ascii",d="alpha",u="asciinumeric",h="alphanumeric",p="domain",f="emoji",m="scheme",g="slashscheme",b="whitespace";function v(t,e){return t in e||(e[t]=[]),e[t]}function y(t,e,n){e[l]&&(e[u]=!0,e[h]=!0),e[c]&&(e[u]=!0,e[d]=!0),e[u]&&(e[h]=!0),e[d]&&(e[h]=!0),e[h]&&(e[p]=!0),e[f]&&(e[p]=!0);for(const o in e){const e=v(o,n);e.indexOf(t)<0&&e.push(t)}}function w(t){void 0===t&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}w.groups={},w.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let n=0;n=0&&(n[o]=!0);return n}(s.t,o),n);y(r,t,o)}else n&&y(r,n,o);s.t=r}return i.j[t]=s,s}};const x=(t,e,n,o,i)=>t.ta(e,n,o,i),k=(t,e,n,o,i)=>t.tr(e,n,o,i),C=(t,e,n,o,i)=>t.ts(e,n,o,i),M=(t,e,n,o,i)=>t.tt(e,n,o,i),S="WORD",A="UWORD",O="LOCALHOST",T="TLD",N="UTLD",E="SCHEME",I="SLASH_SCHEME",D="NUM",P="WS",H="NL",L="OPENBRACE",R="CLOSEBRACE",_="OPENBRACKET",z="CLOSEBRACKET",$="OPENPAREN",B="CLOSEPAREN",F="OPENANGLEBRACKET",J="CLOSEANGLEBRACKET",Z="FULLWIDTHLEFTPAREN",Y="FULLWIDTHRIGHTPAREN",j="LEFTCORNERBRACKET",q="RIGHTCORNERBRACKET",V="LEFTWHITECORNERBRACKET",U="RIGHTWHITECORNERBRACKET",W="FULLWIDTHLESSTHAN",Q="FULLWIDTHGREATERTHAN",K="AMPERSAND",G="APOSTROPHE",X="ASTERISK",tt="AT",et="BACKSLASH",nt="BACKTICK",ot="CARET",it="COLON",rt="COMMA",st="DOLLAR",at="DOT",lt="EQUALS",ct="EXCLAMATION",dt="HYPHEN",ut="PERCENT",ht="PIPE",pt="PLUS",ft="POUND",mt="QUERY",gt="QUOTE",bt="SEMI",vt="SLASH",yt="TILDE",wt="UNDERSCORE",xt="EMOJI",kt="SYM";var Ct=Object.freeze({__proto__:null,WORD:S,UWORD:A,LOCALHOST:O,TLD:T,UTLD:N,SCHEME:E,SLASH_SCHEME:I,NUM:D,WS:P,NL:H,OPENBRACE:L,CLOSEBRACE:R,OPENBRACKET:_,CLOSEBRACKET:z,OPENPAREN:$,CLOSEPAREN:B,OPENANGLEBRACKET:F,CLOSEANGLEBRACKET:J,FULLWIDTHLEFTPAREN:Z,FULLWIDTHRIGHTPAREN:Y,LEFTCORNERBRACKET:j,RIGHTCORNERBRACKET:q,LEFTWHITECORNERBRACKET:V,RIGHTWHITECORNERBRACKET:U,FULLWIDTHLESSTHAN:W,FULLWIDTHGREATERTHAN:Q,AMPERSAND:K,APOSTROPHE:G,ASTERISK:X,AT:tt,BACKSLASH:et,BACKTICK:nt,CARET:ot,COLON:it,COMMA:rt,DOLLAR:st,DOT:at,EQUALS:lt,EXCLAMATION:ct,HYPHEN:dt,PERCENT:ut,PIPE:ht,PLUS:pt,POUND:ft,QUERY:mt,QUOTE:gt,SEMI:bt,SLASH:vt,TILDE:yt,UNDERSCORE:wt,EMOJI:xt,SYM:kt});const Mt=/[a-z]/,St=/\p{L}/u,At=/\p{Emoji}/u,Ot=/\d/,Tt=/\s/,Nt="\n",Et="️",It="‍";let Dt=null,Pt=null;function Ht(t,e,n,o,i){let r;const s=e.length;for(let n=0;n=0;)i++;if(i>0){e.push(n.join(""));for(let e=parseInt(t.substring(o,o+i),10);e>0;e--)n.pop();o+=i}else n.push(t[o]),o++}return e}const Rt={defaultProtocol:"http",events:null,format:zt,formatHref:zt,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function _t(t,e){void 0===e&&(e=null);let n=a({},Rt);t&&(n=a(n,t instanceof _t?t.o:t));const o=n.ignoreTags,i=[];for(let t=0;tt,check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=null!=e;let i=this.o[t];return i?("object"==typeof i?(i=n.t in i?i[n.t]:Rt[t],"function"==typeof i&&o&&(i=i(e,n))):"function"==typeof i&&o&&(i=i(e,n.t,n)),i):i},getObj(t,e,n){let o=this.o[t];return"function"==typeof o&&null!=e&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}},$t.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return void 0===t&&(t=Rt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),i=t.get("tagName",n,e),r=this.toFormattedString(t),s={},l=t.get("className",n,e),c=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),h=t.getObj("events",n,e);return s.href=o,l&&(s.class=l),c&&(s.target=c),d&&(s.rel=d),u&&a(s,u),{tagName:i,attributes:s,content:r,eventListeners:h}}};const Ft=Bt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Jt=Bt("text"),Zt=Bt("nl"),Yt=Bt("url",{isLink:!0,toHref(t){return void 0===t&&(t=Rt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==O&&t[1].t===it}}),jt=t=>new w(t);function qt(t,e,n){const o=n[0].s,i=n[n.length-1].e;return new t(e.slice(o,i),n)}const Vt="undefined"!=typeof console&&console&&console.warn||(()=>{}),Ut={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Wt(t,e){if(void 0===e&&(e=!1),Ut.initialized&&Vt(`linkifyjs: already initialized - will not register custom scheme "${t}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Ut.customSchemes.push([t,e])}function Qt(t,e,n){if(void 0===e&&(e=null),void 0===n&&(n=null),e&&"object"==typeof e){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new _t(n),i=function(t){return Ut.initialized||function(){Ut.scanner=function(t){void 0===t&&(t=[]);const e={};w.groups=e;const n=new w;null==Dt&&(Dt=Lt(r)),null==Pt&&(Pt=Lt(s)),M(n,"'",G),M(n,"{",L),M(n,"}",R),M(n,"[",_),M(n,"]",z),M(n,"(",$),M(n,")",B),M(n,"<",F),M(n,">",J),M(n,"(",Z),M(n,")",Y),M(n,"「",j),M(n,"」",q),M(n,"『",V),M(n,"』",U),M(n,"<",W),M(n,">",Q),M(n,"&",K),M(n,"*",X),M(n,"@",tt),M(n,"`",nt),M(n,"^",ot),M(n,":",it),M(n,",",rt),M(n,"$",st),M(n,".",at),M(n,"=",lt),M(n,"!",ct),M(n,"-",dt),M(n,"%",ut),M(n,"|",ht),M(n,"+",pt),M(n,"#",ft),M(n,"?",mt),M(n,'"',gt),M(n,"/",vt),M(n,";",bt),M(n,"~",yt),M(n,"_",wt),M(n,"\\",et);const o=k(n,Ot,D,{[l]:!0});k(o,Ot,o);const i=k(n,Mt,S,{[c]:!0});k(i,Mt,i);const h=k(n,St,A,{[d]:!0});k(h,Mt),k(h,St,h);const v=k(n,Tt,P,{[b]:!0});M(n,Nt,H,{[b]:!0}),M(v,Nt),k(v,Tt,v);const x=k(n,At,xt,{[f]:!0});k(x,At,x),M(x,Et,x);const Rt=M(x,It);k(Rt,At,x);const _t=[[Mt,i]],zt=[[Mt,null],[St,h]];for(let t=0;tt[0]>e[0]?1:-1));for(let e=0;e=0?i[p]=!0:Mt.test(o)?Ot.test(o)?i[u]=!0:i[c]=!0:i[l]=!0,C(n,o,o,i)}return C(n,"localhost",O,{ascii:!0}),n.jd=new w(kt),{start:n,tokens:a({groups:e},Ct)}}(Ut.customSchemes);for(let t=0;t=0&&h++,i++,d++;if(h<0)i-=d,i0&&(r.push(qt(Jt,e,s)),s=[]),i-=h,d-=h;const t=u.t,o=n.slice(i-d,i);r.push(qt(t,e,o))}}return s.length>0&&r.push(qt(Jt,e,s)),r}(Ut.parser.start,t,function(t,e){const n=function(t){const e=[],n=t.length;let o=0;for(;o56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}(e.replace(/[A-Z]/g,(t=>t.toLowerCase()))),o=n.length,i=[];let r=0,s=0;for(;s=0&&(u+=n[s].length,h++),c+=n[s].length,r+=n[s].length,s++;r-=u,s-=h,c-=u,i.push({t:d.t,v:e.slice(r-c,r),s:r-c,e:r})}return i}(Ut.scanner.start,t))}(t),h=[];for(let t=0;t{"string"!=typeof t?Wt(t.scheme,t.optionalSlashes):Wt(t)}))},onDestroy(){w.groups={},Ut.scanner=null,Ut.parser=null,Ut.tokenQueue=[],Ut.pluginQueue=[],Ut.customSchemes=[],Ut.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:t}){var e;return(null===(e=t.href)||void 0===e?void 0:e.startsWith("javascript:"))?["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,{...t,href:""}),0]:["a",(0,i.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,i.markPasteRule)({find:t=>Qt(t).filter((t=>!this.options.validate||this.options.validate(t.value))).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:(t,e)=>{var n,o;const i=null===(n=null==e?void 0:e.clipboardData)||void 0===n?void 0:n.getData("text/html"),r=null==i?void 0:i.match(/href="([^"]*)"/);return r?{href:r[1]}:{href:null===(o=t.data)||void 0===o?void 0:o.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push((e={type:this.type,validate:this.options.validate},new Kt.Sy({key:new Kt.H$("autolink"),appendTransaction:(t,n,o)=>{const r=t.some((t=>t.docChanged))&&!n.doc.eq(o.doc),s=t.some((t=>t.getMeta("preventAutolink")));if(!r||s)return;const{tr:a}=o,l=(0,i.combineTransactionSteps)(n.doc,[...t]);return(0,i.getChangedRanges)(l).forEach((({newRange:t})=>{const n=(0,i.findChildrenInRange)(o.doc,t,(t=>t.isTextblock));let r,s;if(n.length>1?(r=n[0],s=o.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ")):n.length&&o.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(r=n[0],s=o.doc.textBetween(r.pos,t.to,void 0," ")),r&&s){const t=s.split(" ").filter((t=>""!==t));if(t.length<=0)return!1;const n=t[t.length-1],l=r.pos+s.lastIndexOf(n);if(!n)return!1;Qt(n).filter((t=>t.isLink)).map((t=>({...t,from:l+t.start+1,to:l+t.end+1}))).filter((t=>!o.schema.marks.code||!o.doc.rangeHasMark(t.from,t.to,o.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{(0,i.getMarksBetween)(t.from,t.to,o.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),a.steps.length?a:void 0}}))),this.options.openOnClick&&t.push(function(t){return new Kt.Sy({key:new Kt.H$("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,s;if(0!==o.button)return!1;if("A"!==o.target.nodeName)return!1;const a=(0,i.getAttributes)(e.state,t.type.name),l=o.target,c=null!==(r=null==l?void 0:l.href)&&void 0!==r?r:a.href,d=null!==(s=null==l?void 0:l.target)&&void 0!==s?s:a.target;return!(!l||!c||(e.editable&&window.open(c,d),0))}}})}({type:this.type})),this.options.linkOnPaste&&t.push(function(t){return new Kt.Sy({key:new Kt.H$("handlePasteLink"),props:{handlePaste:(e,n,o)=>{var i;const{state:r}=e,{selection:s}=r,{empty:a}=s;if(a)return!1;let l="";o.content.forEach((t=>{l+=t.textContent}));const c=Qt(l).find((t=>t.isLink&&t.value===l));if(!l||!c)return!1;const d=null===(i=n.clipboardData)||void 0===i?void 0:i.getData("text/html"),u=null==d?void 0:d.match(/href="([^"]*)"/),h=u?u[1]:c.href;return t.editor.commands.setMark(t.type,{href:h}),!0}}})}({editor:this.editor,type:this.type})),t;var e}}),Xt=Gt.extend({addAttributes(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),(0,o.x6)(["download"]))},addCommands(){var t;return Object.assign(Object.assign({},null===(t=this.parent)||void 0===t?void 0:t.call(this)),{toggleLink:t=>({chain:e,state:n})=>{{const{selection:o,doc:r}=n,s=r.cut(o.to,o.to+1),a=" "===(0,i.getHTMLFromFragment)(s.content,n.schema).replace(/<\/?[^>]+(>|$)/g,""),l=e().toggleMark(this.name,t,{extendEmptyMarkRange:!0});return(a?l.setTextSelection(o.to+1):l.setTextSelection(o.to).insertContent(' ')).run()}}})},addPasteRules(){return[(0,i.markPasteRule)({find:t=>Qt(t).filter((t=>{var e,n,o;return null===(o=null===(n=(e=this.options).validate)||void 0===n?void 0:n.call(e,t.value))||void 0===o||o})).filter((t=>t.isLink)).map((t=>({text:t.value,index:t.start,data:t}))),type:this.type,getAttributes:t=>{var e;return{href:null===(e=t.data)||void 0===e?void 0:e.href}}})]}}).configure({openOnClick:!1})},39069:(t,e,n)=>{n.r(e),n.d(e,{TuiAudio:()=>s,TuiSource:()=>a,TuiVideo:()=>l});var o=n(69725),i=n(63097),r=n(11046);const s=r.Node.create({name:"audio",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"audio"}],renderHTML:({node:t,HTMLAttributes:e})=>["audio",e,...(0,i.YX)(t)]}),a=r.Node.create({name:"source",addAttributes:()=>(0,i.x6)(["src","type","width","height","media","sizes","srcset"]),parseHTML:()=>[{tag:"source"}],renderHTML:({HTMLAttributes:t})=>["source",(0,r.mergeAttributes)(t)]}),l=r.Node.create({name:"video",group:"block",content:"source+",addAttributes:()=>(0,i.x6)(o.pH),parseHTML:()=>[{tag:"video"}],renderHTML:({node:t,HTMLAttributes:e})=>["video",e,...(0,i.YX)(t)]})},93107:(t,e,n)=>{n.r(e),n.d(e,{StarterKit:()=>Ct});var o=n(11046);const i=/^\s*>\s$/,r=o.Node.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:t}){return["blockquote",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,o.wrappingInputRule)({find:i,type:this.type})]}}),s=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,a=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,l=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,c=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,d=o.Mark.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}],renderHTML({HTMLAttributes:t}){return["strong",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,o.markInputRule)({find:s,type:this.type}),(0,o.markInputRule)({find:l,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:a,type:this.type}),(0,o.markPasteRule)({find:c,type:this.type})]}}),u=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),h=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),p=/^\s*([-+*])\s$/,f=o.Node.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:t}){return["ul",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(u.name,this.editor.getAttributes(h.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:p,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:p,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(h.name),editor:this.editor})),[t]}}),m=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,g=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,b=o.Mark.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:t}){return["code",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,o.markInputRule)({find:m,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:g,type:this.type})]}});var v=n(62463);const y=/^```([a-z]+)?[\s\n]$/,w=/^~~~([a-z]+)?[\s\n]$/,x=o.Node.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options;return[...(null===(e=t.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter((t=>t.startsWith(n))).map((t=>t.replace(n,"")))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:t,HTMLAttributes:e}){return["pre",(0,o.mergeAttributes)(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!(!t||e.parent.type.name!==this.name)&&!(!n&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type)return!1;const r=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith("\n\n");return!(!r||!s)&&t.chain().command((({tr:t})=>(t.delete(o.pos-2,o.pos),!0))).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:o}=e,{$from:i,empty:r}=n;if(!r||i.parent.type!==this.type)return!1;if(i.parentOffset!==i.parent.nodeSize-2)return!1;const s=i.after();return void 0!==s&&!o.nodeAt(s)&&t.commands.exitCode()}}},addInputRules(){return[(0,o.textblockTypeInputRule)({find:y,type:this.type,getAttributes:t=>({language:t[1]})}),(0,o.textblockTypeInputRule)({find:w,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new v.Sy({key:new v.H$("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),i=o?JSON.parse(o):void 0,r=null==i?void 0:i.mode;if(!n||!r)return!1;const{tr:s}=t.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(v.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),k=o.Node.create({name:"doc",topNode:!0,content:"block+"});var C=n(38480);function M(t={}){return new v.Sy({view:e=>new S(e,t)})}class S{constructor(t,e){var n;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=e.width)&&void 0!==n?n:1,this.color=!1===e.color?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map((e=>{let n=t=>{this[e](t)};return t.dom.addEventListener(e,n),{name:e,handler:n}}))}destroy(){this.handlers.forEach((({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e)))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t,e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent;if(n){let n=e.nodeBefore,o=e.nodeAfter;if(n||o){let e=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(e){let i=e.getBoundingClientRect(),r=n?i.bottom:i.top;n&&o&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:i.left,right:i.right,top:r-this.width/2,bottom:r+this.width/2}}}}if(!t){let e=this.editorView.coordsAtPos(this.cursorPos);t={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o,i,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!r||r==document.body&&"static"==getComputedStyle(r).position)o=-pageXOffset,i=-pageYOffset;else{let t=r.getBoundingClientRect();o=t.left-r.scrollLeft,i=t.top-r.scrollTop}this.element.style.left=t.left-o+"px",this.element.style.top=t.top-i+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),n=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),o=n&&n.type.spec.disableDropCursor,i="function"==typeof o?o(this.editorView,e,t):o;if(e&&!i){let t=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,C.nj)(this.editorView.state.doc,t,this.editorView.dragging.slice);null!=e&&(t=e)}this.setCursor(t),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){t.target!=this.editorView.dom&&this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const A=o.Extension.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[M(this.options)]}});var O=n(31690),T=n(27439),N=n(43594);class E extends v.Y1{constructor(t){super(t,t)}map(t,e){let n=t.resolve(e.map(this.head));return E.valid(n)?new E(n):v.Y1.near(n)}content(){return T.p2.empty}eq(t){return t instanceof E&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new E(t.resolve(e.pos))}getBookmark(){return new I(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),o=t.node(e);if(0!=n)for(let t=o.child(n-1);;t=t.lastChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t)||!function(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),o=t.node(e);if(n!=o.childCount)for(let t=o.child(n);;t=t.firstChild){if(0==t.childCount&&!t.inlineContent||t.isAtom||t.type.spec.isolating)return!0;if(t.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(t))return!1;let n=e.type.spec.allowGapCursor;if(null!=n)return n;let o=e.contentMatchAt(t.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(t,e,n=!1){t:for(;;){if(!n&&E.valid(t))return t;let o=t.pos,i=null;for(let n=t.depth;;n--){let r=t.node(n);if(e>0?t.indexAfter(n)0){i=r.child(e>0?t.indexAfter(n):t.index(n)-1);break}if(0==n)return null;o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}for(;;){let r=e>0?i.firstChild:i.lastChild;if(!r){if(i.isAtom&&!i.isText&&!v.qv.isSelectable(i)){t=t.doc.resolve(o+i.nodeSize*e),n=!1;continue t}break}i=r,o+=e;let s=t.doc.resolve(o);if(E.valid(s))return s}return null}}}E.prototype.visible=!1,E.findFrom=E.findGapCursorFrom,v.Y1.jsonID("gapcursor",E);class I{constructor(t){this.pos=t}map(t){return new I(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return E.valid(e)?new E(e):v.Y1.near(e)}}const D=(0,O.$)({ArrowLeft:P("horiz",-1),ArrowRight:P("horiz",1),ArrowUp:P("vert",-1),ArrowDown:P("vert",1)});function P(t,e){const n="vert"==t?e>0?"down":"up":e>0?"right":"left";return function(t,o,i){let r=t.selection,s=e>0?r.$to:r.$from,a=r.empty;if(r instanceof v.Bs){if(!i.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=t.doc.resolve(e>0?s.after():s.before())}let l=E.findGapCursorFrom(s,e,a);return!!l&&(o&&o(t.tr.setSelection(new E(l))),!0)}}function H(t,e,n){if(!t||!t.editable)return!1;let o=t.state.doc.resolve(e);if(!E.valid(o))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return!(i&&i.inside>-1&&v.qv.isSelectable(t.state.doc.nodeAt(i.inside))||(t.dispatch(t.state.tr.setSelection(new E(o))),0))}function L(t,e){if("insertCompositionText"!=e.inputType||!(t.state.selection instanceof E))return!1;let{$from:n}=t.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!o)return!1;let i=T.HY.empty;for(let t=o.length-1;t>=0;t--)i=T.HY.from(o[t].createAndFill(null,i));let r=t.state.tr.replace(n.pos,n.pos,new T.p2(i,0,0));return r.setSelection(v.Bs.near(r.doc.resolve(n.pos+1))),t.dispatch(r),!1}function R(t){if(!(t.selection instanceof E))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",N.EH.create(t.doc,[N.p.widget(t.selection.head,e,{key:"gapcursor"})])}const _=o.Extension.create({name:"gapCursor",addProseMirrorPlugins:()=>[new v.Sy({props:{decorations:R,createSelectionBetween:(t,e,n)=>e.pos==n.pos&&E.valid(n)?new E(n):null,handleClick:H,handleKeyDown:D,handleDOMEvents:{beforeinput:L}}})],extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:null!==(e=(0,o.callOrReturn)((0,o.getExtensionField)(t,"allowGapCursor",n)))&&void 0!==e?e:null}}}),z=o.Node.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:t}){return["br",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:t,storedMarks:i}=n;if(t.$from.parent.type.spec.isolating)return!1;const{keepMarks:r}=this.options,{splittableMarks:s}=o.extensionManager,a=i||t.$to.parentOffset&&t.$from.marks();return e().insertContent({type:this.name}).command((({tr:t,dispatch:e})=>{if(e&&a&&r){const e=a.filter((t=>s.includes(t.type.name)));t.ensureMarks(e)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var $=n(54424),B=200,F=function(){};F.prototype.append=function(t){return t.length?(t=F.from(t),!this.length&&t||t.length=e?F.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},F.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},F.prototype.forEach=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length),e<=n?this.forEachInner(t,e,n,0):this.forEachInvertedInner(t,e,n,0)},F.prototype.map=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=this.length);var o=[];return this.forEach((function(e,n){return o.push(t(e,n))}),e,n),o},F.from=function(t){return t instanceof F?t:t&&t.length?new J(t):F.empty};var J=function(t){function e(e){t.call(this),this.values=e}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(t,n){return 0==t&&n==this.length?this:new e(this.values.slice(t,n))},e.prototype.getInner=function(t){return this.values[t]},e.prototype.forEachInner=function(t,e,n,o){for(var i=e;i=n;i--)if(!1===t(this.values[i],o+i))return!1},e.prototype.leafAppend=function(t){if(this.length+t.length<=B)return new e(this.values.concat(t.flatten()))},e.prototype.leafPrepend=function(t){if(this.length+t.length<=B)return new e(t.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(F);F.empty=new J([]);var Z=function(t){function e(e,n){t.call(this),this.left=e,this.right=n,this.length=e.length+n.length,this.depth=Math.max(e.depth,n.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(t){return ti&&!1===this.right.forEachInner(t,Math.max(e-i,0),Math.min(this.length,n)-i,o+i))&&void 0},e.prototype.forEachInvertedInner=function(t,e,n,o){var i=this.left.length;return!(e>i&&!1===this.right.forEachInvertedInner(t,e-i,Math.max(n,i)-i,o+i))&&!(n=n?this.right.slice(t-n,e-n):this.left.slice(t,n).append(this.right.slice(0,e-n))},e.prototype.leafAppend=function(t){var n=this.right.leafAppend(t);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(t){var n=this.left.leafPrepend(t);if(n)return new e(n,this.right)},e.prototype.appendInner=function(t){return this.left.depth>=Math.max(this.right.depth,t.depth)+1?new e(this.left,new e(this.right,t)):new e(this,t)},e}(F);const Y=F;class j{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let n,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(n=this.remapping(i,this.items.length),o=n.maps.length);let r,s,a=t.tr,l=[],c=[];return this.items.forEach(((t,e)=>{if(!t.step)return n||(n=this.remapping(i,e+1),o=n.maps.length),o--,void c.push(t);if(n){c.push(new q(t.map));let e,i=t.step.map(n.slice(o));i&&a.maybeStep(i).doc&&(e=a.mapping.maps[a.mapping.maps.length-1],l.push(new q(e,void 0,void 0,l.length+c.length))),o--,e&&n.appendMap(e,o)}else a.maybeStep(t.step);return t.selection?(r=n?t.selection.map(n.slice(o)):t.selection,s=new j(this.items.slice(0,i).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(t,e,n,o){let i=[],r=this.eventCount,s=this.items,a=!o&&s.length?s.get(s.length-1):null;for(let n=0;nU&&(s=function(t,e){let n;return t.forEach(((t,o)=>{if(t.selection&&0==e--)return n=o,!1})),t.slice(n)}(s,l),r-=l),new j(s.append(i),r)}remapping(t,e){let n=new C.vs;return this.items.forEach(((e,o)=>{let i=null!=e.mirrorOffset&&o-e.mirrorOffset>=t?n.maps.length-e.mirrorOffset:void 0;n.appendMap(e.map,i)}),t,e),n}addMaps(t){return 0==this.eventCount?this:new j(this.items.append(t.map((t=>new q(t)))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-e),i=t.mapping,r=t.steps.length,s=this.eventCount;this.items.forEach((t=>{t.selection&&s--}),o);let a=e;this.items.forEach((e=>{let o=i.getMirror(--a);if(null==o)return;r=Math.min(r,o);let l=i.maps[o];if(e.step){let r=t.steps[o].invert(t.docs[o]),c=e.selection&&e.selection.map(i.slice(a+1,o));c&&s++,n.push(new q(l,r,c))}else n.push(new q(l))}),o);let l=[];for(let t=e;t500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let t=0;return this.items.forEach((e=>{e.step||t++})),t}compress(t=this.items.length){let e=this.remapping(0,t),n=e.maps.length,o=[],i=0;return this.items.forEach(((r,s)=>{if(s>=t)o.push(r),r.selection&&i++;else if(r.step){let t=r.step.map(e.slice(n)),s=t&&t.getMap();if(n--,s&&e.appendMap(s,n),t){let a=r.selection&&r.selection.map(e.slice(n));a&&i++;let l,c=new q(s.invert(),t,a),d=o.length-1;(l=o.length&&o[d].merge(c))?o[d]=l:o.push(c)}}else r.map&&n--}),this.items.length,0),new j(Y.from(o.reverse()),i)}}j.empty=new j(Y.empty,0);class q{constructor(t,e,n,o){this.map=t,this.step=e,this.selection=n,this.mirrorOffset=o}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new q(e.getMap().invert(),e,this.selection)}}}class V{constructor(t,e,n,o,i){this.done=t,this.undone=e,this.prevRanges=n,this.prevTime=o,this.prevComposition=i}}const U=20;function W(t){let e=[];return t.forEach(((t,n,o,i)=>e.push(o,i))),e}function Q(t,e){if(!t)return null;let n=[];for(let o=0;onew V(j.empty,j.empty,null,0,-1),apply:(e,n,o)=>function(t,e,n,o){let i,r=n.getMeta(et);if(r)return r.historyState;n.getMeta(nt)&&(t=new V(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(0==n.steps.length)return t;if(s&&s.getMeta(et))return s.getMeta(et).redo?new V(t.done.addTransform(n,void 0,o,tt(e)),t.undone,W(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new V(t.done,t.undone.addTransform(n,void 0,o,tt(e)),null,t.prevTime,t.prevComposition);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new V(t.done.rebased(n,i),t.undone.rebased(n,i),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new V(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Q(t.prevRanges,n.mapping),t.prevTime,t.prevComposition);{let i=n.getMeta("composition"),r=0==t.prevTime||!s&&t.prevComposition!=i&&(t.prevTime<(n.time||0)-o.newGroupDelay||!function(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach(((t,o)=>{for(let i=0;i=e[i]&&(n=!0)})),n}(n,t.prevRanges)),a=s?Q(t.prevRanges,n.mapping):W(n.mapping.maps[n.steps.length-1]);return new V(t.done.addTransform(n,r?e.selection.getBookmark():void 0,o,tt(e)),j.empty,a,n.time,null==i?t.prevComposition:i)}}(n,o,e,t)},config:t,props:{handleDOMEvents:{beforeinput(t,e){let n=e.inputType,o="historyUndo"==n?it:"historyRedo"==n?rt:null;return!!o&&(e.preventDefault(),o(t.state,t.dispatch))}}}})}const it=(t,e)=>{let n=et.getState(t);return!(!n||0==n.done.eventCount||(e&&K(n,t,e,!1),0))},rt=(t,e)=>{let n=et.getState(t);return!(!n||0==n.undone.eventCount||(e&&K(n,t,e,!0),0))},st=o.Extension.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>it(t,e),redo:()=>({state:t,dispatch:e})=>rt(t,e)}),addProseMirrorPlugins(){return[ot(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),at=o.Node.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:t}){return["hr",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{$to:n}=e.selection,o=t();return 0===n.parentOffset?o.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):o.insertContent({type:this.name}),o.command((({tr:t,dispatch:e})=>{var n;if(e){const{$to:e}=t.selection,o=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(v.Bs.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(v.qv.create(t.doc,e.pos)):t.setSelection(v.Bs.create(t.doc,e.pos));else{const i=null===(n=e.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(t.insert(o,i),t.setSelection(v.Bs.create(t.doc,o+1)))}t.scrollIntoView()}return!0})).run()}}},addInputRules(){return[(0,o.nodeInputRule)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),lt=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,ct=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,dt=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,ut=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,ht=o.Mark.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:t}){return["em",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,o.markInputRule)({find:lt,type:this.type}),(0,o.markInputRule)({find:dt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:ct,type:this.type}),(0,o.markPasteRule)({find:ut,type:this.type})]}}),pt=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ft=o.Node.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:t}){return["li",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mt=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}}),gt=/^(\d+)\.\s$/,bt=o.Node.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return 1===e?["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,n),0]:["ol",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(ft.name,this.editor.getAttributes(mt.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,o.wrappingInputRule)({find:gt,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,o.wrappingInputRule)({find:gt,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(mt.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),vt=o.Node.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),yt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,wt=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,xt=o.Mark.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML({HTMLAttributes:t}){return["s",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){const t={};return(0,o.isMacOS)()?t["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():t["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),t},addInputRules(){return[(0,o.markInputRule)({find:yt,type:this.type})]},addPasteRules(){return[(0,o.markPasteRule)({find:wt,type:this.type})]}}),kt=o.Node.create({name:"text",group:"inline"}),Ct=o.Extension.create({name:"starterKit",addExtensions(){const t=[],e=this.options;return!1!==(null==e?void 0:e.blockquote)&&t.push(r.configure(null==e?void 0:e.blockquote)),!1!==(null==e?void 0:e.bold)&&t.push(d.configure(null==e?void 0:e.bold)),!1!==(null==e?void 0:e.bulletList)&&t.push(f.configure(null==e?void 0:e.bulletList)),!1!==(null==e?void 0:e.code)&&t.push(b.configure(null==e?void 0:e.code)),!1!==(null==e?void 0:e.codeBlock)&&t.push(x.configure(null==e?void 0:e.codeBlock)),!1!==(null==e?void 0:e.document)&&t.push(k.configure(null==e?void 0:e.document)),!1!==(null==e?void 0:e.dropcursor)&&t.push(A.configure(null==e?void 0:e.dropcursor)),!1!==(null==e?void 0:e.gapcursor)&&t.push(_.configure(null==e?void 0:e.gapcursor)),!1!==(null==e?void 0:e.hardBreak)&&t.push(z.configure(null==e?void 0:e.hardBreak)),!1!==(null==e?void 0:e.heading)&&t.push($.Heading.configure(Object.assign({levels:[1,2,3,4,5,6]},null==e?void 0:e.heading)).extend({addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>Object.assign(Object.assign({},t||{}),{[`Mod-Alt-${e}`]:()=>null==this?void 0:this.editor.commands.toggleHeading({level:e})})),{})}})),!1!==(null==e?void 0:e.history)&&t.push(st.configure(Object.assign({depth:100,newGroupDelay:500},null==e?void 0:e.history))),!1!==(null==e?void 0:e.horizontalRule)&&t.push(at.configure(null==e?void 0:e.horizontalRule)),!1!==(null==e?void 0:e.italic)&&t.push(ht.configure(null==e?void 0:e.italic)),!1!==(null==e?void 0:e.listItem)&&t.push(pt.configure(null==e?void 0:e.listItem)),!1!==(null==e?void 0:e.orderedList)&&t.push(bt.configure(null==e?void 0:e.orderedList)),!1!==(null==e?void 0:e.paragraph)&&t.push(vt.configure(null==e?void 0:e.paragraph)),!1!==(null==e?void 0:e.strike)&&t.push(xt.configure(null==e?void 0:e.strike)),!1!==(null==e?void 0:e.text)&&t.push(kt.configure(null==e?void 0:e.text)),t}})},28227:(t,e,n)=>{n.r(e),n.d(e,{TableCellBackground:()=>o});const o=n(11046).Extension.create({addGlobalAttributes:()=>[{types:["tableCell","tableHeader"],attributes:{background:{default:null,renderHTML:({background:t})=>t?{style:`background: ${t}`}:null,parseHTML:({style:t})=>t.background,keepOnSplit:!1}}}],addCommands:()=>({setCellBackground:t=>({chain:e})=>e().updateAttributes("tableCell",{background:t}).updateAttributes("tableHeader",{background:t}).run(),unsetCellBackground:()=>({chain:t})=>t().updateAttributes("tableCell",{background:null}).updateAttributes("tableHeader",{background:null}).run()})})},90551:(t,e,n)=>{n.r(e),n.d(e,{TuiTable:()=>mt});var o,i,r=n(11046),s=n(62463),a=n(27439),l=n(43594),c=n(31690),d=n(38480);if("undefined"!=typeof WeakMap){let t=new WeakMap;o=e=>t.get(e),i=(e,n)=>(t.set(e,n),n)}else{const t=[],e=10;let n=0;o=e=>{for(let n=0;n(n==e&&(n=0),t[n++]=o,t[n++]=i)}var u=class{constructor(t,e,n,o){this.width=t,this.height=e,this.map=n,this.problems=o}findCell(t){for(let e=0;eo&&(r+=i.attrs.colspan)}}for(let t=0;t1&&(n=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(t),n=t.childCount,o=[];let i=0,r=null;const s=[];for(let t=0,i=e*n;t=n){(r||(r=[])).push({type:"overlong_rowspan",pos:l,n:h-t});break}const c=i+t*e;for(let t=0;t0;e--)if("row"==t.node(e).type.spec.tableRole)return t.node(0).resolve(t.before(e+1));return null}function g(t){const e=t.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function b(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const n=m(e.$head)||function(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const o=e.type.spec.tableRole;if("cell"==o||"header_cell"==o)return t.doc.resolve(n-e.nodeSize)}}(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function v(t){return"row"==t.parent.type.spec.tableRole&&!!t.nodeAfter}function y(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function w(t,e,n){const o=t.node(-1),i=u.get(o),r=t.start(-1),s=i.nextCell(t.pos-r,e,n);return null==s?null:t.node(0).resolve(r+s)}function x(t,e,n=1){const o={...t,colspan:t.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(e,n),o.colwidth.some((t=>t>0))||(o.colwidth=null)),o}function k(t,e,n=1){const o={...t,colspan:t.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let t=0;tt!=e.pos-i));l.unshift(e.pos-i);const c=l.map((t=>{const e=n.nodeAt(t);if(!e)throw RangeError(`No cell with offset ${t} found`);const o=i+t+1;return new s.xm(a.resolve(o),a.resolve(o+e.content.size))}));super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(e,n){const o=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if(v(o)&&v(i)&&y(o,i)){const e=this.$anchorCell.node(-1)!=o.node(-1);return e&&this.isRowSelection()?t.rowSelection(o,i):e&&this.isColSelection()?t.colSelection(o,i):new t(o,i)}return s.Bs.between(o,i)}content(){const t=this.$anchorCell.node(-1),e=u.get(t),n=this.$anchorCell.start(-1),o=e.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},r=[];for(let n=o.top;n0||d>0){let t=l.attrs;if(c>0&&(t=x(t,0,c)),d>0&&(t=x(t,t.colspan-d,d)),a.lefto.bottom){const t={...l.attrs,rowspan:Math.min(a.bottom,o.bottom)-Math.max(a.top,o.top)};l=a.top0)return!1;const n=t+this.$anchorCell.nodeAfter.attrs.rowspan,o=e+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,o)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const o=e.node(-1),i=u.get(o),r=e.start(-1),s=i.findCell(e.pos-r),a=i.findCell(n.pos-r),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(r+i.map[s.left])),a.bottom0&&(n=l.resolve(r+i.map[a.left])),s.bottom0)return!1;const r=o+this.$anchorCell.nodeAfter.attrs.colspan,s=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,s)==e.width}eq(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const o=e.node(-1),i=u.get(o),r=e.start(-1),s=i.findCell(e.pos-r),a=i.findCell(n.pos-r),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(r+i.map[s.top*i.width])),a.right0&&(n=l.resolve(r+i.map[a.top*i.width])),s.right{e.push(l.p.node(n,n+t.nodeSize,{class:"selectedCell"}))})),l.EH.create(t.doc,e)}var A=new s.H$("fix-tables");function O(t,e,n,o){const i=t.childCount,r=e.childCount;t:for(let s=0,a=0;s{"table"==e.type.spec.tableRole&&(n=function(t,e,n,o){const i=u.get(e);if(!i.problems)return o;o||(o=t.tr);const r=[];for(let t=0;t0){let e="cell";n.firstChild&&(e=n.firstChild.type.spec.tableRole);const r=[];for(let n=0;ne.width)for(let r=0,a=0;re.height){const u=[];for(let t=0,o=(e.height-1)*e.width;t=e.width)&&n.nodeAt(e.map[o+t]).type==l.header_cell;u.push(i?d||(d=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,a.HY.from(u)),p=[];for(let t=e.height;t{if(!i)return!1;const r=n.selection;if(r instanceof C)return H(n,o,s.Y1.near(r.$headCell,e));if("horiz"!=t&&!r.empty)return!1;const a=F(i,t,e);if(null==a)return!1;if("horiz"==t)return H(n,o,s.Y1.near(n.doc.resolve(r.head+e),e));{const i=n.doc.resolve(a),r=w(i,t,e);let l;return l=r?s.Y1.near(r,1):e<0?s.Y1.near(n.doc.resolve(i.before(-1)),-1):s.Y1.near(n.doc.resolve(i.after(-1)),1),H(n,o,l)}}}function R(t,e){return(n,o,i)=>{if(!i)return!1;const r=n.selection;let s;if(r instanceof C)s=r;else{const o=F(i,t,e);if(null==o)return!1;s=new C(n.doc.resolve(o))}const a=w(s.$headCell,t,e);return!!a&&H(n,o,new C(s.$anchorCell,a))}}function _(t,e){const n=t.selection;if(!(n instanceof C))return!1;if(e){const o=t.tr,i=p(t.schema).cell.createAndFill().content;n.forEachCell(((t,e)=>{t.content.eq(i)||o.replace(o.mapping.map(e+1),o.mapping.map(e+t.nodeSize-1),new a.p2(i,0,0))})),o.docChanged&&e(o)}return!0}function z(t,e){const n=m(t.state.doc.resolve(e));return!!n&&(t.dispatch(t.state.tr.setSelection(new C(n))),!0)}function $(t,e,n){if(!g(t.state))return!1;let o=function(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:o}=t;for(;1==e.childCount&&(n>0&&o>0||"table"==e.child(0).type.spec.tableRole);)n--,o--,e=e.child(0).content;const i=e.child(0),r=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==r)for(let t=0;t=0;e--){const{rowspan:i,colspan:r}=o.child(e).attrs;for(let e=t;e=e.length&&e.push(a.HY.empty),n[i]o&&(a=a.type.createChecked(x(a.attrs,a.attrs.colspan,n+a.attrs.colspan-o),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;ni&&(e=e.type.create({...e.attrs,rowspan:Math.max(1,i-e.attrs.rowspan)},e.content)),s.push(e)}t.push(a.HY.from(s))}n=t,e=i}return{width:t,height:e,rows:n}}(o,s.right-s.left,s.bottom-s.top),D(t.state,t.dispatch,r,s,o),!0}if(o){const e=b(t.state),n=e.start(-1);return D(t.state,t.dispatch,n,u.get(e.node(-1)).findCell(e.pos-n),o),!0}return!1}function B(t,e){var n;if(e.ctrlKey||e.metaKey)return;const o=J(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof C)r(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&o&&null!=(i=m(t.state.selection.$anchor))&&(null==(n=Z(t,e))?void 0:n.pos)!=i.pos)r(i,e),e.preventDefault();else if(!o)return;function r(e,n){let o=Z(t,n);const i=null==f.getState(t.state);if(!o||!y(e,o)){if(!i)return;o=e}const r=new C(e,o);if(i||!t.state.selection.eq(r)){const n=t.state.tr.setSelection(r);i&&n.setMeta(f,e.pos),t.dispatch(n)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),null!=f.getState(t.state)&&t.dispatch(t.state.tr.setMeta(f,-1))}function a(n){const i=n,a=f.getState(t.state);let l;if(null!=a)l=t.state.doc.resolve(a);else if(J(t,i.target)!=o&&(l=Z(t,e),!l))return s();l&&r(l,i)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function F(t,e,n){if(!(t.state.selection instanceof s.Bs))return null;const{$head:o}=t.state.selection;for(let i=o.depth-1;i>=0;i--){const r=o.node(i);if((n<0?o.index(i):o.indexAfter(i))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const r=o.before(i),s="vert"==e?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(s)?r:null}}return null}function J(t,e){for(;e&&e!=t.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function Z(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?m(t.state.doc.resolve(n.pos)):null}var Y=class{constructor(t,e){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),j(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type==this.node.type&&(this.node=t,j(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){return"attributes"==t.type&&(t.target==this.table||this.colgroup.contains(t.target))}};function j(t,e,n,o,i,r){var s;let a=0,l=!0,c=e.firstChild;const d=t.firstChild;if(d){for(let t=0,n=0;t(i.spec.props.nodeViews[p(o.schema).table.name]=(t,o)=>new n(t,e,o),new U(-1,!1)),apply:(t,e)=>e.apply(t)},props:{attributes:t=>{const e=q.getState(t);return e&&e.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(e,n)=>{!function(t,e,n,o,i){const r=q.getState(t.state);if(r&&!r.dragging){const o=function(t){for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}(e.target);let s=-1;if(o){const{left:i,right:r}=o.getBoundingClientRect();e.clientX-i<=n?s=W(t,e,"left",n):r-e.clientX<=n&&(s=W(t,e,"right",n))}if(s!=r.activeHandle){if(!i&&-1!==s){const e=t.state.doc.resolve(s),n=e.node(-1),o=u.get(n),i=e.start(-1);if(o.colCount(e.pos-i)+e.nodeAfter.attrs.colspan-1==o.width-1)return}K(t,s)}}}(e,n,t,0,o)},mouseleave:t=>{!function(t){const e=q.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&K(t,-1)}(t)},mousedown:(t,n)=>{!function(t,e,n){const o=q.getState(t.state);if(!o||-1==o.activeHandle||o.dragging)return!1;const i=t.state.doc.nodeAt(o.activeHandle),r=function(t,e,{colspan:n,colwidth:o}){const i=o&&o[o.length-1];if(i)return i;const r=t.domAtPos(e);let s=r.node.childNodes[r.offset].offsetWidth,a=n;if(o)for(let t=0;t{const e=q.getState(t);if(e&&e.activeHandle>-1)return function(t,e){const n=[],o=t.doc.resolve(e),i=o.node(-1);if(!i)return l.EH.empty;const r=u.get(i),s=o.start(-1),a=r.colCount(o.pos-s)+o.nodeAfter.attrs.colspan;for(let t=0;t-1&&e.docChanged){let o=e.mapping.map(n.activeHandle,-1);return v(e.doc.resolve(o))||(o=-1),new t(o,n.dragging)}return n}};function W(t,e,n,o){const i="right"==n?-o:o,r=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!r)return-1;const{pos:s}=r,a=m(t.state.doc.resolve(s));if(!a)return-1;if("right"==n)return a.pos;const l=u.get(a.node(-1)),c=a.start(-1),d=l.map.indexOf(a.pos-c);return d%l.width==0?-1:c+l.map[d-1]}function Q(t,e,n){const o=e.clientX-t.startX;return Math.max(n,t.startWidth+o)}function K(t,e){t.dispatch(t.state.tr.setMeta(q,{setHandle:e}))}function G(t){const e=t.selection,n=b(t),o=n.node(-1),i=n.start(-1),r=u.get(o);return{...e instanceof C?r.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):r.findCell(n.pos-i),tableStart:i,map:r,table:o}}function X(t,{map:e,tableStart:n,table:o},i){let r=i>0?-1:0;(function(t,e,n){const o=p(e.type.schema).header_cell;for(let i=0;i0&&i0&&e.map[a-1]==l||i0?-1:0;(function(t,e,n){var o;const i=p(e.type.schema).header_cell;for(let r=0;r0&&i0&&c==e.map[s-e.width]){const e=n.nodeAt(c).attrs;t.setNodeMarkup(t.mapping.slice(a).map(c+o),null,{...e,rowspan:e.rowspan-1}),r+=e.colspan-1}else if(i0&&n[r]==n[r-1]||o.right0&&n[i]==n[i-t]||o.bottomn[t.type.spec.tableRole],(t,e)=>{var n;const i=t.selection;let r,s;if(i instanceof C){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(r=function(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if("cell"===n||"header_cell"===n)return t.node(e)}return null}(i.$from),!r)return!1;s=null==(n=m(i.$from))?void 0:n.pos}if(null==r||null==s)return!1;if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let n=r.attrs;const a=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const c=G(t),d=t.tr;for(let t=0;ti.table.nodeAt(t)));for(let t=0;t{const e=t+i.tableStart,n=r.doc.nodeAt(e);n&&r.setNodeMarkup(e,d,n.attrs)})),n(r)}return!0}}at("row",{useDeprecatedLogic:!0}),at("column",{useDeprecatedLogic:!0});var lt=at("cell",{useDeprecatedLogic:!0});function ct(t){return function(e,n){if(!g(e))return!1;const o=function(t,e){if(e<0){const e=t.nodeBefore;if(e)return t.pos-e.nodeSize;for(let e=t.index(-1)-1,n=t.before();e>=0;e--){const o=t.node(-1).child(e),i=o.lastChild;if(i)return n-1-i.nodeSize;n-=o.nodeSize}}else{if(t.index()null,apply(t,e){const n=t.getMeta(f);if(null!=n)return-1==n?null:n;if(null==e||!t.docChanged)return e;const{deleted:o,pos:i}=t.mapping.mapResult(e);return o?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:B},createSelectionBetween:t=>null!=f.getState(t.state)?t.state.selection:null,handleTripleClick:z,handleKeyDown:P,handlePaste:$},appendTransaction:(e,n,o)=>function(t,e,n){const o=(e||t).selection,i=(e||t).doc;let r,a;if(o instanceof s.qv&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=C.create(i,o.from);else if("row"==a){const t=i.resolve(o.from+1);r=C.rowSelection(t,t)}else if(!n){const t=u.get(o.node),e=o.from+1,n=e+t.map[t.width*t.height-1];r=C.create(i,e+1,n)}}else o instanceof s.Bs&&function({$from:t,$to:e}){if(t.pos==e.pos||t.pos=0&&!(t.after(i+1)=0&&!(e.before(t+1)>e.start(t));t--,o--);return n==o&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=s.Bs.create(i,o.from):o instanceof s.Bs&&function({$from:t,$to:e}){let n,o;for(let e=t.depth;e>0;e--){const o=t.node(e);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){n=o;break}}for(let t=e.depth;t>0;t--){const n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){o=n;break}}return n!==o&&0===e.parentOffset}(o)&&(r=s.Bs.create(i,o.$from.start(),o.$from.end()));return r&&(e||(e=t.tr)).setSelection(r),e}(o,T(o,n),t)})}function ut(t,e,n,o,i,r){let s=0,a=!0,l=e.firstChild;const c=t.firstChild;for(let t=0,n=0;t{const{selection:e}=t.state;if(!(e instanceof C))return!1;let n=0;const o=(0,r.findParentNodeClosestToPos)(e.ranges[0].$from,(t=>"table"===t.type.name));return null==o||o.node.descendants((t=>{if("table"===t.type.name)return!1;["tableCell","tableHeader"].includes(t.type.name)&&(n+=1)})),n===e.ranges.length&&(t.commands.deleteTable(),!0)},mt=r.Node.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:ht,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:t}){return["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,t),["tbody",0]]},addCommands:()=>({insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:o,dispatch:i,editor:r})=>{const a=function(t,e,n,o,i){const r=function(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach((n=>{const o=t.nodes[n];o.spec.tableRole&&(e[o.spec.tableRole]=o)})),t.cached.tableNodeTypes=e,e}(t),s=[],a=[];for(let t=0;t({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.left))}return!0}(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(X(t.tr,n,n.right))}return!0}(t,e),deleteColumn:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let t=n.right-1;tt(o,n,t),t!=n.left;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(t)}e(o)}return!0}(t,e),addRowBefore:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.top))}return!0}(t,e),addRowAfter:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t);e(et(t.tr,n,n.bottom))}return!0}(t,e),deleteRow:()=>({state:t,dispatch:e})=>function(t,e){if(!g(t))return!1;if(e){const n=G(t),o=t.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let t=n.bottom-1;nt(o,n,t),t!=n.top;t--){const t=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!t)throw RangeError("No table found");n.table=t,n.map=u.get(n.table)}e(o)}return!0}(t,e),deleteTable:()=>({state:t,dispatch:e})=>function(t,e){const n=t.selection.$anchor;for(let o=n.depth;o>0;o--)if("table"==n.node(o).type.spec.tableRole)return e&&e(t.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}(t,e),mergeCells:()=>({state:t,dispatch:e})=>it(t,e),splitCell:()=>({state:t,dispatch:e})=>rt(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>at("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>at("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>lt(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>!!it(t,e)||rt(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:o})=>function(t,e){return function(n,o){if(!g(n))return!1;const i=b(n);if(i.nodeAfter.attrs[t]===e)return!1;if(o){const r=n.tr;n.selection instanceof C?n.selection.forEachCell(((n,o)=>{n.attrs[t]!==e&&r.setNodeMarkup(o,null,{...n.attrs,[t]:e})})):r.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),o(r)}return!0}}(t,e)(n,o),goToNextCell:()=>({state:t,dispatch:e})=>ct(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>ct(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&T(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const n=C.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:ft,"Mod-Backspace":ft,Delete:ft,"Mod-Delete":ft}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[V({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],dt({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:(0,r.callOrReturn)((0,r.getExtensionField)(t,"tableRole",e))}}}).extend({renderHTML({node:t,HTMLAttributes:e}){var n,o;let i=0,s=!0;try{const e=(null===(n=t.content)||void 0===n?void 0:n.content)[0];null===(o=null==e?void 0:e.content)||void 0===o||o.content.forEach((t=>{if(t.attrs.colwidth)t.attrs.colwidth.forEach((t=>{t?i+=t:(s=!1,i+=this.options.cellMinWidth)}));else{s=!1;const e=t.attrs.colspan||1;i+=this.options.cellMinWidth*e}}))}catch(t){s=!1}return e.style=s&&i>0?`width: ${i}px;`:i&&i>0?`min-width: ${i}px`:null,["div",{class:"tui-table-wrapper"},["table",(0,r.mergeAttributes)(this.options.HTMLAttributes,e),["tbody",0]]]}})},13704:(t,e,n)=>{n.d(e,{y:()=>l,d:()=>a});var o=n(12057),i=n(11046),r=n(74788);class s{constructor(t,e,n){const o=e.get(r.z2F),i=e.get(r._Vd).resolveComponentFactory(t);this.componentRef=i.create(e,[]),this.updateProps(n),o.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get el(){return this.componentRef.injector.get(r.SBq)}get dom(){return this.el.nativeElement}updateProps(t){Object.entries(t).forEach((([t,e])=>{this.instance[t]=e}))}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy()}}class a{}class l extends i.NodeView{constructor(t,e,n){super(t,e,n),this.contentDOMElement=null}mount(){const t=this.options.injector,e=t.get(o.K0),n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(t={})=>this.updateAttributes(t),deleteNode:()=>this.deleteNode()};this.editor.on("selectionUpdate",this.handleSelectionUpdate.bind(this)),this.renderer=new s(this.component,t,n),this.extension.config.draggable&&(this.renderer.el.nativeElement.ondragstart=t=>{this.onDragStart(t)}),this.contentDOMElement=this.node.isLeaf?null:e.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges()),this.appendContendDom()}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.appendContendDom()),!0)}handleSelectionUpdate(){const{from:t,to:e}=this.editor.state.selection;t<=this.getPos()&&e>=this.getPos()+this.node.nodeSize?this.selectNode():this.deselectNode()}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate.bind(this)),this.contentDOMElement=null}appendContendDom(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}}},37195:(t,e,n)=>{n.d(e,{zc:()=>w.zc,dR:()=>w.dR,F1:()=>w.F1,nE:()=>m.nE,Xw:()=>v,Wf:()=>w.Wf,VE:()=>y.TUI_EDITOR_MAX_IMAGE_WIDTH,kB:()=>y.TUI_EDITOR_MIN_IMAGE_WIDTH,mJ:()=>w.mJ,bK:()=>w.bK,p7:()=>w.p7,H9:()=>o.H9,wl:()=>o.wl,aI:()=>r.a,BN:()=>h.BN,T_:()=>p,GK:()=>d,_2:()=>g._,Sz:()=>f,VM:()=>o.VM,$3:()=>h.$3,yB:()=>u.yB,sw:()=>m.sw,PD:()=>b,Uv:()=>w.Uv,Er:()=>x.Er});var o=n(83950),i=n(1884),r=(n(13099),n(8820)),s=n(12057),a=n(42600),l=n(43232),c=(n(76690),n(74788));let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({}),t})();var u=n(90712),h=n(5915);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[a.HOV,s.ez,u.yB,l.WUl,l.Jyu,i.Fu,a.Ah6,l.dpK,h.mJ,d]]}),t})();n(1566),n(57495),n(53058),n(21335),n(8274),n(69057);let f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[s.ez,l.KWI,l.cnw,l.jhF,o.wl,a.Ah6]]}),t})();n(30560);var m=n(69725),g=n(72023);n(44);const b=[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:t})=>t)).then((t=>t.configure({heading:{levels:[1,2,3,4,5,6]}}))),n.e(3336).then(n.bind(n,73336)).then((({default:t})=>t.configure({types:["heading","paragraph"]}))),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),n.e(7991).then(n.bind(n,17991)).then((({default:t})=>t)),n.e(7147).then(n.bind(n,77147)).then((({default:t})=>t)),n.e(5034).then(n.bind(n,25034)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,30163)).then((({FontColor:t})=>t)),Promise.resolve().then(n.bind(n,44632)).then((({default:t})=>t.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(n.bind(n,48239)).then((({TuiLink:t})=>t)),n.e(6633).then(n.bind(n,96633)).then((({TuiJumpAnchor:t})=>t)),Promise.resolve().then(n.bind(n,58101)).then((({TuiFileLink:t})=>t)),Promise.resolve().then(n.bind(n,44)).then((({BackgroundColor:t})=>t)),Promise.resolve().then(n.bind(n,90551)).then((({TuiTable:t})=>t.configure({resizable:!0}))),n.e(5213).then(n.bind(n,45213)).then((({default:t})=>t)),n.e(1397).then(n.bind(n,71397)).then((({default:t})=>t)),n.e(8840).then(n.bind(n,38840)).then((({TableHeader:t})=>t)),Promise.resolve().then(n.bind(n,13575)).then((({TuiTabExtension:t})=>t)),Promise.resolve().then(n.bind(n,28227)).then((({TableCellBackground:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetailsContent:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiDetails:t})=>t)),n.e(5681).then(n.bind(n,5681)).then((({TuiSummary:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))],v=b;n(58101),n(30163),n(1604),n(19818),n(33626);var y=n(89681),w=(n(13575),n(48239),n(39069),n(93107),n(90551),n(28227),n(40401)),x=n(63097)},87901:(t,e,n)=>{n.d(e,{i:()=>h});var o=n(12057),i=n(74788),r=n(42600),s=n(63097),a=n(29856),l=n(43190),c=n(88002),d=n(46782),u=n(39761);let h=(()=>{class t extends a.y{constructor(t,{nativeElement:e},n){const o=(0,r.mLY)(e,"mousedown").pipe((0,r.mp3)(),(0,l.w)((t=>{const o=(0,r.mLY)(n,"mousemove").pipe((0,c.U)((({clientX:t,clientY:n})=>(0,s.Ws)(t,n,e))),(0,d.R)((0,r.mLY)(n,"mouseup")));return t.target===e?o.pipe((0,u.O)((0,s.Ws)(t.clientX,t.clientY,e))):o})),(0,d.R)(t));super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(r.a31,2),i.LFG(i.SBq),i.LFG(o.K0))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},40401:(t,e,n)=>{n.d(e,{Y1:()=>T,F4:()=>r,bG:()=>O,ZW:()=>A,zc:()=>m,dR:()=>f,Mr:()=>x,dj:()=>b,F1:()=>h,Wf:()=>i,UN:()=>k,b$:()=>w,mJ:()=>c,$i:()=>y,rf:()=>v,bK:()=>p,p7:()=>M,Uv:()=>d});var o=n(74788);const i=new o.OlP("[TUI_EDITOR_EXTENSIONS]"),r=new o.OlP("[LAZY_EDITOR_EXTENSIONS]");var s=n(42600),a=n(69725);const l={translate:"no",appearence:"textfield",spellcheck:!1,enableDefaultStyles:!0,colors:a.sw,blankColor:a.hK,linkOptions:a.pL,fontOptions:a.RR,icons:{undo:"tuiIconUndoLarge",redo:"tuiIconRedoLarge",quote:"tuiIconQuoteLarge",link:"tuiIconLinkLarge",anchor:"tuiIconAnchorLarge",attach:"tuiIconPaperclipLarge",sub:"tuiIconSubscriptLarge",sup:"tuiIconSuperscriptLarge",tex:"tuiIconTeXLarge",image:"tuiIconImageLarge",hr:"tuiIconHrLarge",clear:"tuiIconClearFormatLarge",groupAdd:"tuiIconPlusLarge",groupRemove:"tuiIconCloseLarge",detailsAdd:"tuiIconSpoilerLarge",detailsRemove:"tuiIconSpoilerDeleteLarge",popupLinkSave:"tuiIconCheckCircleLarge",popupLinkRemove:"tuiIconCloseLarge",popupPreviewLinkEdit:"tuiIconEdit2Large",popupPreviewLinkClear:"tuiIconUnlinkLarge",paint:"tuiIconPaintLarge",textAlignPreview:"tuiIconAlignLeftLarge",textAlignLeft:"tuiIconAlignLeftLarge",textAlignCenter:"tuiIconAlignCenterLarge",textAlignRight:"tuiIconAlignRightLarge",textAlignJustify:"tuiIconAlignJustifyLarge",textColor:"tuiIconColorLarge",textHilite:"tuiIconHiliteLarge",listPreview:"tuiIconListLarge",listUnOrdered:"tuiIconListLarge",listOrdered:"tuiIconOLLarge",indent:"tuiIconIndentLarge",outdent:"tuiIconOutdentLarge",fontSize:"tuiIconFontLarge",insertTable:"tuiIconTableLarge",addRowTable:"tuiIconAddRowLarge",code:"tuiIconCodeLarge",fontStylePreview:"tuiIconFormatLarge",fontStyleBold:"tuiIconBoldLarge",fontStyleItalic:"tuiIconItalicLarge",fontStyleUnderline:"tuiIconUnderlineLarge",fontStyleStrike:"tuiIconStrikeThroughLarge",colorSelectorDropdownChevron:"tuiIconChevronDown",colorSelectorDropdownCheck:"tuiIconCheck"}},c=(0,s.jHx)(l);function d(t){return(0,s.vKU)(c,t,l)}var u=n(54487);const h=new o.OlP("[TUI_EDITOR_CONTENT_PROCESSOR]",{factory:()=>u.y}),p=new o.OlP("[TUI_EDITOR_VALUE_TRANSFORMER]"),f=new o.OlP("[TUI_ATTACH_FILES_OPTIONS]",{factory:()=>({accept:"*/*",multiple:!0})}),m=new o.OlP("[TUI_ATTACH_FILES_LOADER]");var g=n(19633);const b=new o.OlP("[TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES]",{factory:()=>["Solid color","Gradient"]}),v=new o.OlP("[TUI_EDITOR_TOOLBAR_TEXTS]",{factory:(0,g.vv)("toolbarTools")}),y=new o.OlP("[TUI_EDITOR_TABLE_COMMANDS]",{factory:(0,g.vv)("editorTableCommands")}),w=new o.OlP("[TUI_EDITOR_LINK_TEXTS]",{factory:(0,g.vv)("editorEditLink")}),x=new o.OlP("[TUI_EDITOR_CODE_OPTIONS]",{factory:(0,g.vv)("editorCodeOptions")}),k=new o.OlP("[TUI_EDITOR_FONT_OPTIONS]",{factory:(0,g.vv)("editorFontOptions")});var C=n(88002);const M=new o.OlP("[TUI_IMAGE_LOADER]",{factory:()=>t=>{const e=new FileReader;return e.readAsDataURL(t),(0,s.mLY)(e,"load").pipe((0,C.U)((()=>String(e.result))))}});var S=n(74235);const A=new o.OlP("[TIPTAP_EDITOR]"),O=new o.OlP("[LAZY_TIPTAP_EDITOR]",{factory:()=>{const t=new S.t(1);return Promise.resolve().then(n.bind(n,11046)).then((e=>t.next(e.Editor))),t}}),T=new o.OlP("[INITIALIZATION_TIPTAP_CONTAINER]")},63097:(t,e,n)=>{function o(t,e,n){const o=t.selection.$anchor;for(let i=o.depth;i>0;i--)if(o.node(i).type.name===n)return e&&e(t.tr.delete(o.before(i),o.after(i)).scrollIntoView()),!0;return!1}n.d(e,{yU:()=>o,Ws:()=>r,U5:()=>s,Yz:()=>l,YX:()=>d,Ap:()=>h,nC:()=>k,Er:()=>g,_N:()=>y,x6:()=>w,jx:()=>x,CH:()=>C});var i=n(42600);function r(t,e,n){const{left:o,top:r,width:s,height:a}=n.getBoundingClientRect();return[(0,i.Kiv)(t-o,0,s)/s,(0,i.Kiv)(e-r,0,a)/a]}function s(t){return t.slice(0,Math.max(0,t.length-1)).replace("linear-gradient(","")}function a(t,e,n={}){return t.find((({attrs:t,type:o})=>o===e&&function(t,e){const n=Object.keys(e);return!n.length||!!n.filter((n=>e[n]===t[n])).length}(t,n)))||null}function l(t,e,n={}){if(!t||!e)return null;const{node:o,offset:i}=t.parent.childAfter(t.parentOffset);if(!o)return null;const r=a(o.marks,e,n);if(!r)return null;let s=t.index(),l=t.start()+i,c=s+1,d=l+o.nodeSize;for(a(o.marks,e,n);s>0&&r.isInSet(t.parent.child(s-1).marks);)s-=1,l-=t.parent.child(s).nodeSize;for(;c{t instanceof c.NB&&e.push([t.type.name,t.attrs])})),e}var u=n(11046);function h(t,e){const n=null!=e?e:t.selection.$head.parent.textContent,o=t.doc.cut(t.selection.from,t.selection.to);return o.content.size?(0,u.getHTMLFromFragment)(o.content,t.schema):n}function p(t){Array.from(t.children).forEach((t=>{if(t.children.length&&p(t),"FONT"===t.tagName)if(t.hasAttribute("size"))switch(t.getAttribute("size")){case"6":f("h1",t);break;case"5":f("h2",t);break;case"4":m("17px",t);break;case"3":m("15px",t);break;case"2":m("13px",t)}else t.hasAttribute("color")&&function(t){var e;const n=document.createElement("span");n.setAttribute("style",`color: ${t.getAttribute("color")}`),n.innerHTML=t.innerHTML,null===(e=t.parentElement)||void 0===e||e.replaceChild(n,t)}(t)}))}function f(t,e){var n,o,i,r,s,a,l,c,d;const u=document.createElement(t);if(u.innerHTML=e.innerHTML,"P"===(null===(n=e.parentElement)||void 0===n?void 0:n.tagName)){const t=null===(i=null===(o=e.parentElement)||void 0===o?void 0:o.parentElement)||void 0===i?void 0:i.insertBefore(u,e.parentElement);null===(r=e.parentElement)||void 0===r||r.removeChild(e),(null==t?void 0:t.nextSibling)&&!(null===(a=null===(s=null==t?void 0:t.nextSibling)||void 0===s?void 0:s.textContent)||void 0===a?void 0:a.trim())&&(null===(c=null===(l=t.nextSibling)||void 0===l?void 0:l.parentElement)||void 0===c||c.removeChild(t.nextSibling))}else null===(d=e.parentElement)||void 0===d||d.replaceChild(u,e)}function m(t,e){var n;const o=document.createElement("p"),i=document.createElement("span");i.setAttribute("style",`font-size: ${t}`),i.innerHTML=e.innerHTML,o.append(i),null===(n=e.parentElement)||void 0===n||n.replaceChild("P"===e.parentElement.tagName?i:o,e)}function g(t){const e=(new DOMParser).parseFromString(t,"text/html");return p(e.body),e.body.innerHTML}const b=["\\s*(","(?:","#(?:[a-f0-9]{6}|[a-f0-9]{3})","|","(?:rgb|hsl)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*\\)","|","(?:rgba|hsla)","\\(\\s*(?:\\d{1,3}\\s*,\\s*){2}\\d{1,3}\\s*,\\s*\\d*\\.?\\d+\\)","|","[_a-z-][_a-z0-9-]*",")",")","(?:\\s+","(","(?:[+-]?\\d*\\.?\\d+)(?:%|[a-z]+)?","))?","(?:","\\s*,\\s*","\\s*)?"];function v(t,e){const n=1===e?"100%":`${e}%`;return(null==t?void 0:t.includes("%"))?t:n}function y(t){const e=new RegExp(b.join(""),"gi"),n=t.startsWith("to")||t.match(/^\d/)?t.slice(Math.max(0,t.indexOf(",")+1)).trim():t,o=t.startsWith("to")?t.split(",")[0]:"to bottom";let i=[],r=e.exec(n);for(;null!==r;)i=i.concat({color:r[1],position:v(r[2],i.length)}),r=e.exec(n);return i=i.filter((({color:t})=>t.startsWith("#")||t.startsWith("rgb"))),{stops:i,side:o}}function w(t){return t.reduce(((t,e)=>(t[e]={parseHTML:t=>null==t?void 0:t.getAttribute(`${e}`)},t)),{})}function x(t){return t.split(";").reduce(((t,e)=>{var n;const[o,i]=null!==(n=e.split(":"))&&void 0!==n?n:[];return o&&i&&(t[o.trim()]=i.trim()),t}),{})}function k(t){var e;const n=(null===(e=t.endContainer.nodeValue)||void 0===e?void 0:e.length)||0;return t.endOffset-t.startOffset>0||t.endOffset-t.startOffset==0&&1===n||0!==t.startOffset&&n>1&&t.endOffset!==n}function C({stops:t,side:e}){return`linear-gradient(${e}, ${t.map((({color:t,position:e})=>`rgba(${(0,i.MpC)(t).join(", ")}) ${e}`)).join(", ")})`}},11046:(t,e,n)=>{n.r(e),n.d(e,{CommandManager:()=>D,Editor:()=>ge,Extension:()=>ct,InputRule:()=>K,Mark:()=>ke,Node:()=>Ce,NodeView:()=>Me,PasteRule:()=>nt,Tracker:()=>Ee,callOrReturn:()=>F,combineTransactionSteps:()=>It,createChainableState:()=>I,createDocument:()=>Nt,createNodeFromContent:()=>Ct,createStyleTag:()=>me,defaultBlockAt:()=>Dt,deleteProps:()=>Tt,elementFromString:()=>kt,escapeForRegEx:()=>Ae,extensions:()=>fe,findChildren:()=>Pt,findChildrenInRange:()=>Ht,findDuplicates:()=>rt,findParentNode:()=>Rt,findParentNodeClosestToPos:()=>Lt,fromString:()=>Z,generateHTML:()=>$t,generateJSON:()=>Bt,generateText:()=>Jt,getAttributes:()=>Yt,getAttributesFromExtensions:()=>R,getChangedRanges:()=>qt,getDebugJSON:()=>Vt,getExtensionField:()=>H,getHTMLFromFragment:()=>_t,getMarkAttributes:()=>Et,getMarkRange:()=>gt,getMarkType:()=>bt,getMarksBetween:()=>Ut,getNodeAtPosition:()=>Wt,getNodeAttributes:()=>Zt,getNodeType:()=>_,getRenderedAttributes:()=>$,getSchema:()=>zt,getSchemaByResolvedExtensions:()=>q,getSchemaTypeByName:()=>V,getSchemaTypeNameByName:()=>Ot,getSplittedAttributes:()=>Qt,getText:()=>Ft,getTextBetween:()=>dt,getTextContentFromNodes:()=>W,getTextSerializersFromSchema:()=>ut,injectExtensionAttributesToParseRule:()=>Y,inputRulesPlugin:()=>tt,isActive:()=>Gt,isAtEndOfNode:()=>Xt,isAtStartOfNode:()=>te,isEmptyObject:()=>J,isExtensionRulesEnabled:()=>U,isFunction:()=>B,isList:()=>ee,isMacOS:()=>St,isMarkActive:()=>Kt,isNodeActive:()=>At,isNodeEmpty:()=>ne,isNodeSelection:()=>oe,isNumber:()=>et,isPlainObject:()=>at,isRegExp:()=>Q,isString:()=>Oe,isTextSelection:()=>vt,isiOS:()=>xt,markInputRule:()=>be,markPasteRule:()=>Se,mergeAttributes:()=>z,mergeDeep:()=>lt,minMax:()=>yt,nodeInputRule:()=>ve,nodePasteRule:()=>Te,objectIncludes:()=>pt,pasteRulesPlugin:()=>it,posToDOMRect:()=>ie,removeDuplicates:()=>jt,resolveFocusPosition:()=>wt,selectionToInsertionEnd:()=>Mt,splitExtensions:()=>L,textInputRule:()=>we,textPasteRule:()=>Ne,textblockTypeInputRule:()=>ye,wrappingInputRule:()=>xe});var o=n(62463),i=n(43594),r=n(31690),s=n(27439),a=n(38480);const l=(t,e)=>!t.selection.empty&&(e&&e(t.tr.deleteSelection().scrollIntoView()),!0),c=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}(t,n);if(!i)return!1;let r=h(i);if(!r){let n=i.blockRange(),o=n&&(0,a.k9)(n);return null!=o&&(e&&e(t.tr.lift(n,o).scrollIntoView()),!0)}let l=r.nodeBefore;if(!l.type.spec.isolating&&x(t,r,e))return!0;if(0==i.parent.content.size&&(d(l,"end")||o.qv.isSelectable(l))){let n=(0,a.dR)(t.doc,i.before(),i.after(),s.p2.empty);if(n&&n.slice.size{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):i.parentOffset>0)return!1;s=h(i)}let a=s&&s.nodeBefore;return!(!a||!o.qv.isSelectable(a)||(e&&e(t.tr.setSelection(o.qv.create(t.doc,s.pos-a.nodeSize)).scrollIntoView()),0))};function h(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}const p=(t,e,n)=>{let i=function(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let{$head:i,empty:r}=t.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):i.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let{$head:n,$anchor:o}=t.selection;return!(!n.parent.type.spec.code||!n.sameParent(o)||(e&&e(t.tr.insertText("\n").scrollIntoView()),0))};function b(t){for(let e=0;e{let{$head:n,$anchor:i}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let r=n.node(-1),s=n.indexAfter(-1),a=b(r.contentMatchAt(s));if(!a||!r.canReplaceWith(s,s,a))return!1;if(e){let i=n.after(),r=t.tr.replaceWith(i,i,a.createAndFill());r.setSelection(o.Y1.near(r.doc.resolve(i),1)),e(r.scrollIntoView())}return!0},y=(t,e)=>{let n=t.selection,{$from:i,$to:r}=n;if(n instanceof o.C1||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=b(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let n=(!i.parentOffset&&r.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if((0,a.Ax)(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),i=o&&(0,a.k9)(o);return null!=i&&(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)};function x(t,e,n){let i,r,l=e.nodeBefore,c=e.nodeAfter;if(l.type.spec.isolating||c.type.spec.isolating)return!1;if(function(t,e,n){let o=e.nodeBefore,i=e.nodeAfter,r=e.index();return!(!(o&&i&&o.type.compatibleContent(i.type))||(!o.content.size&&e.parent.canReplace(r-1,r)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!i.isTextblock&&!(0,a.Mn)(t.doc,e.pos)||(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),0)))}(t,e,n))return!0;let u=e.parent.canReplace(e.index(),e.index()+1);if(u&&(i=(r=l.contentMatchAt(l.childCount)).findWrapping(c.type))&&r.matchType(i[0]||c.type).validEnd){if(n){let o=e.pos+c.nodeSize,r=s.HY.empty;for(let t=i.length-1;t>=0;t--)r=s.HY.from(i[t].create(null,r));r=s.HY.from(l.copy(r));let d=t.tr.step(new a.FC(e.pos-1,o,e.pos,o,new s.p2(r,1,0),i.length,!0)),u=o+2*i.length;(0,a.Mn)(d.doc,u)&&d.join(u),n(d.scrollIntoView())}return!0}let h=o.Y1.findFrom(e,1),p=h&&h.$from.blockRange(h.$to),f=p&&(0,a.k9)(p);if(null!=f&&f>=e.depth)return n&&n(t.tr.lift(p,f).scrollIntoView()),!0;if(u&&d(c,"start",!0)&&d(l,"end")){let o=l,i=[];for(;i.push(o),!o.isTextblock;)o=o.lastChild;let r=c,d=1;for(;!r.isTextblock;r=r.firstChild)d++;if(o.canReplace(o.childCount,o.childCount,r.content)){if(n){let o=s.HY.empty;for(let t=i.length-1;t>=0;t--)o=s.HY.from(i[t].copy(o));n(t.tr.step(new a.FC(e.pos-i.length,e.pos+c.nodeSize,e.pos+d,e.pos+c.nodeSize-d,new s.p2(o,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function k(t){return function(e,n){let i=e.selection,r=t<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return!!r.node(s).isTextblock&&(n&&n(e.tr.setSelection(o.Bs.create(e.doc,t<0?r.start(s):r.end(s)))),!0)}}const C=k(-1),M=k(1);function S(t,e=null){return function(n,o){let i=!1;for(let o=0;o{if(i)return!1;if(o.isTextblock&&!o.hasMarkup(t,e))if(o.type==t)i=!0;else{let e=n.doc.resolve(r),o=e.index();i=e.parent.canReplaceWith(o,o+1,t)}}))}if(!i)return!1;if(o){let i=n.tr;for(let o=0;o{let{$from:n,$to:i}=t.selection;if(t.selection instanceof o.qv&&t.selection.node.isBlock)return!(!n.parentOffset||!(0,a.Ax)(t.doc,n.pos)||(e&&e(t.tr.split(n.pos).scrollIntoView()),0));if(!n.parent.isBlock)return!1;if(e){let r=i.parentOffset==i.parent.content.size,s=t.tr;(t.selection instanceof o.Bs||t.selection instanceof o.C1)&&s.deleteSelection();let l=0==n.depth?null:b(n.node(-1).contentMatchAt(n.indexAfter(-1))),c=r&&l?[{type:l}]:void 0,d=(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,c);if(c||d||!(0,a.Ax)(s.doc,s.mapping.map(n.pos),1,l?[{type:l}]:void 0)||(l&&(c=[{type:l}]),d=!0),d&&(s.split(s.mapping.map(n.pos),1,c),!r&&!n.parentOffset&&n.parent.type!=l)){let t=s.mapping.map(n.before()),e=s.doc.resolve(t);l&&n.node(-1).canReplaceWith(e.index(),e.index()+1,l)&&s.setNodeMarkup(s.mapping.map(n.before()),l)}e(s.scrollIntoView())}return!0})),"Mod-Enter":v,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:T,"Mod-Delete":T,"Mod-a":(t,e)=>(e&&e(t.tr.setSelection(new o.C1(t.doc))),!0)},E={"Ctrl-h":N.Backspace,"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N.Delete,"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":C,"Ctrl-e":M};for(let t in N)E[t]=N[t];function I(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:i}=n,{storedMarks:r}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return o},get doc(){return i},get tr(){return o=n.selection,i=n.doc,r=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform();class D{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:o}=e,{tr:i}=n,r=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(...t)=>{const n=e(...t)(r);return i.getMeta("preventDispatch")||this.hasCustomState||o.dispatch(i),n}])))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s=[],a=!!t,l=t||i.tr,c={...Object.fromEntries(Object.entries(n).map((([t,n])=>[t,(...t)=>{const o=this.buildProps(l,e),i=n(...t)(o);return s.push(i),c}]))),run:()=>(a||!e||l.getMeta("preventDispatch")||this.hasCustomState||r.dispatch(l),s.every((t=>!0===t)))};return c}createCan(t){const{rawCommands:e,state:n}=this,o=!1,i=t||n.tr,r=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(e).map((([t,e])=>[t,(...t)=>e(...t)({...r,dispatch:void 0})]))),chain:()=>this.createChain(i,o)}}buildProps(t,e=!0){const{rawCommands:n,editor:o,state:i}=this,{view:r}=o,s={tr:t,editor:o,view:r,state:I({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map((([t,e])=>[t,(...t)=>e(...t)(s)])))}};return s}}class P{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach((t=>t.apply(this,e))),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter((t=>t!==e)):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function H(t,e,n){return void 0===t.config[e]&&t.parent?H(t.parent,e,n):"function"==typeof t.config[e]?t.config[e].bind({...n,parent:t.parent?H(t.parent,e,n):null}):t.config[e]}function L(t){return{baseExtensions:t.filter((t=>"extension"===t.type)),nodeExtensions:t.filter((t=>"node"===t.type)),markExtensions:t.filter((t=>"mark"===t.type))}}function R(t){const e=[],{nodeExtensions:n,markExtensions:o}=L(t),i=[...n,...o],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach((t=>{const n=H(t,"addGlobalAttributes",{name:t.name,options:t.options,storage:t.storage});n&&n().forEach((t=>{t.types.forEach((n=>{Object.entries(t.attributes).forEach((([t,o])=>{e.push({type:n,name:t,attribute:{...r,...o}})}))}))}))})),i.forEach((t=>{const n={name:t.name,options:t.options,storage:t.storage},o=H(t,"addAttributes",n);if(!o)return;const i=o();Object.entries(i).forEach((([n,o])=>{const i={...r,...o};"function"==typeof(null==i?void 0:i.default)&&(i.default=i.default()),(null==i?void 0:i.isRequired)&&void 0===(null==i?void 0:i.default)&&delete i.default,e.push({type:t.name,name:n,attribute:i})}))})),e}function _(t,e){if("string"==typeof t){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function z(...t){return t.filter((t=>!!t)).reduce(((t,e)=>{const n={...t};return Object.entries(e).forEach((([t,e])=>{if(n[t])if("class"===t){const o=e?e.split(" "):[],i=n[t]?n[t].split(" "):[],r=o.filter((t=>!i.includes(t)));n[t]=[...i,...r].join(" ")}else n[t]="style"===t?[n[t],e].join("; "):e;else n[t]=e})),n}),{})}function $(t,e){return e.filter((t=>t.attribute.rendered)).map((e=>e.attribute.renderHTML?e.attribute.renderHTML(t.attrs)||{}:{[e.name]:t.attrs[e.name]})).reduce(((t,e)=>z(t,e)),{})}function B(t){return"function"==typeof t}function F(t,e=void 0,...n){return B(t)?e?t.bind(e)(...n):t(...n):t}function J(t={}){return 0===Object.keys(t).length&&t.constructor===Object}function Z(t){return"string"!=typeof t?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):"true"===t||"false"!==t&&t}function Y(t,e){return t.style?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(!1===o)return!1;const i=e.reduce(((t,e)=>{const o=e.attribute.parseHTML?e.attribute.parseHTML(n):Z(n.getAttribute(e.name));return null==o?t:{...t,[e.name]:o}}),{});return{...o,...i}}}}function j(t){return Object.fromEntries(Object.entries(t).filter((([t,e])=>("attrs"!==t||!J(e))&&null!=e)))}function q(t,e){var n;const o=R(t),{nodeExtensions:i,markExtensions:r}=L(t),a=null===(n=i.find((t=>H(t,"topNode"))))||void 0===n?void 0:n.name,l=Object.fromEntries(i.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=j({...t.reduce(((t,e)=>{const o=H(e,"extendNodeSchema",r);return{...t,...o?o(n):{}}}),{}),content:F(H(n,"content",r)),marks:F(H(n,"marks",r)),group:F(H(n,"group",r)),inline:F(H(n,"inline",r)),atom:F(H(n,"atom",r)),selectable:F(H(n,"selectable",r)),draggable:F(H(n,"draggable",r)),code:F(H(n,"code",r)),defining:F(H(n,"defining",r)),isolating:F(H(n,"isolating",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>Y(t,i))));const l=H(n,"renderHTML",r);l&&(s.toDOM=t=>l({node:t,HTMLAttributes:$(t,i)}));const c=H(n,"renderText",r);return c&&(s.toText=c),[n.name,s]}))),c=Object.fromEntries(r.map((n=>{const i=o.filter((t=>t.type===n.name)),r={name:n.name,options:n.options,storage:n.storage,editor:e},s=j({...t.reduce(((t,e)=>{const o=H(e,"extendMarkSchema",r);return{...t,...o?o(n):{}}}),{}),inclusive:F(H(n,"inclusive",r)),excludes:F(H(n,"excludes",r)),group:F(H(n,"group",r)),spanning:F(H(n,"spanning",r)),code:F(H(n,"code",r)),attrs:Object.fromEntries(i.map((t=>{var e;return[t.name,{default:null===(e=null==t?void 0:t.attribute)||void 0===e?void 0:e.default}]})))}),a=F(H(n,"parseHTML",r));a&&(s.parseDOM=a.map((t=>Y(t,i))));const l=H(n,"renderHTML",r);return l&&(s.toDOM=t=>l({mark:t,HTMLAttributes:$(t,i)})),[n.name,s]})));return new s.V_({topNode:a,nodes:l,marks:c})}function V(t,e){return e.nodes[t]||e.marks[t]||null}function U(t,e){return Array.isArray(e)?e.some((e=>("string"==typeof e?e:e.name)===t.name)):e}const W=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,((t,e,i,r)=>{var s,a;const l=(null===(a=(s=t.type.spec).toText)||void 0===a?void 0:a.call(s,{node:t,pos:e,parent:i,index:r}))||t.textContent||"%leaf%";n+=l.slice(0,Math.max(0,o-e))})),n};function Q(t){return"[object RegExp]"===Object.prototype.toString.call(t)}class K{constructor(t){this.find=t.find,this.handler=t.handler}}const G=(t,e)=>{if(Q(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function X(t){var e;const{editor:n,from:o,to:i,text:r,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||(null===(e=c.nodeBefore||c.nodeAfter)||void 0===e?void 0:e.marks.find((t=>t.type.spec.code))))return!1;let d=!1;const u=W(c)+r;return s.forEach((t=>{if(d)return;const e=G(u,t.find);if(!e)return;const s=l.state.tr,c=I({state:l.state,transaction:s}),h={from:o-(e[0].length-r.length),to:i},{commands:p,chain:f,can:m}=new D({editor:n,state:c});null!==t.handler({state:c,range:h,match:e,commands:p,chain:f,can:m})&&s.steps.length&&(s.setMeta(a,{transform:s,from:o,to:i,text:r}),l.dispatch(s),d=!0)})),d}function tt(t){const{editor:e,rules:n}=t,i=new o.Sy({state:{init:()=>null,apply:(t,e)=>t.getMeta(i)||(t.selectionSet||t.docChanged?null:e)},props:{handleTextInput:(t,o,r,s)=>X({editor:e,from:o,to:r,text:s,rules:n,plugin:i}),handleDOMEvents:{compositionend:t=>(setTimeout((()=>{const{$cursor:o}=t.state.selection;o&&X({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:i})})),!1)},handleKeyDown(t,o){if("Enter"!==o.key)return!1;const{$cursor:r}=t.state.selection;return!!r&&X({editor:e,from:r.pos,to:r.pos,text:"\n",rules:n,plugin:i})}},isInputRules:!0});return i}function et(t){return"number"==typeof t}class nt{constructor(t){this.find=t.find,this.handler=t.handler}}const ot=(t,e)=>{if(Q(e))return[...t.matchAll(e)];const n=e(t);return n?n.map((e=>{const n=[e.text];return n.index=e.index,n.input=t,n.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(e.replaceWith)),n})):[]};function it(t){const{editor:e,rules:n}=t;let i=null,r=!1,s=!1,a=new ClipboardEvent("paste"),l=new DragEvent("drop");const c=n.map((t=>new o.Sy({view(t){const e=e=>{var n;i=(null===(n=t.dom.parentElement)||void 0===n?void 0:n.contains(e.target))?t.dom.parentElement:null};return window.addEventListener("dragstart",e),{destroy(){window.removeEventListener("dragstart",e)}}},props:{handleDOMEvents:{drop:(t,e)=>(s=i===t.dom.parentElement,l=e,!1),paste:(t,e)=>{var n;const o=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/html");return a=e,r=!!(null==o?void 0:o.includes("data-pm-slice")),!1}}},appendTransaction:(n,o,i)=>{const c=n[0],d="paste"===c.getMeta("uiEvent")&&!r,u="drop"===c.getMeta("uiEvent")&&!s;if(!d&&!u)return;const h=o.doc.content.findDiffStart(i.doc.content),p=o.doc.content.findDiffEnd(i.doc.content);if(!et(h)||!p||h===p.b)return;const f=i.tr,m=I({state:i,transaction:f}),g=function(t){const{editor:e,state:n,from:o,to:i,rule:r,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:d}=new D({editor:e,state:n}),u=[];return n.doc.nodesBetween(o,i,((t,e)=>{if(!t.isTextblock||t.type.spec.code)return;const h=Math.max(o,e),p=Math.min(i,e+t.content.size),f=t.textBetween(h-e,p-e,void 0,"");ot(f,r.find).forEach((t=>{if(void 0===t.index)return;const e=h+t.index+1,o=e+t[0].length,i={from:n.tr.mapping.map(e),to:n.tr.mapping.map(o)},p=r.handler({state:n,range:i,match:t,commands:l,chain:c,can:d,pasteEvent:s,dropEvent:a});u.push(p)}))})),u.every((t=>null!==t))}({editor:e,state:m,from:Math.max(h-1,0),to:p.b-1,rule:t,pasteEvent:a,dropEvent:l});return g&&f.steps.length?(l=new DragEvent("drop"),a=new ClipboardEvent("paste"),f):void 0}})));return c}function rt(t){const e=t.filter(((e,n)=>t.indexOf(e)!==n));return[...new Set(e)]}class st{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=st.resolve(t),this.schema=q(this.extensions,e),this.extensions.forEach((t=>{var e;this.editor.extensionStorage[t.name]=t.storage;const n={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:V(t.name,this.schema)};"mark"===t.type&&(null===(e=F(H(t,"keepOnSplit",n)))||void 0===e||e)&&this.splittableMarks.push(t.name);const o=H(t,"onBeforeCreate",n);o&&this.editor.on("beforeCreate",o);const i=H(t,"onCreate",n);i&&this.editor.on("create",i);const r=H(t,"onUpdate",n);r&&this.editor.on("update",r);const s=H(t,"onSelectionUpdate",n);s&&this.editor.on("selectionUpdate",s);const a=H(t,"onTransaction",n);a&&this.editor.on("transaction",a);const l=H(t,"onFocus",n);l&&this.editor.on("focus",l);const c=H(t,"onBlur",n);c&&this.editor.on("blur",c);const d=H(t,"onDestroy",n);d&&this.editor.on("destroy",d)}))}static resolve(t){const e=st.sort(st.flatten(t)),n=rt(e.map((t=>t.name)));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map((t=>`'${t}'`)).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map((t=>{const e=H(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return e?[t,...this.flatten(e())]:t})).flat(10)}static sort(t){return t.sort(((t,e)=>{const n=H(t,"priority")||100,o=H(e,"priority")||100;return n>o?-1:n{const n=H(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:V(e.name,this.schema)});return n?{...t,...n()}:t}),{})}get plugins(){const{editor:t}=this,e=st.sort([...this.extensions].reverse()),n=[],o=[],i=e.map((e=>{const i={name:e.name,options:e.options,storage:e.storage,editor:t,type:V(e.name,this.schema)},s=[],a=H(e,"addKeyboardShortcuts",i);let l={};if("mark"===e.type&&e.config.exitable&&(l.ArrowRight=()=>ke.handleExit({editor:t,mark:e})),a){const e=Object.fromEntries(Object.entries(a()).map((([e,n])=>[e,()=>n({editor:t})])));l={...l,...e}}const c=(0,r.h)(l);s.push(c);const d=H(e,"addInputRules",i);U(e,t.options.enableInputRules)&&d&&n.push(...d());const u=H(e,"addPasteRules",i);U(e,t.options.enablePasteRules)&&u&&o.push(...u());const h=H(e,"addProseMirrorPlugins",i);if(h){const t=h();s.push(...t)}return s})).flat();return[tt({editor:t,rules:n}),...it({editor:t,rules:o}),...i]}get attributes(){return R(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=L(this.extensions);return Object.fromEntries(e.filter((t=>!!H(t,"addNodeView"))).map((e=>{const n=this.attributes.filter((t=>t.type===e.name)),o={name:e.name,options:e.options,storage:e.storage,editor:t,type:_(e.name,this.schema)},i=H(e,"addNodeView",o);return i?[e.name,(o,r,s,a)=>{const l=$(o,n);return i()({editor:t,node:o,getPos:s,decorations:a,HTMLAttributes:l,extension:e})}]:[]})))}}function at(t){return"Object"===function(t){return Object.prototype.toString.call(t).slice(8,-1)}(t)&&t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function lt(t,e){const n={...t};return at(t)&&at(e)&&Object.keys(e).forEach((o=>{at(e[o])?o in t?n[o]=lt(t[o],e[o]):Object.assign(n,{[o]:e[o]}):Object.assign(n,{[o]:e[o]})})),n}class ct{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ct(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ct(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}function dt(t,e,n){const{from:o,to:i}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=n||{};let a="",l=!0;return t.nodesBetween(o,i,((t,n,c,d)=>{var u;const h=null==s?void 0:s[t.type.name];h?(t.isBlock&&!l&&(a+=r,l=!0),c&&(a+=h({node:t,pos:n,parent:c,index:d,range:e}))):t.isText?(a+=null===(u=null==t?void 0:t.text)||void 0===u?void 0:u.slice(Math.max(o,n)-n,i-n),l=!1):t.isBlock&&!l&&(a+=r,l=!0)})),a}function ut(t){return Object.fromEntries(Object.entries(t.nodes).filter((([,t])=>t.spec.toText)).map((([t,e])=>[t,e.spec.toText])))}const ht=ct.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:i}=e,{ranges:r}=i;return dt(o,{from:Math.min(...r.map((t=>t.$from.pos))),to:Math.max(...r.map((t=>t.$to.pos)))},{textSerializers:ut(n)})}}})]}});function pt(t,e,n={strict:!0}){const o=Object.keys(e);return!o.length||o.every((o=>n.strict?e[o]===t[o]:Q(e[o])?e[o].test(t[o]):e[o]===t[o]))}function ft(t,e,n={}){return t.find((t=>t.type===e&&pt(t.attrs,n)))}function mt(t,e,n={}){return!!ft(t,e,n)}function gt(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(t.parentOffset===o.offset&&0!==o.offset&&(o=t.parent.childBefore(t.parentOffset)),!o.node)return;const i=ft([...o.node.marks],e,n);if(!i)return;let r=o.index,s=t.start()+o.offset,a=r+1,l=s+o.node.nodeSize;for(ft([...o.node.marks],e,n);r>0&&i.isInSet(t.parent.child(r-1).marks);)r-=1,s-=t.parent.child(r).nodeSize;for(;a${t}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function Ct(t,e,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof t&&null!==t)try{return Array.isArray(t)&&t.length>0?s.HY.fromArray(t.map((t=>e.nodeFromJSON(t)))):e.nodeFromJSON(t)}catch(o){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),Ct("",e,n)}if("string"==typeof t){const o=s.aw.fromSchema(e);return n.slice?o.parseSlice(kt(t),n.parseOptions).content:o.parse(kt(t),n.parseOptions)}return Ct("",e,n)}function Mt(t,e,n){const i=t.steps.length-1;if(i{0===l&&(l=o)})),t.setSelection(o.Y1.near(t.doc.resolve(l),n))}function St(){return"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)}function At(t,e,n={}){const{from:o,to:i,empty:r}=t.selection,s=e?_(e,t.schema):null,a=[];t.doc.nodesBetween(o,i,((t,e)=>{if(t.isText)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);a.push({node:t,from:n,to:r})}));const l=i-o,c=a.filter((t=>!s||s.name===t.node.type.name)).filter((t=>pt(t.node.attrs,n,{strict:!1})));return r?!!c.length:c.reduce(((t,e)=>t+e.to-e.from),0)>=l}function Ot(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Tt(t,e){const n="string"==typeof e?[e]:e;return Object.keys(t).reduce(((e,o)=>(n.includes(o)||(e[o]=t[o]),e)),{})}function Nt(t,e,n={}){return Ct(t,e,{slice:!1,parseOptions:n})}function Et(t,e){const n=bt(e,t.schema),{from:o,to:i,empty:r}=t.selection,s=[];r?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,i,(t=>{s.push(...t.marks)}));const a=s.find((t=>t.type.name===n.name));return a?{...a.attrs}:{}}function It(t,e){const n=new a.wx(t);return e.forEach((t=>{t.steps.forEach((t=>{n.step(t)}))})),n}function Dt(t){for(let e=0;e{e(t)&&n.push({node:t,pos:o})})),n}function Ht(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,((t,e)=>{n(t)&&o.push({node:t,pos:e})})),o}function Lt(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Rt(t){return e=>Lt(e.$from,t)}function _t(t,e){const n=s.PW.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function zt(t,e){return q(st.resolve(t),e)}function $t(t,e){const n=zt(e);return _t(s.NB.fromJSON(n,t).content,n)}function Bt(t,e){const n=zt(e),o=kt(t);return s.aw.fromSchema(n).parse(o).toJSON()}function Ft(t,e){return dt(t,{from:0,to:t.content.size},e)}function Jt(t,e,n){const{blockSeparator:o="\n\n",textSerializers:i={}}=n||{},r=zt(e);return Ft(s.NB.fromJSON(r,t),{blockSeparator:o,textSerializers:{...ut(r),...i}})}function Zt(t,e){const n=_(e,t.schema),{from:o,to:i}=t.selection,r=[];t.doc.nodesBetween(o,i,(t=>{r.push(t)}));const s=r.reverse().find((t=>t.type.name===n.name));return s?{...s.attrs}:{}}function Yt(t,e){const n=Ot("string"==typeof e?e:e.name,t.schema);return"node"===n?Zt(t,e):"mark"===n?Et(t,e):{}}function jt(t,e=JSON.stringify){const n={};return t.filter((t=>{const o=e(t);return!Object.prototype.hasOwnProperty.call(n,o)&&(n[o]=!0)}))}function qt(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach(((t,i)=>{const r=[];if(t.ranges.length)t.forEach(((t,e)=>{r.push({from:t,to:e})}));else{const{from:t,to:e}=n[i];if(void 0===t||void 0===e)return;r.push({from:t,to:e})}r.forEach((({from:t,to:n})=>{const r=e.slice(i).map(t,-1),s=e.slice(i).map(n),a=e.invert().map(r,-1),l=e.invert().map(s);o.push({oldRange:{from:a,to:l},newRange:{from:r,to:s}})}))})),function(t){const e=jt(t);return 1===e.length?e:e.filter(((t,n)=>!e.filter(((t,e)=>e!==n)).some((e=>t.oldRange.from>=e.oldRange.from&&t.oldRange.to<=e.oldRange.to&&t.newRange.from>=e.newRange.from&&t.newRange.to<=e.newRange.to))))}(o)}function Vt(t,e=0){const n=t.type===t.type.schema.topNodeType?0:1,o=e,i=o+t.nodeSize,r=t.marks.map((t=>{const e={type:t.type.name};return Object.keys(t.attrs).length&&(e.attrs={...t.attrs}),e})),s={...t.attrs},a={type:t.type.name,from:o,to:i};return Object.keys(s).length&&(a.attrs=s),r.length&&(a.marks=r),t.content.childCount&&(a.content=[],t.forEach(((t,o)=>{var i;null===(i=a.content)||void 0===i||i.push(Vt(t,e+o+n))}))),t.text&&(a.text=t.text),a}function Ut(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach((e=>{const i=gt(n.resolve(t-1),e.type);i&&o.push({mark:e,...i})})):n.nodesBetween(t,e,((t,e)=>{o.push(...t.marks.map((n=>({from:e,to:e+t.nodeSize,mark:n}))))})),o}const Wt=(t,e,n,o=20)=>{const i=t.doc.resolve(n);let r=o,s=null;for(;r>0&&null===s;){const t=i.node(r);(null==t?void 0:t.type.name)===e?s=t:r-=1}return[s,r]};function Qt(t,e,n){return Object.fromEntries(Object.entries(n).filter((([n])=>{const o=t.find((t=>t.type===e&&t.name===n));return!!o&&o.attribute.keepOnSplit})))}function Kt(t,e,n={}){const{empty:o,ranges:i}=t.selection,r=e?bt(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter((t=>!r||r.name===t.type.name)).find((t=>pt(t.attrs,n,{strict:!1})));let s=0;const a=[];if(i.forEach((({$from:e,$to:n})=>{const o=e.pos,i=n.pos;t.doc.nodesBetween(o,i,((t,e)=>{if(!t.isText&&!t.marks.length)return;const n=Math.max(o,e),r=Math.min(i,e+t.nodeSize);s+=r-n,a.push(...t.marks.map((t=>({mark:t,from:n,to:r}))))}))})),0===s)return!1;const l=a.filter((t=>!r||r.name===t.mark.type.name)).filter((t=>pt(t.mark.attrs,n,{strict:!1}))).reduce(((t,e)=>t+e.to-e.from),0),c=a.filter((t=>!r||t.mark.type!==r&&t.mark.type.excludes(r))).reduce(((t,e)=>t+e.to-e.from),0);return(l>0?l+c:l)>=s}function Gt(t,e,n={}){if(!e)return At(t,null,n)||Kt(t,null,n);const o=Ot(e,t.schema);return"node"===o?At(t,e,n):"mark"===o&&Kt(t,e,n)}const Xt=(t,e)=>{const{$from:n,$to:o,$anchor:i}=t.selection;if(e){const n=Rt((t=>t.type.name===e))(t.selection);if(!n)return!1;const o=t.doc.resolve(n.pos+1);return i.pos+1===o.end()}return!(o.parentOffset{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function ee(t,e){const{nodeExtensions:n}=L(e),o=n.find((e=>e.name===t));if(!o)return!1;const i=F(H(o,"group",{name:o.name,options:o.options,storage:o.storage}));return"string"==typeof i&&i.split(" ").includes("list")}function ne(t){var e;const n=null===(e=t.type.createAndFill())||void 0===e?void 0:e.toJSON(),o=t.toJSON();return JSON.stringify(n)===JSON.stringify(o)}function oe(t){return t instanceof o.qv}function ie(t,e,n){const o=t.state.doc.content.size,i=yt(e,0,o),r=yt(n,0,o),s=t.coordsAtPos(i),a=t.coordsAtPos(r,-1),l=Math.min(s.top,a.top),c=Math.max(s.bottom,a.bottom),d=Math.min(s.left,a.left),u=Math.max(s.right,a.right),h={top:l,bottom:c,left:d,right:u,width:u-d,height:c-l,x:d,y:l};return{...h,toJSON:()=>h}}function re(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter((t=>null==e?void 0:e.includes(t.type.name)));t.tr.ensureMarks(o)}}const se=(t,e)=>{const n=Rt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,n.pos)||(t.join(n.pos),!0)},ae=(t,e)=>{const n=Rt((t=>t.type===e))(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(void 0===o)return!0;const i=t.doc.nodeAt(o);return n.node.type!==(null==i?void 0:i.type)||!(0,a.Mn)(t.doc,o)||(t.join(o),!0)};var le=Object.freeze({__proto__:null,blur:()=>({editor:t,view:e})=>(requestAnimationFrame((()=>{var n;t.isDestroyed||(e.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||void 0===n||n.removeAllRanges())})),!0),clearContent:(t=!1)=>({commands:e})=>e.setContent("",t),clearNodes:()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:i}=o;return!n||(i.forEach((({$from:n,$to:o})=>{t.doc.nodesBetween(n.pos,o.pos,((t,n)=>{if(t.type.isText)return;const{doc:o,mapping:i}=e,r=o.resolve(i.map(n)),s=o.resolve(i.map(n+t.nodeSize)),l=r.blockRange(s);if(!l)return;const c=(0,a.k9)(l);if(t.type.isTextblock){const{defaultType:t}=r.parent.contentMatchAt(r.index());e.setNodeMarkup(l.start,t)}(c||0===c)&&e.lift(l,c)}))})),!0)},command:t=>e=>t(e),createParagraphNear:()=>({state:t,dispatch:e})=>y(t,e),cut:(t,e)=>({editor:n,tr:i})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);i.deleteRange(t.from,t.to);const a=i.mapping.map(e);return i.insert(a,s.content),i.setSelection(new o.Bs(i.doc.resolve(a-1))),!0},deleteCurrentNode:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const i=t.selection.$anchor;for(let n=i.depth;n>0;n-=1)if(i.node(n).type===o.type){if(e){const e=i.before(n),o=i.after(n);t.delete(e,o).scrollIntoView()}return!0}return!1},deleteNode:t=>({tr:e,state:n,dispatch:o})=>{const i=_(t,n.schema),r=e.selection.$anchor;for(let t=r.depth;t>0;t-=1)if(r.node(t).type===i){if(o){const n=r.before(t),o=r.after(t);e.delete(n,o).scrollIntoView()}return!0}return!1},deleteRange:t=>({tr:e,dispatch:n})=>{const{from:o,to:i}=t;return n&&e.delete(o,i),!0},deleteSelection:()=>({state:t,dispatch:e})=>l(t,e),enter:()=>({commands:t})=>t.keyboardShortcut("Enter"),exitCode:()=>({state:t,dispatch:e})=>v(t,e),extendMarkRange:(t,e={})=>({tr:n,state:i,dispatch:r})=>{const s=bt(t,i.schema),{doc:a,selection:l}=n,{$from:c,from:d,to:u}=l;if(r){const t=gt(c,s,e);if(t&&t.from<=d&&t.to>=u){const e=o.Bs.create(a,t.from,t.to);n.setSelection(e)}}return!0},first:t=>e=>{const n="function"==typeof t?t(e):t;for(let t=0;t({editor:n,view:o,tr:i,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{xt()&&o.dom.focus(),requestAnimationFrame((()=>{n.isDestroyed||(o.focus(),(null==e?void 0:e.scrollIntoView)&&n.commands.scrollIntoView())}))};if(o.hasFocus()&&null===t||!1===t)return!0;if(r&&null===t&&!vt(n.state.selection))return s(),!0;const a=wt(i.doc,t)||n.state.selection,l=n.state.selection.eq(a);return r&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},forEach:(t,e)=>n=>t.every(((t,o)=>e(t,{...n,index:o}))),insertContent:(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),insertContentAt:(t,e,n)=>({tr:o,dispatch:i,editor:r})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const i=Ct(e,r.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===i.toString())return!0;let{from:s,to:a}="number"==typeof t?{from:t,to:t}:{from:t.from,to:t.to},l=!0,c=!0;if((i.toString().startsWith("<")?i:[i]).forEach((t=>{t.check(),l=!!l&&t.isText&&0===t.marks.length,c=!!c&&t.isBlock})),s===a&&c){const{parent:t}=o.doc.resolve(s);t.isTextblock&&!t.type.spec.code&&!t.childCount&&(s-=1,a+=1)}l?Array.isArray(e)?o.insertText(e.map((t=>t.text||"")).join(""),s,a):"object"==typeof e&&e&&e.text?o.insertText(e.text,s,a):o.insertText(e,s,a):o.replaceWith(s,a,i),n.updateSelection&&Mt(o,o.steps.length-1,-1)}return!0},joinUp:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection,r=i instanceof o.qv;if(r){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.from))return!1;n=i.from}else if(n=(0,a.GJ)(t.doc,i.from,-1),null==n)return!1;if(e){let i=t.tr.join(n);r&&i.setSelection(o.qv.create(i.doc,n-t.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0})(t,e),joinDown:()=>({state:t,dispatch:e})=>((t,e)=>{let n,i=t.selection;if(i instanceof o.qv){if(i.node.isTextblock||!(0,a.Mn)(t.doc,i.to))return!1;n=i.to}else if(n=(0,a.GJ)(t.doc,i.to,1),null==n)return!1;return e&&e(t.tr.join(n).scrollIntoView()),!0})(t,e),joinBackward:()=>({state:t,dispatch:e})=>c(t,e),joinForward:()=>({state:t,dispatch:e})=>p(t,e),joinItemBackward:()=>({tr:t,state:e,dispatch:n})=>{try{const o=(0,a.GJ)(e.doc,e.selection.$from.pos,-1);return null!=o&&(t.join(o,2),n&&n(t),!0)}catch{return!1}},joinItemForward:()=>({state:t,dispatch:e,tr:n})=>{try{const o=(0,a.GJ)(t.doc,t.selection.$from.pos,1);return null!=o&&(n.join(o,2),e&&e(n),!0)}catch(t){return!1}},keyboardShortcut:t=>({editor:e,view:n,tr:o,dispatch:i})=>{const r=function(t){const e=t.split(/-(?!$)/);let n,o,i,r,s=e[e.length-1];"Space"===s&&(s=" ");for(let t=0;t!["Alt","Ctrl","Meta","Shift"].includes(t))),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction((()=>{n.someProp("handleKeyDown",(t=>t(n,a)))}));return null==l||l.steps.forEach((t=>{const e=t.map(o.mapping);e&&i&&o.maybeStep(e)})),!0},lift:(t,e={})=>({state:n,dispatch:o})=>!!At(n,_(t,n.schema),e)&&((t,e)=>{let{$from:n,$to:o}=t.selection,i=n.blockRange(o),r=i&&(0,a.k9)(i);return null!=r&&(e&&e(t.tr.lift(i,r).scrollIntoView()),!0)})(n,o),liftEmptyBlock:()=>({state:t,dispatch:e})=>w(t,e),liftListItem:t=>({state:e,dispatch:n})=>{return(o=_(t,e.schema),function(t,e){let{$from:n,$to:i}=t.selection,r=n.blockRange(i,(t=>t.childCount>0&&t.firstChild.type==o));return!!r&&(!e||(n.node(r.depth-1).type==o?function(t,e,n,o){let i=t.tr,r=o.end,l=o.$to.end(o.depth);rr;e--)t-=i.child(e).nodeSize,o.delete(t-1,t+1);let r=o.doc.resolve(n.start),l=r.nodeAfter;if(o.mapping.map(n.end)!=n.start+r.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,d=n.endIndex==i.childCount,u=r.node(-1),h=r.index(-1);if(!u.canReplace(h+(c?0:1),h+1,l.content.append(d?s.HY.empty:s.HY.from(i))))return!1;let p=r.pos,f=p+l.nodeSize;return o.step(new a.FC(p-(c?1:0),f+(d?1:0),p+1,f-1,new s.p2((c?s.HY.empty:s.HY.from(i.copy(s.HY.empty))).append(d?s.HY.empty:s.HY.from(i.copy(s.HY.empty))),c?0:1,d?0:1),c?0:1)),e(o.scrollIntoView()),!0}(t,e,r)))})(e,n);var o},newlineInCode:()=>({state:t,dispatch:e})=>g(t,e),resetAttributes:(t,e)=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=_(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{o.doc.nodesBetween(t.$from.pos,t.$to.pos,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,Tt(t.attrs,e)),s&&t.marks.length&&t.marks.forEach((i=>{s===i.type&&n.addMark(o,o+t.nodeSize,s.create(Tt(i.attrs,e)))}))}))})),!0)},scrollIntoView:()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),selectAll:()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),selectNodeBackward:()=>({state:t,dispatch:e})=>u(t,e),selectNodeForward:()=>({state:t,dispatch:e})=>f(t,e),selectParentNode:()=>({state:t,dispatch:e})=>((t,e)=>{let n,{$from:i,to:r}=t.selection,s=i.sharedDepth(r);return 0!=s&&(n=i.before(s),e&&e(t.tr.setSelection(o.qv.create(t.doc,n))),!0)})(t,e),selectTextblockEnd:()=>({state:t,dispatch:e})=>M(t,e),selectTextblockStart:()=>({state:t,dispatch:e})=>C(t,e),setContent:(t,e=!1,n={})=>({tr:o,editor:i,dispatch:r})=>{const{doc:s}=o,a=Nt(t,i.schema,n);return r&&o.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{const{selection:r}=n,{empty:s,ranges:a}=r,l=bt(t,o.schema);if(i)if(s){const t=Et(o,l);n.addStoredMark(l.create({...t,...e}))}else a.forEach((t=>{const i=t.$from.pos,r=t.$to.pos;o.doc.nodesBetween(i,r,((t,o)=>{const s=Math.max(o,i),a=Math.min(o+t.nodeSize,r);t.marks.find((t=>t.type===l))?t.marks.forEach((t=>{l===t.type&&n.addMark(s,a,l.create({...t.attrs,...e}))})):n.addMark(s,a,l.create(e))}))}));return function(t,e,n){var o;const{selection:i}=e;let r=null;if(vt(i)&&(r=i.$cursor),r){const e=null!==(o=t.storedMarks)&&void 0!==o?o:r.marks();return!!n.isInSet(e)||!e.some((t=>t.type.excludes(n)))}const{ranges:s}=i;return s.some((({$from:e,$to:o})=>{let i=0===e.depth&&t.doc.inlineContent&&t.doc.type.allowsMarkType(n);return t.doc.nodesBetween(e.pos,o.pos,((t,e,o)=>{if(i)return!1;if(t.isInline){const e=!o||o.type.allowsMarkType(n),r=!!n.isInSet(t.marks)||!t.marks.some((t=>t.type.excludes(n)));i=e&&r}return!i})),i}))}(o,n,l)},setMeta:(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),setNode:(t,e={})=>({state:n,dispatch:o,chain:i})=>{const r=_(t,n.schema);return r.isTextblock?i().command((({commands:t})=>!!S(r,e)(n)||t.clearNodes())).command((({state:t})=>S(r,e)(t,o))).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,i=yt(t,0,n.content.size),r=o.qv.create(n,i);e.setSelection(r)}return!0},setTextSelection:t=>({tr:e,dispatch:n})=>{if(n){const{doc:n}=e,{from:i,to:r}="number"==typeof t?{from:t,to:t}:t,s=o.Bs.atStart(n).from,a=o.Bs.atEnd(n).to,l=yt(i,s,a),c=yt(r,s,a),d=o.Bs.create(n,l,c);e.setSelection(d)}return!0},sinkListItem:t=>({state:e,dispatch:n})=>{const o=_(t,e.schema);return(i=o,function(t,e){let{$from:n,$to:o}=t.selection,r=n.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==i));if(!r)return!1;let l=r.startIndex;if(0==l)return!1;let c=r.parent,d=c.child(l-1);if(d.type!=i)return!1;if(e){let n=d.lastChild&&d.lastChild.type==c.type,o=s.HY.from(n?i.create():null),l=new s.p2(s.HY.from(i.create(null,s.HY.from(c.type.create(null,o)))),n?3:1,0),u=r.start,h=r.end;e(t.tr.step(new a.FC(u-(n?3:1),h,u,h,l,1,!0)).scrollIntoView())}return!0})(e,n);var i},splitBlock:({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:i,editor:r})=>{const{selection:s,doc:l}=e,{$from:c,$to:d}=s,u=Qt(r.extensionManager.attributes,c.node().type.name,c.node().attrs);if(s instanceof o.qv&&s.node.isBlock)return!(!c.parentOffset||!(0,a.Ax)(l,c.pos)||(i&&(t&&re(n,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),0));if(!c.parent.isBlock)return!1;if(i){const i=d.parentOffset===d.parent.content.size;s instanceof o.Bs&&e.deleteSelection();const l=0===c.depth?void 0:Dt(c.node(-1).contentMatchAt(c.indexAfter(-1)));let h=i&&l?[{type:l,attrs:u}]:void 0,p=(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,h);if(h||p||!(0,a.Ax)(e.doc,e.mapping.map(c.pos),1,l?[{type:l}]:void 0)||(p=!0,h=l?[{type:l,attrs:u}]:void 0),p&&(e.split(e.mapping.map(c.pos),1,h),l&&!i&&!c.parentOffset&&c.parent.type!==l)){const t=e.mapping.map(c.before()),n=e.doc.resolve(t);c.node(-1).canReplaceWith(n.index(),n.index()+1,l)&&e.setNodeMarkup(e.mapping.map(c.before()),l)}t&&re(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return!0},splitListItem:t=>({tr:e,state:n,dispatch:i,editor:r})=>{var l;const c=_(t,n.schema),{$from:d,$to:u}=n.selection,h=n.selection.node;if(h&&h.isBlock||d.depth<2||!d.sameParent(u))return!1;const p=d.node(-1);if(p.type!==c)return!1;const f=r.extensionManager.attributes;if(0===d.parent.content.size&&d.node(-1).childCount===d.indexAfter(-1)){if(2===d.depth||d.node(-3).type!==c||d.index(-2)!==d.node(-2).childCount-1)return!1;if(i){let t=s.HY.empty;const n=d.index(-1)?1:d.index(-2)?2:3;for(let e=d.depth-n;e>=d.depth-3;e-=1)t=s.HY.from(d.node(e).copy(t));const i=d.indexAfter(-1){if(h>-1)return!1;t.isTextblock&&0===t.content.size&&(h=e+1)})),h>-1&&e.setSelection(o.Bs.near(e.doc.resolve(h))),e.scrollIntoView()}return!0}const m=u.pos===d.end()?p.contentMatchAt(0).defaultType:null,g=Qt(f,p.type.name,p.attrs),b=Qt(f,d.node().type.name,d.node().attrs);e.delete(d.pos,u.pos);const v=m?[{type:c,attrs:g},{type:m,attrs:b}]:[{type:c,attrs:g}];if(!(0,a.Ax)(e.doc,d.pos,2))return!1;if(i){const{selection:t,storedMarks:o}=n,{splittableMarks:s}=r.extensionManager,a=o||t.$to.parentOffset&&t.$from.marks();if(e.split(d.pos,2,v).scrollIntoView(),!a||!i)return!0;const l=a.filter((t=>s.includes(t.type.name)));e.ensureMarks(l)}return!0},toggleList:(t,e,n,o={})=>({editor:i,tr:r,state:s,dispatch:a,chain:l,commands:c,can:d})=>{const{extensions:u,splittableMarks:h}=i.extensionManager,p=_(t,s.schema),f=_(e,s.schema),{selection:m,storedMarks:g}=s,{$from:b,$to:v}=m,y=b.blockRange(v),w=g||m.$to.parentOffset&&m.$from.marks();if(!y)return!1;const x=Rt((t=>ee(t.type.name,u)))(m);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return c.liftListItem(f);if(ee(x.node.type.name,u)&&p.validContent(x.node.content)&&a)return l().command((()=>(r.setNodeMarkup(x.pos,p),!0))).command((()=>se(r,p))).command((()=>ae(r,p))).run()}return n&&w&&a?l().command((()=>{const t=d().wrapInList(p,o),e=w.filter((t=>h.includes(t.type.name)));return r.ensureMarks(e),!!t||c.clearNodes()})).wrapInList(p,o).command((()=>se(r,p))).command((()=>ae(r,p))).run():l().command((()=>!!d().wrapInList(p,o)||c.clearNodes())).wrapInList(p,o).command((()=>se(r,p))).command((()=>ae(r,p))).run()},toggleMark:(t,e={},n={})=>({state:o,commands:i})=>{const{extendEmptyMarkRange:r=!1}=n,s=bt(t,o.schema);return Kt(o,s,e)?i.unsetMark(s,{extendEmptyMarkRange:r}):i.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:i})=>{const r=_(t,o.schema),s=_(e,o.schema);return At(o,r,n)?i.setNode(s):i.setNode(r,n)},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const i=_(t,n.schema);return At(n,i,e)?o.lift(i):o.wrapIn(i,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(r.text){const n=e.doc.resolve(r.from).marks();e.replaceWith(r.from,r.to,t.schema.text(r.text,n))}else e.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:i}=n;return o||e&&i.forEach((e=>{t.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:i})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bt(t,o.schema),{$from:c,empty:d,ranges:u}=a;if(!i)return!0;if(d&&s){let{from:t,to:e}=a;const o=null===(r=c.marks().find((t=>t.type===l)))||void 0===r?void 0:r.attrs,i=gt(c,l,o);i&&(t=i.from,e=i.to),n.removeMark(t,e,l)}else u.forEach((t=>{n.removeMark(t.$from.pos,t.$to.pos,l)}));return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:i})=>{let r=null,s=null;const a=Ot("string"==typeof t?t:t.name,o.schema);return!!a&&("node"===a&&(r=_(t,o.schema)),"mark"===a&&(s=bt(t,o.schema)),i&&n.selection.ranges.forEach((t=>{const i=t.$from.pos,a=t.$to.pos;o.doc.nodesBetween(i,a,((t,o)=>{r&&r===t.type&&n.setNodeMarkup(o,void 0,{...t.attrs,...e}),s&&t.marks.length&&t.marks.forEach((r=>{if(s===r.type){const l=Math.max(o,i),c=Math.min(o+t.nodeSize,a);n.addMark(l,c,s.create({...r.attrs,...e}))}}))}))})),!0)},wrapIn:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,s=i.blockRange(r),l=s&&(0,a.nd)(s,t,e);return!!l&&(o&&o(n.tr.wrap(s,l).scrollIntoView()),!0)}}(_(t,n.schema),e)(n,o),wrapInList:(t,e={})=>({state:n,dispatch:o})=>function(t,e=null){return function(n,o){let{$from:i,$to:r}=n.selection,l=i.blockRange(r),c=!1,d=l;if(!l)return!1;if(l.depth>=2&&i.node(l.depth-1).type.compatibleContent(t)&&0==l.startIndex){if(0==i.index(l.depth-1))return!1;let t=n.doc.resolve(l.start-2);d=new s.Ts(t,t,l.depth),l.endIndex=0;t--)r=s.HY.from(n[t].type.create(n[t].attrs,r));t.step(new a.FC(e.start-(o?2:0),e.end,e.start,e.end,new s.p2(r,0,0),n.length,!0));let l=0;for(let t=0;t({...le})}),de=ct.create({name:"editable",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("editable"),props:{editable:()=>this.editor.options.editable}})]}}),ue=ct.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new o.Sy({key:new o.H$("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),he=ct.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first((({commands:t})=>[()=>t.undoInputRule(),()=>t.command((({tr:e})=>{const{selection:n,doc:i}=e,{empty:r,$anchor:s}=n,{pos:a,parent:l}=s,c=s.parent.isTextblock?e.doc.resolve(a-1):s,d=c.parent.type.spec.isolating,u=s.pos-s.parentOffset,h=d&&1===c.parent.childCount?u===s.pos:o.Y1.atStart(i).from===a;return!(!(r&&h&&l.type.isTextblock)||l.textContent.length)&&t.clearNodes()})),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()])),e=()=>this.editor.commands.first((({commands:t})=>[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()])),n={Enter:()=>this.editor.commands.first((({commands:t})=>[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()])),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},r={...n,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return xt()||St()?r:i},addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("clearDocument"),appendTransaction:(t,e,n)=>{if(!t.some((t=>t.docChanged))||e.doc.eq(n.doc))return;const{empty:i,from:r,to:s}=e.selection,a=o.Y1.atStart(e.doc).from,l=o.Y1.atEnd(e.doc).to;if(i||r!==a||s!==l)return;if(0!==n.doc.textBetween(0,n.doc.content.size," "," ").length)return;const c=n.tr,d=I({state:n,transaction:c}),{commands:u}=new D({editor:this.editor,state:d});return u.clearNodes(),c.steps.length?c:void 0}})]}}),pe=ct.create({name:"tabindex",addProseMirrorPlugins(){return[new o.Sy({key:new o.H$("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var fe=Object.freeze({__proto__:null,ClipboardTextSerializer:ht,Commands:ce,Editable:de,FocusEvents:ue,Keymap:he,Tabindex:pe});function me(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(null!==o)return o;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style"+(n?`-${n}`:""),""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class ge extends P{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=me('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const n=B(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],o=this.state.reconfigure({plugins:n});this.view.updateState(o)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,n=this.state.reconfigure({plugins:this.state.plugins.filter((t=>!t.key.startsWith(e)))});this.view.updateState(n)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(fe):[],...this.options.extensions].filter((t=>["extension","node","mark"].includes(null==t?void 0:t.type)));this.extensionManager=new st(t,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=Nt(this.options.content,this.schema,this.options.parseOptions),e=wt(t,this.options.autofocus);this.view=new i.tk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:o.yy.create({doc:t,selection:e||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach((t=>{var e;return null===(e=this.capturedTransaction)||void 0===e?void 0:e.step(t)})):void(this.capturedTransaction=t);const e=this.state.apply(t),n=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),n&&this.emit("selectionUpdate",{editor:this,transaction:t});const o=t.getMeta("focus"),i=t.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:t}),i&&this.emit("blur",{editor:this,event:i.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return Yt(this.state,t)}isActive(t,e){const n="string"==typeof t?t:null,o="string"==typeof t?e:t;return Gt(this.state,n,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return _t(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:n={}}=t||{};return Ft(this.state.doc,{blockSeparator:e,textSerializers:{...ut(this.schema),...n}})}get isEmpty(){return ne(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null===(t=this.view)||void 0===t?void 0:t.docView)}}function be(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:r}=e,s=o[o.length-1],a=o[0];if(s){const o=a.search(/\S/),l=n.from+a.indexOf(s),c=l+s.length;if(Ut(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>l)).length)return null;cn.from&&r.delete(n.from+o,l);const d=n.from+o+s.length;r.addMark(n.from+o,d,t.type.create(i||{})),r.removeStoredMark(t.type)}}})}function ve(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=F(t.getAttributes,void 0,o)||{},{tr:r}=e,s=n.from;let a=n.to;const l=t.type.create(i);if(o[1]){let t=s+o[0].lastIndexOf(o[1]);t>a?t=a:a=t+o[1].length;const e=o[0][o[0].length-1];r.insertText(e,s+o[0].length-1),r.replaceWith(t,a,l)}else o[0]&&r.insert(s-1,t.type.create(i)).delete(r.mapping.map(s),r.mapping.map(a));r.scrollIntoView()}})}function ye(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{const i=e.doc.resolve(n.from),r=F(t.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,r)}})}function we(t){return new K({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}function xe(t){return new K({find:t.find,handler:({state:e,range:n,match:o,chain:i})=>{const r=F(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&(0,a.nd)(l,t.type,r);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:n,storedMarks:o}=e,{splittableMarks:i}=t.editor.extensionManager,r=o||n.$to.parentOffset&&n.$from.marks();if(r){const t=r.filter((t=>i.includes(t.type.name)));s.ensureMarks(t)}}if(t.keepAttributes){const e="bulletList"===t.type.name||"orderedList"===t.type.name?"listItem":"taskList";i().updateAttributes(e,r).run()}const d=s.doc.resolve(n.from-1).nodeBefore;d&&d.type===t.type&&(0,a.Mn)(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,d))&&s.join(n.from-1)}})}class ke{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ke(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ke(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:n}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){const i=o.marks();if(!i.find((t=>(null==t?void 0:t.type.name)===e.name)))return!1;const r=i.find((t=>(null==t?void 0:t.type.name)===e.name));return r&&n.removeStoredMark(r),n.insertText(" ",o.pos),t.view.dispatch(n),!0}return!1}}class Ce{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=F(H(this,"addOptions",{name:this.name}))),this.storage=F(H(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ce(t)}configure(t={}){const e=this.extend();return e.options=lt(this.options,t),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ce(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=F(H(e,"addOptions",{name:e.name})),e.storage=F(H(e,"addStorage",{name:e.name,options:e.options})),e}}class Me{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,i,r,s,a,l;const{view:c}=this.editor,d=t.target,u=3===d.nodeType?null===(e=d.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):d.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(d))||!u)return;let h=0,p=0;if(this.dom!==u){const e=this.dom.getBoundingClientRect(),n=u.getBoundingClientRect(),o=null!==(i=t.offsetX)&&void 0!==i?i:null===(r=t.nativeEvent)||void 0===r?void 0:r.offsetX,l=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=n.x-e.x+o,p=n.y-e.y+l}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=o.qv.create(c.state.doc,this.getPos()),m=c.state.tr.setSelection(f);c.dispatch(m)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const n=t.target;if(!this.dom.contains(n)||(null===(e=this.contentDOM)||void 0===e?void 0:e.contains(n)))return!1;const i=t.type.startsWith("drag"),r="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!r&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=o.qv.isSelectable(this.node),d="copy"===t.type,u="paste"===t.type,h="cut"===t.type,p="mousedown"===t.type;if(!l&&c&&i&&t.preventDefault(),l&&i&&!a)return t.preventDefault(),!1;if(l&&s&&!a&&p){const t=n.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.isDragging=!0,document.addEventListener("dragend",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("drop",(()=>{this.isDragging=!1}),{once:!0}),document.addEventListener("mouseup",(()=>{this.isDragging=!1}),{once:!0}))}return!(a||r||d||u||h||p&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&(xt()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every((t=>t.isContentEditable))||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command((({tr:e})=>{const n=this.getPos();return e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0}))}deleteNode(){const t=this.getPos(),e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}}function Se(t){return new nt({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:i})=>{const r=F(t.getAttributes,void 0,o,i);if(!1===r||null===r)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const o=l.search(/\S/),i=n.from+l.indexOf(a),d=i+a.length;if(Ut(n.from,n.to,e.doc).filter((e=>e.mark.type.excluded.find((n=>n===t.type&&n!==e.mark.type)))).filter((t=>t.to>i)).length)return null;dn.from&&s.delete(n.from+o,i),c=n.from+o+a.length,s.addMark(n.from+o,c,t.type.create(r||{})),s.removeStoredMark(t.type)}}})}function Ae(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Oe(t){return"string"==typeof t}function Te(t){return new nt({find:t.find,handler({match:e,chain:n,range:o,pasteEvent:i}){const r=F(t.getAttributes,void 0,e,i);if(!1===r||null===r)return null;e.input&&n().deleteRange(o).insertContentAt(o.from,{type:t.type.name,attrs:r})}})}function Ne(t){return new nt({find:t.find,handler:({state:e,range:n,match:o})=>{let i=t.replace,r=n.from;const s=n.to;if(o[1]){const t=o[0].lastIndexOf(o[1]);i+=o[0].slice(t+o[1].length),r+=t;const e=r-s;e>0&&(i=o[0].slice(t-e,t)+i,r=s)}e.tr.insertText(i,r,s)}})}class Ee{constructor(t){this.transaction=t,this.currentStep=this.transaction.steps.length}map(t){let e=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce(((t,n)=>{const o=n.getMap().mapResult(t);return o.deleted&&(e=!0),o.pos}),t),deleted:e}}}},54424:(t,e,n)=>{n.r(e),n.d(e,{Heading:()=>i,default:()=>i});var o=n(11046);const i=o.Node.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((t=>({tag:`h${t}`,attrs:{level:t}})))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,(0,o.mergeAttributes)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.setNode(this.name,t),toggleHeading:t=>({commands:e})=>!!this.options.levels.includes(t.level)&&e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return this.options.levels.reduce(((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})})),{})},addInputRules(){return this.options.levels.map((t=>(0,o.textblockTypeInputRule)({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}})))}})},44632:(t,e,n)=>{n.r(e),n.d(e,{Image:()=>r,default:()=>r,inputRegex:()=>i});var o=n(11046);const i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,r=o.Node.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",(0,o.mergeAttributes)(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[(0,o.nodeInputRule)({find:i,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]}})},84402:(t,e,n)=>{n.r(e),n.d(e,{TextStyle:()=>i,default:()=>i});var o=n(11046);const i=o.Mark.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:t=>!!t.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:t}){return["span",(0,o.mergeAttributes)(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=(0,o.getMarkAttributes)(t,this.type);return!!Object.entries(n).some((([,t])=>!!t))||e.unsetMark(this.name)}}}})},31690:(t,e,n)=>{n.d(e,{$:()=>f,h:()=>p});for(var o={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},r="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)o[48+a]=o[96+a]=String(a);for(a=1;a<=24;a++)o[a+111]="F"+a;for(a=65;a<=90;a++)o[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in o)i.hasOwnProperty(l)||(i[l]=o[l]);var c=n(62463);const d="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function u(t){let e,n,o,i,r=t.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(let t=0;t127)&&(a=o[n.keyCode])&&a!=l){let o=e[h(a,n)];if(o&&o(t.state,t.dispatch,t))return!0}}return!1}}},27439:(t,e,n)=>{function o(t){this.content=t}n.d(e,{aw:()=>K,PW:()=>at,HY:()=>a,vc:()=>u,ZU:()=>U,NB:()=>I,Ts:()=>N,e4:()=>h,V_:()=>W,p2:()=>p}),o.prototype={constructor:o,find:function(t){for(var e=0;e>1}},o.from=function(t){if(t instanceof o)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new o(e)};const i=o;function r(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(o),s=e.child(o);if(i!=s){if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let t=0;i.text[t]==s.text[t];t++)n++;return n}if(i.content.size||s.content.size){let t=r(i.content,s.content,n+1);if(null!=t)return t}n+=i.nodeSize}else n+=i.nodeSize}}function s(t,e,n,o){for(let i=t.childCount,r=e.childCount;;){if(0==i||0==r)return i==r?null:{a:n,b:o};let a=t.child(--i),l=e.child(--r),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:o};if(a.isText&&a.text!=l.text){let t=0,e=Math.min(a.text.length,l.text.length);for(;tt&&!1!==n(a,o+s,i||null,r)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,t-i),Math.min(a.content.size,e-i),n,o+i)}s=l}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,n,o){let i="",r=!0;return this.nodesBetween(t,e,((s,a)=>{s.isText?(i+=s.text.slice(Math.max(t,a)-a,e-a),r=!n):s.isLeaf?(o?i+="function"==typeof o?o(s):o:s.type.spec.leafText&&(i+=s.type.spec.leafText(s)),r=!n):!r&&s.isBlock&&(i+=n,r=!0)}),0),i}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,n=t.firstChild,o=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(o[o.length-1]=e.withText(e.text+n.text),i=1);it)for(let i=0,r=0;rt&&((re)&&(s=s.isText?s.cut(Math.max(0,t-r),Math.min(s.text.length,e-r)):s.cut(Math.max(0,t-r-1),Math.min(s.content.size,e-r-1))),n.push(s),o+=s.nodeSize),r=a}return new a(n,o)}cutByIndex(t,e){return t==e?a.empty:0==t&&e==this.content.length?this:new a(this.content.slice(t,e))}replaceChild(t,e){let n=this.content[t];if(n==e)return this;let o=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return o[t]=e,new a(o,i)}addToStart(t){return new a([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new a(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,o=0;;n++){let i=o+this.child(n).nodeSize;if(i>=t)return i==t||e>0?c(n+1,i):c(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((t=>t.toJSON())):null}static fromJSON(t,e){if(!e)return a.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return a.empty;let e,n=0;for(let o=0;o{class t{constructor(t,e){this.type=t,this.attrs=e}addToSet(t){let e,n=!1;for(let o=0;othis.type.rank&&(e||(e=t.slice(0,o)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=t.slice()),n||e.push(this),e}removeFromSet(t){for(let e=0;et.type.rank-e.type.rank)),n}}return t.none=[],t})();class h extends Error{}class p{constructor(t,e,n){this.content=t,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let n=m(this.content,t+this.openStart,e);return n&&new p(n,this.openStart,this.openEnd)}removeBetween(t,e){return new p(f(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return p.empty;let n=e.openStart||0,o=e.openEnd||0;if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new p(a.fromJSON(t,e.content),n,o)}static maxOpen(t,e=!0){let n=0,o=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)n++;for(let n=t.lastChild;n&&!n.isLeaf&&(e||!n.type.spec.isolating);n=n.lastChild)o++;return new p(t,n,o)}}function f(t,e,n){let{index:o,offset:i}=t.findIndex(e),r=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(i==e||r.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,r.copy(f(r.content,e-i-1,n-i-1)))}function m(t,e,n,o){let{index:i,offset:r}=t.findIndex(e),s=t.maybeChild(i);if(r==e||s.isText)return o&&!o.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=m(s.content,e-r-1,n);return a&&t.replaceChild(i,s.copy(a))}function g(t,e,n){if(n.openStart>t.depth)throw new h("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new h("Inconsistent open depths");return b(t,e,n,0)}function b(t,e,n,o){let i=t.index(o),r=t.node(o);if(i==e.index(o)&&o=0;t--)o=e.node(t).copy(a.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}(n,t);return k(r,C(t,i,s,e,o))}{let o=t.parent,i=o.content;return k(o,i.cut(0,t.parentOffset).append(n.content).append(i.cut(e.parentOffset)))}}return k(r,M(t,e,o))}function v(t,e){if(!e.type.compatibleContent(t.type))throw new h("Cannot join "+e.type.name+" onto "+t.type.name)}function y(t,e,n){let o=t.node(n);return v(o,e.node(n)),o}function w(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function x(t,e,n,o){let i=(e||t).node(n),r=0,s=e?e.index(n):i.childCount;t&&(r=t.index(n),t.depth>n?r++:t.textOffset&&(w(t.nodeAfter,o),r++));for(let t=r;ti&&y(t,e,i+1),s=o.depth>i&&y(n,o,i+1),l=[];return x(null,t,i,l),r&&s&&e.index(i)==n.index(i)?(v(r,s),w(k(r,C(t,e,n,o,i+1)),l)):(r&&w(k(r,M(t,e,i+1)),l),x(e,n,i,l),s&&w(k(s,M(n,o,i+1)),l)),x(o,null,i,l),new a(l)}function M(t,e,n){let o=[];return x(null,t,n,o),t.depth>n&&w(k(y(t,e,n+1),M(t,e,n+1)),o),x(e,null,n,o),new a(o)}p.empty=new p(a.empty,0,0);class S{constructor(t,e,n){this.pos=t,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=t.child(e);return n?t.child(e).cut(n):o}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let n=this.path[3*e],o=0==e?0:this.path[3*e-1]+1;for(let e=0;e0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;n--)if(t.pos<=this.end(n)&&(!e||e(this.node(n))))return new N(this,t,n);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let n=[],o=0,i=e;for(let e=t;;){let{index:t,offset:r}=e.content.findIndex(i),s=i-r;if(n.push(e,t,o+r),!s)break;if(e=e.child(t),e.isText)break;i=s-1,o+=r+1}return new S(e,n,i)}static resolveCached(t,e){for(let n=0;nt&&this.nodesBetween(t,e,(t=>(n.isInSet(t.marks)&&(o=!0),!o))),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),P(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,n=a.empty,o=0,i=n.childCount){let r=this.contentMatchAt(t).matchFragment(n,o,i),s=r&&r.matchFragment(this.content,e);if(!s||!s.validEnd)return!1;for(let t=o;tt.type.name))}`);this.content.forEach((t=>t.check()))}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map((t=>t.toJSON()))),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,n)}let o=a.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,o,n)}}I.prototype.text=void 0;class D extends I{constructor(t,e,n,o){if(super(t,e,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):P(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new D(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new D(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function P(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class H{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let n=new L(t,e);if(null==n.next)return H.empty;let o=R(n);n.next&&n.err("Unexpected trailing text");let i=function(t){let e=Object.create(null);return function n(o){let i=[];o.forEach((e=>{t[e].forEach((({term:e,to:n})=>{if(!e)return;let o;for(let t=0;t{o||i.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)}))}))}));let r=e[o.join(",")]=new H(o.indexOf(t.length-1)>-1);for(let t=0;te.concat(t(n,r))),[]);if("seq"!=e.type){if("star"==e.type){let s=n();return o(r,s),i(t(e.expr,s),s),[o(s)]}if("plus"==e.type){let s=n();return i(t(e.expr,r),s),i(t(e.expr,s),s),[o(s)]}if("opt"==e.type)return[o(r)].concat(t(e.expr,r));if("range"==e.type){let s=r;for(let o=0;ot.to=e))}}(o));return function(t,e){for(let n=0,o=[t];nt.createAndFill())));for(let t=0;t=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(n){t.push(n);for(let o=0;o{let o=n+(e.validEnd?"*":" ")+" ";for(let n=0;n"+t.indexOf(e.next[n].next);return o})).join("\n")}}H.empty=new H(!0);class L{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function R(t){let e=[];do{e.push(_(t))}while(t.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function _(t){let e=[];do{e.push(z(t))}while(t.next&&")"!=t.next&&"|"!=t.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function z(t){let e=function(t){if(t.eat("(")){let e=R(t);return t.eat(")")||t.err("Missing closing paren"),e}if(!/\W/.test(t.next)){let e=function(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let i=[];for(let t in n){let o=n[t];o.groups.indexOf(e)>-1&&i.push(o)}return 0==i.length&&t.err("No node type or group '"+e+"' found"),i}(t,t.next).map((e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e})));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}t.err("Unexpected token '"+t.next+"'")}(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else{if(!t.eat("{"))break;e=B(t,e)}return e}function $(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function B(t,e){let n=$(t),o=n;return t.eat(",")&&(o="}"!=t.next?$(t):-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function F(t,e){return e-t}function J(t,e){let n=[];return function e(o){let i=t[o];if(1==i.length&&!i[0].term)return e(i[0].to);n.push(o);for(let t=0;t-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;en[t]=new q(t,e,o)));let o=e.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let t in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class V{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class U{constructor(t,e,n,o){this.name=t,this.rank=e,this.schema=n,this.spec=o,this.attrs=j(o.attrs),this.excluded=null;let i=Z(this.attrs);this.instance=i?new u(this,i):null}create(t=null){return!t&&this.instance?this.instance:new u(this,Y(this.attrs,t))}static compile(t,e){let n=Object.create(null),o=0;return t.forEach(((t,i)=>n[t]=new U(t,o++,e,i))),n}removeFromSet(t){for(var e=0;e-1}}class W{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let n in t)e[n]=t[n];e.nodes=i.from(t.nodes),e.marks=i.from(t.marks||{}),this.nodes=q.compile(this.spec.nodes,this),this.marks=U.compile(this.spec.marks,this);let n=Object.create(null);for(let t in this.nodes){if(t in this.marks)throw new RangeError(t+" can not be both a node and a mark");let e=this.nodes[t],o=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[o]||(n[o]=H.parse(o,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?Q(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let t in this.marks){let e=this.marks[t],n=e.spec.excludes;e.excluded=null==n?[e]:""==n?[]:Q(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,n,o){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof q))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,n,o)}text(t,e){let n=this.nodes.text;return new D(n,n.defaultAttrs,t,u.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return I.fromJSON(this,t)}markFromJSON(t){return u.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Q(t,e){let n=[];for(let o=0;o-1)&&n.push(s=o)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}class K{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach((t=>{t.tag?this.tags.push(t):t.style&&this.styles.push(t)})),this.normalizeLists=!this.tags.some((e=>{if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;let n=t.nodes[e.node];return n.contentMatch.matchType(n)}))}parse(t,e={}){let n=new ot(this,e,!1);return n.addAll(t,e.from,e.to),n.finish()}parseSlice(t,e={}){let n=new ot(this,e,!0);return n.addAll(t,e.from,e.to),p.maxOpen(n.finish())}matchTag(t,e,n){for(let o=n?this.tags.indexOf(n)+1:0;ot.length&&(61!=r.charCodeAt(t.length)||r.slice(t.length+1)!=e))){if(o.getAttrs){let t=o.getAttrs(e);if(!1===t)continue;o.attrs=t||void 0}return o}}}static schemaRules(t){let e=[];function n(t){let n=null==t.priority?50:t.priority,o=0;for(;o{n(t=rt(t)),t.mark||t.ignore||t.clearMark||(t.mark=e)}))}for(let e in t.nodes){let o=t.nodes[e].spec.parseDOM;o&&o.forEach((t=>{n(t=rt(t)),t.node||t.ignore||t.mark||(t.node=e)}))}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new K(t,K.schemaRules(t)))}}const G={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},X={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},tt={ol:!0,ul:!0};function et(t,e,n){return null!=e?(e?1:0)|("full"===e?2:0):t&&"pre"==t.whitespace?3:-5&n}class nt{constructor(t,e,n,o,i,r,s){this.type=t,this.attrs=e,this.marks=n,this.pendingMarks=o,this.solid=i,this.options=s,this.content=[],this.activeMarks=u.none,this.stashMarks=[],this.match=r||(4&s?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(a.from(t));if(!e){let e,n=this.type.contentMatch;return(e=n.findWrapping(t.type))?(this.match=n,e):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let t,e=this.content[this.content.length-1];if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let e=a.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,n=this.pendingMarks;ethis.addAll(t))),e&&this.sync(n),this.needsBlock=r}else this.withStyleRules(t,(()=>{this.addElementByRule(t,i,!1===i.consuming?n:void 0)}))}leafFallback(t){"BR"==t.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode("\n"))}ignoreFallback(t){"BR"!=t.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(t){let e=u.none,n=u.none;for(let o=0;o{r.clearMark(t)&&(n=t.addToSet(n))})):e=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(e),!1!==r.consuming)break;i=r}return[e,n]}addElementByRule(t,e,n){let o,i,r;e.node?(i=this.parser.schema.nodes[e.node],i.isLeaf?this.insertNode(i.create(e.attrs))||this.leafFallback(t):o=this.enter(i,e.attrs||null,e.preserveWhitespace)):(r=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(r));let s=this.top;if(i&&i.isLeaf)this.findInside(t);else if(n)this.addElement(t,n);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach((t=>this.insertNode(t)));else{let n=t;"string"==typeof e.contentElement?n=t.querySelector(e.contentElement):"function"==typeof e.contentElement?n=e.contentElement(t):e.contentElement&&(n=e.contentElement),this.findAround(t,n,!0),this.addAll(n)}o&&this.sync(s)&&this.open--,r&&this.removePendingMark(r,s)}addAll(t,e,n){let o=e||0;for(let i=e?t.childNodes[e]:t.firstChild,r=null==n?null:t.childNodes[n];i!=r;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i);this.findAtPoint(t,o)}findPlace(t){let e,n;for(let o=this.open;o>=0;o--){let i=this.nodes[o],r=i.findWrapping(t);if(r&&(!e||e.length>r.length)&&(e=r,n=i,!r.length))break;if(i.solid)break}if(!e)return!1;this.sync(n);for(let t=0;tthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let n=this.nodes[e].content;for(let e=n.length-1;e>=0;e--)t+=n[e].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let n=0;n-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),n=this.options.context,o=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),i=-(n?n.depth+1:0)+(o?0:1),r=(t,s)=>{for(;t>=0;t--){let a=e[t];if(""==a){if(t==e.length-1||0==t)continue;for(;s>=i;s--)if(r(t-1,s))return!0;return!1}{let t=s>0||0==s&&o?this.nodes[s].type:n&&s>=i?n.node(s-i).type:null;if(!t||t.name!=a&&-1==t.groups.indexOf(a))return!1;s--}}return!0};return r(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let n=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(t){let e=function(t,e){for(let n=0;n=0;n--){let o=this.nodes[n];if(o.pendingMarks.lastIndexOf(t)>-1)o.pendingMarks=t.removeFromSet(o.pendingMarks);else{o.activeMarks=t.removeFromSet(o.activeMarks);let e=o.popFromStashMark(t);e&&o.type&&o.type.allowsMarkType(e.type)&&(o.activeMarks=e.addToSet(o.activeMarks))}if(o==e)break}}}function it(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function rt(t){let e={};for(let n in t)e[n]=t[n];return e}function st(t,e){let n=e.schema.nodes;for(let o in n){let i=n[o];if(!i.allowsMarkType(t))continue;let r=[],s=t=>{r.push(t);for(let n=0;n{if(i.length||t.marks.length){let n=0,r=0;for(;n=0;o--){let i=this.serializeMark(t.marks[o],t.isInline,e);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(t,e,n={}){let o=this.marks[t.type.name];return o&&at.renderSpec(ct(n),o(t,e))}static renderSpec(t,e,n=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let o,i=e[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));let s=n?t.createElementNS(n,i):t.createElement(i),a=e[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){l=2;for(let t in a)if(null!=a[t]){let e=t.indexOf(" ");e>0?s.setAttributeNS(t.slice(0,e),t.slice(e+1),a[t]):s.setAttribute(t,a[t])}}for(let i=l;il)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}{let{dom:e,contentDOM:i}=at.renderSpec(t,r,n);if(s.appendChild(e),i){if(o)throw new RangeError("Multiple content holes");o=i}}}return{dom:s,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new at(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=lt(t.nodes);return e.text||(e.text=t=>t.text),e}static marksFromSchema(t){return lt(t.marks)}}function lt(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function ct(t){return t.document||window.document}},62463:(t,e,n)=>{n.d(e,{C1:()=>f,yy:()=>C,qv:()=>h,Sy:()=>S,H$:()=>T,Y1:()=>s,xm:()=>a,Bs:()=>d});var o=n(27439),i=n(38480);const r=Object.create(null);class s{constructor(t,e,n){this.$anchor=t,this.$head=e,this.ranges=n||[new a(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let i=e<0?g(t.node(0),t.node(o),t.before(o+1),t.index(o),e,n):g(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,n);if(i)return i}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new f(t.node(0))}static atStart(t){return g(t,t,0,0,1)||new f(t)}static atEnd(t){return g(t,t,t.content.size,t.childCount,-1)||new f(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=r[e.type];if(!n)throw new RangeError(`No selection type ${e.type} defined`);return n.fromJSON(t,e)}static jsonID(t,e){if(t in r)throw new RangeError("Duplicate use of selection JSON ID "+t);return r[t]=e,e.prototype.jsonID=t,e}getBookmark(){return d.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(t,e){this.$from=t,this.$to=e}}let l=!1;function c(t){l||t.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class d extends s{constructor(t,e=t){c(t),c(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let n=t.resolve(e.map(this.head));if(!n.parent.inlineContent)return s.near(n);let o=t.resolve(e.map(this.anchor));return new d(o.parent.inlineContent?o:n,n)}replace(t,e=o.p2.empty){if(super.replace(t,e),e==o.p2.empty){let e=this.$from.marksAcross(this.$to);e&&t.ensureMarks(e)}}eq(t){return t instanceof d&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new u(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new d(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,n=e){let o=t.resolve(e);return new this(o,n==e?o:t.resolve(n))}static between(t,e,n){let o=t.pos-e.pos;if(n&&!o||(n=o>=0?1:-1),!e.parent.inlineContent){let t=s.findFrom(e,n,!0)||s.findFrom(e,-n,!0);if(!t)return s.near(e,n);e=t.$head}return t.parent.inlineContent||(0==o||(t=(s.findFrom(t,-n,!0)||s.findFrom(t,n,!0)).$anchor).posnew f(t)};function g(t,e,n,o,i,r=!1){if(e.inlineContent)return d.create(t,n);for(let s=o-(i>0?0:1);i>0?s=0;s+=i){let o=e.child(s);if(o.isAtom){if(!r&&h.isSelectable(o))return h.create(t,n-(i<0?o.nodeSize:0))}else{let e=g(t,o,n+i,i<0?o.childCount:0,i,r);if(e)return e}n+=o.nodeSize*i}return null}function b(t,e,n){let o=t.steps.length-1;if(o{null==r&&(r=o)})),t.setSelection(s.near(t.doc.resolve(r),n)))}class v extends i.wx{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return o.vc.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let n=this.selection;return e&&(t=t.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||o.vc.none))),n.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,n){let o=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(o.text(t),!0):this.deleteSelection();{if(null==n&&(n=e),n=null==n?e:n,!t)return this.deleteRange(e,n);let i=this.storedMarks;if(!i){let t=this.doc.resolve(e);i=n==e?t.marks():t.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(e,n,o.text(t,i)),this.selection.empty||this.setSelection(s.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function y(t,e){return e&&t?t.bind(e):t}class w{constructor(t,e,n){this.name=t,this.init=y(e.init,n),this.apply=y(e.apply,n)}}const x=[new w("doc",{init:t=>t.doc||t.schema.topNodeType.createAndFill(),apply:t=>t.doc}),new w("selection",{init:(t,e)=>t.selection||s.atStart(e.doc),apply:t=>t.selection}),new w("storedMarks",{init:t=>t.storedMarks||null,apply:(t,e,n,o)=>o.selection.$cursor?t.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(t,e)=>t.scrolledIntoView?e+1:e})];class k{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),e&&e.forEach((t=>{if(this.pluginsByKey[t.key])throw new RangeError("Adding different instances of a keyed plugin ("+t.key+")");this.plugins.push(t),this.pluginsByKey[t.key]=t,t.spec.state&&this.fields.push(new w(t.key,t.spec.state,t))}))}}class C{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let n=0;nt.toJSON()))),t&&"object"==typeof t)for(let n in t){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=t[n],i=o.spec.state;i&&i.toJSON&&(e[n]=i.toJSON.call(o,this[o.key]))}return e}static fromJSON(t,e,n){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new k(t.schema,t.plugins),r=new C(i);return i.fields.forEach((i=>{if("doc"==i.name)r.doc=o.NB.fromJSON(t.schema,e.doc);else if("selection"==i.name)r.selection=s.fromJSON(r.doc,e.selection);else if("storedMarks"==i.name)e.storedMarks&&(r.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(n)for(let o in n){let s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(e,o))return void(r[i.name]=a.fromJSON.call(s,t,e[o],r))}r[i.name]=i.init(t,r)}})),r}}function M(t,e,n){for(let o in t){let i=t[o];i instanceof Function?i=i.bind(e):"handleDOMEvents"==o&&(i=M(i,e,{})),n[o]=i}return n}class S{constructor(t){this.spec=t,this.props={},t.props&&M(t.props,this,this.props),this.key=t.key?t.key.key:O("plugin")}getState(t){return t[this.key]}}const A=Object.create(null);function O(t){return t in A?t+"$"+ ++A[t]:(A[t]=0,t+"$")}class T{constructor(t="key"){this.key=O(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}},38480:(t,e,n)=>{n.d(e,{vs:()=>l,FC:()=>v,Pu:()=>b,wx:()=>J,Mn:()=>S,Ax:()=>M,nj:()=>T,nd:()=>k,GJ:()=>O,k9:()=>x,dR:()=>N});var o=n(27439);const i=Math.pow(2,16);function r(t){return 65535&t}class s{constructor(t,e,n){this.pos=t,this.delInfo=e,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class a{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&a.empty)return a.empty}recover(t){let e=0,n=r(t);if(!this.inverted)for(let t=0;tt)break;let d=this.ranges[l+r],u=this.ranges[l+a],h=c+d;if(t<=h){let r=c+o+((d?t==c?-1:t==h?1:e:e)<0?0:u);if(n)return r;let a=t==c?2:t==h?1:4;return(e<0?t!=c:t!=h)&&(a|=8),new s(r,a,t==(e<0?c:h)?null:l/3+(t-c)*i)}o+=u-d}return n?t+o:new s(t+o,0,null)}touches(t,e){let n=0,o=r(e),i=this.inverted?2:1,s=this.inverted?1:2;for(let e=0;et)break;let a=this.ranges[e+i];if(t<=r+a&&e==3*o)return!0;n+=this.ranges[e+s]-a}return!1}forEach(t){let e=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,i=0;o=0;e--){let o=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=o&&o>e?n-o-1:void 0)}}invert(){let t=new l;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let n=this.from;nn&&et.isAtom&&e.type.allowsMarkType(this.mark.type)?t.mark(this.mark.addToSet(t.marks)):t),i),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,r)}invert(){return new f(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new p(e.pos,n.pos,this.mark)}merge(t){return t instanceof p&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new p(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("addMark",p);class f extends d{constructor(t,e,n){super(),this.from=t,this.to=e,this.mark=n}apply(t){let e=t.slice(this.from,this.to),n=new o.p2(h(e.content,(t=>t.mark(this.mark.removeFromSet(t.marks))),t),e.openStart,e.openEnd);return u.fromReplace(t,this.from,this.to,n)}invert(){return new p(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),n=t.mapResult(this.to,-1);return e.deleted&&n.deleted||e.pos>=n.pos?null:new f(e.pos,n.pos,this.mark)}merge(t){return t instanceof f&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new f(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new f(e.from,e.to,t.markFromJSON(e.mark))}}d.jsonID("removeMark",f);class m extends d{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at mark step's position");let n=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(n),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let t=this.mark.addToSet(e.marks);if(t.length==e.marks.length){for(let n=0;nn.pos?null:new v(e.pos,n.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(e.from,e.to,e.gapFrom,e.gapTo,o.p2.fromJSON(t,e.slice),e.insert,!!e.structure)}}function y(t,e,n){let o=t.resolve(e),i=n-e,r=o.depth;for(;i>0&&r>0&&o.indexAfter(r)==o.node(r).childCount;)r--,i--;if(i>0){let t=o.node(r).maybeChild(o.indexAfter(r));for(;i>0;){if(!t||t.isLeaf)return!0;t=t.firstChild,i--}}return!1}function w(t,e,n){return(0==e||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function x(t){let e=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let n=t.depth;;--n){let o=t.$from.node(n),i=t.$from.index(n),r=t.$to.indexAfter(n);if(nr;t--,e--){let n=i.node(t),r=i.index(t);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(r,n.childCount),a=o&&o[e+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=o&&o[e]||n;if(!n.canReplace(r+1,n.childCount)||!l.type.validContent(s))return!1}let a=i.indexAfter(r),l=o&&o[0];return i.node(r).canReplaceWith(a,a,l?l.type:i.node(r+1).type)}function S(t,e){let n=t.resolve(e),o=n.index();return A(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function A(t,e){return!(!t||!e||t.isLeaf||!t.canAppend(e))}function O(t,e,n=-1){let o=t.resolve(e);for(let t=o.depth;;t--){let i,r,s=o.index(t);if(t==o.depth?(i=o.nodeBefore,r=o.nodeAfter):n>0?(i=o.node(t+1),s++,r=o.node(t).maybeChild(s)):(i=o.node(t).maybeChild(s-1),r=o.node(t+1)),i&&!i.isTextblock&&A(i,r)&&o.node(t).canReplace(s,s+1))return e;if(0==t)break;e=n<0?o.before(t):o.after(t)}}function T(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let t=0;t=0;e--){let n=e==o.depth?0:o.pos<=(o.start(e+1)+o.end(e+1))/2?-1:1,r=o.index(e)+(n>0?1:0),s=o.node(e),a=!1;if(1==t)a=s.canReplace(r,r,i);else{let t=s.contentMatchAt(r).findWrapping(i.firstChild.type);a=t&&s.canReplaceWith(r,r,t[0])}if(a)return 0==n?o.pos:n<0?o.before(e+1):o.after(e+1)}return null}function N(t,e,n=e,i=o.p2.empty){if(e==n&&!i.size)return null;let r=t.resolve(e),s=t.resolve(n);return E(r,s,i)?new b(e,n,i):new I(r,s,i).fit()}function E(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}d.jsonID("replaceAround",v);class I{constructor(t,e,n){this.$from=t,this.$to=e,this.unplaced=n,this.frontier=[],this.placed=o.HY.empty;for(let e=0;e<=t.depth;e++){let n=t.node(e);this.frontier.push({type:n.type,match:n.contentMatchAt(t.indexAfter(e))})}for(let e=t.depth;e>0;e--)this.placed=o.HY.from(t.node(e).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let t=this.findFittable();t?this.placeNodes(t):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(t<0?this.$to:n.doc.resolve(t));if(!i)return null;let r=this.placed,s=n.depth,a=i.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new o.p2(r,s,a);return t>-1?new v(n.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||n.pos!=this.$to.pos?new b(n.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,n=0,o=this.unplaced.openEnd;n1&&(o=0),i.type.spec.isolating&&o<=n){t=n;break}e=i.content}for(let e=1;e<=2;e++)for(let n=1==e?t:this.unplaced.openStart;n>=0;n--){let t,i=null;n?(i=H(this.unplaced.content,n-1).firstChild,t=i.content):t=this.unplaced.content;let r=t.firstChild;for(let t=this.depth;t>=0;t--){let s,{type:a,match:l}=this.frontier[t],c=null;if(1==e&&(r?l.matchType(r.type)||(c=l.fillBefore(o.HY.from(r),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:n,frontierDepth:t,parent:i,inject:c};if(2==e&&r&&(s=l.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:t,parent:i,wrap:s};if(i&&l.matchType(i.type))break}}}openMore(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new o.p2(t,e+1,Math.max(n,i.size+e>=t.size-n?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:n}=this.unplaced,i=H(t,e);if(i.childCount<=1&&e>0){let r=t.size-e<=e+i.size;this.unplaced=new o.p2(D(t,e-1,1),e-1,r?e-1:n)}else this.unplaced=new o.p2(D(t,e,1),e,n)}placeNodes({sliceDepth:t,frontierDepth:e,parent:n,inject:i,wrap:r}){for(;this.depth>e;)this.closeFrontierNode();if(r)for(let t=0;t1||0==l||t.content.size)&&(u=e,d.push(L(t.mark(h.allowedMarks(t.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=P(this.placed,e,o.HY.from(d)),this.frontier[e].match=u,f&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let t=0,e=a;t1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(t){t:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:n,type:o}=this.frontier[e],i=e=0;n--){let{match:e,type:o}=this.frontier[n],i=R(t,n,o,e,!0);if(!i||i.childCount)continue t}return{depth:e,fit:r,move:i?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=P(this.placed,e.depth,e.fit)),t=e.move;for(let n=e.depth+1;n<=t.depth;n++){let e=t.node(n),o=e.type.contentMatch.fillBefore(e.content,!0,t.index(n));this.openFrontierNode(e.type,e.attrs,o)}return t}openFrontierNode(t,e=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=P(this.placed,this.depth,o.HY.from(t.create(e,n))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(o.HY.empty,!0);t.childCount&&(this.placed=P(this.placed,this.frontier.length,t))}}function D(t,e,n){return 0==e?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(D(t.firstChild.content,e-1,n)))}function P(t,e,n){return 0==e?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(P(t.lastChild.content,e-1,n)))}function H(t,e){for(let n=0;n1&&(i=i.replaceChild(0,L(i.firstChild,e-1,1==i.childCount?n-1:0))),e>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(o.HY.empty,!0)))),t.copy(i)}function R(t,e,n,o,i){let r=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==r.childCount&&!n.compatibleContent(r.type))return null;let a=o.fillBefore(r.content,!0,s);return a&&!function(t,e,n){for(let o=n;oi){let e=r.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(o.HY.empty,!0))}return t}function z(t,e){let n=[];for(let o=Math.min(t.depth,e.depth);o>=0;o--){let i=t.start(o);if(ie.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class $ extends d{constructor(t,e,n){super(),this.pos=t,this.attr=e,this.value=n}apply(t){let e=t.nodeAt(this.pos);if(!e)return u.fail("No node at attribute step's position");let n=Object.create(null);for(let t in e.attrs)n[t]=e.attrs[t];n[this.attr]=this.value;let i=e.type.create(n,null,e.marks);return u.fromReplace(t,this.pos,this.pos+1,new o.p2(o.HY.from(i),0,e.isLeaf?0:1))}getMap(){return a.empty}invert(t){return new $(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new $(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new $(e.pos,e.attr,e.value)}}d.jsonID("attr",$);class B extends d{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let n in t.attrs)e[n]=t.attrs[n];e[this.attr]=this.value;let n=t.type.create(e,t.content,t.marks);return u.ok(n)}getMap(){return a.empty}invert(t){return new B(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if("string"!=typeof e.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new B(e.attr,e.value)}}d.jsonID("docAttr",B);let F=class extends Error{};F=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},(F.prototype=Object.create(Error.prototype)).constructor=F,F.prototype.name="TransformError";class J{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new F(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,n=o.p2.empty){let i=N(this.doc,t,e,n);return i&&this.step(i),this}replaceWith(t,e,n){return this.replace(t,e,new o.p2(o.HY.from(n),0,0))}delete(t,e){return this.replace(t,e,o.p2.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,n){return function(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),s=t.doc.resolve(n);if(E(r,s,i))return t.step(new b(e,n,i));let a=z(r,t.doc.resolve(n));0==a[a.length-1]&&a.pop();let l=-(r.depth+1);a.unshift(l);for(let t=r.depth,e=r.pos-1;t>0;t--,e--){let n=r.node(t).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(t)>-1?l=t:r.before(t)==e&&a.splice(1,0,-t)}let c=a.indexOf(l),d=[],u=i.openStart;for(let t=i.content,e=0;;e++){let n=t.firstChild;if(d.push(n),e==i.openStart)break;t=n.content}for(let t=u-1;t>=0;t--){let e=d[t],n=(h=e.type).spec.defining||h.spec.definingForContent;if(n&&!e.sameMarkup(r.node(Math.abs(l)-1)))u=t;else if(n||!e.type.isTextblock)break}var h;for(let e=i.openStart;e>=0;e--){let l=(e+u+1)%(i.openStart+1),h=d[l];if(h)for(let e=0;e=0&&(t.replace(e,n,i),!(t.steps.length>p));o--){let t=a[o];t<0||(e=r.before(t),n=s.after(t))}}(this,t,e,n),this}replaceRangeWith(t,e,n){return function(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=function(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(0==o.parentOffset)for(let t=o.depth-1;t>=0;t--){let e=o.index(t);if(o.node(t).canReplaceWith(e,e,n))return o.before(t+1);if(e>0)return null}if(o.parentOffset==o.parent.content.size)for(let t=o.depth-1;t>=0;t--){let e=o.indexAfter(t);if(o.node(t).canReplaceWith(e,e,n))return o.after(t+1);if(e0&&(s||o.node(n-1).canReplace(o.index(n-1),i.indexAfter(n-1))))return t.delete(o.before(n),i.after(n))}for(let r=1;r<=o.depth&&r<=i.depth;r++)if(e-o.start(r)==o.depth-r&&n>o.end(r)&&i.end(r)-n!=i.depth-r)return t.delete(o.before(r),n);t.delete(e,n)}(this,t,e),this}lift(t,e){return function(t,e,n){let{$from:i,$to:r,depth:s}=e,a=i.before(s+1),l=r.after(s+1),c=a,d=l,u=o.HY.empty,h=0;for(let t=s,e=!1;t>n;t--)e||i.index(t)>0?(e=!0,u=o.HY.from(i.node(t).copy(u)),h++):c--;let p=o.HY.empty,f=0;for(let t=s,e=!1;t>n;t--)e||r.after(t+1)=0;t--){if(i.size){let e=n[t].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=o.HY.from(n[t].type.create(n[t].attrs,i))}let r=e.start,s=e.end;t.step(new v(r,s,r,s,new o.p2(i,0,0),n.length,!0))}(this,t,e),this}setBlockType(t,e=t,n,i=null){return function(t,e,n,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,((e,n)=>{if(e.isTextblock&&!e.hasMarkup(i,r)&&function(t,e,n){let o=t.resolve(e),i=o.index();return o.parent.canReplaceWith(i,i+1,n)}(t.doc,t.mapping.slice(s).map(n),i)){t.clearIncompatible(t.mapping.slice(s).map(n,1),i);let a=t.mapping.slice(s),l=a.map(n,1),c=a.map(n+e.nodeSize,1);return t.step(new v(l,c,l+1,c-1,new o.p2(o.HY.from(i.create(r,null,e.marks)),0,0),1,!0)),!1}}))}(this,t,e,n,i),this}setNodeMarkup(t,e,n=null,i){return function(t,e,n,i,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new v(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new o.p2(o.HY.from(a),0,0),1,!0))}(this,t,e,n,i),this}setNodeAttribute(t,e,n){return this.step(new $(t,e,n)),this}setDocAttribute(t,e){return this.step(new B(t,e)),this}addNodeMark(t,e){return this.step(new m(t,e)),this}removeNodeMark(t,e){if(!(e instanceof o.vc)){let n=this.doc.nodeAt(t);if(!n)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(n.marks)))return this}return this.step(new g(t,e)),this}split(t,e=1,n){return function(t,e,n=1,i){let r=t.doc.resolve(e),s=o.HY.empty,a=o.HY.empty;for(let t=r.depth,e=r.depth-n,l=n-1;t>e;t--,l--){s=o.HY.from(r.node(t).copy(s));let e=i&&i[l];a=o.HY.from(e?e.type.create(e.attrs,a):r.node(t).copy(a))}t.step(new b(e,e,new o.p2(s.append(a),n,n),!0))}(this,t,e,n),this}addMark(t,e,n){return function(t,e,n,o){let i,r,s=[],a=[];t.doc.nodesBetween(e,n,((t,l,c)=>{if(!t.isInline)return;let d=t.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let c=Math.max(l,e),u=Math.min(l+t.nodeSize,n),h=o.addToSet(d);for(let t=0;tt.step(e))),a.forEach((e=>t.step(e)))}(this,t,e,n),this}removeMark(t,e,n){return function(t,e,n,i){let r=[],s=0;t.doc.nodesBetween(e,n,((t,a)=>{if(!t.isInline)return;s++;let l=null;if(i instanceof o.ZU){let e,n=t.marks;for(;e=i.isInSet(n);)(l||(l=[])).push(e),n=e.removeFromSet(n)}else i?i.isInSet(t.marks)&&(l=[i]):l=t.marks;if(l&&l.length){let o=Math.min(a+t.nodeSize,n);for(let t=0;tt.step(new f(e.from,e.to,e.style))))}(this,t,e,n),this}clearIncompatible(t,e,n){return function(t,e,n,i=n.contentMatch){let r=t.doc.nodeAt(e),s=[],a=e+1;for(let e=0;e=0;e--)t.step(s[e])}(this,t,e,n),this}}},43594:(t,e,n)=>{n.d(e,{p:()=>Re,EH:()=>$e,tk:()=>ln});var o=n(62463),i=n(27439),r=n(38480);const s=function(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e},a=function(t){let e=t.assignedSlot||t.parentNode;return e&&11==e.nodeType?e.host:e};let l=null;const c=function(t,e,n){let o=l||(l=document.createRange());return o.setEnd(t,null==n?t.nodeValue.length:n),o.setStart(t,e||0),o},d=function(t,e,n,o){return n&&(h(t,e,n,o,-1)||h(t,e,n,o,1))},u=/^(img|br|input|textarea|hr)$/i;function h(t,e,n,o,i){for(;;){if(t==n&&e==o)return!0;if(e==(i<0?0:p(t))){let n=t.parentNode;if(!n||1!=n.nodeType||f(t)||u.test(t.nodeName)||"false"==t.contentEditable)return!1;e=s(t)+(i<0?0:1),t=n}else{if(1!=t.nodeType)return!1;if("false"==(t=t.childNodes[e+(i<0?-1:0)]).contentEditable)return!1;e=i<0?p(t):0}}}function p(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function f(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const m=function(t){return t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function g(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}const b="undefined"!=typeof navigator?navigator:null,v="undefined"!=typeof document?document:null,y=b&&b.userAgent||"",w=/Edge\/(\d+)/.exec(y),x=/MSIE \d/.exec(y),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),C=!!(x||k||w),M=x?document.documentMode:k?+k[1]:w?+w[1]:0,S=!C&&/gecko\/(\d+)/i.test(y);S&&(/Firefox\/(\d+)/.exec(y)||[0,0])[1];const A=!C&&/Chrome\/(\d+)/.exec(y),O=!!A,T=A?+A[1]:0,N=!C&&!!b&&/Apple Computer/.test(b.vendor),E=N&&(/Mobile\/\w+/.test(y)||!!b&&b.maxTouchPoints>2),I=E||!!b&&/Mac/.test(b.platform),D=!!b&&/Win/.test(b.platform),P=/Android \d/.test(y),H=!!v&&"webkitFontSmoothing"in v.documentElement.style,L=H?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function R(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function _(t,e){return"number"==typeof t?t:t[e]}function z(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function $(t,e,n){let o=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,r=t.dom.ownerDocument;for(let s=n||t.dom;s;s=a(s)){if(1!=s.nodeType)continue;let t=s,n=t==r.body,a=n?R(r):z(t),l=0,c=0;if(e.topa.bottom-_(o,"bottom")&&(c=e.bottom-e.top>a.bottom-a.top?e.top+_(i,"top")-a.top:e.bottom-a.bottom+_(i,"bottom")),e.lefta.right-_(o,"right")&&(l=e.right-a.right+_(i,"right")),l||c)if(n)r.defaultView.scrollBy(l,c);else{let n=t.scrollLeft,o=t.scrollTop;c&&(t.scrollTop+=c),l&&(t.scrollLeft+=l);let i=t.scrollLeft-n,r=t.scrollTop-o;e={left:e.left-i,top:e.top-r,right:e.right-i,bottom:e.bottom-r}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function B(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=a(o));return e}function F(t,e){for(let n=0;n=d){l=Math.max(p.bottom,l),d=Math.min(p.top,d);let t=p.left>e.left?p.left-e.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!i&&p.left<=e.left&&p.right>=e.left&&(i=u,r={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(a=h+1)}}return!n&&i&&(n=i,o=r,s=0),n&&3==n.nodeType?function(t,e){let n=t.nodeValue.length,o=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:t,offset:0}}(n,o):!n||s&&1==n.nodeType?{node:t,offset:a}:Z(n,o)}function Y(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function j(t,e,n){let o=t.childNodes.length;if(o&&n.tope.top&&i++}let o;H&&i&&1==n.nodeType&&1==(o=n.childNodes[i-1]).nodeType&&"false"==o.contentEditable&&o.getBoundingClientRect().top>=e.top&&i--,n==t.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&e.top>n.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(s=function(t,e,n,o){let i=-1;for(let n=e,r=!1;n!=t.dom;){let e=t.docView.nearestDesc(n,!0);if(!e)return null;if(1==e.dom.nodeType&&(e.node.isBlock&&e.parent&&!r||!e.contentDOM)){let t=e.dom.getBoundingClientRect();if(e.node.isBlock&&e.parent&&!r&&(r=!0,t.left>o.left||t.top>o.top?i=e.posBefore:(t.right-1?i:t.docView.posFromDOM(e,n,-1)}(t,n,i,e))}null==s&&(s=function(t,e,n){let{node:o,offset:i}=Z(e,n),r=-1;if(1==o.nodeType&&!o.firstChild){let t=o.getBoundingClientRect();r=t.left!=t.right&&n.left>(t.left+t.right)/2?1:-1}return t.docView.posFromDOM(o,i,r)}(t,l,e));let c=t.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function V(t){return t.top=0&&i==o.nodeValue.length?(t--,r=1):n<0?t--:e++,K(U(c(o,t,e),r),r<0)}{let t=U(c(o,i,i),n);if(S&&i&&/\s/.test(o.nodeValue[i-1])&&i=0)}if(null==r&&i&&(n<0||i==p(o))){let t=o.childNodes[i-1],e=3==t.nodeType?c(t,p(t)-(s?0:1)):1!=t.nodeType||"BR"==t.nodeName&&t.nextSibling?null:t;if(e)return K(U(e,1),!1)}if(null==r&&i=0)}function K(t,e){if(0==t.width)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function G(t,e){if(0==t.height)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function X(t,e,n){let o=t.state,i=t.root.activeElement;o!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),i!=t.dom&&i&&i.focus()}}const tt=/[\u0590-\u08ac]/;let et=null,nt=null,ot=!1;class it{constructor(t,e,n,o){this.parent=t,this.children=e,this.dom=n,this.contentDOM=o,this.dirty=0,n.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,n){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;es(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!1;break}if(e.previousSibling)break}if(null==o&&e==t.childNodes.length)for(let e=t;;e=e.parentNode){if(e==this.dom){o=!0;break}if(e.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let n=!0,o=t;o;o=o.parentNode){let i,r=this.getDesc(o);if(r&&(!e||r.node)){if(!n||!(i=r.nodeDOM)||(1==i.nodeType?i.contains(1==t.nodeType?t:t.parentNode):i==t))return r;n=!1}}}getDesc(t){let e=t.pmViewDesc;for(let t=e;t;t=t.parent)if(t==this)return e}posFromDOM(t,e,n){for(let o=t;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(t,e,n)}return-1}descAt(t){for(let e=0,n=0;et||i instanceof ut){o=t-e;break}e=r}if(o)return this.children[n].domFromPos(o-this.children[n].border,e);for(let t;n&&!(t=this.children[n-1]).size&&t instanceof rt&&t.side>=0;n--);if(e<=0){let t,o=!0;for(;t=n?this.children[n-1]:null,t&&t.dom.parentNode!=this.contentDOM;n--,o=!1);return t&&e&&o&&!t.border&&!t.domAtom?t.domFromPos(t.size,e):{node:this.contentDOM,offset:t?s(t.dom)+1:0}}{let t,o=!0;for(;t=n=i&&e<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(t,e,i);t=r;for(let e=a;e>0;e--){let n=this.children[e-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=s(n.dom)+1;break}t-=n.size}-1==o&&(o=0)}if(o>-1&&(l>e||a==this.children.length-1)){e=l;for(let t=a+1;ta&&re){let t=a;a=l,l=t}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let n=0,o=0;o=n:tn){let o=n+i.border,s=r-i.border;if(t>=o&&e<=s)return this.dirty=t==n||e==r?2:1,void(t!=o||e!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(t-o,e-o):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}n=r}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let n=1==t?2:1;e.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:o))),!e.type.spec.raw){if(1!=r.nodeType){let t=document.createElement("span");t.appendChild(r),r=t}r.contentEditable="false",r.classList.add("ProseMirror-widget")}super(t,[],r,null),this.widget=e,this.widget=e,i=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class st extends it{constructor(t,e,n,o){super(t,[],e,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class at extends it{constructor(t,e,n,o){super(t,[],n,o),this.mark=e}static create(t,e,n,o){let r=o.nodeViews[e.type.name],s=r&&r(e,o,n);return s&&s.dom||(s=i.PW.renderSpec(document,e.type.spec.toDOM(e,n))),new at(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let t=this.parent;for(;!t.node;)t=t.parent;t.dirty0&&(i=Mt(i,0,t,n));for(let t=0;ta?a.parent?a.parent.posBeforeChild(a):void 0:s),n,o),d=c&&c.dom,u=c&&c.contentDOM;if(e.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(e.text);else d||({dom:d,contentDOM:u}=i.PW.renderSpec(document,e.type.spec.toDOM(e)));u||e.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable="false"),e.type.spec.draggable&&(d.draggable=!0));let h=d;return d=yt(d,n,e),c?a=new ht(t,e,n,o,d,u||null,h,c,r,s+1):e.isText?new dt(t,e,n,o,d,h,r):new lt(t,e,n,o,d,u||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}t.contentElement||(t.getContent=()=>i.HY.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,n){return 0==this.dirty&&t.eq(this.node)&&wt(e,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let n=this.node.inlineContent,o=e,r=t.composing?this.localCompositionInfo(t,e):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new kt(this,s&&s.node,t);!function(t,e,n,o){let i=e.locals(t),r=0;if(0==i.length){for(let n=0;nr;)a.push(i[s++]);let f=r+h.nodeSize;if(h.isText){let t=f;s!t.inline)):a.slice(),e.forChild(r,h),p),r=f}}(this.node,this.innerDeco,((e,r,s)=>{e.spec.marks?l.syncToMarks(e.spec.marks,n,t):e.type.side>=0&&!s&&l.syncToMarks(r==this.node.childCount?i.vc.none:this.node.child(r).marks,n,t),l.placeWidget(e,t,o)}),((e,i,s,c)=>{let d;l.syncToMarks(e.marks,n,t),l.findNodeMatch(e,i,s,c)||a&&t.state.selection.from>o&&t.state.selection.to-1&&l.updateNodeAt(e,i,s,d,t)||l.updateNextNode(e,i,s,t,c,o)||l.addNode(e,i,s,t,o),o+=e.nodeSize})),l.syncToMarks([],n,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),pt(this.contentDOM,this.children,t),E&&function(t){if("UL"==t.nodeName||"OL"==t.nodeName){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}(this.dom))}localCompositionInfo(t,e){let{from:n,to:i}=t.state.selection;if(!(t.state.selection instanceof o.Bs)||ne+this.node.content.size)return null;let r=t.domSelectionRange(),s=function(t,e){for(;;){if(3==t.nodeType)return t;if(1==t.nodeType&&e>0){if(t.childNodes.length>e&&3==t.childNodes[e].nodeType)return t.childNodes[e];e=p(t=t.childNodes[e-1])}else{if(!(1==t.nodeType&&e=n){if(r>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let t=a=0&&t+e.length+a>=n)return a+t;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}(this.node.content,t,n-e,i-e);return o<0?null:{node:s,pos:o,text:t}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:n,text:o}){if(this.getDesc(e))return;let i=e;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let r=new st(this,i,e,o);t.input.compositionNodes.push(r),this.children=Mt(this.children,n,n+o.length,t,r)}update(t,e,n,o){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,n,o),0))}updateInner(t,e,n,o){this.updateOuterDeco(e),this.node=t,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(wt(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=bt(this.dom,this.nodeDOM,gt(this.outerDeco,this.node,e),gt(t,this.node,e)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ct(t,e,n,o,i){yt(o,e,t);let r=new lt(void 0,t,e,n,o,o,o,i,0);return r.contentDOM&&r.updateChildren(i,0),r}class dt extends lt{constructor(t,e,n,o,i,r,s){super(t,e,n,o,i,null,r,s,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,n,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),0==this.dirty&&t.text==this.node.text||t.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=t.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,n){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,n)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,n){let o=this.node.cut(t,e),i=document.createTextNode(o.text);return new dt(this.parent,o,this.outerDeco,this.innerDeco,i,i,n)}markDirty(t,e){super.markDirty(t,e),this.dom==this.nodeDOM||0!=t&&e!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class ut extends it{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ht extends lt{constructor(t,e,n,o,i,r,s,a,l,c){super(t,e,n,o,i,r,s,l,c),this.spec=a}update(t,e,n,o){if(3==this.dirty)return!1;if(this.spec.update){let i=this.spec.update(t,e,n);return i&&this.updateInner(t,e,n,o),i}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,n,o){this.spec.setSelection?this.spec.setSelection(t,e,n):super.setSelection(t,e,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function pt(t,e,n){let o=t.firstChild,i=!1;for(let r=0;r0;){let a;for(;;)if(o){let t=n.children[o-1];if(!(t instanceof at)){a=t,o--;break}n=t,o=t.children.length}else{if(n==e)break t;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,r.set(a,i),s.push(a)}}return{index:i,matched:r,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let n=t;n>1,r=Math.min(i,t.length);for(;o-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let o=at.create(this.top,t[i],e,n);this.top.children.splice(this.index,0,o),this.top=o,this.changed=!0}this.index=0,i++}}findNodeMatch(t,e,n,o){let i,r=-1;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(t,e,n))r=this.top.children.indexOf(i,this.index);else for(let o=this.index,i=Math.min(this.top.children.length,o+5);o=n||d<=e?r.push(l):(cn&&r.push(l.slice(n-c,l.size,o)))}return r}function St(t,e=null){let n=t.domSelectionRange(),i=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),a=r&&0==r.size,l=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let c,d,u=i.resolve(l);if(m(n)){for(c=u;r&&!r.node;)r=r.parent;let t=r.node;if(r&&t.isAtom&&o.qv.isSelectable(t)&&r.parent&&(!t.isInline||!function(t,e,n){for(let o=0==e,i=e==p(t);o||i;){if(t==n)return!0;let e=s(t);if(!(t=t.parentNode))return!1;o=o&&0==e,i=i&&e==p(t)}}(n.focusNode,n.focusOffset,r.dom))){let t=r.posBefore;d=new o.qv(l==t?u:i.resolve(t))}}else{let e=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(e<0)return null;c=i.resolve(e)}return d||(d=Ht(t,c,u,"pointer"==e||t.state.selection.head{n.anchorNode==o&&n.anchorOffset==i||(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout((()=>{At(t)&&!t.state.selection.visible||t.dom.classList.remove("ProseMirror-hideselection")}),20))})}(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Tt=N||O&&T<63;function Nt(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),i=oo(t,e,n)))||o.Bs.between(e,n,i)}function Lt(t){return!(t.editable&&!t.hasFocus())&&Rt(t)}function Rt(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch(t){return!1}}function _t(t,e){let{$anchor:n,$head:i}=t.selection,r=e>0?n.max(i):n.min(i),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&o.Y1.findFrom(s,e)}function zt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function $t(t,e,n){let i=t.state.selection;if(!(i instanceof o.Bs)){if(i instanceof o.qv&&i.node.isInline)return zt(t,new o.Bs(e>0?i.$to:i.$from));{let n=_t(t.state,e);return!!n&&zt(t,n)}}if(n.indexOf("s")>-1){let{$head:n}=i,r=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!r||r.isText||!r.isLeaf)return!1;let s=t.state.doc.resolve(n.pos+r.nodeSize*(e<0?-1:1));return zt(t,new o.Bs(i.$anchor,s))}if(!i.empty)return!1;if(t.endOfTextblock(e>0?"forward":"backward")){let n=_t(t.state,e);return!!(n&&n instanceof o.qv)&&zt(t,n)}if(!(I&&n.indexOf("m")>-1)){let n,r=i.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText)return!1;let a=e<0?r.pos-s.nodeSize:r.pos;return!!(s.isAtom||(n=t.docView.descAt(a))&&!n.contentDOM)&&(o.qv.isSelectable(s)?zt(t,new o.qv(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):!!H&&zt(t,new o.Bs(t.state.doc.resolve(e<0?a:a+s.nodeSize))))}}function Bt(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function Ft(t,e){let n=t.pmViewDesc;return n&&0==n.size&&(e<0||t.nextSibling||"BR"!=t.nodeName)}function Jt(t,e){return e<0?function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=!1;for(S&&1==n.nodeType&&o0){if(1!=n.nodeType)break;{let t=n.childNodes[o-1];if(Ft(t,-1))i=n,r=--o;else{if(3!=t.nodeType)break;n=t,o=n.nodeValue.length}}}else{if(Zt(n))break;{let e=n.previousSibling;for(;e&&Ft(e,-1);)i=n.parentNode,r=s(e),e=e.previousSibling;if(e)n=e,o=Bt(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}a?Yt(t,n,o):i&&Yt(t,i,r)}(t):function(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let i,r,a=Bt(n);for(;;)if(o{t.state==i&&Ot(t)}),50)}function jt(t,e){let n=t.state.doc.resolve(e);if(!O&&!D&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let n=t.coordsAtPos(e-1),i=(n.top+n.bottom)/2;if(i>o.top&&i1)return n.lefto.top&&i1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(t.dom).direction?"rtl":"ltr"}function qt(t,e,n){let i=t.state.selection;if(i instanceof o.Bs&&!i.empty||n.indexOf("s")>-1)return!1;if(I&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let n=_t(t.state,e);if(n&&n instanceof o.qv)return zt(t,n)}if(!r.parent.inlineContent){let n=e<0?r:s,a=i instanceof o.C1?o.Y1.near(n,e):o.Y1.findFrom(n,e);return!!a&&zt(t,a)}return!1}function Vt(t,e){if(!(t.state.selection instanceof o.Bs))return!0;let{$head:n,$anchor:i,empty:r}=t.state.selection;if(!n.sameParent(i))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function Ut(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Wt(t,e){t.someProp("transformCopied",(n=>{e=n(e,t)}));let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&1==o.childCount&&1==o.firstChild.childCount;){r--,s--;let t=o.firstChild;n.push(t.type.name,t.attrs!=t.type.defaultAttrs?t.attrs:null),o=t.content}let a=t.someProp("clipboardSerializer")||i.PW.fromSchema(t.state.schema),l=re(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d,u=c.firstChild,h=0;for(;u&&1==u.nodeType&&(d=oe[u.nodeName.toLowerCase()]);){for(let t=d.length-1;t>=0;t--){let e=l.createElement(d[t]);for(;c.firstChild;)e.appendChild(c.firstChild);c.appendChild(e),h++}u=c.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`),{dom:c,text:t.someProp("clipboardTextSerializer",(n=>n(e,t)))||e.content.textBetween(0,e.content.size,"\n\n")}}function Qt(t,e,n,o,r){let s,a,l=r.parent.type.spec.code;if(!n&&!e)return null;let c=e&&(o||l||!n);if(c){if(t.someProp("transformPastedText",(n=>{e=n(e,l||o,t)})),l)return e?new i.p2(i.HY.from(t.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):i.p2.empty;let n=t.someProp("clipboardTextParser",(n=>n(e,r,o,t)));if(n)a=n;else{let n=r.marks(),{schema:o}=t.state,a=i.PW.fromSchema(o);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach((t=>{let e=s.appendChild(document.createElement("p"));t&&e.appendChild(a.serializeNode(o.text(t,n)))}))}}else t.someProp("transformPastedHTML",(e=>{n=e(n,t)})),s=function(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n,o=re().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(t);if((n=i&&oe[i[1].toLowerCase()])&&(t=n.map((t=>"<"+t+">")).join("")+t+n.map((t=>"")).reverse().join("")),o.innerHTML=t,n)for(let t=0;t0;t--){let t=s.firstChild;for(;t&&1!=t.nodeType;)t=t.nextSibling;if(!t)break;s=t}if(!a){let e=t.someProp("clipboardParser")||t.someProp("domParser")||i.aw.fromSchema(t.state.schema);a=e.parseSlice(s,{preserveWhitespace:!(!c&&!u),context:r,ruleFromNode:t=>"BR"!=t.nodeName||t.nextSibling||!t.parentNode||Kt.test(t.parentNode.nodeName)?null:{ignore:!0}})}if(u)a=function(t,e){if(!t.size)return t;let n,o=t.content.firstChild.type.schema;try{n=JSON.parse(e)}catch(e){return t}let{content:r,openStart:s,openEnd:a}=t;for(let t=n.length-2;t>=0;t-=2){let e=o.nodes[n[t]];if(!e||e.hasRequiredAttrs())break;r=i.HY.from(e.create(n[t+1],r)),s++,a++}return new i.p2(r,s,a)}(ne(a,+u[1],+u[2]),u[4]);else if(a=i.p2.maxOpen(function(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o,r=e.node(n).contentMatchAt(e.index(n)),s=[];if(t.forEach((t=>{if(!s)return;let e,n=r.findWrapping(t.type);if(!n)return s=null;if(e=s.length&&o.length&&Xt(n,o,t,s[s.length-1],0))s[s.length-1]=e;else{s.length&&(s[s.length-1]=te(s[s.length-1],o.length));let e=Gt(t,n);s.push(e),r=r.matchType(e.type),o=n}})),s)return i.HY.from(s)}return t}(a.content,r),!0),a.openStart||a.openEnd){let t=0,e=0;for(let e=a.content.firstChild;t{a=e(a,t)})),a}const Kt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gt(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,i.HY.from(t));return t}function Xt(t,e,n,o,r){if(r1&&(s=0),r=n&&(l=e<0?a.contentMatchAt(0).fillBefore(l,s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.HY.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,a.copy(l))}function ne(t,e,n){return e{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=e=>he(t,e))}))}function he(t,e){return t.someProp("handleDOMEvents",(n=>{let o=n[e.type];return!!o&&(o(t,e)||e.defaultPrevented)}))}function pe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function fe(t){return{left:t.clientX,top:t.clientY}}function me(t,e,n,o,i){if(-1==o)return!1;let r=t.state.doc.resolve(o);for(let o=r.depth+1;o>0;o--)if(t.someProp(e,(e=>o>r.depth?e(t,n,r.nodeAfter,r.before(o),i,!0):e(t,n,r.node(o),r.before(o),i,!1))))return!0;return!1}function ge(t,e,n){t.focused||t.focus();let o=t.state.tr.setSelection(e);"pointer"==n&&o.setMeta("pointer",!0),t.dispatch(o)}function be(t,e,n,o){return me(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",(n=>n(t,e,o)))}function ve(t,e,n,i){return me(t,"handleTripleClickOn",e,n,i)||t.someProp("handleTripleClick",(n=>n(t,e,i)))||function(t,e,n){if(0!=n.button)return!1;let i=t.state.doc;if(-1==e)return!!i.inlineContent&&(ge(t,o.Bs.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(e);for(let e=r.depth+1;e>0;e--){let n=e>r.depth?r.nodeAfter:r.node(e),s=r.before(e);if(n.inlineContent)ge(t,o.Bs.create(i,s+1,s+1+n.content.size),"pointer");else{if(!o.qv.isSelectable(n))continue;ge(t,o.qv.create(i,s),"pointer")}return!0}}(t,n,i)}function ye(t){return Ae(t)}ae.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=16==n.keyCode||n.shiftKey,!ke(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!P||!O||13!=n.keyCode))if(229!=n.keyCode&&t.domObserver.forceFlush(),!E||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)t.someProp("handleKeyDown",(e=>e(t,n)))||function(t,e){let n=e.keyCode,o=function(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}(e);if(8==n||I&&72==n&&"c"==o)return Vt(t,-1)||Jt(t,-1);if(46==n&&!e.shiftKey||I&&68==n&&"c"==o)return Vt(t,1)||Jt(t,1);if(13==n||27==n)return!0;if(37==n||I&&66==n&&"c"==o){let e=37==n?"ltr"==jt(t,t.state.selection.from)?-1:1:-1;return $t(t,e,o)||Jt(t,e)}if(39==n||I&&70==n&&"c"==o){let e=39==n?"ltr"==jt(t,t.state.selection.from)?1:-1:1;return $t(t,e,o)||Jt(t,e)}return 38==n||I&&80==n&&"c"==o?qt(t,-1,o)||Jt(t,-1):40==n||I&&78==n&&"c"==o?function(t){if(!N||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&1==e.nodeType&&0==n&&e.firstChild&&"false"==e.firstChild.contentEditable){let n=e.firstChild;Ut(t,n,"true"),setTimeout((()=>Ut(t,n,"false")),20)}return!1}(t)||qt(t,1,o)||Jt(t,1):o==(I?"m":"c")&&(66==n||73==n||89==n||90==n)}(t,n)?n.preventDefault():de(t,"key");else{let e=Date.now();t.input.lastIOSEnter=e,t.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{t.input.lastIOSEnter==e&&(t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))),t.input.lastIOSEnter=0)}),200)}},ae.keyup=(t,e)=>{16==e.keyCode&&(t.input.shiftKey=!1)},ae.keypress=(t,e)=>{let n=e;if(ke(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||I&&n.metaKey)return;if(t.someProp("handleKeyPress",(e=>e(t,n))))return void n.preventDefault();let i=t.state.selection;if(!(i instanceof o.Bs&&i.$from.sameParent(i.$to))){let e=String.fromCharCode(n.charCode);/[\r\n]/.test(e)||t.someProp("handleTextInput",(n=>n(t,i.$from.pos,i.$to.pos,e)))||t.dispatch(t.state.tr.insertText(e).scrollIntoView()),n.preventDefault()}};const we=I?"metaKey":"ctrlKey";se.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=ye(t),i=Date.now(),r="singleClick";i-t.input.lastClick.time<500&&function(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}(n,t.input.lastClick)&&!n[we]&&("singleClick"==t.input.lastClick.type?r="doubleClick":"doubleClick"==t.input.lastClick.type&&(r="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:r};let s=t.posAtCoords(fe(n));s&&("singleClick"==r?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new xe(t,s,n,!!o)):("doubleClick"==r?be:ve)(t,s.pos,s.inside,n)?n.preventDefault():de(t,"pointer"))};class xe{constructor(t,e,n,i){let r,s;if(this.view=t,this.pos=e,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!n[we],this.allowDefault=n.shiftKey,e.inside>-1)r=t.state.doc.nodeAt(e.inside),s=e.inside;else{let n=t.state.doc.resolve(e.pos);r=n.parent,s=n.depth?n.before():0}const a=i?null:n.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof o.qv&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!S||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),de(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Ot(this.view))),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(fe(t))),this.updateAllowDefault(t),this.allowDefault||!e?de(this.view,"pointer"):function(t,e,n,i,r){return me(t,"handleClickOn",e,n,i)||t.someProp("handleClick",(n=>n(t,e,i)))||(r?function(t,e){if(-1==e)return!1;let n,i,r=t.state.selection;r instanceof o.qv&&(n=r.node);let s=t.state.doc.resolve(e);for(let t=s.depth+1;t>0;t--){let e=t>s.depth?s.nodeAfter:s.node(t);if(o.qv.isSelectable(e)){i=n&&r.$from.depth>0&&t>=r.$from.depth&&s.before(r.$from.depth+1)==r.$from.pos?s.before(r.$from.depth):s.before(t);break}}return null!=i&&(ge(t,o.qv.create(t.state.doc,i),"pointer"),!0)}(t,n):function(t,e){if(-1==e)return!1;let n=t.state.doc.resolve(e),i=n.nodeAfter;return!!(i&&i.isAtom&&o.qv.isSelectable(i))&&(ge(t,new o.qv(n),"pointer"),!0)}(t,n))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||N&&this.mightDrag&&!this.mightDrag.node.isAtom||O&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(ge(this.view,o.Y1.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):de(this.view,"pointer")}move(t){this.updateAllowDefault(t),de(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function ke(t,e){return!!t.composing||!!(N&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500)&&(t.input.compositionEndedAt=-2e8,!0)}se.touchstart=t=>{t.input.lastTouch=Date.now(),ye(t),de(t,"pointer")},se.touchmove=t=>{t.input.lastTouch=Date.now(),de(t,"pointer")},se.contextmenu=t=>ye(t);const Ce=P?5e3:-1;function Me(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout((()=>Ae(t)),e))}function Se(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=function(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Ae(t,e=!1){if(!(P&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Se(t),e||t.docView&&t.docView.dirty){let e=St(t);return e&&!e.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(e)):t.updateState(t.state),!0}return!1}}ae.compositionstart=ae.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((t=>!1===t.type.spec.inclusive))))t.markCursor=t.state.storedMarks||n.marks(),Ae(t,!0),t.markCursor=null;else if(Ae(t),S&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let e=t.domSelectionRange();for(let n=e.focusNode,o=e.focusOffset;n&&1==n.nodeType&&0!=o;){let e=o<0?n.lastChild:n.childNodes[o-1];if(!e)break;if(3==e.nodeType){t.domSelection().collapse(e,e.nodeValue.length);break}n=e,o=-1}}t.input.composing=!0}Me(t,Ce)},ae.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then((()=>t.domObserver.flush())),t.input.compositionID++,Me(t,20))};const Oe=C&&M<15||E&&L<604;function Te(t,e,n,o,r){let s=Qt(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",(e=>e(t,r,s||i.p2.empty))))return!0;if(!s)return!1;let a=function(t){return 0==t.openStart&&0==t.openEnd&&1==t.content.childCount?t.content.firstChild:null}(s),l=a?t.state.tr.replaceSelectionWith(a,o):t.state.tr.replaceSelection(s);return t.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ne(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}se.copy=ae.cut=(t,e)=>{let n=e,o=t.state.selection,i="cut"==n.type;if(o.empty)return;let r=Oe?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Wt(t,s);r?(n.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(i),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()}),50)}(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ae.paste=(t,e)=>{let n=e;if(t.composing&&!P)return;let o=Oe?null:n.clipboardData,i=t.input.shiftKey&&45!=t.input.lastKeyCode;o&&Te(t,Ne(o),o.getData("text/html"),i,n)?n.preventDefault():function(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let i=t.input.shiftKey&&45!=t.input.lastKeyCode;setTimeout((()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Te(t,o.value,null,i,e):Te(t,o.textContent,o.innerHTML,i,e)}),50)}(t,n)};class Ee{constructor(t,e,n){this.slice=t,this.move=e,this.node=n}}const Ie=I?"altKey":"ctrlKey";se.dragstart=(t,e)=>{let n=e,i=t.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let r,s=t.state.selection,a=s.empty?null:t.posAtCoords(fe(n));if(a&&a.pos>=s.from&&a.pos<=(s instanceof o.qv?s.to-1:s.to));else if(i&&i.mightDrag)r=o.qv.create(t.state.doc,i.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let e=t.docView.nearestDesc(n.target,!0);e&&e.node.type.spec.draggable&&e!=t.docView&&(r=o.qv.create(t.state.doc,e.posBefore))}let l=(r||t.state.selection).content(),{dom:c,text:d}=Wt(t,l);n.dataTransfer.clearData(),n.dataTransfer.setData(Oe?"Text":"text/html",c.innerHTML),n.dataTransfer.effectAllowed="copyMove",Oe||n.dataTransfer.setData("text/plain",d),t.dragging=new Ee(l,!n[Ie],r)},se.dragend=t=>{let e=t.dragging;window.setTimeout((()=>{t.dragging==e&&(t.dragging=null)}),50)},ae.dragover=ae.dragenter=(t,e)=>e.preventDefault(),ae.drop=(t,e)=>{let n=e,s=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let a=t.posAtCoords(fe(n));if(!a)return;let l=t.state.doc.resolve(a.pos),c=s&&s.slice;c?t.someProp("transformPasted",(e=>{c=e(c,t)})):c=Qt(t,Ne(n.dataTransfer),Oe?null:n.dataTransfer.getData("text/html"),!1,l);let d=!(!s||n[Ie]);if(t.someProp("handleDrop",(e=>e(t,n,c||i.p2.empty,d))))return void n.preventDefault();if(!c)return;n.preventDefault();let u=c?(0,r.nj)(t.state.doc,l.pos,c):l.pos;null==u&&(u=l.pos);let h=t.state.tr;if(d){let{node:t}=s;t?t.replace(h):h.deleteSelection()}let p=h.mapping.map(u),f=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=h.doc;if(f?h.replaceRangeWith(p,p,c.content.firstChild):h.replaceRange(p,p,c),h.doc.eq(m))return;let g=h.doc.resolve(p);if(f&&o.qv.isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))h.setSelection(new o.qv(g));else{let e=h.mapping.map(u);h.mapping.maps[h.mapping.maps.length-1].forEach(((t,n,o,i)=>e=i)),h.setSelection(Ht(t,g,h.doc.resolve(e)))}t.focus(),t.dispatch(h.setMeta("uiEvent","drop"))},se.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout((()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ot(t)}),20))},se.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},se.beforeinput=(t,e)=>{if(O&&P&&"deleteContentBackward"==e.inputType){t.domObserver.flushSoon();let{domChangeCount:e}=t.input;setTimeout((()=>{if(t.input.domChangeCount!=e)return;if(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",(e=>e(t,g(8,"Backspace")))))return;let{$cursor:n}=t.state.selection;n&&n.pos>0&&t.dispatch(t.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let t in ae)se[t]=ae[t];function De(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Pe{constructor(t,e){this.toDOM=t,this.spec=e||ze,this.side=this.spec.side||0}map(t,e,n,o){let{pos:i,deleted:r}=t.mapResult(e.from+o,this.side<0?-1:1);return r?null:new Re(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof Pe&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&De(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class He{constructor(t,e){this.attrs=t,this.spec=e||ze}map(t,e,n,o){let i=t.map(e.from+o,this.spec.inclusiveStart?-1:1)-n,r=t.map(e.to+o,this.spec.inclusiveEnd?1:-1)-n;return i>=r?null:new Re(i,r,this)}valid(t,e){return e.from=t&&(!i||i(s.spec))&&n.push(s.copy(s.from+o,s.to+o))}for(let r=0;rt){let s=this.children[r]+1;this.children[r+2].findInner(t-s,e-s,n,o+s,i)}}map(t,e,n){return this==Be||0==t.maps.length?this:this.mapInner(t,e,0,0,n||ze)}mapInner(t,e,n,o,i){let r;for(let s=0;s{let s=r-i-(n-t);for(let i=0;ir+e-o)continue;let l=a[i]+e-o;n>=l?a[i+1]=t<=l?-2:-1:t>=e&&s&&(a[i]+=s,a[i+1]+=s)}o+=s})),e=n.maps[t].map(e,-1)}let l=!1;for(let e=0;e=o.content.size){l=!0;continue}let u=n.map(t[e+1]+r,-1)-i,{index:h,offset:p}=o.content.findIndex(d),f=o.maybeChild(h);if(f&&p==d&&p+f.nodeSize==u){let o=a[e+2].mapInner(n,f,c+1,t[e]+r+1,s);o!=Be?(a[e]=d,a[e+1]=u,a[e+2]=o):(a[e+1]=-2,l=!0)}else l=!0}if(l){let l=function(t,e,n,o,i,r,s){function a(t,e){for(let r=0;r{let s,a=r+n;if(s=Ze(e,t,a)){for(o||(o=this.children.slice());ir&&e.to=t){this.children[e]==t&&(n=this.children[e+2]);break}let i=t+1,r=i+e.content.size;for(let t=0;ti&&e.type instanceof He){let t=Math.max(i,e.from)-i,n=Math.min(r,e.to)-i;tn.map(t,e,ze)));return Fe.from(n)}forChild(t,e){if(e.isLeaf)return $e.empty;let n=[];for(let o=0;ot instanceof $e))?t:t.reduce(((t,e)=>t.concat(e instanceof $e?e:e.members)),[]))}}}function Je(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;on&&e.to{let a=Ze(t,e,s+n);if(a){r=!0;let t=je(a,e,n+s+1,o);t!=Be&&i.push(s,s+e.nodeSize,t)}}));let s=Je(r?Ye(t):t,-n).sort(qe);for(let t=0;t0;)e++;t.splice(e,0,n)}function We(t){let e=[];return t.someProp("decorations",(n=>{let o=n(t.state);o&&o!=Be&&e.push(o)})),t.cursorWrapper&&e.push($e.create(t.state.doc,[t.cursorWrapper.deco])),Fe.from(e)}const Qe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ke=C&&M<=11;class Ge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class Xe{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Ge,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((t=>{for(let e=0;e"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),Ke&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Qe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Lt(this.view)){if(this.suppressingSelectionUpdates)return Ot(this.view);if(C&&M<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&d(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e,n=new Set;for(let e=t.focusNode;e;e=a(e))n.add(e);for(let o=t.anchorNode;o;o=a(o))if(n.has(o)){e=o;break}let o=e&&this.view.docView.nearestDesc(e);return o&&o.ignoreMutation({type:"selection",target:3==e.nodeType?e.parentNode:e})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let n=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Lt(t)&&!this.ignoreSelectionChange(n),r=-1,s=-1,a=!1,l=[];if(t.editable)for(let t=0;t1){let t=l.filter((t=>"BR"==t.nodeName));if(2==t.length){let e=t[0],n=t[1];e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}}let c=null;r<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||i)&&(r>-1&&(t.docView.markDirty(r,s),function(t){if(!tn.has(t)&&(tn.set(t,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace))){if(t.requiresGeckoHackNode=S,en)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),en=!0}}(t)),this.handleDOMChange(r,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(n)||Ot(t),this.currentSelection.set(n))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let n=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(n==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(t))return null;if("childList"==t.type){for(let n=0;ne.content.size?null:Ht(t,e.resolve(n.anchor),e.resolve(n.head))}function sn(t,e,n){let o=t.depth,i=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,i++,e=!1;if(n){let e=t.node(o).maybeChild(t.indexAfter(o));for(;e&&!e.isLeaf;)e=e.firstChild,i++}return i}function an(t){if(2!=t.length)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class ln{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ce,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(pn),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=un(this),dn(this),this.nodeViews=hn(this),this.docView=ct(this.state.doc,cn(this),We(this),this.dom,this),this.domObserver=new Xe(this,((t,e,n,r)=>function(t,e,n,r,s){let a=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let e=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,n=St(t,e);if(n&&!t.state.selection.eq(n)){if(O&&P&&13===t.input.lastKeyCode&&Date.now()-100e(t,g(13,"Enter")))))return;let o=t.state.tr.setSelection(n);"pointer"==e?o.setMeta("pointer",!0):"key"==e&&o.scrollIntoView(),a&&o.setMeta("composition",a),t.dispatch(o)}return}let l=t.state.doc.resolve(e),c=l.sharedDepth(n);e=l.before(c+1),n=t.state.doc.resolve(n).after(c+1);let d,u,h=t.state.selection,p=function(t,e,n){let o,{node:r,fromOffset:s,toOffset:a,from:l,to:c}=t.docView.parseRange(e,n),d=t.domSelectionRange(),u=d.anchorNode;if(u&&t.dom.contains(1==u.nodeType?u:u.parentNode)&&(o=[{node:u,offset:d.anchorOffset}],m(d)||o.push({node:d.focusNode,offset:d.focusOffset})),O&&8===t.input.lastKeyCode)for(let t=a;t>s;t--){let e=r.childNodes[t-1],n=e.pmViewDesc;if("BR"==e.nodeName&&!n){a=t;break}if(!n||n.size)break}let h=t.state.doc,p=t.someProp("domParser")||i.aw.fromSchema(t.state.schema),f=h.resolve(l),g=null,b=p.parse(r,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=f.parent.type.whitespace||"full",findPositions:o,ruleFromNode:nn,context:f});if(o&&null!=o[0].pos){let t=o[0].pos,e=o[1]&&o[1].pos;null==e&&(e=t),g={anchor:t+l,head:e+l}}return{doc:b,sel:g,from:l,to:c}}(t,e,n),f=t.state.doc,b=f.slice(p.from,p.to);8===t.input.lastKeyCode&&Date.now()-100=s?r-o:0;r-=t,r&&r=a?r-o:0;r-=e,r&&rDate.now()-225||P)&&s.some((t=>1==t.nodeType&&!on.test(t.nodeName)))&&(!v||v.endA>=v.endB)&&t.someProp("handleKeyDown",(e=>e(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(!v){if(!(r&&h instanceof o.Bs&&!h.empty&&h.$head.sameParent(h.$anchor))||t.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let e=rn(t,t.state.doc,p.sel);if(e&&!e.eq(t.state.selection)){let n=t.state.tr.setSelection(e);a&&n.setMeta("composition",a),t.dispatch(n)}}return}v={start:h.from,endA:h.to,endB:h.to}}if(O&&t.cursorWrapper&&p.sel&&p.sel.anchor==t.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let t=v.endB-v.start;p.sel={anchor:p.sel.anchor+t,head:p.sel.anchor+t}}t.input.domChangeCount++,t.state.selection.fromt.state.selection.from&&v.start<=t.state.selection.from+2&&t.state.selection.from>=p.from?v.start=t.state.selection.from:v.endA=t.state.selection.to-2&&t.state.selection.to<=p.to&&(v.endB+=t.state.selection.to-v.endA,v.endA=t.state.selection.to)),C&&M<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>p.from&&"  "==p.doc.textBetween(v.start-p.from-1,v.start-p.from+1)&&(v.start--,v.endA--,v.endB--);let y,w=p.doc.resolveNoCache(v.start-p.from),x=p.doc.resolveNoCache(v.endB-p.from),k=f.resolve(v.start),S=w.sameParent(x)&&w.parent.inlineContent&&k.end()>=v.endA;if((E&&t.input.lastIOSEnter>Date.now()-225&&(!S||s.some((t=>"DIV"==t.nodeName||"P"==t.nodeName)))||!S&&w.pose(t,g(13,"Enter")))))return void(t.input.lastIOSEnter=0);if(t.state.selection.anchor>v.start&&function(t,e,n,o,i){if(!o.parent.isTextblock||n-e<=i.pos-o.pos||sn(o,!0,!1)n||sn(s,!0,!1)e(t,g(8,"Backspace")))))return void(P&&O&&t.domObserver.suppressSelectionUpdates());O&&P&&v.endB==v.start&&(t.input.lastAndroidDelete=Date.now()),P&&!S&&w.start()!=x.start()&&0==x.parentOffset&&w.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==v.endA&&(v.endB-=2,x=p.doc.resolveNoCache(v.endB-p.from),setTimeout((()=>{t.someProp("handleKeyDown",(function(e){return e(t,g(13,"Enter"))}))}),20));let A,T,N,I=v.start,D=v.endA;if(S)if(w.pos==x.pos)C&&M<=11&&0==w.parentOffset&&(t.domObserver.suppressSelectionUpdates(),setTimeout((()=>Ot(t)),20)),A=t.state.tr.delete(I,D),T=f.resolve(v.start).marksAcross(f.resolve(v.endA));else if(v.endA==v.endB&&(N=function(t,e){let n,o,r,s=t.firstChild.marks,a=e.firstChild.marks,l=s,c=a;for(let t=0;tt.mark(o.addToSet(t.marks));else{if(0!=l.length||1!=c.length)return null;o=c[0],n="remove",r=t=>t.mark(o.removeFromSet(t.marks))}let d=[];for(let t=0;tn(t,I,D,e))))return;A=t.state.tr.insertText(e,I,D)}if(A||(A=t.state.tr.replace(I,D,p.doc.slice(v.start-p.from,v.endB-p.from))),p.sel){let e=rn(t,A.doc,p.sel);e&&!(O&&P&&t.composing&&e.empty&&(v.start!=v.endB||t.input.lastAndroidDelete{!pe(t,e)||he(t,e)||!t.editable&&e.type in ae||n(t,e)},le[e]?{passive:!0}:void 0)}N&&t.dom.addEventListener("input",(()=>null)),ue(t)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ue(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(pn),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let t in this._props)e[t]=this._props[t];e.state=this.state;for(let n in t)e[n]=t[n];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){var n;let o=this.state,i=!1,r=!1;t.storedMarks&&this.composing&&(Se(this),r=!0),this.state=t;let s=o.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let t=hn(this);(function(t,e){let n=0,o=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let t in e)o++;return n!=o})(t,this.nodeViews)&&(this.nodeViews=t,i=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&ue(this),this.editable=un(this),dn(this);let a=We(this),l=cn(this),c=o.plugins==t.plugins||o.doc.eq(t.doc)?t.scrollToSelection>o.scrollToSelection?"to selection":"preserve":"reset",u=i||!this.docView.matchesNode(t.doc,l,a);!u&&t.selection.eq(o.selection)||(r=!0);let h="preserve"==c&&r&&null==this.dom.style.overflowAnchor&&function(t){let e,n,o=t.dom.getBoundingClientRect(),i=Math.max(0,o.top);for(let r=(o.left+o.right)/2,s=i+1;s=i-20){e=o,n=a.top;break}}return{refDOM:e,refTop:n,stack:B(t.dom)}}(this);if(r){this.domObserver.stop();let e=u&&(C||O)&&!this.composing&&!o.selection.empty&&!t.selection.empty&&function(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}(o.selection,t.selection);if(u){let n=O?this.trackWrites=this.domSelectionRange().focusNode:null;!i&&this.docView.update(t.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ct(t.doc,l,a,this.dom,this)),n&&!this.trackWrites&&(e=!0)}e||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return d(e.node,e.offset,n.anchorNode,n.anchorOffset)}(this))?Ot(this,e):(Dt(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!o.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,o),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;F(n,0==o?0:o-e)}(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(t=>t(this))));else if(this.state.selection instanceof o.qv){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&$(this,e.getBoundingClientRect(),t)}else $(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;e0&&this.state.doc.nodeAt(t))==n.node&&(i=t)}this.dragging=new Ee(t.slice,t.move,i<0?void 0:o.qv.create(this.state.doc,i))}someProp(t,e){let n,o=this._props&&this._props[t];if(null!=o&&(n=e?e(o):o))return n;for(let o=0;ot.ownerDocument.getSelection()),this._root=t;return t||document}updateRoot(){this._root=null}posAtCoords(t){return q(this,t)}coordsAtPos(t,e=1){return Q(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,n=-1){let o=this.docView.posFromDOM(t,e,n);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(t,e){return function(t,e,n){return et==e&&nt==n?ot:(et=e,nt=n,ot="up"==n||"down"==n?function(t,e,n){let o=e.selection,i="up"==n?o.$from:o.$to;return X(t,e,(()=>{let{node:e}=t.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=t.docView.nearestDesc(e,!0);if(!n)break;if(n.node.isBlock){e=n.contentDOM||n.dom;break}e=n.dom.parentNode}let o=Q(t,i.pos,1);for(let t=e.firstChild;t;t=t.nextSibling){let e;if(1==t.nodeType)e=t.getClientRects();else{if(3!=t.nodeType)continue;e=c(t,0,t.nodeValue.length).getClientRects()}for(let t=0;ti.top+1&&("up"==n?o.top-i.top>2*(i.bottom-o.top):i.bottom-o.bottom>2*(o.bottom-i.top)))return!1}}return!0}))}(t,e,n):function(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let i=o.parentOffset,r=!i,s=i==o.parent.content.size,a=t.domSelection();return tt.test(o.parent.textContent)&&a.modify?X(t,e,(()=>{let{focusNode:e,focusOffset:i,anchorNode:r,anchorOffset:s}=t.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",n,"character");let c=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:d,focusOffset:u}=t.domSelectionRange(),h=d&&!c.contains(1==d.nodeType?d:d.parentNode)||e==d&&i==u;try{a.collapse(r,s),e&&(e!=r||i!=s)&&a.extend&&a.extend(e,i)}catch(t){}return null!=l&&(a.caretBidiLevel=l),h})):"left"==n||"backward"==n?r:s}(t,e,n))}(this,e||this.state,t)}pasteHTML(t,e){return Te(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Te(this,t,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(function(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],We(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function(t,e){he(t,e)||!se[e.type]||!t.editable&&e.type in ae||se[e.type](t,e)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return N&&11===this.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function(t){let e;function n(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let o=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.domAtPos(t.state.selection.anchor);return d(a.node,a.offset,r,s)&&([o,i,r,s]=[r,s,o,i]),{anchorNode:o,anchorOffset:i,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function cn(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(t.state)),n)for(let t in n)"class"==t?e.class+=" "+n[t]:"style"==t?e.style=(e.style?e.style+";":"")+n[t]:e[t]||"contenteditable"==t||"nodeName"==t||(e[t]=String(n[t]))})),e.translate||(e.translate="no"),[Re.node(0,t.state.doc.content.size,e)]}function dn(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Re.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function un(t){return!t.someProp("editable",(e=>!1===e(t.state)))}function hn(t){let e=Object.create(null);function n(t){for(let n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function pn(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}}}]); \ No newline at end of file diff --git a/7573.74754d39bc0e793b4a76.js b/7573.4af416412bfaab3f33ff.js similarity index 99% rename from 7573.74754d39bc0e793b4a76.js rename to 7573.4af416412bfaab3f33ff.js index 6435052f5..0e9aa80d3 100644 --- a/7573.74754d39bc0e793b4a76.js +++ b/7573.4af416412bfaab3f33ff.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7573],{77573:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorPasteImageToolModule:()=>P});var n=o(12057),i=o(24751),r=o(34016),l=o(47029),s=o(42600),a=o(43232),u=o(37195),c=o(74788),p=o(15997),g=o(73460),d=o(42328),m=o(23618),h=o(62463);const f={addProseMirrorPlugins:()=>[new h.Sy({props:{handleDOMEvents:{paste:(t,e)=>{var o,n;const i=null!==(n=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text/plain"))&&void 0!==n?n:"";if(/^https?:\/\/.+\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(i)){const o=t.state.schema.nodes.imageEditor.create({src:i}),n=t.state.tr.replaceSelectionWith(o);setTimeout((()=>t.dispatch(n))),e.preventDefault()}}}}})]};var v=o(8820),w=o(98778),Z=o(16331),b=o(18289),y=o(55788),_=o(36866);const x=["dropdown"];function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",4),c.TgZ(1,"label",5),c.TgZ(2,"div",6),c._uU(3,"Image URL"),c.qZA(),c.TgZ(4,"div",7),c.TgZ(5,"tui-input-inline",8),c.NdJ("ngModelChange",(function(e){return c.CHM(t),c.oxw().url=e}))("keydown.enter",(function(){c.CHM(t);const e=c.oxw();return e.insertImage(e.url)})),c._uU(6),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,o=c.oxw();c.Q6J("tuiActiveZoneParent",t),c.xp6(5),c.ekj("t-input_filled",o.url),c.Q6J("ngModel",o.url),c.xp6(1),c.hij(" ",o.placeholder," ")}}let T=(()=>{class t{constructor(t){this.editor=t,this.youtubeLogo='',this.placeholder="https://image.com/etc.png",this.url=""}insertImage(t){var e;t&&(this.editor.setImage(t),null===(e=this.dropdown)||void 0===e||e.close())}}return t.ɵfac=function(e){return new(e||t)(c.Y36(u.$3))},t.ɵcmp=c.Xpm({type:t,selectors:[["image-tool"]],viewQuery:function(t,e){if(1&t&&c.Gf(x,5),2&t){let t;c.iGM(t=c.CRH())&&(e.dropdown=t.first)}},decls:5,vars:4,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","flat","automation-id","youtube-tool__button","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","icon","pseudoActive"],["youtubeDropdown",""],[1,"youtube-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",0,1),c._UZ(2,"button",2),c.YNc(3,A,7,5,"ng-template",null,3,c.W1O),c.qZA()),2&t){const t=c.MAs(1),o=c.MAs(4);c.Q6J("content",o),c.xp6(2),c.Q6J("focusable",t.open)("icon",e.youtubeLogo)("pseudoActive",t.open)}},directives:[w.o,Z.Ek,b.v,y.e,_.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.youtube-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-url[_ngcontent-%COMP%]{max-width:12.5rem;min-width:12.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"],changeDetection:0}),t})();var U=o(77825);let C=(()=>{class t{constructor(){this.builtInTools=[u._2.Undo],this.control=new i.NI("")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-editor-paste-image-tool-example-1"]],features:[c._Bn([{provide:u.Wf,deps:[c.gxx],useFactory:t=>[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:t})=>t)),Promise.resolve().then(o.bind(o,89681)).then((({tuiCreateImageEditorExtension:e})=>e({injector:t}).extend(f)))]}])],decls:6,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"]],template:function(t,e){1&t&&(c.TgZ(0,"tui-editor",0),c.ynx(1,1),c._UZ(2,"image-tool",2),c.TgZ(3,"span",3),c._UZ(4,"tui-svg",4),c._uU(5," click it "),c.qZA(),c.BQk(),c.qZA()),2&t&&c.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[v.a,i.JJ,i.oH,T,U.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),t})(),k=(()=>{class t{constructor(){this.example1={HTML:o.e(6969).then(o.t.bind(o,46969,17)),TypeScript:o.e(7170).then(o.t.bind(o,87170,17)),LESS:o.e(3505).then(o.t.bind(o,33505,17)),"image-tool/paste.extension.ts":o.e(6158).then(o.t.bind(o,76158,17)),"image-tool/image-tool.component.ts":o.e(7090).then(o.t.bind(o,77090,17)),"image-tool/image-tool.template.html":o.e(9284).then(o.t.bind(o,59284,17)),"image-tool/image-tool.styles.less":o.e(5988).then(o.t.bind(o,15988,17)),"image-tool/image-tool.module.ts":o.e(3065).then(o.t.bind(o,63065,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=c.Xpm({type:t,selectors:[["editor-emoji-tool"]],features:[c._Bn([{provide:u.Wf,useValue:u.PD}])],decls:31,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-image-tool","heading","Custom image tool",3,"content"],[1,"tui-list","tui-space_bottom-6"],[1,"tui-list__item"],["href","https://tiptap.dev/api/introduction","rel","noreferrer","target","_blank","tuiLink",""],["tuiText",""]],template:function(t,e){1&t&&(c.TgZ(0,"tui-doc-page",0),c.TgZ(1,"p"),c._uU(2," Rich Text Editor based on "),c.TgZ(3,"a",1),c._uU(4," TipTap Editor "),c.qZA(),c._uU(5," for using with Angular forms. For safety reasons use a "),c.TgZ(6,"a",2),c._uU(7," sanitizer "),c.qZA(),c._uU(8," with this component. "),c.qZA(),c.TgZ(9,"tui-doc-example",3),c._uU(10," You can create your own tool: "),c.TgZ(11,"ul",4),c.TgZ(12,"li",5),c._uU(13," Create component with tool button, which can get access to "),c.TgZ(14,"a",6),c._uU(15," original TipTap editor API "),c.qZA(),c._uU(16," via "),c.TgZ(17,"code"),c._uU(18,"TuiTiptapEditorService"),c.qZA(),c._uU(19," from "),c.TgZ(20,"code"),c._uU(21,"@tinkoff/tui-editor"),c.qZA(),c._uU(22," . "),c.qZA(),c.TgZ(23,"li",5),c._uU(24," Pass the component as content projection (with "),c.TgZ(25,"code"),c._uU(26,'ngProjectAs="tools"'),c.qZA(),c._uU(27," ) to "),c._UZ(28,"code",7),c._uU(29," . "),c.qZA(),c.qZA(),c._UZ(30,"tui-editor-paste-image-tool-example-1"),c.qZA(),c.qZA()),2&t&&(c.xp6(9),c.Q6J("content",e.example1))},directives:[p.q,g.V,r.yS,d.f,m.v,C],encapsulation:2,changeDetection:0}),t})();var q=o(6667);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[i.u5,n.ez,a.fNO,q.z$l,a.jhF,s.Ah6,a.dpK]]}),t})(),P=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[n.ez,s.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,l.fV,i.u5,i.UX,u.T_,M,u.GK,r.Bz.forChild((0,l.Ve)(k)),l.Zp]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7573],{77573:(t,e,o)=>{o.r(e),o.d(e,{ExampleTuiEditorPasteImageToolModule:()=>P});var n=o(12057),i=o(24751),r=o(34016),l=o(47029),s=o(42600),a=o(43232),u=o(37195),c=o(74788),p=o(15997),g=o(73460),d=o(42328),m=o(23618),h=o(62463);const f={addProseMirrorPlugins:()=>[new h.Sy({props:{handleDOMEvents:{paste:(t,e)=>{var o,n;const i=null!==(n=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text/plain"))&&void 0!==n?n:"";if(/^https?:\/\/.+\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(i)){const o=t.state.schema.nodes.imageEditor.create({src:i}),n=t.state.tr.replaceSelectionWith(o);setTimeout((()=>t.dispatch(n))),e.preventDefault()}}}}})]};var v=o(8820),w=o(98778),Z=o(16331),b=o(18289),y=o(55788),_=o(36866);const x=["dropdown"];function A(t,e){if(1&t){const t=c.EpF();c.TgZ(0,"div",4),c.TgZ(1,"label",5),c.TgZ(2,"div",6),c._uU(3,"Image URL"),c.qZA(),c.TgZ(4,"div",7),c.TgZ(5,"tui-input-inline",8),c.NdJ("ngModelChange",(function(e){return c.CHM(t),c.oxw().url=e}))("keydown.enter",(function(){c.CHM(t);const e=c.oxw();return e.insertImage(e.url)})),c._uU(6),c.qZA(),c.qZA(),c.qZA(),c.qZA()}if(2&t){const t=e.$implicit,o=c.oxw();c.Q6J("tuiActiveZoneParent",t),c.xp6(5),c.ekj("t-input_filled",o.url),c.Q6J("ngModel",o.url),c.xp6(1),c.hij(" ",o.placeholder," ")}}let T=(()=>{class t{constructor(t){this.editor=t,this.youtubeLogo='',this.placeholder="https://image.com/etc.png",this.url=""}insertImage(t){var e;t&&(this.editor.setImage(t),null===(e=this.dropdown)||void 0===e||e.close())}}return t.ɵfac=function(e){return new(e||t)(c.Y36(u.$3))},t.ɵcmp=c.Xpm({type:t,selectors:[["image-tool"]],viewQuery:function(t,e){if(1&t&&c.Gf(x,5),2&t){let t;c.iGM(t=c.CRH())&&(e.dropdown=t.first)}},decls:5,vars:4,consts:[["tuiDropdownAlign","left",1,"t-wrapper",3,"content"],["dropdown",""],["appearance","flat","automation-id","youtube-tool__button","size","s","tuiIconButton","","type","button",1,"tool-button",3,"focusable","icon","pseudoActive"],["youtubeDropdown",""],[1,"youtube-tool-content",3,"tuiActiveZoneParent"],[1,"t-label"],[1,"t-label-properties"],[1,"t-url"],["tuiAutoFocus","",1,"t-input",3,"ngModel","ngModelChange","keydown.enter"]],template:function(t,e){if(1&t&&(c.TgZ(0,"tui-hosted-dropdown",0,1),c._UZ(2,"button",2),c.YNc(3,A,7,5,"ng-template",null,3,c.W1O),c.qZA()),2&t){const t=c.MAs(1),o=c.MAs(4);c.Q6J("content",o),c.xp6(2),c.Q6J("focusable",t.open)("icon",e.youtubeLogo)("pseudoActive",t.open)}},directives:[w.o,Z.Ek,b.v,y.e,_.l,i.JJ,i.On],styles:[".tool-button[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.tool-button[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.youtube-tool-content[_ngcontent-%COMP%]{display:flex;min-height:4rem;align-items:center;padding-right:.75rem}.t-label[_ngcontent-%COMP%]{height:var(--tui-height-l);box-sizing:border-box;padding:.4375rem 1rem;min-width:12.5rem;max-width:25rem;width:100%}.t-input[_ngcontent-%COMP%]{flex:1;color:var(--tui-text-02)}.t-input_filled[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-url[_ngcontent-%COMP%]{max-width:12.5rem;min-width:12.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"],changeDetection:0}),t})();var U=o(77825);let C=(()=>{class t{constructor(){this.builtInTools=[u._2.Undo],this.control=new i.NI("")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-editor-paste-image-tool-example-1"]],features:[c._Bn([{provide:u.Wf,deps:[c.gxx],useFactory:t=>[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:t})=>t)),Promise.resolve().then(o.bind(o,89681)).then((({tuiCreateImageEditorExtension:e})=>e({injector:t}).extend(f)))]}])],decls:6,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[1,"hint"],["src","tuiIconArrowLeft"]],template:function(t,e){1&t&&(c.TgZ(0,"tui-editor",0),c.ynx(1,1),c._UZ(2,"image-tool",2),c.TgZ(3,"span",3),c._UZ(4,"tui-svg",4),c._uU(5," click it "),c.qZA(),c.BQk(),c.qZA()),2&t&&c.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[v.a,i.JJ,i.oH,T,U.P],styles:[".hint[_ngcontent-%COMP%]{color:var(--tui-base-05);height:100%;display:flex;align-items:center}"],changeDetection:0}),t})(),k=(()=>{class t{constructor(){this.example1={HTML:o.e(6969).then(o.t.bind(o,46969,17)),TypeScript:o.e(7170).then(o.t.bind(o,87170,17)),LESS:o.e(3505).then(o.t.bind(o,33505,17)),"image-tool/paste.extension.ts":o.e(6158).then(o.t.bind(o,76158,17)),"image-tool/image-tool.component.ts":o.e(7090).then(o.t.bind(o,77090,17)),"image-tool/image-tool.template.html":o.e(9284).then(o.t.bind(o,59284,17)),"image-tool/image-tool.styles.less":o.e(5988).then(o.t.bind(o,15988,17)),"image-tool/image-tool.module.ts":o.e(3065).then(o.t.bind(o,63065,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=c.Xpm({type:t,selectors:[["editor-emoji-tool"]],features:[c._Bn([{provide:u.Wf,useValue:u.PD}])],decls:31,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-image-tool","heading","Custom image tool",3,"content"],[1,"tui-list","tui-space_bottom-6"],[1,"tui-list__item"],["href","https://tiptap.dev/api/introduction","rel","noreferrer","target","_blank","tuiLink",""],["tuiText",""]],template:function(t,e){1&t&&(c.TgZ(0,"tui-doc-page",0),c.TgZ(1,"p"),c._uU(2," Rich Text Editor based on "),c.TgZ(3,"a",1),c._uU(4," TipTap Editor "),c.qZA(),c._uU(5," for using with Angular forms. For safety reasons use a "),c.TgZ(6,"a",2),c._uU(7," sanitizer "),c.qZA(),c._uU(8," with this component. "),c.qZA(),c.TgZ(9,"tui-doc-example",3),c._uU(10," You can create your own tool: "),c.TgZ(11,"ul",4),c.TgZ(12,"li",5),c._uU(13," Create component with tool button, which can get access to "),c.TgZ(14,"a",6),c._uU(15," original TipTap editor API "),c.qZA(),c._uU(16," via "),c.TgZ(17,"code"),c._uU(18,"TuiTiptapEditorService"),c.qZA(),c._uU(19," from "),c.TgZ(20,"code"),c._uU(21,"@tinkoff/tui-editor"),c.qZA(),c._uU(22," . "),c.qZA(),c.TgZ(23,"li",5),c._uU(24," Pass the component as content projection (with "),c.TgZ(25,"code"),c._uU(26,'ngProjectAs="tools"'),c.qZA(),c._uU(27," ) to "),c._UZ(28,"code",7),c._uU(29," . "),c.qZA(),c.qZA(),c._UZ(30,"tui-editor-paste-image-tool-example-1"),c.qZA(),c.qZA()),2&t&&(c.xp6(9),c.Q6J("content",e.example1))},directives:[p.q,g.V,r.yS,d.f,m.v,C],encapsulation:2,changeDetection:0}),t})();var q=o(6667);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[i.u5,n.ez,a.fNO,q.z$l,a.jhF,s.Ah6,a.dpK]]}),t})(),P=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({imports:[[n.ez,s.Ah6,a.EIu,a.jzK,a.jhF,a.fNO,l.fV,i.u5,i.UX,u.T_,M,u.GK,r.Bz.forChild((0,l.Ve)(k)),l.Zp]]}),t})()}}]); \ No newline at end of file diff --git a/760.fd2daf2a3e6d2bed9933.js b/760.2228b3436883a77a0991.js similarity index 98% rename from 760.fd2daf2a3e6d2bed9933.js rename to 760.2228b3436883a77a0991.js index 4e088304d..60e1de300 100644 --- a/760.fd2daf2a3e6d2bed9933.js +++ b/760.2228b3436883a77a0991.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[760],{80760:(e,r,o)=>{o.r(r),o.d(r,{ExampleTuiEditorAnchorsModule:()=>m});var n=o(12057),a=o(24751),t=o(34016),i=o(47029),s=o(42600),l=o(43232),p=o(37195),h=o(74788),c=o(15997),d=o(73460),f=o(42328),u=o(8820),w=o(76690);let g=(()=>{class e{constructor(){this.builtInTools=[p._2.Undo,p._2.Img,p._2.Link,p._2.Anchor],this.control=new a.NI('

War and Peace (Russian: Война и мир, romanizedVoyna i mir; pre-reform Russian: Война и миръ; [vɐjˈna i ˈmʲir]) is a literary work by the Russian author Leo Tolstoy that mixes fictional narrative with chapters on history and philosophy. It was first published serially, then published in its entirety in 1869. It is regarded as Tolstoy\'s finest literary achievement and remains an internationally praised classic of world literature.[1][2][3]

The novel chronicles the French invasion of Russia and the impact of the Napoleonic era on Tsarist society through the stories of five Russian aristocratic families. Portions of an earlier version, titled The Year 1805,[4] were serialized in The Russian Messenger from 1865 to 1867 before the novel was published in its entirety in 1869.[5]

Tolstoy said that the best Russian literature does not conform to standards and hence hesitated to classify War and Peace, saying it is "not a novel, even less is it a poem, and still less a historical chronicle". Large sections, especially the later chapters, are philosophical discussions rather than narrative.[6] He regarded Anna Karenina as his first true novel.

References:

  1. Moser, Charles. 1992. Encyclopedia of Russian Literature. Cambridge University Press, pp. 298–300.

  2. Thirlwell, Adam "A masterpiece in miniature". The Guardian (London, UK) October 8, 2005

  3. Briggs, Anthony. 2005. "Introduction" to War and Peace. Penguin Classics.

  4. Pevear, Richard (2008). "Introduction". War and Peace. Trans. Pevear; Volokhonsky, Larissa. New York: Vintage Books. pp. VIII–IX. ISBN 978-1-4000-7998-8.

  5. Knowles, A. V. Leo Tolstoy, Routledge 1997.

  6. "Introduction?". War and Peace. Wordsworth Editions. 1993. ISBN 978-1-85326-062-9. Retrieved 2009-03-24.

')}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=h.Xpm({type:e,selectors:[["tui-editor-anchors-example-1"]],features:[h._Bn([{provide:p.Wf,deps:[h.gxx],useFactory:e=>[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,44632)).then((({default:e})=>e.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(o.bind(o,89681)).then((({createImageEditorExtension:r})=>r(e))),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(o.bind(o,48239)).then((({TuiLink:e})=>e)),o.e(6633).then(o.bind(o,96633)).then((({TuiJumpAnchor:e})=>e))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,r){1&e&&(h._UZ(0,"tui-editor",0),h.TgZ(1,"h4"),h._uU(2,"HTML:"),h.qZA(),h._UZ(3,"tui-editor-socket",1),h.TgZ(4,"h4"),h._uU(5,"Text:"),h.qZA(),h.TgZ(6,"p"),h._uU(7),h.qZA()),2&e&&(h.Q6J("formControl",r.control)("tools",r.builtInTools),h.xp6(3),h.Q6J("content",r.control.value||""),h.xp6(4),h.Oqu(r.control.value))},directives:[u.a,a.JJ,a.oH,w.D],encapsulation:2,changeDetection:0}),e})(),k=(()=>{class e{constructor(){this.example1={TypeScript:o.e(9668).then(o.t.bind(o,79668,17)),HTML:o.e(4941).then(o.t.bind(o,24941,17))}}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=h.Xpm({type:e,selectors:[["editor-anchors"]],features:[h._Bn([{provide:p.Wf,useValue:p.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","anchors","description","The anchor element defines a hyperlink, which is used to link to part of section","heading","Anchors",3,"content"]],template:function(e,r){1&e&&(h.TgZ(0,"tui-doc-page",0),h.TgZ(1,"p"),h._uU(2," Rich Text Editor based on "),h.TgZ(3,"a",1),h._uU(4," TipTap Editor "),h.qZA(),h._uU(5," for using with Angular forms. For safety reasons use a "),h.TgZ(6,"a",2),h._uU(7," sanitizer "),h.qZA(),h._uU(8," with this component. "),h.qZA(),h.TgZ(9,"tui-doc-example",3),h._UZ(10,"tui-editor-anchors-example-1"),h.qZA(),h.qZA()),2&e&&(h.xp6(9),h.Q6J("content",r.example1))},directives:[c.q,d.V,t.yS,f.f,g],encapsulation:2,changeDetection:0}),e})(),m=(()=>{class e{}return e.ɵfac=function(r){return new(r||e)},e.ɵmod=h.oAB({type:e}),e.ɵinj=h.cJS({imports:[[n.ez,s.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,i.fV,a.u5,a.UX,p.T_,p.GK,t.Bz.forChild((0,i.Ve)(k))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[760],{80760:(e,r,o)=>{o.r(r),o.d(r,{ExampleTuiEditorAnchorsModule:()=>m});var n=o(12057),a=o(24751),t=o(34016),i=o(47029),s=o(42600),l=o(43232),p=o(37195),h=o(74788),c=o(15997),d=o(73460),f=o(42328),u=o(8820),w=o(76690);let g=(()=>{class e{constructor(){this.builtInTools=[p._2.Undo,p._2.Img,p._2.Link,p._2.Anchor],this.control=new a.NI('

War and Peace (Russian: Война и мир, romanizedVoyna i mir; pre-reform Russian: Война и миръ; [vɐjˈna i ˈmʲir]) is a literary work by the Russian author Leo Tolstoy that mixes fictional narrative with chapters on history and philosophy. It was first published serially, then published in its entirety in 1869. It is regarded as Tolstoy\'s finest literary achievement and remains an internationally praised classic of world literature.[1][2][3]

The novel chronicles the French invasion of Russia and the impact of the Napoleonic era on Tsarist society through the stories of five Russian aristocratic families. Portions of an earlier version, titled The Year 1805,[4] were serialized in The Russian Messenger from 1865 to 1867 before the novel was published in its entirety in 1869.[5]

Tolstoy said that the best Russian literature does not conform to standards and hence hesitated to classify War and Peace, saying it is "not a novel, even less is it a poem, and still less a historical chronicle". Large sections, especially the later chapters, are philosophical discussions rather than narrative.[6] He regarded Anna Karenina as his first true novel.

References:

  1. Moser, Charles. 1992. Encyclopedia of Russian Literature. Cambridge University Press, pp. 298–300.

  2. Thirlwell, Adam "A masterpiece in miniature". The Guardian (London, UK) October 8, 2005

  3. Briggs, Anthony. 2005. "Introduction" to War and Peace. Penguin Classics.

  4. Pevear, Richard (2008). "Introduction". War and Peace. Trans. Pevear; Volokhonsky, Larissa. New York: Vintage Books. pp. VIII–IX. ISBN 978-1-4000-7998-8.

  5. Knowles, A. V. Leo Tolstoy, Routledge 1997.

  6. "Introduction?". War and Peace. Wordsworth Editions. 1993. ISBN 978-1-85326-062-9. Retrieved 2009-03-24.

')}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=h.Xpm({type:e,selectors:[["tui-editor-anchors-example-1"]],features:[h._Bn([{provide:p.Wf,deps:[h.gxx],useFactory:e=>[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,44632)).then((({default:e})=>e.configure({inline:!0,allowBase64:!0}))),Promise.resolve().then(o.bind(o,89681)).then((({createImageEditorExtension:r})=>r(e))),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(o.bind(o,48239)).then((({TuiLink:e})=>e)),o.e(6633).then(o.bind(o,96633)).then((({TuiJumpAnchor:e})=>e))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,r){1&e&&(h._UZ(0,"tui-editor",0),h.TgZ(1,"h4"),h._uU(2,"HTML:"),h.qZA(),h._UZ(3,"tui-editor-socket",1),h.TgZ(4,"h4"),h._uU(5,"Text:"),h.qZA(),h.TgZ(6,"p"),h._uU(7),h.qZA()),2&e&&(h.Q6J("formControl",r.control)("tools",r.builtInTools),h.xp6(3),h.Q6J("content",r.control.value||""),h.xp6(4),h.Oqu(r.control.value))},directives:[u.a,a.JJ,a.oH,w.D],encapsulation:2,changeDetection:0}),e})(),k=(()=>{class e{constructor(){this.example1={TypeScript:o.e(9668).then(o.t.bind(o,79668,17)),HTML:o.e(4941).then(o.t.bind(o,24941,17))}}}return e.ɵfac=function(r){return new(r||e)},e.ɵcmp=h.Xpm({type:e,selectors:[["editor-anchors"]],features:[h._Bn([{provide:p.Wf,useValue:p.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","anchors","description","The anchor element defines a hyperlink, which is used to link to part of section","heading","Anchors",3,"content"]],template:function(e,r){1&e&&(h.TgZ(0,"tui-doc-page",0),h.TgZ(1,"p"),h._uU(2," Rich Text Editor based on "),h.TgZ(3,"a",1),h._uU(4," TipTap Editor "),h.qZA(),h._uU(5," for using with Angular forms. For safety reasons use a "),h.TgZ(6,"a",2),h._uU(7," sanitizer "),h.qZA(),h._uU(8," with this component. "),h.qZA(),h.TgZ(9,"tui-doc-example",3),h._UZ(10,"tui-editor-anchors-example-1"),h.qZA(),h.qZA()),2&e&&(h.xp6(9),h.Q6J("content",r.example1))},directives:[c.q,d.V,t.yS,f.f,g],encapsulation:2,changeDetection:0}),e})(),m=(()=>{class e{}return e.ɵfac=function(r){return new(r||e)},e.ɵmod=h.oAB({type:e}),e.ɵinj=h.cJS({imports:[[n.ez,s.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,i.fV,a.u5,a.UX,p.T_,p.GK,t.Bz.forChild((0,i.Ve)(k))]]}),e})()}}]); \ No newline at end of file diff --git a/7932.ffca7fc2b02c8bfcfa20.js b/7932.71b25f6a631cfad30444.js similarity index 98% rename from 7932.ffca7fc2b02c8bfcfa20.js rename to 7932.71b25f6a631cfad30444.js index 428f3fdb1..672ac03b7 100644 --- a/7932.ffca7fc2b02c8bfcfa20.js +++ b/7932.71b25f6a631cfad30444.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7932],{47932:(t,e,n)=>{n.r(e),n.d(e,{ExampleTuiEditorFontModule:()=>C});var o=n(12057),i=n(24751),s=n(34016),l=n(47029),a=n(37195),r=n(74788),p=n(15997),c=n(42328),h=n(11046),u=n(8820),d=n(76690);let f=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Size],this.control=new i.NI("\n

This is a 1st level heading

\n

This is a 2nd level heading

\n

This is a 3rd level heading

\n

This is a 4th level heading

\n
This is a 5th level heading
\n
This is a 6th level heading
\n

This is a paragraph

\n ")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-1"]],features:[r._Bn([(0,a.Uv)({fontOptions:()=>[{name:"H1",headingLevel:1,ngClass:"text-h1"},{name:"H2",headingLevel:2,ngClass:"text-h2"},{name:"H3",headingLevel:3,ngClass:"text-h3"},{name:"H4",headingLevel:4,ngClass:"text-h4"},{name:"H5",headingLevel:5,ngClass:"text-h5"},{name:"H6",headingLevel:6,ngClass:"text-h6"}]}),{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,54424)).then((({default:t})=>t.configure({levels:[1,2,3,4,5,6]}).extend({renderHTML({node:t,HTMLAttributes:e}){const n=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return[`h${n}`,(0,h.mergeAttributes)(this.options.HTMLAttributes,e,{class:`${{1:"text-h1",2:"text-h2",3:"text-h3",4:"text-h4",5:"text-h5",6:"text-h6"}[n]}`}),0]}})))]}])],decls:8,vars:4,consts:[[1,"heading",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(r._UZ(0,"tui-editor",0),r.TgZ(1,"h4"),r._uU(2,"HTML:"),r.qZA(),r._UZ(3,"tui-editor-socket",1),r.TgZ(4,"h4"),r._uU(5,"Text:"),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(3),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,d.D],styles:[".text-h1,.text-h2,.text-h3,.text-h4,.text-h5,.text-h6{margin:5px 0}.text-h1,.text-h1[tuiOption]{color:red}.text-h2,.text-h2[tuiOption]{color:#00f}.text-h3,.text-h3[tuiOption]{color:green}.text-h4,.text-h4[tuiOption]{color:gray}.text-h5,.text-h5[tuiOption]{color:pink}.text-h6,.text-h6[tuiOption]{color:#8a2be2}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Size],this.control=new i.NI('\n

96

\n

72

\n

48

\n

36

\n

30

\n

24

\n

18

\n

14

\n

12

\n

11

\n

10

\n

9

\n

8

\n ')}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-2"]],features:[r._Bn([(0,a.Uv)({fontOptions:()=>[8,9,10,11,12,14,18,24,30,36,48,60,72,96].map((t=>({px:t,name:`${t}`,ngStyle:{"font-size":"1rem"}})))}),{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))]}])],decls:8,vars:4,consts:[[1,"heading",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(r._UZ(0,"tui-editor",0),r.TgZ(1,"h4"),r._uU(2,"HTML:"),r.qZA(),r._UZ(3,"tui-editor-socket",1),r.TgZ(4,"h4"),r._uU(5,"Text:"),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(3),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,d.D],encapsulation:2,changeDetection:0}),t})();var g=n(97582),m=n(62579),v=n(42600),z=n(88002),T=n(87519),Z=n(18289),y=n(98778),b=n(22545),_=n(91283);function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",7),r.NdJ("click",(function(){const e=r.CHM(t).$implicit,n=r.oxw(2),o=r.MAs(2);return n.setFontSize(e),o.close()})),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t," ")}}function S(t,e){if(1&t&&(r.TgZ(0,"tui-data-list"),r.YNc(1,A,2,1,"button",6),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.sizes)}}class U{constructor(t,e){this.editor=t,this.win=e,this.sizes=[8,9,10,11,12,14,16,18,24,30],this.size$=this.editor.stateChange$.pipe((0,z.U)((()=>this.fontSize)),(0,T.x)())}setFontSize(t){this.editor.setFontSize(t)}get fontSize(){var t,e;return this.editor.getFontSize()||this.getDefaultFontSize(null===(e=null===(t=this.editor.getOriginTiptapEditor())||void 0===t?void 0:t.view)||void 0===e?void 0:e.dom)||16}increase(){const t=this.currentIndex+1;if(t<=this.sizes.length-1){const e=this.sizes[t];this.setFontSize(e)}}decrease(){const t=this.currentIndex-1;if(t>0){const e=this.sizes[t];this.setFontSize(e)}}get currentIndex(){return this.sizes.indexOf(this.fontSize)}getDefaultFontSize(t){var e;return Number(null===(e=this.win.getComputedStyle(t).getPropertyValue("font-size").match(/\d+/))||void 0===e?void 0:e[0])}}U.ɵfac=function(t){return new(t||U)(r.Y36(a.$3),r.Y36(m.m9))},U.ɵcmp=r.Xpm({type:U,selectors:[["font-size-tool"]],decls:9,vars:4,consts:[["appearance","flat","icon","tuiIconMinus","size","s","tuiIconButton","","type","button",3,"click"],[3,"content"],["fonts",""],["appearance","flat","size","s","tuiButton",""],["fontsDropdown",""],["appearance","flat","icon","tuiIconPlus","size","s","tuiIconButton","","type","button",3,"click"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"button",0),r.NdJ("click",(function(){return e.decrease()})),r.qZA(),r.TgZ(1,"tui-hosted-dropdown",1,2),r.TgZ(3,"button",3),r._uU(4),r.ALo(5,"async"),r.qZA(),r.YNc(6,S,2,1,"ng-template",null,4,r.W1O),r.qZA(),r.TgZ(8,"button",5),r.NdJ("click",(function(){return e.increase()})),r.qZA()),2&t){const t=r.MAs(7);r.xp6(1),r.Q6J("content",t),r.xp6(3),r.hij(" ",r.lcZ(5,2,e.size$)," ")}},directives:[Z.v,y.o,b.q,o.sg,_.v],pipes:[o.Ov],encapsulation:2,changeDetection:0}),(0,g.gn)([v.UMq],U.prototype,"getDefaultFontSize",null);let q=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo],this.control=new i.NI('\n

Hello

\n

Hello world

\n ')}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-3"]],features:[r._Bn([{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,93107)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))]}])],decls:10,vars:4,consts:[[1,"heading",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[3,"content"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-editor",0),r.ynx(1,1),r._UZ(2,"font-size-tool",2),r.BQk(),r.qZA(),r.TgZ(3,"h4"),r._uU(4,"HTML:"),r.qZA(),r._UZ(5,"tui-editor-socket",3),r.TgZ(6,"h4"),r._uU(7,"Text:"),r.qZA(),r.TgZ(8,"p"),r._uU(9),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(5),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,U,d.D],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{constructor(){this.example1={TypeScript:n.e(3346).then(n.t.bind(n,63346,17)),HTML:n.e(1947).then(n.t.bind(n,31947,17)),LESS:n.e(456).then(n.t.bind(n,70456,17))},this.example2={TypeScript:n.e(8889).then(n.t.bind(n,28889,17)),HTML:n.e(9289).then(n.t.bind(n,29289,17))},this.example3={TypeScript:n.e(8954).then(n.t.bind(n,28954,17)),HTML:n.e(8430).then(n.t.bind(n,98430,17)),"font-size-tool/font-size-tool.component.ts":n.e(7410).then(n.t.bind(n,97410,17)),"font-size-tool/font-size-tool.template.html":n.e(2797).then(n.t.bind(n,32797,17)),"font-size-tool/font-size-tool.module.ts":n.e(4417).then(n.t.bind(n,4417,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["editor-font"]],decls:7,vars:3,consts:[["header","Editor","type","components"],["id","font","description","The Heading extension adds support for headings of different levels. Headings are rendered with h1, h2, h3, h4, h5 or h6 HTML tags. By default all six heading levels (or styles) are enabled, but you can pass an array to only allow a few levels. Check the usage example to see how this is done. Type # at the beginning of a new line and it will magically transform to a heading, same for ## , ### , #### , ##### and ######.","heading","Heading",3,"content"],["id","custom-px-size","description","You can use any size for paragraph like in your Google Docs","heading","Font size",3,"content"],["id","custom-size-tool","heading","Custom font size tool",3,"content"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-doc-page",0),r.TgZ(1,"tui-doc-example",1),r._UZ(2,"tui-editor-font-example-1"),r.qZA(),r.TgZ(3,"tui-doc-example",2),r._UZ(4,"tui-editor-font-example-2"),r.qZA(),r.TgZ(5,"tui-doc-example",3),r._UZ(6,"tui-editor-font-example-3"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("content",e.example1),r.xp6(2),r.Q6J("content",e.example2),r.xp6(2),r.Q6J("content",e.example3))},directives:[p.q,c.f,f,x,q],encapsulation:2,changeDetection:0}),t})();var H=n(43232);let J=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[o.ez,H.fNO,H.jhF,H.dpK,H.pcV]]}),t})(),C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[o.ez,l.fV,i.UX,a.T_,a.GK,s.Bz.forChild((0,l.Ve)(w)),J]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[7932],{47932:(t,e,n)=>{n.r(e),n.d(e,{ExampleTuiEditorFontModule:()=>C});var o=n(12057),i=n(24751),s=n(34016),l=n(47029),a=n(37195),r=n(74788),p=n(15997),c=n(42328),h=n(11046),u=n(8820),d=n(76690);let f=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Size],this.control=new i.NI("\n

This is a 1st level heading

\n

This is a 2nd level heading

\n

This is a 3rd level heading

\n

This is a 4th level heading

\n
This is a 5th level heading
\n
This is a 6th level heading
\n

This is a paragraph

\n ")}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-1"]],features:[r._Bn([(0,a.Uv)({fontOptions:()=>[{name:"H1",headingLevel:1,ngClass:"text-h1"},{name:"H2",headingLevel:2,ngClass:"text-h2"},{name:"H3",headingLevel:3,ngClass:"text-h3"},{name:"H4",headingLevel:4,ngClass:"text-h4"},{name:"H5",headingLevel:5,ngClass:"text-h5"},{name:"H6",headingLevel:6,ngClass:"text-h6"}]}),{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,54424)).then((({default:t})=>t.configure({levels:[1,2,3,4,5,6]}).extend({renderHTML({node:t,HTMLAttributes:e}){const n=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return[`h${n}`,(0,h.mergeAttributes)(this.options.HTMLAttributes,e,{class:`${{1:"text-h1",2:"text-h2",3:"text-h3",4:"text-h4",5:"text-h5",6:"text-h6"}[n]}`}),0]}})))]}])],decls:8,vars:4,consts:[[1,"heading",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(r._UZ(0,"tui-editor",0),r.TgZ(1,"h4"),r._uU(2,"HTML:"),r.qZA(),r._UZ(3,"tui-editor-socket",1),r.TgZ(4,"h4"),r._uU(5,"Text:"),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(3),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,d.D],styles:[".text-h1,.text-h2,.text-h3,.text-h4,.text-h5,.text-h6{margin:5px 0}.text-h1,.text-h1[tuiOption]{color:red}.text-h2,.text-h2[tuiOption]{color:#00f}.text-h3,.text-h3[tuiOption]{color:green}.text-h4,.text-h4[tuiOption]{color:gray}.text-h5,.text-h5[tuiOption]{color:pink}.text-h6,.text-h6[tuiOption]{color:#8a2be2}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo,a._2.Size],this.control=new i.NI('\n

96

\n

72

\n

48

\n

36

\n

30

\n

24

\n

18

\n

14

\n

12

\n

11

\n

10

\n

9

\n

8

\n ')}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-2"]],features:[r._Bn([(0,a.Uv)({fontOptions:()=>[8,9,10,11,12,14,18,24,30,36,48,60,72,96].map((t=>({px:t,name:`${t}`,ngStyle:{"font-size":"1rem"}})))}),{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))]}])],decls:8,vars:4,consts:[[1,"heading",3,"formControl","tools"],[3,"content"]],template:function(t,e){1&t&&(r._UZ(0,"tui-editor",0),r.TgZ(1,"h4"),r._uU(2,"HTML:"),r.qZA(),r._UZ(3,"tui-editor-socket",1),r.TgZ(4,"h4"),r._uU(5,"Text:"),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(3),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,d.D],encapsulation:2,changeDetection:0}),t})();var g=n(97582),m=n(62579),v=n(42600),z=n(88002),T=n(87519),Z=n(18289),y=n(98778),b=n(22545),_=n(91283);function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"button",7),r.NdJ("click",(function(){const e=r.CHM(t).$implicit,n=r.oxw(2),o=r.MAs(2);return n.setFontSize(e),o.close()})),r._uU(1),r.qZA()}if(2&t){const t=e.$implicit;r.xp6(1),r.hij(" ",t," ")}}function S(t,e){if(1&t&&(r.TgZ(0,"tui-data-list"),r.YNc(1,A,2,1,"button",6),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.sizes)}}class U{constructor(t,e){this.editor=t,this.win=e,this.sizes=[8,9,10,11,12,14,16,18,24,30],this.size$=this.editor.stateChange$.pipe((0,z.U)((()=>this.fontSize)),(0,T.x)())}setFontSize(t){this.editor.setFontSize(t)}get fontSize(){var t,e;return this.editor.getFontSize()||this.getDefaultFontSize(null===(e=null===(t=this.editor.getOriginTiptapEditor())||void 0===t?void 0:t.view)||void 0===e?void 0:e.dom)||16}increase(){const t=this.currentIndex+1;if(t<=this.sizes.length-1){const e=this.sizes[t];this.setFontSize(e)}}decrease(){const t=this.currentIndex-1;if(t>0){const e=this.sizes[t];this.setFontSize(e)}}get currentIndex(){return this.sizes.indexOf(this.fontSize)}getDefaultFontSize(t){var e;return Number(null===(e=this.win.getComputedStyle(t).getPropertyValue("font-size").match(/\d+/))||void 0===e?void 0:e[0])}}U.ɵfac=function(t){return new(t||U)(r.Y36(a.$3),r.Y36(m.m9))},U.ɵcmp=r.Xpm({type:U,selectors:[["font-size-tool"]],decls:9,vars:4,consts:[["appearance","flat","icon","tuiIconMinus","size","s","tuiIconButton","","type","button",3,"click"],[3,"content"],["fonts",""],["appearance","flat","size","s","tuiButton",""],["fontsDropdown",""],["appearance","flat","icon","tuiIconPlus","size","s","tuiIconButton","","type","button",3,"click"],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"]],template:function(t,e){if(1&t&&(r.TgZ(0,"button",0),r.NdJ("click",(function(){return e.decrease()})),r.qZA(),r.TgZ(1,"tui-hosted-dropdown",1,2),r.TgZ(3,"button",3),r._uU(4),r.ALo(5,"async"),r.qZA(),r.YNc(6,S,2,1,"ng-template",null,4,r.W1O),r.qZA(),r.TgZ(8,"button",5),r.NdJ("click",(function(){return e.increase()})),r.qZA()),2&t){const t=r.MAs(7);r.xp6(1),r.Q6J("content",t),r.xp6(3),r.hij(" ",r.lcZ(5,2,e.size$)," ")}},directives:[Z.v,y.o,b.q,o.sg,_.v],pipes:[o.Ov],encapsulation:2,changeDetection:0}),(0,g.gn)([v.UMq],U.prototype,"getDefaultFontSize",null);let q=(()=>{class t{constructor(){this.builtInTools=[a._2.Undo],this.control=new i.NI('\n

Hello

\n

Hello world

\n ')}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-editor-font-example-3"]],features:[r._Bn([{provide:a.Wf,useValue:[Promise.resolve().then(n.bind(n,28730)).then((({StarterKit:t})=>t)),Promise.resolve().then(n.bind(n,84402)).then((({default:t})=>t)),Promise.resolve().then(n.bind(n,1604)).then((({TuiFontSize:t})=>t))]}])],decls:10,vars:4,consts:[[1,"heading",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["tuiItem",""],[3,"content"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-editor",0),r.ynx(1,1),r._UZ(2,"font-size-tool",2),r.BQk(),r.qZA(),r.TgZ(3,"h4"),r._uU(4,"HTML:"),r.qZA(),r._UZ(5,"tui-editor-socket",3),r.TgZ(6,"h4"),r._uU(7,"Text:"),r.qZA(),r.TgZ(8,"p"),r._uU(9),r.qZA()),2&t&&(r.Q6J("formControl",e.control)("tools",e.builtInTools),r.xp6(5),r.Q6J("content",e.control.value||""),r.xp6(4),r.Oqu(e.control.value))},directives:[u.a,i.JJ,i.oH,U,d.D],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{constructor(){this.example1={TypeScript:n.e(3346).then(n.t.bind(n,63346,17)),HTML:n.e(1947).then(n.t.bind(n,31947,17)),LESS:n.e(456).then(n.t.bind(n,70456,17))},this.example2={TypeScript:n.e(8889).then(n.t.bind(n,28889,17)),HTML:n.e(9289).then(n.t.bind(n,29289,17))},this.example3={TypeScript:n.e(8954).then(n.t.bind(n,28954,17)),HTML:n.e(8430).then(n.t.bind(n,98430,17)),"font-size-tool/font-size-tool.component.ts":n.e(7410).then(n.t.bind(n,97410,17)),"font-size-tool/font-size-tool.template.html":n.e(2797).then(n.t.bind(n,32797,17)),"font-size-tool/font-size-tool.module.ts":n.e(4417).then(n.t.bind(n,4417,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["editor-font"]],decls:7,vars:3,consts:[["header","Editor","type","components"],["id","font","description","The Heading extension adds support for headings of different levels. Headings are rendered with h1, h2, h3, h4, h5 or h6 HTML tags. By default all six heading levels (or styles) are enabled, but you can pass an array to only allow a few levels. Check the usage example to see how this is done. Type # at the beginning of a new line and it will magically transform to a heading, same for ## , ### , #### , ##### and ######.","heading","Heading",3,"content"],["id","custom-px-size","description","You can use any size for paragraph like in your Google Docs","heading","Font size",3,"content"],["id","custom-size-tool","heading","Custom font size tool",3,"content"]],template:function(t,e){1&t&&(r.TgZ(0,"tui-doc-page",0),r.TgZ(1,"tui-doc-example",1),r._UZ(2,"tui-editor-font-example-1"),r.qZA(),r.TgZ(3,"tui-doc-example",2),r._UZ(4,"tui-editor-font-example-2"),r.qZA(),r.TgZ(5,"tui-doc-example",3),r._UZ(6,"tui-editor-font-example-3"),r.qZA(),r.qZA()),2&t&&(r.xp6(1),r.Q6J("content",e.example1),r.xp6(2),r.Q6J("content",e.example2),r.xp6(2),r.Q6J("content",e.example3))},directives:[p.q,c.f,f,x,q],encapsulation:2,changeDetection:0}),t})();var H=n(43232);let J=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[o.ez,H.fNO,H.jhF,H.dpK,H.pcV]]}),t})(),C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[o.ez,l.fV,i.UX,a.T_,a.GK,s.Bz.forChild((0,l.Ve)(w)),J]]}),t})()}}]); \ No newline at end of file diff --git a/8033.05ce73d2071bfa6e46d0.js b/8033.6904fac6e80c5e56834d.js similarity index 97% rename from 8033.05ce73d2071bfa6e46d0.js rename to 8033.6904fac6e80c5e56834d.js index ad4f73f96..3235e49c9 100644 --- a/8033.05ce73d2071bfa6e46d0.js +++ b/8033.6904fac6e80c5e56834d.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8033],{8033:(e,t,o)=>{o.r(t),o.d(t,{ExampleTuiEditorGroupsModule:()=>Z});var r=o(12057),n=o(24751),i=o(34016),a=o(47029),p=o(42600),s=o(43232),u=o(37195),d=o(74788),l=o(15997),c=o(73460),h=o(42328),g=o(8820),m=o(76690);let v=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another draggable paragraph.

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-1"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:e})=>e)),o.e(295).then(o.bind(o,30295)).then((({Placeholder:e})=>e.configure({emptyNodeClass:"t-editor-placeholder",placeholder:"Type '/' for command",includeChildren:!0}))),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({nested:!1,createOnEnter:!0})))]}])],decls:8,vars:4,consts:[[1,"notion-editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],encapsulation:2,changeDetection:0}),e})(),f=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group,u._2.Hilite],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another paragraph.

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-2"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({nested:!1,draggable:!1,createOnEnter:!0,groupNodeClass:"filled-group",groupPointerNodeClass:""}))),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(o.bind(o,44)).then((({BackgroundColor:e})=>e))]}])],decls:8,vars:4,consts:[[1,"my-editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],styles:["[_nghost-%COMP%] tui-editor-socket [data-type=group]{flex-direction:column;padding:.5rem;margin:.5rem 0;border:1px solid var(--tui-base-04)}"],changeDetection:0}),e})(),b=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another paragraph.

And a nested paragraph.

But can we go deeper?

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-3"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({draggable:!1,groupNodeClass:"group",groupPointerNodeClass:""})))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],styles:[".editor[_ngcontent-%COMP%]{min-height:30rem}.editor[_ngcontent-%COMP%] .group{position:relative;display:flex;flex-direction:column;padding:.5rem;margin:.5rem 0;border-radius:.5rem;border:1px solid var(--tui-base-04)}"],changeDetection:0}),e})(),T=(()=>{class e{constructor(){this.example1={TypeScript:o.e(1197).then(o.t.bind(o,41197,17)),HTML:o.e(7207).then(o.t.bind(o,87207,17))},this.example2={TypeScript:o.e(7289).then(o.t.bind(o,97289,17)),HTML:o.e(5991).then(o.t.bind(o,35991,17)),LESS:o.e(5935).then(o.t.bind(o,95935,17))},this.example3={TypeScript:o.e(5499).then(o.t.bind(o,25499,17)),HTML:o.e(7880).then(o.t.bind(o,67880,17)),LESS:o.e(7904).then(o.t.bind(o,87904,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-groups"]],features:[d._Bn([{provide:u.Wf,useValue:u.PD}])],decls:15,vars:3,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","draggable-groups","heading","Draggable groups the looks like in Notion",3,"content"],["id","hilite-groups","heading","Hilite groups",3,"content"],["id","nested-groups","heading","Simple create nested groups",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-groups-example-1"),d.qZA(),d.TgZ(11,"tui-doc-example",4),d._UZ(12,"tui-editor-groups-example-2"),d.qZA(),d.TgZ(13,"tui-doc-example",5),d._UZ(14,"tui-editor-groups-example-3"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1),d.xp6(2),d.Q6J("content",t.example2),d.xp6(2),d.Q6J("content",t.example3))},directives:[l.q,c.V,i.yS,h.f,v,f,b],encapsulation:2,changeDetection:0}),e})(),Z=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[r.ez,p.Ah6,s.EIu,s.jzK,s.jhF,s.fNO,a.fV,n.u5,n.UX,u.T_,u.GK,i.Bz.forChild((0,a.Ve)(T))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8033],{8033:(e,t,o)=>{o.r(t),o.d(t,{ExampleTuiEditorGroupsModule:()=>Z});var r=o(12057),n=o(24751),i=o(34016),a=o(47029),p=o(42600),s=o(43232),u=o(37195),d=o(74788),l=o(15997),c=o(73460),h=o(42328),g=o(8820),m=o(76690);let v=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another draggable paragraph.

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-1"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:e})=>e)),o.e(295).then(o.bind(o,30295)).then((({Placeholder:e})=>e.configure({emptyNodeClass:"t-editor-placeholder",placeholder:"Type '/' for command",includeChildren:!0}))),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({nested:!1,createOnEnter:!0})))]}])],decls:8,vars:4,consts:[[1,"notion-editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],encapsulation:2,changeDetection:0}),e})(),f=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group,u._2.Hilite],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another paragraph.

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-2"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({nested:!1,draggable:!1,createOnEnter:!0,groupNodeClass:"filled-group",groupPointerNodeClass:""}))),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(o.bind(o,44)).then((({BackgroundColor:e})=>e))]}])],decls:8,vars:4,consts:[[1,"my-editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],styles:["[_nghost-%COMP%] tui-editor-socket [data-type=group]{flex-direction:column;padding:.5rem;margin:.5rem 0;border:1px solid var(--tui-base-04)}"],changeDetection:0}),e})(),b=(()=>{class e{constructor(){this.builtInTools=[u._2.Undo,u._2.Group],this.control=new n.NI(""),this.control.patchValue('

This is a boring paragraph.

And another paragraph.

And a nested paragraph.

But can we go deeper?

Let’s finish with a boring paragraph.

')}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["tui-editor-groups-example-3"]],features:[d._Bn([p.a31,{provide:u.Wf,useValue:[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(o.bind(o,19818)).then((({createGroupExtension:e})=>e({draggable:!1,groupNodeClass:"group",groupPointerNodeClass:""})))]}])],decls:8,vars:4,consts:[[1,"editor",3,"formControl","tools"],[3,"content"]],template:function(e,t){1&e&&(d._UZ(0,"tui-editor",0),d.TgZ(1,"h4"),d._uU(2,"HTML:"),d.qZA(),d._UZ(3,"tui-editor-socket",1),d.TgZ(4,"h4"),d._uU(5,"Text:"),d.qZA(),d.TgZ(6,"p"),d._uU(7),d.qZA()),2&e&&(d.Q6J("formControl",t.control)("tools",t.builtInTools),d.xp6(3),d.Q6J("content",t.control.value||""),d.xp6(4),d.Oqu(t.control.value))},directives:[g.a,n.JJ,n.oH,m.D],styles:[".editor[_ngcontent-%COMP%]{min-height:30rem}.editor[_ngcontent-%COMP%] .group{position:relative;display:flex;flex-direction:column;padding:.5rem;margin:.5rem 0;border-radius:.5rem;border:1px solid var(--tui-base-04)}"],changeDetection:0}),e})(),T=(()=>{class e{constructor(){this.example1={TypeScript:o.e(1197).then(o.t.bind(o,41197,17)),HTML:o.e(7207).then(o.t.bind(o,87207,17))},this.example2={TypeScript:o.e(7289).then(o.t.bind(o,97289,17)),HTML:o.e(5991).then(o.t.bind(o,35991,17)),LESS:o.e(5935).then(o.t.bind(o,95935,17))},this.example3={TypeScript:o.e(5499).then(o.t.bind(o,25499,17)),HTML:o.e(7880).then(o.t.bind(o,67880,17)),LESS:o.e(7904).then(o.t.bind(o,87904,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=d.Xpm({type:e,selectors:[["editor-groups"]],features:[d._Bn([{provide:u.Wf,useValue:u.PD}])],decls:15,vars:3,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","draggable-groups","heading","Draggable groups the looks like in Notion",3,"content"],["id","hilite-groups","heading","Hilite groups",3,"content"],["id","nested-groups","heading","Simple create nested groups",3,"content"]],template:function(e,t){1&e&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"p"),d._uU(2," Rich Text Editor based on "),d.TgZ(3,"a",1),d._uU(4," TipTap Editor "),d.qZA(),d._uU(5," for using with Angular forms. For safety reasons use a "),d.TgZ(6,"a",2),d._uU(7," sanitizer "),d.qZA(),d._uU(8," with this component. "),d.qZA(),d.TgZ(9,"tui-doc-example",3),d._UZ(10,"tui-editor-groups-example-1"),d.qZA(),d.TgZ(11,"tui-doc-example",4),d._UZ(12,"tui-editor-groups-example-2"),d.qZA(),d.TgZ(13,"tui-doc-example",5),d._UZ(14,"tui-editor-groups-example-3"),d.qZA(),d.qZA()),2&e&&(d.xp6(9),d.Q6J("content",t.example1),d.xp6(2),d.Q6J("content",t.example2),d.xp6(2),d.Q6J("content",t.example3))},directives:[l.q,c.V,i.yS,h.f,v,f,b],encapsulation:2,changeDetection:0}),e})(),Z=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=d.oAB({type:e}),e.ɵinj=d.cJS({imports:[[r.ez,p.Ah6,s.EIu,s.jzK,s.jhF,s.fNO,a.fV,n.u5,n.UX,u.T_,u.GK,i.Bz.forChild((0,a.Ve)(T))]]}),e})()}}]); \ No newline at end of file diff --git a/8490.f368ca2b90f62004d408.js b/8490.f6500ba7e93662185b4f.js similarity index 98% rename from 8490.f368ca2b90f62004d408.js rename to 8490.f6500ba7e93662185b4f.js index 130470149..5e4b25285 100644 --- a/8490.f368ca2b90f62004d408.js +++ b/8490.f6500ba7e93662185b4f.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8490],{98490:(o,t,e)=>{e.r(t),e.d(t,{ExampleTuiEditorColorPickerToolModule:()=>M});var n=e(12057),i=e(24751),r=e(34016),c=e(47029),s=e(43232),l=e(37195),a=e(74788),u=e(15997),p=e(73460),d=e(42328),h=e(8820),m=e(88002),g=e(87519),f=e(9945),k=e(98778),b=e(16331),C=e(18289),v=e(58333),w=e(55788);function _(o,t){if(1&o){const o=a.EpF();a.TgZ(0,"tui-color-selector",5),a.NdJ("colorChange",(function(t){return a.CHM(o),a.oxw().onValueChange(t)})),a.qZA(),a.TgZ(1,"button",6),a.NdJ("click",(function(){return a.CHM(o),a.oxw().setColor()})),a._uU(2," Use color "),a.qZA()}if(2&o){const o=t.$implicit,e=a.oxw();a.Q6J("color",e.selectedColor)("colors",e.colors)("tuiActiveZoneParent",o)}}let Z=(()=>{class o{constructor(o,t){this.defaultOptions=o,this.editor=t,this.colors=this.defaultOptions.colors,this.selectedColor="",this.fontColor$=this.editor.stateChange$.pipe((0,m.U)((()=>{var o,t;return this.editor.getOriginTiptapEditor().isFocused&&(null===(t=(o=this.editor)[`get${this.type}`])||void 0===t?void 0:t.call(o))||"transparent"})),(0,g.x)(),(0,f.B)())}onValueChange(o){this.selectedColor=o}setColor(){var o,t;null===(t=(o=this.editor)[`set${this.type}`])||void 0===t||t.call(o,this.selectedColor)}}return o.ɵfac=function(t){return new(t||o)(a.Y36(l.mJ),a.Y36(l.$3))},o.ɵcmp=a.Xpm({type:o,selectors:[["custom-color-picker"]],inputs:{colors:"colors",icon:"icon",type:"type"},decls:7,vars:8,consts:[[3,"content","tuiDropdownMaxHeight"],["color",""],["appearance","icon","automation-id","toolbar__color-button","size","s","tuiIconButton","","type","button",3,"focusable","icon"],[1,"t-plate"],["colorDropdown",""],[3,"color","colors","tuiActiveZoneParent","colorChange"],["appearance","flat","size","m","tuiButton","","type","button",1,"t-color-save",3,"click"]],template:function(o,t){if(1&o&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.TgZ(3,"div",3),a.ALo(4,"async"),a.qZA(),a.YNc(5,_,3,3,"ng-template",null,4,a.W1O),a.qZA()),2&o){const o=a.MAs(1),e=a.MAs(6);a.Q6J("content",e)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",o.open)("icon",t.icon),a.xp6(1),a.Udp("background",a.lcZ(4,6,t.fontColor$))}},directives:[k.o,b.Ek,C.v,v.s,w.e],pipes:[n.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}[_nghost-%COMP%]{position:relative}.t-color-save[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;bottom:0;width:100%;box-shadow:inset 0 1px var(--tui-base-03);background:var(--tui-base-01)}"],changeDetection:0}),o})(),y=(()=>{class o{constructor(){this.builtInTools=[l._2.Undo],this.control=new i.NI("")}}return o.ɵfac=function(t){return new(t||o)},o.ɵcmp=a.Xpm({type:o,selectors:[["tui-editor-color-picker-tool-example-1"]],features:[a._Bn([{provide:l.Wf,useValue:[Promise.resolve().then(e.bind(e,93107)).then((({StarterKit:o})=>o)),Promise.resolve().then(e.bind(e,84402)).then((({default:o})=>o)),Promise.resolve().then(e.bind(e,30163)).then((({FontColor:o})=>o)),Promise.resolve().then(e.bind(e,44)).then((({BackgroundColor:o})=>o))]}])],decls:4,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["icon","tuiIconColorLarge","type","FontColor"],["icon","tuiIconHiliteLarge","type","BackgroundColor"]],template:function(o,t){1&o&&(a.TgZ(0,"tui-editor",0),a.ynx(1,1),a._UZ(2,"custom-color-picker",2),a._UZ(3,"custom-color-picker",3),a.BQk(),a.qZA()),2&o&&a.Q6J("formControl",t.control)("tools",t.builtInTools)},directives:[h.a,i.JJ,i.oH,Z],encapsulation:2,changeDetection:0}),o})(),x=(()=>{class o{constructor(){this.example1={HTML:e.e(4529).then(e.t.bind(e,4529,17)),TypeScript:e.e(3979).then(e.t.bind(e,33979,17)),"./custom-color-picker/custom-color-picker.component.ts":e.e(9544).then(e.t.bind(e,79544,17)),"./custom-color-picker/custom-color-picker.component.less":e.e(4992).then(e.t.bind(e,74992,17)),"./custom-color-picker/custom-color-picker.component.html":e.e(5901).then(e.t.bind(e,75901,17)),"./custom-color-picker/custom-color-picker.module.ts":e.e(6549).then(e.t.bind(e,56549,17))}}}return o.ɵfac=function(t){return new(t||o)},o.ɵcmp=a.Xpm({type:o,selectors:[["editor-color-picker-tool"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-tool","heading","Custom color picker tools",3,"content"]],template:function(o,t){1&o&&(a.TgZ(0,"tui-doc-page",0),a.TgZ(1,"p"),a._uU(2," Rich Text Editor based on "),a.TgZ(3,"a",1),a._uU(4," TipTap Editor "),a.qZA(),a._uU(5," for using with Angular forms. For safety reasons use a "),a.TgZ(6,"a",2),a._uU(7," sanitizer "),a.qZA(),a._uU(8," with this component. "),a.qZA(),a.TgZ(9,"tui-doc-example",3),a._UZ(10,"tui-editor-color-picker-tool-example-1"),a.qZA(),a.qZA()),2&o&&(a.xp6(9),a.Q6J("content",t.example1))},directives:[u.q,p.V,r.yS,d.f,y],encapsulation:2,changeDetection:0}),o})();var T=e(42600);let A=(()=>{class o{}return o.ɵfac=function(t){return new(t||o)},o.ɵmod=a.oAB({type:o}),o.ɵinj=a.cJS({imports:[[n.ez,s.fNO,s.jhF,s.dpK,s.goS,l.VM,T.Ah6,T.WDk,l.H9,l.wl]]}),o})(),M=(()=>{class o{}return o.ɵfac=function(t){return new(t||o)},o.ɵmod=a.oAB({type:o}),o.ɵinj=a.cJS({imports:[[n.ez,s.jzK,s.fNO,c.fV,i.UX,l.T_,l.GK,A,r.Bz.forChild((0,c.Ve)(x))]]}),o})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8490],{98490:(o,t,e)=>{e.r(t),e.d(t,{ExampleTuiEditorColorPickerToolModule:()=>M});var n=e(12057),i=e(24751),r=e(34016),c=e(47029),s=e(43232),l=e(37195),a=e(74788),u=e(15997),p=e(73460),d=e(42328),h=e(8820),m=e(88002),g=e(87519),f=e(9945),k=e(98778),b=e(16331),C=e(18289),v=e(58333),w=e(55788);function _(o,t){if(1&o){const o=a.EpF();a.TgZ(0,"tui-color-selector",5),a.NdJ("colorChange",(function(t){return a.CHM(o),a.oxw().onValueChange(t)})),a.qZA(),a.TgZ(1,"button",6),a.NdJ("click",(function(){return a.CHM(o),a.oxw().setColor()})),a._uU(2," Use color "),a.qZA()}if(2&o){const o=t.$implicit,e=a.oxw();a.Q6J("color",e.selectedColor)("colors",e.colors)("tuiActiveZoneParent",o)}}let Z=(()=>{class o{constructor(o,t){this.defaultOptions=o,this.editor=t,this.colors=this.defaultOptions.colors,this.selectedColor="",this.fontColor$=this.editor.stateChange$.pipe((0,m.U)((()=>{var o,t;return this.editor.getOriginTiptapEditor().isFocused&&(null===(t=(o=this.editor)[`get${this.type}`])||void 0===t?void 0:t.call(o))||"transparent"})),(0,g.x)(),(0,f.B)())}onValueChange(o){this.selectedColor=o}setColor(){var o,t;null===(t=(o=this.editor)[`set${this.type}`])||void 0===t||t.call(o,this.selectedColor)}}return o.ɵfac=function(t){return new(t||o)(a.Y36(l.mJ),a.Y36(l.$3))},o.ɵcmp=a.Xpm({type:o,selectors:[["custom-color-picker"]],inputs:{colors:"colors",icon:"icon",type:"type"},decls:7,vars:8,consts:[[3,"content","tuiDropdownMaxHeight"],["color",""],["appearance","icon","automation-id","toolbar__color-button","size","s","tuiIconButton","","type","button",3,"focusable","icon"],[1,"t-plate"],["colorDropdown",""],[3,"color","colors","tuiActiveZoneParent","colorChange"],["appearance","flat","size","m","tuiButton","","type","button",1,"t-color-save",3,"click"]],template:function(o,t){if(1&o&&(a.TgZ(0,"tui-hosted-dropdown",0,1),a._UZ(2,"button",2),a.TgZ(3,"div",3),a.ALo(4,"async"),a.qZA(),a.YNc(5,_,3,3,"ng-template",null,4,a.W1O),a.qZA()),2&o){const o=a.MAs(1),e=a.MAs(6);a.Q6J("content",e)("tuiDropdownMaxHeight",999),a.xp6(2),a.Q6J("focusable",o.open)("icon",t.icon),a.xp6(1),a.Udp("background",a.lcZ(4,6,t.fontColor$))}},directives:[k.o,b.Ek,C.v,v.s,w.e],pipes:[n.Ov],styles:[".t-dropdown[_ngcontent-%COMP%]{padding:.75rem}.t-option[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-option[_ngcontent-%COMP%]:hover{background:var(--tui-secondary-hover)}.t-option_margin[_ngcontent-%COMP%]{margin:0 .25rem}.t-plate[_ngcontent-%COMP%]{position:absolute;top:1.375rem;left:.25rem;width:1.5rem;height:.25rem;pointer-events:none}.t-plate_paint[_ngcontent-%COMP%]{left:.375rem;width:1.25rem}.t-color-picker[_ngcontent-%COMP%]{box-sizing:border-box;max-width:22.6rem}[_nghost-%COMP%]{position:relative}.t-color-save[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;bottom:0;width:100%;box-shadow:inset 0 1px var(--tui-base-03);background:var(--tui-base-01)}"],changeDetection:0}),o})(),y=(()=>{class o{constructor(){this.builtInTools=[l._2.Undo],this.control=new i.NI("")}}return o.ɵfac=function(t){return new(t||o)},o.ɵcmp=a.Xpm({type:o,selectors:[["tui-editor-color-picker-tool-example-1"]],features:[a._Bn([{provide:l.Wf,useValue:[Promise.resolve().then(e.bind(e,28730)).then((({StarterKit:o})=>o)),Promise.resolve().then(e.bind(e,84402)).then((({default:o})=>o)),Promise.resolve().then(e.bind(e,30163)).then((({FontColor:o})=>o)),Promise.resolve().then(e.bind(e,44)).then((({BackgroundColor:o})=>o))]}])],decls:4,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["icon","tuiIconColorLarge","type","FontColor"],["icon","tuiIconHiliteLarge","type","BackgroundColor"]],template:function(o,t){1&o&&(a.TgZ(0,"tui-editor",0),a.ynx(1,1),a._UZ(2,"custom-color-picker",2),a._UZ(3,"custom-color-picker",3),a.BQk(),a.qZA()),2&o&&a.Q6J("formControl",t.control)("tools",t.builtInTools)},directives:[h.a,i.JJ,i.oH,Z],encapsulation:2,changeDetection:0}),o})(),x=(()=>{class o{constructor(){this.example1={HTML:e.e(4529).then(e.t.bind(e,4529,17)),TypeScript:e.e(3979).then(e.t.bind(e,33979,17)),"./custom-color-picker/custom-color-picker.component.ts":e.e(9544).then(e.t.bind(e,79544,17)),"./custom-color-picker/custom-color-picker.component.less":e.e(4992).then(e.t.bind(e,74992,17)),"./custom-color-picker/custom-color-picker.component.html":e.e(5901).then(e.t.bind(e,75901,17)),"./custom-color-picker/custom-color-picker.module.ts":e.e(6549).then(e.t.bind(e,56549,17))}}}return o.ɵfac=function(t){return new(t||o)},o.ɵcmp=a.Xpm({type:o,selectors:[["editor-color-picker-tool"]],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","custom-tool","heading","Custom color picker tools",3,"content"]],template:function(o,t){1&o&&(a.TgZ(0,"tui-doc-page",0),a.TgZ(1,"p"),a._uU(2," Rich Text Editor based on "),a.TgZ(3,"a",1),a._uU(4," TipTap Editor "),a.qZA(),a._uU(5," for using with Angular forms. For safety reasons use a "),a.TgZ(6,"a",2),a._uU(7," sanitizer "),a.qZA(),a._uU(8," with this component. "),a.qZA(),a.TgZ(9,"tui-doc-example",3),a._UZ(10,"tui-editor-color-picker-tool-example-1"),a.qZA(),a.qZA()),2&o&&(a.xp6(9),a.Q6J("content",t.example1))},directives:[u.q,p.V,r.yS,d.f,y],encapsulation:2,changeDetection:0}),o})();var T=e(42600);let A=(()=>{class o{}return o.ɵfac=function(t){return new(t||o)},o.ɵmod=a.oAB({type:o}),o.ɵinj=a.cJS({imports:[[n.ez,s.fNO,s.jhF,s.dpK,s.goS,l.VM,T.Ah6,T.WDk,l.H9,l.wl]]}),o})(),M=(()=>{class o{}return o.ɵfac=function(t){return new(t||o)},o.ɵmod=a.oAB({type:o}),o.ɵinj=a.cJS({imports:[[n.ez,s.jzK,s.fNO,c.fV,i.UX,l.T_,l.GK,A,r.Bz.forChild((0,c.Ve)(x))]]}),o})()}}]); \ No newline at end of file diff --git a/8669.66a53d12839d04af0736.js b/8669.905d89a2883b92d10ffa.js similarity index 97% rename from 8669.66a53d12839d04af0736.js rename to 8669.905d89a2883b92d10ffa.js index 0bea47c4c..2f8b1c636 100644 --- a/8669.66a53d12839d04af0736.js +++ b/8669.905d89a2883b92d10ffa.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8669],{78669:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorUploadImagesModule:()=>_});var o=i(12057),r=i(24751),n=i(34016),a=i(47029),s=i(42600),u=i(43232),d=i(6667),c=i(37195),l=i(74788),p=i(15997),g=i(73460),m=i(42328),h=i(22759),v=i(87874),f=i(88002),b=i(43190),L=i(68939);function T(e){return t=>{const i=new FileReader;return e.loading$.next(!0),i.readAsDataURL(t),(0,h.R)(i,"load").pipe((0,v.g)(2e3),(0,f.U)((()=>String(i.result))),(0,b.w)((t=>e.save(t))),(0,L.x)((()=>e.loading$.next(!1))))}}var Z=i(97582),y=i(26215),w=i(97968);let I=(()=>{class e{constructor(){this.loading$=new y.X(!1)}static createBody(e){const t=new FormData;return t.append("image",e.split(",").pop()||""),new URLSearchParams(t)}get isLoading(){return this.loading$.getValue()}save(t){return(0,w.D)(fetch("https://api.imgbb.com/1/upload?key=3c1615980dcf693b282c4b0fb608b28a&expiration=300",{method:"POST",body:e.createBody(t),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>(0,Z.mG)(this,void 0,void 0,(function*(){return e.json()}))))).pipe((0,f.U)((e=>e.data.url)))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=l.Yz7({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var x=i(57634),j=i(8820),A=i(66161),M=i(24956),S=i(76690),N=i(18569);const D=function(){return[]};let U=(()=>{class e{constructor(e,t,i){this.doc=e,this.imgbbService=t,this.isStackblitz=i,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[c._2.Undo,c._2.Img],this.control=new r.NI(""),this.validator=({value:e})=>{var t;return(null===(t=this.editor)||void 0===t?void 0:t.focused)||this.imgbbService.isLoading||!this.doc.hasFocus()||e.length?null:{empty:new s.T8v("ERROR: content must not be empty")}},this.control.patchValue(`\n \n

Try to drag right border of image!

\n

To change min/max size of image use token TUI_IMAGE_EDITOR_OPTIONS.

\n `)}}return e.ɵfac=function(t){return new(t||e)(l.Y36(o.K0),l.Y36(I),l.Y36(s.SgE))},e.ɵcmp=l.Xpm({type:e,selectors:[["tui-editor-upload-images-example-1"]],viewQuery:function(e,t){if(1&e&&l.Gf(c.aI,7),2&e){let e;l.iGM(e=l.CRH())&&(t.editor=e.first)}},features:[l._Bn([s.a31,{provide:c.Wf,deps:[l.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({createImageEditorExtension:t})=>t(e))),Promise.resolve().then(i.bind(i,44632)).then((({default:e})=>e.configure({inline:!0,allowBase64:!0})))]},{provide:c.kB,useValue:150},{provide:c.VE,useValue:400},{provide:c.p7,useFactory:T,deps:[I]}])],decls:13,vars:16,consts:[[3,"overlay","showLoader"],[1,"editor",3,"formControl","tools","tuiValidator"],[3,"error","formControl"],[3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-loader",0),l.ALo(1,"async"),l._UZ(2,"tui-editor",1),l.qZA(),l._UZ(3,"tui-error",2),l.ALo(4,"async"),l.ALo(5,"tuiFieldError"),l.TgZ(6,"h4"),l._uU(7,"HTML:"),l.qZA(),l._UZ(8,"tui-editor-socket",3),l.TgZ(9,"h4"),l._uU(10,"Text:"),l.qZA(),l.TgZ(11,"p"),l._uU(12),l.qZA()),2&e&&(l.Q6J("overlay",!0)("showLoader",!!l.lcZ(1,9,t.imgbbService.loading$)),l.xp6(2),l.Q6J("formControl",t.control)("tools",t.builtInTools)("tuiValidator",t.validator),l.xp6(1),l.Q6J("error",l.lcZ(4,11,l.lcZ(5,13,l.DdM(15,D))))("formControl",t.control),l.xp6(5),l.Q6J("content",t.control.value||""),l.xp6(4),l.Oqu(t.control.value))},directives:[x.k,j.a,r.JJ,r.oH,A.W,M.v,S.D],pipes:[o.Ov,N.A],encapsulation:2,changeDetection:0}),e})(),z=(()=>{class e{constructor(){this.example1={TypeScript:i.e(585).then(i.t.bind(i,30585,17)),HTML:i.e(6042).then(i.t.bind(i,46036,17)),"image-loader.ts":i.e(5227).then(i.t.bind(i,5227,17)),"imgbb.service.ts":i.e(1646).then(i.t.bind(i,61646,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=l.Xpm({type:e,selectors:[["editor-upload-images"]],features:[l._Bn([{provide:c.Wf,useValue:c.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","upload-images","heading","Upload images to a web server",3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._UZ(10,"tui-editor-upload-images-example-1"),l.qZA(),l.qZA()),2&e&&(l.xp6(9),l.Q6J("content",t.example1))},directives:[p.q,g.V,n.yS,m.f,U],encapsulation:2,changeDetection:0}),e})(),_=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.oAB({type:e}),e.ɵinj=l.cJS({imports:[[o.ez,s.Ah6,u.EIu,u.jzK,u.jhF,u.fNO,a.fV,r.u5,r.UX,c.T_,u.dSp,c.GK,u.Shu,d.YuV,n.Bz.forChild((0,a.Ve)(z)),s.op3]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8669],{78669:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorUploadImagesModule:()=>_});var o=i(12057),r=i(24751),n=i(34016),a=i(47029),s=i(42600),u=i(43232),d=i(6667),c=i(37195),l=i(74788),p=i(15997),g=i(73460),m=i(42328),h=i(22759),v=i(87874),f=i(88002),b=i(43190),L=i(68939);function T(e){return t=>{const i=new FileReader;return e.loading$.next(!0),i.readAsDataURL(t),(0,h.R)(i,"load").pipe((0,v.g)(2e3),(0,f.U)((()=>String(i.result))),(0,b.w)((t=>e.save(t))),(0,L.x)((()=>e.loading$.next(!1))))}}var Z=i(97582),y=i(26215),w=i(97968);let I=(()=>{class e{constructor(){this.loading$=new y.X(!1)}static createBody(e){const t=new FormData;return t.append("image",e.split(",").pop()||""),new URLSearchParams(t)}get isLoading(){return this.loading$.getValue()}save(t){return(0,w.D)(fetch("https://api.imgbb.com/1/upload?key=3c1615980dcf693b282c4b0fb608b28a&expiration=300",{method:"POST",body:e.createBody(t),headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>(0,Z.mG)(this,void 0,void 0,(function*(){return e.json()}))))).pipe((0,f.U)((e=>e.data.url)))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=l.Yz7({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var x=i(57634),j=i(8820),A=i(66161),M=i(24956),S=i(76690),N=i(18569);const D=function(){return[]};let U=(()=>{class e{constructor(e,t,i){this.doc=e,this.imgbbService=t,this.isStackblitz=i,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[c._2.Undo,c._2.Img],this.control=new r.NI(""),this.validator=({value:e})=>{var t;return(null===(t=this.editor)||void 0===t?void 0:t.focused)||this.imgbbService.isLoading||!this.doc.hasFocus()||e.length?null:{empty:new s.T8v("ERROR: content must not be empty")}},this.control.patchValue(`\n \n

Try to drag right border of image!

\n

To change min/max size of image use token TUI_IMAGE_EDITOR_OPTIONS.

\n `)}}return e.ɵfac=function(t){return new(t||e)(l.Y36(o.K0),l.Y36(I),l.Y36(s.SgE))},e.ɵcmp=l.Xpm({type:e,selectors:[["tui-editor-upload-images-example-1"]],viewQuery:function(e,t){if(1&e&&l.Gf(c.aI,7),2&e){let e;l.iGM(e=l.CRH())&&(t.editor=e.first)}},features:[l._Bn([s.a31,{provide:c.Wf,deps:[l.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({createImageEditorExtension:t})=>t(e))),Promise.resolve().then(i.bind(i,44632)).then((({default:e})=>e.configure({inline:!0,allowBase64:!0})))]},{provide:c.kB,useValue:150},{provide:c.VE,useValue:400},{provide:c.p7,useFactory:T,deps:[I]}])],decls:13,vars:16,consts:[[3,"overlay","showLoader"],[1,"editor",3,"formControl","tools","tuiValidator"],[3,"error","formControl"],[3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-loader",0),l.ALo(1,"async"),l._UZ(2,"tui-editor",1),l.qZA(),l._UZ(3,"tui-error",2),l.ALo(4,"async"),l.ALo(5,"tuiFieldError"),l.TgZ(6,"h4"),l._uU(7,"HTML:"),l.qZA(),l._UZ(8,"tui-editor-socket",3),l.TgZ(9,"h4"),l._uU(10,"Text:"),l.qZA(),l.TgZ(11,"p"),l._uU(12),l.qZA()),2&e&&(l.Q6J("overlay",!0)("showLoader",!!l.lcZ(1,9,t.imgbbService.loading$)),l.xp6(2),l.Q6J("formControl",t.control)("tools",t.builtInTools)("tuiValidator",t.validator),l.xp6(1),l.Q6J("error",l.lcZ(4,11,l.lcZ(5,13,l.DdM(15,D))))("formControl",t.control),l.xp6(5),l.Q6J("content",t.control.value||""),l.xp6(4),l.Oqu(t.control.value))},directives:[x.k,j.a,r.JJ,r.oH,A.W,M.v,S.D],pipes:[o.Ov,N.A],encapsulation:2,changeDetection:0}),e})(),z=(()=>{class e{constructor(){this.example1={TypeScript:i.e(585).then(i.t.bind(i,30585,17)),HTML:i.e(6042).then(i.t.bind(i,46036,17)),"image-loader.ts":i.e(5227).then(i.t.bind(i,5227,17)),"imgbb.service.ts":i.e(1646).then(i.t.bind(i,61646,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=l.Xpm({type:e,selectors:[["editor-upload-images"]],features:[l._Bn([{provide:c.Wf,useValue:c.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","upload-images","heading","Upload images to a web server",3,"content"]],template:function(e,t){1&e&&(l.TgZ(0,"tui-doc-page",0),l.TgZ(1,"p"),l._uU(2," Rich Text Editor based on "),l.TgZ(3,"a",1),l._uU(4," TipTap Editor "),l.qZA(),l._uU(5," for using with Angular forms. For safety reasons use a "),l.TgZ(6,"a",2),l._uU(7," sanitizer "),l.qZA(),l._uU(8," with this component. "),l.qZA(),l.TgZ(9,"tui-doc-example",3),l._UZ(10,"tui-editor-upload-images-example-1"),l.qZA(),l.qZA()),2&e&&(l.xp6(9),l.Q6J("content",t.example1))},directives:[p.q,g.V,n.yS,m.f,U],encapsulation:2,changeDetection:0}),e})(),_=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l.oAB({type:e}),e.ɵinj=l.cJS({imports:[[o.ez,s.Ah6,u.EIu,u.jzK,u.jhF,u.fNO,a.fV,r.u5,r.UX,c.T_,u.dSp,c.GK,u.Shu,d.YuV,n.Bz.forChild((0,a.Ve)(z)),s.op3]]}),e})()}}]); \ No newline at end of file diff --git a/8841.2d6a7a41c3c4b2fc430c.js b/8841.fa42f0636fd977c2a5bc.js similarity index 98% rename from 8841.2d6a7a41c3c4b2fc430c.js rename to 8841.fa42f0636fd977c2a5bc.js index cfc51212d..ccfe88023 100644 --- a/8841.2d6a7a41c3c4b2fc430c.js +++ b/8841.fa42f0636fd977c2a5bc.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8841],{78841:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorPreviewImagesToolModule:()=>E});var n=i(12057),r=i(24751),o=i(34016),a=i(47029),s=i(42600),c=i(43232),l=i(37195),p=i(74788),u=i(15997),m=i(73460),g=i(42328),d=i(8820),w=i(76690);let h=(()=>{class e{constructor(){this.imagePreview=new p.vpe}click(e){e instanceof HTMLImageElement&&this.imagePreview.emit(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=p.lG2({type:e,selectors:[["tui-editor-socket","imagePreview",""]],hostAttrs:[1,"_preview-image"],hostBindings:function(e,t){1&e&&p.NdJ("click",(function(e){return t.click(e.target)}))},outputs:{imagePreview:"imagePreview"}}),e})();var v=i(83044),f=i(3017),b=i(18289),Z=i(26922);const T=["previewImages"];function y(e,t){if(1&e&&p._UZ(0,"img",4),2&e){const e=p.oxw(2);p.Q6J("src",e.image.src,p.LSH)}}function _(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"tui-preview",1),p.YNc(1,y,1,1,"img",2),p.TgZ(2,"button",3),p.NdJ("click",(function(){return p.CHM(e).$implicit.complete()})),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();p.Q6J("rotatable",!0),p.xp6(1),p.Q6J("ngIf",e.image)}}let k=(()=>{class e{constructor(e){this.dialogs=e}showImage(e){this.image=e,this.dialogs.open(this.template||"").subscribe()}}return e.ɵfac=function(t){return new(t||e)(p.Y36(v.iK))},e.ɵcmp=p.Xpm({type:e,selectors:[["image-preview-example"]],viewQuery:function(e,t){if(1&e&&p.Gf(T,5),2&e){let e;p.iGM(e=p.CRH())&&(t.template=e.first)}},decls:2,vars:0,consts:[["previewImages",""],[3,"rotatable"],["alt","","loading","lazy","class","t-image-preview",3,"src",4,"ngIf"],["icon","tuiIconCloseLarge","title","Close","tuiIconButton","","tuiPreviewAction","","type","button",3,"click"],["alt","","loading","lazy",1,"t-image-preview",3,"src"]],template:function(e,t){1&e&&p.YNc(0,_,3,2,"ng-template",null,0,p.W1O)},directives:[f.m,n.O5,b.v,Z.v],styles:[".t-image-preview[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),e})(),x=(()=>{class e{constructor(e){this.isStackblitz=e,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[l._2.Undo,l._2.Img],this.control=new r.NI(""),this.control.patchValue(`

Small image

Big image

`)}}return e.ɵfac=function(t){return new(t||e)(p.Y36(s.SgE))},e.ɵcmp=p.Xpm({type:e,selectors:[["tui-editor-preview-images-example-1"]],features:[p._Bn([s.a31,{provide:l.Wf,deps:[p.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({tuiCreateImageEditorExtension:t})=>t({injector:e})))]}])],decls:6,vars:3,consts:[[1,"editor",3,"formControl","tools"],[3,"content","imagePreview"],["preview",""]],template:function(e,t){if(1&e){const e=p.EpF();p._UZ(0,"tui-editor",0),p.TgZ(1,"h4"),p._uU(2,"HTML:"),p.qZA(),p.TgZ(3,"tui-editor-socket",1),p.NdJ("imagePreview",(function(t){return p.CHM(e),p.MAs(5).showImage(t)})),p._UZ(4,"image-preview-example",null,2),p.qZA()}2&e&&(p.Q6J("formControl",t.control)("tools",t.builtInTools),p.xp6(3),p.Q6J("content",t.control.value||""))},directives:[d.a,r.JJ,r.oH,w.D,h,k],encapsulation:2,changeDetection:0}),e})(),P=(()=>{class e{constructor(){this.example1={TypeScript:i.e(7013).then(i.t.bind(i,7013,17)),HTML:i.e(8712).then(i.t.bind(i,48712,17)),"image-preview/image-preview.template.html":i.e(9095).then(i.t.bind(i,99095,17)),"image-preview/image-preview.style.less":i.e(8537).then(i.t.bind(i,68537,17)),"image-preview/image-preview.component.ts":i.e(1023).then(i.t.bind(i,91023,17)),"image-preview/image-preview.module.ts":i.e(1447).then(i.t.bind(i,81447,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=p.Xpm({type:e,selectors:[["editor-preview-images"]],features:[p._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","preview-image","heading","Preview for images",3,"content"]],template:function(e,t){1&e&&(p.TgZ(0,"tui-doc-page",0),p.TgZ(1,"p"),p._uU(2," Rich Text Editor based on "),p.TgZ(3,"a",1),p._uU(4," TipTap Editor "),p.qZA(),p._uU(5," for using with Angular forms. For safety reasons use a "),p.TgZ(6,"a",2),p._uU(7," sanitizer "),p.qZA(),p._uU(8," with this component. "),p.qZA(),p.TgZ(9,"tui-doc-example",3),p._UZ(10,"tui-editor-preview-images-example-1"),p.qZA(),p.qZA()),2&e&&(p.xp6(9),p.Q6J("content",t.example1))},directives:[u.q,m.V,o.yS,g.f,x],encapsulation:2,changeDetection:0}),e})();var A=i(89570);let I=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p.oAB({type:e}),e.ɵinj=p.cJS({imports:[[n.ez,v.E6,c.fNO,A.wq,l.BN],l.BN,l.BN]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p.oAB({type:e}),e.ɵinj=p.cJS({imports:[[n.ez,s.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,a.fV,r.u5,r.UX,l.T_,l.GK,I,o.Bz.forChild((0,a.Ve)(P))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[8841],{78841:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorPreviewImagesToolModule:()=>E});var n=i(12057),r=i(24751),o=i(34016),a=i(47029),s=i(42600),c=i(43232),l=i(37195),p=i(74788),u=i(15997),m=i(73460),g=i(42328),d=i(8820),w=i(76690);let h=(()=>{class e{constructor(){this.imagePreview=new p.vpe}click(e){e instanceof HTMLImageElement&&this.imagePreview.emit(e)}}return e.ɵfac=function(t){return new(t||e)},e.ɵdir=p.lG2({type:e,selectors:[["tui-editor-socket","imagePreview",""]],hostAttrs:[1,"_preview-image"],hostBindings:function(e,t){1&e&&p.NdJ("click",(function(e){return t.click(e.target)}))},outputs:{imagePreview:"imagePreview"}}),e})();var v=i(83044),f=i(3017),b=i(18289),Z=i(26922);const T=["previewImages"];function y(e,t){if(1&e&&p._UZ(0,"img",4),2&e){const e=p.oxw(2);p.Q6J("src",e.image.src,p.LSH)}}function _(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"tui-preview",1),p.YNc(1,y,1,1,"img",2),p.TgZ(2,"button",3),p.NdJ("click",(function(){return p.CHM(e).$implicit.complete()})),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();p.Q6J("rotatable",!0),p.xp6(1),p.Q6J("ngIf",e.image)}}let k=(()=>{class e{constructor(e){this.dialogs=e}showImage(e){this.image=e,this.dialogs.open(this.template||"").subscribe()}}return e.ɵfac=function(t){return new(t||e)(p.Y36(v.iK))},e.ɵcmp=p.Xpm({type:e,selectors:[["image-preview-example"]],viewQuery:function(e,t){if(1&e&&p.Gf(T,5),2&e){let e;p.iGM(e=p.CRH())&&(t.template=e.first)}},decls:2,vars:0,consts:[["previewImages",""],[3,"rotatable"],["alt","","loading","lazy","class","t-image-preview",3,"src",4,"ngIf"],["icon","tuiIconCloseLarge","title","Close","tuiIconButton","","tuiPreviewAction","","type","button",3,"click"],["alt","","loading","lazy",1,"t-image-preview",3,"src"]],template:function(e,t){1&e&&p.YNc(0,_,3,2,"ng-template",null,0,p.W1O)},directives:[f.m,n.O5,b.v,Z.v],styles:[".t-image-preview[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),e})(),x=(()=>{class e{constructor(e){this.isStackblitz=e,this.relativePath=this.isStackblitz?"https://taiga-ui.dev/":"",this.builtInTools=[l._2.Undo,l._2.Img],this.control=new r.NI(""),this.control.patchValue(`

Small image

Big image

`)}}return e.ɵfac=function(t){return new(t||e)(p.Y36(s.SgE))},e.ɵcmp=p.Xpm({type:e,selectors:[["tui-editor-preview-images-example-1"]],features:[p._Bn([s.a31,{provide:l.Wf,deps:[p.gxx],useFactory:e=>[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,89681)).then((({tuiCreateImageEditorExtension:t})=>t({injector:e})))]}])],decls:6,vars:3,consts:[[1,"editor",3,"formControl","tools"],[3,"content","imagePreview"],["preview",""]],template:function(e,t){if(1&e){const e=p.EpF();p._UZ(0,"tui-editor",0),p.TgZ(1,"h4"),p._uU(2,"HTML:"),p.qZA(),p.TgZ(3,"tui-editor-socket",1),p.NdJ("imagePreview",(function(t){return p.CHM(e),p.MAs(5).showImage(t)})),p._UZ(4,"image-preview-example",null,2),p.qZA()}2&e&&(p.Q6J("formControl",t.control)("tools",t.builtInTools),p.xp6(3),p.Q6J("content",t.control.value||""))},directives:[d.a,r.JJ,r.oH,w.D,h,k],encapsulation:2,changeDetection:0}),e})(),P=(()=>{class e{constructor(){this.example1={TypeScript:i.e(7013).then(i.t.bind(i,7013,17)),HTML:i.e(8712).then(i.t.bind(i,48712,17)),"image-preview/image-preview.template.html":i.e(9095).then(i.t.bind(i,99095,17)),"image-preview/image-preview.style.less":i.e(8537).then(i.t.bind(i,68537,17)),"image-preview/image-preview.component.ts":i.e(1023).then(i.t.bind(i,91023,17)),"image-preview/image-preview.module.ts":i.e(1447).then(i.t.bind(i,81447,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=p.Xpm({type:e,selectors:[["editor-preview-images"]],features:[p._Bn([{provide:l.Wf,useValue:l.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","preview-image","heading","Preview for images",3,"content"]],template:function(e,t){1&e&&(p.TgZ(0,"tui-doc-page",0),p.TgZ(1,"p"),p._uU(2," Rich Text Editor based on "),p.TgZ(3,"a",1),p._uU(4," TipTap Editor "),p.qZA(),p._uU(5," for using with Angular forms. For safety reasons use a "),p.TgZ(6,"a",2),p._uU(7," sanitizer "),p.qZA(),p._uU(8," with this component. "),p.qZA(),p.TgZ(9,"tui-doc-example",3),p._UZ(10,"tui-editor-preview-images-example-1"),p.qZA(),p.qZA()),2&e&&(p.xp6(9),p.Q6J("content",t.example1))},directives:[u.q,m.V,o.yS,g.f,x],encapsulation:2,changeDetection:0}),e})();var A=i(89570);let I=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p.oAB({type:e}),e.ɵinj=p.cJS({imports:[[n.ez,v.E6,c.fNO,A.wq,l.BN],l.BN,l.BN]}),e})(),E=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=p.oAB({type:e}),e.ɵinj=p.cJS({imports:[[n.ez,s.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,a.fV,r.u5,r.UX,l.T_,l.GK,I,o.Bz.forChild((0,a.Ve)(P))]]}),e})()}}]); \ No newline at end of file diff --git a/965.75d5ee88f7e15b324615.js b/965.8513642794aefbab15bd.js similarity index 98% rename from 965.75d5ee88f7e15b324615.js rename to 965.8513642794aefbab15bd.js index 49c80b2b3..f40e8c918 100644 --- a/965.75d5ee88f7e15b324615.js +++ b/965.8513642794aefbab15bd.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[965],{60965:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorUploadFilesModule:()=>U});var o=i(12057),n=i(24751),r=i(34016),s=i(47029),a=i(42600),l=i(43232),d=i(37195),u=i(74788),c=i(15997),p=i(73460),h=i(42328),f=i(35758),m=i(68939);function v(e){return t=>(e.loading$.next(!0),(0,f.D)(t.map((t=>e.upload(t)))).pipe((0,m.x)((()=>e.loading$.next(!1)))))}var T=i(97582),g=i(26215),Z=i(97968),w=i(88002);let y=(()=>{class e{constructor(){this.loading$=new g.X(!1)}upload(e){const t=new FormData;return t.append("file",e,e.name),t.append("expires","1d"),t.append("autoDelete","true"),(0,Z.D)(fetch("https://file.io/",{method:"POST",body:t}).then((e=>(0,T.mG)(this,void 0,void 0,(function*(){return e.json()}))))).pipe((0,w.U)((e=>({name:e.name,link:e.link}))))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=u.Yz7({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var _=i(57634),A=i(8820),b=i(76690);let k=(()=>{class e{constructor(e){this.fileIoService=e,this.builtInTools=[d._2.Undo,d._2.Link,d._2.Attach],this.control=new n.NI("")}attach(e){e.forEach((e=>{var t,i;return null===(i=null===(t=this.wysiwyg)||void 0===t?void 0:t.editor)||void 0===i?void 0:i.setFileLink(e)}))}}return e.ɵfac=function(t){return new(t||e)(u.Y36(y))},e.ɵcmp=u.Xpm({type:e,selectors:[["tui-editor-upload-files-example-1"]],viewQuery:function(e,t){if(1&e&&u.Gf(d.aI,5),2&e){let e;u.iGM(e=u.CRH())&&(t.wysiwyg=e.first)}},features:[u._Bn([{provide:d.Wf,useValue:[Promise.resolve().then(i.bind(i,93107)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(i.bind(i,48239)).then((({TuiLink:e})=>e)),i.e(6633).then(i.bind(i,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(i.bind(i,58101)).then((({TuiFileLink:e})=>e))]},{provide:d.zc,deps:[y],useFactory:v}])],decls:10,vars:7,consts:[[3,"showLoader"],[1,"editor",3,"formControl","tools","fileAttached"],[3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-loader",0),u.ALo(1,"async"),u.TgZ(2,"tui-editor",1),u.NdJ("fileAttached",(function(e){return t.attach(e)})),u.qZA(),u.qZA(),u.TgZ(3,"h4"),u._uU(4,"HTML:"),u.qZA(),u._UZ(5,"tui-editor-socket",2),u.TgZ(6,"h4"),u._uU(7,"Text:"),u.qZA(),u.TgZ(8,"p"),u._uU(9),u.qZA()),2&e&&(u.Q6J("showLoader",!!u.lcZ(1,5,t.fileIoService.loading$)),u.xp6(2),u.Q6J("formControl",t.control)("tools",t.builtInTools),u.xp6(3),u.Q6J("content",t.control.value||""),u.xp6(4),u.Oqu(t.control.value))},directives:[_.k,A.a,n.JJ,n.oH,b.D],pipes:[o.Ov],styles:[".editor[_ngcontent-%COMP%] .tui-editor-socket .ProseMirror{min-height:10rem}"],changeDetection:0}),e})(),x=(()=>{class e{constructor(){this.example1={TypeScript:i.e(4401).then(i.t.bind(i,44401,17)),HTML:i.e(5468).then(i.t.bind(i,35468,17)),LESS:i.e(1628).then(i.t.bind(i,41628,17)),"./filesio.service.ts":i.e(4254).then(i.t.bind(i,24254,17)),"./file-loader.ts":i.e(1374).then(i.t.bind(i,1374,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=u.Xpm({type:e,selectors:[["editor-upload-files"]],features:[u._Bn([{provide:d.Wf,useValue:d.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","upload-file","description","100 uploads per day, 2GB file size limit, files auto-deleted after 1 download","heading","Upload files",3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-upload-files-example-1"),u.qZA(),u.qZA()),2&e&&(u.xp6(9),u.Q6J("content",t.example1))},directives:[c.q,p.V,r.yS,h.f,k],encapsulation:2,changeDetection:0}),e})(),U=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u.oAB({type:e}),e.ɵinj=u.cJS({imports:[[o.ez,a.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,s.fV,n.u5,n.UX,d.T_,l.dSp,d.GK,r.Bz.forChild((0,s.Ve)(x))]]}),e})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[965],{60965:(e,t,i)=>{i.r(t),i.d(t,{ExampleTuiEditorUploadFilesModule:()=>U});var o=i(12057),n=i(24751),r=i(34016),s=i(47029),a=i(42600),l=i(43232),d=i(37195),u=i(74788),c=i(15997),p=i(73460),h=i(42328),f=i(35758),m=i(68939);function v(e){return t=>(e.loading$.next(!0),(0,f.D)(t.map((t=>e.upload(t)))).pipe((0,m.x)((()=>e.loading$.next(!1)))))}var T=i(97582),g=i(26215),Z=i(97968),w=i(88002);let y=(()=>{class e{constructor(){this.loading$=new g.X(!1)}upload(e){const t=new FormData;return t.append("file",e,e.name),t.append("expires","1d"),t.append("autoDelete","true"),(0,Z.D)(fetch("https://file.io/",{method:"POST",body:t}).then((e=>(0,T.mG)(this,void 0,void 0,(function*(){return e.json()}))))).pipe((0,w.U)((e=>({name:e.name,link:e.link}))))}}return e.ɵfac=function(t){return new(t||e)},e.ɵprov=u.Yz7({token:e,factory:e.ɵfac,providedIn:"root"}),e})();var _=i(57634),A=i(8820),b=i(76690);let k=(()=>{class e{constructor(e){this.fileIoService=e,this.builtInTools=[d._2.Undo,d._2.Link,d._2.Attach],this.control=new n.NI("")}attach(e){e.forEach((e=>{var t,i;return null===(i=null===(t=this.wysiwyg)||void 0===t?void 0:t.editor)||void 0===i?void 0:i.setFileLink(e)}))}}return e.ɵfac=function(t){return new(t||e)(u.Y36(y))},e.ɵcmp=u.Xpm({type:e,selectors:[["tui-editor-upload-files-example-1"]],viewQuery:function(e,t){if(1&e&&u.Gf(d.aI,5),2&e){let e;u.iGM(e=u.CRH())&&(t.wysiwyg=e.first)}},features:[u._Bn([{provide:d.Wf,useValue:[Promise.resolve().then(i.bind(i,28730)).then((({StarterKit:e})=>e)),Promise.resolve().then(i.bind(i,84402)).then((({TextStyle:e})=>e)),Promise.resolve().then(i.bind(i,48239)).then((({TuiLink:e})=>e)),i.e(6633).then(i.bind(i,96633)).then((({TuiJumpAnchor:e})=>e)),Promise.resolve().then(i.bind(i,58101)).then((({TuiFileLink:e})=>e))]},{provide:d.zc,deps:[y],useFactory:v}])],decls:10,vars:7,consts:[[3,"showLoader"],[1,"editor",3,"formControl","tools","fileAttached"],[3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-loader",0),u.ALo(1,"async"),u.TgZ(2,"tui-editor",1),u.NdJ("fileAttached",(function(e){return t.attach(e)})),u.qZA(),u.qZA(),u.TgZ(3,"h4"),u._uU(4,"HTML:"),u.qZA(),u._UZ(5,"tui-editor-socket",2),u.TgZ(6,"h4"),u._uU(7,"Text:"),u.qZA(),u.TgZ(8,"p"),u._uU(9),u.qZA()),2&e&&(u.Q6J("showLoader",!!u.lcZ(1,5,t.fileIoService.loading$)),u.xp6(2),u.Q6J("formControl",t.control)("tools",t.builtInTools),u.xp6(3),u.Q6J("content",t.control.value||""),u.xp6(4),u.Oqu(t.control.value))},directives:[_.k,A.a,n.JJ,n.oH,b.D],pipes:[o.Ov],styles:[".editor[_ngcontent-%COMP%] .tui-editor-socket .ProseMirror{min-height:10rem}"],changeDetection:0}),e})(),x=(()=>{class e{constructor(){this.example1={TypeScript:i.e(4401).then(i.t.bind(i,44401,17)),HTML:i.e(5468).then(i.t.bind(i,35468,17)),LESS:i.e(1628).then(i.t.bind(i,41628,17)),"./filesio.service.ts":i.e(4254).then(i.t.bind(i,24254,17)),"./file-loader.ts":i.e(1374).then(i.t.bind(i,1374,17))}}}return e.ɵfac=function(t){return new(t||e)},e.ɵcmp=u.Xpm({type:e,selectors:[["editor-upload-files"]],features:[u._Bn([{provide:d.Wf,useValue:d.PD}])],decls:11,vars:1,consts:[["header","Editor","type","components"],["href","https://www.tiptap.dev/","tuiLink",""],["fragment","sanitizer","routerLink","/icons/bundled","tuiLink",""],["id","upload-file","description","100 uploads per day, 2GB file size limit, files auto-deleted after 1 download","heading","Upload files",3,"content"]],template:function(e,t){1&e&&(u.TgZ(0,"tui-doc-page",0),u.TgZ(1,"p"),u._uU(2," Rich Text Editor based on "),u.TgZ(3,"a",1),u._uU(4," TipTap Editor "),u.qZA(),u._uU(5," for using with Angular forms. For safety reasons use a "),u.TgZ(6,"a",2),u._uU(7," sanitizer "),u.qZA(),u._uU(8," with this component. "),u.qZA(),u.TgZ(9,"tui-doc-example",3),u._UZ(10,"tui-editor-upload-files-example-1"),u.qZA(),u.qZA()),2&e&&(u.xp6(9),u.Q6J("content",t.example1))},directives:[c.q,p.V,r.yS,h.f,k],encapsulation:2,changeDetection:0}),e})(),U=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=u.oAB({type:e}),e.ɵinj=u.cJS({imports:[[o.ez,a.Ah6,l.EIu,l.jzK,l.jhF,l.fNO,s.fV,n.u5,n.UX,d.T_,l.dSp,d.GK,r.Bz.forChild((0,s.Ve)(x))]]}),e})()}}]); \ No newline at end of file diff --git a/9762.7c5a9eb9685080fc06e3.js b/9762.65ce81239ac8ef121bd7.js similarity index 97% rename from 9762.7c5a9eb9685080fc06e3.js rename to 9762.65ce81239ac8ef121bd7.js index e0b338e29..f3e0a2348 100644 --- a/9762.7c5a9eb9685080fc06e3.js +++ b/9762.65ce81239ac8ef121bd7.js @@ -1 +1 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[9762],{39762:(t,e,o)=>{o.r(e),o.d(e,{ExampleToolbarBottomModule:()=>f});var n=o(12057),r=o(24751),a=o(34016),i=o(47029),s=o(42600),c=o(43232),l=o(37195),d=o(74788),p=o(15997),u=o(42328),m=o(8820),h=o(18289);let b=(()=>{class t{constructor(t){this.dialog=t,this.builtInTools=[l._2.Undo,l._2.Link,l._2.Img],this.control=new r.NI("")}send(){this.dialog.open(this.control.value).subscribe()}}return t.ɵfac=function(e){return new(e||t)(d.Y36(c.ROA))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-editor-toolbar-bottom-example-1"]],features:[d._Bn([{provide:l.Wf,deps:[d.zs3],useFactory:t=>[Promise.resolve().then(o.bind(o,93107)).then((({StarterKit:t})=>t)),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:t})=>t)),Promise.resolve().then(o.bind(o,48239)).then((({TuiLink:t})=>t))]}])],decls:5,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["appearance","secondary","size","s","tuiButton","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-editor",0),d._uU(1," Write message... "),d.ynx(2,1),d.TgZ(3,"button",2),d.NdJ("click",(function(){return e.send()})),d._uU(4," Send "),d.qZA(),d.BQk(),d.qZA()),2&t&&d.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[m.a,r.JJ,r.oH,h.v],styles:[".editor[_ngcontent-%COMP%]{min-height:200px;max-height:200px}.editor[_ngcontent-%COMP%] [data-appearance] tui-toolbar{position:absolute;width:calc(100% - .25rem);bottom:0;z-index:1;left:.125rem}.editor[_ngcontent-%COMP%] [data-appearance] tui-toolbar .t-tools-wrapper{box-shadow:0 -.0625rem .0625rem var(--tui-base-03)}.editor[_ngcontent-%COMP%] [data-appearance] tui-scrollbar{margin-bottom:2.875rem;padding:0}.editor[_ngcontent-%COMP%] [data-appearance] .t-placeholder{margin-top:1.625rem}.editor[_ngcontent-%COMP%] [data-appearance] .t-block:last-child{margin-left:auto}"],changeDetection:0}),t})(),g=(()=>{class t{constructor(){this.example1={TypeScript:o.e(6504).then(o.t.bind(o,76504,17)),HTML:o.e(7681).then(o.t.bind(o,47681,17)),LESS:o.e(2163).then(o.t.bind(o,22163,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["ng-component"]],features:[d._Bn([{provide:l.Wf,useValue:l.PD}])],decls:3,vars:1,consts:[["header","Editor","type","components"],["id","bottom-toolbar","heading","Align toolbar bottom",3,"content"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"tui-doc-example",1),d._UZ(2,"tui-editor-toolbar-bottom-example-1"),d.qZA(),d.qZA()),2&t&&(d.xp6(1),d.Q6J("content",e.example1))},directives:[p.q,u.f,b],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,s.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,i.fV,r.u5,r.UX,l.T_,l.GK,a.Bz.forChild((0,i.Ve)(g))]]}),t})()}}]); \ No newline at end of file +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[9762],{39762:(t,e,o)=>{o.r(e),o.d(e,{ExampleToolbarBottomModule:()=>f});var n=o(12057),r=o(24751),a=o(34016),i=o(47029),s=o(42600),c=o(43232),l=o(37195),d=o(74788),p=o(15997),u=o(42328),m=o(8820),h=o(18289);let b=(()=>{class t{constructor(t){this.dialog=t,this.builtInTools=[l._2.Undo,l._2.Link,l._2.Img],this.control=new r.NI("")}send(){this.dialog.open(this.control.value).subscribe()}}return t.ɵfac=function(e){return new(e||t)(d.Y36(c.ROA))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-editor-toolbar-bottom-example-1"]],features:[d._Bn([{provide:l.Wf,deps:[d.zs3],useFactory:t=>[Promise.resolve().then(o.bind(o,28730)).then((({StarterKit:t})=>t)),Promise.resolve().then(o.bind(o,84402)).then((({TextStyle:t})=>t)),Promise.resolve().then(o.bind(o,48239)).then((({TuiLink:t})=>t))]}])],decls:5,vars:2,consts:[[1,"editor",3,"formControl","tools"],["ngProjectAs","tools",5,["tools"]],["appearance","secondary","size","s","tuiButton","",3,"click"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-editor",0),d._uU(1," Write message... "),d.ynx(2,1),d.TgZ(3,"button",2),d.NdJ("click",(function(){return e.send()})),d._uU(4," Send "),d.qZA(),d.BQk(),d.qZA()),2&t&&d.Q6J("formControl",e.control)("tools",e.builtInTools)},directives:[m.a,r.JJ,r.oH,h.v],styles:[".editor[_ngcontent-%COMP%]{min-height:200px;max-height:200px}.editor[_ngcontent-%COMP%] [data-appearance] tui-toolbar{position:absolute;width:calc(100% - .25rem);bottom:0;z-index:1;left:.125rem}.editor[_ngcontent-%COMP%] [data-appearance] tui-toolbar .t-tools-wrapper{box-shadow:0 -.0625rem .0625rem var(--tui-base-03)}.editor[_ngcontent-%COMP%] [data-appearance] tui-scrollbar{margin-bottom:2.875rem;padding:0}.editor[_ngcontent-%COMP%] [data-appearance] .t-placeholder{margin-top:1.625rem}.editor[_ngcontent-%COMP%] [data-appearance] .t-block:last-child{margin-left:auto}"],changeDetection:0}),t})(),g=(()=>{class t{constructor(){this.example1={TypeScript:o.e(6504).then(o.t.bind(o,76504,17)),HTML:o.e(7681).then(o.t.bind(o,47681,17)),LESS:o.e(2163).then(o.t.bind(o,22163,17))}}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["ng-component"]],features:[d._Bn([{provide:l.Wf,useValue:l.PD}])],decls:3,vars:1,consts:[["header","Editor","type","components"],["id","bottom-toolbar","heading","Align toolbar bottom",3,"content"]],template:function(t,e){1&t&&(d.TgZ(0,"tui-doc-page",0),d.TgZ(1,"tui-doc-example",1),d._UZ(2,"tui-editor-toolbar-bottom-example-1"),d.qZA(),d.qZA()),2&t&&(d.xp6(1),d.Q6J("content",e.example1))},directives:[p.q,u.f,b],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[n.ez,s.Ah6,c.EIu,c.jzK,c.jhF,c.fNO,i.fV,r.u5,r.UX,l.T_,l.GK,a.Bz.forChild((0,i.Ve)(g))]]}),t})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index 9b915b691..15582892c 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/main.37ac3421ac007e2f884c.js b/main.37ac3421ac007e2f884c.js new file mode 100644 index 000000000..0dec3de5f --- /dev/null +++ b/main.37ac3421ac007e2f884c.js @@ -0,0 +1 @@ +(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[179],{56083:(t,e,n)=>{n.d(e,{l3:()=>o,_j:()=>i,LC:()=>r,ZN:()=>m,jt:()=>a,pV:()=>d,IO:()=>h,vP:()=>l,EY:()=>p,oB:()=>u,eR:()=>c,X$:()=>s,ZE:()=>f,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 u(t){return{type:6,styles:t,offset:null}}function c(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t=null){return{type:9,options:t}}function h(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 g(t){Promise.resolve(null).then(t)}class m{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(){g((()=>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 f{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?g((()=>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:()=>k,Th:()=>re,NH:()=>Mt,uL:()=>_e,nV:()=>O,DT:()=>we,Ar:()=>Ot,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 u=-1,c=null;if(r.forEach((t=>{const n=t.offset,r=n==u,d=r&&c||{};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)}d[r]=l})),r||l.push(d),c=d,u=n})),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart((()=>i(n&&c(n,"start",t))));break;case"done":t.onDone((()=>i(n&&c(n,"done",t))));break;case"destroy":t.onDestroy((()=>i(n&&c(n,"destroy",t))))}}function c(t,e,n){const i=n.totalTime,r=!!n.disabled,o=d(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 d(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function h(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 g=(t,e)=>!1,m=(t,e)=>!1,f=(t,e,n)=>[];const v=s();(v||"undefined"!=typeof Element)&&(g=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),m=(()=>{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]):m}})(),f=(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 O=(()=>{class t{validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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})(),k=(()=>{class t{}return t.NOOP=new O,t})();const S=1e3,P="ng-enter",T="ng-leave",A="ng-trigger",E=".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:F(parseFloat(e[1]),e[2])}function F(t,e){return"s"===e?t*S:t}function N(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=F(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(o=F(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 z(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 z(t,n);return n}function B(t,e,n){return n?e+":"+n+";":""}function H(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()&&H(t))}function Y(t,e){t.style&&(Object.keys(e).forEach((e=>{const n=J(e);t.style[n]=""})),s()&&H(t))}function j(t){return Array.isArray(t)?1==t.length?t[0]:(0,i.vP)(t):t}const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(t){let e=[];if("string"==typeof t){let n;for(;n=Z.exec(t);)e.push(n[1]);Z.lastIndex=0}return e}function U(t,e,n){const i=t.toString(),r=i.replace(Z,((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 G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const q=/-+([a-z0-9])/g;function J(t){return t.replace(q,((...t)=>t[1].toUpperCase()))}function Q(t,e){return 0===t||0===e}function W(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 ut(e);return this._resetContextStyleTimingState(n),K(this,j(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(ct(t)){const e=t;Object.keys(e).forEach((t=>{$(e[t]).forEach((t=>{o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){const n=G(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=K(this,j(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:dt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map((t=>K(this,t,e))),options:dt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map((t=>{e.currentTime=n;const r=K(this,t,e);return i=Math.max(i,e.currentTime),r}));return e.currentTime=i,{type:3,steps:r,options:dt(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 ht(N(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some((t=>"{"==t.charAt(0)&&"{"==t.charAt(1)))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||N(i,e),ht(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(ct(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=$(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(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=l&&(i++,u=n.offset=l),s=s||u<0||u>1,o=o||u0&&i{const o=c>0?i==d?1:c*i:r[i],s=o*g;e.currentTime=h+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:K(this,j(t.animation),e),options:dt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:dt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:dt(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,E).replace(/@\w+/g,(t=>E+"-"+t.substr(1))).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,h(e.collectedStyles,e.currentQuerySelector,{});const s=K(this,j(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:dt(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"}:N(t.timings,e.errors,!0);return{type:12,animation:K(this,j(t.animation),e),timings:n,options:null}}}class ut{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 ct(t){return!Array.isArray(t)&&"object"==typeof t}function dt(t){var e;return t?(t=z(t)).params&&(t.params=(e=t.params)?z(e):null):t={},t}function ht(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 gt{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 mt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function vt(t,e,n,i,r,o={},s={},a,l,u=[]){return(new bt).buildKeyframes(t,e,n,i,r,o,s,a,l,u)}class bt{buildKeyframes(t,e,n,i,r,o,s,a,l,u=[]){l=l||new gt;const c=new _t(t,e,l,i,r,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),K(this,n,c);const d=c.timelines.filter((t=>t.containsAnimation()));if(d.length&&Object.keys(s).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,c.errors,a)}return d.length?d.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),K(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=>K(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),K(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 N(e.params?U(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),K(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 u=l.currentTime;K(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const yt={};class _t{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 Ct(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]=U(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 _t(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 wt(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(mt,"."+this._enterClassName)).replace(ft,"."+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 Ct{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 Ct(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=U(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?G(t.values()):[],s=e.size?G(e.values()):[];if(n){const t=r[0],e=z(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 wt extends Ct{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 u=t.length-1;for(let i=1;i<=u;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 Mt{}class Ot extends Mt{normalizePropertyName(t,e){return J(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(kt[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 kt=(()=>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 St(t,e,n,i,r,o,s,a,l,u,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}const Pt={};class Tt{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,u){const c=[],d=this.ast.options&&this.ast.options.params||Pt,p=s&&s.params||Pt,g=this.buildStyles(n,p,c),m=a&&a.params||Pt,f=this.buildStyles(i,m,c),v=new Set,b=new Map,y=new Map,_="void"===i,C={params:Object.assign(Object.assign({},d),m)},w=u?[]:vt(t,e,this.ast.animation,r,o,g,f,C,l,c);let x=0;if(w.forEach((t=>{x=Math.max(t.duration+t.delay,x)})),c.length)return St(e,this._triggerName,n,i,_,g,f,[],[],b,y,x,c);w.forEach((t=>{const n=t.element,i=h(b,n,{});t.preStyleProps.forEach((t=>i[t]=!0));const r=h(y,n,{});t.postStyleProps.forEach((t=>r[t]=!0)),n!==e&&v.add(n)}));const M=G(v.values());return St(e,this._triggerName,n,i,_,g,f,w,M,b,y,x)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=z(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=U(o,i,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o}))}})),n}}class Et{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 Tt(t,e,this.states))})),this.fallbackTransition=(i=t,r=this.states,this._normalizer,new Tt(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 gt;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,P,T,{},{},n,Dt,r),s.forEach((t=>{const e=h(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 u=a(s.map((t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((()=>this.destroy(t))),this.players.push(u),u}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=d(e,"","","");return u(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 Ft="ng-animate-queued",Nt="ng-animate-disabled",zt=".ng-animate-disabled",Rt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ht={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt="__ng_removed";class Yt{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=z(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 jt="void",Zt=new Yt(jt);class $t{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,Xt(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=h(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=h(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Xt(t,A),Xt(t,A+"-"+e),a[e]=Zt),()=>{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 Gt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Xt(t,A),Xt(t,A+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new Yt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=Zt),l.value!==jt&&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{Y(t,n),V(t,i)}))}return}const u=h(this._engine.playersByElement,t,[]);u.forEach((t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()}));let c=r.matchTransition(a.value,l.value,t,l.params),d=!1;if(!c){if(!i)return;c=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:o,isFallbackTransition:d}),d||(Xt(t,Ft),o.onStart((()=>{te(t,Ft)}))),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),u.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,E,!0);n.forEach((t=>{if(t[Vt])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,jt,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]||Zt,a=new Yt(jt),l=new Gt(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[Vt];i&&i!==Bt||(n.afterFlush((()=>this.clearElementCache(t))),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Xt(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=d(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(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 Ut{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 $t(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),Xt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,Nt))}removeNode(t,e,n,i){if(qt(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[Vt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return qt(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,E,!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[Vt];if(e&&e.setForRemoval){if(t[Vt]=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,zt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,zt,!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 gt,r=[],o=new Map,s=[],l=new Map,u=new Map,c=new Map,d=new Set;this.disabledNodes.forEach((t=>{d.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let t=0;t{const n=P+v++;f.set(e,n),t.forEach((t=>Xt(t,n)))}));const b=[],y=new Set,_=new Set;for(let t=0;ty.add(t))):_.add(e))}const C=new Map,w=Wt(g,Array.from(y));w.forEach(((t,e)=>{const n=T+v++;C.set(e,n),t.forEach((t=>Xt(t,n)))})),t.push((()=>{m.forEach(((t,e)=>{const n=f.get(e);t.forEach((t=>te(t,n)))})),w.forEach(((t,e)=>{const n=C.get(e);t.forEach((t=>te(t,n)))})),b.forEach((t=>{this.processLeaveNode(t)}))}));const x=[],M=[];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[Vt];if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,i),a=C.get(i),d=f.get(i),g=this._buildInstruction(t,n,d,a,o);if(g.errors&&g.errors.length)return void M.push(g);if(o)return e.onStart((()=>Y(i,g.fromStyles))),e.onDestroy((()=>V(i,g.toStyles))),void r.push(e);if(t.isFallbackTransition)return e.onStart((()=>Y(i,g.fromStyles))),e.onDestroy((()=>V(i,g.toStyles))),void r.push(e);g.timelines.forEach((t=>t.stretchStartingKeyframe=!0)),n.append(i,g.timelines);const m={instruction:g,player:e,element:i};s.push(m),g.queriedElements.forEach((t=>h(l,t,[]).push(e))),g.preStyleProps.forEach(((t,e)=>{const n=Object.keys(t);if(n.length){let t=u.get(e);t||u.set(e,t=new Set),n.forEach((e=>t.add(e)))}})),g.postStyleProps.forEach(((t,e)=>{const n=Object.keys(t);let i=c.get(e);i||c.set(e,i=new Set),n.forEach((t=>i.add(t)))}))}));if(M.length){const t=[];M.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 O=new Map,k=new Map;s.forEach((t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))})),r.forEach((t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((t=>{h(O,e,[]).push(t),t.destroy()}))}));const S=b.filter((t=>ie(t,u,c))),A=new Map;Qt(A,this.driver,_,c,i.l3).forEach((t=>{ie(t,u,c)&&S.push(t)}));const E=new Map;m.forEach(((t,e)=>{Qt(E,this.driver,new Set(t),u,i.k1)})),S.forEach((t=>{const e=A.get(t),n=E.get(t);A.set(t,Object.assign(Object.assign({},e),n))}));const I=[],L=[],F={};s.forEach((t=>{const{element:e,player:i,instruction:s}=t;if(n.has(e)){if(d.has(e))return i.onDestroy((()=>V(e,s.toStyles))),i.disabled=!0,i.overrideTotalTime(s.totalTime),void r.push(i);let t=F;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach((e=>k.set(e,t)))}const n=this._buildAnimation(i.namespaceId,s,O,o,E,A);if(i.setRealPlayer(n),t===F)I.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else Y(e,s.fromStyles),i.onDestroy((()=>V(e,s.toStyles))),L.push(i),d.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!t.destroyed));r.length?ee(this,e,r):this.processLeaveNode(e)}return b.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[Vt];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==jt;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=h(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)}))}Y(r,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const u=e.triggerName,c=e.element,d=[],p=new Set,g=new Set,m=e.timelines.map((e=>{const a=e.element;p.add(a);const h=a[Vt];if(h&&h.removedBeforeQueried)return new i.ZN(e.duration,e.delay);const m=a!==c,f=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),b=s.get(a),y=l(this.driver,this._normalizer,0,e.keyframes,v,b),_=this._buildPlayer(e,y,f);if(e.subTimeline&&r&&g.add(a),m){const e=new Gt(t,u,a);e.setRealPlayer(_),d.push(e)}return _}));d.forEach((t=>{h(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=>Xt(t,I)));const f=a(m);return f.onDestroy((()=>{p.forEach((t=>te(t,I))),V(c,e.toStyles)})),g.forEach((t=>{h(r,t,[]).push(f)})),f}_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 Gt{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=>u(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){h(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 qt(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 Qt(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[Vt]=Ht,s.push(i))})),t.set(i,o)}));let a=0;return n.forEach((t=>Jt(t,o[a++]))),s}function Wt(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 Kt="$$classes";function Xt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Kt];n||(n=t[Kt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Kt];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 Ut(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 Et(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&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),V(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(),me(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ve(t,"").split(","),i=ge(n,e);i>=0&&(n.splice(i,1),fe(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){fe(t,"PlayState",n,pe(t,e))}function pe(t,e){const n=ve(t,"");return n.indexOf(",")>0?ge(n.split(","),e):ge([n],e)}function ge(t,e){for(let n=0;n=0)return n;return-1}function me(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function fe(t,e,n,i){const r=ue+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[ue+e]||""}class be{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 de(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]:X(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=M(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 _e{constructor(){this._count=0}validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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=>M(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 be)),l={};Q(n,i)&&a.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const u=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=W(t,e,l));if(0==n)return new ye(t,u);const c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,c,e),h=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);h.appendChild(d);const p=oe(t,e),g=new be(t,e,c,n,i,r,u,p);return g.onDestroy((()=>{var t;(t=d).parentNode.removeChild(t)})),g}}class Ce{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]:X(this.element,e))})),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Me().toString()),this._cssKeyframesDriver=new _e}validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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={},u=o.filter((t=>t instanceof Ce));Q(n,i)&&u.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const c=oe(t,e=W(t,e=e.map((t=>R(t,!1))),l));return new Ce(t,e,a,c)}}function xe(){return"function"==typeof Me()}function Me(){return o()&&Element.prototype.animate||{}}},50506:(t,e,n)=>{n.d(e,{i3:()=>l,TU:()=>s,Iq:()=>u});var i=n(12057),r=n(74788);class o{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 s=(()=>{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 o(t,this._document)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({factory:function(){return new t(r.LFG(i.K0))},token:t,providedIn:"root"}),t})();const a=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let l=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new r.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)(r.Y36(s),r.Y36(r.R0b),r.Y36(a,8))},t.ɵdir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},12057:(t,e,n)=>{n.d(e,{mr:()=>_,Ov:()=>nt,ez:()=>ct,K0:()=>l,Do:()=>w,Gx:()=>ot,Ts:()=>st,Nd:()=>at,V_:()=>d,Ye:()=>x,S$:()=>b,i8:()=>it,mk:()=>R,$G:()=>B,sg:()=>V,O5:()=>j,PC:()=>J,RF:()=>G,n9:()=>q,tP:()=>Q,b0:()=>C,Zx:()=>ut,lw:()=>u,EM:()=>mt,JF:()=>bt,NF:()=>pt,PM:()=>gt,w_:()=>a,bD:()=>dt,q:()=>o,Mx:()=>z,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 u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return(0,i.LFG)(h)}const d=new i.OlP("Location Initialized");let h=(()=>{class t extends u{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:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new h((0,i.LFG)(l))}function m(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 f(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 b=(()=>{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 C((0,i.LFG)(u),e&&e.origin||"")}const _=new i.OlP("appBaseHref");let C=(()=>{class t extends b{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 m(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(u),i.LFG(_,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),w=(()=>{class t extends b{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=m(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(u),i.LFG(_,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=f(O(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,O(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(b),i.LFG(u))},t.normalizeQueryParams=v,t.joinWithSlash=m,t.stripTrailingSlash=f,t.ɵprov=(0,i.Yz7)({factory:M,token:t,providedIn:"root"}),t})();function M(){return new x((0,i.LFG)(b),(0,i.LFG)(u))}function O(t){return t.replace(/\/index.html$/,"")}var k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Percent=1]="Percent",k[k.Currency=2]="Currency",k[k.Scientific=3]="Scientific",k))(),S=(()=>((S=S||{})[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S))(),P=(()=>((P=P||{})[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P[1/0]=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P))();function T(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===P.CurrencyDecimal)return n[i.wAp.NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[i.wAp.NumberSymbols][P.Group]}return r}const A=i.kL8,E=/^(\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 F{}let N=(()=>{class t extends F{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.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 z(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 H{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 V=(()=>{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 H(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Y(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 Y(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 Y{constructor(t,e){this.record=t,this.view=e}}let j=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Z,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){$("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){$("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 Z{constructor(){this.$implicit=null,this.ngIf=null}}function $(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class U{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 G=(()=>{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 U(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(G,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})(),Q=(()=>{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 W(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class K{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class X{createSubscription(t,e){return t.then(e,(t=>{throw t}))}dispose(t){}onDestroy(t){}}const tt=new X,et=new K;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 W(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 W(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})();const rt=/#/g;let ot=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw W(t,n);return n[function(t,e,n,i){let r=`=${t}`;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}(e,Object.keys(n),this._localization,i)].replace(rt,e.toString())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(F,16))},t.ɵpipe=i.Yjl({name:"i18nPlural",type:t,pure:!0}),t})(),st=(()=>{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})(),at=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=lt}transform(t,e=lt){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 lt(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 u=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&&(u=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}(u));let c=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){const t=o.match(E);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&&(c=L(e)),null!=n&&(d=L(n)),null!=i?h=L(i):null!=n&&d>h&&(h=d)}!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=u?i.pop():l=!1),e>=10?1:0}),0);c&&(i.unshift(c),t.integerLen++)}(u,d,h);let p=u.digits,g=u.integerLen;const m=u.exponent;let f=[];for(l=p.every((t=>!t));g0?f=p.splice(g,p.length):(f=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(T(n,i)),f.length&&(a+=T(n,r)+f.join("")),m&&(a+=T(n,P.Exponential)+"+"+m)}else a=T(n,P.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:F,useClass:N}]}),t})();const dt="browser",ht="server";function pt(t){return t===dt}function gt(t){return t===ht}let mt=(()=>{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=vt(this.window.history)||vt(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 vt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class bt{}},58497:(t,e,n)=>{n.d(e,{eN:()=>A,JF:()=>j});var i=n(12057),r=n(74788),o=n(25917),s=n(29856),a=n(94612),l=n(45435),u=n(88002);class c{}class d{}class h{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 h?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 h;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof h?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 f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const g=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function f(t){return encodeURIComponent(t).replace(g,((t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t}))}function v(t){return`${t}`}class b{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 b({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 _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function w(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 h),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&&(u=Object.keys(t.setParams).reduce(((e,n)=>e.set(n,t.setParams[n])),u)),new x(n,i,o,{params:u,headers:l,context:c,reportProgress:a,responseType:r,withCredentials:s})}}var M=(()=>((M=M||{})[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M))();class O{constructor(t,e=200,n="OK"){this.headers=t.headers||new h,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 k extends O{constructor(t={}){super(t),this.type=M.ResponseHeader}clone(t={}){return new k({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 O{constructor(t={}){super(t),this.type=M.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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 P extends O{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 T(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 h?n.headers:new h(n.headers),n.params&&(o=n.params instanceof b?n.params:new b({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 S)));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,u.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,u.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,u.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,u.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 b).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,T(n,e))}post(t,e,n={}){return this.request("POST",t,T(n,e))}put(t,e,n={}){return this.request("PUT",t,T(n,e))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(c))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class E{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 F=(()=>{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 h(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 k({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 u=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,u&&(u=!1,l={error:e,text:l})}}u?(e.next(new S({body:l,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new P({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const u=i=>{l||(e.next(o()),l=!0);let r={type:M.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},c=t=>{let n={type:M.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",u),null!==i&&n.upload&&n.upload.addEventListener("progress",c)),n.send(i),e.next({type:M.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",c)),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 N=new r.OlP("XSRF_COOKIE_NAME"),z=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(N))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),H=(()=>{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(z))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{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 E(t,e)),this.backend)}return this.chain.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(d),r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Y=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:H,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:N,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[H,{provide:I,useExisting:H,multi:!0},{provide:R,useClass:B},{provide:N,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),t})(),j=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[A,{provide:c,useClass:V},F,{provide:d,useExisting:F}],imports:[[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},74788:(t,e,n)=>{n.d(e,{deG:()=>Nn,tb:()=>Uu,AFp:()=>Vu,ip1:()=>Bu,CZH:()=>Hu,hGG:()=>Hc,z2F:()=>Ac,sBO:()=>kl,Sil:()=>ic,_Vd:()=>Qa,EJc:()=>Ju,SBq:()=>tl,qLn:()=>Rr,vpe:()=>yu,gxx:()=>Xo,tBr:()=>oi,XFs:()=>T,OlP:()=>Fn,zs3:()=>gs,ZZ4:()=>yl,aQg:()=>Cl,soG:()=>qu,YKP:()=>Nl,v3s:()=>Ic,h0i:()=>Fl,PXZ:()=>Oc,R0b:()=>sc,FiY:()=>si,Lbi:()=>$u,g9A:()=>Zu,n_E:()=>Cu,Qsj:()=>il,FYo:()=>nl,JOm:()=>ui,Tiy:()=>ol,q3G:()=>Er,PiD:()=>ai,tp0:()=>li,EAV:()=>Fc,Rgc:()=>El,dDg:()=>pc,DyG:()=>zn,GfV:()=>sl,s_b:()=>Rl,ifc:()=>F,eFA:()=>kc,G48:()=>wc,Gpc:()=>p,f3M:()=>ni,X6Q:()=>Cc,_c5:()=>Rc,VLi:()=>fc,c2e:()=>Gu,zSh:()=>es,wAp:()=>Fa,vHH:()=>f,EiD:()=>Tr,mCW:()=>hr,qzn:()=>er,JVY:()=>ir,pB0:()=>ar,eBb:()=>or,L6k:()=>rr,LAX:()=>sr,cg1:()=>Ia,Tjo:()=>zc,kL8:()=>Da,yhl:()=>nr,dqk:()=>H,sIi:()=>Ms,CqO:()=>qs,QGY:()=>Us,F4k:()=>Gs,RDi:()=>Wt,AaK:()=>c,z3N:()=>tr,qOj:()=>fs,TTD:()=>Yt,_Bn:()=>Ua,xp6:()=>no,uIk:()=>Es,Tol:()=>ha,ekj:()=>da,Suo:()=>Du,Xpm:()=>W,lG2:()=>rt,Yz7:()=>_,cJS:()=>C,oAB:()=>et,Yjl:()=>ot,Y36:()=>Fs,_UZ:()=>Vs,GkF:()=>Zs,BQk:()=>js,ynx:()=>Ys,qZA:()=>Hs,TgZ:()=>Bs,EpF:()=>$s,n5z:()=>An,Ikx:()=>Sa,LFG:()=>ei,$8M:()=>In,$Z:()=>Ns,NdJ:()=>Js,CRH:()=>Lu,kcU:()=>$e,O4$:()=>Ze,oxw:()=>Ks,ALo:()=>uu,lcZ:()=>cu,xi3:()=>du,Dn7:()=>hu,gM2:()=>pu,G7q:()=>gu,Hsn:()=>ea,F$t:()=>ta,Q6J:()=>zs,s9C:()=>na,DdM:()=>Xl,VKq:()=>tu,WLB:()=>eu,l5B:()=>nu,qbA:()=>iu,HTZ:()=>ru,iGM:()=>Eu,MAs:()=>Ls,evT:()=>Vr,Jf7:()=>Hr,CHM:()=>fe,oJD:()=>Ir,uOi:()=>Lr,LSH:()=>Dr,kYT:()=>nt,Udp:()=>ca,d8E:()=>Pa,YNc:()=>Ds,W1O:()=>Ru,_uU:()=>xa,Oqu:()=>Ma,hij:()=>Oa,AsE:()=>ka,Gf:()=>Iu});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 u(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function c(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(c).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 d(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const h=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return c(this())},t}function g(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(h)&&t.__forward_ref__===p}class f 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 b(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 f("201",`No provider for ${b(t)} found${n}`)}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function C(t){return{providers:t.providers||[],imports:t.imports||[]}}function w(t){return x(t,O)||x(t,S)}function x(t,e){return t.hasOwnProperty(e)?t[e]:null}function M(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(P))?t[k]:null}const O=l({ɵprov:l}),k=l({ɵinj:l}),S=l({ngInjectableDef:l}),P=l({ngInjectorDef:l});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let A;function E(t){const e=A;return A=t,e}function I(t,e,n){const i=w(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&T.Optional?null:void 0!==e?e:void y(c(t),"Injector")}function D(t){return{toString:t}.toString()}var L=(()=>((L=L||{})[L.OnPush=0]="OnPush",L[L.Default=1]="Default",L))(),F=(()=>((F=F||{})[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",F))();const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||z||R,V={},Y=[],j=l({ɵcmp:l}),Z=l({ɵdir:l}),$=l({ɵpipe:l}),U=l({ɵmod:l}),G=l({ɵloc:l}),q=l({ɵfac:l}),J=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return D((()=>{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===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Y,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||Y,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=Q++,n.inputs=it(t.inputs,e),n.outputs=it(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(X):null,n}))}function K(t){const e=st(t)||function(t){return t[Z]||null}(t);return e}function X(t){const e=function(t){return t[$]||null}(t);return e}const tt={};function et(t){return D((()=>{const e={type:t.type,bootstrap:t.bootstrap||Y,declarations:t.declarations||Y,imports:t.imports||Y,exports:t.exports||Y,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e}))}function nt(t,e){return D((()=>{const n=at(t,!0);n.declarations=e.declarations||Y,n.imports=e.imports||Y,n.exports=e.exports||Y}))}function it(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 rt=W;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function st(t){return t[j]||null}function at(t,e){const n=t[U]||null;if(!n&&!0===e)throw new Error(`Type ${c(t)} does not have 'ɵmod' property.`);return n}const lt=0,ut=1,ct=2,dt=3,ht=4,pt=5,gt=6,mt=7,ft=8,vt=9,bt=10,yt=11,_t=12,Ct=13,wt=14,xt=15,Mt=16,Ot=17,kt=18,St=19,Pt=20,Tt=1,At=2,Et=7,It=9,Dt=10;function Lt(t){return Array.isArray(t)&&"object"==typeof t[Tt]}function Ft(t){return Array.isArray(t)&&!0===t[Tt]}function Nt(t){return!!(8&t.flags)}function zt(t){return!(2&~t.flags)}function Rt(t){return!(1&~t.flags)}function Bt(t){return null!==t.template}function Ht(t,e){return t.hasOwnProperty(q)?t[q]:null}class Vt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Yt(){return jt}function jt(t){return t.type.prototype.ngOnChanges&&(t.setInput=$t),Zt}function Zt(){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 $t(t,e,n,i){const r=Gt(t)||function(t,e){return t[Ut]=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}Yt.ngInherit=!0;const Ut="__ngSimpleChanges__";function Gt(t){return t[Ut]||null}const qt=function(t,e,n){},Jt="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 Xt(t){return!!t.listen}const te={createRenderer:(t,e)=>Kt()};function ee(t){for(;Array.isArray(t);)t=t[lt];return t}function ne(t,e){return ee(e[t])}function ie(t,e){return ee(e[t.index])}function re(t,e){return t.data[e]}function oe(t,e){return t[e]}function se(t,e){const n=e[t];return Lt(n)?n:n[lt]}function ae(t){return!(4&~t[ct])}function le(t){return!(128&~t[ct])}function ue(t,e){return null==e?null:t[e]}function ce(t){t[kt]=0}function de(t,e){t[pt]+=e;let n=t,i=t[dt];for(;null!==i&&(1===e&&1===n[pt]||-1===e&&0===n[pt]);)i[pt]+=e,n=i,i=i[dt]}const he={lFrame:ze(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function pe(){return he.bindingsEnabled}function ge(){return he.lFrame.lView}function me(){return he.lFrame.tView}function fe(t){return he.lFrame.contextLView=t,t[ft]}function ve(){let t=be();for(;null!==t&&64===t.type;)t=t.parent;return t}function be(){return he.lFrame.currentTNode}function ye(t,e){const n=he.lFrame;n.currentTNode=t,n.isParent=e}function _e(){return he.lFrame.isParent}function Ce(){he.lFrame.isParent=!1}function we(){return he.isInCheckNoChangesMode}function xe(t){he.isInCheckNoChangesMode=t}function Me(){const t=he.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Oe(){return he.lFrame.bindingIndex}function ke(){return he.lFrame.bindingIndex++}function Se(t){const e=he.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Pe(t,e){const n=he.lFrame;n.bindingIndex=n.bindingRootIndex=t,Te(e)}function Te(t){he.lFrame.currentDirectiveIndex=t}function Ae(t){const e=he.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ee(){return he.lFrame.currentQueryIndex}function Ie(t){he.lFrame.currentQueryIndex=t}function De(t){const e=t[ut];return 2===e.type?e.declTNode:1===e.type?t[gt]:null}function Le(t,e,n){if(n&T.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&T.Host||(i=De(r),null===i)||(r=r[xt],10&i.type)););if(null===i)return!1;e=i,t=r}const i=he.lFrame=Ne();return i.currentTNode=e,i.lView=t,!0}function Fe(t){const e=Ne(),n=t[ut];he.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ne(){const t=he.lFrame,e=null===t?null:t.child;return null===e?ze(t):e}function ze(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 Re(){const t=he.lFrame;return he.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Be=Re;function He(){const t=Re();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 he.lFrame.selectedIndex}function Ye(t){he.lFrame.selectedIndex=t}function je(){const t=he.lFrame;return re(t.tView,t.selectedIndex)}function Ze(){he.lFrame.currentNamespace=Jt}function $e(){he.lFrame.currentNamespace=null}function Ue(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[l]<0&&(t[kt]+=65536),(a>11>16&&(3&t[ct])===e){t[ct]+=2048,qt(4,s,o);try{o.call(s)}finally{qt(5,s,o)}}}else{qt(4,s,o);try{o.call(s)}finally{qt(5,s,o)}}}const Ke=-1;class Xe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function tn(t,e,n){const i=Xt(t);let r=0;for(;re){s=o-1;break}}}for(;o>16,i=e;for(;n>0;)i=i[xt],n--;return i}let un=!0;function cn(t){const e=un;return un=t,e}const dn=255,hn=5;let pn=0;function gn(t,e){const n=fn(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=vn(t,e),o=t.injectorIndex;if(sn(r)){const t=an(r),n=ln(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 fn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function vn(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[xt],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ke}function bn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=pn++);const r=i&dn,o=1<>hn)]|=o}(t,e,n)}function yn(t,e,n){if(n&T.Optional)return t;y(e,"NodeInjector")}function _n(t,e,n,i){if(n&T.Optional&&void 0===i&&(i=null),!(n&(T.Self|T.Host))){const r=t[vt],o=E(void 0);try{return r?r.get(e,i,n&T.Optional):I(e,i,n&T.Optional)}finally{E(o)}}return yn(i,e,n)}function Cn(t,e,n,i=T.Default,r){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?e&dn:xn:e}(n);if("function"==typeof o){if(!Le(e,t,i))return i&T.Host?yn(r,n,i):_n(e,n,i,r);try{const t=o(i);if(null!=t||i&T.Optional)return t;y(n)}finally{Be()}}else if("number"==typeof o){let r=null,s=fn(t,e),a=Ke,l=i&T.Host?e[Mt][gt]:null;for((-1===s||i&T.SkipSelf)&&(a=-1===s?vn(t,e):e[s+8],a!==Ke&&Pn(i,!1)?(r=e[ut],s=an(a),e=ln(a,e)):s=-1);-1!==s;){const t=e[ut];if(Sn(o,s,t.data)){const t=Mn(s,e,n,r,i,l);if(t!==wn)return t}a=e[s+8],a!==Ke&&Pn(i,e[ut].data[s+8]===l)&&Sn(o,s,e)?(r=t,s=an(a),e=ln(a,e)):s=-1}}}return _n(e,n,i,r)}const wn={};function xn(){return new Tn(ve(),ge())}function Mn(t,e,n,i,r,o){const s=e[ut],a=s.data[t+8],l=On(a,s,n,null==i?zt(a)&&un:i!=s&&!!(3&a.type),r&T.Host&&o===a);return null!==l?kn(e,s,l,a):wn}function On(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,u=t.directiveEnd,c=o>>20,d=r?a+c:u;for(let t=i?a:a+c;t=l&&e.type===n)return t}if(r){const t=s[l];if(t&&Bt(t)&&t.type===n)return l}return null}function kn(t,e,n,i){let r=t[n];const o=e.data;if(r instanceof Xe){const s=r;s.resolving&&function(t,e){throw new f("200",`Circular dependency in DI detected for ${t}`)}(b(o[n]));const a=cn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?E(s.injectImpl):null;Le(t,i,T.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=jt(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&&E(l),cn(a),s.resolving=!1,Be()}}return r}function Sn(t,e,n){const i=1<>hn)]&i)}function Pn(t,e){return!(t&T.Self||t&T.Host&&e)}class Tn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Cn(this._tNode,this._lView,t,n,e)}}function An(t){return D((()=>{const e=t.prototype.constructor,n=e[q]||En(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[q]||En(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t}))}function En(t){return m(t)?()=>{const e=En(g(t));return e&&e()}:Ht(t)}function In(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(Dn)?t[Dn]:Object.defineProperty(t,Dn,{value:[]})[Dn];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 Fn{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=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Nn=new Fn("AnalyzeForEntryComponents"),zn=Function;function Rn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Bn(t,e):e(t)))}function Hn(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 Yn(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 Zn(t,e){const n=$n(t,e);if(n>=0)return t[1|n]}function $n(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 Un={},Gn="__NG_DI_FLAG__",qn="ngTempTokenPath",Jn=/\n/gm,Qn="__source",Wn=l({provide:String,useValue:l});let Kn;function Xn(t){const e=Kn;return Kn=t,e}function ti(t,e=T.Default){if(void 0===Kn)throw new Error("inject() must be called from an injection context");return null===Kn?I(t,void 0,e):Kn.get(t,e&T.Optional?null:void 0,e)}function ei(t,e=T.Default){return(A||ti)(g(t),e)}const ni=ei;function ii(t){const e=[];for(let n=0;n({token:t}))),-1),si=ri(Ln("Optional"),8),ai=ri(Ln("Self"),2),li=ri(Ln("SkipSelf"),4);var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();const ci="__ngContext__";function di(t,e){t[ci]=e}function hi(t){const e=function(t){return t[ci]||null}(t);return e?Array.isArray(e)?e:e.lView:null}let pi;function gi(t,e){return pi(t,e)}function mi(t){const e=t[dt];return Ft(e)?e[dt]:e}function fi(t){return bi(t[Ct])}function vi(t){return bi(t[ht])}function bi(t){for(;null!==t&&!Ft(t);)t=t[ht];return t}function yi(t,e,n,i,r){if(null!=i){let o,s=!1;Ft(i)?o=i:Lt(i)&&(s=!0,i=i[lt]);const a=ee(i);0===t&&null!==n?null==r?Si(e,n,a):ki(e,n,a,r||null,!0):1===t&&null!==n?ki(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Ti(t,e);i&&function(t,e,n,i){Xt(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[Et];o!==ee(n)&&yi(e,t,i,o,r);for(let r=Dt;r0&&(t[n-1][ht]=i[ht]);const s=Vn(t,Dt+e);Hi(i[ut],r=i,r[yt],2,null,null),r[lt]=null,r[gt]=null;const a=s[St];null!==a&&a.detachView(s[ut]),i[dt]=null,i[ht]=null,i[ct]&=-129}var r;return i}function xi(t,e){if(!(256&e[ct])){const n=e[yt];Xt(n)&&n.destroyNode&&Hi(t,e,n,3,null,null),function(t){let e=t[Ct];if(!e)return Mi(t[ut],t);for(;e;){let n=null;if(Lt(e))n=e[Ct];else{const t=e[Dt];t&&(n=t)}if(!n){for(;e&&!e[ht]&&e!==t;)Lt(e)&&Mi(e[ut],e),e=e[dt];null===e&&(e=t),Lt(e)&&Mi(e[ut],e),n=e&&e[ht]}e=n}}(e)}}function Mi(t,e){if(!(256&e[ct])){e[ct]&=-129,e[ct]|=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 Ii}())||void 0===e?void 0:e.createHTML(t))||t}function $i(){if(void 0===Di&&(Di=null,H.trustedTypes))try{Di=H.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}function Ui(t){var e;return(null===(e=$i())||void 0===e?void 0:e.createHTML(t))||t}function Gi(t){var e;return(null===(e=$i())||void 0===e?void 0:e.createScriptURL(t))||t}class qi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ji extends qi{getTypeName(){return"HTML"}}class Qi extends qi{getTypeName(){return"Style"}}class Wi extends qi{getTypeName(){return"Script"}}class Ki extends qi{getTypeName(){return"URL"}}class Xi extends qi{getTypeName(){return"ResourceURL"}}function tr(t){return t instanceof qi?t.changingThisBreaksApplicationSecurity:t}function er(t,e){const n=nr(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 nr(t){return t instanceof qi&&t.getTypeName()||null}function ir(t){return new Ji(t)}function rr(t){return new Qi(t)}function or(t){return new Wi(t)}function sr(t){return new Ki(t)}function ar(t){return new Xi(t)}class lr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zi(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=Zi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0hr(t.trim()))).join(", ")),this.buf.push(" ",r,'="',Sr(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();yr.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 Or=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(Or,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(kr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Pr;function Tr(t,e){let n=null;try{Pr=Pr||function(t){const e=new ur(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zi(""),"text/html")}catch(t){return!1}}()?new lr(e):e}(t);let i=e?String(e):"";n=Pr.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=Pr.getInertBodyElement(i)}while(i!==o);return Zi((new Mr).sanitizeChildren(Ar(n)||n))}finally{if(n){const t=Ar(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ar(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Er=(()=>((Er=Er||{})[Er.NONE=0]="NONE",Er[Er.HTML=1]="HTML",Er[Er.STYLE=2]="STYLE",Er[Er.SCRIPT=3]="SCRIPT",Er[Er.URL=4]="URL",Er[Er.RESOURCE_URL=5]="RESOURCE_URL",Er))();function Ir(t){const e=Fr();return e?Ui(e.sanitize(Er.HTML,t)||""):er(t,"HTML")?Ui(tr(t)):Tr(Kt(),v(t))}function Dr(t){const e=Fr();return e?e.sanitize(Er.URL,t)||"":er(t,"URL")?tr(t):hr(v(t))}function Lr(t){const e=Fr();if(e)return Gi(e.sanitize(Er.RESOURCE_URL,t)||"");if(er(t,"ResourceURL"))return Gi(tr(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Fr(){const t=ge();return t&&t[_t]}function Nr(t){return t.ngOriginalError}function zr(t,...e){t.error(...e)}class Rr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t&&t.ngErrorLogger||zr}(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(Nr(t)):null}_findOriginalError(t){let e=t&&Nr(t);for(;e&&Nr(e);)e=Nr(e);return e||null}}const Br=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function Hr(t){return t.ownerDocument.defaultView}function Vr(t){return t.ownerDocument}function Yr(t){return t instanceof Function?t():t}function jr(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 Zr="ng-template";function $r(t,e,n){let i=0;for(;io?"":r[c+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==jr(e,u,0)||2&i&&u!==t){if(Jr(i))return!1;s=!0}}}}else{if(!s&&!Jr(i)&&!Jr(l))return!1;if(s&&Jr(l))continue;s=!1,i=l|1&i}}return Jr(i)||s}function Jr(t){return!(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||Jr(s)||(e+=Xr(o,r),r=""),i=s,o=o||!Jr(i);n++}return""!==r&&(e+=Xr(o,r)),e}const eo={};function no(t){io(me(),ge(),Ve()+t,we())}function io(t,e,n,i){if(!i)if(3&~e[ct]){const i=t.preOrderHooks;null!==i&&qe(e,i,0,n)}else{const i=t.preOrderCheckHooks;null!==i&&Ge(e,i,n)}Ye(n)}function ro(t,e){return t<<17|e<<2}function oo(t){return t>>17&32767}function so(t){return 2|t}function ao(t){return(131068&t)>>2}function lo(t,e){return-131069&t|e<<2}function uo(t){return 1|t}function co(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iPt&&io(t,e,Pt,we()),qt(s?2:0,r),n(i,r)}finally{Ye(o),qt(s?3:1,r)}}function yo(t,e,n){if(Nt(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 To(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ao(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Eo(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Bo(n)}}function Bo(t){for(let e=fi(t);null!==e;e=vi(e))for(let t=Dt;t0&&Bo(n)}const e=t[ut].components;if(null!==e)for(let n=0;n0&&Bo(i)}}function Ho(t,e){const n=se(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 qo(t){return t.cleanup||(t.cleanup=[])}function Jo(t,e){const n=t[vt],i=n?n.get(Rr,null):null;i&&i.handleError(e)}function Qo(t,e,n,i,r){for(let o=0;othis.processProvider(n,t,e))),Bn([t],(t=>this.processInjectorType(t,[],r))),this.records.set(Xo,cs(void 0,this));const o=this.records.get(es);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:c(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=Un,n=T.Default){this.assertNotDestroyed();const i=Xn(this),r=E(void 0);try{if(!(n&T.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof Fn)&&w(t);e=n&&this.injectableDefInScope(n)?cs(ls(t),ns):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const i=n&T.Self?os():this.parent;return e=n&T.Optional&&e===Un?null:e,i.get(t,e)}catch(e){if("NullInjectorError"===e.name){if((e[qn]=e[qn]||[]).unshift(c(t)),i)throw e;return function(t,e,n,i){const r=t[qn];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=c(e);if(Array.isArray(e))r=e.map(c).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):c(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Jn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[qn]=null,t}(e,t,"R3InjectorError",this.source)}throw e}finally{E(r),Xn(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach((t=>this.get(t)))}toString(){const t=[];return this.records.forEach(((e,n)=>t.push(c(n)))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=M(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=M(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{Bn(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||Y)))}}this.injectorDefTypes.add(o);const a=Ht(o)||(()=>new o);this.records.set(o,cs(a,ns));const l=i.providers;if(null!=l&&!s){const e=t;Bn(l,(t=>this.processProvider(t,e,l)))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=hs(t=g(t))?t:g(t&&t.provide);const r=function(t,e,n){return ds(t)?cs(void 0,t.useValue):cs(us(t),ns)}(t);if(hs(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=cs(void 0,ns,!0),e.factory=()=>ii(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===ns&&(e.value=is,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=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ls(t){const e=w(t),n=null!==e?e.factory:Ht(t);if(null!==n)return n;if(t instanceof Fn)throw new Error(`Token ${c(t)} is missing a ɵprov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Yn(e,"?");throw new Error(`Can't resolve all parameters for ${c(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[O]||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(hs(t)){const e=g(t);return Ht(e)||ls(e)}if(ds(t))i=()=>g(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ii(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ei(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ht(e)||ls(e);i=()=>new e(...ii(t.deps))}var r;return i}function cs(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 hs(t){return"function"==typeof t}const ps=function(t,e,n){return function(t,e=null,n=null,i){const r=ss(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)?ps(t,e,""):ps(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Un,t.NULL=new ts,t.ɵprov=_({token:t,providedIn:"any",factory:()=>ei(Xo)}),t.__NG_ELEMENT_ID__=-1,t})();function ms(t,e){Ue(hi(t)[ut],ve())}function fs(t){let e=(i=t.type,Object.getPrototypeOf(i.prototype).constructor),n=!0;var i;const r=[t];for(;e;){let i;if(Bt(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=vs(t.inputs),e.declaredInputs=vs(t.declaredInputs),e.outputs=vs(t.outputs);const n=i.hostBindings;n&&_s(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&bs(t,o),s&&ys(t,s),u(t.inputs,i.inputs),u(t.declaredInputs,i.declaredInputs),u(t.outputs,i.outputs),Bt(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=rn(r.hostAttrs,n=rn(n,r.hostAttrs))}}(r)}function vs(t){return t===V?{}:t===Y?[]:t}function bs(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ys(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function _s(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Cs=null;function ws(){if(!Cs){const t=H.Symbol;if(t&&t.iterator)Cs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ee(t[i.index])):i.index;if(Xt(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,h=!1;else{o=Ws(i,e,c,o,!1);const t=n.listen(g,r,o);d.push(o,t),u&&u.push(r,f,m,m+1)}}else o=Ws(i,e,c,o,!0),g.addEventListener(r,o,s),d.push(o),u&&u.push(r,f,m,s)}else o=Ws(i,e,c,o,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[r])){const t=g.length;if(t)for(let n=0;n0;)e=e[xt],t--;return e}(t,he.lFrame.contextLView))[ft]}(t)}function Xs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aa(t){return t.substring(sa.key,sa.keyEnd)}function la(t,e){const n=sa.textEnd;return n===e?-1:(e=sa.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,sa.key=e,n),ua(t,e,n))}function ua(t,e,n){for(;e=0;n=la(e,n))jn(t,aa(e),!0)}function ga(t,e,n,i){const r=ge(),o=me(),s=Se(2);o.firstUpdatePass&&fa(o,t,s,i),e!==eo&&Ps(r,s,e)&&ya(o,o.data[Ve()],r,r[yt],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=c(tr(t)))),t}(e,n),i,s)}function ma(t,e){return e>=t.expandoStartIndex}function fa(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[Ve()],s=ma(t,n);wa(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=Ae(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ba(n=va(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=va(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ao(i))return t[oo(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=va(null,t,e,n[1],i),n=ba(n,e.attrs,i),function(t,e,n,i){t[oo(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)&&(c=!0)}else u=n;if(r)if(0!==l){const e=oo(t[a+1]);t[i+1]=ro(e,a),0!==e&&(t[e+1]=lo(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=ro(a,0),0!==a&&(t[a+1]=lo(t[a+1],i)),a=i;else t[i+1]=ro(l,0),0===a?a=i:t[l+1]=lo(t[l+1],i),l=i;c&&(t[i+1]=so(t[i+1])),ra(t,u,i,!0),ra(t,u,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&$n(o,e)>=0&&(n[i+1]=uo(n[i+1]))}(e,u,t,i,o),s=ro(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function va(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,u=null===l;let c=n[r+1];c===eo&&(c=u?Y:void 0);let d=u?Zn(c,i):l===i?c:void 0;if(o&&!Ca(d)&&(d=Zn(e,i)),Ca(d)&&(a=d,s))return a;const h=t[r+1];r=s?oo(h):ao(h)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=Zn(t,i))}return a}function Ca(t){return void 0!==t}function wa(t,e){return!!(t.flags&(e?16:32))}function xa(t,e=""){const n=ge(),i=me(),r=t+Pt,o=i.firstCreatePass?po(i,r,1,e,null):i.data[r],s=n[r]=function(t,e){return Xt(t)?t.createText(e):t.createTextNode(e)}(n[yt],e);Fi(i,n,s,o),ye(o,!1)}function Ma(t){return Oa("",t,""),Ma}function Oa(t,e,n){const i=ge(),r=Is(i,t,e,n);return r!==eo&&Wo(i,Ve(),r),Oa}function ka(t,e,n,i,r){const o=ge(),s=function(t,e,n,i,r,o){const s=Ts(t,Oe(),n,r);return Se(2),s?e+v(n)+i+v(r)+o:eo}(o,t,e,n,i,r);return s!==eo&&Wo(o,Ve(),s),ka}function Sa(t,e,n){const i=ge();return Ps(i,ke(),e)&&ko(me(),je(),i,t,e,i[yt],n,!0),Sa}function Pa(t,e,n){const i=ge();if(Ps(i,ke(),e)){const r=me(),o=je();ko(r,o,i,t,e,function(t,e,n){return(null===t||Bt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[Tt])return t;t=t[lt]}return null}(n[e.index])),n[yt]}(Ae(r.data),o,i),n,!0)}return Pa}const Ta=void 0;var Aa=["en",[["a","p"],["AM","PM"],Ta],[["AM","PM"],Ta,Ta],[["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"]],Ta,[["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"]],Ta,[["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}",Ta,"{1} 'at' {0}",Ta],[".",",",";","%","+","-","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 Ea={};function Ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=La(e);if(n)return n;const i=e.split("-")[0];if(n=La(i),n)return n;if("en"===i)return Aa;throw new Error(`Missing locale data for the locale "${t}".`)}function Da(t){return Ia(t)[Fa.PluralCase]}function La(t){return t in Ea||(Ea[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),Ea[t]}var Fa=(()=>((Fa=Fa||{})[Fa.LocaleId=0]="LocaleId",Fa[Fa.DayPeriodsFormat=1]="DayPeriodsFormat",Fa[Fa.DayPeriodsStandalone=2]="DayPeriodsStandalone",Fa[Fa.DaysFormat=3]="DaysFormat",Fa[Fa.DaysStandalone=4]="DaysStandalone",Fa[Fa.MonthsFormat=5]="MonthsFormat",Fa[Fa.MonthsStandalone=6]="MonthsStandalone",Fa[Fa.Eras=7]="Eras",Fa[Fa.FirstDayOfWeek=8]="FirstDayOfWeek",Fa[Fa.WeekendRange=9]="WeekendRange",Fa[Fa.DateFormat=10]="DateFormat",Fa[Fa.TimeFormat=11]="TimeFormat",Fa[Fa.DateTimeFormat=12]="DateTimeFormat",Fa[Fa.NumberSymbols=13]="NumberSymbols",Fa[Fa.NumberFormats=14]="NumberFormats",Fa[Fa.CurrencyCode=15]="CurrencyCode",Fa[Fa.CurrencySymbol=16]="CurrencySymbol",Fa[Fa.CurrencyName=17]="CurrencyName",Fa[Fa.Currencies=18]="Currencies",Fa[Fa.Directionality=19]="Directionality",Fa[Fa.PluralCase=20]="PluralCase",Fa[Fa.ExtraData=21]="ExtraData",Fa))();const Na="en-US";let za=Na;function Ra(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&&(za=t.toLowerCase().replace(/_/g,"-"))}function Ba(t,e,n,i,r){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(hs(t)||!t.multi){const i=new Xe(l,r,Fs),p=Ya(a,e,r?c:c+h,d);-1===p?(bn(gn(u,s),o,a),Ha(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=Ya(a,e,c+h,d),g=Ya(a,e,c,c+h),m=p>=0&&n[p],f=g>=0&&n[g];if(r&&!f||!r&&!m){bn(gn(u,s),o,a);const c=function(t,e,n,i,r){const o=new Xe(t,n,Fs);return o.multi=[],o.index=e,o.componentProviders=0,Va(o,r,i&&!n),o}(r?Za:ja,n.length,r,i,l);!r&&f&&(n[g].providerFactory=c),Ha(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(c),s.push(c)}else Ha(o,t,p>-1?p:g,Va(n[r?g:p],l,!r&&i));!r&&i&&f&&n[g].componentProviders++}}}function Ha(t,e,n,i){const r=hs(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 Va(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ya(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=Bt(t);Ba(n,i.data,i.blueprint,r,!0),Ba(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Ga{}class qa{}class Ja{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${c(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Qa=(()=>{class t{}return t.NULL=new Ja,t})();function Wa(...t){}function Ka(t,e){return new tl(ie(t,e))}const Xa=function(){return Ka(ve(),ge())};let tl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Xa,t})();function el(t){return t instanceof tl?t.nativeElement:t}class nl{}let il=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>rl(),t})();const rl=function(){const t=ge(),e=se(ve().index,t);return function(t){return t[yt]}(Lt(e)?e:t)};let ol=(()=>{class t{}return t.ɵprov=_({token:t,providedIn:"root",factory:()=>null}),t})();class sl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const al=new sl("12.2.17");class ll{constructor(){}supports(t){return Ms(t)}create(t){return new cl(t)}}const ul=(t,e)=>e;class cl{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||ul}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 dl(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 pl),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 pl),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 dl{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 hl{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 pl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new hl,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 gl(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 vl(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 vl{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 bl(){return new yl([new ll])}let yl=(()=>{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||bl()),deps:[[t,new li,new si]]}}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=_({token:t,providedIn:"root",factory:bl}),t})();function _l(){return new Cl([new ml])}let Cl=(()=>{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||_l()),deps:[[t,new li,new si]]}}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=_({token:t,providedIn:"root",factory:_l}),t})();function wl(t,e,n,i,r=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&i.push(ee(o)),Ft(o))for(let t=Dt;t-1&&(wi(t,n),Vn(e,n))}this._attachedToViewContainer=!1}xi(this._lView[ut],this._lView)}onDestroy(t){Mo(this._lView[ut],this._lView,null,t)}markForCheck(){Yo(this._cdRefInjectingView||this._lView)}detach(){this._lView[ct]&=-129}reattach(){this._lView[ct]|=128}detectChanges(){jo(this._lView[ut],this._lView,this.context)}checkNoChanges(){!function(t,e,n){xe(!0);try{jo(t,e,n)}finally{xe(!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,Hi(this._lView[ut],t=this._lView,t[yt],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ml extends xl{constructor(t){super(t),this._view=t}detectChanges(){Zo(this._view)}checkNoChanges(){!function(t){xe(!0);try{Zo(t)}finally{xe(!1)}}(this._view)}get context(){return null}}const Ol=function(t){return function(t,e,n){if(zt(t)&&!n){const n=se(t.index,e);return new xl(n,n)}if(47&t.type){const t=e[Mt];return new xl(t,e)}return null}(ve(),ge(),!(16&~t))};let kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ol,t})();const Sl=[new ml],Pl=new yl([new ll]),Tl=new Cl(Sl),Al=function(){return Ll(ve(),ge())};let El=(()=>{class t{}return t.__NG_ELEMENT_ID__=Al,t})();const Il=El,Dl=class extends Il{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ho(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null),i=this._declarationLView[this._declarationTContainer.index];n[Ot]=i;const r=this._declarationLView[St];return null!==r&&(n[St]=r.createEmbeddedView(e)),mo(e,n,t),new xl(n)}};function Ll(t,e){return 4&t.type?new Dl(e,t,Ka(t,e)):null}class Fl{}class Nl{}const zl=function(){return jl(ve(),ge())};let Rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=zl,t})();const Bl=Rl,Hl=class extends Bl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new Tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=vn(this._hostTNode,this._hostLView);if(sn(t)){const e=ln(t,this._hostLView),n=an(t),i=e[ut].data[n+8];return new Tn(i,e)}return new Tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Vl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Dt}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(Fl,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(Ft(n[dt])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[dt],i=new Hl(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=Dt+i,o=n.length;i>0&&(n[r-1][ht]=e),iBr});class ql extends qa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(to).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ul(this.componentDef.inputs)}get outputs(){return Ul(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,Zl,r);return o!==Zl||i===Zl?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(nl,te),s=r.get(ol,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(Xt(t)){const i=n===F.ShadowDom;return t.selectRootElement(e,i)}let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):_i(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Jt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,d={components:[],scheduler:Br,clean:Uo,playerHandler:null,flags:0},h=xo(0,null,null,1,0,null,null,null,null,null),p=ho(null,h,d,c,null,null,o,a,s,r);let g,m;Fe(p);try{const t=function(t,e,n,i,r,o){const s=n[ut],a=Pt;n[a]=t;const l=po(s,a,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Ko(l,u,!0),null!==t&&(tn(r,t,u),null!==l.classes&&ji(r,t,l.classes),null!==l.styles&&Yi(r,t,l.styles)));const c=i.createRenderer(t,e),d=ho(n,wo(e),null,e.onPush?64:16,n[a],l,i,c,null,null);return s.firstCreatePass&&(bn(gn(l,n),s,e.type),Ao(s,l),Io(l,n.length,1)),Vo(n,d),n[a]=d}(u,this.componentDef,p,o,a);if(u)if(n)tn(a,u,["ng-version",al.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&ji(a,u,e.join(" "))}if(m=re(h,Pt),void 0!==e){const t=m.projection=[];for(let n=0;nt(s,e))),e.contentQueries){const t=ve();e.contentQueries(1,s,t.directiveStart)}const a=ve();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ye(a.index),Po(n[ut],a,0,a.directiveStart,a.directiveEnd,e),To(e,s)),s}(t,this.componentDef,p,d,[ms]),mo(h,p,null)}finally{He()}return new Jl(this.componentType,g,Ka(m,p),p,m)}}class Jl extends Ga{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Ml(i),this.componentType=t}get injector(){return new Tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ql=new Map;class Wl extends Fl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $l(this);const n=at(t),i=t[G]||null;i&&Ra(i),this._bootstrapComponents=Yr(n.bootstrap),this._r3Injector=ss(t,e,[{provide:Fl,useValue:this},{provide:Qa,useValue:this.componentFactoryResolver}],c(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=gs.THROW_IF_NOT_FOUND,n=T.Default){return t===gs||t===Fl||t===Xo?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 Kl extends Nl{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(n){const i=at(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${c(e)} vs ${c(e.name)}`)}(r,Ql.get(r),n),Ql.set(r,n));const o=Yr(i.imports);for(const n of o)e.has(n)||(e.add(n),t(n))}(t)}(t)}create(t){return new Wl(this.moduleType,t)}}function Xl(t,e,n){const i=Me()+t,r=ge();return r[i]===eo?ks(r,i,n?e.call(n):e()):Ss(r,i)}function tu(t,e,n,i){return su(ge(),Me(),t,e,n,i)}function eu(t,e,n,i,r){return au(ge(),Me(),t,e,n,i,r)}function nu(t,e,n,i,r,o,s){return lu(ge(),Me(),t,e,n,i,r,o,s)}function iu(t,e,n,i,r,o,s,a){const l=Me()+t,u=ge(),c=As(u,l,n,i,r,o);return Ps(u,l+4,s)||c?ks(u,l+5,a?e.call(a,n,i,r,o,s):e(n,i,r,o,s)):Ss(u,l+5)}function ru(t,e,n,i,r,o,s,a,l){const u=Me()+t,c=ge(),d=As(c,u,n,i,r,o);return Ts(c,u+4,s,a)||d?ks(c,u+6,l?e.call(l,n,i,r,o,s,a):e(n,i,r,o,s,a)):Ss(c,u+6)}function ou(t,e){const n=t[e];return n===eo?void 0:n}function su(t,e,n,i,r,o){const s=e+n;return Ps(t,s,r)?ks(t,s+1,o?i.call(o,r):i(r)):ou(t,s+1)}function au(t,e,n,i,r,o,s){const a=e+n;return Ts(t,a,r,o)?ks(t,a+2,s?i.call(s,r,o):i(r,o)):ou(t,a+2)}function lu(t,e,n,i,r,o,s,a,l){const u=e+n;return As(t,u,r,o,s,a)?ks(t,u+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):ou(t,u+4)}function uu(t,e){const n=me();let i;const r=t+Pt;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 f("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=Ht(i.type)),s=E(Fs);try{const t=cn(!1),e=o();return cn(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{E(s)}}function cu(t,e,n){const i=t+Pt,r=ge(),o=oe(r,i);return fu(r,mu(r,i)?su(r,Me(),e,o.transform,n,o):o.transform(n))}function du(t,e,n,i){const r=t+Pt,o=ge(),s=oe(o,r);return fu(o,mu(o,r)?au(o,Me(),e,s.transform,n,i,s):s.transform(n,i))}function hu(t,e,n,i,r){const o=t+Pt,s=ge(),a=oe(s,o);return fu(s,mu(s,o)?function(t,e,n,i,r,o,s,a){const l=e+n;return function(t,e,n,i,r){const o=Ts(t,e,n,i);return Ps(t,e+2,r)||o}(t,l,r,o,s)?ks(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ou(t,l+3)}(s,Me(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function pu(t,e,n,i,r,o){const s=t+Pt,a=ge(),l=oe(a,s);return fu(a,mu(a,s)?lu(a,Me(),e,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function gu(t,e,n){const i=t+Pt,r=ge(),o=oe(r,i);return fu(r,mu(r,i)?function(t,e,n,i,r,o){let s=e+n,a=!1;for(let e=0;enull),u=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),u=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(l=bu(l),a&&(a=bu(a)),u&&(u=bu(u)));const c=super.subscribe({next:a,error:l,complete:u});return t instanceof r.w&&t.add(c),c}}function bu(t){return e=>{setTimeout(t,void 0,e)}}const yu=vu;function _u(){return this._results[ws()]()}class Cu{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=ws(),n=Cu.prototype;n[e]||(n[e]=_u)}get changes(){return this._changes||(this._changes=new yu)}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=Rn(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=Dt;t{class t{constructor(t){this.appInits=t,this.resolve=Wa,this.reject=Wa,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)(ei(Bu,8))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const Vu=new Fn("AppId"),Yu={provide:Vu,useFactory:function(){return`${ju()}${ju()}${ju()}`},deps:[]};function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zu=new Fn("Platform Initializer"),$u=new Fn("Platform ID"),Uu=new Fn("appBootstrapListener");let Gu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const qu=new Fn("LocaleId"),Ju=new Fn("DefaultCurrencyCode");class Qu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wu=function(t){return new Kl(t)},Ku=Wu,Xu=function(t){return Promise.resolve(Wu(t))},tc=function(t){const e=Wu(t),n=Yr(at(t).declarations).reduce(((t,e)=>{const n=st(e);return n&&t.push(new ql(n)),t}),[]);return new Qu(e,n)},ec=tc,nc=function(t){return Promise.resolve(tc(t))};let ic=(()=>{class t{constructor(){this.compileModuleSync=Ku,this.compileModuleAsync=Xu,this.compileModuleAndAllComponentsSync=ec,this.compileModuleAndAllComponentsAsync=nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const rc=(()=>Promise.resolve(0))();function oc(t){"undefined"==typeof Zone?rc.then((()=>{t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class sc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yu(!1),this.onMicrotaskEmpty=new yu(!1),this.onStable=new yu(!1),this.onError=new yu(!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=H.requestAnimationFrame,e=H.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(H,(()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{t.lastRequestAnimationFrameId=-1,uc(t),t.isCheckStableRunning=!0,lc(t),t.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),t.fakeTopEventTask.invoke()})),uc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return cc(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),dc(t)}},onInvoke:(n,i,r,o,s,a,l)=>{try{return cc(t),n.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),dc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uc(t),lc(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(!sc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(sc.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,ac,Wa,Wa);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 ac={};function lc(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 uc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dc(t){t._nesting--,lc(t)}class hc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yu,this.onMicrotaskEmpty=new yu,this.onStable=new yu,this.onError=new yu}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 pc=(()=>{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:()=>{sc.assertNotInAngularZone(),oc((()=>{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())oc((()=>{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)(ei(sc))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})(),gc=(()=>{class t{constructor(){this._applications=new Map,bc.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 bc.findTestabilityInTree(this,t,e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();class mc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function fc(t){bc=t}let vc,bc=new mc,yc=!0,_c=!1;function Cc(){return _c=!0,yc}function wc(){if(_c)throw new Error("Cannot enable prod mode after platform setup.");yc=!1}let xc=function(){};const Mc=new Fn("AllowMultipleToken");class Oc{constructor(t,e){this.name=t,this.token=e}}function kc(t,e,n=[]){const i=`Platform: ${e}`,r=new Fn(i);return(e=[])=>{let o=Sc();if(!o||o.injector.get(Mc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:es,useValue:"platform"});!function(t){if(vc&&!vc.destroyed&&!vc.injector.get(Mc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xc(),vc=t.get(Pc);const e=t.get(Zu,null);e&&e.forEach((t=>t()))}(gs.create({providers:t,name:i}))}return function(t){const e=Sc();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 Sc(){return vc&&!vc.destroyed?vc:null}let Pc=(()=>{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 hc:("zone.js"===t?void 0:t)||new sc({enableLongStackTrace:Cc(),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:sc,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(Rr,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((()=>{Ec(this._modules,r),t.unsubscribe()}))})),function(t,e,n){try{const i=n();return Us(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(Hu);return t.runInitializers(),t.donePromise.then((()=>(Ra(r.injector.get(qu,Na)||Na),this._moduleDoBootstrap(r),r)))}))}))}bootstrapModule(t,e=[]){const n=Tc({},e);return function(t,e,n){const i=new Kl(n);return Promise.resolve(i)}(this.injector,0,t).then((t=>this.bootstrapModuleFactory(t,n)))}_moduleDoBootstrap(t){const e=t.injector.get(Ac);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((t=>e.bootstrap(t)));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${c(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)(ei(gs))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Tc(t,e){return Array.isArray(e)?e.reduce(Tc,t):Object.assign(Object.assign({},t),e)}let Ac=(()=>{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()}))})),u=new o.y((t=>{let e;this._zone.runOutsideAngular((()=>{e=this._zone.onStable.subscribe((()=>{sc.assertNotInAngularZone(),oc((()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))}))}))}));const n=this._zone.onUnstable.subscribe((()=>{sc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular((()=>{t.next(!1)})))}));return()=>{e.unsubscribe(),n.unsubscribe()}}));this.isStable=(0,s.T)(l,u.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 qa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Fl),r=e||n.selector,o=n.create(gs.NULL,[],r,i),s=o.location.nativeElement,a=o.injector.get(pc,null),l=a&&o.injector.get(gc);return a&&l&&l.registerApplication(s,a),o.onDestroy((()=>{this.detachView(o.hostView),Ec(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;Ec(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Uu,[]).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)(ei(sc),ei(gs),ei(Rr),ei(Qa),ei(Hu))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Ec(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ic{}class Dc{}const Lc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Fc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Lc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(69153)(e).then((t=>t[i])).then((t=>Nc(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(69153)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then((t=>t[i+r])).then((t=>Nc(t,e,i)))}}return t.ɵfac=function(e){return new(e||t)(ei(ic),ei(Dc,8))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Nc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const zc=function(t){return null},Rc=kc(null,"core",[{provide:$u,useValue:"unknown"},{provide:Pc,deps:[gs]},{provide:gc,deps:[]},{provide:Gu,deps:[]}]),Bc=[{provide:Ac,useClass:Ac,deps:[sc,gs,Rr,Qa,Hu]},{provide:Gl,deps:[sc],useFactory:function(t){let e=[];return t.onStable.subscribe((()=>{for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Hu,useClass:Hu,deps:[[new si,Bu]]},{provide:ic,useClass:ic,deps:[]},Yu,{provide:yl,useFactory:function(){return Pl},deps:[]},{provide:Cl,useFactory:function(){return Tl},deps:[]},{provide:qu,useFactory:function(t){return Ra(t=t||"undefined"!=typeof $localize&&$localize.locale||Na),t},deps:[[new oi(qu),new si,new li]]},{provide:Ju,useValue:"USD"}];let Hc=(()=>{class t{constructor(t){}}return t.ɵfac=function(e){return new(e||t)(ei(Ac))},t.ɵmod=et({type:t}),t.ɵinj=C({providers:Bc}),t})()},24751:(t,e,n)=>{n.d(e,{gN:()=>R,Fj:()=>p,NI:()=>ut,oH:()=>Ct,u:()=>Ot,cw:()=>ct,sg:()=>xt,u5:()=>St,Cf:()=>f,JU:()=>c,a5:()=>B,JJ:()=>V,JL:()=>Y,On:()=>gt,eT:()=>bt,UX:()=>Pt,kI:()=>y,_Y:()=>mt});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})(),u=(()=>{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 c=new i.OlP("NgValueAccessor"),d={provide:c,useExisting:(0,i.Gpc)((()=>p)),multi:!0},h=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(h,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([d]),i.qOj]}),t})();function g(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const f=new i.OlP("NgValidators"),v=new i.OlP("NgAsyncValidators"),b=/^(?=.{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(g(e.value)||g(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(g(e.value)||g(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 g(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 g(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return _;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(g(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 k(t)}static composeAsync(t){return P(t)}}function _(t){return null}function C(t){return null!=t}function w(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 M(t,e){return e.map((e=>e(t)))}function O(t){return t.map((t=>function(t){return!t.validate}(t)?t:e=>t.validate(e)))}function k(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return x(M(t,e))}}function S(t){return null!=t?k(O(t)):null}function P(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=M(t,e).map(w);return(0,s.D)(n).pipe((0,a.U)(x))}}function T(t){return null!=t?P(O(t)):null}function A(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function E(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 F(t,e){const n=D(e);return D(t).forEach((t=>{L(n,t)||n.push(t)})),n}function N(t,e){return D(e).filter((e=>!L(t,e)))}let z=(()=>{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=S(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=T(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 z{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 z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class H{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 V=(()=>{class t extends H{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})(),Y=(()=>{class t extends H{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 j(t,e){return[...e.path,t]}function Z(t,e){G(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&&J(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&&J(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 $(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange((()=>{})))}function U(t,e){t.forEach((t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}))}function G(t,e){const n=E(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();U(e._rawValidators,r),U(e._rawAsyncValidators,r)}function q(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=E(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 U(e._rawValidators,i),U(e._rawAsyncValidators,i),n}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Q(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function W(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)===u?i=t:r=t)})),r||i||n||null}function K(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X="VALID",tt="INVALID",et="PENDING",nt="DISABLED";function it(t){return(at(t)?t.validators:t)||null}function rt(t){return Array.isArray(t)?S(t):t||null}function ot(t,e){return(at(e)?e.asyncValidators:t)||null}function st(t){return Array.isArray(t)?T(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{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=rt(this._rawValidators),this._composedAsyncValidatorFn=st(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===X}get invalid(){return this.status===tt}get pending(){return this.status==et}get disabled(){return this.status===nt}get enabled(){return this.status!==nt}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=rt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=st(t)}addValidators(t){this.setValidators(F(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(F(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(N(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(N(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=et,!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=nt,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=X,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!==X&&this.status!==et||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()?nt:X}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const e=w(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 dt&&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()?nt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(tt)?tt:X}_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){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}}class ut extends lt{constructor(t=null,e,n){super(it(e),ot(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){K(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){K(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 lt{constructor(t,e,n){super(it(e),ot(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 ut?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 dt extends lt{constructor(t,e,n){super(it(e),ot(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 ut?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)((()=>gt))},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends B{constructor(t,e,n,r){super(),this.control=new ut,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=W(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Q(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?j(this.name,this._parent):[this.name]}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(){Z(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){pt.then((()=>{this.control.setValue(t,{emitViewToModelChange:!1})}))}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;pt.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(f,10),i.Y36(v,10),i.Y36(c,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})(),mt=(()=>{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})(),ft=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const vt={provide:c,useExisting:(0,i.Gpc)((()=>bt)),multi:!0};let bt=(()=>{class t extends u{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([vt]),i.qOj]}),t})();const yt=new i.OlP("NgModelWithFormControlWarning"),_t={provide:B,useExisting:(0,i.Gpc)((()=>Ct))};let Ct=(()=>{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=W(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&$(e,this,!1),Z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Q(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$(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(f,10),i.Y36(v,10),i.Y36(c,10),i.Y36(yt,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([_t]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const wt={provide:R,useExisting:(0,i.Gpc)((()=>xt))};let xt=(()=>{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&&(q(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 Z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$(t.control||null,t,!1),K(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&&($(e||null,t),n instanceof ut&&(Z(n,t),t.control=n))})),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){G(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 q(t,e)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange((()=>{}))}_updateValidators(){G(this.form,this),this._oldForm&&q(this._oldForm,this)}_checkFormPresent(){this.form}}return t.ɵfac=function(e){return new(e||t)(i.Y36(f,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})();const Mt={provide:B,useExisting:(0,i.Gpc)((()=>Ot))};let Ot=(()=>{class t extends B{constructor(t,e,n,r,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=W(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Q(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return j(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,13),i.Y36(f,10),i.Y36(v,10),i.Y36(c,10),i.Y36(yt,8))},t.ɵdir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Mt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})(),kt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[ft]]}),t})(),St=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[kt]}),t})(),Pt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:yt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[kt]}),t})()},91211:(t,e,n)=>{n.d(e,{b2:()=>Z,H7:()=>N,s3:()=>p,Dx:()=>U,q6:()=>Y,se:()=>k});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 u=new r.OlP("TRANSITION_ID"),c=[{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 h=(()=>{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 g=(()=>{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 f{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(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(((e,n)=>{this._addStylesToHost(t,n,e)}))}ngOnDestroy(){this._hostNodes.forEach((t=>t.forEach(b)))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function b(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/"},_=/%COMP%/g,C="%COMP%",w=`_nghost-${C}`,x=`_ngcontent-${C}`;function M(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let k=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(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 P(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 T(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=M(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(g),r.LFG(v),r.LFG(r.AFp))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class S{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,O(n)):this.eventManager.addEventListener(t,e,O(n))}}class P extends S{constructor(t,e,n,i){super(t),this.component=n;const r=M(i+"-"+n.id,n.styles,[]);var o;e.addStyles(r),this.contentAttr=(o=i+"-"+n.id,x.replace(_,o)),this.hostAttr=function(t){return w.replace(_,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 T extends S{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=M(i.id,i.styles,[]);for(let t=0;t{class t extends m{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 E=["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 F=(()=>{class t extends m{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(E.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"),E.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})(),N=(()=>{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 z(t){return new R(t.get(i.K0))}let R=(()=>{class t extends N{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 z((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const B=i.bD,H=[{provide:r.Lbi,useValue:B},{provide:r.g9A,useValue:function(){s.makeCurrent(),d.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}],V=(r.Tiy,i.K0,[]),Y=(0,r.eFA)(r._c5,"browser",H),j=[V,{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:F,multi:!0,deps:[i.K0]},[],{provide:k,useClass:k,deps:[g,v,r.AFp]},{provide:r.FYo,useExisting:k},{provide:f,useExisting:v},{provide:v,useClass:v,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:g,useClass:g,deps:[p,r.R0b]},{provide:i.JF,useClass:h,deps:[]},[]];let Z=(()=>{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:u,useExisting:r.AFp},c]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(t,12))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:j,imports:[i.ez,r.hGG]}),t})();function $(){return new U((0,r.LFG)(i.K0))}let U=(()=>{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:$,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},34016:(t,e,n)=>{n.d(e,{gz:()=>Ut,m2:()=>H,F0:()=>fn,Od:()=>Cn,yS:()=>yn,Bz:()=>In,lC:()=>wn,Xs:()=>tt,Hx:()=>xt});var i=n(12057),r=n(74788),o=n(97968),s=n(25917),a=n(26215),l=n(9112),u=n(29856),c=n(13410),d=n(22416),h=n(41439),p=n(59193),g=n(52441),m=n(79765),f=n(45435),v=n(77393),b=n(7108);function y(t){return function(e){return 0===t?(0,p.c)():e.lift(new _(t))}}class _{constructor(t){if(this.total=t,this.total<0)throw new b.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C 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 ut(t){return Array.prototype.concat.apply([],t)}function ct(t){return t.length>0?t[t.length-1]:null}function dt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ht(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(!wt(e.segments,n.segments))return!1;if(!bt(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:ft},gt={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 mt(t,e,n){return pt[n.paths](t.root,e.root,n.matrixParams)&>[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function ft(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!!wt(r,n)&&!e.hasChildren()&&!!bt(r,n,i)}if(t.segments.length===n.length){if(!wt(t.segments,n))return!1;if(!bt(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ft(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!!wt(t.segments,r)&&!!bt(t.segments,r,i)&&!!t.children[et]&&vt(t.children[et],e,o,i)}}function bt(t,e,n){return e.every(((e,i)=>gt[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 Ot.serialize(this)}}class _t{constructor(t,e){this.segments=t,this.children=e,this.parent=null,dt(e,((t,e)=>t.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kt(this)}}class Ct{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 wt(t,e){return t.length===e.length&&t.every(((t,n)=>t.path===e[n].path))}class xt{}class Mt{parse(t){const e=new Rt(t);return new yt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${St(t.root,!0)}`,n=function(t){const e=Object.keys(t).map((e=>{const n=t[e];return Array.isArray(n)?n.map((t=>`${Tt(e)}=${Tt(t)}`)).join("&"):`${Tt(e)}=${Tt(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 Ot=new Mt;function kt(t){return t.segments.map((t=>Dt(t))).join("/")}function St(t,e){if(!t.hasChildren())return kt(t);if(e){const e=t.children[et]?St(t.children[et],!1):"",n=[];return dt(t.children,((t,e)=>{e!==et&&n.push(`${e}:${St(t,!1)}`)})),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return dt(t.children,((t,i)=>{i===et&&(n=n.concat(e(t,i)))})),dt(t.children,((t,i)=>{i!==et&&(n=n.concat(e(t,i)))})),n}(t,((e,n)=>n===et?[St(t.children[et],!1)]:[`${n}:${St(e,!1)}`]));return 1===Object.keys(t.children).length&&null!=t.children[et]?`${kt(t)}/${e[0]}`:`${kt(t)}/(${e.join("//")})`}}function Pt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return Pt(t).replace(/%3B/gi,";")}function At(t){return Pt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(t){return decodeURIComponent(t)}function It(t){return Et(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 Ft(t){const e=t.match(Lt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _t([],{}):new _t([],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 _t(t,e)),n}parseSegment(){const t=Ft(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ct(Et(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ft(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ft(this.remaining);t&&(n=t,this.capture(n))}t[Et(e)]=Et(n)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);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(zt);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=Ft(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 _t([],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=Ht(t,this._root);return e?e.children.map((t=>t.value)):[]}firstChild(t){const e=Ht(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Vt(t,this._root);return e.length<2?[]:e[e.length-2].children.map((t=>t.value)).filter((e=>e!==t))}pathFromRoot(t){return Vt(t,this._root).map((t=>t.value))}}function Ht(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ht(t,n);if(e)return e}return null}function Vt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Vt(t,n);if(i.length)return i.unshift(e),i}return[]}class Yt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function jt(t){const e={};return t&&t.children.forEach((t=>e[t.value.outlet]=t)),e}class Zt extends Bt{constructor(t,e){super(t),this.snapshot=e,Qt(this,t)}toString(){return this.snapshot.toString()}}function $t(t,e){const n=function(t,e){const n=new qt([],{},{},"",{},et,e,null,t.root,-1,{});return new Jt("",new Yt(n,[]))}(t,e),i=new a.X([new Ct("",{})]),r=new a.X({}),o=new a.X({}),s=new a.X({}),l=new a.X(""),u=new Ut(i,r,s,l,o,et,e,n.root);return u.snapshot=n.root,new Zt(new Yt(u,[]),n)}class Ut{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,O.U)((t=>it(t))))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,O.U)((t=>it(t))))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gt(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 qt{constructor(t,e,n,i,r,o,s,a,l,u,c){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=u,this._resolve=c}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,Qt(this,e)}toString(){return Wt(this._root)}}function Qt(t,e){e.value._routerState=t,e.children.forEach((e=>Qt(t,e)))}function Wt(t){const e=t.children.length>0?` { ${t.children.map(Wt).join(", ")} } `:"";return`${t.value}${e}`}function Kt(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||Xt(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 Yt(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 Ut(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 Yt(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 dt(t.children,((t,r)=>{i[r]=t===e?n:oe(t,e,n)})),new _t(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!==ct(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 _t([],{})),0===t.segments.length&&t.hasChildren())return ue(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))})),dt(t.children,((t,e)=>{void 0===i[e]&&(r[e]=t)})),new _t(t.segments,r)}}function ce(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ce(new _t([],{}),0,t))})),e}function he(t){const e={};return dt(t,((t,n)=>e[n]=`${t}`)),e}function pe(t,e,n){return t==n.path&&at(e,n.parameters)}class ge{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),Kt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=jt(e);t.children.forEach((t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]})),dt(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=jt(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=jt(e);t.children.forEach((t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new X(t.value.snapshot))})),t.children.length&&this.forwardEvent(new W(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Kt(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),me(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 me(t){Kt(t.value),t.children.forEach(me)}class fe{constructor(t,e){this.routes=t,this.module=e}}function ve(t){return"function"==typeof t}function be(t){return t instanceof yt}const ye=Symbol("INITIAL_VALUE");function _e(){return(0,k.w)((t=>(0,l.aj)(t.map((t=>t.pipe((0,S.q)(1),(0,P.O)(ye))))).pipe((0,T.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||be(i))return i}return t}),t)}),ye),(0,f.h)((t=>t!==ye)),(0,O.U)((t=>be(t)?t:!0===t)),(0,S.q)(1))))}let Ce=(()=>{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[wn]},encapsulation:2}),t})();function we(t,e=""){for(let n=0;nke(t)===e));return n.push(...t.filter((t=>ke(t)!==e))),n}const Pe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Te(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Pe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(n,t,e);if(!r)return Object.assign({},Pe);const o={};dt(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=>Ee(t,e,n)&&ke(n)!==et))}(t,n,i)){const r=new _t(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&&ke(i)!==et){const n=new _t([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[ke(i)]=n}return r}(t,e,i,new _t(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=>Ee(t,e,n)))}(t,n,i)){const o=new _t(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(Ee(t,n,a)&&!r[ke(a)]){const n=new _t([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[ke(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 _t(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Ee(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ie(t,e,n,i){return!!(ke(t)===i||i!==et&&Ee(e,n,t))&&("**"===t.path||Te(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 Fe{constructor(t){this.urlTree=t}}function Ne(t){return new u.y((e=>e.error(new Le(t))))}function ze(t){return new u.y((e=>e.error(new Fe(t))))}function Re(t){return new u.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 _t(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,O.U)((t=>this.createUrlTree(He(t),this.urlTree.queryParams,this.urlTree.fragment)))).pipe((0,A.K)((t=>{if(t instanceof Fe)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,O.U)((e=>this.createUrlTree(He(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 _t([],{[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,O.U)((t=>new _t([],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,E.b)((i=>{const r=n.children[i],o=Se(e,i);return this.expandSegmentGroup(t,o,r,i).pipe((0,O.U)((t=>({segment:t,outlet:i}))))})),(0,T.R)(((t,e)=>(t[e.outlet]=e.segment,t)),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,f.h)(((e,n)=>t(e,n,i))):M.y,y(1),n?(0,x.d)(e):(0,w.T)((()=>new c.K)))}())}expandSegment(t,e,n,i,r,a){return(0,o.D)(n).pipe((0,E.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 c.K||"EmptyError"===t.name){if(De(e,i,r))return(0,s.of)(new _t([],{}));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):Ne(e):Ne(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("/")?ze(r):this.lineralizeSegments(n,r).pipe((0,D.zg)((n=>{const r=new _t(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:u}=Te(e,i,r);if(!s)return Ne(e);const c=this.applyRedirectCommands(a,i.redirectTo,u);return i.redirectTo.startsWith("/")?ze(c):this.lineralizeSegments(i,c).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,O.U)((t=>(n._loadedConfig=t,new _t(i,{}))))):(0,s.of)(new _t(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=Te(e,n,i);if(!o)return Ne(e);const u=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,D.zg)((t=>{const i=t.module,o=t.routes,{segmentGroup:l,slicedSegments:c}=Ae(e,a,u,o),d=new _t(l.segments,l.children);if(0===c.length&&d.hasChildren())return this.expandChildren(i,o,d).pipe((0,O.U)((t=>new _t(a,t))));if(0===o.length&&0===c.length)return(0,s.of)(new _t(a,{}));const h=ke(n)===r;return this.expandSegment(i,d,o,c,h?et:r,!0).pipe((0,O.U)((t=>new _t(a.concat(t.segments),t.children))))})))}getChildConfig(t,e,n){return e.children?(0,s.of)(new fe(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,O.U)((t=>(e._loadedConfig=t,t)))):function(t){return new u.y((e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))))}(e)))):(0,s.of)(new fe([],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 ht(o)}));return(0,s.of)(r).pipe(_e(),(0,L.b)((t=>{if(!be(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e})),(0,O.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 dt(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 dt(e.children,((e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)})),new _t(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 He(t){const e={};for(const n of Object.keys(t.children)){const i=He(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 _t(t.segments.concat(e.segments),e.children)}return t}(new _t(t.segments,e))}class Ve{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ye{constructor(t,e){this.component=t,this.route=e}}function je(t,e,n){const i=t._root;return $e(i,e?e._root:null,n,[i.value])}function Ze(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 $e(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=jt(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!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);default:return!Xt(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ve(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$e(t,e,a?a.children:null,i,r):$e(t,e,n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ye(a.outlet.component,s))}else s&&Ue(e,a,r),r.canActivateChecks.push(new Ve(i)),o.component?$e(t,null,a?a.children:null,i,r):$e(t,null,n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),dt(o,((t,e)=>Ue(t,n.getContext(e),r))),r}function Ue(t,e,n){const i=jt(t),r=t.value;dt(i,((t,i)=>{r.component?Ue(t,e?e.children.getContext(i):null,n):Ue(t,e,n)})),r.component&&e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Ye(e.outlet.component,r)):n.canDeactivateChecks.push(new Ye(null,r))}class Ge{}function qe(t){return new u.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 qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Yt(n,e),r=new Jt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Gt(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=Se(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const i=We(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?ct(n).parameters:{};r=new qt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),ke(t),t.component,t,Ke(e),Xe(e)+n.length,en(t))}else{const i=Te(e,t,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new qt(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),ke(t),t.component,t,Ke(e),Xe(e)+o.length,en(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=Ae(e,o,s,a.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Yt(r,t)]}if(0===a.length&&0===u.length)return[new Yt(r,[])];const c=ke(t)===i,d=this.processSegment(a,l,u,c?et:i);return null===d?null:[new Yt(r,d)]}}function Qe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function We(t){const e=[],n=new Set;for(const i of t){if(!Qe(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=We(t.children);e.push(new Yt(t.value,n))}return e.filter((t=>!n.has(t)))}function Ke(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(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,k.w)((e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,O.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,O.U)((n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new fe(ut(i.injector.get(sn,void 0,r.XFs.Self|r.XFs.Optional)).map(Oe),i)})),(0,A.K)((t=>{throw e._loader$=void 0,t})));return e._loader$=new g.c(n,(()=>new m.xQ)).pipe((0,F.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):ht(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 un,this.attachRef=null}}class un{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 cn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function dn(t){throw t}function hn(t,e,n){return e.parse("/")}function pn(t,e){return(0,s.of)(null)}const gn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fn=(()=>{class t{constructor(t,e,n,i,o,s,l,u){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=dn,this.malformedUriErrorHandler=hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pn,afterPreactivation:pn},this.urlHandlingStrategy=new cn,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 c=o.get(r.R0b);this.isNgZoneEnabled=c instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new yt(new _t([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new an(s,l,(t=>this.triggerEvent(new q(t))),(t=>this.triggerEvent(new J(t)))),this.routerState=$t(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,f.h)((t=>0!==t.id)),(0,O.U)((t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)}))),(0,k.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,k.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,k.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,k.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,O.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?qe(new Ge):(0,s.of)(a)}catch(t){return qe(t)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe((0,O.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 j(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 u=$t(i,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},t),{targetSnapshot:u,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 Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,O.U)((t=>Object.assign(Object.assign({},t),{guards:je(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=Ze(o,e,r);let a;if(function(t){return t&&ve(t.canDeactivate)}(s))a=ht(s.canDeactivate(t,e,n,i));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=ht(s(t,e,n,i))}return a.pipe((0,I.P)())}));return(0,s.of)(a).pipe(_e())}(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,E.b)((e=>(0,d.z)(function(t,e){return null!==t&&e&&e(new Q(t)),(0,s.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new K(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,h.P)((()=>{const r=e.guards.map((r=>{const o=Ze(r,e.node,n);let s;if(function(t){return t&&ve(t.canActivateChild)}(o))s=ht(o.canActivateChild(i,t));else{if(!ve(o))throw new Error("Invalid CanActivateChild guard");s=ht(o(i,t))}return s.pipe((0,I.P)())}));return(0,s.of)(r).pipe(_e())}))));return(0,s.of)(r).pipe(_e())}(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,h.P)((()=>{const r=Ze(i,e,n);let o;if(function(t){return t&&ve(t.canActivate)}(r))o=ht(r.canActivate(e,t));else{if(!ve(r))throw new Error("Invalid CanActivate guard");o=ht(r(e,t))}return o.pipe((0,I.P)())}))));return(0,s.of)(r).pipe(_e())}(t,e.route,n)))),(0,I.P)((t=>!0!==t),!0))}(i,a,t,e):(0,s.of)(n))),(0,O.U)((t=>Object.assign(Object.assign({},n),{guardsResult:t}))))}))}(this.ngModule.injector,(t=>this.triggerEvent(t))),(0,L.b)((t=>{if(be(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)})),(0,f.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 U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,k.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,E.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=Ze(t,e,i);return r.resolve?ht(r.resolve(e,n)):ht(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,O.U)((e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gt(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 G(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,O.U)((t=>{const e=function(t,e,n){const i=te(t,e._root,n?n._root:void 0);return new Zt(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,O.U)((t=>(new ge(a,t.targetRouterState,t.currentRouterState,l).activate(r),t)))),(0,L.b)({next(){n=!0},complete(){n=!0}}),(0,N.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=be(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new V(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 Y(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){we(t),this.config=t.map(Oe),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 u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),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 dt(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 _t([],{}),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?ue(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,u,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=be(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 H(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),u=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&u)return Promise.resolve(!0);let c,d,h;r?(c=r.resolve,d=r.reject,h=r.promise):h=new Promise(((t,e)=>{c=t,d=e}));const p=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),g=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):g=0,this.setTransition({id:p,targetPageId:g,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.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 V(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(un),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 bn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.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:_n(this.skipLocationChange),replaceUrl:_n(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:_n(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(fn),r.Y36(Ut),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 m.xQ,this.subscription=t.events.subscribe((t=>{t instanceof H&&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:_n(this.skipLocationChange),replaceUrl:_n(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:_n(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(fn),r.Y36(Ut),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 _n(t){return""===t||!!t}let Cn=(()=>{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 H&&this.update()}))}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,z.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,z.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(fn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(bn,8),r.Y36(yn,8))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,bn,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})(),wn=(()=>{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(un),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===Ut?this.route:t===un?this.childContexts:this.parent.get(t,e)}}class Mn{}class On{preload(t,e){return(0,s.of)(null)}}let kn=(()=>{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 q(e))),(e=>t.triggerEvent(new J(e))))}setUpPreloading(){this.subscription=this.router.events.pipe((0,f.h)((t=>t instanceof H)),(0,E.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,z.J)(),(0,O.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(fn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Sn=(()=>{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 H&&(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(fn),r.LFG(i.EM),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const Pn=new r.OlP("ROUTER_CONFIGURATION"),Tn=new r.OlP("ROUTER_FORROOT_GUARD"),An=[i.Ye,{provide:xt,useClass:Mt},{provide:fn,useFactory:function(t,e,n,i,r,o,s,a={},l,u){const c=new fn(null,t,e,n,i,r,o,ut(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),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,c),a.enableTracing&&c.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)})),c},deps:[xt,un,i.Ye,r.zs3,r.v3s,r.Sil,sn,Pn,[class{},new r.FiY],[class{},new r.FiY]]},un,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[fn]},{provide:r.v3s,useClass:r.EAV},kn,On,class{preload(t,e){return e().pipe((0,A.K)((()=>(0,s.of)(null))))}},{provide:Pn,useValue:{enableTracing:!1}}];function En(){return new r.PXZ("Router",fn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[An,Nn(e),{provide:Tn,useFactory:Fn,deps:[[fn,new r.FiY,new r.tp0]]},{provide:Pn,useValue:n||{}},{provide:i.S$,useFactory:Ln,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Pn]},{provide:Sn,useFactory:Dn,deps:[fn,i.EM,Pn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:On},{provide:r.PXZ,multi:!0,useFactory:En},[zn,{provide:r.ip1,multi:!0,useFactory:Rn,deps:[zn]},{provide:Hn,useFactory:Bn,deps:[zn]},{provide:r.tb,multi:!0,useExisting:Hn}]]}}static forChild(e){return{ngModule:t,providers:[Nn(e)]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(Tn,8),r.LFG(fn,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 Sn(t,e,n)}function Ln(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Fn(t){return"guarded"}function Nn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let zn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.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(fn),i=this.injector.get(Pn);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(Pn),n=this.injector.get(kn),i=this.injector.get(Sn),o=this.injector.get(fn),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 Hn=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((()=>{var t;this.maskedElement=new r.C8(n,null!==(t=this.maskito)&&void 0!==t?t:r.A_)}))}))}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:()=>w,CV:()=>C});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 u(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,u)=>{const c=o+a(e,o,l,n),d=e[c.length];return s(d)?c+d:l.match(d)?(null===i&&u>=t.selection[0]&&(i=c.length),null===r&&u>=t.selection[1]&&(r=c.length),c+l):c}),""),u=a(e,o,"",n);return{value:l(o+u,e)?o+u: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 c(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 d{constructor(t,e){this.initialElementState=t,this.maskOptions=e,this.value="",this.selection=[0,0];const{value:n,selection:i}=u(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=c(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,d=s.value.slice(0,a)+n,h=d.length,p=u({value:d+s.value.slice(l),selection:[h,h]},r,o);if(i.slice(0,a)===u({value:d,selection:[h,h]},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=c(r,i),[s,a]=o.selection,l=u({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 h{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 g({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 m({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 f=/\s+$/g,v=/^\s+/g,b=/\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(b);return[i,-1!==r?i+n.length+r:t.length]}const o=t.slice(0,r),[s]=o.match(f)||[""],a=o.replace(f,"").split("").reverse().findIndex((t=>t.match(b)));return[-1!==a?r-s.length-a:0,r]}function _(t=[]){return(e,...n)=>t.reduce(((t,e)=>Object.assign(Object.assign({},t),e(t,...n))),e)}function C(t,e){const n=Object.assign(Object.assign({},r),e),i=_(n.preprocessors),o=_(n.postprocessors),s="string"==typeof t?{value:t,selection:[0,0]}:t,{elementState:a}=i({elementState:s,data:""},"validation"),l=new d(a,n),{value:u,selection:c}=o(l,s);return"string"==typeof t?u:{value:u,selection:c}}class w extends o{constructor(t,e){super(),this.element=t,this.maskitoOptions=e,this.isTextArea="TEXTAREA"===this.element.nodeName,this.eventListener=new h(this.element),this.options=Object.assign(Object.assign({},r),this.maskitoOptions),this.preprocessor=_(this.options.preprocessors),this.postprocessor=_(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:m(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:g(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(C(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:m(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 d(a,this.options),[u,c]=a.selection;l.deleteCharacters([u,c]);const h=this.postprocessor(l,r);if(r.value.slice(0,o)+r.value.slice(s)===h.value&&!i)return;if(t.preventDefault(),function(t,...e){return e.every((({value:e})=>e===t.value))}(r,a,l,h))return this.updateSelectionRange(n?[c,c]:[u,u]);const p=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(h,{inputType:"inputType"in t?t.inputType:p,data:null}),this.updateHistory(h)}handleInsert(t,e){const n=this.elementState,{elementState:i,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),o=new d(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),u=this.postprocessor(o,n);if(u.value.length>this.maxLength)return t.preventDefault();l!==u.value&&(t.preventDefault(),this.updateElementState(u,{data:e,inputType:"inputType"in t?t.inputType:"insertText"}),this.updateHistory(u))}handleEnter(t){this.isTextArea&&this.handleInsert(t,"\n")}}},72878:(t,e,n)=>{n.d(e,{nQ:()=>j,tr:()=>Z,n9:()=>G,H$:()=>nt,f8:()=>yt,vZ:()=>ot,jX:()=>H,rC:()=>Ct});var i=n(25219);const r=[".",",","б","ю"],o=new Date("0001-01-01"),s=new Date("9999-12-31"),a={hours:23,minutes:59,seconds:59,milliseconds:999},l=" ",u="–",c="—",d="-",h="−",p=[d,u,c,h],g=[","," "],m=[":","."],f={hours:2,minutes:2,seconds:2,milliseconds:3};function v(t,e,n){const i=Math.min(Number(n),Math.max(Number(e),Number(t)));return t instanceof Date?new Date(i):i}function b(t,{day:e,month:n,year:i}={}){const r=new Date(t);return e&&r.setDate(r.getDate()+e),n&&r.setMonth(r.getMonth()+n),i&&r.setFullYear(r.getFullYear()+i),r}const y=t=>{var e,n,i;return{day:(null===(e=t.match(/d/g))||void 0===e?void 0:e.length)||0,month:(null===(n=t.match(/m/g))||void 0===n?void 0:n.length)||0,year:(null===(i=t.match(/y/g))||void 0===i?void 0:i.length)||0}};function _(t){return{day:String(t.getDate()).padStart(2,"0"),month:String(t.getMonth()+1).padStart(2,"0"),year:String(t.getFullYear()).padStart(4,"0"),hours:String(t.getHours()).padStart(2,"0"),minutes:String(t.getMinutes()).padStart(2,"0"),seconds:String(t.getSeconds()).padStart(2,"0"),milliseconds:String(t.getMilliseconds()).padStart(3,"0")}}function C(t,e){return!(t.length!t.match(/^0+$/)))}function w(t,e,n){const i=e.replace(/\W/g,"").length;return t.replace(n,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${i}}`,"g"))||[]}function x(t){return t.reduce(((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n})),{})}function M(t,e){const n=e.replace(/[^dmy]/g,""),i=t.replace(/\D+/g,""),r={day:i.slice(n.indexOf("d"),n.lastIndexOf("d")+1),month:i.slice(n.indexOf("m"),n.lastIndexOf("m")+1),year:i.slice(n.indexOf("y"),n.lastIndexOf("y")+1)};return x(Object.entries(r).filter((([t,e])=>Boolean(e))).sort((([t],[n])=>e.toLowerCase().indexOf(t[0])>e.toLowerCase().indexOf(n[0])?1:-1)))}function O(t,e){var n,i,r,o,s,a,l;const u=2===(null===(n=t.year)||void 0===n?void 0:n.length)?`20${t.year}`:t.year,c=new Date(Number(null!=u?u:"0"),Number(null!==(i=t.month)&&void 0!==i?i:"1")-1,Number(null!==(r=t.day)&&void 0!==r?r:"1"),Number(null!==(o=null==e?void 0:e.hours)&&void 0!==o?o:"0"),Number(null!==(s=null==e?void 0:e.minutes)&&void 0!==s?s:"0"),Number(null!==(a=null==e?void 0:e.seconds)&&void 0!==a?a:"0"),Number(null!==(l=null==e?void 0:e.milliseconds)&&void 0!==l?l:"0"));return c.setFullYear(Number(null!=u?u:"0")),c}const k=", ";function S({day:t,month:e,year:n,hours:i,minutes:r,seconds:o,milliseconds:s},a,l){var u;const c=2===(null===(u=a.match(/y/g))||void 0===u?void 0:u.length)?null==n?void 0:n.slice(-2):n;return(a+(l?k+l:"")).replace(/d+/g,null!=t?t:"").replace(/m+/g,null!=e?e:"").replace(/y+/g,null!=c?c:"").replace(/H+/g,null!=i?i:"").replace(/MSS/g,null!=s?s:"").replace(/M+/g,null!=r?r:"").replace(/S+/g,null!=o?o:"").replace(/^\D+/g,"").replace(/\D+$/g,"")}function P(t,e,n=0){return Number(t.padEnd(e.length,"0"))<=Number(e)?{validatedSegmentValue:t,prefixedZeroesCount:n}:t.endsWith("0")?P(`0${t.slice(0,e.length-1)}`,e,n+1):P(`${t.slice(0,e.length-1)}0`,e,n)}const T={day:31,month:12,year:9999};function A({dateString:t,dateModeTemplate:e,offset:n,selection:[i,r]}){const o=M(t,e),s=Object.entries(o),a={};let l=0;for(const[t,o]of s){const s=S(a,e),u=T[t],c=s.length&&1,d=n+s.length+c+y(e)[t],h=d>=i&&d===r;if(h&&Number(o)>Number(u))return{validatedDateString:"",updatedSelection:[i,r]};if(h&&Number(o)<1)return{validatedDateString:"",updatedSelection:[i,r]};const{validatedSegmentValue:p,prefixedZeroesCount:g}=P(o,`${u}`);l+=g,a[t]=p}const u=S(a,e),c=u.length-t.length;return{validatedDateString:u,updatedSelection:[i+l+c,r+l+c]}}const E=/[\\^$.*+?()[\]{}|]/g,I=new RegExp(E.source);function D(t){return t&&I.test(t)?t.replace(E,"\\$&"):t}function L(t){return t}function F(t){return!t||"object"==typeof t&&0===Object.keys(t).length}function N(t,e){const n=y(e);return x(Object.entries(t).map((([t,e])=>{const i=n[t];return[t,e.length===i&&e.match(/^0+$/)?"1".padStart(i,"0"):e]})))}function z({dateModeTemplate:t,min:e=o,max:n=s,rangeSeparator:i="",dateSegmentSeparator:r="."}){return({value:o,selection:s})=>{const a=i&&o.endsWith(i),l=w(o,t,i);let u="";for(const o of l){u+=u?i:"";const s=M(o,t);C(o,t)?u+=S(_(v(O(s),e,n)),t):u+=S(N(s,t),t)+(o.endsWith(r)?r:"")}return{selection:s,value:u+(a?i:"")}}}function R({dateModeTemplate:t,dateSegmentsSeparator:e,rangeSeparator:n=""}){return({elementState:i,data:r})=>{const o=n?new RegExp(`${n}|-`):k,s=r.split(o),a=r.includes(k)?[s[0]]:s;if(a.every((n=>n.trim().split(/\D/).length===t.split(e).length))){const o=a.map((n=>function(t,e,n){const i=t.split(/\D/),r=e.split(n);return i.map(((t,e)=>e===r.length-1?t:t.padStart(r[e].length,"0"))).join(n)}(n,t,e))).join(n);return{elementState:i,data:`${o}${r.includes(k)&&k+s[1]||""}`}}return{elementState:i,data:r}}}function B(t){const e=new RegExp(`${D(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)}}:L}function H(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,e,n)=>t[n]===e?t:t.slice(0,n)+e+t.slice(n)),e),a=s.length-e.length;return{selection:[r+a,o+a],value:s}}:L}function V({dateModeTemplate:t,dateSegmentsSeparator:e,rangeSeparator:n=""}){return({elementState:i,data:r})=>{const{value:o,selection:s}=i;if(r===e)return{elementState:i,data:s[0]===o.length?r:""};if(p.includes(r))return{elementState:i,data:n};const a=r.replace(new RegExp(`[^\\d${D(e)}${n}]`,"g"),"");if(!a)return{elementState:i,data:""};const[l,u]=s;let c=u+r.length;const d=o.slice(0,l)+a+o.slice(c),h=w(d,t,n);let g="";const m=Boolean(n)&&d.includes(n);for(const e of h){const{validatedDateString:r,updatedSelection:o}=A({dateString:e,dateModeTemplate:t,offset:g?g.length+n.length:0,selection:[l,c]});if(e&&!r)return{elementState:i,data:""};c=o[1],g+=m&&g?n+r:r}const f=g.slice(l,c);return{elementState:{selection:s,value:g.slice(0,l)+f.split(e).map((t=>"0".repeat(t.length))).join(e)+g.slice(c)},data:f}}}function Y(t,e,n){return(i,r)=>{const o=()=>e(i,r);return i.addEventListener(t,o,n),()=>i.removeEventListener(t,o,n)}}function j(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 Z({mode:t,separator:e=".",max:n,min:r}){const o=t.split("/").join(e);return Object.assign(Object.assign({},i.A_),{mask:Array.from(o).map((t=>t===e?t:/\d/)),overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:o,dateSegmentsSeparator:e}),V({dateModeTemplate:o,dateSegmentsSeparator:e})],postprocessors:[z({min:r,max:n,dateModeTemplate:o,dateSegmentSeparator:e})]})}function $({dateModeTemplate:t,rangeSeparator:e,minLength:n,maxLength:i,max:r=s}){return F(n)&&F(i)?L:({value:o,selection:s})=>{const a=w(o,t,e);if(2!==a.length||a.some((e=>!C(e,t))))return{value:o,selection:s};const[l,u]=a.map((e=>O(M(e,t)))),c=b(l,Object.assign(Object.assign({},n),{day:(null==n?void 0:n.day)&&n.day-1})),d=F(i)?r:b(l,Object.assign(Object.assign({},i),{day:(null==i?void 0:i.day)&&i.day-1})),h=v(u,c,r),p=h>d?d:h;return{selection:s,value:a[0]+e+S(_(p),t)}}}function U({dateModeTemplate:t,rangeSeparator:e}){return({value:n,selection:i})=>{const r=w(n,t,e),o=2===r.length&&r.every((e=>C(e,t))),[s,a]=i,l=s>=n.length,u=0===s&&a>=n.length;if(!l&&!u||!o)return{value:n,selection:i};const[c,d]=r.map((e=>O(M(e,t))));return{selection:i,value:c>d?r.reverse().join(e):n}}}function G({mode:t,separator:e=".",min:n,max:r,minLength:o,maxLength:s,dateSeparator:a=e,rangeSeparator:c=`${l}${u}${l}`}){const d=t.split("/").join(a),h=Array.from(d).map((t=>t===a?t:/\d/));return Object.assign(Object.assign({},i.A_),{mask:[...h,...Array.from(c),...h],overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:d,rangeSeparator:c,dateSegmentsSeparator:a}),V({dateModeTemplate:d,rangeSeparator:c,dateSegmentsSeparator:a})],postprocessors:[z({min:n,max:r,dateModeTemplate:d,rangeSeparator:c,dateSegmentSeparator:a}),$({dateModeTemplate:d,minLength:o,maxLength:s,max:r,rangeSeparator:c}),U({dateModeTemplate:d,rangeSeparator:c})]})}function q(t){return x(Object.entries(t).map((([t,e])=>[t,`${e}`.padEnd(f[t],"0")])))}function J(t){const e=t.replace(/\D+/g,""),n={hours:e.slice(0,2),minutes:e.slice(2,4),seconds:e.slice(4,6),milliseconds:e.slice(6,9)};return x(Object.entries(n).filter((([t,e])=>Boolean(e))))}function Q({hours:t="",minutes:e="",seconds:n="",milliseconds:i=""}){return`${t}${e&&`:${e}`}${n&&`:${n}`}${i&&`.${i}`}`}const W=new RegExp(`[${m.map(D).join("")}]$`);function K({timeString:t,paddedMaxValues:e,offset:n,selection:[i,r]}){const o=J(t),s=Object.entries(o),a={};let l=0;for(const[t,o]of s){const s=Q(a),u=e[t],c=s.length&&1,d=n+s.length+c+f[t];if(d>=i&&d<=r&&Number(o)>Number(u))return{validatedTimeString:"",updatedTimeSelection:[i,r]};const{validatedSegmentValue:h,prefixedZeroesCount:p}=P(o,`${u}`);l+=p,a[t]=h}const[u=""]=t.match(W)||[],c=Q(a)+u,d=Math.max(c.length-t.length,0);return{validatedTimeString:c,updatedTimeSelection:[i+l+d,r+l+d]}}function X(t,e){const n=t.includes(k);return[t.slice(0,e.length),t.slice(n?e.length+k.length:e.length)]}function tt({dateModeTemplate:t,timeMode:e,min:n=o,max:i=s}){return({value:r,selection:o})=>{const[s,a]=X(r,t),l=M(s,t),u=J(a);if(!function(t,e,n){return t.length>=e.length+n.length+k.length&&t.split(k)[0].split(/\D/).every((t=>!t.match(/^0+$/)))}(r,t,e)){const a=N(l,t),{year:c,month:d,day:h}=C(s,t)?_(v(O(a),n,i)):a,p=S(Object.assign({year:c,month:d,day:h},u),t,e);return{selection:o,value:p+r.slice(p.length)}}return{selection:o,value:S(_(v(O(l,u),n,i)),t,e)}}}function et({dateModeTemplate:t,dateSegmentsSeparator:e}){const n=new RegExp(`[^\\d${m.map(D).join("")}${D(e)}]+`);return({elementState:i,data:r})=>{const{value:o,selection:s}=i;if(r===e)return{elementState:i,data:s[0]===o.length?r:""};if(g.includes(r))return{elementState:i,data:k};const l=r.replace(n,"");if(!l)return{elementState:i,data:""};const[u,c]=s;let d=c+r.length;const h=o.slice(0,u)+l+o.slice(d),[p,m]=X(h,t);let f="";const v=h.includes(k),{validatedDateString:b,updatedSelection:y}=A({dateString:p,dateModeTemplate:t,offset:0,selection:[u,d]});if(p&&!b)return{elementState:i,data:""};d=y[1],f+=b;const _=q(a),{validatedTimeString:C,updatedTimeSelection:w}=K({timeString:m,paddedMaxValues:_,offset:f.length+k.length,selection:[u,d]});if(m&&!C)return{elementState:i,data:""};d=w[1],f+=v?k+C:C;const x=f.slice(u,d);return{elementState:{selection:s,value:f.slice(0,u)+x.split(e).map((t=>"0".repeat(t.length))).join(e)+f.slice(d)},data:x}}}function nt({dateMode:t,timeMode:e,dateSeparator:n=".",min:r,max:o}){const s=t.split("/").join(n);return Object.assign(Object.assign({},i.A_),{mask:[...Array.from(s).map((t=>t===n?t:/\d/)),...k.split(""),...Array.from(e).map((t=>m.includes(t)?t:/\d/))],overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:s,dateSegmentsSeparator:n}),et({dateModeTemplate:s,dateSegmentsSeparator:n})],postprocessors:[tt({min:r,max:o,dateModeTemplate:s,timeMode:e})]})}function it({decimalSeparator:t,isNegativeAllowed:e,precision:n,thousandSeparator:i,prefix:r,postfix:o,decimalPseudoSeparators:s=[],pseudoMinuses:a=[]}){const l=rt(r),u="\\d",c=e?`[${h}${a.map((t=>`\\${t}`)).join("")}]?`:"",d=i?`[${u}${D(i).replace(/\s/g,"\\s")}]*`:`[${u}]*`,p=n>0?`([${D(t)}${s.map(D).join("")}]${u}{0,${Number.isFinite(n)?n:""}})?`:"",g=rt(o);return new RegExp(`^${l}${c}${d}${p}${g}$`)}function rt(t){return t?`${t.split("").map((t=>`${D(t)}?`)).join("")}`:""}function ot(t,e="."){const n=!!t.match(new RegExp(`^\\D*[${h}\\${d}${u}${c}]`)),i=t.replace(new RegExp(`[^\\d${D(e)}]`,"g"),"").replace(e,".");return i?Number((n?d:"")+i):NaN}function st({decimalSeparator:t,precision:e,decimalZeroPadding:n,postfix:i}){if(e<=0||!n)return L;const r=new RegExp(`${D(i)}$`);return({value:n,selection:o})=>{if(Number.isNaN(ot(n,t)))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 at({decimalSeparator:t,decimalPseudoSeparators:e,pseudoMinuses:n}){let r=!0;const o=it({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 lt({min:t,max:e,decimalSeparator:n}){return({value:i,selection:r})=>{const o=ot(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(d,h);return{value:t,selection:[t.length,t.length]}}return{value:i,selection:r}}}function ut({decimalSeparator:t,thousandSeparator:e,decimalZeroPadding:n}){return({elementState:i,data:r},o)=>{const{value:s,selection:a}=i,[l,u]=a,c=s.slice(l,u),d=n?[t,e]:[e],h=n&&l>s.indexOf(t)&&Boolean(c.match(/^0+$/gi));return"deleteBackward"!==o&&"deleteForward"!==o||!d.includes(c)&&!h?{elementState:i,data:r}:{elementState:{value:s,selection:"deleteForward"===o?[u,u]:[l,l]},data:r}}}function ct({decimalSeparator:t,precision:e}){const n=new RegExp(`^\\D*${D(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 dt(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 ht(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(D(t),"gi"),"")}}}function pt({thousandSeparator:t,decimalSeparator:e,prefix:n,postfix:i}){if(!t)return L;const r=new RegExp(`^${D(n)}${h}?`),o=new RegExp(`${D(i)}$`);return({value:n,selection:i})=>{const[s,a=""]=n.split(e),[l,u]=i;let[c,d]=i;const h=s.replace(r,"").replace(o,""),[p=""]=s.match(r)||[],[g=""]=s.match(o)||[];return{value:p+Array.from(h).reduceRight(((e,n,i)=>{const r=!(!i&&n===t)&&e.length&&(e.length+1)%4==0;return r&&(n===t||((...t)=>t.every((t=>/\s/.test(t))))(n,t))?t+e:n!==t||r?r?(i<=l&&c++,i<=u&&d++,n+t+e):n+e:(i&&i<=l&&c--,i&&i<=u&&d--,e)}),"")+g+(n.includes(e)?e:"")+a,selection:[c,d]}}}function gt(t,e){if(t>0)return L;const n=new RegExp(`${D(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,"")}}}const mt=[0,0];function ft(t,e){const n=function(t,e){const n=t=>{const n=D(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,u=""]=e.split(t),c=n(l);if(l===c)return{value:e,selection:r};const d=o-i(e,o),h=s-i(e,s);return{value:c+(a?t:"")+u,selection:[Math.max(d,0),Math.max(h,0)]}}}(t,e);return Y("blur",(t=>{const e=n({value:t.value,selection:mt},{value:"",selection:mt}).value;t.value!==e&&(t.value=e,t.dispatchEvent(new Event("input")))}),{capture:!0})}function vt({min:t,max:e,decimalSeparator:n}){return Y("blur",((r,o)=>{const s=ot(r.value,n),a=v(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 bt(t){return Y("blur",(e=>{const n=e.value.replace(new RegExp(`^(\\D+)?${D(t)}`),`$10${t}`);n!==e.value&&(e.value=n,e.dispatchEvent(new Event("input")))}),{capture:!0})}function yt({max:t=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:n=0,thousandSeparator:o=l,decimalSeparator:s=".",decimalPseudoSeparators:a,decimalZeroPadding:p=!1,prefix:g="",postfix:m=""}={}){const f=[d,u,c].filter((t=>t!==o&&t!==s)),v=function({decimalSeparator:t,thousandSeparator:e,decimalPseudoSeparators:n=r}){return n.filter((n=>n!==e&&n!==t))}({decimalSeparator:s,thousandSeparator:o,decimalPseudoSeparators:a});return Object.assign(Object.assign({},i.A_),{mask:it({decimalSeparator:s,precision:n,thousandSeparator:o,prefix:g,postfix:m,isNegativeAllowed:e<0}),preprocessors:[at({decimalSeparator:s,decimalPseudoSeparators:v,pseudoMinuses:f}),dt(h,f),dt(s,v),ct({decimalSeparator:s,precision:n}),ut({decimalSeparator:s,decimalZeroPadding:p,thousandSeparator:o}),gt(n,s),ht(s)],postprocessors:[lt({decimalSeparator:s,min:e,max:t}),H(g),B(m),pt({decimalSeparator:s,thousandSeparator:o,prefix:g,postfix:m}),st({decimalSeparator:s,decimalZeroPadding:p,precision:n,postfix:m})],plugins:[ft(s,o),bt(s),vt({min:e,max:t,decimalSeparator:s})],overwriteMode:p?({value:t,selection:[e]})=>e<=t.indexOf(s)?"shift":"replace":"shift"})}function _t(t){const e=q(t),n=new RegExp(`[^\\d${m.map(D).join("")}]+`);return({elementState:t,data:i},r)=>{if("deleteBackward"===r||"deleteForward"===r)return{elementState:t,data:i};const{value:o,selection:s}=t;if("validation"===r){const{validatedTimeString:t,updatedTimeSelection:n}=K({timeString:o,paddedMaxValues:e,offset:0,selection:s});return{elementState:{value:t,selection:n},data:i}}const a=i.replace(n,""),[l,u]=s;let c=u+a.length;const d=o.slice(0,l)+a+o.slice(c),{validatedTimeString:h,updatedTimeSelection:p}=K({timeString:d,paddedMaxValues:e,offset:0,selection:[l,c]});if(d&&!h)return{elementState:t,data:""};c=p[1];const g=h.slice(l,c);return{elementState:{selection:s,value:h.slice(0,l)+"0".repeat(g.length)+h.slice(c)},data:g}}}function Ct({mode:t,timeSegmentMaxValues:e={}}){const n=Object.assign(Object.assign({},a),e);return Object.assign(Object.assign({},i.A_),{mask:Array.from(t).map((t=>m.includes(t)?t:/\d/)),preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},_t(n)],overwriteMode:"replace"})}},62579:(t,e,n)=>{n.d(e,{L1:()=>p,ux:()=>g,UA:()=>m,H3:()=>f,Ct:()=>v,s5:()=>b,de:()=>y,KS:()=>_,yZ:()=>C,m9:()=>h});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),u=n(87519),c=n(47349),d=n(12057);const h=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(d.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)(h);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)())}}),g=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(h).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(h).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(h).CSS||{escape:t=>t,supports:()=>!1}})),m=new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(h).history}),f=new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(h).localStorage}),v=new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(h).location}),b=new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(h).navigator}),y=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(b).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(b).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(d.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)((()=>"hidden"!==t.visibilityState)),(0,u.x)(),(0,c.d)({refCount:!1,bufferSize:1}))}})),_=new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(h).performance}),C=(new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(h).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(h).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(h);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(h).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(b).userAgent}))},23764:(t,e,n)=>{n.d(e,{k2:()=>o,Vi:()=>l,NI:()=>c,IM:()=>u});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,u){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})(),u=(()=>{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})(),c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},32917:(t,e,n)=>{n.d(e,{vU:()=>l,jg:()=>a,ax:()=>u});var i=n(74788),r=n(29856),o=n(9945),s=n(62579);const a=new i.OlP("Box model to observe changes",{providedIn:"root",factory:()=>"content-box"}),l=new i.OlP("Resize Observer API support",{providedIn:"root",factory:()=>!!(0,i.f3M)(s.m9).ResizeObserver});let u=(()=>{class t extends r.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,o.B)())}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(l),i.LFG(a))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},30126:(t,e,n)=>{n.d(e,{X1:()=>b,Gt:()=>v,uX:()=>f});var i=n(91211),r=n(74788),o=n(59193),s=n(22416),a=n(41439),l=n(70409);class u{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter((t=>!this.modifier.includes(t))).join(".")}}let c=(()=>{class t extends u{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})(),d=(()=>{class t extends u{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})(),h=(()=>{class t extends u{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 u{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})(),g=(()=>{class t extends u{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 m=[g,c,d,h,p,(()=>{class t extends u{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 u{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 f(t){return(e,n,i)=>{const{value:r}=i;i.value=function(...e){t.apply(this,e)&&(g.ngZone?g.ngZone.run((()=>r.apply(this,e))):r.apply(this,e))}}}function v(t){return t}let b=(()=>{class t{constructor([e]){console.assert(!(e instanceof g)||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:m}),t})()},89570:(t,e,n)=>{n.d(e,{yf:()=>r,Al:()=>o,wq:()=>d,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 u(this.content)?this.content.template:this.content instanceof i.Rgc?this.content:this.t}ngOnChanges({content:t}){var e;const n=this.getContext();if(null===(e=this.c)||void 0===e||e.injector.get(i.sBO).markForCheck(),!t)return;this.vcr.clear();const r=n&&new Proxy(n,{get:(t,e)=>{var n;return null===(n=this.getContext())||void 0===n?void 0:n[e]}});c(this.content)?this.process(this.content,r):null!=(n instanceof a&&n.$implicit)&&this.vcr.createEmbeddedView(this.template,r)}ngDoCheck(){u(this.content)&&this.content.check()}static ngTemplateContextGuard(t,e){return!0}getContext(){return u(t=this.content)||t instanceof i.Rgc||c(this.content)?this.context:new a("function"==typeof this.content?this.content(this.context):this.content);var t}process(t,e){const n=t.createInjector(this.i,e);this.c=this.vcr.createComponent(n.get(i._Vd).resolveComponentFactory(t.component),0,n)}}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 u(t){return t instanceof s}function c(t){return t instanceof o}let d=(()=>{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(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),s||(s=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),u||(u=function(t,e){return new t(...e)});const c=w(Array.prototype.forEach),d=w(Array.prototype.pop),h=w(Array.prototype.push),p=w(String.prototype.toLowerCase),g=w(String.prototype.toString),m=w(String.prototype.match),f=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),y=w(RegExp.prototype.test),_=(C=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let o=i.length;for(;o--;){let e=i[o];if("string"==typeof e){const t=r(e);t!==e&&(n(i)||(i[o]=t),e=t)}t[e]=!0}return t}function M(e){const n=a(null);for(const[i,o]of t(e))void 0!==r(e,i)&&(n[i]=o);return n}function O(t,e){for(;null!==t;){const n=r(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=i(t)}return function(t){return console.warn("fallback value for",t),null}}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),E=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=o(["#text"]),D=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),R=s(/<%[\w\W]*|[\w\W]*%>/gm),B=s(/\${[\w\W]*}/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),V=s(/^aria-[\-\w]+$/),Y=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=s(/^(?:\w+script|data):/i),Z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var U=Object.freeze({__proto__:null,MUSTACHE_EXPR:z,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:V,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:Z,DOCTYPE_NAME:$});const G=function(){return"undefined"==typeof window?null:window};return function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G();const i=t=>e(t);if(i.version="3.0.6",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;let{document:r}=n;const s=r,l=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:C,Node:w,Element:z,NodeFilter:R,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:V,trustedTypes:j}=n,Z=z.prototype,q=O(Z,"cloneNode"),J=O(Z,"nextSibling"),Q=O(Z,"childNodes"),W=O(Z,"parentNode");if("function"==typeof C){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let K,X="";const{implementation:tt,createNodeIterator:et,createDocumentFragment:nt,getElementsByTagName:it}=r,{importNode:rt}=s;let ot={};i.isSupported="function"==typeof t&&"function"==typeof W&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:at,TMPLIT_EXPR:lt,DATA_ATTR:ut,ARIA_ATTR:ct,IS_SCRIPT_OR_DATA:dt,ATTR_WHITESPACE:ht}=U;let{IS_ALLOWED_URI:pt}=U,gt=null;const mt=x({},[...k,...S,...P,...A,...I]);let ft=null;const vt=x({},[...D,...L,...F,...N]);let bt=Object.seal(a(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}})),yt=null,_t=null,Ct=!0,wt=!0,xt=!1,Mt=!0,Ot=!1,kt=!1,St=!1,Pt=!1,Tt=!1,At=!1,Et=!1,It=!0,Dt=!1,Lt=!0,Ft=!1,Nt={},zt=null;const Rt=x({},["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"]);let Bt=null;const Ht=x({},["audio","video","img","source","image","track"]);let Vt=null;const Yt=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",$t="http://www.w3.org/1999/xhtml";let Ut=$t,Gt=!1,qt=null;const Jt=x({},[jt,Zt,$t],g);let Qt=null;const Wt=["application/xhtml+xml","text/html"];let Kt=null,Xt=null;const te=r.createElement("form"),ee=function(t){return t instanceof RegExp||t instanceof Function},ne=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xt||Xt!==t){if(t&&"object"==typeof t||(t={}),t=M(t),Qt=Qt=-1===Wt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Kt="application/xhtml+xml"===Qt?g:p,gt="ALLOWED_TAGS"in t?x({},t.ALLOWED_TAGS,Kt):mt,ft="ALLOWED_ATTR"in t?x({},t.ALLOWED_ATTR,Kt):vt,qt="ALLOWED_NAMESPACES"in t?x({},t.ALLOWED_NAMESPACES,g):Jt,Vt="ADD_URI_SAFE_ATTR"in t?x(M(Yt),t.ADD_URI_SAFE_ATTR,Kt):Yt,Bt="ADD_DATA_URI_TAGS"in t?x(M(Ht),t.ADD_DATA_URI_TAGS,Kt):Ht,zt="FORBID_CONTENTS"in t?x({},t.FORBID_CONTENTS,Kt):Rt,yt="FORBID_TAGS"in t?x({},t.FORBID_TAGS,Kt):{},_t="FORBID_ATTR"in t?x({},t.FORBID_ATTR,Kt):{},Nt="USE_PROFILES"in t&&t.USE_PROFILES,Ct=!1!==t.ALLOW_ARIA_ATTR,wt=!1!==t.ALLOW_DATA_ATTR,xt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Mt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ot=t.SAFE_FOR_TEMPLATES||!1,kt=t.WHOLE_DOCUMENT||!1,Tt=t.RETURN_DOM||!1,At=t.RETURN_DOM_FRAGMENT||!1,Et=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Dt=t.SANITIZE_NAMED_PROPS||!1,Lt=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,pt=t.ALLOWED_URI_REGEXP||Y,Ut=t.NAMESPACE||$t,bt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(bt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ot&&(wt=!1),At&&(Tt=!0),Nt&&(gt=x({},[...I]),ft=[],!0===Nt.html&&(x(gt,k),x(ft,D)),!0===Nt.svg&&(x(gt,S),x(ft,L),x(ft,N)),!0===Nt.svgFilters&&(x(gt,P),x(ft,L),x(ft,N)),!0===Nt.mathMl&&(x(gt,A),x(ft,F),x(ft,N))),t.ADD_TAGS&&(gt===mt&&(gt=M(gt)),x(gt,t.ADD_TAGS,Kt)),t.ADD_ATTR&&(ft===vt&&(ft=M(ft)),x(ft,t.ADD_ATTR,Kt)),t.ADD_URI_SAFE_ATTR&&x(Vt,t.ADD_URI_SAFE_ATTR,Kt),t.FORBID_CONTENTS&&(zt===Rt&&(zt=M(zt)),x(zt,t.FORBID_CONTENTS,Kt)),Lt&&(gt["#text"]=!0),kt&&x(gt,["html","head","body"]),gt.table&&(x(gt,["tbody"]),delete yt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=t.TRUSTED_TYPES_POLICY,X=K.createHTML("")}else void 0===K&&(K=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,l)),null!==K&&"string"==typeof X&&(X=K.createHTML(""));o&&o(t),Xt=t}},ie=x({},["mi","mo","mn","ms","mtext"]),re=x({},["foreignobject","desc","title","annotation-xml"]),oe=x({},["title","style","font","a","script"]),se=x({},S);x(se,P),x(se,T);const ae=x({},A);x(ae,E);const le=function(t){h(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},ue=function(t,e){try{h(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!ft[t])if(Tt||At)try{le(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ce=function(t){let e=null,n=null;if(Pt)t=""+t;else{const e=m(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qt&&Ut===$t&&(t=''+t+"");const i=K?K.createHTML(t):t;if(Ut===$t)try{e=(new V).parseFromString(i,Qt)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Ut,"template",null);try{e.documentElement.innerHTML=Gt?X:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),Ut===$t?it.call(e,kt?"html":"body")[0]:kt?e.documentElement:o},de=function(t){return et.call(t.ownerDocument||t,t,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT,null)},he=function(t){return"function"==typeof w&&t instanceof w},pe=function(t,e,n){ot[t]&&c(ot[t],(t=>{t.call(i,e,n,Xt)}))},ge=function(t){let e=null;if(pe("beforeSanitizeElements",t,null),(n=t)instanceof H&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof B)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return le(t),!0;var n;const r=Kt(t.nodeName);if(pe("uponSanitizeElement",t,{tagName:r,allowedTags:gt}),t.hasChildNodes()&&!he(t.firstElementChild)&&y(/<[/\w]/g,t.innerHTML)&&y(/<[/\w]/g,t.textContent))return le(t),!0;if(!gt[r]||yt[r]){if(!yt[r]&&fe(r)){if(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,r))return!1;if(bt.tagNameCheck instanceof Function&&bt.tagNameCheck(r))return!1}if(Lt&&!zt[r]){const e=W(t)||t.parentNode,n=Q(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i)e.insertBefore(q(n[i],!0),J(t))}return le(t),!0}return t instanceof z&&!function(t){let e=W(t);e&&e.tagName||(e={namespaceURI:Ut,tagName:"template"});const n=p(t.tagName),i=p(e.tagName);return!!qt[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===$t?"svg"===n:e.namespaceURI===jt?"svg"===n&&("annotation-xml"===i||ie[i]):Boolean(se[n]):t.namespaceURI===jt?e.namespaceURI===$t?"math"===n:e.namespaceURI===Zt?"math"===n&&re[i]:Boolean(ae[n]):t.namespaceURI===$t?!(e.namespaceURI===Zt&&!re[i])&&!(e.namespaceURI===jt&&!ie[i])&&!ae[n]&&(oe[n]||!se[n]):!("application/xhtml+xml"!==Qt||!qt[t.namespaceURI]))}(t)?(le(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ot&&3===t.nodeType&&(e=t.textContent,c([st,at,lt],(t=>{e=f(e,t," ")})),t.textContent!==e&&(h(i.removed,{element:t.cloneNode()}),t.textContent=e)),pe("afterSanitizeElements",t,null),!1):(le(t),!0)},me=function(t,e,n){if(It&&("id"===e||"name"===e)&&(n in r||n in te))return!1;if(wt&&!_t[e]&&y(ut,e));else if(Ct&&y(ct,e));else if(!ft[e]||_t[e]){if(!(fe(t)&&(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,t)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(t))&&(bt.attributeNameCheck instanceof RegExp&&y(bt.attributeNameCheck,e)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(e))||"is"===e&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,n)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(n))))return!1}else if(Vt[e]);else if(y(pt,f(n,ht,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Bt[t])if(xt&&!y(dt,f(n,ht,"")));else if(n)return!1;return!0},fe=function(t){return t.indexOf("-")>0},ve=function(t){pe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ft};let r=e.length;for(;r--;){const o=e[r],{name:s,namespaceURI:a,value:l}=o,u=Kt(s);let h="value"===s?l:b(l);if(n.attrName=u,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,pe("uponSanitizeAttribute",t,n),h=n.attrValue,n.forceKeepAttr)continue;if(ue(s,t),!n.keepAttr)continue;if(!Mt&&y(/\/>/i,h)){ue(s,t);continue}Ot&&c([st,at,lt],(t=>{h=f(h,t," ")}));const p=Kt(t.nodeName);if(me(p,u,h)){if(!Dt||"id"!==u&&"name"!==u||(ue(s,t),h="user-content-"+h),K&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(a);else switch(j.getAttributeType(p,u)){case"TrustedHTML":h=K.createHTML(h);break;case"TrustedScriptURL":h=K.createScriptURL(h)}try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),d(i.removed)}catch(t){}}}pe("afterSanitizeAttributes",t,null)},be=function t(e){let n=null;const i=de(e);for(pe("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)pe("uponSanitizeShadowNode",n,null),ge(n)||(n.content instanceof u&&t(n.content),ve(n));pe("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if(Gt=!t,Gt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!he(t)){if("function"!=typeof t.toString)throw _("toString is not a function");if("string"!=typeof(t=t.toString()))throw _("dirty is not a string, aborting")}if(!i.isSupported)return t;if(St||ne(e),i.removed=[],"string"==typeof t&&(Ft=!1),Ft){if(t.nodeName){const e=Kt(t.nodeName);if(!gt[e]||yt[e])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof w)n=ce("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Tt&&!Ot&&!kt&&-1===t.indexOf("<"))return K&&Et?K.createHTML(t):t;if(n=ce(t),!n)return Tt?null:Et?X:""}n&&Pt&&le(n.firstChild);const l=de(Ft?t:n);for(;o=l.nextNode();)ge(o)||(o.content instanceof u&&be(o.content),ve(o));if(Ft)return t;if(Tt){if(At)for(a=nt.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(ft.shadowroot||ft.shadowrootmode)&&(a=rt.call(s,a,!0)),a}let d=kt?n.outerHTML:n.innerHTML;return kt&>["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y($,n.ownerDocument.doctype.name)&&(d="\n"+d),Ot&&c([st,at,lt],(t=>{d=f(d,t," ")})),K&&Et?K.createHTML(d):d},i.setConfig=function(){ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),St=!0},i.clearConfig=function(){Xt=null,St=!1},i.isValidAttribute=function(t,e,n){Xt||ne({});const i=Kt(t),r=Kt(e);return me(i,r,n)},i.addHook=function(t,e){"function"==typeof e&&(ot[t]=ot[t]||[],h(ot[t],e))},i.removeHook=function(t){if(ot[t])return d(ot[t])},i.removeHooks=function(t){ot[t]&&(ot[t]=[])},i.removeAllHooks=function(){ot={}},i}()}()},2546:(t,e,n)=>{n.d(e,{JP:()=>q});var i=n(74788),r=n(12057);let o={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const s=/[&<>"']/,a=new RegExp(s.source,"g"),l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,u=new RegExp(l.source,"g"),c={"&":"&","<":"<",">":">",'"':""","'":"'"},d=t=>c[t];function h(t,e){if(e){if(s.test(t))return t.replace(a,d)}else if(l.test(t))return t.replace(u,d);return t}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(t){return t.replace(p,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const m=/(^|[^\[])\^/g;function f(t,e){t="string"==typeof t?t:t.source,e=e||"";const n={replace:(e,i)=>(i=(i=i.source||i).replace(m,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n}const v=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(t,e,n){if(t){let t;try{t=decodeURIComponent(g(n)).replace(v,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!b.test(n)&&(n=function(t,e){_[" "+t]||(C.test(t)?_[" "+t]=t+"/":_[" "+t]=k(t,"/",!0));const n=-1===(t=_[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(w,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(x,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}const _={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/,M={exec:function(){}};function O(t,e){const n=t.replace(/\|/g,((t,e,n)=>{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function P(t,e,n,i){const r=e.href,o=e.title?h(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const t={type:"link",raw:n,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,t}return{type:"image",raw:n,href:r,title:o,text:h(s)}}class T{constructor(t){this.options=t||o}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:k(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e){const n=t.match(/^(\s+)(?:```)/);if(null===n)return e;const i=n[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[n]=e;return n.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=k(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const t=e[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=n,{type:"blockquote",raw:e[0],tokens:i,text:t}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,i,r,o,s,a,l,u,c,d,h,p,g=e[1].trim();const m=g.length>1,f={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=m?g:"[*+-]");const v=new RegExp(`^( {0,3}${g})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(p=!1,e=v.exec(t))&&!this.rules.block.hr.test(t);){if(n=e[0],t=t.substring(n.length),u=e[2].split("\n",1)[0].replace(/^\t+/,(t=>" ".repeat(3*t.length))),c=t.split("\n",1)[0],this.options.pedantic?(o=2,h=u.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=u.slice(o),o+=e[1].length),a=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",t=t.substring(c.length+1),p=!0),!p){const e=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(d=t.split("\n",1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!r.test(c))&&!s.test(c)&&!e.test(c)&&!i.test(t);){if(c.search(/[^ ]/)>=o||!c.trim())h+="\n"+c.slice(o);else{if(a)break;if(u.search(/[^ ]/)>=4)break;if(r.test(u))break;if(s.test(u))break;if(i.test(u))break;h+="\n"+c}a||c.trim()||(a=!0),n+=d+"\n",t=t.substring(d.length+1),u=c.slice(o)}}f.loose||(l?f.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),f.raw+=n}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=h.trimRight(),f.raw=f.raw.trimRight();const b=f.items.length;for(s=0;s"space"===t.type)),e=t.length>0&&t.some((t=>/\n.*\n/.test(t.raw)));f.loose=e}if(f.loose)for(s=0;s$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:i}}}table(t){const e=this.rules.block.table.exec(t);if(e){const t={type:"table",header:O(e[1]).map((t=>({text:t}))),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];let n,i,r,o,s=t.align.length;for(n=0;n({text:t})));for(s=t.header.length,i=0;i/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):h(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^$/.test(t))return;const e=k(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;const n=t.length;let i=0,r=0;for(;r-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^$/.test(t)?n.slice(1):n.slice(1,-1)),P(e,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:i?i.replace(this.rules.inline._escapes,"$1"):i},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=(n[2]||n[1]).replace(/\s+/g," ");if(t=e[t.toLowerCase()],!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return P(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=i[0].length-1;let r,o,s=n,a=0;const l="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=l.exec(e));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=r.length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const e=t.slice(0,n+i.index+(i[0].length-r.length)+o);if(Math.min(n,o)%2){const t=e.slice(1,-1);return{type:"em",raw:e,text:t,tokens:this.lexer.inlineTokens(t)}}const l=e.slice(2,-2);return{type:"strong",raw:e,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const n=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return n&&i&&(t=t.substring(1,t.length-1)),t=h(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let t,i;return"@"===n[2]?(t=h(this.options.mangle?e(n[1]):n[1]),i="mailto:"+t):(t=h(n[1]),i=t),{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let t,i;if("@"===n[2])t=h(this.options.mangle?e(n[0]):n[0]),i="mailto:"+t;else{let e;do{e=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(e!==n[0]);t=h(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let t;return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:t}}}}const A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:M,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};A.def=f(A.def).replace("label",A._label).replace("title",A._title).getRegex(),A.bullet=/(?:[*+-]|\d{1,9}[.)])/,A.listItemStart=f(/^( *)(bull) */).replace("bull",A.bullet).getRegex(),A.list=f(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex(),A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A._comment=/|$)/,A.html=f(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.blockquote=f(A.blockquote).replace("paragraph",A.paragraph).getRegex(),A.normal={...A},A.gfm={...A.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},A.gfm.table=f(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.gfm.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",A.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.pedantic={...A.normal,html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(A.normal._paragraph).replace("hr",A.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const E={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}E._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",E.punctuation=f(E.punctuation).replace(/punctuation/g,E._punctuation).getRegex(),E.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,E.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,E._comment=f(A._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),E.emStrong.lDelim=f(E.emStrong.lDelim).replace(/punct/g,E._punctuation).getRegex(),E.emStrong.rDelimAst=f(E.emStrong.rDelimAst,"g").replace(/punct/g,E._punctuation).getRegex(),E.emStrong.rDelimUnd=f(E.emStrong.rDelimUnd,"g").replace(/punct/g,E._punctuation).getRegex(),E._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,E._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,E._email=/[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])?)+(?![-_])/,E.autolink=f(E.autolink).replace("scheme",E._scheme).replace("email",E._email).getRegex(),E._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,E.tag=f(E.tag).replace("comment",E._comment).replace("attribute",E._attribute).getRegex(),E._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,E._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,E._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,E.link=f(E.link).replace("label",E._label).replace("href",E._href).replace("title",E._title).getRegex(),E.reflink=f(E.reflink).replace("label",E._label).replace("ref",A._label).getRegex(),E.nolink=f(E.nolink).replace("ref",A._label).getRegex(),E.reflinkSearch=f(E.reflinkSearch,"g").replace("reflink",E.reflink).replace("nolink",E.nolink).getRegex(),E.normal={...E},E.pedantic={...E.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",E._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",E._label).getRegex()},E.gfm={...E.normal,escape:f(E.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\e+" ".repeat(n.length)));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(r=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,i,r,o,s,a,l=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+S("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+S("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,a))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,D))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,D))){if(r=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}if(n=this.tokenizer.inlineText(r,I))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(n.raw.length),e.push(n);return e}}class F{constructor(t){this.options=t||o}code(t,e,n){const i=(e||"").match(/\S*/)[0];if(this.options.highlight){const e=this.options.highlight(t,i);null!=e&&e!==t&&(n=!0,t=e)}return t=t.replace(/\n$/,"")+"\n",i?'
'+(n?t:h(t,!0))+"
\n":"
"+(n?t:h(t,!0))+"
\n"}blockquote(t){return`
\n${t}
\n`}html(t){return t}heading(t,e,n,i){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(t,e,n){const i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,n){if(null===(t=y(this.options.sanitize,this.options.baseUrl,t)))return n;let i='",i}image(t,e,n){if(null===(t=y(this.options.sanitize,this.options.baseUrl,t)))return n;let i=`${n}":">",i}text(t){return t}}class N{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class z{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class R{constructor(t){this.options=t||o,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N,this.slugger=new z}static parse(t,e){return new R(e).parse(t)}static parseInline(t,e){return new R(e).parseInline(t)}parse(t,e=!0){let n,i,r,o,s,a,l,u,c,d,h,p,m,f,v,b,y,_,C,w="";const x=t.length;for(n=0;n0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=_+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=_+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:_}):f+=_),f+=this.parse(v.tokens,m),c+=this.renderer.listitem(f,y,b);w+=this.renderer.list(c,h,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1{"function"==typeof i&&(r=i,i=null);const o={...i},s=function(t,e,n){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="

    An error occurred:

    "+h(i.message+"",!0)+"
    ";return e?Promise.resolve(t):n?void n(null,t):t}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}((i={...V.defaults,...o}).silent,i.async,r);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){const o=i.highlight;let a;try{i.hooks&&(n=i.hooks.preprocess(n)),a=t(n,i)}catch(t){return s(t)}const l=function(t){let n;if(!t)try{i.walkTokens&&V.walkTokens(a,i.walkTokens),n=e(a,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(e){t=e}return i.highlight=o,t?s(t):r(null,n)};if(!o||o.length<3)return l();if(delete i.highlight,!a.length)return l();let u=0;return V.walkTokens(a,(function(t){"code"===t.type&&(u++,setTimeout((()=>{o(t.text,t.lang,(function(e,n){if(e)return l(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),u--,0===u&&l()}))}),0))})),void(0===u&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((e=>t(e,i))).then((t=>i.walkTokens?Promise.all(V.walkTokens(t,i.walkTokens)).then((()=>t)):t)).then((t=>e(t,i))).then((t=>i.hooks?i.hooks.postprocess(t):t)).catch(s);try{i.hooks&&(n=i.hooks.preprocess(n));const r=t(n,i);i.walkTokens&&V.walkTokens(r,i.walkTokens);let o=e(r,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(t){return s(t)}}}function V(t,e,n){return H(L.lex,R.parse)(t,e,n)}V.options=V.setOptions=function(t){var e;return V.defaults={...V.defaults,...t},e=V.defaults,o=e,V},V.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},V.defaults=o,V.use=function(...t){const e=V.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((t=>{const n={...t};if(n.async=V.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=n.apply(this,e)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=V.defaults.renderer||new F;for(const n in t.renderer){const i=e[n];e[n]=(...r)=>{let o=t.renderer[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.renderer=e}if(t.tokenizer){const e=V.defaults.tokenizer||new T;for(const n in t.tokenizer){const i=e[n];e[n]=(...r)=>{let o=t.tokenizer[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.tokenizer=e}if(t.hooks){const e=V.defaults.hooks||new B;for(const n in t.hooks){const i=e[n];B.passThroughHooks.has(n)?e[n]=r=>{if(V.defaults.async)return Promise.resolve(t.hooks[n].call(e,r)).then((t=>i.call(e,t)));const o=t.hooks[n].call(e,r);return i.call(e,o)}:e[n]=(...r)=>{let o=t.hooks[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.hooks=e}if(t.walkTokens){const e=V.defaults.walkTokens;n.walkTokens=function(n){let i=[];return i.push(t.walkTokens.call(this,n)),e&&(i=i.concat(e.call(this,n))),i}}V.setOptions(n)}))},V.walkTokens=function(t,e){let n=[];for(const i of t)switch(n=n.concat(e.call(V,i)),i.type){case"table":for(const t of i.header)n=n.concat(V.walkTokens(t.tokens,e));for(const t of i.rows)for(const i of t)n=n.concat(V.walkTokens(i.tokens,e));break;case"list":n=n.concat(V.walkTokens(i.items,e));break;default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[i.type]?V.defaults.extensions.childTokens[i.type].forEach((function(t){n=n.concat(V.walkTokens(i[t],e))})):i.tokens&&(n=n.concat(V.walkTokens(i.tokens,e)))}return n},V.parseInline=H(L.lexInline,R.parseInline),V.Parser=R,V.parser=R.parse,V.Renderer=F,V.TextRenderer=N,V.Lexer=L,V.lexer=L.lex,V.Tokenizer=T,V.Slugger=z,V.Hooks=B,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,R.parse,L.lex;var Y=n(88002),j=(n(28049),n(58497)),Z=n(91211);class ${}const U=new i.OlP("SECURITY_CONTEXT");let G=(()=>{class t{constructor(t,e,n,i,r){this.platform=t,this.securityContext=e,this.http=n,this.sanitizer=r,this.initialMarkedOptions={renderer:new F},this.options=i}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,n=!1,i=this.options){const r=this.trimIndentation(t),o=e?this.decodeHtml(r):r,s=V(n?this.renderEmoji(o):o,i);return this.sanitizer.sanitize(this.securityContext,s)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe((0,Y.U)((e=>this.handleExtension(t,e))))}highlight(t){if((0,r.NF)(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,(t=>t.classList.add("language-none"))),Prism.highlightAllUnder(t)}}renderKatex(t,e){if(!(0,r.NF)(this.platform))return t;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,((t,n)=>katex.renderToString(n,e)))}decodeHtml(t){if(!(0,r.NF)(this.platform))return t;const e=document.createElement("textarea");return e.innerHTML=t,e.value}handleExtension(t,e){const n=t?t.split("?")[0].split(".").splice(-1).join():"";return"md"!==n?"```"+n+"\n"+e+"\n```":e}renderEmoji(t){if(!(0,r.NF)(this.platform))return t;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map((t=>{let n=e;return t.length>0&&(n=isNaN(n)?t.search(/\S|$/):Math.min(t.search(/\S|$/),n)),isNaN(e)&&(e=n),n?t.substring(n):t})).join("\n")}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.Lbi),i.LFG(U),i.LFG(j.eN,8),i.LFG($,8),i.LFG(Z.H7))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),q=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[G,e&&e.loader||[],e&&e.markedOptions||[],{provide:U,useValue:e&&null!=e.sanitize?e.sanitize:i.q3G.HTML}]}}static forChild(){return{ngModule:t}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},26215:(t,e,n)=>{n.d(e,{X:()=>o});var i=n(79765),r=n(77971);class o extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}next(t){super.next(this._value=t)}}},23098:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(59193),r=n(25917),o=n(40205);class s{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new s("N",t):s.undefinedValueNotification}static createError(t){return new s("E",void 0,t)}static createComplete(){return s.completeNotification}}s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0)},29856:(t,e,n)=>{n.d(e,{y:()=>u});var i=n(77393),r=n(29181),o=n(46490),s=n(16554),a=n(34022),l=n(82494);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[r.b])return t[r.b]()}return t||e||n?new i.L(t,e,n):new i.L(o.c)}(t,e,n);if(s?a.add(s.call(a,this.source)):a.add(this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=c(e))(((e,n)=>{let i;i=this.subscribe((e=>{try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.L](){return this}pipe(...t){return 0===t.length?this:(0,a.U)(t)(this)}toPromise(t){return new(t=c(t))(((t,e)=>{let n;this.subscribe((t=>n=t),(t=>e(t)),(()=>t(n)))}))}}return t.create=e=>new t(e),t})();function c(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},46490:(t,e,n)=>{n.d(e,{c:()=>o});var i=n(82494),r=n(54449);const o={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,r.z)(t)},complete(){}}},55197:(t,e,n)=>{n.d(e,{L:()=>r});var i=n(77393);class r extends i.L{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},74235:(t,e,n)=>{n.d(e,{t:()=>f});var i=n(79765),r=n(71023);class o extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var s=n(69457);class a extends s.v{}const l=new a(o);var u=n(59178),c=n(77393),d=n(23098);class h extends c.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(h.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(d.P.createNext(t))}_error(t){this.scheduleMessage(d.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(d.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=n(77971),m=n(78858);class f extends i.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new v(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=u.w.EMPTY:(this.observers.push(t),o=new m.W(this,t)),i&&t.add(t=new h(t,i)),e)for(let e=0;ee&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i}}class v{constructor(t,e){this.time=t,this.value=e}}},79765:(t,e,n)=>{n.d(e,{Yc:()=>u,xQ:()=>c});var i=n(29856),r=n(77393),o=n(59178),s=n(77971),a=n(78858),l=n(29181);class u extends r.L{constructor(t){super(t),this.destination=t}}let c=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new u(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let e=0;enew d(t,e),t})();class d extends c{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},78858:(t,e,n)=>{n.d(e,{W:()=>r});var i=n(59178);class r extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},77393:(t,e,n)=>{n.d(e,{L:()=>u});var i=n(69105),r=n(46490),o=n(59178),s=n(29181),a=n(82494),l=n(54449);class u extends o.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.c;break;case 1:if(!t){this.destination=r.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,t,e,n)}}[s.b](){return this}static create(t,e,n){const i=new u(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class c extends u{constructor(t,e,n,o){let s;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==r.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw t;(0,l.z)(t)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,l.z)(e),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},59178:(t,e,n)=>{n.d(e,{w:()=>a});var i=n(59796),r=n(81555),o=n(69105);const s=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let t=0;tt.concat(e instanceof s?e.errors:e)),[])}a.EMPTY=((l=new a).closed=!0,l)},82494:(t,e,n)=>{n.d(e,{v:()=>r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},85345:(t,e,n)=>{n.d(e,{IY:()=>s,Ds:()=>a,ft:()=>l});var i=n(77393),r=n(29856),o=n(98314);class s extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof r.y)return t.subscribe(e);let n;try{n=(0,o.s)(t)(e)}catch(t){e.error(t)}return n}},52441:(t,e,n)=>{n.d(e,{c:()=>a,N:()=>l});var i=n(79765),r=n(29856),o=n(59178),s=n(51307);class a extends r.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,s.x)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},9112:(t,e,n)=>{n.d(e,{aj:()=>u});var i=n(54869),r=n(59796),o=n(55197),s=n(96563),a=n(56693);const l={};function u(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,r.k)(t[0])&&(t=t[0]),(0,a.n)(t,n).lift(new c(e))}class c{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new d(t,this.resultSelector))}}class d extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{n.d(e,{z:()=>o});var i=n(25917),r=n(63282);function o(...t){return(0,r.J)(1)((0,i.of)(...t))}},41439:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(29856),r=n(97968),o=n(59193);function s(t){return new i.y((e=>{let n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,r.D)(n):(0,o.c)()).subscribe(e)}))}},59193:(t,e,n)=>{n.d(e,{E:()=>r,c:()=>o});var i=n(29856);const r=new i.y((t=>t.complete()));function o(t){return t?function(t){return new i.y((e=>t.schedule((()=>e.complete()))))}(t):r}},35758:(t,e,n)=>{n.d(e,{D:()=>l});var i=n(29856),r=n(59796),o=n(88002),s=n(81555),a=n(97968);function l(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return u(e,null);if((0,s.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map((t=>e[t])),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)((t=>e(...t))))}return u(t,null)}function u(t,e){return new i.y((n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let l=0;l{c||(c=!0,s++),r[l]=t},error:t=>n.error(t),complete:()=>{o++,o!==i&&c||(s===i&&n.next(e?e.reduce(((t,e,n)=>(t[e]=r[n],t)),{}):r),n.complete())}}))}}))}},97968:(t,e,n)=>{n.d(e,{D:()=>d});var i=n(29856),r=n(98314),o=n(59178),s=n(16554),a=n(94087),l=n(20377),u=n(44072),c=n(69489);function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new i.y((n=>{const i=new o.w;return i.add(e.schedule((()=>{const r=t[s.L]();i.add(r.subscribe({next(t){i.add(e.schedule((()=>n.next(t))))},error(t){i.add(e.schedule((()=>n.error(t))))},complete(){i.add(e.schedule((()=>n.complete())))}}))}))),i}))}(t,e);if((0,u.t)(t))return function(t,e){return new i.y((n=>{const i=new o.w;return i.add(e.schedule((()=>t.then((t=>{i.add(e.schedule((()=>{n.next(t),i.add(e.schedule((()=>n.complete())))})))}),(t=>{i.add(e.schedule((()=>n.error(t))))}))))),i}))}(t,e);if((0,c.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y((n=>{const i=new o.w;let r;return i.add((()=>{r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((()=>{r=t[l.hZ](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,r.s)(t))}},56693:(t,e,n)=>{n.d(e,{n:()=>s});var i=n(29856),r=n(55015),o=n(94087);function s(t,e){return e?(0,o.r)(t,e):new i.y((0,r.V)(t))}},22759:(t,e,n)=>{n.d(e,{R:()=>a});var i=n(29856),r=n(59796),o=n(69105),s=n(88002);function a(t,e,n,u){return(0,o.m)(n)&&(u=n,n=void 0),u?a(t,e,n).pipe((0,s.U)((t=>(0,r.k)(t)?u(...t):u(t)))):new i.y((i=>{l(t,e,(function(t){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(t)}),i,n)}))}function l(t,e,n,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),o=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),o=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),o=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o{n.d(e,{T:()=>a});var i=n(29856),r=n(54869),o=n(63282),s=n(56693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,r.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(e)((0,s.n)(t,n))}},25917:(t,e,n)=>{n.d(e,{of:()=>s});var i=n(54869),r=n(56693),o=n(94087);function s(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,r.n)(t)}},98085:(t,e,n)=>{n.d(e,{S3:()=>a});var i=n(59796),r=n(56693),o=n(55197),s=n(96563);function a(...t){if(1===t.length){if(!(0,i.k)(t[0]))return t[0];t=t[0]}return(0,r.n)(t,void 0).lift(new l)}class l{call(t,e){return e.subscribe(new u(t))}}class u extends o.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{n.d(e,{_:()=>r});var i=n(29856);function r(t,e){return e?new i.y((n=>e.schedule(o,0,{error:t,subscriber:n}))):new i.y((e=>e.error(t)))}function o({error:t,subscriber:e}){e.error(t)}},46797:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(29856),r=n(33637),o=n(26561),s=n(54869);function a(t=0,e,n){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,s.K)(e)&&(n=e),(0,s.K)(n)||(n=r.P),new i.y((e=>{const i=(0,o.k)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:a,subscriber:e})}))}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},21571:(t,e,n)=>{n.d(e,{$R:()=>l});var i=n(56693),r=n(59796),o=n(77393),s=n(20377),a=n(85345);function l(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),(0,i.n)(t,void 0).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new c(t,this.resultSelector))}}class c 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,r.k)(t)?e.push(new h(t)):"function"==typeof t[s.hZ]?e.push(new d(t[s.hZ]())):e.push(new p(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 p extends a.Ds{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[s.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,a.ft)(this.observable,new a.IY(this))}}},5304:(t,e,n)=>{n.d(e,{K:()=>r});var i=n(85345);function r(t){return function(e){const n=new o(t),i=e.lift(n);return n.caught=i}}class o{constructor(t){this.selector=t}call(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}class s extends i.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const n=new i.IY(this);this.add(n);const r=(0,i.ft)(e,n);r!==n&&this.add(r)}}}},94612:(t,e,n)=>{n.d(e,{b:()=>r});var i=n(19773);function r(t,e){return(0,i.zg)(t,e,1)}},28984:(t,e,n)=>{n.d(e,{D:()=>r});var i=n(85345);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new s(t,this.durationSelector))}}class s extends i.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,i.ft)(e,new i.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)}}}},54395:(t,e,n)=>{n.d(e,{b:()=>o});var i=n(77393),r=n(33637);function o(t,e=r.P){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},95242:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(77393);function r(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s(t,this.defaultValue))}}class s extends i.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},87874:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(33637),r=n(77393),o=n(23098);function s(t,e=i.P){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(r,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends r.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},87519:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(77393);function r(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))}}class s extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(t){return this.destination.error(t)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},86804:(t,e,n)=>{n.d(e,{l:()=>o});var i=n(22416),r=n(25917);function o(...t){return e=>(0,i.z)(e,(0,r.of)(...t))}},45435:(t,e,n)=>{n.d(e,{h:()=>r});var i=n(77393);function r(t,e){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}class s extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}},68939:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(77393),r=n(59178);function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.L{constructor(t,e){super(t),this.add(new r.w(e))}}},28049:(t,e,n)=>{n.d(e,{P:()=>u});var i=n(13410),r=n(45435),o=n(15257),s=n(95242),a=n(44635),l=n(54487);function u(t,e){const n=arguments.length>=2;return u=>u.pipe(t?(0,r.h)(((e,n)=>t(e,n,u))):l.y,(0,o.q)(1),n?(0,s.d)(e):(0,a.T)((()=>new i.K)))}},88002:(t,e,n)=>{n.d(e,{U:()=>r});var i=n(77393);function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}},63282:(t,e,n)=>{n.d(e,{J:()=>o});var i=n(19773),r=n(54487);function o(t=Number.POSITIVE_INFINITY){return(0,i.zg)(r.y,t)}},19773:(t,e,n)=>{n.d(e,{zg:()=>s});var i=n(88002),r=n(97968),o=n(85345);function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s(((n,o)=>(0,r.D)(t(n,o)).pipe((0,i.U)(((t,i)=>e(n,t,o,i))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends o.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},59328:(t,e,n)=>{n.d(e,{G:()=>r});var i=n(77393);function r(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends i.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},51307:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(77393);function r(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new s(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class s extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},79196:(t,e,n)=>{n.d(e,{r:()=>o});var i=n(77393),r=n(59193);function o(t=-1){return e=>0===t?(0,r.c)():t<0?e.lift(new s(-1,e)):e.lift(new s(t-1,e))}class s{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.count,this.source))}}class a extends i.L{constructor(t,e,n){super(t),this.count=e,this.source=n}complete(){if(!this.isStopped){const{source:t,count:e}=this;if(0===e)return super.complete();e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}},72361:(t,e,n)=>{n.d(e,{a:()=>o});var i=n(79765),r=n(85345);function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new a(t,this.notifier,e))}}class a extends r.Ds{constructor(t,e,n){super(t),this.notifier=e,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new i.xQ;try{const{notifier:e}=this;t=e(this.notifications)}catch(t){return super.complete()}this.retries=t,this.retriesSubscription=(0,r.ft)(t,new r.IY(this))}}},42145:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(77393);function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new o(t,e,n))}}class o{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))}}class s extends i.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(t){this.destination.error(t)}this.seed=n,this.destination.next(n)}}},9945:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(52441),r=n(51307),o=n(79765);function s(){return new o.xQ}function a(){return t=>{return(0,r.x)()((e=s,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,i.N);return r.source=t,r.subjectFactory=n,r})(t));var e}}},47349:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(74235);function r(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let o,s,a=0,l=!1,u=!1;return function(c){let d;a++,!o||l?(l=!1,o=new i.t(t,e,r),d=o.subscribe(this),s=c.subscribe({next(t){o.next(t)},error(t){l=!0,o.error(t)},complete(){u=!0,s=void 0,o.complete()}}),u&&(s=void 0)):d=o.subscribe(this),this.add((()=>{a--,d.unsubscribe(),d=void 0,s&&!u&&n&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)}))}}(r))}},13653:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(77393);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.total=t}call(t,e){return e.subscribe(new s(t,this.total))}}class s extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},39761:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(22416),r=n(54869);function o(...t){const e=t[t.length-1];return(0,r.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},43190:(t,e,n)=>{n.d(e,{w:()=>s});var i=n(88002),r=n(97968),o=n(85345);function s(t,e){return"function"==typeof e?n=>n.pipe(s(((n,o)=>(0,r.D)(t(n,o)).pipe((0,i.U)(((t,i)=>e(n,t,o,i))))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends o.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new o.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,o.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},15257:(t,e,n)=>{n.d(e,{q:()=>s});var i=n(77393),r=n(7108),o=n(59193);function s(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},46782:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(85345);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new s(t),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class s extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},70409:(t,e,n)=>{n.d(e,{o:()=>r});var i=n(77393);function r(t,e=!1){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.inclusive))}}class s extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(t){return void e.error(t)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}},68307:(t,e,n)=>{n.d(e,{b:()=>s});var i=n(77393),r=n(98640),o=n(69105);function s(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=r.Z,this._tapError=r.Z,this._tapComplete=r.Z,this._tapError=n||r.Z,this._tapComplete=i||r.Z,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r.Z,this._tapError=e.error||r.Z,this._tapComplete=e.complete||r.Z)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},43219:(t,e,n)=>{n.d(e,{p:()=>s});var i=n(77393),r=n(33637);const o={leading:!0,trailing:!1};function s(t,e=r.P,n=o){return i=>i.lift(new a(t,e,n.leading,n.trailing))}class a{constructor(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}call(t,e){return e.subscribe(new l(t,this.duration,this.scheduler,this.leading,this.trailing))}}class l extends i.L{constructor(t,e,n,i,r){super(t),this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(u,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function u(t){const{subscriber:e}=t;e.clearThrottle()}},44635:(t,e,n)=>{n.d(e,{T:()=>o});var i=n(13410),r=n(77393);function o(t=l){return e=>e.lift(new s(t))}class s{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function l(){return new i.K}},57057:(t,e,n)=>{n.d(e,{M:()=>o});var i=n(55197),r=n(96563);function o(...t){return e=>{let n;"function"==typeof t[t.length-1]&&(n=t.pop());const i=t;return e.lift(new s(i,n))}}class s{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.L{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let t=0;t0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}},94087:(t,e,n)=>{n.d(e,{r:()=>o});var i=n(29856),r=n(59178);function o(t,e){return new i.y((n=>{const i=new r.w;let o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}},71023:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(59178);class r extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(t){i=!0,n=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},69457:(t,e,n)=>{n.d(e,{v:()=>r});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,(()=>r.delegate&&r.delegate!==this?r.delegate.now():e())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},42569:(t,e,n)=>{n.d(e,{Z:()=>a});var i=n(71023);class r extends i.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 o=n(69457);class s extends o.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{n.d(e,{P:()=>r});var i=n(71023);const r=new(n(69457).v)(i.o)},20377:(t,e,n)=>{n.d(e,{hZ:()=>i});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},16554:(t,e,n)=>{n.d(e,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},29181:(t,e,n)=>{n.d(e,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(t,e,n)=>{n.d(e,{W:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},13410:(t,e,n)=>{n.d(e,{K:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},77971:(t,e,n)=>{n.d(e,{N:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},54449:(t,e,n)=>{function i(t){setTimeout((()=>{throw t}),0)}n.d(e,{z:()=>i})},54487:(t,e,n)=>{function i(t){return t}n.d(e,{y:()=>i})},59796:(t,e,n)=>{n.d(e,{k:()=>i});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},69489:(t,e,n)=>{n.d(e,{z:()=>i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},69105:(t,e,n)=>{function i(t){return"function"==typeof t}n.d(e,{m:()=>i})},26561:(t,e,n)=>{n.d(e,{k:()=>r});var i=n(59796);function r(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},81555:(t,e,n)=>{function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>i})},95639:(t,e,n)=>{n.d(e,{b:()=>r});var i=n(29856);function r(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},44072:(t,e,n)=>{function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>i})},54869:(t,e,n)=>{function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>i})},98640:(t,e,n)=>{function i(){}n.d(e,{Z:()=>i})},34022:(t,e,n)=>{n.d(e,{z:()=>r,U:()=>o});var i=n(54487);function r(...t){return o(t)}function o(t){return 0===t.length?i.y:1===t.length?t[0]:function(e){return t.reduce(((t,e)=>e(t)),e)}}},98314:(t,e,n)=>{n.d(e,{s:()=>c});var i=n(55015),r=n(54449),o=n(20377),s=n(16554),a=n(69489),l=n(44072),u=n(81555);const c=t=>{if(t&&"function"==typeof t[s.L])return c=t,t=>{const e=c[s.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return n=t,t=>(n.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,r.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const n=e[o.hZ]();for(;;){let e;try{e=n.next()}catch(e){return t.error(e),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add((()=>{n.return&&n.return()})),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,c}},55015:(t,e,n)=>{n.d(e,{V:()=>i});const i=t=>e=>{for(let n=0,i=t.length;n{n.d(e,{D:()=>a});var i=n(77393);class r extends i.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var o=n(98314),s=n(29856);function a(t,e,n,i,a=new r(t,n,i)){if(!a.closed)return e instanceof s.y?e.subscribe(a):(0,o.s)(e)(a)}},42775:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);Object.defineProperty(e,"conformToMask",{enumerable:!0,get:function(){return i(r).default}});var o=n(2);Object.defineProperty(e,"adjustCaretPosition",{enumerable:!0,get:function(){return i(o).default}});var s=n(5);Object.defineProperty(e,"createTextMaskInputElement",{enumerable:!0,get:function(){return i(s).default}})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.placeholderChar="_",e.strFunction="function"},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.previousConformedValue,r=void 0===e?i:e,o=t.previousPlaceholder,s=void 0===o?i:o,a=t.currentCaretPosition,l=void 0===a?0:a,u=t.conformedValue,c=t.rawValue,d=t.placeholderChar,h=t.placeholder,p=t.indexesOfPipedChars,g=void 0===p?n:p,m=t.caretTrapIndexes,f=void 0===m?n:m;if(0===l||!c.length)return 0;var v=c.length,b=r.length,y=h.length,_=u.length,C=v-b,w=C>0;if(C>1&&!w&&0!==b)return l;var x=0,M=void 0,O=void 0;if(!w||r!==u&&u!==h){var k=u.toLowerCase(),S=c.toLowerCase().substr(0,l).split(i).filter((function(t){return-1!==k.indexOf(t)}));O=S[S.length-1];var P=s.substr(0,S.length).split(i).filter((function(t){return t!==d})).length,T=h.substr(0,S.length).split(i).filter((function(t){return t!==d})).length,A=T!==P,E=void 0!==s[S.length-1]&&void 0!==h[S.length-2]&&s[S.length-1]!==d&&s[S.length-1]!==h[S.length-1]&&s[S.length-1]===h[S.length-2];!w&&(A||E)&&P>0&&h.indexOf(O)>-1&&void 0!==c[l]&&(M=!0,O=c[l]);for(var I=g.map((function(t){return k[t]})),D=I.filter((function(t){return t===O})).length,L=S.filter((function(t){return t===O})).length,F=h.substr(0,h.indexOf(d)).split(i).filter((function(t,e){return t===O&&c[e]!==t})).length,N=F+L+D+(M?1:0),z=0,R=0;R<_&&(x=R+1,k[R]===O&&z++,!(z>=N));R++);}else x=l-C;if(w){for(var B=x,H=x;H<=y;H++)if(h[H]===d&&(B=H),h[H]===d||-1!==f.indexOf(H)||H===y)return B}else if(M){for(var V=x-1;V>=0;V--)if(u[V]===O||-1!==f.indexOf(V)||0===V)return V}else for(var Y=x;Y>=0;Y--)if(h[Y-1]===d||-1!==f.indexOf(Y)||0===Y)return Y};var n=[],i=""},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i="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};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(e)){if((void 0===e?"undefined":i(e))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");e=e(t,n),e=(0,r.processCaretTraps)(e).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,c=n.previousConformedValue,d=void 0===c?a:c,h=n.placeholderChar,p=void 0===h?o.placeholderChar:h,g=n.placeholder,m=void 0===g?(0,r.convertMaskToPlaceholder)(e,p):g,f=n.currentCaretPosition,v=n.keepCharPositions,b=!1===u&&void 0!==d,y=t.length,_=d.length,C=m.length,w=e.length,x=y-_,M=x>0,O=f+(M?-x:0),k=O+Math.abs(x);if(!0===v&&!M){for(var S=a,P=O;P=O&&e=0;A--){var E=T[A].char;E!==p&&E===m[A>=O&&_===w?A-x:A]&&T.splice(A,1)}var I=a,D=!1;t:for(var L=0;L0)for(;T.length>0;){var N=T.shift(),z=N.char,R=N.isNew;if(z===p&&!0!==b){I+=p;continue t}if(e[L].test(z)){if(!0===v&&!1!==R&&d!==a&&!1!==u&&M){for(var B=T.length,H=null,V=0;V0&&void 0!==arguments[0]?arguments[0]:o,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(t))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==t.indexOf(e))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(e)+"\n\nThe mask that was received is: "+JSON.stringify(t));return t.map((function(t){return t instanceof RegExp?e:t})).join("")},e.isArray=i,e.isString=function(t){return"string"==typeof t||t instanceof String},e.isNumber=function(t){return"number"==typeof t&&void 0===t.length&&!isNaN(t)},e.isNil=function(t){return null==t},e.processCaretTraps=function(t){for(var e=[],n=void 0;-1!==(n=t.indexOf(s));)e.push(n),t.splice(n,1);return{maskWithoutCaretTraps:t,indexes:e}};var r=n(1),o=[],s="[]"},function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){document.activeElement===t&&(g?m((function(){return t.setSelectionRange(e,e,h)}),0):t.setSelectionRange(e,e,h))}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:t,h=i.inputElement,g=i.mask,m=i.guide,f=i.pipe,v=i.placeholderChar,b=void 0===v?c.placeholderChar:v,y=i.keepCharPositions,_=void 0!==y&&y,C=i.showMask,w=void 0!==C&&C;if(void 0===n&&(n=h.value),n!==e.previousConformedValue){(void 0===g?"undefined":s(g))===p&&void 0!==g.pipe&&void 0!==g.mask&&(f=g.pipe,g=g.mask);var x=void 0,M=void 0;if(g instanceof Array&&(x=(0,u.convertMaskToPlaceholder)(g,b)),!1!==g){var O=function(t){if((0,u.isString)(t))return t;if((0,u.isNumber)(t))return String(t);if(null==t)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(t))}(n),k=h.selectionEnd,S=e.previousConformedValue,P=e.previousPlaceholder,T=void 0;if((void 0===g?"undefined":s(g))===c.strFunction){if(!1===(M=g(O,{currentCaretPosition:k,previousConformedValue:S,placeholderChar:b})))return;var A=(0,u.processCaretTraps)(M);M=A.maskWithoutCaretTraps,T=A.indexes,x=(0,u.convertMaskToPlaceholder)(M,b)}else M=g;var E={previousConformedValue:S,guide:m,placeholderChar:b,pipe:f,placeholder:x,currentCaretPosition:k,keepCharPositions:_},I=(0,l.default)(O,M,E).conformedValue,D=(void 0===f?"undefined":s(f))===c.strFunction,L={};D&&(!1===(L=f(I,o({rawValue:O},E)))?L={value:S,rejected:!0}:(0,u.isString)(L)&&(L={value:L}));var F=D?L.value:I,N=(0,a.default)({previousConformedValue:S,previousPlaceholder:P,conformedValue:F,placeholder:x,rawValue:O,currentCaretPosition:k,placeholderChar:b,indexesOfPipedChars:L.indexesOfPipedChars,caretTrapIndexes:T}),z=F===x&&0===N?w?x:d:F;e.previousConformedValue=z,e.previousPlaceholder=x,h.value!==z&&(h.value=z,r(h,N))}}}}};var a=i(n(2)),l=i(n(3)),u=n(4),c=n(1),d="",h="none",p="object",g="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},2005:(t,e,n)=>{var i=n(91211),r=n(74788),o=n(12057),s=n(58497),a=n(56083),l=n(79221);let u=(()=>{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 h(this._renderer,null,e,"register",[n]),new c(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 c extends a.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new d(this._id,t,e||{},this._renderer)}}class d{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 h(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 h(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const p="@",g="@.disabled";let m=(()=>{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 f("",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 f{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==g?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 f{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==g?(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 b=(()=>{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"),_=[{provide:a._j,useClass:u},{provide:l.NH,useFactory:function(){return new l.Ar}},{provide:l.Th,useClass:b},{provide:r.FYo,useFactory:function(t,e,n){return new m(t,e,n)},deps:[i.se,l.Th,r.R0b]}],C=[{provide:l.Vi,useFactory:function(){return(0,l.QN)()?new l.DT:new l.uL}},{provide:y,useValue:"BrowserAnimations"},..._],w=[{provide:l.Vi,useClass:l.nV},{provide:y,useValue:"NoopAnimations"},..._];let x=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?w:C}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:C,imports:[i.b2]}),t})();var M=n(47029),O=n(83044),k=n(43232),S=n(23358),P=n.n(S);const T=new r.OlP("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),A=new r.OlP("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),E=new r.OlP("A function that sanitizes value for a CSS rule",{factory:()=>t=>t,providedIn:"root"}),I=P();let D=(()=>{class t{constructor(t,e,{defaultView:n},i){this.config=t,this.sanitizeStyle=e,this.domPurify=I(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)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(T),r.LFG(E),r.LFG(o.K0),r.LFG(A))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var L=n(2546),F=n(97582),N=n(34016),z=n(62579),R=n(6226),B=n(78668),H=n(73460),V=n(47999);let Y=(()=>{class t{constructor(t,e,n){this.pageLoaded$=t,this.router=e,this.storage=n,this.pageLoadedInit="0",this.pageLoaded=this.pageLoaded$,this.version="1.19.0"}ngOnInit(){this.replaceEnvInURI()}replaceEnvInURI(){return(0,F.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(M.V1),r.Y36(N.F0),r.Y36(z.H3))},t.ɵcmp=r.Xpm({type:t,selectors:[["app"]],hostVars:3,hostBindings:function(t,e){2&t&&(r.Ikx("$.class._loaded",e.pageLoaded),r.ekj("_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:[R.G,B.$,H.V,V.w,N.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 j=[{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",target:"_blank"},{section:"Documentation",title:"Changelog",route:"changelog",keywords:"release, change, changelog, archive, history"},{section:"Documentation",title:"Contenteditable accessor",route:"angular-contenteditable-accessor",keywords:"contenteditable, accessor, angular contenteditable accessor"},{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:"Appearance",route:"appearance",keywords:"editor, appearance, wysiwyg, редактор, текст, html, rich, text"},{section:"Examples",title:"Checkbox",route:"checkbox",keywords:"editor, checkbox, 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"}]},{section:"Examples",title:"Toolbar",subPages:[{section:"Examples",title:"Align bottom",keywords:"editor, toolbar, bottom, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/toolbar/bottom"},{section:"Examples",title:"Floating",keywords:"editor, toolbar, floating, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/toolbar/floating"}]}],Z=[{path:"starter-kit",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(9478)]).then(n.bind(n,19478))).ExampleTuiEditorStarterModule})),data:{title:"StarterKit"}},{path:"stackblitz",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(7726).then(n.bind(n,67726))).StackblitzStarterModule})),data:{title:"Stackblitz Starter"}},{path:"color-picker",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2504)]).then(n.bind(n,42504))).ExampleTuiEditorInputColorPickerModule})),data:{title:"Input color picker"}},{path:"angular-contenteditable-accessor",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(9918).then(n.bind(n,9918))).ExampleAngularContenteditableAccessorModule})),data:{title:"Angular contenteditable accessor"}},{path:"font",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(7932)]).then(n.bind(n,47932))).ExampleTuiEditorFontModule})),data:{title:"Font"}},{path:"anchors",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(760)]).then(n.bind(n,80760))).ExampleTuiEditorAnchorsModule})),data:{title:"Anchors"}},{path:"appearance",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(6240)]).then(n.bind(n,46240))).ExampleTuiEditorAppearanceModule})),data:{title:"Appearance"}},{path:"focus",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(6233)]).then(n.bind(n,6233))).ExampleTuiEditorFocusModule})),data:{title:"Focus"}},{path:"checkbox",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(4203)]).then(n.bind(n,64203))).ExampleTuiEditorCheckboxModule})),data:{title:"Checkbox"}},{path:"groups",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8033)]).then(n.bind(n,8033))).ExampleTuiEditorGroupsModule})),data:{title:"Groups"}},{path:"upload-files",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(965)]).then(n.bind(n,60965))).ExampleTuiEditorUploadFilesModule})),data:{title:"Upload files"}},{path:"custom-tool/paste-emoji",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(1318)]).then(n.bind(n,71318))).ExampleTuiEditorPasteEmojiToolModule})),data:{title:"Editor — Paste emoji custom tool"}},{path:"custom-tool/color-picker",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8490)]).then(n.bind(n,98490))).ExampleTuiEditorColorPickerToolModule})),data:{title:"Editor — Color picker custom tool"}},{path:"custom-tool/paste-image",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(7573)]).then(n.bind(n,77573))).ExampleTuiEditorPasteImageToolModule})),data:{title:"Editor — Paste image custom tool"}},{path:"highlight/text",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(517)]).then(n.bind(n,80517))).ExampleTuiEditorMarkTextModule})),data:{title:"Editor — Highlight text"}},{path:"toolbar/bottom",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(9762)]).then(n.bind(n,39762))).ExampleToolbarBottomModule})),data:{title:"Editor — Toolbar"}},{path:"toolbar/floating",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8934)]).then(n.bind(n,38934))).ExampleToolbarFloatingModule})),data:{title:"Editor — Toolbar"}},{path:"processing/legacy-html",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(9345)]).then(n.bind(n,9345))).ExampleTuiEditorLegacyHtmlModule})),data:{title:"Editor — Legacy html"}},{path:"processing/cleanup-html",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1919)]).then(n.bind(n,51919))).ExampleTuiEditorCleanupHtmlModule})),data:{title:"Editor — Cleanup html"}},{path:"processing/markdown",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8876)]).then(n.bind(n,48876))).ExampleTuiEditorMarkdownModule})),data:{title:"Editor — Markdown"}},{path:"highlight/code",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(668)]).then(n.bind(n,668))).ExampleTuiEditorCodeBlockModule})),data:{title:"Editor — Highlight code"}},{path:"images/resizable",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1975)]).then(n.bind(n,81975))).ExampleTuiEditorResizableImagesToolModule})),data:{title:"Editor — Resizable images"}},{path:"images/preview",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8841)]).then(n.bind(n,78841))).ExampleTuiEditorPreviewImagesToolModule})),data:{title:"Editor — Preview images"}},{path:"images/upload",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8669)]).then(n.bind(n,78669))).ExampleTuiEditorUploadImagesModule})),data:{title:"Editor — Upload images"}},{path:"embed/youtube",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1320)]).then(n.bind(n,51320))).ExampleTuiEditorEmbedYoutubeModule})),data:{title:"Editor — Youtube"}},{path:"embed/iframe",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2291)]).then(n.bind(n,2291))).ExampleTuiEditorEmbedIframeModule})),data:{title:"Editor — Iframe"}},{path:"embed/html5",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2520)]).then(n.bind(n,92520))).ExampleTuiEditorEmbedHtml5Module})),data:{title:"Editor — HTML5"}},{path:"changelog",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(1089).then(n.bind(n,1089))).ExampleTuiEditorChangelogModule})),data:{title:"Changelog"}},{path:"**",redirectTo:"starter-kit"}];let $=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[N.Bz.forRoot(Z,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,64]})],N.Bz]}),t})();var U=n(89570),G=n(77825);let q=(()=>{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:[N.yS,H.V,G.P],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 J=new U.Al(q);let Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[k.jzK,N.Bz,k.EIu]]}),t})(),W=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t,bootstrap:[Y]}),t.ɵinj=r.cJS({providers:[{provide:o.S$,useClass:o.b0},{provide:M.Yx,useValue:"TUI Editor | "},{provide:M.Or,useValue:J},{provide:M.AC,useValue:["Description and examples","API"]},{provide:M.V5,useValue:j},{provide:k.hmb,useClass:D},{provide:M.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"}),$,k.WwM,k.upG,O.E6,x,s.JF,Q,L.JP.forRoot({loader:s.eN}),M.qn,k.jzK,k.zw7]]}),t})();(0,r.G48)(),i.q6().bootstrapModule(W).catch((t=>console.error(t)))},95509:(t,e,n)=>{n.d(e,{c:()=>y});var i=n(903),r=n(71216),o=n(26215),s=n(79765),a=n(46797),l=n(43190),u=n(88002),c=n(39761),d=n(74788),h=n(12057),p=n(28699),g=n(18289),m=n(50506);function f(t,e){if(1&t&&(d.TgZ(0,"p",2),d._uU(1),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.hij(" ",t.filename,"\n")}}function v(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"pre",3),d._uU(1," "),d._UZ(2,"code",4),d._uU(3,"\n "),d.TgZ(4,"div",5),d._uU(5,"\n "),d.TgZ(6,"button",6),d.NdJ("click",(function(){return d.CHM(t),d.oxw().copy$.next()})),d.ALo(7,"async"),d._uU(8,"\n "),d.qZA(),d._uU(9,"\n "),d.Hsn(10),d._uU(11,"\n "),d.qZA(),d._uU(12,"\n"),d.qZA()}if(2&t){const t=e.$implicit,n=d.oxw();d.xp6(2),d.Q6J("lineNumbers",!0)("highlight",t),d.xp6(4),d.Q6J("icon",d.lcZ(7,4,n.icon$)||"tuiIconCopyLarge")("cdkCopyToClipboard",t)}}const b=["*"];let y=(()=>{class t{constructor(t){this.markdownCodeProcessor=t,this.rawLoader$$=new o.X(""),this.filename="",this.copy$=new s.xQ,this.icon$=this.copy$.pipe((0,l.w)((()=>(0,a.H)(2e3).pipe((0,u.U)((()=>"tuiIconCopyLarge")),(0,c.O)("tuiIconCheckLarge"))))),this.processor$=this.rawLoader$$.pipe((0,l.w)(r.JQ),(0,u.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)(d.Y36(i.Es))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-doc-code"]],hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("_has-filename",e.hasFilename)},inputs:{filename:"filename",code:"code"},ngContentSelectors:b,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"],[1,"t-code-actions"],["tuiIconButton","","appearance","icon","size","xs",1,"t-copy-button",3,"icon","cdkCopyToClipboard","click"]],template:function(t,e){1&t&&(d.F$t(),d.YNc(0,f,2,1,"p",0),d.YNc(1,v,13,6,"pre",1),d.ALo(2,"async")),2&t&&(d.Q6J("ngIf",e.filename),d.xp6(1),d.Q6J("ngForOf",d.lcZ(2,2,e.processor$)))},directives:[h.O5,h.sg,p.y$,g.v,m.i3],pipes:[h.Ov],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}.t-header[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{border-radius:.25rem}.t-code[_ngcontent-%COMP%]{position:relative;margin:0;white-space:normal;outline:1px solid var(--tui-base-03)}.t-code[_ngcontent-%COMP%] .hljs-ln{width:-webkit-max-content;width:max-content}.t-code[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{margin-top:1rem}.t-code-actions[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;display:flex;justify-content:center;align-items:center;flex-direction:row-reverse}tui-root._mobile[_nghost-%COMP%] .t-code-actions[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-code-actions[_ngcontent-%COMP%]{padding:.3125rem;border-radius:.25rem;border:1px solid var(--tui-base-04)}.t-copy-button[_ngcontent-%COMP%] +*:not(:empty){margin-right:.375rem}.hljs[_ngcontent-%COMP%]:not(:empty){font:var(--tui-font-text-m);font-size:.875rem;padding:1.5rem 2rem;font-family:monospace;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:.375rem 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)}}tui-root._mobile[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty), tui-root._mobile [_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){padding:1rem}.t-code-actions[_ngcontent-%COMP%], .hljs[_ngcontent-%COMP%]:not(:empty){background:var(--tui-base-01)}@supports (background: color-mix(in srgb,var(--tui-base-01),#222 2%)){.t-code-actions[_ngcontent-%COMP%], .hljs[_ngcontent-%COMP%]:not(:empty){background:color-mix(in srgb,var(--tui-base-01),#222 2%)}}"],changeDetection:0}),t})()},40029:(t,e,n)=>{n.d(e,{F:()=>$});var i=n(97582),r=n(12057),o=n(74788),s=n(24751),a=n(34016),l=n(903),u=n(71216),c=n(42600),d=n(43232),h=n(6667),p=n(79765),g=n(47999),m=n(59517),f=n(76995),v=n(51703),b=n(73460),y=n(1065),_=n(75747),C=n(28986),w=n(64387),x=n(44530),M=n(65266),O=n(55891),k=n(63360),S=n(20690),P=n(68039),T=n(18289),A=n(2793),E=n(9975),I=n(77825);const D=["content"],L=["resizer"];function F(t,e){if(1&t&&(o._uU(0),o.TgZ(1,"a",11),o.TgZ(2,"code"),o._uU(3,"tuiMode"),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.hij(" ",t.texts[0]," ")}}function N(t,e){if(1&t&&o._UZ(0,"tui-data-list-wrapper",14),2&t){const t=o.oxw(2);o.Q6J("items",t.items)}}function z(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"tui-select",12),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(2," tuiMode "),o.YNc(3,N,1,1,"tui-data-list-wrapper",13),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(),e=o.MAs(2);o.xp6(1),o.Q6J("ngModel",t.mode)("tuiHintContent",e)("tuiTextfieldCleaner",!0)}}function R(t,e){if(1&t){const t=o.EpF();o._uU(0," tuiMode: "),o._UZ(1,"tui-tooltip",15),o.TgZ(2,"div",16),o.TgZ(3,"tui-radio-block",17),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(4," null "),o.qZA(),o.TgZ(5,"tui-radio-block",18),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(6," onDark "),o.qZA(),o.TgZ(7,"tui-radio-block",19),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(8," onLight "),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(),e=o.MAs(2);o.xp6(1),o.Q6J("content",e),o.xp6(1),o.Q6J("collapsed",!0),o.xp6(1),o.Q6J("hideRadio",!0)("item",null)("ngModel",t.mode),o.xp6(2),o.Q6J("hideRadio",!0)("ngModel",t.mode),o.xp6(2),o.Q6J("hideRadio",!0)("ngModel",t.mode)}}function B(t,e){if(1&t&&o._UZ(0,"tui-svg",27),2&t){const t=o.oxw(2);o.ekj("t-icon_rotated",t.expanded),o.Q6J("src",t.options.iconSmall)}}function H(t,e){if(1&t&&o._UZ(0,"tui-data-list-wrapper",14),2&t){const t=o.oxw(3);o.Q6J("items",t.updateOnVariants)}}const V=function(){return{standalone:!0}};function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"pre",28),o._uU(1),o.ALo(2,"json"),o.qZA(),o.TgZ(3,"div",29),o.TgZ(4,"tui-select",30),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw(2).updateOnChange(e)})),o._uU(5," updateOn "),o.YNc(6,H,1,1,"tui-data-list-wrapper",13),o.qZA(),o.TgZ(7,"button",31),o._uU(8," Reset "),o.qZA(),o.TgZ(9,"button",32),o._uU(10," Submit "),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.hij("Form data: ",o.lcZ(2,3,t.testForm.value),""),o.xp6(3),o.Q6J("ngModel",t.updateOn)("ngModelOptions",o.DdM(5,V))}}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"form",20),o.TgZ(1,"div",21),o.GkF(2,22),o.qZA(),o.TgZ(3,"button",23),o.NdJ("click",(function(){return o.CHM(t),o.oxw().toggleDetails()})),o._uU(4),o.qZA(),o.YNc(5,B,1,3,"ng-template",null,24,o.W1O),o.TgZ(7,"tui-expand",25),o.YNc(8,Y,11,6,"ng-template",26),o.qZA(),o.qZA()}if(2&t){const t=o.MAs(6),e=o.oxw();o.Q6J("formGroup",e.testForm),o.xp6(2),o.Q6J("ngTemplateOutlet",e.template),o.xp6(1),o.Q6J("iconRight",t),o.xp6(1),o.hij(" ",e.texts[2]," "),o.xp6(3),o.Q6J("expanded",e.expanded)}}const Z=function(){return[1,0]};class ${constructor(t,e,n,i,r,o,s){var a,l;this.options=t,this.isMobile=e,this.el=n,this.locationRef=i,this.urlSerializer=r,this.texts=o,this.urlStateHandler=s,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,u.cd)(null===(a=this.params.sandboxOpaque)||void 0===a||a),this.expanded=(0,u.cd)(null!==(l=this.params.sandboxExpanded)&&void 0!==l&&l),this.mode=this.params.tuiMode||null,this.sandboxWidth=(0,c.oYk)(this.params.sandboxWidth),this.change$=new p.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,c.Kiv)(e,160,n))-this.delta,r=e$))}])],ngContentSelectors:["*"],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&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,F,4,1,"ng-template",null,1,o.W1O),o.YNc(3,z,4,3,"ng-container",2),o.YNc(4,R,9,9,"ng-template",null,3,o.W1O),o.TgZ(6,"tui-checkbox-labeled",4),o.NdJ("ngModelChange",(function(t){return e.changeOpaque(t)})),o._uU(7),o.qZA(),o.qZA(),o.TgZ(8,"div",5),o.TgZ(9,"div",6),o.TgZ(10,"div",null,7),o.YNc(12,j,9,5,"form",8),o.Hsn(13),o.qZA(),o.qZA(),o.TgZ(14,"div",9,10),o.NdJ("tuiSizeChange",(function(t){return e.updateWidth(t[0])})),o.qZA(),o.qZA()),2&t){const t=o.MAs(5);o.Q6J("tuiMode",null),o.xp6(3),o.Q6J("ngIf",e.isMobile)("ngIfElse",t),o.xp6(3),o.Q6J("ngModel",e.opaque),o.xp6(1),o.hij(" ",e.texts[1]," "),o.xp6(1),o.ekj("t-wrapper_dark","onDark"===e.mode)("t-wrapper_gray","onLight"===e.mode)("t-wrapper_transparent",!e.opaque),o.xp6(4),o.Q6J("ngIf",e.testForm),o.xp6(2),o.Q6J("tuiResizer",o.DdM(13,Z))}},directives:[g.w,r.O5,m.p,s.JJ,s.On,f.U,v.L,a.yS,b.V,y.u,_.O,C.s,w.bZ,x.b,M.g,O.e,k.w,S.g,P._,s._Y,s.JL,s.sg,r.tP,T.v,A.S,E.I,I.P],pipes:[r.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:var(--tui-shadow-dropdown);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:var(--tui-shadow-dropdown);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,i.gn)([c.UMq],$.prototype,"updateUrl",null)},85602:(t,e,n)=>{n.d(e,{B:()=>h});var i=n(12057),r=n(74788),o=n(34016),s=n(903),a=n(71216),l=n(42600),u=n(43232),c=n(79765),d=n(26215);let h=(()=>{class t{constructor(t,e,n,i,o,s){this.template=t,this.locationRef=e,this.activatedRoute=n,this.urlSerializer=i,this.urlStateHandler=o,this.alerts=s,this.documentationPropertyName="",this.documentationPropertyMode=null,this.documentationPropertyType="",this.documentationPropertyDeprecated=!1,this.documentationPropertyValues=null,this.documentationPropertyValueChange=new r.vpe,this.changed$=new c.xQ,this.emits$=new d.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){let e;console.info(this.attrName,t),this.emits$.next(this.emits$.value+1),void 0!==t&&(e=(0,a.sj)(t,2)),this.alerts.open(e,{label:this.attrName}).subscribe()}parseParams(t){const e=t[this.documentationPropertyName],n=t[`${this.documentationPropertyName}$`];if(!e&&!n)return;let i=n&&this.documentationPropertyValues?this.documentationPropertyValues[n]:(0,a.p8)(e);"string"===this.documentationPropertyType&&(0,l.dtH)(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)(r.Y36(r.Rgc),r.Y36(i.Ye),r.Y36(o.gz),r.Y36(o.Hx),r.Y36(s.Ii),r.Y36(u.J9F))},t.ɵdir=r.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:[r.TTD]}),t})()},26256:(t,e,n)=>{n.d(e,{z:()=>dt});var i=n(56083),r=n(74788),o=n(903),s=n(42600),a=n(66682),l=n(43190),u=n(46782),c=n(85602),d=n(75383);let h=(()=>{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=r.Yjl({name:"tuiGetOpacity",type:t,pure:!0}),t})();var p=n(12057),g=n(38039),m=n(1065),f=n(75747),v=n(16331),b=n(28986),y=n(24751),_=n(44530),C=n(99036),w=n(65266),x=n(55891),M=n(31338),O=n(75526),k=n(19042),S=n(20690),P=n(61997),T=n(52846),A=n(71753),E=n(21032),I=n(48236);let D=(()=>{class t{transform(t,e,...n){return t.filter((t=>e(t,...n)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiFilter",type:t,pure:!0}),t})(),L=(()=>{class t{transform(t){return t.replace("?","")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiStripOptionalPipe",type:t,pure:!0}),t})(),F=(()=>{class t{transform(t){return t.includes("?")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiIsOptionalPipe",type:t,pure:!0}),t})();var N=n(79567);let z=(()=>{class t{transform(t){return t.includes("null")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiShowCleanerPipe",type:t,pure:!0}),t})();var R=n(7512),B=n(56775);function H(t,e){if(1&t&&(r.TgZ(0,"h1",2),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.hij(" ",t.heading,"\n")}}function V(t,e){if(1&t&&(r.TgZ(0,"th",10),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.hij(" ",t.texts[3]," ")}}function Y(t,e){1&t&&r._UZ(0,"tui-badge",22)}function j(t,e){1&t&&r._UZ(0,"tui-badge",23)}function Z(t,e){if(1&t&&(r.TgZ(0,"a",26),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.uIk("href",t.reference,r.LSH),r.xp6(1),r.hij(" ",t.type," ")}}function $(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw().$implicit;r.hij(" ",t.type," ")}}function U(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1," | "),r.qZA())}function G(t,e){if(1&t&&(r.ynx(0),r.YNc(1,Z,2,2,"a",24),r.YNc(2,$,1,1,"ng-template",null,25,r.W1O),r.YNc(4,U,2,0,"span",1),r.BQk()),2&t){const t=e.$implicit,n=e.last,i=r.MAs(3);r.xp6(1),r.Q6J("ngIf",t.reference)("ngIfElse",i),r.xp6(3),r.Q6J("ngIf",!n)}}function q(t,e){if(1&t&&r._UZ(0,"tui-data-list-wrapper",36),2&t){r.oxw(2);const t=r.MAs(3),e=r.oxw(2).$implicit;r.Q6J("itemContent",t)("items",e.documentationPropertyValues)}}function J(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-select",33),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(3).$implicit.onValueChange(e)})),r.ALo(1,"tuiShowCleanerPipe"),r.TgZ(2,"code",34),r._uU(3,"null"),r.qZA(),r.YNc(4,q,1,2,"tui-data-list-wrapper",35),r.qZA()}if(2&t){r.oxw();const t=r.MAs(3),e=r.oxw(2).$implicit;r.Q6J("nativeId",e.attrName)("ngModel",e.documentationPropertyValue)("tuiTextfieldCleaner",r.lcZ(1,5,e.documentationPropertyType))("tuiTextfieldLabelOutside",!0)("valueContent",t)}}function Q(t,e){if(1&t&&(r.TgZ(0,"code"),r._uU(1),r.ALo(2,"tuiInspectAny"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.lcZ(2,1,t))}}function W(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-toggle",43),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("showIcons",!0)}}function K(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-primitive-textfield",44),r.NdJ("valueChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue||"")}}function X(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",45),r.TgZ(1,"tui-primitive-textfield",46),r.NdJ("valueChange",(function(e){r.CHM(t);const n=r.oxw(4).$implicit;return r.oxw(3).onColorChange(n,e)})),r.ALo(2,"tuiGetOpacity"),r.ALo(3,"tuiGetColorPipe"),r._UZ(4,"input",47),r.qZA(),r.TgZ(5,"tui-input-number",48),r.NdJ("ngModelChange",(function(e){r.CHM(t);const n=r.oxw(4).$implicit;return r.oxw(3).onOpacityChange(n,e)})),r.ALo(6,"tuiGetOpacity"),r._uU(7," Opacity "),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.xp6(1),r.Q6J("tuiInputOpacity",r.lcZ(2,8,t.documentationPropertyValue))("tuiTextfieldLabelOutside",!0)("value",r.lcZ(3,10,t.documentationPropertyValue)),r.uIk("id",t.attrName),r.xp6(4),r.Q6J("max",100)("min",0)("ngModel",r.lcZ(6,12,t.documentationPropertyValue))("step",1)}}function tt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-input-number",49),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e||0)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("step",1)("tuiTextfieldLabelOutside",!0)}}function et(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-primitive-textfield",44),r.NdJ("valueChange",(function(e){return r.CHM(t),r.oxw(5).$implicit.onValueChange(e)})),r._uU(1," Default content "),r.qZA()}if(2&t){const t=r.oxw(5).$implicit;r.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue.toString())}}function nt(t,e){if(1&t&&(r.ynx(0),r.YNc(1,et,2,4,"tui-primitive-textfield",50),r.ALo(2,"tuiIsPrimitivePolymorpheusContentPipe"),r.BQk()),2&t){const t=r.oxw(4).$implicit;r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,t.documentationPropertyValue))}}function it(t,e){if(1&t&&(r.ynx(0,37),r.YNc(1,W,1,3,"tui-toggle",38),r.YNc(2,K,1,4,"tui-primitive-textfield",39),r.YNc(3,X,8,14,"div",40),r.YNc(4,tt,1,4,"tui-input-number",41),r.YNc(5,nt,3,3,"ng-container",42),r.BQk()),2&t){const t=r.oxw(3).$implicit;r.Q6J("ngSwitch",t.documentationPropertyType),r.xp6(1),r.Q6J("ngSwitchCase","boolean"),r.xp6(1),r.Q6J("ngSwitchCase","string"),r.xp6(1),r.Q6J("ngSwitchCase","color"),r.xp6(1),r.Q6J("ngSwitchCase","number"),r.xp6(1),r.Q6J("ngSwitchCase","PolymorpheusContent")}}function rt(t,e){if(1&t&&(r.ynx(0),r.YNc(1,J,5,7,"tui-select",30),r.YNc(2,Q,3,3,"ng-template",null,31,r.W1O),r.YNc(4,it,6,6,"ng-template",null,32,r.W1O),r.BQk()),2&t){const t=r.MAs(5),e=r.oxw(2).$implicit;r.xp6(1),r.Q6J("ngIf",e.hasItems)("ngIfElse",t)}}function ot(t,e){if(1&t&&(r.TgZ(0,"tui-notification",51),r.ALo(1,"async"),r._uU(2," Emit! "),r.qZA()),2&t){const t=r.oxw(2).$implicit;r.Q6J("@emitEvent",r.lcZ(1,1,t.emits$))}}function st(t,e){if(1&t&&(r.TgZ(0,"td",27),r.YNc(1,rt,6,2,"ng-container",28),r.YNc(2,ot,3,3,"ng-template",null,29,r.W1O),r.qZA()),2&t){const t=r.MAs(3),e=r.oxw().$implicit;r.xp6(1),r.Q6J("ngIf",e.shouldShowValues)("ngIfElse",t)}}function at(t,e){if(1&t&&(r.TgZ(0,"tr",11),r.TgZ(1,"td",12),r.TgZ(2,"div",13),r.TgZ(3,"code",14),r._uU(4),r.ALo(5,"tuiStripOptionalPipe"),r.qZA(),r.YNc(6,Y,1,0,"tui-badge",15),r.ALo(7,"tuiIsOptionalPipe"),r.YNc(8,j,1,0,"tui-badge",16),r.qZA(),r.GkF(9,17),r.qZA(),r.TgZ(10,"td",12),r.TgZ(11,"span",18),r.TgZ(12,"code",19),r.YNc(13,G,5,3,"ng-container",20),r.ALo(14,"tuiDocTypeReference"),r.qZA(),r.qZA(),r.qZA(),r.YNc(15,st,4,2,"td",21),r.qZA()),2&t){const t=e.$implicit,n=r.oxw(3);r.ekj("t-deprecated",t.documentationPropertyDeprecated),r.xp6(3),r.Udp("color","var(--tui-accent-active)"),r.xp6(1),r.hij(" ",r.lcZ(5,10,t.attrName)," "),r.xp6(2),r.Q6J("ngIf",r.lcZ(7,12,t.attrName)),r.xp6(2),r.Q6J("ngIf",t.documentationPropertyDeprecated),r.xp6(1),r.Q6J("ngTemplateOutlet",t.template),r.xp6(4),r.Q6J("ngForOf",r.lcZ(14,14,t.documentationPropertyType)),r.xp6(2),r.Q6J("ngIf",n.showValues)}}function lt(t,e){if(1&t&&(r.TgZ(0,"table",4),r.TgZ(1,"tr",5),r.TgZ(2,"th",6),r._uU(3),r.qZA(),r.TgZ(4,"th",7),r._uU(5),r.qZA(),r.YNc(6,V,2,1,"th",8),r.qZA(),r.YNc(7,at,16,16,"tr",9),r.qZA()),2&t){const t=r.oxw().ngIf,e=r.oxw();r.xp6(3),r.Oqu(e.texts[2]),r.xp6(2),r.Oqu(e.type),r.xp6(1),r.Q6J("ngIf",e.showValues&&!e.isAPI),r.xp6(1),r.Q6J("ngForOf",t)}}function ut(t,e){if(1&t&&(r.ynx(0),r.YNc(1,lt,8,4,"table",3),r.BQk()),2&t){const t=e.ngIf;r.xp6(1),r.Q6J("ngIf",t.length)}}const ct=["*"];let dt=(()=>{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=s.Mmc,this.activeItemIndex=0,this.matcher=(t,e)=>!e.has(t.documentationPropertyName)}ngAfterContentInit(){(0,s.llR)(this.propertiesConnectors).pipe((0,l.w)((t=>(0,a.T)(...t.map((({changed$:t})=>t))))),(0,s.NAr)(this.cdr),(0,u.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,s.ROF)(e).join(", ")}, ${n/100})`;t.onValueChange(i)}onOpacityChange(t,e){const n=this.getColor.transform(t.documentationPropertyValue||""),i=`rgba(${(0,s.ROF)(n)}, ${(e||0)/100})`;t.onValueChange(i)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(o.IK),r.Y36(o.et),r.Y36(s.a31,2),r.Y36(d.i),r.Y36(h))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-doc-documentation"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,c.B,4),2&t){let t;r.iGM(t=r.CRH())&&(e.propertiesConnectors=t)}},inputs:{heading:"heading",showValues:"showValues",isAPI:"isAPI"},features:[r._Bn([d.i,h,s.a31])],ngContentSelectors:ct,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","t-additional-info"],[1,"t-property-code"],["size","s","status","neutral","value","Optional",4,"ngIf"],["size","s","status","error","value","Deprecated",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"type"],[1,"t-code-type"],[4,"ngFor","ngForOf"],["class","t-cell t-cell_value",4,"ngIf"],["size","s","status","neutral","value","Optional"],["size","s","status","error","value","Deprecated"],["target","_blank","class","t-code-reference",4,"ngIf","ngIfElse"],["default",""],["target","_blank",1,"t-code-reference"],[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&&(r.F$t(),r.YNc(0,H,2,1,"h1",0),r.Hsn(1),r.YNc(2,ut,2,1,"ng-container",1),r.ALo(3,"tuiFilter")),2&t&&(r.Q6J("ngIf",e.heading),r.xp6(2),r.Q6J("ngIf",r.Dn7(3,2,e.propertiesConnectors,e.matcher,e.excludedProperties)))},directives:[p.O5,p.sg,p.tP,g.g,m.u,f.O,v.Ek,b.s,y.JJ,y.On,_.b,C.x,w.g,x.e,p.RF,p.n9,M.p,O.y,k.B,S.g,P.$,T.M,A.q,E.g,I.L],pipes:[D,L,F,N.f,z,R.F,h,d.i,B.j,p.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%] .t-property-code[_ngcontent-%COMP%]{text-decoration:line-through}.t-deprecated-label[_ngcontent-%COMP%]{margin-right:.125rem;color:var(--tui-error-fill);font-size:.75rem}.t-additional-info[_ngcontent-%COMP%]{display:flex;grid-gap:.3125rem;gap:.3125rem;align-items:center}.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)}.t-code-type[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start}.t-code-reference[_ngcontent-%COMP%]{display:inline-flex;color:var(--tui-link);text-decoration:none;align-items:center;justify-content:center;grid-gap:3px;gap:3px}.t-code-reference[_ngcontent-%COMP%]:after{content:"";font-size:1rem;width:1rem;height:1rem;background:currentColor;-webkit-mask:url(\'data:image/svg+xml,\') center / 100%;mask:url(\'data:image/svg+xml,\') center / 100%}'],data:{animation:[(0,i.X$)("emitEvent",[(0,i.eR)(":increment",[(0,i.oB)({opacity:1}),(0,i.jt)("500ms ease-in")])])]},changeDetection:0}),t})()},75383:(t,e,n)=>{n.d(e,{i:()=>o});var i=n(42600),r=n(74788);let o=(()=>{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,i.WSX)(...e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiGetColorPipe",type:t,pure:!0}),t})()},7512:(t,e,n)=>{n.d(e,{F:()=>s});var i=n(71216),r=n(42600),o=n(74788);let s=(()=>{class t{constructor(t){this.isE2E=t}transform(t,e=2){return this.isE2E&&"function"==typeof t?"λ(x) => y":(0,i.sj)(t,e)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.oDT,16))},t.ɵpipe=o.Yjl({name:"tuiInspectAny",type:t,pure:!0}),t})()},56775:(t,e,n)=>{n.d(e,{j:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t{transform(t){return(0,i.Ajw)(t)||(0,i.dtH)(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiIsPrimitivePolymorpheusContentPipe",type:t,pure:!0}),t})()},79567:(t,e,n)=>{n.d(e,{f:()=>o});var i=n(903),r=n(74788);let o=(()=>{class t{constructor(t,e){this.parser=t,this.linkHandler=e}transform(t){return this.parser(t).map((({type:t,extracted:e})=>{var n,i;return{type:t,extracted:e,reference:null!==(i=null===(n=this.linkHandler)||void 0===n?void 0:n.call(this,e))&&void 0!==i?i:null}})).sort(((t,e)=>{var n,i,r;return null!==(r=null===(n=e.reference)||void 0===n?void 0:n.localeCompare(null!==(i=t.reference)&&void 0!==i?i:""))&&void 0!==r?r:-1}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.B$,16),r.Y36(i.x9,16))},t.ɵpipe=r.Yjl({name:"tuiDocTypeReference",type:t,pure:!0}),t})()},42328:(t,e,n)=>{n.d(e,{f:()=>W});var i=n(50506),r=n(62579),o=n(903),s=n(71216),a=n(42600),l=n(43232),u=n(6667),c=n(26215),d=n(79765),h=n(88002),p=n(43190),g=n(99814),m=n(74788),f=n(12057),v=n(89570),b=n(34016),y=n(18289),_=n(25276),C=n(32489),w=n(94824),x=n(57634),M=n(95509);let O=(()=>{class t{transform(t,e){return[e,...Object.keys(t)]}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=m.Yjl({name:"tuiDocExampleGetTabs",type:t,pure:!0}),t})();var k=n(2579);function S(t,e){if(1&t&&m._UZ(0,"span",8),2&t){const t=e.polymorpheusOutlet;m.Q6J("textContent",t)}}function P(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"a",9),m.NdJ("click",(function(e){return m.CHM(t),m.oxw(2).copyExampleLink(e.currentTarget)})),m.ALo(1,"async"),m.qZA()}if(2&t){const t=m.oxw(2);m.Q6J("fragment",t.id)("icon",t.options.linkIcon)("title",m.lcZ(1,3,t.copy$))}}function T(t,e){if(1&t&&(m.TgZ(0,"h3",5),m.YNc(1,S,1,1,"span",6),m.YNc(2,P,2,5,"a",7),m.qZA()),2&t){const t=m.oxw();m.xp6(1),m.Q6J("polymorpheusOutlet",t.heading),m.xp6(1),m.Q6J("ngIf",t.id)}}function A(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function E(t,e){if(1&t&&(m.TgZ(0,"h4",10),m.YNc(1,A,2,1,"ng-container",11),m.qZA()),2&t){const t=m.oxw();m.xp6(1),m.Q6J("polymorpheusOutlet",t.description)}}function I(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function D(t,e){if(1&t&&(m.TgZ(0,"button",21),m.YNc(1,I,2,1,"ng-container",11),m.qZA()),2&t){const t=m.oxw().$implicit,e=m.oxw(4);m.xp6(1),m.Q6J("polymorpheusOutlet",e.getTabTitle(t))}}function L(t,e){1&t&&(m.ynx(0),m.YNc(1,D,2,1,"button",20),m.BQk())}function F(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function N(t,e){if(1&t&&(m.ynx(0),m.YNc(1,F,2,1,"ng-container",11),m.BQk()),2&t){const t=e.ngIf;m.xp6(1),m.Q6J("polymorpheusOutlet",t)}}function z(t,e){if(1&t&&(m.TgZ(0,"button",25),m._uU(1),m.qZA()),2&t){const t=m.oxw(5);m.xp6(1),m.hij(" Edit on ",t.codeEditor.name," ")}}function R(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"tui-loader",22),m.NdJ("click",(function(){m.CHM(t);const e=m.oxw(3).ngIf;return m.oxw().edit(e)})),m.ALo(1,"async"),m.YNc(2,N,2,1,"ng-container",23),m.YNc(3,z,2,1,"ng-template",null,24,m.W1O),m.qZA()}if(2&t){const t=m.MAs(4),e=m.oxw(4);m.Q6J("overlay",!0)("showLoader",!!m.lcZ(1,4,e.loading$)),m.xp6(2),m.Q6J("ngIf",null==e.codeEditor?null:e.codeEditor.content)("ngIfElse",t)}}function B(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"div",16),m.TgZ(1,"tui-tabs-with-more",17),m.NdJ("activeItemIndexChange",(function(e){return m.CHM(t),m.oxw(3).activeItemIndex=e})),m.YNc(2,L,2,0,"ng-container",18),m.qZA(),m.YNc(3,R,5,6,"tui-loader",19),m.ALo(4,"tuiMapper"),m.qZA()}if(2&t){const t=m.oxw().ngIf,e=m.oxw().ngIf,n=m.oxw();m.xp6(1),m.Q6J("activeItemIndex",n.activeItemIndex),m.xp6(1),m.Q6J("ngForOf",t),m.xp6(1),m.Q6J("ngIf",m.xi3(4,3,e,n.visible))}}function H(t,e){if(1&t&&m.GkF(0,29),2&t){m.oxw(4);const t=m.MAs(5);m.Q6J("ngTemplateOutlet",t)}}const V=function(t){return{$implicit:t}};function Y(t,e){if(1&t&&m.GkF(0,30),2&t){const t=m.oxw(2).ngIf,e=m.oxw().ngIf,n=m.oxw(),i=m.MAs(7);m.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",m.VKq(2,V,(null==e?null:e[t[n.activeItemIndex]])||""))}}function j(t,e){if(1&t&&(m.TgZ(0,"div",26),m.YNc(1,H,1,1,"ng-container",27),m.YNc(2,Y,1,4,"ng-template",null,28,m.W1O),m.qZA()),2&t){const t=e.index,n=m.MAs(3),i=m.oxw(3);m.ekj("t-content_animated",!i.isE2E)("t-content_visible",i.activeItemIndex===t),m.xp6(1),m.Q6J("ngIf",t===i.defaultTabIndex)("ngIfElse",n)}}function Z(t,e){if(1&t&&(m.ynx(0),m.YNc(1,B,5,6,"div",14),m.YNc(2,j,4,6,"div",15),m.BQk()),2&t){const t=e.ngIf;m.xp6(1),m.Q6J("ngIf",t.length>1),m.xp6(1),m.Q6J("ngForOf",t)}}function $(t,e){if(1&t&&(m.TgZ(0,"div",12),m.YNc(1,Z,3,2,"ng-container",13),m.ALo(2,"tuiDocExampleGetTabs"),m.qZA()),2&t){const t=e.ngIf,n=m.oxw();m.xp6(1),m.Q6J("ngIf",m.xi3(2,1,t,n.defaultTab))}}function U(t,e){1&t&&(m.TgZ(0,"div",31),m.Hsn(1),m.qZA())}function G(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function q(t,e){if(1&t&&(m.ynx(0),m.YNc(1,G,2,1,"ng-container",33),m.BQk()),2&t){const t=e.$implicit,n=m.oxw().$implicit;m.xp6(1),m.Q6J("polymorpheusOutlet",t)("polymorpheusOutletContext",m.VKq(2,V,n))}}function J(t,e){if(1&t&&(m.TgZ(0,"tui-doc-code",32),m.YNc(1,q,2,4,"ng-container",18),m.qZA()),2&t){const t=e.$implicit,n=m.oxw();m.Q6J("code",t),m.xp6(1),m.Q6J("ngForOf",n.codeActions)}}const Q=["*"];let W=(()=>{class t{constructor(t,e,n,i,r,o,a,l,u,g){this.clipboard=t,this.alerts=e,this.location=n,this.copyTexts$=i,this.texts=r,this.codeEditor=o,this.processContent=a,this.isE2E=l,this.codeActions=u,this.options=g,this.rawLoader$$=new c.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,p.w)(s.vP),(0,h.U)((t=>this.processContent(t)))),this.loading$=new d.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({href:t}){this.clipboard.copy(t),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)))}}return t.ɵfac=function(e){return new(e||t)(m.Y36(i.TU),m.Y36(l.J9F),m.Y36(r.Ct),m.Y36(u.UVe),m.Y36(o.mv),m.Y36(o.lW,8),m.Y36(o.$_),m.Y36(a.oDT),m.Y36(o.mT),m.Y36(g.mt))},t.ɵcmp=m.Xpm({type:t,selectors:[["tui-doc-example"]],hostVars:2,hostBindings:function(t,e){2&t&&m.ekj("_fullsize",e.fullsize)},inputs:{id:"id",heading:"heading",description:"description",content:"content",fullsize:"fullsize",componentName:"componentName"},ngContentSelectors:Q,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","routerLink",".","size","xs","tuiIconButton","","type","button","class","t-link-icon",3,"fragment","icon","title","click",4,"ngIf"],[3,"textContent"],["appearance","icon","routerLink",".","size","xs","tuiIconButton","","type","button",1,"t-link-icon",3,"fragment","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"],[3,"code"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(m.F$t(),m.YNc(0,T,3,2,"h3",0),m.YNc(1,E,2,1,"h4",1),m.YNc(2,$,3,4,"div",2),m.ALo(3,"async"),m.YNc(4,U,2,0,"ng-template",null,3,m.W1O),m.YNc(6,J,2,2,"ng-template",null,4,m.W1O)),2&t&&(m.Q6J("ngIf",e.heading),m.xp6(1),m.Q6J("ngIf",e.description),m.xp6(1),m.Q6J("ngIf",m.lcZ(3,3,e.processor$)))},directives:[f.O5,v.Li,b.yS,y.v,f.sg,_.W,C.w,w.y,x.k,f.tP,M.c],pipes:[f.Ov,O,k.c],styles:["[_nghost-%COMP%]{position:relative;display:block;padding-top:3.5rem;clear:right}[_nghost-%COMP%]:target{animation:1s .3s tuiShaking}[_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-title[_ngcontent-%COMP%]:first-letter, .t-description[_ngcontent-%COMP%]:first-letter{text-transform:capitalize}.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;overflow:hidden}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 .875rem 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 .875rem 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:.375rem 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-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})()},99814:(t,e,n)=>{n.d(e,{mt:()=>s});var i=n(81811),r=n(42600);const o={codeEditorVisibilityHandler:t=>Boolean(t[i.N.TS]&&t[i.N.HTML]),tabTitles:new Map,fullsize:!0,linkIcon:"tuiIconLink"},s=(0,r.JN4)(o)},26887:(t,e,n)=>{n.d(e,{f:()=>w});var i=n(34016),r=n(903),o=n(42600),s=n(79765),a=n(66682),l=n(88002),u=n(39761),c=n(87519),d=n(74788),h=n(18289),p=n(55788),g=n(52934),m=n(89570),f=n(3942),v=n(12057);const b=["tuiDocHeader",""];function y(t,e){1&t&&d._UZ(0,"tui-doc-navigation",4)}function _(t,e){if(1&t&&d._UZ(0,"img",5),2&t){const t=e.polymorpheusOutlet;d.Q6J("src",t,d.LSH)}}const C=["*"];let w=(()=>{class t{constructor(t,e,n,i){this.icons=t,this.logo=e,this.menu=n,this.router=i,this.stream$=new s.xQ,this.open$=(0,a.T)(this.router.events.pipe((0,l.U)(o.IyD)),this.stream$).pipe((0,u.O)(!1),(0,c.x)())}onClick(){this.stream$.next(!0)}onActiveZone(t){t||this.stream$.next(!1)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(r.oq),d.Y36(r.Or),d.Y36(r.gG),d.Y36(i.F0))},t.ɵcmp=d.Xpm({type:t,selectors:[["header","tuiDocHeader",""]],attrs:b,ngContentSelectors:C,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&&(d.F$t(),d.TgZ(0,"button",0),d.NdJ("click",(function(){return e.onClick()}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),d.YNc(1,y,1,0,"tui-doc-navigation",1),d.ALo(2,"async"),d.qZA(),d.TgZ(3,"div",2),d.YNc(4,_,1,1,"img",3),d.qZA(),d.Hsn(5)),2&t&&(d.Q6J("icon",e.icons.menu)("title",e.menu),d.xp6(1),d.Q6J("tuiSidebar",!!d.lcZ(2,4,e.open$)),d.xp6(3),d.Q6J("polymorpheusOutlet",e.logo))},directives:[h.v,p.e,g.B,m.Li,f.u],pipes:[v.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:1;display:flex;box-shadow:var(--tui-shadow-navigation);height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}@supports (background: color-mix(in srgb,var(--tui-base-01),transparent 50%)){[_nghost-%COMP%]{background:color-mix(in srgb,var(--tui-base-01),transparent 50%);-webkit-backdrop-filter:blur(1.25rem);backdrop-filter:blur(1.25rem)}}.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})()},61997:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(74788),r=n(42600);let o=(()=>{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(r.KZI))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiInputOpacity",""]],inputs:{tuiInputOpacity:"tuiInputOpacity"}}),t})()},64596:(t,e,n)=>{n.d(e,{C:()=>c});var i=n(903),r=n(74788),o=n(12057),s=n(73460),a=n(34016);function l(t,e){1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t&&(r.xp6(1),r.Oqu(", "))}function u(t,e){if(1&t&&(r.ynx(0),r._UZ(1,"a",2),r.YNc(2,l,2,1,"ng-container",3),r.BQk()),2&t){const t=e.$implicit,n=e.last,i=r.oxw();r.xp6(1),r.Q6J("innerText",t)("routerLink",i.getRouterLink(t)),r.xp6(1),r.Q6J("ngIf",!n)}}let c=(()=>{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)(r.Y36(i.VX),r.Y36(i._Z))},t.ɵcmp=r.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&&(r.TgZ(0,"h5",0),r._uU(1),r.qZA(),r.YNc(2,u,3,3,"ng-container",1)),2&t&&(r.xp6(1),r.Oqu(e.text),r.xp6(1),r.Q6J("ngForOf",e.seeAlso))},directives:[o.sg,s.V,a.yS,o.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})()},81306:(t,e,n)=>{n.d(e,{z:()=>c});var i=n(97582),r=n(903),o=n(42600),s=n(74788),a=n(89570),l=n(18289);function u(t,e){if(1&t&&s._UZ(0,"a",1),2&t){const t=e.polymorpheusOutlet,n=s.oxw();s.Q6J("href",t,s.LSH)("icon",n.icons.code)("title",n.text)}}class c{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}}}c.ɵfac=function(t){return new(t||c)(s.Y36(r.oq),s.Y36(r.yO),s.Y36(r.as))},c.ɵcmp=s.Xpm({type:c,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&&s.YNc(0,u,1,3,"a",0),2&t&&s.Q6J("polymorpheusOutlet",e.pathIsUrl(e.path)?e.path:e.sourceCode)("polymorpheusOutletContext",e.pathOptions)},directives:[a.Li,l.v],encapsulation:2,changeDetection:0}),(0,i.gn)([o.UMq],c.prototype,"pathIsUrl",null),(0,i.gn)([o.UMq],c.prototype,"getPathOptions",null)},78668:(t,e,n)=>{n.d(e,{$:()=>x});var i=n(74788),r=n(24931),o=n(903),s=n(42600),a=n(43232),l=n(39761),u=n(88002),c=n(87519),d=n(9945),h=n(12057),p=n(6226),g=n(3942),m=n(34016),f=n(26887),v=n(18289),b=n(47999),y=n(75830);function _(t,e){1&t&&i._UZ(0,"tui-theme-night")}const C=[[["tuiDocNavigation"]],[["tuiDocHeader"]],[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],w=["tuiDocNavigation","tuiDocHeader","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let x=(()=>{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,l.O)(null),(0,u.U)((()=>this.night.value)),(0,c.x)(),(0,d.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(o.oq),i.Y36(r.ML),i.Y36(r.kk))},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:a.wtG,useExisting:(0,i.Gpc)((()=>t))},s.$DV])],ngContentSelectors:w,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(C),i.YNc(0,_,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:[h.O5,p.G,g.u,m.lC,f.f,v.v,b.w,y.Z],pipes:[h.Ov],styles:['@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}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;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*="language-"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*="language-"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;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-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-property{color:var(--tui-support-14)}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-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{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})()},3942:(t,e,n)=>{n.d(e,{u:()=>pt});var i=n(97582),r=n(12057),o=n(74788),s=n(24751),a=n(91211),l=n(34016),u=n(903),c=n(71216),d=n(2219),h=n(42600),p=n(43232),g=n(9112),m=n(45435),f=n(88002),v=n(39761),b=n(43190),y=n(15257),_=n(46782),C=n(19773);function w(t){return t.map((({section:t})=>t)).filter(h.PcC).filter(((t,e,n)=>n.indexOf(t)===e))}const x=new o.OlP("[NAVIGATION_TITLE]"),M=new o.OlP("[NAVIGATION_LABELS]"),O=new o.OlP("[NAVIGATION_ITEMS]"),k=[h.a31,{provide:x,deps:[l.F0,l.gz,u.Yx,h.a31],useFactory:(t,e,n,i)=>t.events.pipe((0,m.h)((t=>t instanceof l.m2)),(0,f.U)((()=>e.firstChild)),(0,m.h)(h.PcC),(0,C.zg)((({data:t})=>t)),(0,f.U)((({title:t})=>`${n}${t}`)),(0,_.R)(i))},{provide:M,deps:[u.V5],useFactory:w},{provide:O,deps:[u.V5],useFactory:t=>[...w(t).map((e=>t.filter((({section:t})=>t===e)))),t.filter((t=>!t.section))]}];var S=n(38642),P=n(55770),T=n(28986),A=n(30528),E=n(44530),I=n(61183),D=n(99036),L=n(96281),F=n(47999),N=n(21260),z=n(65266),R=n(22545),B=n(94052),H=n(91283),V=n(89570),Y=n(77825),j=n(25535),Z=n(25466),$=n(73460),U=n(22889),G=n(2793);function q(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function J(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",14),o.NdJ("click",(function(){o.CHM(t);const e=o.oxw(4),n=o.MAs(1);return e.onClick(n)})),o._uU(1),o.YNc(2,q,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=e.$implicit;o.Q6J("fragment",t.fragment)("routerLink",t.route)("target",t.target||"_self"),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}function Q(t,e){if(1&t&&(o.TgZ(0,"tui-opt-group",12),o.YNc(1,J,3,6,"a",13),o.qZA()),2&t){const t=e.$implicit,n=e.index,i=o.oxw(3);o.Q6J("label",i.labels[n]||""),o.xp6(1),o.Q6J("ngForOf",t)}}function W(t,e){if(1&t&&(o.TgZ(0,"tui-data-list"),o.YNc(1,Q,2,2,"tui-opt-group",11),o.ALo(2,"async"),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",o.lcZ(2,1,t.filtered$))}}function K(t,e){1&t&&(o.ynx(0),o.YNc(1,W,3,3,"tui-data-list",10),o.BQk())}const X=function(t,e){return{item:t,index:e}};function tt(t,e){if(1&t&&o.GkF(0,21),2&t){const t=e.$implicit,n=e.index,i=o.oxw(2).index;o.oxw();const r=o.MAs(12);o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(2,X,t,100*i+n))}}function et(t,e){if(1&t&&(o.TgZ(0,"div",20),o.YNc(1,tt,1,5,"ng-container",8),o.qZA()),2&t){const t=o.oxw().index,e=o.oxw();o.xp6(1),o.Q6J("ngForOf",e.items[t])}}function nt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-accordion-item",17),o.NdJ("openChange",(function(e){const n=o.CHM(t).index;return!!(o.oxw().openPagesArr[n]=e)})),o.TgZ(1,"span",18),o.TgZ(2,"strong"),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,et,2,1,"ng-template",19),o.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=o.oxw();o.Q6J("borders",null)("open",!!i.openPagesArr[n]),o.xp6(3),o.Oqu(t)}}function it(t,e){if(1&t&&o.GkF(0,21),2&t){const t=e.$implicit,n=e.index,i=o.oxw(),r=o.MAs(12);o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(2,X,t,i.items.length-1+n))}}function rt(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function ot(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",24),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).closeMenu()})),o._uU(1),o.YNc(2,rt,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=o.oxw().item,e=o.oxw();o.Q6J("routerLink",t.route)("target",t.target||"_self")("tuiScrollIntoViewLink",e.isActive(t.route)),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}function st(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function at(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",30),o.NdJ("click",(function(){o.CHM(t);const e=o.oxw(2).index;return o.oxw().onGroupClick(e)})),o._UZ(1,"tui-svg",31),o._uU(2),o.YNc(3,st,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=o.oxw(2),e=t.index,n=t.item,i=o.oxw();o.xp6(1),o.ekj("t-chevron_active",!!i.openPagesGroupsArr[e]),o.Q6J("src",i.icons.more),o.xp6(1),o.hij(" ",n.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",n.icon)}}function lt(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function ut(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",32),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).closeMenu()})),o._uU(1),o.YNc(2,lt,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=e.$implicit,n=o.oxw(3);o.Q6J("fragment",t.fragment)("routerLink",t.route)("target",t.target||"_self")("tuiScrollIntoViewLink",n.isActive(t.route)),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}const ct=function(){return{exact:!1}};function dt(t,e){if(1&t&&(o.TgZ(0,"div",25),o.YNc(1,at,4,5,"button",26),o.TgZ(2,"tui-expand",27),o.TgZ(3,"div",28),o.YNc(4,ut,3,7,"a",29),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=t.item,n=t.index,i=o.oxw();o.Q6J("routerLinkActiveOptions",o.DdM(4,ct)),o.xp6(1),o.Q6J("ngIf",e.subPages),o.xp6(1),o.Q6J("expanded",!!i.openPagesGroupsArr[n]),o.xp6(2),o.Q6J("ngForOf",i.$pages(e.subPages))}}function ht(t,e){if(1&t&&(o.YNc(0,ot,3,6,"a",22),o.YNc(1,dt,5,5,"ng-template",null,23,o.W1O)),2&t){const t=e.item,n=o.MAs(2);o.Q6J("ngIf",!t.subPages)("ngIfElse",n)}}class pt{constructor(t,e,n,i,r,o,a,u,c,d,p,C,w,x,M){this.title$=n,this.mode=i,this.sidebar=r,this.labels=o,this.items=a,this.searchText=u,this.router=c,this.activatedRoute=d,this.destroy$=p,this.readyToScroll$=C,this.docIcons=w,this.icons=x,this.doc=M,this.menuOpen=!1,this.openPagesArr=[],this.openPagesGroupsArr=[],this.active="",this.search=new s.NI(""),this.filtered$=(0,h.EKY)(this.search).pipe((0,m.h)((t=>t.trim().length>2)),(0,f.U)((t=>this.filterItems(this.flattenSubPages(this.items),t)))),this.mode$=this.mode.change$.pipe((0,v.O)(null),(0,f.U)((()=>this.mode.mode||"onLight"))),n.subscribe((n=>{t.markForCheck(),e.setTitle(n),this.openActivePageGroup()})),(0,g.aj)([this.router.events.pipe((0,m.h)((t=>t instanceof l.Xs))),this.title$.pipe((0,b.w)((()=>this.readyToScroll$.pipe((0,m.h)(Boolean)))))]).pipe((0,y.q)(1),(0,f.U)((([t])=>t.anchor||"")),(0,m.h)(Boolean),(0,_.R)(this.destroy$)).subscribe((t=>this.navigateToAnchorLink(t)))}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,h.pfE)(t.filter((({title:t,keywords:n=""})=>(e=e.toLowerCase().trim(),n=n.toLowerCase(),(t=t.toLowerCase()).includes(e)||n.includes(e)||t.includes((0,c.OO)(e))||n.includes((0,c.OO)(e))||e.replace(/-/gi,"").includes(t)||t.includes(e.replace(/\s|tui/g,""))||n.includes(e.replace(/\s|tui/g,""))||e.split(/\s/).find((e=>t.includes(e)))))),"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"})}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}`):[];if(!e.length||!e[e.length-1])return;const n=this.doc.createElement("a");n.href=`${this.doc.location.pathname}#${t}`,n.style.display="none",n.style.position="absolute",this.doc.body.appendChild(n),n.click(),n.remove()}}pt.ɵfac=function(t){return new(t||pt)(o.Y36(o.sBO),o.Y36(a.Dx),o.Y36(x),o.Y36(p.wtG),o.Y36(d.B7,8),o.Y36(M),o.Y36(O),o.Y36(u.EI),o.Y36(l.F0),o.Y36(l.gz),o.Y36(h.a31,2),o.Y36(u.V1),o.Y36(u.oq),o.Y36(p.Gs9),o.Y36(r.K0))},pt.ɵcmp=o.Xpm({type:pt,selectors:[["tui-doc-navigation"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_open",e.menuOpen)},features:[o._Bn(k)],ngContentSelectors:["*"],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","target","click",4,"ngFor","ngForOf"],["tuiOption","",3,"fragment","routerLink","target","click"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],["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","target","tuiScrollIntoViewLink","click",4,"ngIf","ngIfElse"],["subPagesTemplate",""],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink",3,"routerLink","target","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","target","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","target","tuiScrollIntoViewLink","click"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"tui-input",0,1),o._uU(2),o.YNc(3,K,2,0,"ng-container",2),o.qZA(),o.TgZ(4,"nav",3),o.TgZ(5,"tui-scrollbar",4),o.ALo(6,"async"),o.TgZ(7,"tui-accordion",5),o.YNc(8,nt,5,3,"tui-accordion-item",6),o.qZA(),o.TgZ(9,"div",7),o.YNc(10,it,1,5,"ng-container",8),o.qZA(),o.YNc(11,ht,3,2,"ng-template",null,9,o.W1O),o.qZA(),o.qZA(),o.Hsn(13)),2&t&&(o.Q6J("formControl",e.search)("tuiAutoFocus",!!e.sidebar)("tuiTextfieldCleaner",!0)("tuiTextfieldIconLeft",e.docIcons.search)("tuiTextfieldLabelOutside",!0),o.xp6(2),o.hij(" ",e.searchText," "),o.xp6(1),o.Q6J("ngIf",e.canOpen),o.xp6(2),o.Q6J("tuiMode",o.lcZ(6,12,e.mode$)),o.xp6(2),o.Q6J("closeOthers",!1)("rounded",!1),o.xp6(1),o.Q6J("ngForOf",e.labels),o.xp6(2),o.Q6J("ngForOf",e.itemsWithoutSections))},directives:[S.K,P.w,T.s,s.JJ,s.oH,A.k,E.b,I.a,D.x,r.O5,L.I,F.w,N.o,r.sg,z.g,R.q,B.R,H.v,l.yS,V.Li,Y.P,j.K,Z.d,r.tP,$.V,l.Od,U.$,G.S],pipes:[r.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%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .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;text-decoration:none;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-icon[_ngcontent-%COMP%]{margin-left:.5rem}.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,i.gn)([h.UMq],pt.prototype,"filterItems",null),(0,i.gn)([h.UMq],pt.prototype,"flattenSubPages",null)},31037:(t,e,n)=>{n.d(e,{n:()=>r});var i=n(74788);let r=(()=>{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})()},15997:(t,e,n)=>{n.d(e,{q:()=>P});var i=n(903),r=n(42600),o=n(14891),s=n(31037),a=n(74788),l=n(12057),u=n(81306),c=n(50830),d=n(25276),h=n(32489),p=n(94824),g=n(34016),m=n(64596);let f=(()=>{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=a.Yjl({name:"tuiReplace",type:t,pure:!0}),t})();function v(t,e){1&t&&a._UZ(0,"tui-tag",9)}function b(t,e){if(1&t&&a._UZ(0,"tui-tag",10),2&t){const t=a.oxw();a.Q6J("autoColor",!0)("value",t.package)}}const y=function(t){return{exact:t}};function _(t,e){if(1&t&&(a.TgZ(0,"a",14),a.ALo(1,"tuiReplace"),a._uU(2),a.qZA()),2&t){const t=a.oxw().ngIf,e=a.oxw().first,n=a.oxw(2);a.Q6J("routerLink",e?"./":a.Dn7(1,3,t,n.from,n.to))("routerLinkActiveOptions",a.VKq(7,y,e)),a.xp6(2),a.hij(" ",t," ")}}function C(t,e){1&t&&(a.ynx(0),a.YNc(1,_,3,9,"a",13),a.BQk())}function w(t,e){if(1&t&&(a.ynx(0),a.YNc(1,C,2,0,"ng-container",12),a.BQk()),2&t){const t=e.$implicit,n=e.index,i=a.oxw(2);a.xp6(1),a.Q6J("ngIf",t.pageTab||i.defaultTabs[n])}}function x(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-tabs-with-more",11),a.NdJ("activeItemIndexChange",(function(e){return a.CHM(t),a.oxw().activeItemIndex=e})),a.YNc(1,w,2,1,"ng-container",8),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeItemIndex",t.activeItemIndex),a.xp6(1),a.Q6J("ngForOf",t.tabConnectors)}}function M(t,e){if(1&t&&a._UZ(0,"tui-doc-see-also",15),2&t){const t=a.oxw();a.Q6J("seeAlso",t.seeAlso)}}function O(t,e){if(1&t&&a.GkF(0,17),2&t){const t=a.oxw().$implicit;a.Q6J("ngTemplateOutlet",t.template)}}function k(t,e){if(1&t&&(a.ynx(0),a.YNc(1,O,1,1,"ng-container",16),a.BQk()),2&t){const t=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",t===n.activeItemIndex)}}const S=["*"];let P=(()=>{class t{constructor(t,e){this.defaultTabs=t,this.seeAlso=e,this.header="",this.package="",this.type="",this.path="",this.deprecated=!1,this.tabConnectors=r.Mmc,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)(a.Y36(i.AC),a.Y36(o.l))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-doc-page"]],contentQueries:function(t,e,n){if(1&t&&a.Suo(n,s.n,4),2&t){let t;a.iGM(t=a.CRH())&&(e.tabConnectors=t)}},inputs:{header:"header",package:"package",type:"type",path:"path",deprecated:"deprecated"},features:[a._Bn(o.E)],ngContentSelectors:S,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&&(a.F$t(),a.TgZ(0,"header",0),a.TgZ(1,"h1",1),a._uU(2),a.YNc(3,v,1,0,"tui-tag",2),a.YNc(4,b,1,2,"tui-tag",3),a.qZA(),a.YNc(5,x,2,2,"tui-tabs-with-more",4),a._UZ(6,"tui-doc-source-code",5),a.qZA(),a.TgZ(7,"div",6),a.Hsn(8),a.YNc(9,M,1,1,"tui-doc-see-also",7),a.YNc(10,k,2,1,"ng-container",8),a.qZA()),2&t&&(a.xp6(2),a.hij(" ",e.header," "),a.xp6(1),a.Q6J("ngIf",!!e.deprecated||""===e.deprecated),a.xp6(1),a.Q6J("ngIf",e.package),a.xp6(1),a.Q6J("ngIf",e.tabConnectors.length),a.xp6(1),a.Q6J("header",e.header)("package",e.package)("path",e.path)("type",e.type),a.xp6(3),a.Q6J("ngIf",e.showSeeAlso),a.xp6(1),a.Q6J("ngForOf",e.tabConnectors))},directives:[l.O5,u.z,l.sg,c.G,d.W,h.w,p.y,g.yS,g.Od,m.C,l.tP],pipes:[f],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);color:#fff}.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})()},14891:(t,e,n)=>{n.d(e,{l:()=>o,E:()=>s});var i=n(74788),r=n(903);const o=new i.OlP("[PAGE_SEE_ALSO]"),s=[{provide:o,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)}}]},22889:(t,e,n)=>{n.d(e,{$:()=>d});var i=n(74788),r=n(903),o=n(42600),s=n(74235),a=n(45435),l=n(43190),u=n(54395),c=n(46782);let d=(()=>{class t{constructor(t,{nativeElement:e},n){this.readyToScroll$=n,this.scroll$=new s.t(1),this.readyToScroll$.pipe((0,a.h)(Boolean),(0,l.w)((()=>this.scroll$)),(0,u.b)(750),(0,a.h)((t=>t&&!!(0,o.PU1)(e))),(0,c.R)(t)).subscribe((()=>{e.scrollIntoView()}))}set tuiScrollIntoViewLink(t){this.scroll$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.a31,2),i.Y36(i.SBq),i.Y36(r.V1))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoViewLink",""]],inputs:{tuiScrollIntoViewLink:"tuiScrollIntoViewLink"},features:[i._Bn([o.a31])]}),t})()},47029:(t,e,n)=>{n.d(e,{AC:()=>H.AC,Es:()=>H.Es,Or:()=>H.Or,V5:()=>H.V5,V1:()=>H.V1,yO:()=>H.yO,Yx:()=>H.Yx,N0:()=>B.N,fV:()=>R,qn:()=>F,Lq:()=>N,Zp:()=>A,Ve:()=>z.Ve,JQ:()=>z.JQ,vi:()=>z.vi}),n(95509);var i=n(50506),r=n(12057),o=n(43232),s=n(28699),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.EIu,s._l,o.fNO,i.Iq]]}),t})();var u=n(97582),c=n(42600),d=n(6667),h=n(79765),p=n(46797),g=n(43190),m=n(88002),f=n(39761),v=n(18289);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().onClick()})),a.TgZ(1,"span",2),a.ALo(2,"async"),a.TgZ(3,"span",3),a.Hsn(4),a.qZA(),a._uU(5),a.qZA(),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("title",t[0]),a.xp6(1),a.ekj("t-content_moved",a.lcZ(2,5,n.copied$)),a.xp6(2),a.uIk("data-text",t[0]),a.xp6(2),a.hij(" ",t[1]," ")}}class y{constructor(t){this.texts$=t,this.copy$=new h.xQ}get copied$(){return this.copy$.pipe((0,g.w)((()=>(0,p.H)(1500).pipe((0,m.U)(c.IyD),(0,f.O)(!0)))))}onClick(){this.copy$.next()}}y.ɵfac=function(t){return new(t||y)(a.Y36(d.UVe))},y.ɵcmp=a.Xpm({type:y,selectors:[["tui-doc-copy"]],features:[a._Bn([c.a31])],ngContentSelectors:["*"],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&&(a.F$t(),a.YNc(0,b,6,7,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[r.O5,v.v],pipes:[r.Ov],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;border-radius:var(--tui-radius-m)}.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,u.gn)([c.UMq],y.prototype,"copied$",null);let _=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.fNO]]}),t})();n(40029);var C=n(24751),w=n(34016);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.UX,C.u5,w.Bz,o.jzK,o.fNO,d.Jyo,o.ijq,o.n6B,o.QA7,o.zw7,d.nJ7,d.sxu,o.EIu,d.zXW,o.pcV,o.cnw,o.goS,c.gjW]]}),t})();n(77825),n(26256);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.u5,w.Bz,d.fT6,d.Jyo,d.YMv,o.jzK,d._Hh,o.zw7,o.n6B,M,o.KWI,o.cnw,o.dpK,o.pcV,d.zXW,o.HiG,c.pLW]]}),t})();n(85602),n(75383),n(7512),n(56775),n(79567),n(42328);var k=n(89570);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,i.Iq,d.$$e,o.fNO,_,l,k.wq,c.I1h,o.dSp,w.Bz]]}),t})();n(99814),n(26887);var P=n(2219);n(22889);let T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),E=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.UX,w.Bz,k.wq,T,o.fNO,d.QfL,o.cnw,c.Ah6,c.WDk,o.zw7,o.jzK,o.ijq,o.jhF,o.dpK,d.iKB,o.Jyu,o.EIu,o.pcV,c.Q7V]]}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,k.wq,o.fNO,P.T,c.Ah6,E]]}),t})();n(61997),n(64596);let D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,o.jzK]]}),t})();n(81306);let L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,k.wq,o.fNO]]}),t})();n(19633),n(1065),n(75747),n(22545),n(91283),n(77488),n(78668);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,o.jfl,I,o.WwM,o.upG,o.GK_,o.fNO,o.zw7,E]]}),t})();n(3942),n(15997);let N=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,D,d.$$e,d.d38,L,c.I2i]]}),t})();n(14891);var z=n(71216);let R=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[l,x,O,N,S]}),t})();var B=n(81811),H=n(903);H.ru,H.IK,H.mv,H.gG,H.EI,H.VX,H.as,n(24931)},81811:(t,e,n)=>{n.d(e,{N:()=>i});const i={TS:"TypeScript",LESS:"LESS",HTML:"HTML"}},24931:(t,e,n)=>{n.d(e,{kk:()=>p,ML:()=>c});var i=n(42600);const r="Taiga UI",o=(0,i.JN4)("tuiTheme"),s=(0,i.JN4)(r);var a=n(62579),l=n(26215),u=n(74788);let c=(()=>{class t extends l.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===r}}return t.ɵfac=function(e){return new(e||t)(u.LFG(s),u.LFG(o),u.LFG(a.H3))},t.ɵprov=u.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const d=(0,i.JN4)("tuiNight"),h=(0,i.JN4)(!0);let p=(()=>{class t extends l.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)(u.LFG(a.m9),u.LFG(a.H3),u.LFG(d),u.LFG(h))},t.ɵprov=u.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},903:(t,e,n)=>{n.d(e,{mT:()=>r,lW:()=>s,AC:()=>a,ru:()=>g,IK:()=>m,$_:()=>d,Es:()=>h,mv:()=>f,et:()=>p,oq:()=>l,Or:()=>C,_Z:()=>P,gG:()=>v,V5:()=>S,V1:()=>k,EI:()=>b,UL:()=>A,VX:()=>y,yO:()=>E,as:()=>_,Yx:()=>I,x9:()=>D,B$:()=>L,Ii:()=>F});var i=n(42600);const r=(0,i.JN4)("");var o=n(74788);const s=new o.OlP("[TUI_DOC_CODE_EDITOR]"),a=(0,i.JN4)([]),l=(0,i.JN4)({search:"tuiIconSearch",day:"tuiIconSun",night:"tuiIconMoon",code:"tuiIconCode",menu:"tuiIconMenuLarge"});var u=n(71216),c=n(54487);const d=(0,i.JN4)(c.y),h=(0,i.JN4)(u.vi),p=(0,i.JN4)(new Set([])),g=(0,i.JN4)(["Read more more about modes: ","Background","Form value"]),m=(0,i.JN4)(["Argument","Type","Name and description","Value","Learn about our dynamic templates from "]),f=(0,i.JN4)(["Preview","Link to a sample was successfully copied","Done"]),v=(0,i.JN4)("Menu"),b=(0,i.JN4)("Search"),y=(0,i.JN4)("See also"),_=(0,i.JN4)("Source code"),C=(0,i.JN4)("");var w=n(41439),x=n(46797),M=n(25917),O=n(43190);const k=(0,i.JN4)((0,w.P)((()=>(0,x.H)(200).pipe((0,O.w)((()=>(0,M.of)(!0))))))),S=(0,i.JN4)([]),P=(0,i.N1V)((()=>(0,u.S4)((0,o.f3M)(S))));var T=n(43232);(0,i.N1V)((()=>(0,o.f3M)(T.TKC)?"auto":"smooth"));const A=(0,i.JN4)([]),E=(0,i.JN4)(null),I=(0,i.JN4)(""),D=(0,i.JN4)(null),L=(0,i.JN4)(u.TN),F=(0,i.JN4)(String)},71216:(t,e,n)=>{function i(t){return"true"===(null==t?void 0:t.toString())}function r(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 o(t){return[{path:"",component:t,children:[{path:":tab",component:t}]}]}function s(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;rr,cd:()=>i,Ve:()=>o,sj:()=>s,JQ:()=>c,vP:()=>d,S4:()=>h,OO:()=>g,vi:()=>l,TN:()=>m});var a=n(95381);function l(t=""){const e=(new a.Z).parse(t,{}).filter((({tag:t,type:e})=>"code"===t&&"fence"===e)).map((({content:t})=>t.trim()));return e.length?e:[t]}var u=n(97582);function c(t){return(0,u.mG)(this,void 0,void 0,(function*(){return t instanceof Promise?(yield t).default:t}))}function d(t){return(0,u.mG)(this,void 0,void 0,(function*(){const e={};for(const[n,i]of Object.entries(t))i&&(e[n]=yield c(i));return e}))}function h(t){const e=new Map;return t.forEach((t=>{"subPages"in t?t.subPages.forEach((t=>{e.set(t.title,t)})):e.set(t.title,t)})),e}const p={а:"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]+)>/g);return(e?e.reduce(((t,e)=>t.replace(e,e.replace(/\|/g,"&"))),t).split("|").map((t=>t.trim())):t.split("|").map((t=>t.trim()))).reduce(((t,e)=>{var n,i,r,o,s,a,l,u,c,d,h,p;let g=e.trim().replace(/readonly /g,"").replace(/\[\]/g,"");return g=null!==(o=null===(r=null===(i=null===(n=g.match(/ReadonlyArray<([^>]+)>/))||void 0===n?void 0:n[1])||void 0===i?void 0:i.split("&"))||void 0===r?void 0:r[0])&&void 0!==o?o:g,g=null!==(u=null===(l=null===(a=null===(s=g.match(/\[([^\]]+)\]/))||void 0===s?void 0:s[1])||void 0===a?void 0:a.split(","))||void 0===l?void 0:l[0])&&void 0!==u?u:g,g=null!==(p=null===(h=null!==(d=null===(c=g.split("<"))||void 0===c?void 0:c[0])&&void 0!==d?d:g)||void 0===h?void 0:h.trim())&&void 0!==p?p:"",g=Number.isNaN(parseFloat(g))?g:"number",g=/^'(.+)'$|^"(.+)"$|^`(.+)`$/.test(g)?"string":g,g=1===g.length?"unknown":g,t.concat({type:e.replace(/&/g,"|"),extracted:g})}),[])}},98240:(t,e,n)=>{n.d(e,{b:()=>c});var i=n(43232),r=n(52934),o=n(74788),s=n(55788),a=n(89570);const l=["tuiSidebar",""];function u(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}let c=(()=>{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)(o.Y36(i.PwD),o.Y36(r.B))},t.ɵcmp=o.Xpm({type:t,selectors:[["aside","tuiSidebar",""]],hostVars:3,hostBindings:function(t,e){2&t&&(o.d8E("@tuiSlideIn",e.animation),o.Tol(e.directionHostClass))},attrs:l,decls:2,vars:3,consts:[["tuiActiveZone","",1,"t-wrapper"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.YNc(1,u,2,1,"ng-container",1),o.qZA()),2&t&&(o.ekj("t-wrapper_auto-width",e.autoWidth),o.xp6(1),o.Q6J("polymorpheusOutlet",e.content))},directives:[s.e,a.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:[i.GwG]},changeDetection:0}),t})()},52934:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(74788),r=n(42600),o=n(89570),s=n(98240);let a=(()=>{class t extends o.GL{constructor(t,e,n,i){super(t,i),this.content=t,this.injector=e,this.portalService=n,this.component=new o.Al(s.b,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(r.ae2),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})()},2219:(t,e,n)=>{n.d(e,{B7:()=>re.B,T:()=>oe});var i=n(42600),r=n(23764),o=n(43232);i.a31,i.tll,r.IM,r.k2,(0,o.O0j)({size:"m",appearance:""});var s=n(6667);function a(t){return Array.from({length:t.yearCycle},((e,n)=>Array.from({length:i.NRs},((e,i)=>t.label+function(t){const e=new Date(t.year+t.startingYear,t.month,1),n=new Date(t.year+t.startingYear,t.month+1,0).getDate()+(e.getDay()||7)-1;return Math.ceil(n/7)}({year:n,month:i,startingYear:t.startingYear})*t.week))))}const l=500,u=a({label:64,week:48,yearCycle:28,startingYear:1900}),c=a({label:50,week:50,yearCycle:28,startingYear:1900});var d=n(74788),h=n(79765),p=(n(25917),n(29856),n(22759),n(42569));let g=1;const m=Promise.resolve(),f={};function v(t){return t in f&&(delete f[t],!0)}const b={setImmediate(t){const e=g++;return f[e]=!0,m.then((()=>v(e)&&t())),e},clearImmediate(t){v(t)}};var y=n(71023);class _ extends y.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=b.setImmediate(t.flush.bind(t,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&&(b.clearImmediate(e),t.scheduled=void 0)}}var C=n(69457);class w extends C.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(++ir<=e?t+i.reduce(((t,i,o)=>rr)return Math.max((o+t)*i.NRs+n,0);return 196}computeHeight(t,e){const n=t%28,i=F(this.isIos?c:u,n,e),r=(t-n)/28;return(this.isIos?r*L:r*D)+i}updateRenderedRange(t){const e=t.measureScrollOffset(),{start:n,end:i}=t.getRenderedRange(),r=t.getViewportSize(),o=t.getDataLength(),s={start:n,end:i},a=this.getIndexForOffset(e);e-this.getOffsetForIndex(n)e||!t?E.E:(0,i.mLY)(n,"touchstart").pipe((0,B.U)((({touches:t})=>{const{clientX:e,clientY:o}=t[t.length-1],{width:s,height:a,top:l,left:u}=n.getBoundingClientRect(),c=Math.sqrt(s*s+a*a),d=2*c,h=e-u-c,p=o-l-c,g=r.createElement("div");return r.addClass(g,"tui-ripple"),r.setAttribute(g,"style",`width: ${(0,i.O9r)(d)}; height: ${(0,i.O9r)(d)}; left: ${(0,i.O9r)(h)}; top: ${(0,i.O9r)(p)}; animation-name: tuiRippleOn;`),g})))},{provide:Z,deps:[i.CyX,i.FAH,d.SBq,i.a31],useFactory:(t,e,{nativeElement:n},r)=>e||!t?E.E:(0,i.mLY)(n,"animationend").pipe((0,O.h)((({animationName:t})=>t===Y)),(0,B.U)((({target:t})=>t)),(0,O.h)(i.PcC),(0,k.R)(r))}];let U=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-ripple-styles"],decls:0,vars:0,template:function(t,e){},styles:["@keyframes tuiRippleOn{0%{transform:scale(0);opacity:.12}to{transform:none;opacity:.12}}@keyframes tuiRippleOff{0%{transform:none;opacity:.12}to{transform:none;opacity:0}}*[tuiRipple]{position:relative;overflow:hidden}.tui-ripple{position:absolute;z-index:100;border-radius:100%;background:currentColor;transform:scale(0);animation-duration:.45s;animation-fill-mode:forwards;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{constructor({nativeElement:t},e,n,r,o,s){e.addComponent(U);const a=(0,i.mLY)(t,"touchend"),l=(0,i.mLY)(t,"touchmove");s.subscribe((e=>{n.removeChild(t,e)})),o.pipe((0,R.zg)((e=>{const r=(0,i.mLY)(e,"animationend");return(0,z.S3)((0,M.H)(100).pipe((0,B.U)(i.IyD)),a.pipe((0,B.U)(i.YeN))).pipe((0,H.q)(1),(0,k.R)(l),(0,V.b)((()=>{n.setStyle(e,"background",this.tuiRipple||null),n.appendChild(t,e)})),(0,P.w)((t=>t?r:(0,z.S3)(a.pipe((0,P.w)((()=>r))),r.pipe((0,P.w)((()=>a)))))),(0,B.U)((()=>e)))})),(0,k.R)(r)).subscribe((t=>{n.setStyle(t,"animationName",Y)}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(i.gHG),d.Y36(d.Qsj),d.Y36(i.a31,2),d.Y36(j),d.Y36(Z))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiRipple",""]],inputs:{tuiRipple:"tuiRipple"},features:[d._Bn($)]}),t})();n(73460);var q=n(46648);n(99766),n(65566),n(78831);var J=n(89570);function Q(t,e){if(1&t&&(d.TgZ(0,"h2",4),d._uU(1),d.qZA()),2&t){const t=d.oxw();d.Q6J("id",t.context.id),d.xp6(1),d.hij(" ",t.context.label,"\n")}}function W(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function K(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",5),d.NdJ("click",(function(){const e=d.CHM(t).index;return d.oxw().onAction(e)})),d._uU(1),d.qZA()}if(2&t){const t=e.$implicit,n=d.oxw();d.ekj("t-button_column",n.context.actions.length>2),d.xp6(1),d.hij(" ",t,"\n")}}let X=(()=>{class t{constructor(t,e){this.isIOS=t,this.context=e}onAction(t){this.context.completeWith(t)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(i.FAH),d.Y36(J.yf))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-dialog"]],hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("_ios",e.isIOS)},decls:4,vars:4,consts:[["automation-id","tui-mobile-dialog__label","class","t-heading",3,"id",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","flat","size","s","tuiButton","","tuiRipple","","type","button","class","t-button",3,"t-button_column","click",4,"ngFor","ngForOf"],["automation-id","tui-mobile-dialog__label",1,"t-heading",3,"id"],["appearance","flat","size","s","tuiButton","","tuiRipple","","type","button",1,"t-button",3,"click"]],template:function(t,e){1&t&&(d.YNc(0,Q,2,2,"h2",0),d.TgZ(1,"div",1),d.YNc(2,W,2,1,"ng-container",2),d.qZA(),d.YNc(3,K,2,3,"button",3)),2&t&&(d.Q6J("ngIf",!!e.context.label),d.xp6(2),d.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),d.xp6(1),d.Q6J("ngForOf",e.context.actions))},directives:[T.O5,J.Li,T.sg,N.v,G],styles:["[_nghost-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;background:var(--tui-base-01);word-break:break-word;overflow:hidden;padding:1.25rem .75rem 0 1.5rem}[_nghost-%COMP%]:not(._ios){max-width:17.5rem;border-radius:.125rem;text-align:left;box-shadow:0 1.5rem 1.5rem #00000052}._ios[_nghost-%COMP%]{max-width:16.875rem;padding:1.5rem 0 0;border-radius:.75rem;text-align:center}.t-heading[_ngcontent-%COMP%]{font-size:1rem}._ios[_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font-weight:bold;font-size:1.125rem}.t-content[_ngcontent-%COMP%]{margin-top:.75rem;font-size:.875rem;line-height:1.25rem;padding-right:.75rem}._ios[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-top:.25rem;padding-left:1.5rem;padding-right:1.5rem}.t-button[_ngcontent-%COMP%]{border-radius:0}._ios[_nghost-%COMP%] .t-button[_ngcontent-%COMP%]{border-top:#b8b8b8 1px solid;height:2.625rem;width:100%}._ios[_nghost-%COMP%] .t-button[_ngcontent-%COMP%]:first-of-type{margin-top:1.125rem}[_nghost-%COMP%]:not(._ios) .t-button[_ngcontent-%COMP%]{margin:.5rem 0 .5rem .5rem;float:right}[_nghost-%COMP%]:not(._ios) .t-button_column[_ngcontent-%COMP%]{display:block;float:none;margin-left:auto}"],changeDetection:0}),t})();function tt(t,e){if(1&t&&(d.O4$(),d._UZ(0,"animate",5)),2&t){const t=d.oxw(2).$implicit,e=d.oxw();d.uIk("begin",e.calculateAnimationBegin(t))}}function et(t,e){if(1&t&&(d.O4$(),d.TgZ(0,"g"),d.TgZ(1,"rect",3),d.YNc(2,tt,1,1,"animate",4),d.qZA(),d.qZA()),2&t){const t=d.oxw().$implicit,e=d.oxw();d.uIk("transform",e.calculateTransform(t)),d.xp6(2),d.Q6J("ngIf",e.finished)}}function nt(t,e){if(1&t&&(d.O4$(),d.ynx(0),d.YNc(1,et,3,2,"g",2),d.BQk()),2&t){const t=e.$implicit,n=d.oxw();d.xp6(1),d.Q6J("ngIf",n.isShown(t))}}(0,i.JN4)({label:"",actions:["OK"]}),new J.Al(X);let it=(()=>{class t{constructor(t,e){this.context=t,this.threshold=e,this.steps=12}get finished(){return this.percent>=100}get percent(){return 100*this.context.$implicit/this.threshold}isShown(t){return this.percent>8*(t+1)}calculateTransform(t){return`rotate(${30*t} 50 50)`}calculateAnimationBegin(t){return 8*t/100+"s"}}return t.ɵfac=function(e){return new(e||t)(d.Y36(J.yf),d.Y36(ot))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-ios-loader"]],decls:2,vars:1,consts:[["height","36","preserveAspectRatio","xMidYMid","viewBox","0 0 100 100","width","36",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"ngIf"],["fill","#c7c9cc","height","16","rx","7.05","ry","3.3","width","6","x","47","y","22"],["attributeName","opacity","dur","1s","keyTimes","0;1","repeatCount","indefinite","values","1;0",4,"ngIf"],["attributeName","opacity","dur","1s","keyTimes","0;1","repeatCount","indefinite","values","1;0"]],template:function(t,e){1&t&&(d.O4$(),d.TgZ(0,"svg",0),d.YNc(1,nt,2,1,"ng-container",1),d.qZA()),2&t&&(d.xp6(1),d.Q6J("tuiRepeatTimesOf",e.steps))},directives:[q.X,T.O5],styles:["[_nghost-%COMP%]{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}"],changeDetection:0}),t})();const rt=new J.Al(it),ot=((0,i.JN4)(E.E),(0,i.JN4)(50)),st=((0,i.N1V)((()=>(0,d.f3M)(i.FAH)?rt:dt)),Math.pow(10,-6));var at=n(57634);function lt(t,e){if(1&t&&(d.O4$(),d.TgZ(0,"svg",3),d.TgZ(1,"defs"),d.TgZ(2,"mask",4),d._UZ(3,"path",5),d.qZA(),d.qZA(),d.TgZ(4,"g",6),d._UZ(5,"path",7),d.qZA(),d.qZA()),2&t){const t=d.oxw();d.Udp("opacity",t.opacity),d.uIk("transform",t.transform)}}function ut(t,e){1&t&&d._UZ(0,"tui-loader",8),2&t&&d.Q6J("inheritColor",!0)}let ct=(()=>{class t{constructor(t,e){this.context=t,this.threshold=e}get transform(){return`rotate(${Math.min(180+2.3*this.percent,500)} 0 0)`}get percent(){return 100*this.context.$implicit/this.threshold}get opacity(){return this.context.$implicit/(1.5*this.threshold)}get dropped(){return this.context.$implicit<=st||this.context.$implicit===this.threshold}get hostTransform(){return`translateY(${Math.min(this.context.$implicit,1.5*this.threshold)}px)`}}return t.ɵfac=function(e){return new(e||t)(d.Y36(J.yf),d.Y36(ot))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-android-loader"]],hostVars:6,hostBindings:function(t,e){2&t&&(d.Udp("transform",e.hostTransform),d.ekj("_visible",e.percent)("_dropped",e.dropped))},decls:4,vars:2,consts:[[1,"t-wrapper"],["fill","none","height","24","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg",3,"opacity",4,"ngIf","ngIfElse"],["loading",""],["fill","none","height","24","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg"],["id","mask-1"],["clip-rule","evenodd","d","M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z","fill","white","fill-rule","evenodd"],["mask","url(#mask-1)"],["clip-rule","evenodd","d","M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z","fill","black","fill-rule","evenodd"],["size","s",1,"t-loader",3,"inheritColor"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div",0),d.YNc(1,lt,6,3,"svg",1),d.qZA(),d.YNc(2,ut,1,1,"ng-template",null,2,d.W1O)),2&t){const t=d.MAs(3);d.xp6(1),d.Q6J("ngIf",100!==e.percent)("ngIfElse",t)}},directives:[T.O5,at.k],styles:["[_nghost-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;display:block;height:0;opacity:0}._visible[_nghost-%COMP%]{opacity:1}._dropped[_nghost-%COMP%]{transition:transform var(--tui-duration) cubic-bezier(.4,0,.2,1),opacity var(--tui-duration) var(--tui-duration)}.t-wrapper[_ngcontent-%COMP%]{position:absolute;top:-2.5rem;left:50%;display:flex;box-shadow:var(--tui-shadow-dropdown);height:2.25rem;width:2.25rem;background-color:var(--tui-secondary);border-radius:6.25rem;align-items:center;justify-content:center;margin-left:-1.125rem}.t-loader[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})();const dt=new J.Al(ct),ht=new d.OlP("[TUI_SHEET]"),pt=new d.OlP("[TUI_SHEET_SCROLL]"),gt=new d.OlP("[TUI_SHEET_DRAGGED]");var mt=n(66682),ft=n(9945),vt=n(22416),bt=n(21571),yt=n(87874);const _t=[{provide:gt,deps:[d.SBq],useFactory:({nativeElement:t})=>(0,mt.T)((0,i.mLY)(t,"touchstart",{passive:!0}).pipe((0,B.U)(i.YeN)),(0,i.mLY)(t,"touchend").pipe((0,B.U)(i.IyD)))},{provide:pt,deps:[d.SBq,d.R0b,T.K0,i.FAH],useFactory:({nativeElement:t},e,n,r)=>r?function(t,e,n){const r=(0,i.mLY)(t,"load",{capture:!0}),o=(0,i.mLY)(t,"touchstart",{passive:!0}),s=(0,i.mLY)(e,"touchmove",{passive:!0}),a=(0,i.mLY)(e,"touchend"),l=(0,i.mLY)(t,"scroll").pipe((0,B.U)((()=>t.scrollTop))),u=(0,mt.T)(r.pipe((0,yt.g)(0),(0,B.U)((()=>t.scrollTop))),o.pipe((0,P.w)((({touches:e})=>{const{screenY:n}=e[0],{scrollTop:i}=t;return(0,vt.z)((0,bt.$R)(s,l).pipe((0,B.U)((([{touches:t}])=>i+n-t[0].screenY)),(0,k.R)(a)),l)}))));return(0,vt.z)(l.pipe((0,H.q)(1)),u).pipe((0,i.fL9)(n),(0,ft.B)())}(t,n,e):(0,mt.T)((0,i.mLY)(t,"scroll"),(0,i.mLY)(t,"load",{capture:!0})).pipe((0,B.U)((()=>t.scrollTop)),(0,i.fL9)(e),(0,ft.B)())},{provide:i.$__,useExisting:d.SBq},{provide:ht,useExisting:(0,d.Gpc)((()=>Yt))}];var Ct=n(57057),wt=n(43219);let xt=(()=>{class t{constructor(t,e,n,i,{nativeElement:r}){i.pipe((0,B.U)((e=>Math.floor(e)>t.nativeElement.offsetTop)),(0,x.x)(),(0,Ct.M)(n),(0,B.U)((([t,e])=>!t&&!e)),(0,O.h)(Boolean),(0,wt.p)(100),(0,k.R)(e)).subscribe((()=>{r.style.overflow="hidden",r.classList.remove("_stuck"),r.scrollTop=t.nativeElement.offsetTop,(0,M.H)(100).pipe((0,k.R)(e)).subscribe((()=>{r.style.overflow=""}))}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(i.a31,2),d.Y36(gt),d.Y36(pt),d.Y36(i.$__))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiSheetStop",""]],features:[d._Bn([i.a31])]}),t})();var Mt=n(42486);function Ot(t,e){1&t&&d.Hsn(0,0,["*ngIf","deg"])}const kt=function(t){return{transform:t}};function St(t,e){if(1&t&&(d.ynx(0),d._UZ(1,"div",1),d.YNc(2,Ot,1,0,"ng-content",2),d._UZ(3,"div",1),d.BQk()),2&t){const t=e.tuiLet;d.xp6(1),d.Q6J("ngStyle",d.VKq(3,kt,"rotate(-"+t+"deg)")),d.xp6(1),d.Q6J("ngIf",t),d.xp6(1),d.Q6J("ngStyle",d.VKq(5,kt,"rotate("+t+"deg)"))}}const Pt=["*"];let Tt=(()=>{class t{constructor(t,e,n){this.sheet=t,this.scroll$=e,this.zone=n,this.rotate$=this.scroll$.pipe((0,o.KV6)((t=>(0,i.Kiv)(10-(t-this.stop)/5,0,10)),this.zone))}get stop(){return this.sheet.stops[0]||0}}return t.ɵfac=function(e){return new(e||t)(d.Y36(ht),d.Y36(pt),d.Y36(d.R0b))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-sheet-bar"]],ngContentSelectors:Pt,decls:2,vars:3,consts:[[4,"tuiLet"],[1,"t-bar",3,"ngStyle"],[4,"ngIf"]],template:function(t,e){1&t&&(d.F$t(),d.YNc(0,St,4,7,"ng-container",0),d.ALo(1,"async")),2&t&&d.Q6J("tuiLet",d.lcZ(1,1,e.rotate$))},directives:[Mt.L,T.PC,T.O5],pipes:[T.Ov],styles:['[_nghost-%COMP%]{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar[_ngcontent-%COMP%]{content:"";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}._ios:not(._dragged)[_nghost-%COMP%] .t-bar[_ngcontent-%COMP%], ._ios:not(._dragged) [_nghost-%COMP%] .t-bar[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar[_ngcontent-%COMP%]:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar[_ngcontent-%COMP%]:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}'],changeDetection:0}),t})();var At=n(62579);let Et=(()=>{class t{constructor(t,e,n){this.scroll$=t,this.component=e,this.win=n,this.stop=0,this.transform$=this.scroll$.pipe((0,B.U)((t=>`translateY(${this.getY(t)}%) scaleX(-1)`))),this.rounded$=this.scroll$.pipe((0,B.U)((t=>t!!Math.round(this.getY(t)))))}getY(t){const e=t-this.stop,n=this.win.innerHeight-this.component.item.offset-this.stop;return this.stop&&(0,i.Kiv)(100-e/n*100,0,100)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(pt),d.Y36(ht),d.Y36(At.m9))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiSheetTop",""]],hostVars:3,hostBindings:function(t,e){1&t&&d.NdJ("$.style.transform",(function(){return e.transform$}))("$.class._rounded",(function(){return e.rounded$}))("$.class._clickthrough",(function(){return e.clickthrough$})),2&t&&d.Ikx("$.style.transform",e.transform$)("$.class._rounded",e.rounded$)("$.class._clickthrough",e.clickthrough$)},inputs:{stop:["tuiSheetTop","stop"]}}),t})();const It=["tuiSheetHeading",""],Dt=["*"];let Lt=(()=>{class t{constructor(t,e,n,i){this.idService=t,this.el=e,this.closeWord$=n,this.icons=i,this.id=this.idService.generate()}ngAfterViewInit(){this.el.nativeElement.dispatchEvent(new CustomEvent("tui-sheet-id",{bubbles:!0,detail:this.id}))}onClick(){this.el.nativeElement.dispatchEvent(new CustomEvent("tui-sheet-close",{bubbles:!0}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(i.llV),d.Y36(d.SBq),d.Y36(o.U0F),d.Y36(o.Gs9))},t.ɵcmp=d.Xpm({type:t,selectors:[["","tuiSheetHeading",""]],attrs:It,ngContentSelectors:Dt,decls:4,vars:5,consts:[["appearance","icon","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[3,"id"]],template:function(t,e){1&t&&(d.F$t(),d.TgZ(0,"button",0),d.NdJ("click",(function(){return e.onClick()})),d.ALo(1,"async"),d.qZA(),d.TgZ(2,"span",1),d.Hsn(3),d.qZA()),2&t&&(d.Q6J("icon",e.icons.close)("title",d.lcZ(1,3,e.closeWord$)),d.xp6(2),d.Q6J("id",e.id))},directives:[N.v],pipes:[T.Ov],styles:['[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}[_nghost-%COMP%]:after{content:"";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}[_nghost-%COMP%] ._stuck[_nghost-%COMP%]:after, ._stuck [_nghost-%COMP%]:after{opacity:1}.t-close[_ngcontent-%COMP%]{display:none;float:right;margin-right:-.25rem}.t-wrapper_closeable[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-wrapper_closeable [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}'],changeDetection:0}),t})();const Ft=["sheet"],Nt=["content"],zt=["stops"];function Rt(t,e){if(1&t&&d._UZ(0,"div",11,12),2&t){const t=e.$implicit;d.Udp("margin-top",t)}}function Bt(t,e){if(1&t&&d._UZ(0,"img",15),2&t){const t=e.polymorpheusOutlet;d.Q6J("src",t,d.LSH)}}function Ht(t,e){if(1&t&&(d.TgZ(0,"header",13),d.YNc(1,Bt,1,1,"img",14),d.qZA()),2&t){const t=d.oxw();d.Q6J("tuiSheetTop",t.imageStop),d.xp6(1),d.Q6J("polymorpheusOutlet",t.item.image)("polymorpheusOutletContext",t.context)}}function Vt(t,e){if(1&t&&(d.TgZ(0,"h2",16),d._uU(1),d.qZA()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}class Yt{constructor(t,e,n,r,o,s){this.scroll$=t,this.el=e,this.zone=n,this.isIos=r,this.moreWord$=o,this.destroy$=s,this.stopsRefs=i.Mmc,this.id="",this.stuck$=this.scroll$.pipe((0,B.U)((t=>Math.floor(t)>this.contentTop)))}get stops(){return this.getStops(this.stopsRefs)}get imageStop(){return this.item.imageSlide&&this.stops[this.stops.length-1]||0}get imageHeight(){return this.contentTop-this.sheetTop}get context(){return Object.assign(Object.assign({},this.item),{scroll$:this.scroll$.pipe((0,i.AoQ)(this.zone))})}onId(t){this.id=t}ngAfterViewInit(){this.el.nativeElement.scrollTop=[...this.stops,this.sheetTop,this.contentTop][this.item.initial]}scrollTo(t=this.sheetTop){const{nativeElement:e}=this.el;if(this.isIos){const n=t-e.scrollTop-16;e.style.transition="none",e.style.transform=`scaleX(-1) translate3d(0, ${n}px, 0)`,(0,M.H)(0).pipe((0,k.R)(this.destroy$)).subscribe((()=>{e.style.transition="",e.style.transform=""}))}e.scrollTo({top:t,behavior:"smooth"})}close(){this.context.closeable&&this.context.$implicit.complete()}get contentTop(){var t,e;return null!==(e=null===(t=this.content)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}get sheetTop(){var t,e;return null!==(e=null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}getStops(t){return t.map((({nativeElement:t})=>t.offsetTop+t.clientHeight))}}Yt.ɵfac=function(t){return new(t||Yt)(d.Y36(pt),d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(i.FAH),d.Y36(s.ueO),d.Y36(i.a31,2))},Yt.ɵcmp=d.Xpm({type:Yt,selectors:[["tui-sheet"]],viewQuery:function(t,e){if(1&t&&(d.Gf(Ft,5),d.Gf(Nt,5),d.Gf(zt,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.content=t.first),d.iGM(t=d.CRH())&&(e.stopsRefs=t)}},hostAttrs:["role","dialog"],hostVars:4,hostBindings:function(t,e){1&t&&d.NdJ("$.class._stuck",(function(){return e.stuck$}))("tui-sheet-id",(function(t){return e.onId(t.detail)})),2&t&&(d.Ikx("$.class._stuck",e.stuck$),d.uIk("aria-labelledby",e.id),d.ekj("_ios",e.isIos))},inputs:{item:"item"},features:[d._Bn(_t)],decls:13,vars:9,consts:[[1,"t-bumpers",3,"click"],["class","t-bumper",3,"marginTop",4,"ngFor","ngForOf"],[1,"t-wrapper"],["sheet",""],["class","t-top",3,"tuiSheetTop",4,"ngIf"],["tuiSheetStop","",1,"t-sheet"],["content",""],[1,"t-bar"],["type","button",1,"t-button",3,"title","click"],[1,"t-content"],["tuiSheetHeading","","class","t-heading",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-bumper"],["stops",""],[1,"t-top",3,"tuiSheetTop"],["alt","","class","t-image",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["alt","",1,"t-image",3,"src"],["tuiSheetHeading","",1,"t-heading"]],template:function(t,e){1&t&&(d.TgZ(0,"div",0),d.NdJ("click",(function(){return e.close()})),d.YNc(1,Rt,2,2,"div",1),d.qZA(),d.TgZ(2,"div",2,3),d.YNc(4,Ht,2,3,"header",4),d.TgZ(5,"section",5,6),d._UZ(7,"div",7),d.TgZ(8,"tui-sheet-bar"),d.TgZ(9,"button",8),d.NdJ("click",(function(){return e.scrollTo(e.stops[1])})),d.ALo(10,"async"),d.qZA(),d.qZA(),d.TgZ(11,"div",9),d.YNc(12,Vt,2,1,"h2",10),d.qZA(),d.qZA(),d.qZA()),2&t&&(d.xp6(1),d.Q6J("ngForOf",e.item.stops),d.xp6(1),d.ekj("t-wrapper_shadow",!e.item.image),d.xp6(2),d.Q6J("ngIf",e.item.image),d.xp6(5),d.Q6J("title",d.lcZ(10,7,e.moreWord$)),d.xp6(3),d.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.context))},directives:[T.sg,T.O5,xt,Tt,J.Li,Et,Lt],pipes:[T.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}._stuck[_nghost-%COMP%]{scroll-snap-type:none}@supports (-moz-appearance: none){[_nghost-%COMP%]{scroll-snap-type:none}}.t-bumpers[_ngcontent-%COMP%]{display:flex;height:100%}.t-wrapper_closeable[_nghost-%COMP%] .t-bumpers[_ngcontent-%COMP%], .t-wrapper_closeable [_nghost-%COMP%] .t-bumpers[_ngcontent-%COMP%]{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper[_ngcontent-%COMP%]{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow[_ngcontent-%COMP%]{box-shadow:var(--tui-shadow)}.t-top[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough[_ngcontent-%COMP%]{pointer-events:none}._overlay:not(._visible)[_nghost-%COMP%] .t-top[_ngcontent-%COMP%], ._overlay:not(._visible) [_nghost-%COMP%] .t-top[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image[_ngcontent-%COMP%]{display:block;width:100%}.t-sheet[_ngcontent-%COMP%]{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top[_ngcontent-%COMP%]:not(._rounded) ~ .t-sheet[_ngcontent-%COMP%] .t-bar[_ngcontent-%COMP%]{border-radius:0}.t-bar[_ngcontent-%COMP%]{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button[_ngcontent-%COMP%]{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content[_ngcontent-%COMP%]{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading[_ngcontent-%COMP%]{padding-bottom:.5rem;background:var(--tui-elevation-01)}"],data:{animation:[o.X9R]},changeDetection:0}),(0,I.gn)([i.UMq],Yt.prototype,"context",null),(0,I.gn)([i.UMq],Yt.prototype,"getStops",null),(0,i.JN4)(Object.assign({},{image:"",imageSlide:!0,stops:[],initial:0,offset:16,closeable:!0,overlay:!1}));var jt=n(54395);class Zt{constructor(t,e){this.zone=t,this.win=e,this.tuiSheetWrapper=16}get overlay$(){return this.scroll$.pipe((0,B.U)((t=>t+16>this.win.innerHeight-this.tuiSheetWrapper)),(0,x.x)(),(0,i.AoQ)(this.zone))}get visible$(){return function(t,e){const n=t.pipe((0,O.h)(Boolean)),r=t.pipe((0,O.h)(i.Mv9)),o=(0,z.S3)(e,(0,M.H)(100)).pipe((0,jt.b)(200),(0,H.q)(1),(0,B.U)(i.IyD));return n.pipe((0,P.w)((()=>r.pipe((0,P.w)((()=>o)),(0,S.O)(!0)))),(0,S.O)(!1))}(this.dragged$,this.scroll$).pipe((0,x.x)(),(0,i.AoQ)(this.zone))}get height$(){return this.scroll$.pipe((0,B.U)(this.getHeight.bind(this)))}getHeight(t){var e;return(null===(e=this.sheet)||void 0===e?void 0:e.context.overlay)?null:(0,i.Kiv)(this.withImage(t)+16,16,this.win.innerHeight)}withImage(t){var e;return!(null===(e=this.sheet)||void 0===e?void 0:e.imageStop)||Math.floor(t)>this.sheet.imageStop?t:t-this.sheet.imageHeight}}Zt.ɵfac=function(t){return new(t||Zt)(d.Y36(d.R0b),d.Y36(At.m9))},Zt.ɵdir=d.lG2({type:Zt,selectors:[["","tuiSheetWrapper",""]],contentQueries:function(t,e,n){if(1&t&&(d.Suo(n,Yt,5),d.Suo(n,Yt,7,gt),d.Suo(n,Yt,7,pt)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.dragged$=t.first),d.iGM(t=d.CRH())&&(e.scroll$=t.first)}},inputs:{tuiSheetWrapper:"tuiSheetWrapper"},exportAs:["tuiSheetWrapper"]}),(0,I.gn)([i.UMq],Zt.prototype,"overlay$",null),(0,I.gn)([i.UMq],Zt.prototype,"visible$",null),(0,I.gn)([i.UMq],Zt.prototype,"height$",null),n(75984),n(84714);var $t=n(30126),Ut=n(26215),Gt=n(24850);const qt=["sheet"],Jt=["stops"];function Qt(t,e){if(1&t&&d._UZ(0,"div",8,9),2&t){const t=e.$implicit;d.Udp("margin-top",t)}}function Wt(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function Kt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",(function(){return d.CHM(t),d.oxw(2).close()})),d._uU(1),d.ALo(2,"async"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("icon",t.icons.close),d.xp6(1),d.hij(" ",d.lcZ(2,2,t.closeWord$)," ")}}function Xt(t,e){if(1&t&&(d.TgZ(0,"h2",10),d.YNc(1,Wt,2,1,"ng-container",11),d.YNc(2,Kt,3,4,"button",12),d.qZA()),2&t){const t=d.oxw();d.Q6J("id",t.context.id),d.xp6(1),d.Q6J("polymorpheusOutlet",t.context.label),d.xp6(1),d.Q6J("ngIf",t.context.closeable)}}function te(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function ee(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,te,2,1,"ng-container",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("polymorpheusOutlet",t.context.content)("polymorpheusOutletContext",t.context)}}class ne{constructor(t,e,n,r,o){this.el=t,this.duration=e,this.icons=n,this.closeWord$=r,this.context=o,this.stopsRefs=i.Mmc,this.pointers=0,this.slideInTop={value:"",params:{start:"100vh",duration:this.duration}},this.stuck$=new Ut.X(!1)}get offset(){return this.context.offset}get closeable(){return this.context.closeable}get isSmall(){var t;return this.sheetTop>((null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.clientHeight)||1/0)}onPointerChange(t){if(this.pointers+=t,!t){const t=this.el.nativeElement.scrollTop>this.sheetTop;this.stuck$.value!==t&&this.stuck$.next(t)}!this.context.closeable||this.pointers||this.el.nativeElement.scrollTop||this.close()}close(){this.el.nativeElement.dispatchEvent(new Event("mousedown",{bubbles:!0})),this.context.$implicit.complete()}ngAfterViewInit(){this.el.nativeElement.scrollTop=[...this.getStops(this.stopsRefs),this.sheetTop][this.context.initial]}get sheetTop(){var t,e;return null!==(e=null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}getStops(t){return t.map((({nativeElement:t})=>t.offsetTop+t.clientHeight))}}ne.ɵfac=function(t){return new(t||ne)(d.Y36(d.SBq),d.Y36(o.dxT),d.Y36(o.Gs9),d.Y36(o.U0F),d.Y36(J.yf))},ne.ɵcmp=d.Xpm({type:ne,selectors:[["tui-sheet-dialog"]],viewQuery:function(t,e){if(1&t&&(d.Gf(qt,5),d.Gf(Jt,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.stopsRefs=t)}},hostVars:6,hostBindings:function(t,e){1&t&&d.NdJ("$.class._stuck",(function(){return e.stuck$}))("touchstart.passive.silent",(function(){return e.onPointerChange(1)}),!1,d.evT)("touchend.silent",(function(){return e.onPointerChange(-1)}),!1,d.evT)("touchcancel.silent",(function(){return e.onPointerChange(-1)}),!1,d.evT)("scroll.silent",(function(){return e.onPointerChange(0)})),2&t&&(d.Ikx("$.class._stuck",e.stuck$),d.d8E("@tuiSlideInTop",e.slideInTop),d.Udp("top",e.offset,"px"),d.ekj("_closeable",e.closeable))},decls:8,vars:5,consts:[[1,"t-stops"],["class","t-stop",3,"margin-top",4,"ngFor","ngForOf"],[1,"t-sheet",3,"tuiClickOutside"],["sheet",""],[1,"t-top"],["class","t-heading",3,"id",4,"ngIf"],["class","t-content",4,"ngIf"],[1,"t-footer"],[1,"t-stop"],["stops",""],[1,"t-heading",3,"id"],[4,"polymorpheusOutlet"],["appearance","icon","size","xs","tuiIconButton","","class","t-close",3,"icon","click",4,"ngIf"],["appearance","icon","size","xs","tuiIconButton","",1,"t-close",3,"icon","click"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(d.TgZ(0,"div",0),d.YNc(1,Qt,2,2,"div",1),d.qZA(),d.TgZ(2,"div",2,3),d.NdJ("tuiClickOutside",(function(){return e.close()})),d._UZ(4,"div",4),d.YNc(5,Xt,3,3,"h2",5),d.YNc(6,ee,2,2,"div",6),d.qZA(),d._UZ(7,"div",7)),2&t&&(d.xp6(1),d.Q6J("ngForOf",e.context.stops),d.xp6(1),d.ekj("t-sheet_small",e.isSmall),d.xp6(3),d.Q6J("ngIf",e.context.label),d.xp6(1),d.Q6J("ngIf",e.context.content))},directives:[T.sg,Gt.Z,T.O5,J.Li,N.v],pipes:[T.Ov],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;right:-1rem;display:flex;flex-direction:column;-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);font:var(--tui-font-text-m);overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:none;box-shadow:0 20rem var(--tui-elevation-01)}._closeable[_nghost-%COMP%]{display:block}._closeable[_nghost-%COMP%] .t-stops[_ngcontent-%COMP%]{display:flex}.t-stops[_ngcontent-%COMP%]{display:none;height:100%;scroll-snap-stop:always;scroll-snap-align:start}.t-stop[_ngcontent-%COMP%]{scroll-snap-stop:normal;scroll-snap-align:start;height:1rem;width:1rem}.t-sheet[_ngcontent-%COMP%]{box-shadow:var(--tui-shadow);width:calc(100% - 1rem);border-radius:.75rem .75rem 0 0;padding:0 1rem;margin-top:auto;background:var(--tui-elevation-01);box-sizing:border-box;scroll-snap-stop:always;scroll-snap-align:start}@supports (-moz-appearance: none){.t-sheet_small[_ngcontent-%COMP%]{scroll-snap-align:end}}.t-top[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;background:var(--tui-elevation-01)}.t-top[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.5rem;left:50%;width:2rem;height:.25rem;transform:translate(-50%);background:var(--tui-base-09);opacity:.3;border-radius:1rem}.t-heading[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:1.5rem;z-index:1;display:flex;margin:0;padding-bottom:1rem;font:var(--tui-font-heading-6);background:var(--tui-elevation-01)}.t-heading[_ngcontent-%COMP%]:last-child{margin-bottom:-.75rem}.t-heading[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}._stuck[_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]:after{opacity:1}.t-close[_ngcontent-%COMP%]{right:-.25rem;flex-shrink:0;margin-left:auto}.t-content[_ngcontent-%COMP%]{position:relative;isolation:isolate}.t-content[_ngcontent-%COMP%]:nth-child(3){margin-top:1rem}.t-footer[_ngcontent-%COMP%]{height:1rem;scroll-snap-stop:always;scroll-snap-align:end;background:var(--tui-elevation-01)}'],data:{animation:[o.X9R]},changeDetection:0}),(0,I.gn)([(0,$t.uX)((function(){return this.context.closeable}))],ne.prototype,"close",null),(0,I.gn)([i.UMq],ne.prototype,"getStops",null),(0,i.JN4)({label:"",stops:[],initial:0,offset:16,closeable:!0}),new J.Al(ne),n(77825);const ie={size:"fullscreen",closeable:!1};Object.assign({dismissible:!1},ie),Object.assign({dismissible:!0},ie),n(98240);var re=n(52934);let oe=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[i.Ah6,J.wq]]}),t})()},26922:(t,e,n)=>{n.d(e,{v:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiPreviewAction",""]],features:[r._Bn([(0,i.O0j)({appearance:"preview-action",shape:"rounded",size:"s"})])]}),t})()},3017:(t,e,n)=>{n.d(e,{m:()=>I});var i=n(74788),r=n(36331),o=n(42600),s=n(43232),a=n(26215),l=n(66682),u=n(9112),c=n(88002),d=n(39761),h=n(12057),p=n(11123),g=n(53874),m=n(43949),f=n(23764),v=n(18289),b=n(44099),y=n(26922),_=n(13938),C=n(10406),w=n(63790),x=n(51928),M=n(73320);function O(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 k(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 S(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,O,1,2,"button",7),i.YNc(15,k,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 P=["*",[["tui-preview-title"]],[["tui-preview-pagination"]],[["","tuiPreviewAction",""]]],T=["*","tui-preview-title","tui-preview-pagination","[tuiPreviewAction]"],A=.8,E=[0,0];let I=(()=>{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 a.X(this.minZoom),this.rotation$=new a.X(0),this.coordinates$=new a.X(E),this.transitioned$=(0,l.T)((0,o.mM1)(this.el.nativeElement).pipe((0,c.U)((({stage:t})=>t!==o.nc.Continues))),(0,o.mLY)(this.el.nativeElement,"touchmove",{passive:!0}).pipe((0,c.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"wheel",{passive:!0}).pipe((0,c.U)(o.IyD))),this.cursor$=(0,o.mM1)(this.el.nativeElement).pipe((0,c.U)((({stage:t})=>t===o.nc.Continues?"grabbing":"initial")),(0,d.O)("initial")),this.wrapperTransform$=(0,u.aj)([this.coordinates$.pipe((0,c.U)((([t,e])=>`${(0,o.O9r)(t)}, ${(0,o.O9r)(e)}`))),this.zoom$,this.rotation$]).pipe((0,c.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(E)}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*A||e>i*A,{clientHeight:s,clientWidth:a}=this.el.nativeElement;return r?(0,o.FGw)(Math.min(s*A/t,a*A/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(E),this.rotation$.next(0)}processZoom(t,e,n){const i=this.zoom$.value,r=(0,o.Kiv)(i+n,this.minZoom,2),s=this.getScaleCenter({clientX:t,clientY:e},this.coordinates$.value,this.zoom$.value),a=s[0]*i-s[0]*r,l=s[1]*i-s[1]*r;this.zoom$.next(r),this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+a,this.coordinates$.value[1]+l))}getGuardedCoordinates(t,e){const{offsetX:n,offsetY:i}=this.offsets;return[(0,o.Kiv)(t,-n,n),(0,o.Kiv)(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(r.v3),i.Y36(r.tp))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview"]],inputs:{zoomable:"zoomable",rotatable:"rotatable"},ngContentSelectors:T,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(P),i.YNc(0,S,16,16,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[h.O5,p.g,g.$,m.x,f.Vi,v.v,b.$,y.v,_.D,C.x,w.t,x.D,M.n],pipes:[h.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:[s.X9R]},changeDetection:0}),t})()},73320:(t,e,n)=>{n.d(e,{n:()=>k});var i=n(74788),r=n(36331),o=n(42600),s=n(66682),a=n(25917),l=n(46797),u=n(43190),c=n(88002),d=n(39761),h=n(12057),p=n(18289),g=n(26922),m=n(52707),f=n(13938),v=n(10406),b=n(63790),y=n(51928),_=n(20708),C=n(5657),w=n(24751),x=n(44099);function M(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 O(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,M,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)}}let k=(()=>{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,u.w)((()=>(0,s.T)((0,a.of)(!0),(0,l.H)(1e3).pipe((0,c.U)(o.IyD))))),(0,d.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,o.Kiv)(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(r.v3),i.Y36(r.xP))},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,O,11,17,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.zoomTexts$))},directives:[h.O5,p.v,g.v,m.Z,f.D,v.x,b.t,y.D,_.Z,C.i,w.eT,w.Fj,w.JJ,w.On,x.$],pipes:[h.Ov,h.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})()},83044:(t,e,n)=>{n.d(e,{iK:()=>p,E6:()=>m}),n(36331);var i=n(42600),r=n(6667);n(18289),n(26922),n(3017);var o=n(12057),s=n(24751),a=n(23764),l=n(43232),u=n(89570),c=n(74788);function d(t,e){if(1&t&&(c.ynx(0),c._uU(1),c.BQk()),2&t){const t=e.polymorpheusOutlet;c.xp6(1),c.hij(" ",t," ")}}let h=(()=>{class t{constructor(t){this.context=t}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(c.Y36(u.yf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-preview-dialog"]],hostBindings:function(t,e){1&t&&c.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,c.evT)},decls:2,vars:3,consts:[[1,"t-dialog-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(c.TgZ(0,"div",0),c.YNc(1,d,2,1,"ng-container",1),c.qZA()),2&t&&(c.Q6J("@tuiSlideInTop",void 0),c.xp6(1),c.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[u.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:[l.X9R]},changeDetection:0}),t})(),p=(()=>{class t extends i.d56{constructor(){super(...arguments),this.defaultOptions={},this.component=new u.Al(h)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.ɵprov=c.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({providers:[(0,i.QaK)(p)],imports:[[o.ez,u.wq,a.NI,l.fNO,s.u5,r.c2K,l.goS,i.NLi,i.k54,l.EIu,l.dSp,i.NZ5,i.RRg,g]]}),t})();n(73320)},36331:(t,e,n)=>{n.d(e,{v3:()=>a,tp:()=>o,xP:()=>s});var i=n(42600),r=n(19633);const o=(0,i.N1V)((0,r.vv)("previewTexts")),s=(0,i.N1V)((0,r.vv)("zoomTexts")),a=(0,i.JN4)({rotate:"tuiIconRotate",prev:"tuiIconArrowLeft",next:"tuiIconArrowRight",zoomIn:"tuiIconPlus",zoomOut:"tuiIconMinus",zoomReset:"tuiIconMinimize"})},44706:(t,e,n)=>{n.d(e,{M$:()=>b,QJ:()=>_,d5:()=>M,Xn:()=>f,m6:()=>O,F9:()=>k,Er:()=>A,N9:()=>P,GM:()=>I,FX:()=>v,wB:()=>y});var i=n(24751),r=(n(89476),n(24994)),o=n(60325),s=n(79765),a=n(66682),l=n(87874),u=n(39761),c=n(88002),d=n(45435),h=n(87519),p=n(43190),g=n(46782),m=n(74788);let f=(()=>{class t{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new m.vpe,this.focusVisibleChange=new m.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=m.lG2({type:t,hostVars:7,hostBindings:function(t,e){2&t&&(m.uIk("data-focused",e.pseudoFocus),m.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 v{}let b=(()=>{class t extends f{constructor(t,e,n){super(),this.ngControl=t,this.cdr=e,this.valueTransformer=n,this.refresh$=new s.xQ,this.onTouched=r.iD,this.onChange=r.iD,this.fallbackValue=this.getFallbackValue(),this.destroy$=new s.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 i.On&&void 0===this.previousInternalValue?t.viewModel:t.value;return this.fromControlValue(e)}ngOnInit(){this.refresh$.pipe((0,l.g)(0),(0,u.O)(null),(0,c.U)((()=>{var t;return null===(t=this.ngControl)||void 0===t?void 0:t.control})),(0,d.h)(o.Pc),(0,h.x)(),(0,p.w)((t=>(0,a.T)(t.valueChanges,t.statusChanges))),(0,g.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 i.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)(m.Y36(i.a5,8),m.Y36(m.sBO),m.Y36(v,8))},t.ɵdir=m.lG2({type:t,hostVars:4,hostBindings:function(t,e){2&t&&m.ekj("_readonly",e.readOnly)("_invalid",e.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[m.qOj]}),t})();function y(t){return{provide:b,useExisting:t}}let _=(()=>{class t{constructor(){this.change$=new s.xQ}ngOnChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=m.lG2({type:t,features:[m.TTD]}),t})();n(71241);var C=n(66614),w=n(29856),x=n(26215);let M=(()=>{class t extends w.y{constructor(t){super((t=>this.dialogs$.subscribe(t))),this.idService=t,this.dialogs$=new x.X([])}open(t,e={}){return new w.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)(m.LFG(C.ll))},t.ɵprov=m.Yz7({token:t,factory:t.ɵfac}),t})(),O=(()=>{class t extends b{clear(){this.value=[]}getFallbackValue(){return[]}}return t.ɵfac=function(){let e;return function(n){return(e||(e=m.n5z(t)))(n||t)}}(),t.ɵdir=m.lG2({type:t,features:[m.qOj]}),t})(),k=(()=>{class t extends b{getFallbackValue(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=m.n5z(t)))(n||t)}}(),t.ɵdir=m.lG2({type:t,features:[m.qOj]}),t})();var S=n(21543);let P=(()=>{class t{get safeHost(){if(!this.host)throw new S.ZB;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroyed||t.destroy()}addTemplate(t,e){return this.safeHost.addTemplateChild(t,e)}removeTemplate(t){t.destroyed||t.destroy()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=m.Yz7({token:t,factory:t.ɵfac}),t})();const T=["viewContainer"];let 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),i=n.get(m._Vd).resolveComponentFactory(e.component),r=[{provide:t,useValue:this}],o=m.zs3.create({parent:n,providers:r}),s=this.vcr.createComponent(i,void 0,o);return s.changeDetectorRef.detectChanges(),s}addTemplateChild(t,e){return this.vcr.createEmbeddedView(t,e)}}return t.ɵfac=function(e){return new(e||t)(m.Y36(m.gxx),m.Y36(m.SBq),m.Y36(P))},t.ɵdir=m.lG2({type:t,viewQuery:function(t,e){if(1&t&&m.Gf(T,5,m.s_b),2&t){let t;m.iGM(t=m.CRH())&&(e.vcr=t.first)}}}),t})();var E=n(12057);let I=(()=>{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)(m.Y36(E.K0))},t.ɵdir=m.lG2({type:t}),t})()},89476:(t,e,n)=>{n.d(e,{T:()=>o,z:()=>r});var i=n(24994);const r={enabled:!1,get assert(){return i.iD}};class o{constructor(t,e={}){this.message=t,this.context=e}}},67697:(t,e,n)=>{function i(t){return null!=t&&"false"!=`${t}`}n.d(e,{L:()=>i})},29529:(t,e,n)=>{n.d(e,{f:()=>g});var i=n(74788),r=n(24994),o=n(66614),s=n(27203),a=n(89570),l=n(9112),u=n(46782),c=n(12057),d=n(2579);function h(t,e){if(1&t&&(i.GkF(0,3),i.ALo(1,"tuiMapper")),2&t){const t=e.$implicit,n=i.oxw(2);i.Q6J("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",i.xi3(1,2,t,n.mapper))}}function p(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,h,2,5,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0),i.xp6(1),i.Q6J("ngForOf",t)}}let g=(()=>{class t{constructor(t,e,n,r){this.allAlerts=t,this.injector=e,this.destroy$=n,this.cdr=r,this.alerts=[],this.trackBy=t=>t,this.mapper=t=>i.zs3.create({providers:[{provide:a.yf,useValue:t}],parent:this.injector})}ngOnInit(){(0,l.aj)(this.allAlerts).pipe((0,u.R)(this.destroy$)).subscribe((t=>{this.alerts=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.bS),i.Y36(i.gxx),i.Y36(o.a3,2),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-alert-host"]],features:[i._Bn([o.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&&i.YNc(0,p,2,2,"div",0),2&t&&i.Q6J("ngForOf",e.alerts)("ngForTrackBy",e.trackBy)},directives:[c.sg,c.$G],pipes:[d.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:[r.Kx]}}),t})()},68646:(t,e,n)=>{n.d(e,{T:()=>S});var i=n(56083),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(66614),u=n(27203),c=n(60325),d=n(25917),h=n(9112),p=n(88002),g=n(46782),m=n(42486),f=n(94084),v=n(75984),b=n(19869),y=n(89570),_=n(36378);function C(t,e){1&t&&o.GkF(0)}function w(t,e){1&t&&o._UZ(0,"tui-scroll-controls",5)}function x(t,e){if(1&t&&(o.TgZ(0,"section",2),o.YNc(1,C,1,0,"ng-container",3),o.YNc(2,w,1,0,"tui-scroll-controls",4),o.qZA()),2&t){const t=e.$implicit,n=o.oxw();o.Q6J("@host",void 0),o.uIk("aria-labelledby",t.id),o.xp6(1),o.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t),o.xp6(1),o.Q6J("ngIf",!n.isMobile)}}function M(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.NdJ("transitionend",(function(e){const n=o.CHM(t).tuiLet,i=o.oxw();return i.onDialog(e,!!i.dialogs.length,!!n)}))("popstate",(function(){const e=o.CHM(t).tuiLet,n=o.oxw();return n.closeLast(n.dialogs,!!e)}),!1,o.Jf7),o.qZA()}if(2&t){const t=o.oxw();o.ekj("t-overlay_visible",t.dialogs.length)}}const O={label:"ignoreMe"},k=(0,c.JN)((0,d.of)(!1));let S=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.isMobile=t,this.isDialogClosesOnBack$=e,this.dialogsByType=n,this.historyRef=i,this.titleService=r,this.destroy$=o,this.cdr=s,this.doc=a,this.dialogs=[]}ngOnInit(){(0,h.aj)(this.dialogsByType).pipe((0,p.U)((t=>[].concat(...t).sort(((t,e)=>t.createdAt-e.createdAt)))),(0,g.R)(this.destroy$)).subscribe((t=>{var e;this.dialogs=t,this.cdr.markForCheck(),null===(e=this.doc.defaultView)||void 0===e||e.document.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(O,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:t},e,n){var i;n&&"letter-spacing"===t&&(e?this.historyRef.pushState(O,this.titleService.getTitle()):(null==(i=this.historyRef.state)?void 0:i.label)===O.label&&this.historyRef.back())}}return t.ɵfac=function(e){return new(e||t)(o.Y36(u.fL),o.Y36(k),o.Y36(u.qY),o.Y36(a.UA),o.Y36(s.Dx),o.Y36(l.a3,2),o.Y36(o.sBO),o.Y36(r.K0))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dialog-host"]],features:[o._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"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(t,e){1&t&&(o.YNc(0,x,3,5,"section",0),o.YNc(1,M,1,2,"div",1),o.ALo(2,"async")),2&t&&(o.Q6J("ngForOf",e.dialogs),o.xp6(1),o.Q6J("tuiLet",o.lcZ(2,2,e.isDialogClosesOnBack$)))},directives:[r.sg,m.L,f.y,v.W,b.e,y.Li,r.O5,_.t],pipes:[r.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;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.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, .3s),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}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[(0,i.X$)("host",[(0,i.eR)(":enter",[(0,i.oB)({overflow:"clip"}),(0,i.IO)(":scope > *",[(0,i.pV)()],{optional:!0})]),(0,i.eR)(":leave",[(0,i.oB)({overflow:"clip"}),(0,i.IO)(":scope > *",[(0,i.pV)()],{optional:!0})])])]}}),t})()},73186:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(44706),r=n(81406),o=n(74788);const s=["*"];let a=(()=>{class t extends i.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dropdown-host"]],features:[o._Bn([{provide:i.N9,useExisting:r.a},{provide:i.Er,useExisting:t}]),o.qOj],ngContentSelectors:s,decls:3,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&(o.F$t(),o.Hsn(0),o.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})()},81406:(t,e,n)=>{n.d(e,{a:()=>o});var i=n(44706),r=n(74788);let o=(()=>{class t extends i.N9{}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,providedIn:"root"}),t})()},36378:(t,e,n)=>{n.d(e,{t:()=>f});var i=n(74788),r=n(62579),o=n(71241),s=n(27203),a=n(43219),l=n(88002),u=n(39761),c=n(87519),d=n(12057),h=n(65321);function p(t,e){if(1&t&&(i.TgZ(0,"div",3),i._UZ(1,"div",4),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-horizontal",t[1])}}function g(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"div",6),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-vertical",t[0])}}function m(t,e){if(1&t&&(i.ynx(0),i.YNc(1,p,2,2,"div",1),i.YNc(2,g,2,2,"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 f=(()=>{class t{constructor(t,e,n){this.zone=t,this.scrollRef=e,this.animationFrame$=n,this.refresh$=this.animationFrame$.pipe((0,a.p)(300),(0,l.U)((()=>this.scrollbars)),(0,u.O)([!1,!1]),(0,c.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(i.R0b),i.Y36(s.$_),i.Y36(r.L1))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,e){1&t&&(i.YNc(0,m,3,2,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.refresh$))},directives:[d.O5,h.N],pipes:[d.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;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.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%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.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}"],changeDetection:0}),t})()},19869:(t,e,n)=>{n.d(e,{e:()=>o});var i=n(74788),r=n(27203);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollRef",""]],features:[i._Bn([{provide:r.$_,useExisting:i.SBq}])]}),t})()},65321:(t,e,n)=>{n.d(e,{N:()=>m});var i=n(12057),r=n(74788),o=n(62579),s=n(24994),a=n(71241),l=n(66614),u=n(27203),c=n(66682),d=n(88002),h=n(43190),p=n(46782),g=n(43219);let m=(()=>{class t{constructor(t,e,n,i,r,o){this.container=i,this.doc=r,this.el=o,this.tuiScrollbar="vertical";const{nativeElement:l}=this.el,u=(0,a.mL)(l,"mousedown"),m=(0,a.mL)(this.doc,"mousemove"),f=(0,a.mL)(this.doc,"mouseup"),v=(0,a.mL)(this.wrapper,"mousedown");(0,c.T)(v.pipe((0,d.U)((t=>this.getScrolled(t,.5,.5)))),u.pipe((0,h.w)((t=>{const e=l.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,p.R)(f))})))).pipe((0,a.fL)(t),(0,p.R)(e)).subscribe((([t,e])=>{"vertical"===this.tuiScrollbar?this.element.scrollTop=t:this.element.scrollLeft=e})),(0,c.T)(n.pipe((0,g.p)(s.Yg)),(0,a.pt)(this.element)).pipe((0,a.fL)(t),(0,p.R)(e)).subscribe((()=>{"vertical"===this.tuiScrollbar?(l.style.top=100*this.thumb+"%",l.style.height=100*this.view+"%"):(l.style.left=100*this.thumb+"%",l.style.width=100*this.view+"%")}))}get wrapper(){return this.el.nativeElement.parentElement}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:u}=this.wrapper.getBoundingClientRect();return[(this.element.scrollHeight-u)*((t-s-r*n)/(u-r)),(this.element.scrollWidth-l)*((e-a-o*i)/(l-o))]}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(l.a3,2),r.Y36(o.L1),r.Y36(u.$_),r.Y36(i.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[r._Bn([l.a3])]}),t})()},24994:(t,e,n)=>{n.d(e,{Iy:()=>i,Ye:()=>r,F:()=>_,fv:()=>C,em:()=>w,f$:()=>y,kU:()=>x,tU:()=>M,FS:()=>o,LZ:()=>u,Jy:()=>d,iD:()=>c,Mm:()=>l,Yg:()=>v,bg:()=>g,yZ:()=>h,Kx:()=>f,zy:()=>p,Ml:()=>O,Lw:()=>b});const i=()=>!1,r=()=>!0,o=79;var s=n(74788);const a={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},l=new s.n_E,u=[],c=()=>{},d=Object.assign(Object.assign({},a),{toJSON:()=>a}),h=t=>String(t),p=(t,e,n=h)=>n(t).toLowerCase()===e.toLowerCase(),g=(t,e)=>t===e||function(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}(t,e);var m=n(56083);const f=(0,m.X$)("tuiParentAnimation",[(0,m.eR)(":leave",[(0,m.IO)(":scope > *",[(0,m.pV)()],{optional:!0})])]),v=((0,m.X$)("tuiParentStop",[(0,m.eR)(":enter",[])]),1e3/15),b=t=>"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,y=" ",_="–",C="-",w="−",x="+",M="​",O="3.70.0"},31818:(t,e,n)=>{n.d(e,{UM:()=>o}),n(89476);var i=n(21543);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 u=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=u.apply(this,i),n=!0),t);return Object.defineProperty(this,l,{configurable:!0,value:i}),i}}}},55788:(t,e,n)=>{n.d(e,{e:()=>p});var i=n(97582),r=n(74788),o=n(31818),s=n(71241),a=n(27203),l=n(60325),u=n(88002),c=n(39761),d=n(87519),h=n(13653);class p{constructor(t,e,n,i){var r;this.active$=t,this.zone=e,this.el=n,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,u.U)((t=>!!t&&this.contains(t))),(0,c.O)(!1),(0,d.x)(),(0,h.T)(1),(0,s.Yr)(this.zone)),null===(r=this.directParentActiveZone)||void 0===r||r.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){var t,e;null===(t=this.directParentActiveZone)||void 0===t||t.removeSubActiveZone(this),null===(e=this.tuiActiveZoneParent)||void 0===e||e.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){var e;null===(e=this.tuiActiveZoneParent)||void 0===e||e.removeSubActiveZone(this),null==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))}}p.ɵfac=function(t){return new(t||p)(r.Y36(a.wk),r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(p,12))},p.ɵdir=r.lG2({type:p,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],p.prototype,"setZone",null)},47787:(t,e,n)=>{n.d(e,{e:()=>i.e,A:()=>o});var i=n(55788),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},30528:(t,e,n)=>{n.d(e,{k:()=>u});var i=n(67697),r=n(66614),o=n(46797),s=n(46782),a=n(27998),l=n(74788);let u=(()=>{class t{constructor(t,e,n){this.handler=t,this.options=e,this.destroy$=n,this.autoFocus=!0}ngAfterViewInit(){(0,i.L)(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then((()=>this.handler.setFocus())):(0,o.H)(this.options.delay).pipe((0,s.R)(this.destroy$)).subscribe((()=>this.handler.setFocus()))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(a.hf),l.Y36(a.U5),l.Y36(r.a3,2))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[l._Bn(a.PE)]}),t})()},27998:(t,e,n)=>{n.d(e,{U5:()=>d,f$:()=>h,hf:()=>p,PE:()=>g});var i=n(74788),r=n(62579),o=n(66614),s=n(27203),a=n(50664),l=n(49289),u=n(8635);const c={delay:NaN},d=(0,a.JN)(c);function h(t){return(0,a.vK)(d,t,c)}const p=new i.OlP("[TUI_AUTOFOCUS_HANDLER]"),g=[{provide:p,useFactory:(t,e,n,i,r,o,s)=>s?new u.E(t,e,i,r,o):new l.B(t,e,n),deps:[[new i.FiY,new i.PiD,s.KZ],i.SBq,r.L1,i.Qsj,i.R0b,r.m9,s.FA]},o.a3]},93291:(t,e,n)=>{n.d(e,{K:()=>r});var i=n(74788);let r=(()=>{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})()},49289:(t,e,n)=>{n.d(e,{B:()=>f});var i=n(74788),r=n(62579),o=n(24994),s=n(27203),a=n(98085),l=n(46797),u=n(77393);class c{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new d(t,this.predicate))}}class d extends u.L{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}var h=n(43219),p=n(88002),g=n(15257),m=n(93291);let f=(()=>{class t extends m.K{constructor(t,e,n){super(t,e),this.animationFrame$=n}setFocus(){var t;this.isTextFieldElement?(0,a.S3)((0,l.H)(1e3),this.animationFrame$.pipe((0,h.p)(o.Yg),(0,p.U)((()=>this.element.closest(".ng-animating"))),(t=Boolean,e=>e.lift(new c(t))),(0,g.q)(1))).subscribe((()=>this.element.focus({preventScroll:!0}))):this.element.focus({preventScroll:!0})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.KZ,10),i.Y36(i.SBq),i.Y36(r.L1))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})()},8635:(t,e,n)=>{n.d(e,{E:()=>u});var i=n(74788),r=n(62579),o=n(27203),s=n(60325),a=n(93291);const l=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"];let u=(()=>{class t extends a.K{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({preventScroll:!0})}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,s.O9)(e.height),t.style.width=(0,s.O9)(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,s.O9)(16),t.style.top=(0,s.O9)(e.top),t.style.left=(0,s.O9)(e.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach((t=>{t.style.setProperty("overflow","auto"),t.style.setProperty("height","100%")}))}patchFakeInputFromFocusableElement(t){l.forEach((e=>{const n=this.element.getAttribute(e);(0,s.Pc)(n)&&t.setAttribute(e,n)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.KZ,10),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(r.m9))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})()},13080:(t,e,n)=>{n.d(e,{G:()=>s});var i=n(74788),r=n(66614);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],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})(),s=(()=>{class t{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new i.vpe,t.addComponent(o)}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)(i.Y36(r.gH))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("transitionstart",(function(t){return e.transitionStartHandler(t)})),2&t&&i.ekj("_autofilled",e.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})()},10035:(t,e,n)=>{n.d(e,{t:()=>r});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})()},24850:(t,e,n)=>{n.d(e,{Z:()=>c});var i=n(12057),r=n(74788),o=n(71241),s=n(60325),a=n(22759),l=n(88002),u=n(45435);let c=(()=>{class t{constructor(t,e,n){this.zone=t,this.doc=e,this.el=n,this.tuiClickOutside=(0,a.R)(this.doc,"mouseup").pipe((0,l.U)(s.mA),(0,u.h)((t=>this.isOutside(t))),(0,o.Yr)(this.zone))}isOutside(t){return t===this.el.nativeElement||!(0,s.PP)(this.el.nativeElement,t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(i.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiClickOutside",""]],outputs:{tuiClickOutside:"tuiClickOutside"}}),t})()},48992:(t,e,n)=>{n.d(e,{_:()=>g});var i=n(74788),r=n(71241),o=n(66614),s=n(50664),a=n(66682),l=n(88002),u=n(45435),c=n(43190),d=n(39761),h=n(87519),p=n(46782);let g=(()=>{class t{constructor({nativeElement:t},e){this.tuiDroppableDropped=(0,r.mL)(t,"drop").pipe((0,r.mp)(),(0,l.U)((t=>t.dataTransfer)),(0,u.h)(s.Pc)),this.tuiDroppableDragOverChange=(0,r.mL)(t,"dragenter").pipe((0,c.w)((({target:e,dataTransfer:n})=>(0,a.T)((0,r.mL)(t,"dragleave").pipe((0,u.h)((t=>t.target===e))),(0,r.mL)(t,"drop")).pipe((0,l.U)((()=>null)),(0,d.O)(n)))),(0,h.x)(((t,e)=>!!t&&!!e||!t&&!e))),(0,r.mL)(t,"dragover").pipe((0,r.mp)(),(0,p.R)(e)).subscribe()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDroppableDropped",""],["","tuiDroppableDragOverChange",""]],outputs:{tuiDroppableDropped:"tuiDroppableDropped",tuiDroppableDragOverChange:"tuiDroppableDragOverChange"},features:[i._Bn([o.a3])]}),t})()},44766:(t,e,n)=>{n.d(e,{U:()=>r});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})()},94084:(t,e,n)=>{n.d(e,{y:()=>a});var i=n(12057),r=n(74788),o=n(14393),s=n(68918);let a=(()=>{class t{constructor(t,e,n){this.doc=t,this.el=e,this.renderer=n,this.activeElement=(0,s.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,o.PP)(e,t))return;const n=(0,s.BW)({initial:e,root:e});n&&n.focus()}ngOnDestroy(){(0,s.hp)(this.doc),Promise.resolve().then((()=>{(0,o.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})()},35928:(t,e,n)=>{n.d(e,{q:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiFocusVisibleChange=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.ku))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[r._Bn([i.a3,i.ku])]}),t})()},63973:(t,e,n)=>{n.d(e,{t:()=>r});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})()},28347:(t,e,n)=>{n.d(e,{U:()=>d});var i=n(74788),r=n(71241),o=n(68918),s=n(66682),a=n(88002),l=n(39761),u=n(87519),c=n(13653);let d=(()=>{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,u.x)(),(0,c.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})()},11108:(t,e,n)=>{n.d(e,{c:()=>o});var i=n(17035),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiHoveredChange=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.g))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[r._Bn([i.g])]}),t})()},17035:(t,e,n)=>{n.d(e,{g:()=>p});var i=n(74788),r=n(24994),o=n(71241),s=n(60325),a=n(29856),l=n(66682),u=n(88002),c=n(45435),d=n(87519);function h({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,u.U)(r.Ye)),(0,o.mL)(this.el.nativeElement,"mouseleave").pipe((0,u.U)(r.Iy)),(0,o.mL)(this.el.nativeElement,"mouseout").pipe((0,c.h)(h),(0,u.U)(r.Iy))).pipe((0,d.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})()},32489:(t,e,n)=>{n.d(e,{w:()=>r});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})()},42486:(t,e,n)=>{n.d(e,{L:()=>o});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})()},41578:(t,e,n)=>{n.d(e,{z:()=>u});var i=n(47787),r=n(71241),o=n(66614),s=n(79765),a=n(88002),l=n(74788);let u=(()=>{class t{constructor(t,e){this.enabled$=new s.xQ;const n=e.pipe((0,a.U)((e=>!!e&&(!t||!e.length||e.every((e=>!t.contains(e)))))));this.tuiObscured=this.enabled$.pipe((0,r.Xd)((()=>n)))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.e,8),l.Y36(o.AQ,2))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[l._Bn([o.AQ,o.b0,o.a3])]}),t})()},75984:(t,e,n)=>{n.d(e,{W:()=>d});var i=n(74788),r=n(71241),o=n(66614),s=n(14393),a=n(45435),l=n(46782),u=n(43190),c=n(68307);let d=(()=>{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,u.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,c.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})()},11123:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiPan=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.l))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiPan",""]],outputs:{tuiPan:"tuiPan"},features:[r._Bn([i.l])]}),t})()},9092:(t,e,n)=>{n.d(e,{n:()=>s});var i=n(74788),r=n(71241),o=n(27203);let s=(()=>{class t{constructor(t,e){this.el=t,this.takeOnlyTrustedEvents=e,this.tuiPressedChange=(0,r.pn)(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.wx))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})()},30251:(t,e,n)=>{n.d(e,{A:()=>l});var i=n(74788),r=n(71241),o=n(66614),s=n(22759),a=n(46782);let l=(()=>{class t{constructor(t,e,n){this.el=t,this.zone=e,this.destroy$=n,this.eventName=""}ngOnInit(){(0,s.R)(this.el.nativeElement,this.eventName,{passive:!1}).pipe((0,r.fL)(this.zone),(0,r.mp)(),(0,a.R)(this.destroy$)).subscribe()}}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:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[i._Bn([o.a3])]}),t})()},46648:(t,e,n)=>{n.d(e,{X:()=>s});var i=n(74788),r=n(48843);class o{constructor(t){this.$implicit=t}}let s=(()=>{class t{constructor(t,e){this.viewContainer=t,this.templateRef=e}set tuiRepeatTimesOf(t){const e=Math.floor((0,r.Ki)(t,0,65536)),{length:n}=this.viewContainer;t{n.d(e,{$:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiResize=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.tl))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiResize",""]],outputs:{tuiResize:"tuiResize"},features:[r._Bn([i.a3,i.tl])]}),t})()},76995:(t,e,n)=>{n.d(e,{U:()=>o});var i=n(44766),r=n(74788);let o=(()=>{class t extends i.U{}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiResizeable",""]],features:[r.qOj]}),t})()},51703:(t,e,n)=>{n.d(e,{L:()=>s});var i=n(74788),r=n(36128),o=n(76995);let s=(()=>{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,r.O)(i[0])),this.tuiResizer[1]&&(n.height=(0,r.O)(i[1])),this.tuiSizeChange.emit(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.U))},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})()},69919:(t,e,n)=>{n.d(e,{W:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiSwipe=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.$D))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiSwipe",""]],outputs:{tuiSwipe:"tuiSwipe"},features:[r._Bn([i.$D])]}),t})()},66161:(t,e,n)=>{n.d(e,{W:()=>s});var i=n(74788),r=n(24751),o=n(24994);let s=(()=>{class t{constructor(){this.onChange=o.iD,this.tuiValidator=r.kI.nullValidator}validate(t){return this.tuiValidator(t)}registerOnValidatorChange(t){this.onChange=t}ngOnChanges(){this.onChange()}ngOnDestroy(){this.tuiValidator=r.kI.nullValidator,this.onChange()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiValidator",""]],inputs:{tuiValidator:"tuiValidator"},features:[i._Bn([{provide:r.Cf,useExisting:(0,i.Gpc)((()=>t)),multi:!0}]),i.TTD]}),t})()},43949:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiZoom=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.bW))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiZoom",""]],hostVars:2,hostBindings:function(t,e){2&t&&r.Udp("touch-action","none")},outputs:{tuiZoom:"tuiZoom"},features:[r._Bn([i.bW])]}),t})()},21543:(t,e,n)=>{n.d(e,{I4:()=>i,AM:()=>r,JY:()=>o,ZB:()=>s,aq:()=>a,jw:()=>l,pb:()=>u,j2:()=>c}),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 u extends Error{constructor(){super("")}}class c extends Error{constructor(){super("")}}Error,Error},42600:(t,e,n)=>{n.d(e,{IyD:()=>U.Iy,YeN:()=>U.Ye,M$T:()=>i.M$,QJb:()=>i.QJ,d56:()=>i.d5,XnQ:()=>i.Xn,m6v:()=>i.m6,F9l:()=>i.F9,ErH:()=>i.Er,N9Y:()=>i.N9,GM_:()=>i.GM,FXc:()=>i.FX,fv1:()=>U.fv,emD:()=>U.em,f$6:()=>U.f$,kUW:()=>U.kU,tUj:()=>U.tU,FSK:()=>U.FS,ekI:()=>tt,FZu:()=>et,NAy:()=>q,LZ8:()=>U.LZ,Jy9:()=>U.Jy,iDf:()=>U.iD,Mmc:()=>U.Mm,NRs:()=>J,mHA:()=>Q,I28:()=>v.I2,P_B:()=>nt,q_$:()=>it,bgn:()=>U.bg,yZp:()=>U.yZ,qYI:()=>v.qY,nNo:()=>gt,KZI:()=>v.KZ,tSu:()=>v.tS,XGT:()=>v.XG,oDT:()=>v.oD,FAH:()=>v.FA,fLQ:()=>v.fL,SgE:()=>v.Sg,jFN:()=>v.jF,OyN:()=>mt,KxC:()=>U.Kx,i0M:()=>v.i0,$__:()=>v.$_,zyr:()=>U.zy,CyX:()=>v.Cy,Mle:()=>U.Ml,fMG:()=>v.fM,eJF:()=>g.e,Ah6:()=>g.A,F_5:()=>h,Q7V:()=>m,gIU:()=>b,S1R:()=>y,TU1:()=>dt,Lrk:()=>ot,VRe:()=>pt,a31:()=>bt.a3,FiZ:()=>$,gHG:()=>bt.gH,NLi:()=>C,nc:()=>_.nc,mLu:()=>F,ae2:()=>N.a,U1Q:()=>w,pLW:()=>l,ceN:()=>M,kuj:()=>bt.ku,udY:()=>O,Fqk:()=>k,VE3:()=>S,gsq:()=>P.g,llV:()=>bt.ll,wt3:()=>T.w,HOV:()=>A,WDk:()=>E,I1h:()=>c,qld:()=>ct,dtp:()=>ht,lTc:()=>I,eoI:()=>D,NZ5:()=>L,fzP:()=>z,IhY:()=>R,I2i:()=>d,k54:()=>B,tll:()=>bt.tl,U_3:()=>H.U,gjW:()=>V,eI3:()=>p,FYW:()=>bt.FY,FrL:()=>bt.Fr,$DV:()=>bt.$D,qDo:()=>ft,pbU:()=>at.pb,T8v:()=>r.T,op3:()=>Y,F4U:()=>ut,RRg:()=>j,YlY:()=>rt,LwS:()=>U.Lw,WX:()=>u.WX,Hh6:()=>u.Hh,jp1:()=>u.jp,XHb:()=>v.XH,wBO:()=>i.wB,QaK:()=>v.Q,FTc:()=>v.FT,zUu:()=>r.z,f$T:()=>f.f$,hpv:()=>u.hp,Kiv:()=>u.Ki,xTK:()=>u.xT,LzW:()=>o.L,PPV:()=>u.PP,EKY:()=>_.EK,jHx:()=>u.jH,JN4:()=>u.JN,N1V:()=>u.N1,hVF:()=>G,A2j:()=>u.A2,mM1:()=>_.mM,mAU:()=>u.mA,Nnc:()=>u.Nn,BWF:()=>u.BW,Wfd:()=>u.Wf,PU1:()=>u.PU,YXZ:()=>u.YX,ie4:()=>u.ie,gDA:()=>u.gD,ROF:()=>u.RO,qZG:()=>u.qZ,Xdy:()=>_.Xd,wfT:()=>u.wf,xz3:()=>u.xz,veZ:()=>u.ve,Hnx:()=>u.Hn,Mv9:()=>u.Mv,oKA:()=>u.oK,dWV:()=>u.dW,LsU:()=>u.Ls,V8W:()=>u.V8,zb4:()=>u.zb,dTd:()=>u.dT,_hh:()=>u._h,dtH:()=>u.dt,fwO:()=>_.fw,PcC:()=>u.Pc,Exm:()=>u.Ex,Ajw:()=>u.Aj,wqZ:()=>u.wq,qYx:()=>u.qY,lj0:()=>u.lj,VRr:()=>u.VR,J$k:()=>u.J$,yj2:()=>u.yj,MpC:()=>u.Mp,dDE:()=>u.dD,mp3:()=>_.mp,vKU:()=>u.vK,UMq:()=>vt.UM,O9r:()=>u.O9,Mz4:()=>u.Mz,llR:()=>_.ll,UPZ:()=>u.UP,WSX:()=>u.WS,bDt:()=>u.bD,FGw:()=>u.FG,h0X:()=>u.h0,Pg4:()=>u.Pg,NJB:()=>u.NJ,HWE:()=>u.HW,oYk:()=>u.oY,mLY:()=>_.mL,pfE:()=>u.pf,NAr:()=>_.NA,Yry:()=>_.Yr,fL9:()=>_.fL,AoQ:()=>_.Ao});var i=n(44706),r=n(89476),o=n(67697),s=(n(29529),n(12057)),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var u=n(60325);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez,c]]}),t})();n(68646),n(36378);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez]]}),t})();n(19869),n(65321);var g=n(47787);n(30528);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var f=n(27998),v=(n(49289),n(8635),n(27203));n(13080);let b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(24850);var _=n(71241);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(48992);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(94084);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(35928);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(28347);let k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(11108);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var P=n(17035),T=n(32489);let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),E=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(41578);let I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(75984);let D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(11123);let L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(73186);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var N=n(81406);n(9092);let z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(30251),n(46648);let R=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(53874);let B=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var H=n(76995);n(51703);let V=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(69919),n(66161);let Y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(43949);let j=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var Z=n(89570);let $=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez,Z.wq,D,x,E,p]]}),t})();var U=n(24994);function G(t,e,n){return n&&nt?e:t}const q=7,J=12,Q=`${U.f$}${U.F}${U.f$}`,W=6e4,K=36e5,X=864e5,tt=10,et=2*tt+Q.length,nt=(0,u.JN)("DMY"),it=(0,u.JN)("."),rt=(t,e)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,e);var ot=(()=>(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"}(ot||(ot={})),ot))(),st=(()=>(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"}(st||(st={})),st))(),at=n(21543),lt=n(48843);class ut{constructor(t){this.year=t}static isValidYear(t){return Number.isInteger(t)&&(0,lt.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,lt.G1)(t,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return ut.isLeapYear(this.year)}get absoluteLeapYears(){return ut.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 ut(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 ct extends ut{constructor(t,e){super(t),this.month=e}static isValidMonth(t,e){return ut.isValidYear(t)&&ct.isValidMonthPart(e)}static getMonthDaysCount(t,e){switch(t){case st.February:return e?29:28;case st.April:case st.June:case st.September:case st.November:return 30;default:return 31}}static currentLocal(){const t=new Date;return new ct(t.getFullYear(),t.getMonth())}static currentUtc(){const t=new Date;return new ct(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,lt.G1)(t,0,11)}static isValidMonthPart(t){return Number.isInteger(t)&&(0,lt.wf)(t,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return ct.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)*J+this.month+e;return new ct(Math.floor(n/J),n%J)}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 dt extends ct{constructor(t,e,n){super(t,e),this.day=n}static fromLocalNativeDate(t){return new dt(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new dt(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(t,e,n){return ct.isValidMonth(t,e)&&Number.isInteger(n)&&(0,lt.wf)(n,1,ct.getMonthDaysCount(e,ut.isLeapYear(t))+1)}static currentLocal(){const t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate();return new dt(e,n,i)}static currentUtc(){const t=new Date,e=t.getUTCFullYear(),n=t.getUTCMonth(),i=t.getUTCDate();return new dt(e,n,i)}static normalizeOf(t,e,n){const i=ut.normalizeYearPart(t),r=ct.normalizeMonthPart(e),o=dt.normalizeDayPart(n,r,i);return new dt(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 dt.normalizeOf(r,i,n)}static jsonParse(t){const{day:e,month:n,year:i}=this.parseRawDateString(t,"YMD");if(!ut.isValidYear(i))throw new at.JY(i);if(!ct.isValidMonth(i,n))throw new at.AM(n);if(!Number.isInteger(e)||!(0,lt.wf)(e,1,ct.getMonthDaysCount(n,ut.isLeapYear(i))+1))throw new at.I4(e);return new dt(i,n,e)}static normalizeDayPart(t,e,n){const i=ct.getMonthDaysCount(e,ut.isLeapYear(n));return(0,lt.G1)(t,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const t=this.dayOfWeek(!1);return t===ot.Saturday||t===ot.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)*J+this.month+e;let r=Math.floor(i/J),o=i%J,s=Math.min(this.day,ct.getMonthDaysCount(o,ut.isLeapYear(r)))+n;for(;s>ct.getMonthDaysCount(o,ut.isLeapYear(r));)s-=ct.getMonthDaysCount(o,ut.isLeapYear(r)),o===st.December?(r++,o=st.January):o++;for(;s<1;)o===st.January?(r--,o=st.December):o--,s+=ct.getMonthDaysCount(o,ut.isLeapYear(r));return new dt(r,o,s)}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))}}class ht{constructor(t,e){this.from=t,this.to=e}static sort(t,e){return t.monthSameOrBefore(e)?new ht(t,e):new ht(e,t)}get isSingleMonth(){return this.from.monthSame(this.to)}monthSame(t){return this.from.monthSame(t.from)&&this.to.monthSame(t.to)}toString(){return`${this.from}${Q}${this.to}`}}class pt extends ht{constructor(t,e){super(t,e),this.from=t,this.to=e}static sort(t,e){return t.daySameOrBefore(e)?new pt(t,e):new pt(e,t)}static normalizeParse(t,e="DMY"){const n=dt.normalizeParse(t.slice(0,tt),e);return t.length0,n=e||"HH:MM:SS"===t||!t&&this.seconds>0;return`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}`+(n?`:${this.formatTime(this.seconds)}`:"")+(e?`.${this.formatTime(this.ms,3)}`:"")}valueOf(){return this.toAbsoluteMilliseconds()}[Symbol.toPrimitive](t){return Date.prototype[Symbol.toPrimitive].call(this,t)}toAbsoluteMilliseconds(){return this.hours*K+this.minutes*W+1e3*this.seconds+this.ms}formatTime(t,e=2){return String(t).padStart(e,"0")}}var vt=n(31818),bt=n(66614)},71241:(t,e,n)=>{n.d(e,{nc:()=>b,EK:()=>s,mM:()=>_,ix:()=>z,Xd:()=>B,fw:()=>H,pn:()=>Y,mp:()=>Z,ll:()=>V,pt:()=>$,mL:()=>f,NA:()=>U,Yr:()=>J,fL:()=>q,Ao:()=>G});var i=n(21543),r=n(29856),o=n(39761);function s(t){return new r.y((e=>{if(!t.valueChanges)throw new i.j2;return t.valueChanges.pipe((0,o.O)(t.value)).subscribe(e)}))}var a=n(50664),l=n(22416),u=n(66682),c=n(15257),d=n(88002),h=n(86804),p=n(70409),g=n(79196),m=n(22759);function f(t,e,n={}){return(0,m.R)(t,e,n)}function v(t){return(0,u.T)(f(t,"mouseup"),f(t,"dragend"))}var b=(()=>(function(t){t[t.Start=0]="Start",t[t.Continues=1]="Continues",t[t.End=2]="End"}(b||(b={})),b))();class y{constructor(t,e){this.stage=t,this.event=e}}function _(t){const{ownerDocument:e}=t;if(!e)throw new i.aq;return(0,l.z)(f(t,"mousedown").pipe((0,c.q)(1),(0,d.U)((t=>new y(b.Start,t)))),(0,u.T)(f(e,"mousemove").pipe((0,d.U)((t=>new y(b.Continues,t)))),v(e).pipe((0,c.q)(1),(0,d.U)((t=>new y(b.End,t))),(0,h.l)(null))).pipe((0,p.o)(a.Pc))).pipe((0,g.r)())}var C=n(24994),w=n(60325),x=n(68918),M=n(47349),O=n(45435),k=n(77393);class S{call(t,e){return e.subscribe(new P(t))}}class P extends k.L{_next(t){}}var T=n(57057),A=n(43190),E=n(87519),I=n(34022),D=n(46797);function L(t=0){return(0,I.z)((0,A.w)((()=>(0,D.H)(t).pipe((0,d.U)(C.Iy),(0,o.O)(!0)))),(0,E.x)())}let F,N;function z(t){const e=f(t,"blur"),{ownerDocument:n}=t;if(!n)throw new i.aq;return N&&F||(F=f(n,"mouseup",{capture:!0}).pipe(L(),(0,o.O)(!1),(0,M.d)({bufferSize:1,refCount:!0})),N=f(n,"mousedown",{capture:!0}).pipe(L(),(0,o.O)(!1),(0,M.d)({bufferSize:1,refCount:!0}))),(0,u.T)((0,l.z)(f(t,"focus").pipe((0,c.q)(1)),e.pipe((0,O.h)((()=>!(0,x.V8)(t))),(0,c.q)(1),(function(t){return t.lift(new S)}))).pipe((0,g.r)(),(0,T.M)(N,F,((t,e,n)=>e||n)),(0,O.h)(w.Mv))).pipe((0,A.w)((()=>e.pipe((0,d.U)(C.Iy),(0,c.q)(1),(0,o.O)(!0)))),(0,E.x)())}var R=n(59193);function B(t,e=Boolean){return(0,I.z)((0,A.w)((n=>e(n)?t(n):R.E)))}function H(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 V(t){return t.changes.pipe((0,o.O)(null),(0,d.U)((()=>(0,a.gD)(t))))}function Y(t,{onlyTrusted:e}={onlyTrusted:!0}){const{ownerDocument:n}=t;if(!n)throw new i.aq;return f(t,"mousedown").pipe((0,O.h)((({isTrusted:t})=>t||!e)),(0,A.w)((()=>v(n).pipe((0,d.U)(C.Iy),(0,c.q)(1),(0,o.O)(!0)))))}var j=n(68307);function Z(){return(0,j.b)((t=>t.preventDefault()))}function $(t){return f(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function U(t){return(0,j.b)((()=>{t.markForCheck()}))}function G(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()))})))}function q(t){return e=>new r.y((n=>t.runOutsideAngular((()=>e.subscribe(n)))))}function J(t){return(0,I.z)(q(t),G(t))}},2579:(t,e,n)=>{n.d(e,{c:()=>r});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})()},66614:(t,e,n)=>{n.d(e,{a3:()=>o,gH:()=>s,ku:()=>c,ll:()=>d,AQ:()=>M,l:()=>A,b0:()=>x,tl:()=>F,FY:()=>j,Fr:()=>q,$D:()=>Q,bW:()=>X});var i=n(74235),r=n(74788);let o=(()=>{class t extends i.t{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),s=(()=>{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))}ngOnDestroy(){this.map.forEach((t=>t.destroy()))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r._Vd),r.LFG(r.gxx))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var a=n(71241),l=n(29856),u=n(46782);let c=(()=>{class t extends l.y{constructor({nativeElement:t},e,n){super((t=>this.focusVisible$.subscribe(t))),this.focusVisible$=(0,a.ix)(t).pipe((0,a.NA)(e),(0,u.R)(n))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(r.sBO),r.LFG(o,2))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),d=(()=>{class t{generate(){return`tui_${t.autoId++}${Date.now()}`}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var h=n(62579),p=n(24994),g=n(14393),m=n(66682),f=n(22759),v=n(87874),b=n(43219),y=n(88002),_=n(39761),C=n(87519),w=n(41439);let x=(()=>{class t extends l.y{constructor(t,e){super((t=>this.callback$.subscribe(t))),this.callback$=(0,w.P)((()=>{let{nativeElement:n}=t;const i=[e,n];for(;n.parentElement;)n=n.parentElement,i.push(n);return(0,m.T)(...i.map((t=>(0,a.mL)(t,"scroll"))))}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(h.m9))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),M=(()=>{class t extends l.y{constructor(t,{nativeElement:e},n,i,r,o){super((t=>this.obscured$.subscribe(t))),this.obscured$=(0,m.T)((0,m.T)(t,(0,f.R)(i,"resize")).pipe((0,v.g)(0)),o.pipe((0,b.p)(p.Yg))).pipe((0,y.U)((()=>(0,g.PU)(e))),(0,_.O)(null),(0,C.x)(),(0,a.Yr)(n),(0,u.R)(r))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(x,2),r.LFG(r.SBq),r.LFG(r.R0b),r.LFG(h.m9),r.LFG(o,2),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();var O=n(12057),k=n(43190),S=n(45435),P=n(59328),T=n(79196);let A=(()=>{class t extends l.y{constructor({nativeElement:t},e){super((n=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}),(0,a.mL)(t,"mousedown")).pipe((0,k.w)((()=>(0,m.T)((0,a.mL)(e,"touchmove",{passive:!0}).pipe((0,S.h)((({touches:t})=>t.length<2)),(0,y.U)((({touches:t})=>t[0]))),(0,a.mL)(e,"mousemove")))),(0,P.G)(),(0,y.U)((([t,e])=>[e.clientX-t.clientX,e.clientY-t.clientY])),(0,u.R)((0,m.T)((0,a.mL)(e,"touchend"),(0,a.mL)(e,"mouseup"))),(0,T.r)()).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(O.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();var E=n(32917),I=n(5304),D=n(54395),L=n(9945);let F=(()=>{class t extends E.ax{constructor(t,e,n,i,r,o){return super(t,e,i,r),this.pipe((0,I.K)((()=>o.pipe((0,b.p)(p.Yg),(0,y.U)((()=>`${t.nativeElement.clientWidth} ${t.nativeElement.clientHeight}`)),(0,C.x)(),(0,y.U)((()=>p.LZ))))),(0,D.b)(0),(0,a.fL)(e),(0,L.B)(),(0,u.R)(n))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(r.R0b),r.LFG(o,2),r.LFG(E.vU),r.LFG(E.jg),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();n(89476);var N=n(48843),z=n(50664),R=n(25917),B=n(46797),H=n(86804),V=n(68307);function Y(t){return"scrollX"in t?t.scrollX:t.scrollLeft}let j=(()=>{class t{constructor(t,e){this.performanceRef=t,this.animationFrame$=e}scroll$(t,e,n=Y(t),i=300){const r=function(t){return"scrollY"in t?t.scrollY:t.scrollTop}(t),o=Y(t),s=e-r,a=n-o;return(i?(0,w.P)((()=>(0,R.of)(this.performanceRef.now()))).pipe((0,k.w)((t=>this.animationFrame$.pipe((0,y.U)((e=>e-t))))),(0,y.U)((t=>(0,z.Xg)((0,N.Ki)(t/i,0,1)))),(0,y.U)((t=>[r+s*t,o+a*t])),(0,u.R)((0,B.H)(i)),(0,H.l)([e,n])):(0,R.of)([e,n])).pipe((0,V.b)((([e,n])=>{var i;null===(i=t.scrollTo)||void 0===i||i.call(t,n,e)})))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h.KS),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var Z=n(97582),$=n(97968),U=n(59178),G=n(47349);let 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,O.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 U.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,$.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,w.P)((()=>(0,$.D)(fetch(t))))).pipe((0,k.w)((e=>(0,Z.mG)(this,void 0,void 0,(function*(){if(e.ok)return e.text();throw new Error(`Failed to load ${t} (${e.statusText})`)})))),(0,G.d)({bufferSize:1,refCount:!1}));return this.cache.set(t,n),n}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h.m9),r.LFG(r.Lbi))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var J=n(27203);let Q=(()=>{class t extends l.y{constructor({nativeElement:t},{timeout:e,threshold:n},i){super((r=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}),(0,a.mL)(i,"touchend")).pipe((0,P.G)(),(0,S.h)((([t,e])=>!!t.touches.length&&t.touches[0].identifier===e.changedTouches[0].identifier)),(0,y.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 l.y{constructor({nativeElement:t},{wheelSensitivity:e}){super((n=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}).pipe((0,S.h)((({touches:t})=>t.length>1)),(0,k.w)((e=>(0,a.mL)(t,"touchmove",{passive:!0}).pipe((0,a.mp)(),(0,K.R)(((t,e)=>{const n=(0,W.q2)(e);return{event:e,distance:n,delta:.01*(n-t.distance)}}),{event:e,distance:(0,W.q2)(e),delta:0}),(0,y.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,u.R)((0,a.mL)(t,"touchend")))))),(0,a.mL)(t,"wheel",{passive:!1}).pipe((0,a.mp)(),(0,y.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)(r.LFG(r.SBq),r.LFG(J.AK))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},27203:(t,e,n)=>{n.d(e,{wk:()=>O,bS:()=>k,I2:()=>P,qY:()=>T,KZ:()=>E,tS:()=>N,XG:()=>V,oD:()=>$,FA:()=>z,fL:()=>H,Sg:()=>U,jF:()=>G,i0:()=>q,$_:()=>J,s6:()=>Q,wx:()=>W,Cy:()=>K,fM:()=>X,AK:()=>tt,XH:()=>S,Q:()=>A,FT:()=>I});var i=n(12057),r=n(74788),o=n(62579),s=n(71241),a=n(60325),l=n(66682),u=n(25917),c=n(46797),d=n(88002),h=n(45435),p=n(46782),g=n(72361),m=n(57057),f=n(43190),v=n(39761),b=n(15257),y=n(87519),_=n(9945),C=n(79221),w=n(26215);const x=(0,a.N1)((()=>{const t={onRemovalComplete:()=>{}},e=new w.X(null),n=(0,r.f3M)(C.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,f.w)((t=>(0,c.H)(0).pipe((0,d.U)((()=>null)),(0,v.O)(t)))),(0,_.B)())}));function M(t,e=null){return(0,a.Wf)(t).activeElement!==t&&!t.matches(":disabled")&&!(null==e?void 0:e.contains(t))}const O=(0,a.N1)((()=>{const t=(0,r.f3M)(x),e=(0,r.f3M)(o.m9),n=(0,r.f3M)(i.K0),C=(0,s.mL)(e,"focusout"),w=(0,s.mL)(e,"focusin"),O=(0,s.mL)(e,"blur"),k=(0,s.mL)(e,"mousedown"),S=(0,s.mL)(e,"mouseup");return(0,l.T)(C.pipe((0,p.R)(k),(0,g.a)((()=>S)),(0,m.M)(t),(0,h.h)((([t,e])=>M((0,a.mA)(t),e))),(0,d.U)((([{relatedTarget:t}])=>t))),O.pipe((0,d.U)((()=>n.activeElement)),(0,h.h)((t=>!!(null==t?void 0:t.matches("iframe"))))),w.pipe((0,f.w)((t=>{const e=(0,a.mA)(t),i=(0,a.Wf)(e);return i===n?(0,u.of)(e):function(t){return(0,l.T)((0,s.mL)(t,"focusin").pipe((0,d.U)((({target:t})=>t))),(0,s.mL)(t,"focusout").pipe((0,h.h)((({target:t,relatedTarget:e})=>!!e&&M(t))),(0,d.U)((({relatedTarget:t})=>t))))}(i).pipe((0,v.O)(e))}))),k.pipe((0,f.w)((t=>{const e=(0,a.mA)(t);return n.activeElement&&n.activeElement!==n.body?C.pipe((0,b.q)(1),(0,d.U)((()=>e)),(0,p.R)((0,c.H)(0))):(0,u.of)(e)})))).pipe((0,y.x)(),(0,_.B)())})),k=(0,a.JN)([]);function S(t){return{provide:k,multi:!0,useExisting:t}}const P=(0,a.N1)((()=>{var t,e;return null!==(e=null===(t=(0,r.f3M)(i.K0).querySelector("base"))||void 0===t?void 0:t.href)&&void 0!==e?e:""})),T=((0,a.N1)((()=>(0,r.f3M)(r.FYo).createRenderer(null,null))),(0,a.JN)([]));function A(t){return{provide:T,multi:!0,useExisting:t}}(0,a.N1)((()=>{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 E=new r.OlP("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function I(t){return{provide:E,useExisting:t}}var D=n(97968),L=n(59193),F=n(47349);const N=new r.OlP("[TUI_FONTS_READY]",{factory:()=>{var t;return(0,D.D)((null===(t=(0,r.f3M)(i.K0).fonts)||void 0===t?void 0:t.ready)||L.E).pipe((0,F.d)({bufferSize:1,refCount:!1}))}}),z=(0,a.N1)((()=>(0,a.i1)((0,r.f3M)(o.s5)))),R=/(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/,B=/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-/,H=(0,a.N1)((()=>R.test((0,r.f3M)(o.yZ).toLowerCase())||B.test((0,r.f3M)(o.yZ).slice(0,4).toLowerCase()))),V=(0,a.N1)((()=>(0,r.f3M)(H)&&!(0,r.f3M)(z))),Y=((0,a.N1)((()=>(0,a.lx)((0,r.f3M)(o.s5)))),(0,a.N1)((()=>!!(0,r.f3M)(o.m9).chrome)),(0,a.N1)((()=>!!(0,r.f3M)(o.m9).Cypress)));var j=n(24994);const Z=(0,a.N1)(j.Iy),$=(0,a.N1)((()=>(0,r.f3M)(Y)||(0,r.f3M)(Z))),U=((0,a.N1)((()=>{var t;return void 0!==(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.mozCancelFullScreen)})),(0,a.N1)((()=>(0,r.f3M)(o.m9).location.host.endsWith("stackblitz.io")))),G=(0,a.N1)((()=>{var t;return!!(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.webkitConvertPointFromNodeToPage)}));(0,a.JN)("web");const q=(0,a.N1)((()=>(0,i.NF)((0,r.f3M)(r.Lbi))?new Range:{})),J=(0,a.N1)((()=>new r.SBq((0,r.f3M)(i.K0).documentElement))),Q=(0,a.JN)({timeout:500,threshold:30}),W=(0,a.N1)(j.Ye),K=(0,a.N1)((()=>(0,r.f3M)(o.m9).matchMedia("(any-pointer: coarse)").matches)),X=new r.OlP("[TUI_WINDOW_SIZE]",{factory:()=>{const t=(0,r.f3M)(o.m9);return(0,s.mL)(t,"resize").pipe((0,v.O)(null),(0,d.U)((()=>{var e,n;const i=Math.max(t.document.documentElement.clientWidth||0,t.innerWidth||0,(null===(e=t.visualViewport)||void 0===e?void 0:e.width)||0),r=Math.max(t.document.documentElement.clientHeight||0,t.innerHeight||0,(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,F.d)({bufferSize:1,refCount:!0}))}}),tt=((0,a.N1)((()=>(0,r.f3M)(X).pipe((0,d.U)((({height:t})=>t))))),(0,a.JN)({wheelSensitivity:.01}))},14393:(t,e,n)=>{function i(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)i,PP:()=>r,mA:()=>c,Nn:()=>h,Wf:()=>p,PU:()=>f,YX:()=>v,Hs:()=>b,ve:()=>a,Hn:()=>y,dW:()=>l,Ls:()=>o,wq:()=>u,qY:()=>s,dD:()=>_,UP:()=>C});const d="text/plain";function h(t,e=d){return"clipboardData"in t&&null!==t.clipboardData?t.clipboardData.getData(e)||t.clipboardData.getData(d):t.target.ownerDocument.defaultView.clipboardData.getData("text")}function p(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}var g=n(48843),m=n(50664);function f(t){const{ownerDocument:e}=t;if(!(null==e?void 0:e.defaultView)||!t.getBoundingClientRect)return null;const{innerWidth:n,innerHeight:i}=e.defaultView,r=p(t),o=t.getBoundingClientRect();if(0===o.width&&0===o.height)return null;const s=(0,g.Ki)(Math.round(o.left)+2,0,n),a=(0,g.Ki)(Math.round(o.top)+2,0,i),l=(0,g.Ki)(Math.round(o.right)-2,0,n),u=(0,g.Ki)(Math.round(o.bottom)-2,0,i),c=(0,g.Ki)(Math.round(o.left+o.width/2),0,n),d=(0,g.Ki)(Math.round(o.top+o.height/2),0,i),h=[r.elementFromPoint(c,a),r.elementFromPoint(c,u),r.elementFromPoint(s,d),r.elementFromPoint(l,d)].filter(m.Pc);if(!h.length)return h;const f=h.filter((e=>!t.contains(e)));return 4===f.length?f:null}function v(t,e){let{offsetTop:n,offsetLeft:i,offsetParent:r}=e;for(;l(r)&&r!==t;)n+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return{offsetTop:n,offsetLeft:i}}function b(t,e=!0){return null===t?null:e&&t.scrollHeight>t.clientHeight||!e&&t.scrollWidth>t.clientWidth?t:b(t.parentElement,e)}function y(t){return s(t)&&!t.readOnly||!!t.isContentEditable}function _(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})}function C(t){return"explicitOriginalTarget"in t?(null==t?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?-1===t.pointerId:"detail"in t&&"webkitForce"in t&&0===(null==t?void 0:t.detail)}n(89476)},68918:(t,e,n)=>{n.d(e,{hp:()=>o,BW:()=>u,ie:()=>r,V8:()=>c,zb:()=>d,dT:()=>a,_h:()=>l,VR:()=>h,Pg:()=>p});var i=n(14393);function r({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 o(t){const e=r(t);(0,i.dW)(e)&&e.blur()}var s=n(24994);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 u({initial:t,root:e,previous:n=!1,keyboard:r=!0}){if(!e.ownerDocument)return null;const o=r?a:l,u=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s.Lw);for(u.currentNode=t;n?u.previousNode():u.nextNode();)if((0,i.dW)(u.currentNode)&&(t=u.currentNode),(0,i.dW)(t)&&o(t))return t;return null}function c(t){return!!(null==t?void 0:t.ownerDocument)&&r(t.ownerDocument)===t&&t.ownerDocument.hasFocus()}function d(t){if(!t.ownerDocument||!t.contains)return!1;const e=r(t.ownerDocument);return null!==e&&t.contains(e)&&t.ownerDocument.hasFocus()}function h(t,e,n){for(t+=n;t>=0&&t{function i(t){return`${t}px`}n.d(e,{O:()=>i}),n(89476)},60325:(t,e,n)=>{n.d(e,{WX:()=>b.WX,Hh:()=>b.Hh,jp:()=>b.jp,hp:()=>m.hp,Ki:()=>v.Ki,xT:()=>b.xT,PP:()=>g.PP,jH:()=>b.jH,JN:()=>b.JN,N1:()=>b.N1,A2:()=>b.A2,q2:()=>b.q2,mA:()=>g.mA,Nn:()=>g.Nn,BW:()=>m.BW,Wf:()=>g.Wf,PU:()=>g.PU,YX:()=>g.YX,ie:()=>m.ie,gD:()=>b.gD,RO:()=>a,qZ:()=>u,wf:()=>v.wf,lx:()=>w,xz:()=>r,ve:()=>g.ve,Hn:()=>g.Hn,Mv:()=>b.Mv,oK:()=>o,dW:()=>g.dW,Ls:()=>g.Ls,i1:()=>_,V8:()=>m.V8,zb:()=>m.zb,dT:()=>m.dT,_h:()=>m._h,dt:()=>b.dt,Pc:()=>b.Pc,Ex:()=>s,Aj:()=>b.Aj,wq:()=>g.wq,qY:()=>g.qY,lj:()=>b.lj,VR:()=>m.VR,J$:()=>b.J$,yj:()=>b.yj,Mp:()=>d,dD:()=>g.dD,vK:()=>b.vK,O9:()=>f.O,Mz:()=>v.Mz,UP:()=>g.UP,WS:()=>h,bD:()=>p,FG:()=>v.FG,h0:()=>v.h0,Pg:()=>m.Pg,NJ:()=>x,HW:()=>v.HW,oY:()=>v.oY,pf:()=>b.pf});const i="edge/";function r(t,e){return parseInt(e.slice(e.toLowerCase().indexOf(i)+i.length),10)3===n.length?t+t:t)).join("").match(/.{2}/g);return e?e.map((t=>Number.parseInt(t,16))):[0,0,0]}function l(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))}function u(t,e,n){return[l(t,e,n,5),l(t,e,n,3),l(t,e,n,1)]}const c=[0,0,0,1];function d(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 c;const r=i.map((t=>parseInt(e.length%2?t+t:t,16)));return[r[0]||c[0],r[1]||c[1],r[2]||c[2],void 0===r[3]?c[3]:r[3]]}function h(t,e,n){return`#${[t,e,n].map((t=>t.toString(16).padStart(2,"0"))).join("")}`}function p(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]}var g=n(14393),m=n(68918),f=n(36128),v=n(48843),b=n(50664);const y=/ipad|iphone|ipod/;function _(t){return y.test(t.userAgent.toLowerCase())||function(t){return t.platform.startsWith("Mac")||"iPhone"===t.platform}(t)&&t.maxTouchPoints>1}const C=/^((?!chrome|android).)*safari/i;function w(t){return _(t)||C.test(t.userAgent.toLowerCase())}function x(t,e=function(){return Math.floor(Math.random()*Date.now())}(),n="rgba(0, 0, 0, 0.7)"){if((0,b.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}},48843:(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)}function s(t,e){const n=t%e;return ni,wf:()=>r,G1:()=>o,Mz:()=>s,FG:()=>u,h0:()=>c,HW:()=>d,oY:()=>h}),n(89476);const a=292;function l(t,e,n){if(t===1/0)return t;e=Math.min(e,a);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 u(t,e=0){return l(t,e,Math.round)}function c({value:t,precision:e,method:n}){switch(n){case"round":return u(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 d(t){return t?1:0}function h(t){return parseInt(t,10)}},50664:(t,e,n)=>{function i(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}function r(t,e){return t.length===e.length&&t.every(((t,n)=>t===e[n]))}function o(t,e){const n=t.indexOf(e);return-1===n?[...t,e]:i(t,n)}function s(t){return"string"==typeof t}function a(t){return JSON.parse(JSON.stringify(t,((t,e)=>function(t){const e=s(t)?t.trim():t;return[void 0,null,NaN,""].includes(e)}(e)?void 0:e)))}n.d(e,{WX:()=>i,Hh:()=>r,jp:()=>o,xT:()=>a,jH:()=>d,JN:()=>u,N1:()=>c,A2:()=>h,q2:()=>p,Xg:()=>g,gD:()=>m,M8:()=>f,Mv:()=>v,dt:()=>b,Pc:()=>y,Aj:()=>s,lj:()=>_,J$:()=>C,yj:()=>w,vK:()=>x,pf:()=>M});var l=n(74788);function u(t){return c((()=>t))}function c(t){return new l.OlP("",{factory:t})}function d(t){return c((()=>t))}function h(t,e){return t===e?0:s(t)&&s(e)?t.localeCompare(e):t>e?1:-1}function p({touches:t}){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)}function g(t){return t<.5?2*t*t:(4-2*t)*t-1}function m(t){let e=[];return t.find(((t,n,i)=>(e=i,!0))),e}function f(t,e){return Math.abs(e)>Math.abs(t)?e>0?"top":"bottom":t>0?"left":"right"}function v(t){return!t}function b(t){return"number"==typeof t}function y(t){return null!=t}function _(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 C(t,e,n){return null===t?null===e:null!==e&&n(t,e)}function w(t){return t.reduce(((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n})),{})}function x(t,e,n){return{provide:t,deps:[[new l.FiY,new l.tp0,t]],useFactory:t=>Object.assign(Object.assign({},t||n),e)}}function M(t,e){return Array.from(t.reduce(((t,n)=>t.has(n[e])?t:t.set(n[e],n)),new Map).values())}n(89476)},59890:(t,e,n)=>{n.d(e,{FP:()=>p,D1:()=>g,kk:()=>l,uG:()=>m,O4:()=>b,c2:()=>c,UK:()=>u,P7:()=>v,Ic:()=>C,Fe:()=>d,Sv:()=>_,ei:()=>f,Wk:()=>y});var i=n(42600),r=n(66682),o=n(87519),s=n(46782),a=n(29856);class l extends a.y{}function u(t){return{provide:l,multi:!0,useExisting:t}}class c{}function d(t){return{provide:c,multi:!0,useExisting:t}}var h=n(74788);let p=(()=>{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,r.T)(...this.drivers.filter((({type:t})=>t===this.type))).pipe((0,o.x)(),(0,s.R)(this.destroy$)).subscribe((e=>{null==t||t.toggle(e)}))}}return t.ɵfac=function(e){return new(e||t)(h.Y36(i.a31,2),h.Y36(l),h.Y36(c))},t.ɵdir=h.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)(h.Y36(i.M$T))},t.ɵdir=h.lG2({type:t}),t})();class m{}function f(t){return{provide:m,deps:[[new h.tp0,m]],useFactory:e=>e.find((e=>e.type===t))}}function v(t){return{provide:m,multi:!0,useExisting:t}}class b{}function y(t,e){return{provide:b,deps:[[new h.tp0,b],e],useFactory:_(t)}}function _(t){return(e,n)=>e.find((e=>e!==n&&e.type===t))||n}function C(t){return{provide:b,multi:!0,useExisting:t}}},31837:(t,e,n)=>{n.d(e,{i9:()=>u,QF:()=>l,eu:()=>a,Gw:()=>c,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)])),u=((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)])),c=((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)]),(0,i.X$)("tuiPop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1.1)"})),(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(1.1)"})),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),(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)])},18289:(t,e,n)=>{n.d(e,{v:()=>M});var i=n(74788),r=n(42600),o=n(29883),s=n(59193),a=n(39761),l=n(88002),u=n(87519),c=n(21142),d=n(12057),h=n(42),p=n(89570),g=n(77825),m=n(57634);const f=["tuiButton",""];function v(t,e){1&t&&i.GkF(0)}function b(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function y(t,e){if(1&t&&(i.TgZ(0,"span",6),i.YNc(1,b,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function _(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function C(t,e){if(1&t&&(i.TgZ(0,"span",9),i.YNc(1,_,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconRight)}}function w(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 x=["*"];let M=(()=>{class t extends r.XnQ{constructor(t,e,n){var i;super(),this.mode=t,this.el=e,this.options=n,this.mode$=(null===(i=this.mode)||void 0===i?void 0:i.change$)||s.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,a.O)(null),(0,l.U)((()=>this.computedAppearance)),(0,u.x)())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&(0,r.V8W)(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(o.wt,8),i.Y36(i.SBq),i.Y36(c.Gm))},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,r.FTc)(t),r.a31]),i.qOj],attrs:f,ngContentSelectors:x,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","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,v,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.TgZ(3,"span",2),i.YNc(4,y,2,1,"span",3),i.Hsn(5),i.YNc(6,C,2,1,"span",4),i.qZA(),i.YNc(7,w,1,2,"tui-loader",5),i.qZA()),2&t&&(i.Q6J("ngIf",i.lcZ(1,8,e.appearance$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.computedAppearance)("disabled",e.computedDisabled)("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:[d.O5,h.o,p.Li,g.P,m.k],pipes:[d.Ov],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[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})()},21142:(t,e,n)=>{n.d(e,{Gm:()=>o,O0:()=>s});var i=n(42600);const r={size:"l",shape:null,appearance:n(92444).N.Primary},o=(0,i.JN4)(r);function s(t){return(0,i.vKU)(o,t,r)}},414:(t,e,n)=>{n.d(e,{a:()=>g});var i=n(74788),r=n(42600),o=n(50035),s=n(12057),a=n(96281),l=n(46109),u=n(3395),c=n(23761),d=n(2579);function h(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",2),i.TgZ(1,"tui-primitive-year-picker",3),i.NdJ("yearClick",(function(e){return i.CHM(t),i.oxw().onPickerYearClick(e)})),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("initialItem",t.month)("max",t.computedMax)("min",t.computedMin)("value",t.value)}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-year-month-pagination",4),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onPaginationValueChange(e)}))("yearClick",(function(){return i.CHM(t),i.oxw().onPaginationYearClick()})),i.qZA(),i.TgZ(1,"tui-primitive-calendar",5),i.NdJ("dayClick",(function(e){return i.CHM(t),i.oxw().onDayClick(e)}))("hoveredItemChange",(function(e){return i.CHM(t),i.oxw().onHoveredItemChange(e)})),i.ALo(2,"tuiMapper"),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("max",t.computedMaxViewedMonth)("min",t.computedMinViewedMonth)("value",t.month),i.xp6(1),i.Q6J("disabledItemHandler",i.gM2(2,9,t.disabledItemHandler,t.disabledItemHandlerMapper,t.computedMin,t.computedMax))("hoveredItem",t.hoveredItem)("markerHandler",t.markerHandler)("month",t.month)("showAdjacent",t.showAdjacent)("value",t.value)}}let g=(()=>{class t{constructor(){this.day=null,this.view="month",this.month=r.qld.currentLocal(),this.disabledItemHandler=r.IyD,this.min=r.nNo,this.max=r.OyN,this.minViewedMonth=r.nNo,this.maxViewedMonth=r.OyN,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=o.zE,this.dayClick=new i.vpe,this.monthChange=new i.vpe,this.hoveredItemChange=new i.vpe,this.disabledItemHandlerMapper=(t,e,n)=>i=>i.dayBefore(e)||i.dayAfter(n)||t(i)}set initialView(t){this.view=t}set value(t){this.day=t,this.showAdjacent&&t instanceof r.TU1&&(this.month=t)}get value(){return this.day}get isInYearView(){return"year"===this.view}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get computedMinViewedMonth(){var t;const e=this.computedMin,n=null!==(t=this.minViewedMonth)&&void 0!==t?t:r.nNo;return n.monthSameOrAfter(e)?n:e}get computedMaxViewedMonth(){var t;const e=this.computedMax,n=null!==(t=this.maxViewedMonth)&&void 0!==t?t:r.OyN;return n.monthSameOrBefore(e)?n:e}onPaginationYearClick(){this.view="year"}onPickerYearClick({year:t}){this.view="month",this.updateViewedMonth(new r.qld(t,this.month.month))}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){(0,r.J$k)(this.hoveredItem,t,((t,e)=>t.daySame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-calendar"]],inputs:{initialView:"initialView",month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["calendar",""],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"initialItem","max","min","value","yearClick"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"max","min","value","valueChange","yearClick"],["automation-id","tui-calendar__calendar",3,"disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value","dayClick","hoveredItemChange"]],template:function(t,e){if(1&t&&(i.YNc(0,h,2,4,"tui-scrollbar",0),i.YNc(1,p,3,14,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.isInYearView)("ngIfElse",t)}},directives:[s.O5,a.I,l.T,u.d,c.A],pipes:[d.c],styles:["[_nghost-%COMP%]{display:block;height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0}),t})()},22545:(t,e,n)=>{n.d(e,{q:()=>g});var i=n(97582),r=n(74788),o=n(42600),s=n(29883),a=n(15837),l=n(88002),u=n(91283),c=n(12057),d=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 p(t,e){if(1&t&&(r.TgZ(0,"div",2),r.YNc(1,h,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$))}}class g{constructor(t,e,n){var i;this.controller=t,this.el=e,this.defaultEmptyContent$=n,this.options=o.Mmc,this.role="listbox",this.size=(null===(i=this.controller)||void 0===i?void 0:i.size)||"m"}get empty$(){return(0,o.llR)(this.options).pipe((0,l.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.VRr)(n.indexOf(t),n,e)}handleFocusLossIfNecessary(t=this.el.nativeElement){this.origin&&(0,o.zb4)(t)&&(0,o.Pg4)(this.origin,!0,!0)}getOptions(t=!1){return this.options.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(o.PcC)}onFocus({target:t},e){if(!(0,o.veZ)(t))return;const{elements:n}=this;(0,o.VRr)(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(t)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}}g.ɵfac=function(t){return new(t||g)(r.Y36(s.Cs,8),r.Y36(r.SBq),r.Y36(a.PH))},g.ɵcmp=r.Xpm({type:g,selectors:[["tui-data-list"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.v,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,a.RB)(g),s.Y0])],ngContentSelectors:["*"],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,p,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:[c.O5,d.Li],pipes:[c.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,tui-opt-group:not(:empty)~tui-opt-group:not([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,tui-opt-group:not([data-label]):before{padding:0;margin:0}\n'],encapsulation:2,changeDetection:0}),(0,i.gn)([o.UMq],g.prototype,"empty$",null)},65266:(t,e,n)=>{n.d(e,{g:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})()},94052:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-label",e.label)},inputs:{label:"label"}}),t})()},91283:(t,e,n)=>{n.d(e,{v:()=>v});var i=n(97582),r=n(74788),o=n(42600),s=n(12174),a=n(15837),l=n(30126),u=n(22545),c=n(89570),d=n(12057),h=n(77825);function p(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 g(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 m(t,e){if(1&t&&(r.Hsn(0),r.YNc(1,g,1,1,"tui-svg",2)),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.dropdown)}}const f=function(t){return{$implicit:t}};class v{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)}}v.ɵfac=function(t){return new(t||v)(r.Y36(a.IQ,8),r.Y36((0,r.Gpc)((()=>u.q)),8),r.Y36(r.SBq),r.Y36(a.N1,8),r.Y36(s.td,10),r.Y36(a.Gs))},v.ɵcmp=r.Xpm({type:v,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:["tuiOption",""],ngContentSelectors:["*"],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,p,2,1,"ng-container",0),r.YNc(1,m,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,f,t))}},directives:[c.Li,d.O5,h.P],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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,l.uX)((function({currentTarget:t}){return!(0,o.V8W)(t)}))],v.prototype,"onMouseMove",null)},24956:(t,e,n)=>{n.d(e,{v:()=>p});var i=n(42600),r=n(31837),o=n(73784),s=n(15837),a=n(74788),l=n(12057),u=n(89570);function c(t,e){if(1&t&&(a.ynx(0),a._uU(1),a.BQk()),2&t){const t=e.polymorpheusOutlet;a.xp6(1),a.hij(" ",t," ")}}const d=function(){return{}};function h(t,e){if(1&t&&(a.TgZ(0,"div",1),a.ALo(1,"async"),a.YNc(2,c,2,1,"ng-container",2),a.ALo(3,"async"),a.qZA()),2&t){const t=a.oxw();a.ekj("t-message-text_light","onDark"===a.lcZ(1,6,t.mode$)),a.Q6J("@tuiFadeIn",t.animation)("@tuiHeightCollapse",t.animation),a.xp6(2),a.Q6J("polymorpheusOutlet",t.error.message||a.lcZ(3,8,t.defaultErrorMessage$))("polymorpheusOutletContext",t.error.context||a.DdM(10,d))}}let p=(()=>{class t{constructor(t,e,n){this.animation=t,this.mode$=e,this.defaultErrorMessage$=n,this.error=null,this.visible=!0}set errorSetter(t){this.error=(0,i.Ajw)(t)?new i.T8v(t):t}onAnimation(t){this.visible=t}}return t.ɵfac=function(e){return new(e||t)(a.Y36(s.Pw),a.Y36(s.Au),a.Y36(s.PL))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-error"]],hostBindings:function(t,e){1&t&&a.NdJ("animationcancel.self",(function(){return e.onAnimation(!1)}))("animationstart.self",(function(){return e.onAnimation(!0)}))},inputs:{errorSetter:["error","errorSetter"]},features:[a._Bn([o.CV])],decls:1,vars:1,consts:[["automation-id","tui-error__text","class","t-message-text",3,"t-message-text_light",4,"ngIf"],["automation-id","tui-error__text",1,"t-message-text"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&a.YNc(0,h,4,11,"div",0),2&t&&a.Q6J("ngIf",e.error&&e.visible)},directives:[l.O5,u.Li],pipes:[l.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);display:block;color:var(--tui-negative);word-wrap:break-word;animation:tuiPresent 1s infinite}.t-message-text[_ngcontent-%COMP%]{margin-top:.25rem;white-space:pre-line}.t-message-text_light[_ngcontent-%COMP%]{color:var(--tui-negative-night)}"],data:{animation:[r.eu,r.QF]},changeDetection:0}),t})()},9975:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiExpandContent",""]]}),t})()},2793:(t,e,n)=>{n.d(e,{S:()=>g});var i=n(74788),r=n(42600),o=n(46797),s=n(46782),a=n(9975),l=n(12057),u=n(57634);const c=["wrapper"];function d(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 h(t,e){if(1&t&&(i.ynx(0),i.Hsn(1),i.YNc(2,d,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 p=["*"];let g=(()=>{class t{constructor(t,e){this.cdr=t,this.destroy$=e,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,(0,o.H)(0).pipe((0,s.R)(this.destroy$)).subscribe((()=>{2===this.state&&(this.state=t,this.cdr.markForCheck())}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(r.a31,2))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-expand"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,a.I,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(c,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"]},features:[i._Bn([r.a31])],ngContentSelectors:p,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,h,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:[l.O5,u.k,l.tP],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._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:[r.KxC]},changeDetection:0}),t})()},20690:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(42600),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],decls:0,vars:0,template:function(t,e){},styles:[".tui-group{position:relative;display:flex;isolation:isolate}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.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})(),s=(()=>{class t{constructor(t){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m",t.addComponent(o)}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)(r.Y36(i.gHG))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(t,e){2&t&&r.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})()},53620:(t,e,n)=>{n.d(e,{J:()=>p});var i=n(74788),r=n(42600),o=n(48874),s=n(46782),a=n(12057),l=n(55788),u=n(89570);function c(t,e){1&t&&i.GkF(0)}const d=function(t){return{$implicit:t}};function h(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,c,1,0,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),i.xp6(1),i.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",i.VKq(4,d,t))}}let p=(()=>{class t{constructor(t,e,n){this.hints$=t,this.destroy$=e,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe((0,s.R)(this.destroy$)).subscribe((t=>{this.hints=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.BN),i.Y36(r.a31,2),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[i._Bn([r.a31])],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&&i.YNc(0,h,2,6,"div",0),2&t&&i.Q6J("ngForOf",e.hints)},directives:[a.sg,l.e,u.Li],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[r.KxC]}}),t})()},55863:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(74788),r=n(59890);let o=(()=>{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})()},93529:(t,e,n)=>{n.d(e,{l:()=>u});var i=n(42600),r=n(29883),o=n(45435),s=n(46782),a=n(41524),l=n(74788);let u=(()=>{class t{constructor(t,e,n,i){null==i||i.tuiDropdownOpenChange.pipe((0,o.h)((t=>t&&i.dropdown===n&&!e.focused)),(0,s.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)(l.Y36(i.a31,2),l.Y36(a.p),l.Y36(r.td,2),l.Y36(r.oH,8))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[l._Bn([i.a31])]}),t})()},98778:(t,e,n)=>{n.d(e,{o:()=>B});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(12174),l=n(1585),u=n(30126),c=n(26215),d=n(9112),h=n(25917),p=n(59193),g=n(66682),m=n(88002),f=n(43190),v=n(87874),b=n(13653),y=n(87519),_=n(9945),C=n(55863),w=n(41524);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();var M=n(42486),O=n(93529),k=n(82335),S=n(80475),P=n(30416),T=n(80017),A=n(55788),E=n(41578),I=n(89570),D=n(12057);const L=["wrapper"];function F(t,e){if(1&t&&(r.TgZ(0,"div",8),r._uU(1),r.qZA()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}const N=function(t,e){return{$implicit:t,close:e}};function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",5,6),r.NdJ("keydown",(function(e){return r.CHM(t),r.oxw(2).onKeydown(e)})),r.YNc(2,F,2,1,"div",7),r.qZA(),r._UZ(3,"div")}if(2&t){r.oxw();const t=r.MAs(1),e=r.oxw();r.xp6(2),r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",r.WLB(2,N,t,e.close))}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",1,2),r.NdJ("tuiActiveZoneChange",(function(e){return r.CHM(t),r.oxw().onActiveZone(e)}))("tuiObscured",(function(e){return r.CHM(t),r.oxw().onHostObscured(e)})),r.Hsn(2),r.YNc(3,z,4,5,"ng-template",3,4,r.W1O),r.qZA()}if(2&t){const t=e.tuiLet,n=r.MAs(4),i=r.oxw();r.Q6J("tuiDropdown",n)("tuiDropdownManual",t&&i.canOpen)("tuiDropdownSided",i.sided)("tuiObscuredEnabled",t),r.xp6(3),r.Q6J("polymorpheus",i.context)}}class B{constructor(t,e){this.hover$=t,this.el=e,this.openChange$=new c.X(!1),this.hostHover$=(0,d.aj)([(0,o.mLY)(this.el.nativeElement,"mouseover").pipe((0,m.U)((t=>this.computedHost.contains((0,o.mAU)(t)))),(0,f.w)((t=>{var e,n;return(0,h.of)(t).pipe((0,v.g)((t?null===(e=this.hover$)||void 0===e?void 0:e.showDelay:null===(n=this.hover$)||void 0===n?void 0:n.hideDelay)||0))}))),this.hover$||p.E]).pipe((0,m.U)((([t,e])=>t&&e))),this.sided=!1,this.canOpen=!0,this.open$=(0,g.T)(this.openChange$,this.hostHover$).pipe((0,b.T)(1),(0,y.x)(),(0,_.B)()),this.focusedChange=new r.vpe,this.openChange=this.openChange$,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,o.dTd)(this.host)?this.host:(0,o.BWF)({initial:this.host,root:this.el.nativeElement})}get focused(){return(0,o.zb4)(this.host)||this.open&&!!this.wrapper&&(0,o.zb4)(this.wrapper.nativeElement)}onFocusInOut(){this.el.nativeElement.classList.toggle("_hosted_dropdown_focused",this.focused)}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.preventDefault(),this.closeDropdown()}onArrow(t,e){this.focusDropdown(t,e)}onKeydown({key:t,target:e,defaultPrevented:n}){!n&&(0,l.kL)(t)&&this.hostEditable&&(0,o.dWV)(e)&&!(0,o.Hnx)(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,o.Hnx)(this.computedHost)}focusDropdown(t,e){const n=this.nativeFocusableElement;if(!(n&&(0,o.dWV)(n)&&(0,o.veZ)(t.target)&&n.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&(0,o.dWV)(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void((0,o.Hnx)(n)||t.preventDefault());const i=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=(0,o.BWF)({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)}}B.ɵfac=function(t){return new(t||B)(r.Y36(a.E$,10),r.Y36(r.SBq))},B.ɵcmp=r.Xpm({type:B,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,x,5,r.SBq),2&t){let t;r.iGM(t=r.CRH())&&(e.dropdownHost=t.first)}},viewQuery:function(t,e){if(1&t&&(r.Gf(L,5,r.SBq),r.Gf(a.td,5),r.Gf(o.eJF,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.wrapper=t.first),r.iGM(t=r.CRH())&&(e.dropdownDirective=t.first),r.iGM(t=r.CRH())&&(e.activeZone=t.first)}},hostBindings:function(t,e){1&t&&r.NdJ("focusin.capture.silent",(function(){return e.onFocusInOut()}))("focusout.capture.silent",(function(){return e.onFocusInOut()}))("focusin",(function(t){return e.onFocusIn(t.target)}))("click",(function(t){return e.onClick(t.target)}))("keydown.silent.capture",(function(t){return e.onKeyDownEsc(t)}),!1,r.evT)("keydown.arrowDown",(function(t){return e.onArrow(t,!0)}))("keydown.arrowUp",(function(t){return e.onArrow(t,!1)}))},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[r._Bn([(0,o.FTc)(B),{provide:C.z,deps:[[new r.FiY,new r.PiD,s.uG]],useFactory:t=>null==t?void 0:t[0]},{provide:w.p,useExisting:B}])],ngContentSelectors:["*"],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",""],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,R,5,5,"div",0),r.ALo(1,"async")),2&t){let t;r.Q6J("tuiLet",null!==(t=r.lcZ(1,1,e.open$))&&void 0!==t?t:e.openChange.value)}},directives:[M.L,C.z,O.l,k.t,S.V,P.T,T.C,A.e,E.z,I.GL,I.Li],pipes:[D.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%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}"],changeDetection:0}),(0,i.gn)([(0,u.uX)((function(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)}))],B.prototype,"onKeyDownEsc",null)},41524:(t,e,n)=>{n.d(e,{p:()=>i});const i=new(n(74788).OlP)("[TUI_HOSTED_DROPDOWN_COMPONENT]")},73460:(t,e,n)=>{n.d(e,{V:()=>m});var i=n(74788),r=n(42600),o=n(73784),s=n(15837),a=n(66682),l=n(88002),u=n(12057),c=n(77825);const d=["tuiLink",""];function h(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}function p(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}const g=["*"];let m=(()=>{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,a.T)((0,r.mLY)(this.el.nativeElement,"focusin").pipe((0,l.U)(r.YeN)),(0,r.mLY)(this.el.nativeElement,"focusout").pipe((0,l.U)(r.IyD))),n.subscribe((t=>{this.focusVisible=t}))}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return(0,r.V8W)(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(s.Au),i.Y36(r.kuj))},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,r.FTc)(t),r.kuj,r.a31,o.CV])],attrs:d,ngContentSelectors:g,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,h,1,1,"tui-svg",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,1,1,"tui-svg",2)),2&t&&(i.Q6J("ngIf",e.iconAlignLeft),i.xp6(3),i.Q6J("ngIf",e.iconAlignRight))},directives:[u.O5,c.P],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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})()},57634:(t,e,n)=>{n.d(e,{k:()=>p});var i=n(12057),r=n(74788),o=n(42600),s=n(1585),a=n(34474),l=n(89570);function u(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 c(t,e){if(1&t&&(r.O4$(),r.kcU(),r.TgZ(0,"div",6),r.YNc(1,u,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 d(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,c,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 h=["*"];let p=(()=>{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,o.Exm)(this.el.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&(0,o.hpv)(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!(0,s.R9)(this.size)}get focused(){return(0,o.zb4)(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(o.FAH),r.Y36(a.vI))},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:h,decls:3,vars:7,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,d,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.uIk("inert",e.loading||null),r.xp6(2),r.Q6J("ngIf",e.loading))},directives:[i.O5,l.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;min-width:1.5rem}._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})()},34474:(t,e,n)=>{n.d(e,{vI:()=>i});const i=(0,n(42600).JN4)({size:"m",inheritColor:!1,overlay:!1})},48236:(t,e,n)=>{n.d(e,{L:()=>m});var i=n(74788),r=n(42600),o=n(15837),s=n(12057),a=n(77825),l=n(89570),u=n(18289);function c(t,e){if(1&t&&i._UZ(0,"tui-svg",5),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const d=function(t){return{$implicit:t}};function h(t,e){if(1&t&&(i.ynx(0),i.YNc(1,c,1,1,"tui-svg",4),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",i.VKq(2,d,t.status))}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",6),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 g=["*"];let m=(()=>{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.fwO)(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"],["a","tuiNotification",""],["button","tuiNotification",""]],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:g,decls:5,vars:3,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__more",1,"t-more",3,"src"],["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,h,2,4,"ng-container",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,4,"button",2),i._UZ(4,"tui-svg",3)),2&t&&(i.Q6J("ngIf",e.icon&&e.hasIcon),i.xp6(3),i.Q6J("ngIf",e.hasClose),i.xp6(1),i.Q6J("src",e.icons.more))},directives:[s.O5,a.P,l.Li,u.v],pipes:[s.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}[_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{display:none}button[_nghost-%COMP%], a[_nghost-%COMP%]{border:none;cursor:pointer}button[_nghost-%COMP%] .t-more[_ngcontent-%COMP%], a[_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{display:inline-flex;color:var(--tui-text-01);opacity:.5}[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=s][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem 0}[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=m][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem 0}[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-size=l][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{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-break:break-word;color:var(--tui-text-01);text-align:left;align-self:center}"],changeDetection:0}),t})()},23761:(t,e,n)=>{n.d(e,{A:()=>k});var i=n(74788),r=n(42600),o=n(50035),s=n(27907),a=n(5938),l=n(15837),u=n(12057),c=n(42486),d=n(46648),h=n(11108),p=n(9092),g=n(65566),m=n(99766),f=n(2579);function v(t,e){if(1&t&&i._UZ(0,"div",3),2&t){const t=e.$implicit;i.Q6J("textContent",t)}}function b(t,e){if(1&t&&i._UZ(0,"div",14),2&t){const t=i.oxw().ngIf;i.Udp("background-color",(null==t?null:t[1])||"")}}function y(t,e){if(1&t&&(i.TgZ(0,"div",13),i._UZ(1,"div",14),i.YNc(2,b,1,2,"div",15),i.qZA()),2&t){const t=e.ngIf;i.xp6(1),i.Udp("background-color",null==t?null:t[0]),i.xp6(1),i.Q6J("ngIf",t.length>1)}}const _=function(t,e,n,i,r){return[t,e,n,i,r]};function C(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw().tuiLet;return i.oxw(4).onItemClick(e)}))("tuiHoveredChange",(function(e){i.CHM(t);const n=i.oxw().tuiLet;return i.oxw(4).onItemHovered(e&&n)}))("tuiPressedChange",(function(e){i.CHM(t);const n=i.oxw().tuiLet;return i.oxw(4).onItemPressed(e&&n)})),i.TgZ(1,"div",11),i.ALo(2,"tuiMapper"),i._uU(3),i.YNc(4,y,3,3,"div",12),i.ALo(5,"tuiMapper"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().tuiLet,e=i.oxw(4);i.ekj("t-cell_interval",e.itemIsInterval(t))("t-cell_today",e.itemIsToday(t))("t-cell_unavailable",e.itemIsUnavailable(t)),i.uIk("data-range",e.getItemRange(t))("data-state",e.getItemState(t)),i.xp6(1),i.ekj("t-item_unavailable",e.itemIsUnavailable(t)),i.uIk("data-type",i.xi3(2,13,t,e.dayTypeHandler)),i.xp6(2),i.hij(" ",t.day," "),i.xp6(1),i.Q6J("ngIf",i.G7q(5,16,i.qbA(22,_,t,e.toMarkers,e.itemIsToday(t),!!e.getItemRange(t),e.markerHandler)))}}function w(t,e){if(1&t&&(i.ynx(0),i.YNc(1,C,6,28,"div",9),i.BQk()),2&t){const t=e.tuiLet,n=i.oxw(4);i.xp6(1),i.Q6J("ngIf",!n.itemIsUnavailable(t)||n.showAdjacent)}}function x(t,e){if(1&t&&(i.ynx(0),i.YNc(1,w,2,1,"ng-container",8),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit,r=i.oxw().tuiLet;i.xp6(1),i.Q6J("tuiLet",r[n][t])}}function M(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,x,2,1,"ng-container",7),i.qZA()),2&t){const t=e.$implicit,n=i.oxw().tuiLet;i.xp6(1),i.Q6J("tuiRepeatTimesOf",n[t].length)}}function O(t,e){if(1&t&&(i.TgZ(0,"div",4),i.YNc(1,M,2,1,"div",5),i.qZA()),2&t){const t=e.tuiLet;i.xp6(1),i.Q6J("tuiRepeatTimesOf",t.length)}}let k=(()=>{class t{constructor(t,e){this.unorderedWeekDays$=t,this.dayTypeHandler=e,this.pressedItem=null,this.today=r.TU1.currentLocal(),this.month=r.qld.currentLocal(),this.disabledItemHandler=r.IyD,this.markerHandler=o.zE,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new i.vpe,this.dayClick=new i.vpe,this.toMarkers=(t,e,n,i)=>{if(e||n)return null;const r=i(t);return 0===r.length?null:r}}get isSingleDayRange(){return this.value instanceof r.VRe&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(t){const{disabledItemHandler:e,pressedItem:n,hoveredItem:i}=this;return e(t)?s.z.Disabled:(null==n?void 0:n.daySame(t))?s.z.Active:(null==i?void 0:i.daySame(t))?s.z.Hover:null}getItemRange(t){const{value:e,hoveredItem:n}=this;return e?e instanceof r.TU1?e.daySame(t)?a.q.Single:null:e instanceof r.VRe?e.from.daySame(t)&&!e.isSingleDay||(null==n?void 0:n.dayAfter(e.from))&&e.from.daySame(t)&&e.isSingleDay||(null==n?void 0:n.daySame(t))&&n.dayBefore(e.from)&&e.isSingleDay?a.q.Start:e.to.daySame(t)&&!e.isSingleDay||(null==n?void 0:n.dayBefore(e.from))&&e.from.daySame(t)&&e.isSingleDay||(null==n?void 0:n.daySame(t))&&n.dayAfter(e.from)&&e.isSingleDay?a.q.End:e.isSingleDay&&e.from.daySame(t)?a.q.Single:null:e.find((e=>e.daySame(t)))?a.q.Single:null:null}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}itemIsInterval(t){const{value:e,hoveredItem:n}=this;if(!(e instanceof r.VRe))return!1;if(!e.isSingleDay)return e.from.daySameOrBefore(t)&&e.to.dayAfter(t);if(null===n)return!1;const i=r.VRe.sort(e.from,n);return i.from.daySameOrBefore(t)&&i.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}onItemPressed(t){this.pressedItem=t||null}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){(0,r.J$k)(this.hoveredItem,t,((t,e)=>t.daySame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.P),i.Y36(l.rJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_single",e.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],["id","date-rows",4,"tuiLet"],[1,"t-cell",3,"textContent"],["id","date-rows"],["automation-id","tui-primitive-calendar__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"tuiLet"],["automation-id","tui-primitive-calendar__cell","class","t-cell",3,"t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange","tuiPressedChange",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],["automation-id","tui-primitive-calendar__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"backgroundColor",4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,v,1,1,"div",1),i.ALo(2,"async"),i.ALo(3,"tuiOrderWeekDays"),i.qZA(),i.YNc(4,O,2,1,"div",2),i.ALo(5,"tuiCalendarSheet")),2&t&&(i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,i.lcZ(3,4,e.unorderedWeekDays$))),i.xp6(3),i.Q6J("tuiLet",i.xi3(5,6,e.month,!0)))},directives:[u.sg,c.L,d.X,u.O5,h.c,p.n],pipes:[u.Ov,g.q,m.h,f.c],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0}),t})()},38586:(t,e,n)=>{n.d(e,{Y2:()=>s});var i=n(42600),r=n(92444);const o={size:"m",appearances:{unchecked:r.N.Outline,checked:r.N.Primary,indeterminate:r.N.Primary},icons:{checked:({$implicit:t})=>"m"===t?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>"m"===t?"tuiIconMinus":"tuiIconMinusLarge"}},s=(0,i.JN4)(o)},87605:(t,e,n)=>{n.d(e,{r:()=>d});var i=n(38586),r=n(74788),o=n(42),s=n(89570),a=n(77825);function l(t,e){if(1&t&&r._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet,n=r.oxw();r.ekj("t-mark_on",!n.empty),r.Q6J("src",t)}}const u=function(t){return{$implicit:t}},c=["*"];let d=(()=>{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)(r.Y36(i.Y2))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("data-size",e.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:c,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&&(r.F$t(),r.TgZ(0,"div",0),r.YNc(1,l,1,3,"tui-svg",1),r.Hsn(2),r.qZA()),2&t&&(r.Q6J("active",e.pressed)("appearance",e.appearance)("disabled",e.disabled)("focus",e.focused)("hover",e.hovered)("invalid",e.invalid),r.xp6(1),r.Q6J("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",r.VKq(8,u,e.size)))},directives:[o.o,s.Li,a.P],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})()},10259:(t,e,n)=>{n.d(e,{a:()=>c});var i=n(74788),r=n(42600),o=n(15837),s=n(12057),a=n(18289);function l(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"button",1),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onLeftClick()})),i.qZA(),i.TgZ(2,"span",2),i.Hsn(3),i.qZA(),i.TgZ(4,"button",3),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRightClick()})),i.qZA(),i.BQk()}if(2&t){const t=e.ngIf,n=i.oxw();i.xp6(1),i.ekj("t-hidden",n.leftComputedDisabled),i.Q6J("focusable",n.computedFocusable)("icon",n.icons.decrement)("title",t[0]),i.xp6(3),i.ekj("t-hidden",n.rightComputedDisabled),i.Q6J("focusable",n.computedFocusable)("icon",n.icons.increment)("title",t[1])}}const u=["*"];let c=(()=>{class t extends r.XnQ{constructor(t,e,n){super(),this.el=t,this.icons=e,this.spinTexts$=n,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new i.vpe,this.rightClick=new i.vpe}get focused(){return(0,r.zb4)(this.el.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.oC),i.Y36(o.U4))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(t,e){1&t&&i.NdJ("mousedown.silent.prevent",(function(){return 0}))("keydown.arrowLeft.prevent",(function(){return e.onLeftClick()}))("keydown.arrowRight.prevent",(function(){return e.onRightClick()}))("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[i.qOj],ngContentSelectors:u,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-primitive-spin-button__left","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-primitive-spin-button__right","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,l,5,10,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.spinTexts$))},directives:[s.O5,a.v],pipes:[s.Ov],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:bold}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0}),t})()},75526:(t,e,n)=>{n.d(e,{y:()=>R});var i=n(97582),r=n(74788),o=n(42600),s=n(25715),a=n(20735),l=n(1585),u=n(89570),c=n(22759),d=n(88002),h=n(12057),p=n(42),g=n(13080),m=n(93604),f=n(24751),v=n(63973),b=n(57971),y=n(77825),_=n(63360);const C=["focusableElement"];function w(t,e){1&t&&r.GkF(0)}function x(t,e){1&t&&r.GkF(0)}function M(t,e){1&t&&(r.TgZ(0,"div",17),r.Hsn(1,2),r.qZA())}function O(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}const k=function(t){return{$implicit:t}};function S(t,e){if(1&t&&(r.TgZ(0,"div",18),r.YNc(1,O,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,k,t.size))}}function P(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 T(t,e){if(1&t&&r._UZ(0,"tui-svg",24),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function A(t,e){if(1&t&&(r.TgZ(0,"div",22),r.YNc(1,T,1,1,"tui-svg",23),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.controller.customContent)}}function E(t,e){if(1&t&&r._UZ(0,"tui-svg",27),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function I(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,E,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,k,t.size))}}function D(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 L(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function F(t,e){if(1&t&&(r.TgZ(0,"div",29),r.YNc(1,L,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,k,t.size))}}const N=[[["input"]],[["select"]],[["tuiContent"]],"*"],z={s:1.25,m:1.75,l:2.25};class R extends o.XnQ{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,o.zb4)(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,l._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,c.R)(t,"scroll").pipe((0,d.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)}detectRetargetFromLabel(t){(0,o.UPZ)(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return z[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)}}R.ɵfac=function(t){return new(t||R)(r.Y36(a.Cs),r.Y36(s.bZ,8),r.Y36(a.z1),r.Y36(r.SBq))},R.ɵcmp=r.Xpm({type:R,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.content=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(C,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,o.FTc)(R),a.Y0]),r.qOj],ngContentSelectors:["input","select","tuiContent","*"],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(N),r.YNc(0,w,1,0,"ng-container",0),r.ALo(1,"async"),r.YNc(2,x,1,0,"ng-container",0),r.ALo(3,"async"),r.TgZ(4,"div",1),r.NdJ("click.prevent.silent",(function(t){return e.detectRetargetFromLabel(t)}))("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,M,2,0,"div",4),r.TgZ(11,"div",5),r.YNc(12,S,2,4,"div",6),r.TgZ(13,"div",7),r.YNc(14,P,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,A,2,1,"div",13),r.YNc(21,I,2,4,"span",14),r.YNc(22,D,1,2,"tui-tooltip",15),r.YNc(23,F,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:[h.O5,p.o,g.G,m.j,f.Fj,f.JJ,f.On,v.t,b.Z,u.Li,y.P,_.w],pipes:[h.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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{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%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-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)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.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._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)([o.UMq],R.prototype,"getIndent$",null)},19042:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(59890),r=n(15837),o=n(75526),s=n(74788);let a=(()=>{class t extends i.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)(s.Y36(o.y))},t.ɵdir=s.lG2({type:t,selectors:[["tui-primitive-textfield"]],features:[s._Bn([(0,r.cp)(t)]),s.qOj]}),t})()},52846:(t,e,n)=>{n.d(e,{M:()=>l});var i=n(74788),r=n(42600),o=n(29883),s=n(15837);const a=["tuiTextfield",""];let l=(()=>{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)(i.Y36(s.S0),i.Y36(o.Cs),i.Y36(i.SBq),i.Y36(r.llV),i.Y36(s.sf,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(t){return!e.legacyMask&&e.host.onValueChange(t.target.value)})),2&t&&(i.Ikx("tabIndex",e.host.focusable?0:-1)("readOnly",e.host.readOnly)("value",e.host.value),i.uIk("id",e.id)("inputMode",e.inputMode)("aria-invalid",e.host.invalid)("disabled",e.host.disabled||null))},features:[i._Bn([o.Y0])],attrs:a,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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-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})()},57971:(t,e,n)=>{n.d(e,{Z:()=>p});var i=n(74788),r=n(42600),o=n(92444),s=n(26215),a=n(66682),l=n(87874),u=n(45435),c=n(88002),d=n(87519);const h=["pre"];let p=(()=>{class t{constructor(t,e){this.textfield=t,this.fontsReady$=e,this.prefix$=new s.X(""),this.pre$=(0,a.T)(this.fontsReady$,this.prefix$).pipe((0,l.g)(0),(0,u.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,d.x)())}get isContextTable(){return this.textfield.appearance===o.N.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)(i.Y36(r.KZI),i.Y36(r.tSu))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,7,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.pre=t.first)}},hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("animationstart",(function(){return e.ngDoCheck()})),2&t&&i.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&&(i._UZ(0,"span",0,1),i._UZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4)),2&t&&(i.Q6J("textContent",e.prefix),i.xp6(2),i.Q6J("textContent",e.value),i.xp6(1),i.Q6J("textContent",e.filler),i.xp6(1),i.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})()},46109:(t,e,n)=>{n.d(e,{T:()=>m});var i=n(74788),r=n(42600),o=n(27907),s=n(5938),a=n(46648),l=n(42486),u=n(78273),c=n(11108),d=n(9092);function h(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",4),i.NdJ("click",(function(){const e=i.CHM(t).tuiLet;return i.oxw(3).onItemClick(e)}))("tuiHoveredChange",(function(e){const n=i.CHM(t).tuiLet;return i.oxw(3).onItemHovered(e,n)}))("tuiPressedChange",(function(e){const n=i.CHM(t).tuiLet;return i.oxw(3).onItemPressed(e,n)})),i.TgZ(1,"div",5),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.tuiLet,n=i.oxw(3);i.ekj("t-cell_interval",n.itemIsInterval(t))("t-cell_today",n.itemIsToday(t)),i.Q6J("tuiScrollIntoView",n.scrollItemIntoView(t)),i.uIk("data-range",n.getItemRange(t))("data-state",n.getItemState(t)),i.xp6(2),i.Oqu(t)}}function p(t,e){if(1&t&&(i.ynx(0),i.YNc(1,h,3,8,"div",3),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit,r=i.oxw();i.xp6(1),i.Q6J("tuiLet",r.getItem(n,t))}}function g(t,e){1&t&&(i.TgZ(0,"div",1),i.YNc(1,p,2,1,"ng-container",2),i.qZA()),2&t&&(i.xp6(1),i.Q6J("tuiRepeatTimesOf",4))}let m=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=r.qld.currentLocal().year,this.value=null,this.initialItem=r.qld.currentLocal(),this.min=r.nNo,this.max=r.OyN,this.disabledItemHandler=r.IyD,this.yearClick=new i.vpe}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/4)}get calculatedMin(){const t=this.initialItem.year-100,e=this.computedMin;return e.year>t?e.year:t}get calculatedMax(){const t=this.initialItem.year+100,e=this.computedMax;return e.yeare.from.year&&e.from.year===t&&e.from.yearSame(e.to)||null!==n&&n===t&&ne.from.year&&e.from.yearSame(e.to)?s.q.End:e.from.yearSame(e.to)&&e.from.year===t?s.q.Single:null:e.find((e=>e.year===t))?s.q.Single:null}itemIsToday(t){return this.currentYear===t}itemIsInterval(t){const{value:e,hoveredItem:n}=this;return!(null===e||!this.isRange(e))&&(e.from.yearSame(e.to)?null!==n&&e.from.year!==n&&(0,r.wfT)(t,Math.min(e.from.year,n),Math.max(e.from.year,n)):e.from.year<=t&&e.to.year>t)}onItemHovered(t,e){this.updateHoveredItem(t,e)}onItemPressed(t,e){this.updatePressedItem(t,e)}onItemClick(t){this.yearClick.emit(new r.F4U(t))}updateHoveredItem(t,e){this.hoveredItem=t?e:null}updatePressedItem(t,e){this.pressedItem=t?e:null}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_single",e.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","t-cell",3,"t-cell_interval","t-cell_today","tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"t-cell",3,"tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(t,e){1&t&&i.YNc(0,g,2,1,"div",0),2&t&&i.Q6J("tuiRepeatTimesOf",e.rows)},directives:[a.X,l.L,u.M,c.c,d.n],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0}),t})()},6226:(t,e,n)=>{n.d(e,{G:()=>C});var i=n(12057),r=n(42600),o=n(48874),s=n(15837),a=n(9112),l=n(25917),u=n(88002),c=n(54395),d=n(74788),h=n(84651),p=n(73186),g=n(68646),m=n(29529),f=n(53620),v=n(36378);function b(t,e){1&t&&d._UZ(0,"tui-scroll-controls",2)}const y=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],_=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let C=(()=>{class t{constructor(t,e,n,i,r,o,s,d,h){var p;this.reducedMotion=t,this.duration=e,this.dialogs=n,this.isMobile=i,this.breakpoint=r,this.isIOS=o,this.isAndroid=s,this.isMobileRes$=this.breakpoint.pipe((0,u.U)((t=>"mobile"===t))),this.scrollbars$=this.dialogs.length&&!this.isMobile?(0,a.aj)([...this.dialogs]).pipe((0,u.U)((t=>!t.some((({length:t})=>t)))),(0,c.b)(0)):(0,l.of)(!this.isMobile),null===(p=d.defaultView)||void 0===p||p.document.body.setAttribute("data-tui-theme",h.toLowerCase())}}return t.ɵfac=function(e){return new(e||t)(d.Y36(s.TK),d.Y36(s.dx),d.Y36(r.qYI),d.Y36(r.fLQ),d.Y36(o.zE),d.Y36(r.FAH),d.Y36(r.XGT),d.Y36(i.K0),d.Y36(s.r2))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.70.0"],hostVars:9,hostBindings:function(t,e){1&t&&d.NdJ("touchstart.passive.silent",(function(){return 0}))("$.class._mobile",(function(){return e.isMobileRes$})),2&t&&(d.Ikx("$.class._mobile",e.isMobileRes$),d.Udp("--tui-duration",e.duration,"ms"),d.ekj("_ios",e.isIOS)("_android",e.isAndroid)("_reduced-motion",e.reducedMotion))},ngContentSelectors:_,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&&(d.F$t(y),d.YNc(0,b,1,0,"tui-scroll-controls",0),d.ALo(1,"async"),d._UZ(2,"tui-svg-defs-host"),d.TgZ(3,"tui-dropdown-host"),d.TgZ(4,"div",1),d.Hsn(5),d.qZA(),d.Hsn(6,1),d._UZ(7,"tui-dialog-host"),d.Hsn(8,2),d._UZ(9,"tui-alert-host"),d.Hsn(10,3),d.qZA(),d.Hsn(11,4),d._UZ(12,"tui-hints-host"),d.Hsn(13,5)),2&t&&d.Q6J("ngIf",d.lcZ(1,1,e.scrollbars$))},directives:[i.O5,h.M,p.q,g.T,m.f,f.J,v.t],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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})()},49229:(t,e,n)=>{n.d(e,{IB:()=>i.I,Jy:()=>a}),n(84714),n(50035);var i=n(96281),r=n(12057),o=n(42600),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[r.ez,o.eI3]]}),t})()},84714:(t,e,n)=>{n(42600)},96281:(t,e,n)=>{n.d(e,{I:()=>c});var i=n(74788),r=n(62579),o=n(42600),s=n(12057),a=n(36378);function l(t,e){1&t&&i._UZ(0,"tui-scroll-controls",2)}const u=["*"];let c=(()=>{class t{constructor(t,e,n,r){this.cssRef=t,this.el=e,this.userAgent=n,this.isIos=r,this.isLegacy=!this.cssRef.supports("position","sticky")||(0,o.oKA)(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new i.SBq(this.el.nativeElement)}get delegated(){return this.browserScrollRef.nativeElement!==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.browserScrollRef.nativeElement=t}scrollIntoView(t){var e;if(this.delegated)return;const{nativeElement:n}=this.browserScrollRef,{offsetTop:i,offsetLeft:r}=(0,o.YXZ)(n,t),{clientHeight:s,clientWidth:a}=n,{offsetHeight:l,offsetWidth:u}=t,c=i+l/2-s/2,d=r+u/2-a/2;null===(e=n.scrollTo)||void 0===e||e.call(n,d,c)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.ux),i.Y36(i.SBq),i.Y36(r.yZ),i.Y36(o.FAH))},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:o.$__,deps:[t],useFactory:({browserScrollRef:t})=>t}])],ngContentSelectors:u,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,l,1,0,"tui-scroll-controls",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()),2&t&&(i.Q6J("ngIf",e.showScrollbars),i.xp6(1),i.ekj("t-content_delegated",e.delegated))},directives:[s.O5,a.t],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;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:.375rem 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%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})()},30633:(t,e,n)=>{n.d(e,{U:()=>i});const i={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"}},26637:(t,e,n)=>{n.d(e,{$E:()=>a.$E,EI:()=>s}),n(30633),n(77825);var i=n(12057),r=n(42600),o=n(74788);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[i.ez,r.WDk]]}),t})();var a=n(38950)},38950:(t,e,n)=>{n.d(e,{$E:()=>c,_f:()=>d});var i=n(74788),r=n(42600),o=n(15837),s=n(2116),a=n(54487),l=n(30633);const u={iconsPlace:o.xp,path:(0,s.ht)(o.xp),srcProcessor:a.y,contentProcessor:r.NJB,deprecated:t=>{const e=t.replace("Large","").replace("Outline",""),n=l.U[e];return n?`${e}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},c=(0,r.N1V)((()=>({iconsPlace:(0,i.f3M)(o.AA),path:(0,i.f3M)(o.ki),deprecated:u.deprecated,srcProcessor:(0,i.f3M)(o.V5),contentProcessor:(0,i.f3M)(o.u_)}))),d=new i.OlP("[TUI_SVG_SRC_INTERCEPTORS]")},77825:(t,e,n)=>{n.d(e,{P:()=>M});var i=n(97582),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(42600),u=n(50035),c=n(48874),d=n(15837),h=n(1585),p=n(74235),g=n(25917),m=n(43190),f=n(39761),v=n(5304),b=n(88002),y=n(38950),_=n(42486);function C(t,e){if(1&t&&o._UZ(0,"div",3),2&t){const t=o.oxw().tuiLet;o.Q6J("innerHTML",t,o.oJD)}}function w(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 x(t,e){if(1&t&&(o.ynx(0),o.YNc(1,C,1,1,"div",1),o.YNc(2,w,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)}}class M{constructor(t,e,n,i,r,o,s,a,u,c){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=u,this.baseHref=c,this.src$=new p.t(1),this.icon="",this.innerHTML$=this.src$.pipe((0,m.w)((()=>(0,l.Ajw)(this.icon)?this.isExternal?this.getExternalIcon(this.icon):(0,g.of)(this.getSafeHtml(this.icon)):(0,g.of)(this.icon))),(0,f.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,l.Ajw)(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!(0,l.Ajw)(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return(0,l.Wfd)(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(u.uJ,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return(0,l.Ajw)(this.icon)&&this.icon.replace(u.uJ,"").endsWith(".svg")}get isSrc(){return(0,l.Ajw)(this.icon)&&(0,h.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(u.qT,{bubbles:!0,detail:{message:t,icon:e}});this.el.nativeElement.dispatchEvent(n)}resolveName(t,e){return e(t,this.baseHref)}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,l.Ajw)(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,v.K)((()=>(this.onError("Failed to load external SVG"),(0,g.of)("")))),(0,b.U)((t=>this.sanitize(t.replace("{n.d(e,{Z:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t extends i.GM_{}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵcmp=r.Xpm({type:t,selectors:[["tui-theme-night"]],features:[r.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-shadow: 0 .25rem 1.5rem rgba(0, 0, 0, .12);--tui-shadow-hover: 0 .75rem 2.25rem rgba(0, 0, 0, .2);--tui-shadow-dropdown: 0 1.5rem 1rem rgba(0, 0, 0, .03), 0 .75rem .75rem rgba(0, 0, 0, .04), 0 .25rem .375rem rgba(0, 0, 0, .05);--tui-shadow-modal: 0 1.125rem 1.875rem rgba(0, 0, 0, .48);--tui-shadow-sidebar: .25rem 0 1.5rem rgba(0, 0, 0, .12);--tui-shadow-navigation: 0 .125rem 1rem rgba(0, 0, 0, .08);--tui-shadow-sheet: 0 -1rem 1.75rem rgba(0, 0, 0, .24)}tui-notification{--tui-base-01: #000}\n"],encapsulation:2,changeDetection:0}),t})()},63360:(t,e,n)=>{n.d(e,{w:()=>y});var i=n(42600),r=n(29883),o=n(73784),s=n(15837),a=n(46782),l=n(74788),u=n(42),c=n(13938),d=n(10406),h=n(63790),p=n(51928),g=n(44099),m=n(89570),f=n(77825),v=n(12057);function b(t,e){if(1&t&&l._UZ(0,"tui-svg",3),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}let y=(()=>{class t extends r.bZ{constructor(t,e,n,i){super(n),this.isMobile=i,this.mode=null,this.describeId="",e.pipe((0,a.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)(l.Y36(i.a31,2),l.Y36(s.Au),l.Y36(r.H3),l.Y36(i.fLQ))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tooltip"]],viewQuery:function(t,e){if(1&t&&l.Gf(r.t6,5),2&t){let t;l.iGM(t=l.CRH())&&(e.driver$=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("mousedown",(function(t){return e.stopOnMobile(t)})),2&t&&l.uIk("data-appearance",e.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[l._Bn([i.a31,o.CV]),l.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&&(l.TgZ(0,"span",0,1),l.ALo(2,"async"),l.YNc(3,b,1,1,"tui-svg",2),l.qZA()),2&t){const t=l.MAs(1);l.Q6J("hover",l.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),l.xp6(3),l.Q6J("polymorpheusOutlet",e.icon)}},directives:[u.o,c.D,d.x,h.t,p.D,g.$,m.Li,f.P],pipes:[v.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})()},50035:(t,e,n)=>{n.d(e,{oA:()=>o,uJ:()=>r,zE:()=>s,Jl:()=>a,hW:()=>h,Fw:()=>d,qT:()=>c,AJ:()=>g,R3:()=>p,fe:()=>u,Nq:()=>l});var i=n(42600);const r=`?v=${i.Mle}`,o=t=>t.includes(".svg#")?t:`#${t}`,s=()=>i.LZ8,a={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:i.f$6,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},l=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],u="tui-scroll-into-view",c="tui-icon-error",d=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],h=/\d/,p=/\D+/g,g=/[ \-_()]/g},80475:(t,e,n)=>{n.d(e,{V:()=>s});var i=n(42600),r=n(59890),o=n(74788);let s=(()=>{class t extends r.FP{constructor(t,e,n){super(t,e,n),this.type="dropdown"}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a31,2),o.Y36(r.kk),o.Y36(r.c2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiDropdown",""]],features:[o._Bn([i.a31]),o.qOj]}),t})()},16843:(t,e,n)=>{n.d(e,{E:()=>g});var i=n(42600),r=n(59890),o=n(79765),s=n(66682),a=n(25917),l=n(43190),u=n(87874),c=n(68307),d=n(9945),h=n(36702),p=n(74788);let g=(()=>{class t extends r.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.parentHover=n,this.toggle$=new o.xQ,this.stream$=(0,s.T)(this.toggle$,this.hovered$).pipe((0,l.w)((t=>(0,a.of)(t).pipe((0,u.g)(t?this.showDelay:this.hideDelay)))),(0,c.b)((t=>{this.hovered=t})),(0,d.B)()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(t){var e;null===(e=this.parentHover)||void 0===e||e.toggle(t),this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(p.Y36(i.gsq),p.Y36(h.Mm),p.Y36(t,12))},t.ɵdir=p.lG2({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[p._Bn([(0,r.UK)(t),i.gsq]),p.qOj]}),t})()},36702:(t,e,n)=>{n.d(e,{Mm:()=>i});const i=(0,n(42600).JN4)({showDelay:200,hideDelay:500})},30416:(t,e,n)=>{n.d(e,{T:()=>s});var i=n(59890),r=n(26215),o=n(74788);let s=(()=>{class t extends i.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=o.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[o._Bn([(0,i.UK)(t)]),o.qOj,o.TTD]}),t})()},95880:(t,e,n)=>{n.d(e,{o:()=>r});var i=n(74788);let r=(()=>{class t{constructor(){this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new i.vpe}update(t){this.tuiDropdownOpen=t,this.tuiDropdownOpenChange.emit(t)}ngOnChanges(){var t;null===(t=this.dropdown)||void 0===t||t.toggle(this.tuiDropdownOpen)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},features:[i.TTD]}),t})()},16331:(t,e,n)=>{n.d(e,{vY:()=>a,fx:()=>l,Ek:()=>u});var i=n(74788),r=n(42600),o=n(2116);const s={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},a=(0,r.JN4)(s),l=t=>({provide:a,deps:[[new i.FiY,u],[new i.FiY,new i.tp0,a]],useFactory:(0,o.lp)(t,s)});let u=(()=>{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(a,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:a,useExisting:(0,i.Gpc)((()=>t))}])]}),t})()},80017:(t,e,n)=>{n.d(e,{C:()=>u});var i=n(42600),r=n(59890),o=n(15837),s=n(16331),a=n(62541),l=n(74788);let u=(()=>{class t extends r.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:r,width:o}=t,s=null!==(n=null===(e=this.vertical.accessor)||void 0===e?void 0:e.getClientRect())&&void 0!==n?n:i.Jy9,a=this.viewport.getClientRect(),{direction:l,minHeight:u,offset:c}=this.options,d="center"===this.options.align?"left":this.options.align,h={top:s.bottom-a.top,left:s.left-c-a.left,right:a.right-s.right-c,bottom:a.bottom-s.top},p={top:s.bottom-r+this.tuiDropdownSidedOffset+1,left:s.left-o-c,right:s.right+c,bottom:s.top-this.tuiDropdownSidedOffset-1},g=h.top>h.bottom?"top":"bottom",m=h[d]>o?p[d]:h.left>h.right?p.left:p.right;return h[this.previous]>u&&l||this.previous===g?[p[this.previous],m]:(this.previous=g,[p[g],m])}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.vY),l.Y36(o.EO),l.Y36(a.A))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[l._Bn([a.A,(0,r.P7)(t)]),l.qOj]}),t})()},62541:(t,e,n)=>{n.d(e,{A:()=>c});var i=n(97582),r=n(42600),o=n(59890),s=n(15837),a=n(82335),l=n(16331),u=n(74788);class c extends o.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;t||e||(this.previous=void 0);const o=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:r.Jy9,s=this.viewport.getClientRect(),{minHeight:a,align:l,direction:u,offset:c,limitWidth:d}=this.options,h={top:s.top-c,bottom:s.bottom+c,right:s.right-c,left:s.left+c},p=this.previous||u||"bottom",g={top:o.top-2*c-h.top,bottom:h.bottom-o.bottom-2*c},m="fixed"===d?o.width:t,f=Math.max(o.right-m,c),v=o.left+tg.bottom?"top":"bottom";return g[p]>a&&u||g[p]>e?[b[p],b[l]]:(this.previous=y,[b[y],b[l]])}get accessor(){return(0,o.Sv)("dropdown")(this.accessors,this.directive)}}c.ɵfac=function(t){return new(t||c)(u.Y36(l.vY),u.Y36(s.EO),u.Y36(o.O4),u.Y36(a.t))},c.ɵdir=u.lG2({type:c,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[u._Bn([(0,o.P7)(c)]),u.qOj]}),(0,i.gn)([r.UMq],c.prototype,"accessor",null)},40870:(t,e,n)=>{n.d(e,{n:()=>x});var i=n(74788),r=n(62579),o=n(42600),s=n(59890),a=n(31837),l=n(73784),u=n(48874),c=n(15837),d=n(88002),h=n(46782),p=n(82335),g=n(16843),m=n(16331),f=n(96281),v=n(55788),b=n(75984),y=n(11108),_=n(89570);function C(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 w=function(t){return{$implicit:t}};let x=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,u,c){this.directive=i,this.animation=r,this.el=o,this.accessor=s,this.win=a,this.mode$=l,this.options=u,this.hoverDirective=c,e.pipe((0,d.U)((e=>"fixed"===this.directive.position?t.correct(e):e)),(0,h.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(t){var e;null===(e=this.hoverDirective)||void 0===e||e.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,e){var n;const{style:i}=this.el.nativeElement,{right:r}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:s,minHeight:a,offset:l}=this.options,{innerHeight:u}=this.win,c=null===(n=this.el.nativeElement.offsetParent)||void 0===n?void 0:n.getBoundingClientRect(),{position:d}=this.directive,h=this.accessor.getClientRect(),p="fixed"===d?0:-((null==c?void 0:c.left)||0),g="fixed"===d?0:-((null==c?void 0:c.top)||0);t+=g;const m=(e+=p)h.left&&t=h.right;i.position=d,i.top=(0,o.O9r)(Math.max(t,g+l)),i.left=(0,o.O9r)(e),i.maxHeight=f?`${s}px`:(0,o.O9r)(Math.min(s,Math.max(m,a))),i.width="",i.minWidth="",this.updateWidth(h.width)}updateWidth(t){const{style:e}=this.el.nativeElement;switch(this.options.limitWidth){case"min":e.minWidth=(0,o.O9r)(t);break;case"fixed":e.width=(0,o.O9r)(t)}}moveFocusOutside(t){const{nativeElement:e}=this.directive.el,{ownerDocument:n}=e,i=n?n.body:e;let r=(0,o.BWF)({initial:e,root:i,previous:t});for(;null!==r&&e.contains(r);)r=(0,o.BWF)({initial:r,root:i,previous:t});null==r||r.focus()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(u.Lp),i.Y36(u.KG),i.Y36(o.a31,2),i.Y36(p.t),i.Y36(c.Pw),i.Y36(i.SBq),i.Y36(s.O4),i.Y36(r.m9),i.Y36(c.Au),i.Y36(m.vY),i.Y36(g.E,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dropdown"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-appearance",e.options.appearance),i.d8E("@tuiDropdownAnimation",e.animation))},features:[i._Bn([o.a31,u.KG,(0,s.ei)("dropdown"),(0,s.Wk)("dropdown",p.t),l.CV])],decls:5,vars:4,consts:[["tuiActiveZone","","tuiOverscroll","all",1,"t-scroll",3,"tuiHoveredChange"],["activeZone","tuiActiveZone"],["tabindex","0",3,"focus"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-scrollbar",0,1),i.NdJ("tuiHoveredChange",(function(t){return e.onHoveredChange(t)})),i.TgZ(2,"div",2),i.NdJ("focus",(function(){return e.onTopFocus()})),i.qZA(),i.YNc(3,C,2,1,"div",3),i.TgZ(4,"div",2),i.NdJ("focus",(function(){return e.onBottomFocus()})),i.qZA(),i.qZA()),2&t){const t=i.MAs(1);i.xp6(3),i.Q6J("polymorpheusOutlet",e.directive.content)("polymorpheusOutletContext",i.VKq(2,w,t))}},directives:[f.I,v.e,b.W,y.c,_.Li],styles:['[_nghost-%COMP%]{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}.ng-animating[_nghost-%COMP%]{pointer-events:none}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}[data-mode=onDark][_nghost-%COMP%]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll[_ngcontent-%COMP%]{flex-grow:1;max-width:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}'],data:{animation:[a.i9]}}),t})()},82335:(t,e,n)=>{n.d(e,{t:()=>g});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(2116),l=n(89570),u=n(79765),c=n(43219),d=n(46782),h=n(6008),p=n(95880);class g{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 u.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,c.p)(0),(0,d.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,a.qK)(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngAfterViewInit(){this.open&&this.toggle(this.open.tuiDropdownOpen)}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.update(!0)):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,null===(n=this.open)||void 0===n||n.update(!1))}}g.ɵfac=function(t){return new(t||g)(r.Y36(o.a31,2),r.Y36(r.SBq),r.Y36(h.W),r.Y36(r.gxx),r.Y36(o.ae2),r.Y36(p.o,8))},g.ɵdir=r.lG2({type:g,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[r._Bn([o.a31,(0,s.Ic)(g),(0,s.Fe)(g)]),r.TTD]}),(0,i.gn)([o.UMq],g.prototype,"position",null)},6008:(t,e,n)=>{n.d(e,{W:()=>o});var i=n(42600),r=n(40870);const o=(0,i.N1V)((()=>r.n))},12174:(t,e,n)=>{n.d(e,{td:()=>i.t,E$:()=>g.E,dp:()=>l,oH:()=>m.o,fx:()=>f.fx}),n(40870);var i=n(82335),r=n(42600),o=n(49229),s=n(89570),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.wq,r.Ah6,r.eoI,o.Jy,r.VE3]]}),t})();n(6008);var u=n(97582),c=n(59890),d=n(30126),h=n(79765);class p extends c.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.activeZone=t,this.isIOS=e,this.isTouch=n,this.stream$=new h.xQ,this.currentRect=r.Jy9,this.longTapTimeout=NaN,this.type="dropdown"}get userSelect(){return this.isTouch?"none":null}onContextMenu(t,e){this.currentRect=(0,r.dDE)(t,e),this.stream$.next(!0)}closeDropdown(){this.stream$.next(!1),this.currentRect=r.Jy9}onTouchMove(t,e){this.isIOS&&this.isTouch&&this.currentRect!==r.Jy9&&Math.hypot(t-this.currentRect.x,e-this.currentRect.y)>15&&this.onTouchEnd()}onTouchStart(t,e){this.isIOS&&this.isTouch&&this.currentRect===r.Jy9&&(this.currentRect=(0,r.dDE)(t,e),this.longTapTimeout=setTimeout((()=>{this.stream$.next(!0)}),700))}onTouchEnd(){this.isIOS&&this.isTouch&&clearTimeout(this.longTapTimeout)}getClientRect(){return this.currentRect}}p.ɵfac=function(t){return new(t||p)(a.Y36(r.eJF),a.Y36(r.FAH),a.Y36(r.CyX))},p.ɵdir=a.lG2({type:p,selectors:[["","tuiDropdown","","tuiDropdownContext",""]],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("contextmenu.prevent.stop",(function(t){return e.onContextMenu(t.clientX,t.clientY)}))("click.silent",(function(t){return e.closeDropdown(t.target)}),!1,a.evT)("contextmenu.capture.silent",(function(t){return e.closeDropdown(t.target)}),!1,a.evT)("keydown.esc",(function(t){return e.closeDropdown(t.currentTarget)}),!1,a.evT)("touchmove.silent.passive",(function(t){return e.onTouchMove(t.touches[0].clientX,t.touches[0].clientY)}))("touchstart.silent.passive",(function(t){return e.onTouchStart(t.touches[0].clientX,t.touches[0].clientY)}))("touchend.silent.passive",(function(){return e.onTouchEnd()}))("touchcancel.silent.passive",(function(){return e.onTouchEnd()})),2&t&&a.Udp("user-select",e.userSelect)("-webkit-touch-callout",e.userSelect)("-webkit-user-select",e.userSelect)},features:[a._Bn([r.eJF,(0,c.UK)(p),(0,c.Ic)(p)]),a.qOj]}),(0,u.gn)([(0,d.uX)((function(t){return!this.activeZone.contains(t)}))],p.prototype,"closeDropdown",null),n(80475);var g=n(16843),m=(n(36702),n(30416),n(95880)),f=n(16331);n(62541),n(80017),n(15837),n(2116)},44099:(t,e,n)=>{n.d(e,{$:()=>b});var i=n(97582),r=n(12057),o=n(74788),s=n(42600),a=n(59890),l=n(74235),u=n(25917),c=n(66682),d=n(46797),h=n(43190),p=n(88002),g=n(28984),m=n(39761),f=n(87519),v=n(13653);class b extends a.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.zone=t,this.doc=e,this.el=n,this.id$=new l.t(1),this.stream$=this.id$.pipe((0,s.Xdy)((()=>(0,s.mLY)(this.doc,"keydown",{capture:!0})),s.PcC),(0,h.w)((()=>this.focused?(0,u.of)(!1):(0,c.T)((0,s.mLY)(this.doc,"keyup"),(0,s.mLY)(this.element,"blur")).pipe((0,p.U)((()=>this.focused))))),(0,g.D)((t=>t?(0,d.H)(1e3):(0,u.of)(null))),(0,m.O)(!1),(0,f.x)(),(0,v.T)(1),(0,s.Yry)(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return(0,s.V8W)(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}b.ɵfac=function(t){return new(t||b)(o.Y36(o.R0b),o.Y36(r.K0),o.Y36(o.SBq))},b.ɵdir=o.lG2({type:b,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[o._Bn([(0,a.UK)(b)]),o.qOj,o.TTD]}),(0,i.gn)([s.UMq],b.prototype,"element",null)},10406:(t,e,n)=>{n.d(e,{x:()=>s});var i=n(42600),r=n(59890),o=n(74788);let s=(()=>{class t extends r.FP{constructor(t,e,n){super(t,e,n),this.type="hint"}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a31,2),o.Y36(r.kk),o.Y36(r.c2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],features:[o._Bn([i.a31]),o.qOj]}),t})()},63790:(t,e,n)=>{n.d(e,{t:()=>b});var i=n(74788),r=n(42600),o=n(59890),s=n(2116),a=n(79765),l=n(66682),u=n(25917),c=n(43190),d=n(87874),h=n(46782),p=n(79196),g=n(45435),m=n(88002),f=n(68307),v=n(64387);let b=(()=>{class t extends o.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 a.xQ,this.stream$=(0,l.T)(this.toggle$.pipe((0,c.w)((t=>(0,u.of)(t).pipe((0,d.g)(t?0:this.hideDelay)))),(0,h.R)(this.hovered$),(0,p.r)()),this.hovered$.pipe((0,c.w)((t=>(0,u.of)(t).pipe((0,d.g)(t?this.showDelay:this.hideDelay)))),(0,h.R)(this.toggle$),(0,p.r)())).pipe((0,g.h)((()=>this.enabled)),(0,m.U)((t=>t&&!(0,s.mn)(this.el.nativeElement))),(0,f.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)(i.Y36(r.gsq),i.Y36(v.H3),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[i._Bn([(0,o.UK)(t),r.gsq]),i.qOj]}),t})()},20708:(t,e,n)=>{n.d(e,{Z:()=>a});var i=n(59890),r=n(26215),o=n(63790),s=n(74788);let a=(()=>{class t extends i.kk{constructor(t){super((t=>this.stream$.subscribe(t))),this.stream$=new r.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)(s.Y36(o.t))},t.ɵdir=s.lG2({type:t,selectors:[["","tuiHint","","tuiHintManual",""]],inputs:{tuiHintManual:"tuiHintManual"},features:[s._Bn([(0,i.UK)(t)]),s.qOj,s.TTD]}),t})()},64387:(t,e,n)=>{n.d(e,{H3:()=>o,bZ:()=>s});var i=n(74788),r=n(42600);n(2116);const o=(0,r.JN4)({direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"});let s=(()=>{class t extends r.QJb{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)(i.Y36(o,4))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},29907:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(42600),r=n(59890),o=n(63790),s=n(74788);let a=(()=>{class t extends o.t{constructor(){super(...arguments),this.currentRect=i.Jy9}onMove({clientX:t,clientY:e}){this.currentRect=(0,i.dDE)(t,e)}getClientRect(){return this.currentRect}}return t.ɵfac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.ɵdir=s.lG2({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousemove.silent",(function(t){return e.onMove(t)}))},features:[s._Bn([(0,r.Ic)(t),(0,r.UK)(t)]),s.qOj]}),t})()},51928:(t,e,n)=>{n.d(e,{D:()=>d});var i=n(97582),r=n(42600),o=n(59890),s=n(50035),a=n(15837),l=n(13938),u=n(64387),c=n(74788);class d extends o.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.directive=n,this.accessors=i,this.points=s.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 o=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:r.Jy9,a=o.left+o.width/2,l=o.top+o.height/2;if(this.points["top-left"][0]=o.top-e-8,this.points["top-left"][1]=a-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=a-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=a-22,this.points["bottom-left"][0]=o.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]=l-e+22,this.points["left-top"][1]=o.left-t-8,this.points.left[0]=l-e/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=l-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]=o.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 u=s.Fw.find((n=>this.checkPosition(this.points[n],t,e)));return this.points[u||this.fallback]}get accessor(){return(0,o.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{n.d(e,{j:()=>y});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(31837),l=n(19149),u=n(48874),c=n(15837),d=n(2116),h=n(89570),p=n(88002),g=n(46782),m=n(13938),f=n(63790),v=n(29907);function b(t,e){if(1&t&&r._UZ(0,"span",1),2&t){const t=e.polymorpheusOutlet;r.Q6J("innerHTML",t,r.oJD)}}class y{constructor(t,e,n,i,r,o,s,a,l,u,c,d){var h;this.animation=i,this.pointer=r,this.accessor=o,this.el=s,this.polymorpheus=a,this.hover=l,this.mode=u,this.visualViewportService=c,this.viewport=d,this.appearance=this.polymorpheus.$implicit.appearance||(null===(h=this.mode)||void 0===h?void 0:h.mode),e.pipe((0,p.U)((t=>this.visualViewportService.correct(t))),(0,g.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),t.pipe((0,g.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)||(0,d.mn)(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(t,e){const{height:n,width:i}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,s=this.accessor.getClientRect(),a=this.viewport.getClientRect();if(s===o.Jy9)return;const l=(0,o.Kiv)(e,4,a.width-i-4),[u,c]=this.visualViewportService.correct([s.top+s.height/2-t,s.left+s.width/2-l]);r.top=(0,o.O9r)(t),r.left=(0,o.O9r)(l),r.setProperty("--top",(0,o.O9r)((0,o.Kiv)(u,.5,n-1))),r.setProperty("--left",(0,o.O9r)((0,o.Kiv)(c,.5,i-1)))}}y.ɵfac=function(t){return new(t||y)(r.Y36(o.gsq),r.Y36(u.KG),r.Y36(o.a31,2),r.Y36(c.Pw),r.Y36(v.q,8),r.Y36(s.O4),r.Y36(r.SBq),r.Y36(h.yf),r.Y36(f.t),r.Y36(l.w,8),r.Y36(u.Lp),r.Y36(c.EO))},y.ɵcmp=r.Xpm({type:y,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([o.a31,u.KG,o.gsq,(0,s.ei)("hint"),(0,s.Wk)("hint",m.D)])],ngContentSelectors:["*"],decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(r.F$t(),r.Hsn(0),r.YNc(1,b,1,1,"span",0)),2&t&&(r.xp6(1),r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context))},directives:[h.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:[a.QF]},changeDetection:0}),(0,i.gn)([o.UMq],y.prototype,"update",null)},13938:(t,e,n)=>{n.d(e,{D:()=>c});var i=n(74788),r=n(42600),o=n(59890),s=n(48874),a=n(89570),l=n(58318),u=n(64387);let c=(()=>{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)(i.Y36(i.SBq),i.Y36(a.Al),i.Y36(s.BN),i.Y36(u.H3),i.Y36(r.eJF,8))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[i._Bn([(0,o.Ic)(t),(0,o.Fe)(t),{provide:a.Al,deps:[l.y,i.gxx],useClass:a.Al}]),i.TTD]}),t})()},58318:(t,e,n)=>{n.d(e,{y:()=>o});var i=n(42600),r=n(79236);const o=(0,i.N1V)((()=>r.j))},25715:(t,e,n)=>{n.d(e,{H3:()=>l.H3,t6:()=>a.t,go:()=>s,bZ:()=>l.bZ}),n(79236),n(13938);var i=n(12057),r=n(89570),o=n(74788);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[i.ez,r.wq]]}),t})();n(58318),n(44099),n(10406),n(42600),n(59890);var a=n(63790),l=(n(20708),n(64387));n(29907),n(51928)},29883:(t,e,n)=>{n.d(e,{Y0:()=>l.Y0,H3:()=>r.H3,Ym:()=>l.Ym,kI:()=>l.kI,Cs:()=>l.Cs,td:()=>i.td,dp:()=>i.dp,oH:()=>i.oH,t6:()=>r.t6,go:()=>r.go,bZ:()=>r.bZ,c8:()=>o.c,wt:()=>s.w,zw:()=>s.z,ec:()=>a.e,cn:()=>l.cn,WU:()=>u.W,fx:()=>i.fx});var i=n(12174),r=n(25715),o=n(74415),s=n(19149);n(15837);var a=n(81617),l=n(20735),u=n(21064)},74415:(t,e,n)=>{n.d(e,{c:()=>r}),n(93604);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})()},93604:(t,e,n)=>{n.d(e,{j:()=>s});var i=n(74788),r=n(24751),o=n(15837);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})()},19149:(t,e,n)=>{n.d(e,{w:()=>i.w,z:()=>o});var i=n(47999),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},47999:(t,e,n)=>{n.d(e,{w:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t extends i.QJb{constructor(){super(...arguments),this.mode=null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[r.qOj]}),t})()},81617:(t,e,n)=>{n.d(e,{e:()=>r}),n(78273);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})()},78273:(t,e,n)=>{n.d(e,{M:()=>l});var i=n(74788),r=n(42600),o=n(50035),s=n(46797),a=n(46782);let l=(()=>{class t{constructor(t,e){this.el=t,this.destroy$=e}set tuiScrollIntoView(t){t&&(0,s.H)(0).pipe((0,a.R)(this.destroy$)).subscribe((()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(o.fe,{bubbles:!0,detail:this.el.nativeElement}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(r.a31,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i._Bn([r.a31])]}),t})()},20735:(t,e,n)=>{n.d(e,{Y0:()=>O,Ym:()=>s.Y,z1:()=>r,kI:()=>x.k,Cs:()=>M,cn:()=>l});var i=n(42600);const r=(0,i.JN4)({iconCleaner:"tuiIconClose",hintOnDisabled:!1});var o=n(47307),s=n(44530),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var u=n(15837),c=n(66682),d=n(29856),h=n(98640);const p=new d.y(h.Z);var g=n(46782);class m{constructor(t,e,n,i,r,o,s,a,l,u,c,d,h){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=u,this.prefixDirective=c,this.postfixDirective=d,this.fillerDirective=h}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}}var f=n(63578),v=n(59557),b=n(60644),y=n(61183),_=n(99036),C=n(38190),w=n(40330),x=n(28986);const M=new a.OlP("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),O=[i.a31,{provide:M,deps:[a.sBO,i.a31,r,u.jt,o.x,s.Y,f.U,b.Z,y.G,_.r,x.k,w.x,C.f,v.s],useFactory:(t,e,n,r,...o)=>{const s=(0,c.T)(...o.map((({change$:t})=>t||p))).pipe((0,i.NAr)(t),(0,g.R)(e));return s.subscribe(),new m(s,n,r,...o)}}]},47307:(t,e,n)=>{n.d(e,{x:()=>o,q:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.appearance=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},44530:(t,e,n)=>{n.d(e,{Y:()=>o,b:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.cleaner=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},63578:(t,e,n)=>{n.d(e,{U:()=>o,B:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},59557:(t,e,n)=>{n.d(e,{s:()=>o,k:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.filler=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},61183:(t,e,n)=>{n.d(e,{G:()=>o,a:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},60644:(t,e,n)=>{n.d(e,{Z:()=>o,A:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},99036:(t,e,n)=>{n.d(e,{r:()=>o,x:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.labelOutside=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},38190:(t,e,n)=>{n.d(e,{f:()=>o,T:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.postfix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},40330:(t,e,n)=>{n.d(e,{x:()=>o,A:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.prefix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},28986:(t,e,n)=>{n.d(e,{k:()=>o,s:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.size="l"}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},21064:(t,e,n)=>{n.d(e,{W:()=>r}),n(42);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})()},42:(t,e,n)=>{n.d(e,{o:()=>a});var i=n(27907),r=n(73784),o=n(15837),s=n(74788);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?i.z.Disabled:this.readOnly?i.z.Readonly:this.active?i.z.Active:this.hover?i.z.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)(s.Y36(o.Au))},t.ɵdir=s.lG2({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,e){1&t&&s.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(s.uIk("data-appearance",e.appearance)("data-state",e.interactiveState),s.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:[s._Bn([r.CV])]}),t})()},92444:(t,e,n)=>{n.d(e,{N:()=>i});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))()},27907:(t,e,n)=>{n.d(e,{z:()=>i});var i=(()=>(function(t){t.Active="active",t.Disabled="disabled",t.Hover="hover",t.Readonly="readonly"}(i||(i={})),i))()},5938:(t,e,n)=>{n.d(e,{q:()=>i});var i=(()=>(function(t){t.End="end",t.Single="single",t.Start="start"}(i||(i={})),i))()},43232:(t,e,n)=>{n.d(e,{D1Q:()=>i.D1,CV2:()=>ft.CV,Y0:()=>Ot.Y0,GcO:()=>a.Gc,dxT:()=>a.dx,PwD:()=>a.Pw,Y2g:()=>vt.Y2,U0F:()=>a.U0,Gs9:()=>a.Gs,Ccr:()=>a.Cc,N1S:()=>a.N1,zE9:()=>At.zE,hW1:()=>At.hW,AJd:()=>At.AJ,Auc:()=>a.Au,R3j:()=>At.R3,HOy:()=>a.HO,TKC:()=>a.TK,hmb:()=>a.hm,iSh:()=>a.iS,YmJ:()=>Ot.Ym,S0o:()=>a.S0,kId:()=>Ot.kI,CsI:()=>Ot.Cs,sEt:()=>a.sE,GK_:()=>P,J9F:()=>_,NmR:()=>Et.N,fNO:()=>O,qiE:()=>D.q,gXS:()=>L.g,pcV:()=>F,upG:()=>lt,ROA:()=>at,kkl:()=>i.kk,tdC:()=>Ot.td,dpK:()=>Ot.dp,Shu:()=>ut,ijq:()=>ct,TGm:()=>T.T,n6B:()=>dt,goS:()=>Ot.go,bZA:()=>Ot.bZ,o1K:()=>pt.o,jhF:()=>mt,z3N:()=>It.z,jzK:()=>I,dSp:()=>w,c86:()=>Ot.c8,wtG:()=>Ot.wt,zw7:()=>Ot.zw,$7p:()=>A.$,HiG:()=>S,vKW:()=>N.v,fBj:()=>bt,ycg:()=>yt.y,KWI:()=>Mt,qD5:()=>Dt.q,O4x:()=>i.O4,WwM:()=>Pt,OkA:()=>zt.Ok,ecP:()=>Ot.ec,IB$:()=>E.IB,Jyu:()=>E.Jy,EIu:()=>x.EI,cnw:()=>Ot.cn,jfl:()=>Tt,QA7:()=>wt,WUl:()=>Ot.WU,RBi:()=>a.RB,oEG:()=>a.oE,UKU:()=>i.UK,P7F:()=>a.P7,Ic9:()=>i.Ic,cpA:()=>a.cp,ckU:()=>a.ck,O0j:()=>k.O0,fxH:()=>Ot.fx,QFo:()=>r.QF,lx_:()=>q.lx,LfO:()=>q.Lf,ic8:()=>q.ic,DII:()=>q.DI,R9V:()=>q.R9,GwG:()=>r.Gw,X9R:()=>r.X9,KV6:()=>Nt});var i=n(59890),r=n(31837),o=n(74788),s=n(42600),a=n(15837),l=n(89570),u=n(46797),c=n(22759),d=n(46782),h=n(72361);const p=(0,s.N1V)((()=>(0,o.f3M)(s.fLQ)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"));var g=n(48236),m=n(12057);function f(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}function v(t,e){if(1&t&&(o.TgZ(0,"label",4),o.YNc(1,f,2,1,"ng-container",5),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function b(t,e){if(1&t&&o._UZ(0,"div",6),2&t){const t=e.polymorpheusOutlet;o.Q6J("innerHTML",t,o.oJD)}}let y=(()=>{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,u.H)((0,s.dtH)(this.autoClose)?this.autoClose:3e3).pipe((0,d.R)((0,c.R)(this.el.nativeElement,"mouseenter")),(0,h.a)((()=>(0,c.R)(this.el.nativeElement,"mouseleave"))),(0,d.R)(this.destroy$)).subscribe((()=>this.close()))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(s.a31,2),o.Y36(p),o.Y36(a.Pw),o.Y36(l.yf))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:5,hostBindings:function(t,e){2&t&&(o.d8E("@tuiFadeIn",e.options)("@tuiSlideIn",e.animation)("@tuiHeightCollapse",e.animation),o.Udp("margin",e.position))},features:[o._Bn([s.a31])],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&&(o.TgZ(0,"tui-notification",0),o.NdJ("close",(function(){return e.close()})),o.YNc(1,v,2,2,"label",1),o.TgZ(2,"div",2),o.YNc(3,b,1,1,"div",3),o.qZA(),o.qZA()),2&t&&(o.Q6J("hasIcon",e.item.hasIcon)("hideClose",!e.item.hasCloseButton)("icon",e.item.icon)("status",e.item.status),o.xp6(1),o.Q6J("ngIf",e.item.label),o.xp6(2),o.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.item))},directives:[g.L,m.O5,l.Li],styles:["[_nghost-%COMP%]{display:block;box-shadow:var(--tui-shadow-dropdown);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;word-break:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[r.QF,r.Gw,r.eu]},changeDetection:0}),t})(),_=(()=>{class t extends s.d56{constructor(t,e){super(e),this.defaultOptions=t,this.component=new l.Al(y)}}return t.ɵfac=function(e){return new(e||t)(o.LFG(a.Ln),o.LFG(s.llV))},t.ɵprov=o.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var C=n(18289);n(57634);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq]]}),t})();n(34474);var x=n(26637),M=n(21064);let O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,M.W,x.EI,w]]}),t})();var k=n(21142);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI,O,l.wq]]}),t})(),P=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({providers:[(0,s.XHb)(_)],imports:[[m.ez,l.wq,S]]}),t})();n(414),n(23761),n(99766);var T=n(77488);n(89910),n(95191);var A=n(78831);n(65566),n(46109),n(81617);var E=n(49229);n(3395),n(73460);let I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI]]}),t})();n(10259);var D=n(22545),L=n(65266);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI,l.wq]]}),t})();var N=n(91283),z=n(95639),R=n(25917),B=n(79765),H=n(66682),V=n(43190),Y=n(88002),j=n(45435),Z=n(59193);const $=(0,s.JN4)(Z.E),U=(0,s.JN4)({size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""});var G=n(62579),q=n(2116),J=n(29856),Q=n(15257);let W=(()=>{class t extends J.y{constructor(t,e,n){super((t=>(0,H.T)(this.esc$,this.mousedown$).subscribe(t))),this.win=t,this.doc=e,this.el=n,this.esc$=(0,s.mLY)(this.doc,"keydown").pipe((0,j.h)((t=>{const e=(0,s.mAU)(t);return"Escape"===t.key&&!t.defaultPrevented&&(this.element.contains(e)||this.isOutside(e))}))),this.mousedown$=(0,s.mLY)(this.doc,"mousedown").pipe((0,j.h)((t=>(0,q.ic)(this.win)-t.clientX>17&&this.isOutside((0,s.mAU)(t)))),(0,V.w)((()=>(0,s.mLY)(this.doc,"mouseup").pipe((0,Q.q)(1),(0,Y.U)(s.mAU),(0,j.h)((t=>this.isOutside(t)))))))}get element(){return this.el.nativeElement}isOutside(t){return(0,s.veZ)(t)&&(!(0,s.PPV)(this.element,t)||t===this.element)}}return t.ɵfac=function(e){return new(e||t)(o.LFG(G.m9),o.LFG(m.K0),o.LFG(o.SBq))},t.ɵprov=o.Yz7({token:t,factory:t.ɵfac}),t})();var K=n(30528);function X(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}function tt(t,e){if(1&t&&(o.TgZ(0,"header",6),o.YNc(1,X,2,1,"ng-container",3),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function et(t,e){if(1&t){const t=o.EpF();o.ynx(0),o._UZ(1,"div",7),o.TgZ(2,"div",8),o.TgZ(3,"button",9),o.NdJ("click",(function(){return o.CHM(t),o.oxw().context.$implicit.complete()})),o._uU(4),o.qZA(),o.qZA(),o.BQk()}if(2&t){const t=e.polymorpheusOutlet,n=o.oxw();let i;o.xp6(1),o.Q6J("innerHTML",t,o.oJD),o.xp6(3),o.hij(" ",(null==(i=n.context.data)?null:i.button)||"OK"," ")}}function nt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",10),o.TgZ(1,"button",11),o.NdJ("click",(function(){return o.CHM(t),o.oxw().close$.next()}))("mousedown.prevent.silent",(function(){return 0})),o.ALo(2,"async"),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("appearance",t.fullscreen?"secondary":"")("icon",t.icons.close)("title",o.lcZ(2,3,t.closeWord$))}}const it=new Error("Required dialog was dismissed");function rt(t){return(0,z.b)(t)?t:(0,R.of)(t)}let ot=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this.duration=t,this.isMobile=e,this.context=n,this.closeWord$=a,this.icons=l,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new B.xQ,(0,H.T)(this.close$.pipe((0,V.w)((()=>rt(n.closeable)))),r.pipe((0,V.w)((()=>rt(n.dismissible)))),o.pipe((0,Y.U)(s.YeN))).pipe((0,j.h)(Boolean),(0,d.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(it):this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(a.dx),o.Y36(s.fLQ),o.Y36(l.yf),o.Y36(s.a31,2),o.Y36(W),o.Y36($),o.Y36(a.U0),o.Y36(a.Gs))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(t,e){2&t&&(o.uIk("data-appearance",e.context.appearance)("data-size",e.size),o.d8E("@tuiSlideInTop",e.slideInTop)("@tuiFadeIn",e.slideInTop),o.ekj("_centered",e.header))},features:[o._Bn([s.a31,W])],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&&(o.YNc(0,tt,2,2,"header",0),o.TgZ(1,"div",1),o._UZ(2,"h2",2),o.TgZ(3,"section"),o.YNc(4,et,5,2,"ng-container",3),o.qZA(),o.qZA(),o._UZ(5,"div",4),o.YNc(6,nt,3,5,"div",5)),2&t&&(o.Q6J("ngIf",e.header),o.xp6(2),o.Q6J("id",e.context.id)("textContent",e.context.label),o.xp6(2),o.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),o.xp6(2),o.Q6J("ngIf",e.context.closeable))},directives:[m.O5,l.Li,C.v,K.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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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%]{min-width:100vw;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;z-index:1;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:[r.X9,r.QF]}}),t})();const st=new l.Al(ot);let at=(()=>{class t extends s.d56{constructor(){super(...arguments),this.component=st,this.defaultOptions=Object.assign(Object.assign({},(0,o.f3M)(U)),{data:void 0})}}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵprov=o.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),lt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({providers:[(0,s.QaK)(at)],imports:[[l.wq,O,m.ez,s.Q7V]]}),t})();n(24956);let ut=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq]]}),t})();n(2793);let ct=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,w]]}),t})();n(20690);let dt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez]]}),t})();n(53620);let ht=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,s.Ah6]]}),t})();n(55863),n(93529);var pt=n(98778),gt=n(12174);let mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,s.WDk,s.lTc,s.Ah6,gt.dp]]}),t})();var ft=n(73784),vt=n(38586);n(87605);let bt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[x.EI,M.W,l.wq]]}),t})();var yt=n(75526),_t=(n(19042),n(24751)),Ct=(n(63360),n(25715));let wt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,M.W,x.EI,Ct.go,l.wq]]}),t})();var xt=n(74415);let Mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,_t.u5,l.wq,xt.c,s.udY,M.W,x.EI,wt,s.gIU]]}),t})();var Ot=n(29883);n(52846),n(57971),n(6226),n(84651);let kt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,s.WDk]]}),t})();var St=n(30126);let Pt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,St.X1,s.mLu,kt,ht,s.FiZ,s.F_5,s.eI3]]}),t})();n(75830);let Tt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var At=n(50035),Et=n(92444),It=n(27907),Dt=n(5938),Lt=n(34022),Ft=n(87519);function Nt(t,e){return(0,Lt.z)((0,Y.U)(t),(0,Ft.x)(),(0,s.AoQ)(e))}var zt=n(48874)},3395:(t,e,n)=>{n.d(e,{d:()=>h});var i=n(74788),r=n(42600),o=n(10259),s=n(12057),a=n(73460),l=n(63973),u=n(78831);function c(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.value.formattedYear," ")}}function d(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",3),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onYearClick()})),i._uU(1),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("tuiFocusable",!1),i.xp6(1),i.hij(" ",t.value.formattedYear," ")}}let h=(()=>{class t{constructor(){this.value=r.qld.currentLocal(),this.min=r.nNo,this.max=r.OyN,this.valueChange=new i.vpe,this.yearClick=new i.vpe}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){const{computedMin:t,computedMax:e}=this;return t.year===e.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(t){const e=this.value.append(t),{computedMin:n,computedMax:i}=this;n.monthSameOrAfter(e)?this.updateValue(n):this.updateValue(i.monthSameOrBefore(e)?i:e)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],[4,"ngIf","ngIfElse"],["button",""],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"tuiFocusable","click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-primitive-spin-button",0),i.NdJ("leftClick",(function(){return e.onPrevMonthClick()}))("rightClick",(function(){return e.onNextMonthClick()})),i._uU(1),i.ALo(2,"async"),i.ALo(3,"tuiMonth"),i.YNc(4,c,2,1,"ng-container",1),i.YNc(5,d,2,2,"ng-template",null,2,i.W1O),i.qZA()),2&t){const t=i.MAs(6);i.Q6J("focusable",!1)("leftDisabled",e.prevMonthDisabled)("rightDisabled",e.nextMonthDisabled),i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,e.value))," "),i.xp6(3),i.Q6J("ngIf",e.oneYear)("ngIfElse",t)}},directives:[o.a,s.O5,a.V,l.t],pipes:[s.Ov,u.$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})()},84651:(t,e,n)=>{n.d(e,{M:()=>h});var i=n(12057),r=n(74788),o=n(42600),s=n(48874),a=n(46782);function l(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 u(t,e){if(1&t&&(r.O4$(),r.ynx(0),r.YNc(1,l,1,1,"defs",3),r.BQk()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.items)}}function c(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 d(t,e){if(1&t&&(r.O4$(),r.YNc(0,c,2,1,"defs",5)),2&t){const t=r.oxw();r.Q6J("ngForOf",t.items)}}let h=(()=>{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,a.R)(this.destroy$)).subscribe((t=>{this.items=t.values(),this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(s.K5),r.Y36(r.sBO),r.Y36(o.a31,2),r.Y36(r.Lbi))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-svg-defs-host"]],features:[r._Bn([o.a31])],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,u,2,1,"ng-container",1),r.YNc(2,d,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})()},99766:(t,e,n)=>{n.d(e,{h:()=>a});var i=n(42600),r=n(15837);const o=({month:t,rowIndex:e,colIndex:n,firstDayOfWeek:r})=>{let o=e*i.NAy+n-((t,e)=>{const n=new Date(t.year,t.month,1).getDay();return n>=e?n-e:i.NAy-(e-n)})(t,r)+1;return o>t.daysCount&&(o-=t.daysCount,t=t.append({month:1})),o<=0&&(o=(t=t.append({month:-1})).daysCount+o),new i.TU1(t.year,t.month,o)};var s=n(74788);let a=(()=>{class t{constructor(t){this.firstDayOfWeek=t,this.currentMonth=null,this.currentSheet=[]}transform(t,e=!1){var n;if(null===(n=this.currentMonth)||void 0===n?void 0:n.monthSame(t))return this.currentSheet;const r=[];for(let n=0;n<6;n++){const s=[];for(let r=0;re.yeare.year>n.year||e.month>n.month;if(!a(i)||e){if(l(i)&&!e)break;s.push(i)}}r.push(s)}return this.currentSheet=r.filter((t=>t.length)),this.currentMonth=t,this.currentSheet}}return t.ɵfac=function(e){return new(e||t)(s.Y36(r.Sy,16))},t.ɵpipe=s.Yjl({name:"tuiCalendarSheet",type:t,pure:!0}),t})()},77488:(t,e,n)=>{n.d(e,{T:()=>a});var i=n(26637),r=n(50035),o=n(19633),s=n(74788);let a=(()=>{class t{constructor(t){this.svgOptions=t,this.staticPath=this.svgOptions.path("tuiIcon").replace("tuiIcon.svg#tuiIcon","").replace(`tuiIcon.svg${r.uJ}#tuiIcon`,"")}transform(t){if(!t)return null;switch(t){case o.Xi.BL:case o.Xi.BQ:case o.Xi.CW:case o.Xi.GF:case o.Xi.GP:case o.Xi.MF:case o.Xi.MQ:case o.Xi.NC:case o.Xi.RE:case o.Xi.YT:return`${this.staticPath}${o.Xi.FR}.png`;case o.Xi.SX:return`${this.staticPath}${o.Xi.NL}.png`;default:return`${this.staticPath}${t}.png`}}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.$E,16))},t.ɵpipe=s.Yjl({name:"tuiFlag",type:t,pure:!0}),t})()},89910:(t,e,n)=>{n(48874)},78831:(t,e,n)=>{n.d(e,{$:()=>s});var i=n(15837),r=n(88002),o=n(74788);let s=(()=>{class t{constructor(t){this.months$=t}transform({month:t}){return this.months$.pipe((0,r.U)((e=>e[t])))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.$R,16))},t.ɵpipe=o.Yjl({name:"tuiMonth",type:t,pure:!0}),t})()},65566:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(15837),r=n(88002),o=n(74788);function s(t){const e=t.length-1;return[t[e],...t.slice(0,e)]}let a=(()=>{class t{constructor(t){this.firstDayOfWeekIndex=t}transform(t){return t.pipe((0,r.U)(s),(0,r.U)((t=>[...t.slice(this.firstDayOfWeekIndex),...t.slice(0,this.firstDayOfWeekIndex)])))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.Sy,16))},t.ɵpipe=o.Yjl({name:"tuiOrderWeekDays",type:t,pure:!0}),t})()},73784:(t,e,n)=>{n.d(e,{CV:()=>u});var i=n(74788),r=n(15837);r.rL,new i.tp0,r.rL,i.SBq;var o=n(19149),s=n(25917),a=n(39761),l=n(88002);const 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}};n(42600)},48874:(t,e,n)=>{n.d(e,{zE:()=>c,BN:()=>h,KG:()=>f,Ok:()=>w,K5:()=>O,Lp:()=>k});var i=n(74788),r=n(42600),o=n(15837),s=n(29856),a=n(88002),l=n(87519),u=n(47349);let c=(()=>{class t extends s.y{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.media=t,this.ngZone=e,this.size$=n,this.sorted=Object.values(this.media).sort(((t,e)=>t-e)),this.invert=Object.keys(this.media).reduce(((t,e)=>Object.assign(Object.assign({},t),{[this.media[e]]:e})),{}),this.stream$=this.size$.pipe((0,a.U)((({width:t})=>this.sorted.find((e=>e>t)))),(0,a.U)((t=>this.invert[t||this.sorted[this.sorted.length-1]])),(0,l.x)(),(0,r.Yry)(this.ngZone),(0,u.d)({bufferSize:1,refCount:!0}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(o.J_),i.LFG(i.R0b),i.LFG(r.fMG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var d=n(26215);let h=(()=>{class t extends d.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})();var p=n(62579),g=n(59890),m=n(68939);let f=(()=>{class t extends s.y{constructor(t,e,n,i){super((o=>e.pipe((0,a.U)((()=>t.nativeElement.getBoundingClientRect())),(0,a.U)((t=>i.getPosition(t))),(0,r.fL9)(n),(0,m.x)((()=>i.getPosition(r.Jy9)))).subscribe(o)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(p.L1),i.LFG(i.R0b),i.LFG(g.uG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var v=n(34016),b=n(66682),y=n(46797),_=n(59193),C=n(46782);let w=(()=>{class t extends s.y{constructor(t,e,n,i){const o=t?(0,b.T)((0,y.H)(0),n).pipe((0,a.U)((()=>t.isActive)),(0,l.x)(),(0,r.Yry)(e),(0,C.R)(i)):_.E;super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(v.Od,8),i.LFG(i.R0b),i.LFG(p.L1),i.LFG(r.a31,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var x=n(91211),M=n(18147);let O=(()=>{class t{constructor(t,e,n){this.tuiSanitizer=t,this.sanitizer=e,this.originals={},this.items$=new d.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,M.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(o.hm,8),i.LFG(x.H7),i.LFG(o.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(p.m9),i.LFG(r.jFN))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},15837:(t,e,n)=>{n.d(e,{Gc:()=>a,dx:()=>l,Pw:()=>u,U0:()=>_,Gs:()=>d,Cc:()=>h,N1:()=>g,rJ:()=>f,PL:()=>w,xp:()=>O,Sy:()=>v,It:()=>S,ki:()=>T,AA:()=>k,rL:()=>N,sf:()=>z,J_:()=>F,Au:()=>R,$R:()=>y,PH:()=>C,Ln:()=>V,HO:()=>j,IQ:()=>$,TK:()=>s,hm:()=>q,iS:()=>K,P:()=>M,oC:()=>X,U4:()=>x,u_:()=>tt,V5:()=>nt,jt:()=>rt,S0:()=>ot,r2:()=>at,sE:()=>lt,EO:()=>ut,RB:()=>p,oE:()=>m,P7:()=>U,cp:()=>st,ck:()=>ct});var i=n(74788),r=n(42600),o=n(12057);const s=(0,r.N1V)((()=>{var t,e,n;return null!==(n=null===(e=null===(t=(0,i.f3M)(o.K0).defaultView)||void 0===t?void 0:t.matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&void 0!==n&&n})),a=300,l=(0,r.N1V)((()=>(0,i.f3M)(s)?0:a)),u=(0,r.N1V)((()=>({value:"",params:{duration:(0,i.f3M)(l)}}))),c=((0,r.N1V)((()=>(0,i.X6Q)())),{check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"}),d=(0,r.JN4)(c),h=new i.OlP("[TUI_DATA_LIST_ACCESSOR]");function p(t){return{provide:h,useExisting:t}}const g=new i.OlP("[TUI_DATA_LIST_HOST]");function m(t){return{provide:g,useExisting:t}}const f=(0,r.JN4)((t=>t.isWeekend?"weekend":"weekday")),v=(new i.OlP("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),new i.OlP("[TUI_ELEMENT_REF]"),(0,r.JN4)(r.Lrk.Monday));var b=n(19633);const y=(0,r.N1V)((0,b.vv)("months")),_=(0,r.N1V)((0,b.vv)("close")),C=(0,r.N1V)((0,b.vv)("nothingFoundMessage")),w=(0,r.N1V)((0,b.vv)("defaultErrorMessage")),x=(0,r.N1V)((0,b.vv)("spinTexts")),M=(0,r.N1V)((0,b.vv)("shortWeekDays")),O="assets/taiga-ui/icons",k=(0,r.JN4)(O),S=(0,r.JN4)({});var P=n(2116);const T=(0,r.N1V)((()=>(0,P.ht)((0,i.f3M)(k))));var A=n(62579),E=n(9945),I=n(39761),D=n(88002),L=n(87519);const F=(0,r.JN4)({mobile:768,desktopSmall:1024,desktopLarge:1280}),N=(0,r.N1V)((()=>{const t=(0,i.f3M)(A.m9),e=(0,i.f3M)(F);return(0,r.mLY)(t,"resize").pipe((0,E.B)(),(0,I.O)(null),(0,D.U)((()=>(0,P.Je)(t,e))),(0,L.x)(),(0,r.Yry)((0,i.f3M)(i.R0b)))})),z=new i.OlP("[TUI_LEGACY_MASK]"),R=new i.OlP("[TUI_MODE]"),B={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},H={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:t})=>B[t],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},V=(0,r.JN4)(H);var Y=n(50035);const j=(0,r.JN4)(Y.Jl);var Z=n(25917);(0,r.JN4)((0,Z.of)(Object.assign(Object.assign({},Y.Jl),{decimalLimit:NaN})));const $=new i.OlP("[TUI_OPTION_CONTENT]");function U(t){return{provide:$,useValue:t}}const G=t=>{const e=t.length-1;return[t[e],...t.slice(0,e)]},q=((0,r.N1V)((()=>{const t=(0,i.f3M)(v);return(0,i.f3M)(M).pipe((0,D.U)(G),(0,D.U)((e=>[...e.slice(t),...e.slice(0,t)])))})),new i.OlP("[TUI_SANITIZER]"));var J=n(66682),Q=n(43190),W=n(46782);const K=(0,r.N1V)((()=>{const t=(0,i.f3M)(o.K0);return(0,J.T)((0,r.mLY)(t,"selectionchange"),(0,r.mLY)(t,"mouseup"),(0,r.mLY)(t,"mousedown").pipe((0,Q.w)((()=>(0,r.mLY)(t,"mousemove").pipe((0,W.R)((0,r.mLY)(t,"mouseup")))))),(0,r.mLY)(t,"keydown"),(0,r.mLY)(t,"keyup")).pipe((0,E.B)())})),X=(0,r.JN4)({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),tt=(0,r.JN4)(r.NJB);var et=n(54487);const nt=(0,r.JN4)(et.y);var it=n(92444);const rt=(0,r.JN4)(it.N.Textfield),ot=new i.OlP("[TUI_TEXTFIELD_HOST]");function st(t){return{provide:ot,useExisting:t}}const at=(0,r.JN4)("Taiga"),lt=new i.OlP("[TUI_VALUE_ACCESSOR]"),ut=(0,r.N1V)((()=>{const t=(0,i.f3M)(A.m9);return{type:"viewport",getClientRect:()=>({top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight})}}));function ct(t){return{provide:ut,useExisting:t}}},18147:(t,e,n)=>{function i(t){return!(!t||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||i(t.parentElement))}function r({document:t,innerWidth:e}){return Math.max(t.documentElement.clientWidth||0,e||0)}n.d(e,{qK:()=>i,ic:()=>r,DI:()=>s,NK:()=>c});var o=n(42600);function s(t){const e=t.cloneRange(),{startContainer:n,startOffset:i,endContainer:r,endOffset:s}=e,{ownerDocument:a}=n;if(!a)return e;const l=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,o.LwS);l.currentNode=n;do{const t=l.currentNode,r=t.textContent||"",s=t===n?r.slice(0,Math.max(0,i+1)):r,a=Math.max(s.lastIndexOf(" "),s.lastIndexOf(o.f$6),s.lastIndexOf(o.tUj))+1;if(e.setStart(t,0),a){e.setStart(t,a);break}}while(l.previousNode());l.currentNode=r;do{const t=l.currentNode,n=t.textContent||"",i=t===r?n.slice(s+1):n,a=[i.indexOf(" "),i.indexOf(o.f$6),i.indexOf(o.tUj)].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-i.length);break}}while(l.nextNode());return e}const a='width="',l='height="',u="")));if(!(null==i?void 0:i.includes(a))||!i.includes(l))return`${n.replace(u,``;const r=i.indexOf(a),o=i.indexOf(l),s=r+a.length,c=o+l.length,d=i.slice(s,i.indexOf('"',s)),h=i.slice(c,i.indexOf('"',c));if(!h||!d||d.includes("%")||h.includes("%")||d.includes("em")||h.includes("em"))return n.replace(u,`${n}`}},95191:(t,e,n)=>{n.d(e,{lx:()=>s,Lf:()=>o});var i=n(42600),r=n(50035);function o(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.dtH)(e)?n.slice(0,Math.max(0,e)):n}function s(t,e={}){const{decimalLimit:n,decimalSeparator:s,thousandSeparator:a,zeroPadding:l,rounding:u}=Object.assign(Object.assign({},r.Jl),e),c=Number.isFinite(n)?(0,i.h0X)({value:t,precision:n,method:u}):t,d=String(Math.floor(Math.abs(c)));let h=o(c,n);if(Number.isFinite(n))if(l){const t=Math.max(n-h.length,0);h=`${h}${"0".repeat(t)}`}else h=h.replace(/0*$/,"");const p=d.length%3;let g=(t<0?i.fv1:"")+d.charAt(0);for(let t=1;t3&&(g+=a),g+=d.charAt(t);return h?g+s+h:g}},2116:(t,e,n)=>{n.d(e,{qK:()=>i.qK,lx:()=>r.lx,Lf:()=>r.Lf,ic:()=>i.ic,DI:()=>i.DI,ht:()=>o.ht,Je:()=>s,mn:()=>o.mn,lp:()=>o.lp,R9:()=>o.R9});var i=n(18147),r=n(95191);n(42600),n(50035);var o=n(1585);function s(t,{mobile:e}){return(0,i.ic)(t){n.d(e,{_X:()=>o,ht:()=>a,kL:()=>l,mn:()=>c,jL:()=>d,lp:()=>h,R9:()=>g});const i=1.5,r=2.5;function o(t,e=!1,n=!1,o=!1,s="m"){const a="s"===s?0:.25;let l=0;return t&&(l+=i+a),e&&(l+=i+a),n&&(l+=i+a),o&&(l+=r+a),l}var s=n(50035);function a(t){const e=t.endsWith("/")?t:`${t}/`;return t=>t.startsWith("tuiIcon")?`${e}${t}.svg${s.uJ}#${t}`:(0,s.oA)(t)}function l(t){return 1===t.length||s.Nq.includes(t)}var u=n(42600);function c(t,e="tui-hints-host"){var n;return!!(null===(n=(0,u.PU1)(t))||void 0===n?void 0:n.some((t=>!t.closest(e))))}function d(t){const e=t.trim();return e.startsWith("<")&&e.endsWith(">")}function h(t,e){return(n,i)=>{const r=n||Object.assign({},i||e);return Object.keys(t).forEach((e=>{r[e]=t[e]})),r}}const p={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function g(t,e="s"){return p[t]>p[e]}},19633:(t,e,n)=>{n.d(e,{Xi:()=>i,vv:()=>P});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))();const r={months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],close:"关闭",nothingFoundMessage:"什么都没找到",defaultErrorMessage:"无效值",spinTexts:["前","后"],shortWeekDays:["周一","周二","周三","周四","周五","周六","周日"],countries:{[i.AD]:"安道尔",[i.AE]:"阿拉伯联合酋长国",[i.AF]:"阿富汗",[i.AG]:"安提瓜和巴布达",[i.AI]:"安圭拉",[i.AL]:"阿尔巴尼亚",[i.AM]:"亚美尼亚",[i.AO]:"安哥拉",[i.AR]:"阿根廷",[i.AT]:"奥地利",[i.AU]:"澳大利亚",[i.AW]:"阿鲁巴",[i.AZ]:"阿塞拜疆",[i.BA]:"波斯尼亚和黑塞哥维那",[i.BB]:"巴巴多斯",[i.BD]:"孟加拉国",[i.BE]:"比利时",[i.BF]:"布基纳法索",[i.BG]:"保加利亚",[i.BH]:"巴林",[i.BI]:"布隆迪",[i.BJ]:"贝宁",[i.BL]:"圣巴泰勒米岛",[i.BM]:"百慕大",[i.BN]:"文莱达鲁萨兰国",[i.BO]:"玻利维亚",[i.BQ]:"荷属加勒比区",[i.BR]:"巴西",[i.BS]:"巴哈马",[i.BT]:"不丹",[i.BW]:"博茨瓦纳",[i.BY]:"白罗斯",[i.BZ]:"伯利兹",[i.CA]:"加拿大",[i.CD]:"刚果民主共和國",[i.CF]:"中非共和国",[i.CG]:"刚果(布拉柴维尔)",[i.CH]:"瑞士",[i.CI]:"科特迪瓦",[i.CL]:"智利",[i.CM]:"喀麦隆",[i.CN]:"中国",[i.CO]:"哥伦比亚",[i.CR]:"哥斯达黎加",[i.CU]:"古巴",[i.CV]:"佛得角",[i.CW]:"库拉索岛",[i.CY]:"塞浦路斯",[i.CZ]:"捷克共和国",[i.DE]:"德国",[i.DJ]:"吉布提",[i.DK]:"丹麦",[i.DM]:"多米尼克",[i.DO]:"多米尼加共和国",[i.DZ]:"阿尔及利亚",[i.EC]:"厄瓜多尔",[i.EE]:"爱沙尼亚",[i.EG]:"埃及",[i.ER]:"厄立特里亚",[i.ES]:"西班牙",[i.ET]:"埃塞俄比亚",[i.FI]:"芬兰",[i.FJ]:"斐济",[i.FK]:"福克兰群岛",[i.FM]:"密克罗尼西亚联邦",[i.FR]:"法国",[i.GA]:"加蓬",[i.GB]:"英国",[i.GD]:"格林纳达",[i.GE]:"圭亚那",[i.GF]:"格鲁吉亚",[i.GH]:"加纳",[i.GI]:"直布罗陀",[i.GL]:"格陵兰",[i.GM]:"冈比亚",[i.GN]:"瓜德罗普岛",[i.GP]:"几内亚",[i.GQ]:"赤道几内亚",[i.GR]:"希腊",[i.GT]:"危地马拉",[i.GW]:"几内亚比绍",[i.GY]:"圭亚那",[i.HK]:"中国香港特别行政区",[i.HN]:"洪都拉斯",[i.HR]:"克罗地亚",[i.HT]:"海地",[i.HU]:"匈牙利",[i.ID]:"印度尼西亚",[i.IE]:"爱尔兰",[i.IL]:"以色列",[i.IN]:"印度",[i.IQ]:"伊拉克",[i.IR]:"伊朗",[i.IS]:"冰岛",[i.IT]:"意大利",[i.JM]:"牙买加",[i.JO]:"约旦",[i.JP]:"日本",[i.KE]:"肯尼亚",[i.KG]:"吉尔吉斯斯坦",[i.KH]:"柬埔寨",[i.KM]:"科摩罗",[i.KN]:"圣基茨和尼维斯",[i.KP]:"朝鲜",[i.KR]:"韩国",[i.KW]:"科威特",[i.KY]:"开曼群岛",[i.KZ]:"哈萨克斯坦",[i.LA]:"老挝",[i.LB]:"黎巴嫩",[i.LC]:"圣卢西亚",[i.LI]:"列支敦士登",[i.LK]:"斯里兰卡",[i.LR]:"利比里亚",[i.LS]:"莱索托",[i.LT]:"立陶宛",[i.LU]:"卢森堡",[i.LV]:"拉脱维亚",[i.LY]:"利比亚",[i.MA]:"摩洛哥",[i.MC]:"摩纳哥",[i.MD]:"摩尔多瓦",[i.ME]:"圣马丁",[i.MF]:"黑山",[i.MG]:"马达加斯加",[i.MK]:"北马其顿共和国",[i.ML]:"马里",[i.MM]:"缅甸",[i.MN]:"蒙古",[i.MO]:"马提尼克岛",[i.MQ]:"中国.澳门",[i.MR]:"毛里塔尼亚",[i.MS]:"蒙特塞拉特",[i.MT]:"马耳他",[i.MU]:"毛里求斯",[i.MV]:"马尔代夫",[i.MW]:"马拉维",[i.MX]:"墨西哥",[i.MY]:"马来西亚",[i.MZ]:"莫桑比克",[i.NA]:"纳米比亚",[i.NC]:"新喀里多尼亞",[i.NE]:"尼日尔",[i.NG]:"尼日利亚",[i.NI]:"尼加拉瓜",[i.NL]:"荷兰",[i.NO]:"挪威",[i.NP]:"尼泊尔",[i.NZ]:"新西兰",[i.OM]:"阿曼",[i.PA]:"巴拿马",[i.PE]:"秘鲁",[i.PF]:"法属波利尼西亚(大溪地)",[i.PG]:"巴布亚新几内亚",[i.PH]:"菲律宾",[i.PK]:"巴基斯坦",[i.PL]:"波兰",[i.PT]:"葡萄牙",[i.PW]:"帕劳",[i.PY]:"巴拉圭",[i.QA]:"会议",[i.RE]:"卡塔尔",[i.RO]:"罗马尼亚",[i.RS]:"塞尔维亚",[i.RU]:"俄罗斯",[i.RW]:"卢旺达",[i.SA]:"沙特阿拉伯",[i.SB]:"所罗门群岛",[i.SC]:"塞舌尔",[i.SD]:"苏丹",[i.SE]:"瑞典",[i.SG]:"新加坡",[i.SH]:"圣赫勒拿",[i.SI]:"斯洛文尼亚",[i.SK]:"斯洛伐克",[i.SL]:"塞拉利昂",[i.SM]:"圣马力诺",[i.SN]:"塞内加尔",[i.SO]:"索马里",[i.SR]:"苏里南",[i.ST]:"圣多美和普林西比",[i.SV]:"萨尔瓦多",[i.SX]:"圣马丁",[i.SY]:"阿拉伯叙利亚共和国",[i.SZ]:"斯威士兰",[i.TC]:"特克斯和凯科斯群岛",[i.TD]:"乍得",[i.TG]:"多哥",[i.TH]:"泰国",[i.TJ]:"塔吉克斯坦",[i.TL]:"东帝汶",[i.TM]:"土库曼斯坦",[i.TN]:"突尼斯",[i.TO]:"汤加",[i.TR]:"土耳其",[i.TT]:"特立尼达和多巴哥",[i.TW]:"台湾",[i.TZ]:"坦桑尼亚",[i.UA]:"乌克兰",[i.UG]:"乌干达",[i.US]:"美国",[i.UY]:"乌拉圭",[i.UZ]:"乌兹别克斯坦",[i.VC]:"圣文森特和格林纳丁斯",[i.VE]:"委内瑞拉",[i.VG]:"英属维尔京群岛",[i.VN]:"越南",[i.VU]:"瓦努阿图",[i.WS]:"萨摩亚",[i.XK]:"科索沃",[i.YE]:"也门",[i.YT]:"马约特岛",[i.ZA]:"南非",[i.ZM]:"赞比亚",[i.ZW]:"津巴布韦"}},o=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"chinese"},r),{cancel:"撤消",done:"完成",more:"更多",otherDate:"其他日期...",showAll:"显示所有",hide:"隐藏",mobileCalendarTexts:["选择日期","选择范围","選擇日期"],range:["从","至"],countTexts:["加","减"],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:["显示密码","隐藏密码"],copyTexts:["复制","已复制"],shortCalendarMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],pagination:["上一页","下一页"],fileTexts:{loadingError:"加载错误",preview:"预览",remove:"清除"},inputFileTexts:{defaultLabelSingle:"或拖动 它 这里",defaultLabelMultiple:"或拖动 它们 这里",defaultLinkSingle:"选择一个文件",defaultLinkMultiple:"选择多个文件",maxSizeRejectionReason:"文件超出大小 ",formatRejectionReason:"文件格式错误",drop:"把文件放在这里",dropMultiple:"把多个文件放在这里"},multiSelectTexts:{all:"全选",none:"选择无"},prompt:{yes:"是",no:"不"}}),{showHideText:"显示/隐藏",paginationTexts:{pages:"页面",linesPerPage:"每页行数",of:"于"}}),{cardNumber:["号码","信用卡号码"],cardExpiry:["有效期","信用卡有效期"]}),{colorSelectorModeNames:["纯色","渐变色"],toolbarTools:{undo:"撤消",redo:"重做",font:"字体",fontStyle:"字体样式",fontSize:"字体大小",bold:"加粗",italic:"斜体",underline:"下划线",strikeThrough:"删除线",justify:"对齐",justifyLeft:"左对齐",justifyCenter:"中心对齐",justifyRight:"右对齐",justifyFull:"两端对齐",list:"列表",indent:"缩进",outdent:"减小缩进",unorderedList:"无序列表",orderedList:"有序列表",quote:"引用",foreColor:"颜色",backColor:"背景颜色",hiliteColor:"高亮颜色",clear:"清除",link:"链接",attach:"附加文件",tex:"插入 TeX",code:"代码",image:"插入图片",insertHorizontalRule:"插入水平线",superscript:"上标",subscript:"下标",insertTable:"插入表格",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"合并单元格",splitCells:"拆分单元格",rowsColumnsManaging:"管理行和列",cellColor:"单元格颜色",setDetails:"详细信息",removeDetails:"删除详细信息"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["在前面插入列","在后面插入列"],["在前面插入行","在后面插入行"],["删除列","删除行"]],editorCodeOptions:["文中代码","代码块"],editorFontOptions:{small:"小的",large:"大的",normal:"普通的",title:"标题",subtitle:"副标题"}}),{previewTexts:{rotate:"旋转"},zoomTexts:{zoomOut:"缩小",zoomIn:"放大",reset:"重置"}}),{months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],close:"Sluiten",nothingFoundMessage:"Niets gevonden",defaultErrorMessage:"Ongeldige waarde",spinTexts:["Vorige","Volgende"],shortWeekDays:["Maa","Din","Woe","Don","Vri","Zat","Zon"],countries:{[i.AD]:"Andorra",[i.AE]:"Verenigde Arabische Emiraten",[i.AF]:"Afghanistan",[i.AG]:"Antigua en Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albanië",[i.AM]:"Armenië",[i.AO]:"Angola",[i.AR]:"Argentinië",[i.AT]:"Oostenrijk",[i.AU]:"Australië",[i.AW]:"Aruba",[i.AZ]:"Azerbeidzjan",[i.BA]:"Bosnië en Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"België",[i.BF]:"Burkina Faso",[i.BG]:"Bulgarije",[i.BH]:"Bahrein",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Sankt Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius en Saba",[i.BR]:"Brazilië",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Wit-Rusland",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Centraal-Afrikaanse Republiek",[i.CG]:"Congo-Brazzaville",[i.CH]:"Zwitserland",[i.CI]:"Ivoorkust",[i.CL]:"Chili",[i.CM]:"Kameroen",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Kaapverdië",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Tsjechië",[i.DE]:"Duitsland",[i.DJ]:"Djibouti",[i.DK]:"Denemarken",[i.DM]:"Dominica",[i.DO]:"Dominicaanse Republiek",[i.DZ]:"Algerije",[i.EC]:"Ecuador",[i.EE]:"Estland",[i.EG]:"Egypte",[i.ER]:"Eritrea",[i.ES]:"Spanje",[i.ET]:"Ethiopië",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Eilanden",[i.FM]:"V.S. van Micronesië",[i.FR]:"Frankrijk",[i.GA]:"Gabon",[i.GB]:"Verenigd Koningkrijk",[i.GD]:"Grenada",[i.GE]:"Georgië",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadeloupe",[i.GQ]:"Equatoriaal-Guinea",[i.GR]:"Griekenland",[i.GT]:"Guatemala",[i.GW]:"Guinee-Bissau",[i.GY]:"Guyana",[i.HK]:"Hongkong",[i.HN]:"Honduras",[i.HR]:"Kroatië",[i.HT]:"Haïti",[i.HU]:"Hongarije",[i.ID]:"Indonesië",[i.IE]:"Ierland",[i.IL]:"Israël",[i.IN]:"India",[i.IQ]:"Irak",[i.IR]:"Iran",[i.IS]:"IJsland",[i.IT]:"Italië",[i.JM]:"Jamaica",[i.JO]:"Jordanië",[i.JP]:"Japan",[i.KE]:"Kenia",[i.KG]:"Kirgizië",[i.KH]:"Cambodja",[i.KM]:"Comoren",[i.KN]:"Saint Kitts en Nevis",[i.KP]:"Democratische Volksrepubliek Korea",[i.KR]:"Republiek Korea",[i.KW]:"Koeweit",[i.KY]:"Kaaiman Eilanden",[i.KZ]:"Kazachstan",[i.LA]:"Laos",[i.LB]:"Libanon",[i.LC]:"Sint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litouwen",[i.LU]:"Luxemburg",[i.LV]:"Letland",[i.LY]:"Libië",[i.MA]:"Marokko",[i.MC]:"Monaco",[i.MD]:"Moldavië",[i.ME]:"Montenegro",[i.MF]:"Sankt Martin",[i.MG]:"Madagascar",[i.MK]:"Rep. van Noord-Macedonië",[i.ML]:"Mali",[i.MM]:"Birma (Myanmar)",[i.MN]:"Mongolië",[i.MO]:"Macau",[i.MQ]:"Martinique",[i.MR]:"Mauritanië",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Maleisië",[i.MZ]:"Mozambique",[i.NA]:"Namibië",[i.NC]:"Nieuw-Caledonië",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Nederland",[i.NO]:"Noorwegen",[i.NP]:"Nepal",[i.NZ]:"Nieuw-Zeeland",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Frans Polynesië (Tahiti)",[i.PG]:"Papoea-Nieuw-Guinea",[i.PH]:"Filippijnen",[i.PK]:"Pakistan",[i.PL]:"Polen",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Besprechung",[i.RO]:"Roemenië",[i.RS]:"Serbia",[i.RU]:"Servië",[i.RW]:"Rwanda",[i.SA]:"Saoedi-Arabië",[i.SB]:"Salomonseilanden",[i.SC]:"Seychellen",[i.SD]:"Soedan",[i.SE]:"Zweden",[i.SG]:"Singapore",[i.SH]:"Sint-Helena, Ascension en Tristan da Cunha",[i.SI]:"Slovenië",[i.SK]:"Slowakije",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalië",[i.SR]:"Suriname",[i.ST]:"Sao Tomé en Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Arabische Rep. Syrië",[i.SZ]:"Swaziland",[i.TC]:"Turks- en Caicoseilanden",[i.TD]:"Tsjaad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tadzjikistan",[i.TL]:"Oost Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunesië",[i.TO]:"Tonga",[i.TR]:"Turkije",[i.TT]:"Trinidad en Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Oekraïne",[i.UG]:"Oeganda",[i.US]:"Verenigde Staten",[i.UY]:"Uruguay",[i.UZ]:"Oezbekistan",[i.VC]:"Saint Vincent en de Grenadines",[i.VE]:"Venezuela",[i.VG]:"Britse Maagdeneilanden",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Jemen",[i.YT]:"Mayotte",[i.ZA]:"Zuid-Afrika",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),s=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"dutch"},o),{cancel:"Annuleren",done:"Klaar",more:"Meer",otherDate:"Andere datum ...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Kies een dag","Kies bereik","Kies dagen"],range:["van","tot"],countTexts:["Plus","Min"],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:["Toon wachtwoord","Wachtwoord verbergen"],copyTexts:["Kopieer","Gekopieerd"],shortCalendarMonths:["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],pagination:["Vorige pagina","Volgende pagina"],fileTexts:{loadingError:"Error bij het laden",preview:"Voorbeeld",remove:"Verwijder"},inputFileTexts:{defaultLabelSingle:"of zet het hier",defaultLabelMultiple:"of zet ze hier",defaultLinkSingle:"Kies een bestand",defaultLinkMultiple:"Kies bestanden",maxSizeRejectionReason:"Bestandsgrootte overschreden ",formatRejectionReason:"Verkeerd bestandsformaat",drop:"Zet hier bestand neer",dropMultiple:"Zet hier bestanden neer"},multiSelectTexts:{all:"Selecteer alles",none:"Selecteer geen"},prompt:{yes:"Ja",no:"Ingen"}}),{showHideText:"Toon/Verberg",paginationTexts:{pages:"Pagina's",linesPerPage:"Lijnen per pagina",of:"van"}}),{cardNumber:["Nummer","Kaartnummer"],cardExpiry:["Vervaldatum","Vervaldatum Kaart"]}),{colorSelectorModeNames:["Effen kleur","Kleurverloop"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Lettertype",fontStyle:"Tekenstijl",fontSize:"Punten",bold:"Vet",italic:"Cursief",underline:"Onderstrepen",strikeThrough:"Doorhalen",justify:"Uitlijning",justifyLeft:"Uitlijning links",justifyCenter:"Uitlijning midden",justifyRight:"Uitlijning rechts",justifyFull:"Uitlijning uitvullen",list:"Lijst",indent:"Inspringen",outdent:"Uitspringen",unorderedList:"Ongesorteerde lijst",orderedList:"Gesorteerde lijst",quote:"Citeren",foreColor:"Kleur",backColor:"Achtergrondkleur",hiliteColor:"Tekstmarkeringskleur",clear:"Wis",link:"Koppeling",attach:"Bestand toevoegen",tex:"TeX toevoegen",code:"Code",image:"Afbeelding toevoegen",insertHorizontalRule:"Horizontale lijn toevoegen",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"}}),{[i.AD]:"Andorra",[i.AE]:"United Arab Emirates",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia and Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius and Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Central African Republic",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Czech Republic",[i.DE]:"Germany",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Dominican Republic",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egypt",[i.ER]:"Eritrea",[i.ES]:"Spain",[i.ET]:"Ethiopia",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Islands",[i.FM]:"F.S. of Micronesia",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Japan",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Cambodia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts and Nevis",[i.KP]:"Korean PDR",[i.KR]:"Rep. Korea",[i.KW]:"Kuwait",[i.KY]:"Cayman Islands",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Rep. of North Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Netherlands",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Saudi Arabia",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome and Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syrian Arab Republic",[i.SZ]:"Swaziland",[i.TC]:"Turks and Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"East Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turkey",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"USA",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent and the Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.ZA]:"South Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}),a={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:s},l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},a),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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 larger than ",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"}}),u={months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],close:"Fermer",nothingFoundMessage:"Aucun résultat",defaultErrorMessage:"Valeur non valide",spinTexts:["Précédent","Suivant"],shortWeekDays:["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],countries:{[i.AD]:"Andorre",[i.AE]:"Émirats arabes unis",[i.AF]:"Afghanistan",[i.AG]:"Antigua et Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albanie",[i.AM]:"Arménie",[i.AO]:"Angola",[i.AR]:"Argentine",[i.AT]:"Autriche",[i.AU]:"Australie",[i.AW]:"Aruba",[i.AZ]:"Azerbaïdjan",[i.BA]:"Bosnie-Herzégovine",[i.BB]:"Barbade",[i.BD]:"Bangladesh",[i.BE]:"Belgique",[i.BF]:"Burkina Faso",[i.BG]:"Bulgarie",[i.BH]:"Bahrein",[i.BI]:"Burundi",[i.BJ]:"Bénin",[i.BL]:"Saint-Barthélemy",[i.BM]:"Bermudes",[i.BN]:"Brunéi Darussalam",[i.BO]:"Bolivie",[i.BQ]:"Bonaire, Saint-Eustache et Saba",[i.BR]:"Brésil",[i.BS]:"Bahamas",[i.BT]:"Bhoutan",[i.BW]:"Botswana",[i.BY]:"Bélarus",[i.BZ]:"Bélize",[i.CA]:"Canada",[i.CD]:"République Démocratique du Congo (RDC)",[i.CF]:"République centrafricaine",[i.CG]:"Congo Brazzaville",[i.CH]:"Suisse",[i.CI]:"Côte d'Ivoire",[i.CL]:"Chili",[i.CM]:"Cameroun",[i.CN]:"Chine",[i.CO]:"Colombie",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cap-Vert",[i.CW]:"Curaçao",[i.CY]:"Chypre",[i.CZ]:"République Tchèque",[i.DE]:"Allemagne",[i.DJ]:"Djibouti",[i.DK]:"Danemark",[i.DM]:"Dominique",[i.DO]:"République Dominicaine",[i.DZ]:"Algérie",[i.EC]:"Équateur",[i.EE]:"Estonie",[i.EG]:"Égypte",[i.ER]:"Érythrée",[i.ES]:"Espagne",[i.ET]:"Éthiopie",[i.FI]:"Finlande",[i.FJ]:"Fidji",[i.FK]:"Iles Malouines/Falkland",[i.FM]:"États fédérés de Micronésie",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"Royaume-Uni",[i.GD]:"Grenade",[i.GE]:"Géorgie",[i.GF]:"Guyane",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenland",[i.GM]:"Gambie",[i.GN]:"Guinée",[i.GP]:"Guadeloupe",[i.GQ]:"Guinée équatoriale",[i.GR]:"Grèce",[i.GT]:"Guatemala",[i.GW]:"Guinée-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatie",[i.HT]:"Haïti",[i.HU]:"Hongrie",[i.ID]:"Indonesia",[i.IE]:"Irlande",[i.IL]:"Israël",[i.IN]:"Inde",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Islande",[i.IT]:"Italie",[i.JM]:"Jamaïque",[i.JO]:"Jordanie",[i.JP]:"Japon",[i.KE]:"Kenya",[i.KG]:"Kirghizistan",[i.KH]:"Cambodge",[i.KM]:"Comores",[i.KN]:"Saint-Kitts-et-Nevis",[i.KP]:"Corée du Nord",[i.KR]:"Corée du Sud",[i.KW]:"Koweït",[i.KY]:"Iles Caïmans",[i.KZ]:"Kazakhstan",[i.LA]:"Lao",[i.LB]:"Liban",[i.LC]:"Sainte-Lucie",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Libéria",[i.LS]:"Lesotho",[i.LT]:"Lituanie",[i.LU]:"Luxembourg",[i.LV]:"Lettonie",[i.LY]:"Libye",[i.MA]:"Maroc",[i.MC]:"Monaco",[i.MD]:"Moldavie",[i.ME]:"Monténégro",[i.MF]:"Saint-Martin",[i.MG]:"Madagascar",[i.MK]:"Macédoine",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolie",[i.MO]:"Macao",[i.MQ]:"Martinique",[i.MR]:"Mauritanie",[i.MS]:"Montserrat",[i.MT]:"Malte",[i.MU]:"Maurice",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexique",[i.MY]:"Malaisie",[i.MZ]:"Mozambique",[i.NA]:"Namibie",[i.NC]:"Nouvelle-Calédonie",[i.NE]:"Niger",[i.NG]:"Nigéria",[i.NI]:"Nicaragua",[i.NL]:"Pays-Bas",[i.NO]:"Norvège",[i.NP]:"Népal",[i.NZ]:"Nouvelle-Zélande",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Pérou",[i.PF]:"Polynésie française",[i.PG]:"Papouasie-Nouvelle-Guinée",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Pologne",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"La Réunion",[i.RO]:"Roumanie",[i.RS]:"Serbie",[i.RU]:"Russie",[i.RW]:"Rwanda",[i.SA]:"Arabie Saoudite",[i.SB]:"Iles Salomon",[i.SC]:"Seychelles",[i.SD]:"Soudan",[i.SE]:"Suède",[i.SG]:"Singapour",[i.SH]:"Sainte-Hélène",[i.SI]:"Slovénie",[i.SK]:"Slovaquie",[i.SL]:"Sierra Leone",[i.SM]:"Saint-Marin",[i.SN]:"Sénégal",[i.SO]:"Somalie",[i.SR]:"Suriname",[i.ST]:"Sao Tomé-et-Principe",[i.SV]:"El Salvador",[i.SX]:"Saint-Martin",[i.SY]:"République arabe syrienne",[i.SZ]:"Swaziland",[i.TC]:"Iles Turks-et-Caïcos",[i.TD]:"Tchad",[i.TG]:"Togo",[i.TH]:"Thaïlande",[i.TJ]:"Tadjikistan",[i.TL]:"Timor-Leste",[i.TM]:"Turkménistan",[i.TN]:"Tunisie",[i.TO]:"Tonga",[i.TR]:"Turquie",[i.TT]:"Trinité-et-Tobago",[i.TW]:"Taïwan",[i.TZ]:"Tanzanie",[i.UA]:"Ukraine",[i.UG]:"Ouganda",[i.US]:"États-Unis d'Amérique",[i.UY]:"Uruguay",[i.UZ]:"Ouzbékistan",[i.VC]:"Saint-Vincent-et-les-Grenadines",[i.VE]:"Venezuela",[i.VG]:"Iles vierges britanniques",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yémen",[i.YT]:"Mayotte",[i.ZA]:"Afrique du Sud",[i.ZM]:"Zambie",[i.ZW]:"Zimbabwe"}},c=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"french"},u),{cancel:"Annuler",done:"Terminé",more:"Plus",otherDate:"Autre date...",showAll:"Tout afficher",hide:"Cacher",mobileCalendarTexts:["Choisir un jour","Choisir un intervalle","Choisissez des jours"],range:["De","À"],countTexts:["Plus","Moins"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"jj.mm.aaaa",MDY:"mm.jj.aaaa",YMD:"aaaa.mm.jj"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Afficher le mot de passe","Cacher le mot de passe"],copyTexts:["Copier","Copié"],shortCalendarMonths:["Janv","Fév","Mar","Avr","Mai","Jun","Jui","Aoû","Sep","Oct","Nov","Déc"],pagination:["Page précédente","Page suivante"],fileTexts:{loadingError:"Erreur de chargement",preview:"Aperçu",remove:"Supprimer"},inputFileTexts:{defaultLabelSingle:"ou déposez-le ici",defaultLabelMultiple:"ou déposez-les ici",defaultLinkSingle:"Sélectionnez un fichier",defaultLinkMultiple:"Sélectionnez des fichiers",maxSizeRejectionReason:"Le fichier est trop volumineux",formatRejectionReason:"Format de fichier incorrect",drop:"Déposez le fichier ici",dropMultiple:"Déposez les fichiers ici"},multiSelectTexts:{all:"Tout sélectionner",none:"Ne rien sélectionner"},prompt:{yes:"Oui",no:"Non"}}),{showHideText:"Afficher/Cacher",paginationTexts:{pages:"Pages",linesPerPage:"Lignes par page",of:"de"}}),{cardNumber:["Number","Numéro de carte"],cardExpiry:["Expiry",'Date d"Expiration de la carte']}),{colorSelectorModeNames:["Couleur unie","Dégradé de couleur"],toolbarTools:{undo:"Annuler",redo:"Rétablir",font:"Police",fontStyle:"Style de police",fontSize:"Taille de police",bold:"Gras",italic:"Italique",underline:"Souligner",strikeThrough:"Barrer",justify:"Justifier",justifyLeft:"Aligner à gauche",justifyCenter:"Centrer",justifyRight:"Justifier à droite",justifyFull:"Justifier",list:"Liste",indent:"Indenter",outdent:"Réduire le retrait",unorderedList:"Liste à puces",orderedList:"Liste numérotée",quote:"Citation",foreColor:"Couleur de texte",backColor:"Couleur de fond",hiliteColor:"Couleur de mise en évidence",clear:"Effacer",link:"Lien",attach:"Joindre un fichier",tex:"Insérer TeX",code:"Code",image:"Insérer une image",insertHorizontalRule:"Insérer une règle horizontale",superscript:"Exposant",subscript:"Indice",insertTable:"Insérer une table",insertGroup:"Insérer un groupe",hiliteGroup:"Hilite group",removeGroup:"Supprimer le groupe",insertAnchor:"Insérer une ancre",mergeCells:"Fusionner les cellules",splitCells:"Diviser les cellules",rowsColumnsManaging:"Gestion des lignes et des colonnes",cellColor:"Couleur de la cellule",setDetails:"Accordéon",removeDetails:"Supprimer l'accordéon"},editorEditLink:{urlExample:"exemple.com",anchorExample:"ancre"},editorTableCommands:[["Insérer une colonne avant","Insérer une colonne après"],["Insérer une ligne avant","Insérer une ligne après"],["Supprimer la colonne","Supprimer la ligne"]],editorCodeOptions:["Code dans le texte","Bloc de code"],editorFontOptions:{small:"Petite",large:"Grande",normal:"Normale",title:"Titre",subtitle:"Sous-titre"}}),{previewTexts:{rotate:"Faire pivoter"},zoomTexts:{zoomOut:"Zoomer",zoomIn:"Dézoomer",reset:"Réinitialiser"}}),{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],close:"Schließen",nothingFoundMessage:"Keine Ergebnisse",defaultErrorMessage:"Wert ist ungültig",spinTexts:["Zurück","Weiter"],shortWeekDays:["Mo","Di","Mi","Do","Fr","Sa","So"],countries:s}),d=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"german"},c),{cancel:"Abbrechen",done:"Fertig",more:"Mehr",otherDate:"Anderes Datum...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Tag auswählen","Zeitraum auswählen","Wählen Sie Tage"],range:["von","bis"],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:["Passwort anzeigen","Passwort ausblenden"],copyTexts:["Kopieren","Kopiert"],shortCalendarMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],pagination:["Vorherige Seite","Nächste Seite"],fileTexts:{loadingError:"Fehler beim Laden",preview:"Vorschau",remove:"Entfernen"},inputFileTexts:{defaultLabelSingle:"oder einzelne Datei hier ablegen",defaultLabelMultiple:"oder mehrere Dateien hier ablegen",defaultLinkSingle:"Datei auswählen",defaultLinkMultiple:"Dateien auswählen",maxSizeRejectionReason:"Die Dateigröße überschreitet die maximal zulässige Größe von ",formatRejectionReason:"Ungültiges Dateiformat",drop:"Datei hier ablegen",dropMultiple:"Dateien hier ablegen"},multiSelectTexts:{all:"Alles auswählen",none:"Keine auswählen"},prompt:{yes:"Ja",no:"Nein"}}),{showHideText:"Anzeigen/Ausblenden",paginationTexts:{pages:"Seiten",linesPerPage:"Zeilen pro Seite",of:"von"}}),{cardNumber:["Nummer","Kartennummer"],cardExpiry:["Gültig bis","Ablaufdatum Karte"]}),{colorSelectorModeNames:["Farbe","Verlauf"],toolbarTools:{undo:"Rückgängig machen",redo:"Wiederholen",font:"Schriftart",fontStyle:"Schriftstil",fontSize:"Schriftgröße",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",strikeThrough:"Durchgestrichen",justify:"Blocksatz",justifyLeft:"Blocksatz links",justifyCenter:"Blocksatz mittig",justifyRight:"Blocksatz rechts",justifyFull:"Blocksatz",list:"Liste",indent:"Einrücken",outdent:"Ausrücken",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",quote:"Blockquote",foreColor:"Farbe",backColor:"Hintergrundfarbe",hiliteColor:"Hilite-Farbe",clear:"Löschen",link:"Link",attach:"Datei anhängen",tex:"TeX einfügen",code:"Quelltext",image:"Bild einfügen",insertHorizontalRule:"Horizontale Linie einfügen",superscript:"Hochgestellt",subscript:"Tiefgestellt",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:"Rotieren"},zoomTexts:{zoomOut:"Verkleinern",zoomIn:"Vergrößern",reset:"Zurücksetzen"}}),{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],close:"Chiudi",nothingFoundMessage:"Non abbiamo trovato nulla",defaultErrorMessage:"Il valore non è valido",spinTexts:["Precedente","Prossimo"],shortWeekDays:["Lun","Mar","Mer","Gio","Ven","Sab","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emirati Arabi Uniti",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia Erzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgio",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Saint Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius e Saba",[i.BR]:"Brasile",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Bielorussia",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Repubblica Democratica del Congo",[i.CF]:"Repubblica Centroafricana",[i.CG]:"Repubblica del Congo",[i.CH]:"Svizzera",[i.CI]:"Costa d'Avorio",[i.CL]:"Cile",[i.CM]:"Camerun",[i.CN]:"Cina",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Capo Verde",[i.CW]:"Curaçao",[i.CY]:"Cipro",[i.CZ]:"Repubblica Ceca",[i.DE]:"Germania",[i.DJ]:"Gibuti",[i.DK]:"Danimarca",[i.DM]:"Dominica",[i.DO]:"Repubblica Dominicana",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egitto",[i.ER]:"Eritrea",[i.ES]:"Spagna",[i.ET]:"Etiopia",[i.FI]:"Finlandia",[i.FJ]:"Fiji",[i.FK]:"Isole Falkland",[i.FM]:"Stati Federali della Micronesia",[i.FR]:"Francia",[i.GA]:"Gabon",[i.GB]:"Regno Unito",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibilterra",[i.GL]:"Groenlandia",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadalupa",[i.GQ]:"Guinea Equatoriale",[i.GR]:"Grecia",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croazia",[i.HT]:"Haiti",[i.HU]:"Ungheria",[i.ID]:"Indonesia",[i.IE]:"Eire",[i.IL]:"Israele",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Islanda",[i.IT]:"Italia",[i.JM]:"Giamaica",[i.JO]:"Giordania",[i.JP]:"Giappone",[i.KE]:"Kenya",[i.KG]:"Kirghizistan",[i.KH]:"Cambogia",[i.KM]:"Comore",[i.KN]:"Saint Kitts e Nevis",[i.KP]:"Corea del Nord",[i.KR]:"Corea del Sud",[i.KW]:"Kuwait",[i.KY]:"Isole Cayman",[i.KZ]:"Kazakhistan",[i.LA]:"Laos",[i.LB]:"Libano",[i.LC]:"Santa Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lituania",[i.LU]:"Lussemburgo",[i.LV]:"Lettonia",[i.LY]:"Libia",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"San Martino",[i.MG]:"Madagascar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Maurizius",[i.MV]:"Maldive",[i.MW]:"Malawi",[i.MX]:"Messico",[i.MY]:"Malesia",[i.MZ]:"Mozambico",[i.NA]:"Namibia",[i.NC]:"Nuova Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Paesi Bassi",[i.NO]:"Norvegia",[i.NP]:"Nepal",[i.NZ]:"Nuova Zelanda",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Perù",[i.PF]:"Polinesia Francese",[i.PG]:"Papua Nuova Guinea",[i.PH]:"Filippine",[i.PK]:"Pakistan",[i.PL]:"Polonia",[i.PT]:"Portogallo",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Riunione",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Federazione Russa",[i.RW]:"Ruanda",[i.SA]:"Arabia Saudita",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Svezia",[i.SG]:"Singapore",[i.SH]:"Sant'Elena",[i.SI]:"Slovenia",[i.SK]:"Slovacchia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome e Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Siria",[i.SZ]:"Swaziland",[i.TC]:"Isole Turks e Caicos",[i.TD]:"Ciad",[i.TG]:"Togo",[i.TH]:"Tailandia",[i.TJ]:"Tagikistan",[i.TL]:"Timor Est",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turchia",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ucraina",[i.UG]:"Uganda",[i.US]:"Stati Uniti d'America",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent e Grenadine",[i.VE]:"Venezuela",[i.VG]:"Isole Vergini Britanniche",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.YT]:"Mayotta",[i.ZA]:"Sud Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),h=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"italian"},d),{cancel:"Annulla",done:"Fatto",more:"Di più",otherDate:"Altra data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Scegli giorno","Scegli intervallo","Scegli i giorni"],range:["da","a"],countTexts:["Più","Meno"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"gg.mm.aaaa",MDY:"mm.gg.aaaa",YMD:"aaaa.mm.gg"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Mostra password","Nascondi password"],copyTexts:["Copia","Copiato"],shortCalendarMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pagination:["Pagina precedente","Pagina successiva"],fileTexts:{loadingError:"Caricamento errore",preview:"Anteprima",remove:"Rimuovi"},inputFileTexts:{defaultLabelSingle:"o trascinalo qui",defaultLabelMultiple:"o trascinali qui",defaultLinkSingle:"Scegliere il file",defaultLinkMultiple:"Scegliere i file",maxSizeRejectionReason:"Il file supera le dimensioni ",formatRejectionReason:"Formato file errato",drop:"Trascina il file qui",dropMultiple:"Trascina i file qui"},multiSelectTexts:{all:"Seleziona tutto",none:"Seleziona nessuno"},prompt:{yes:"Sì",no:"No"}}),{showHideText:"Mostra/Nascondi",paginationTexts:{pages:"Pagine",linesPerPage:"Righe per pagina",of:"di"}}),{cardNumber:["Numero","Numero carta"],cardExpiry:["Scade il","Valida fino al"]}),{colorSelectorModeNames:["Tinta unita","Gradiente"],toolbarTools:{undo:"Annulla",redo:"Rifai",font:"Font",fontStyle:"Stile font",fontSize:"Dimensione font",bold:"Grassetto",italic:"Corsivo",underline:"Sottolineato",strikeThrough:"Barrato",justify:"Giustifica",justifyLeft:"Allinea a sinistra",justifyCenter:"Allinea al centro",justifyRight:"Allinea a destra",justifyFull:"Giustifica pieno",list:"Lista",indent:"Rientro",outdent:"Elimina rientro",unorderedList:"Lista non ordinata",orderedList:"Lista ordinata",quote:"Virgolette",foreColor:"Colore",backColor:"Colore sfondo",hiliteColor:"Evidenziazione del testo",clear:"Pulisci",link:"Link",attach:"Allega file",tex:"Inserisci TeX",code:"Codice",image:"Inserisci image",insertHorizontalRule:"Inserisci riga orizzontale",superscript:"Apice",subscript:"Pedice",insertTable:"Inserisci tabella",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Unisci celle",splitCells:"Dividi celle",rowsColumnsManaging:"Gestione righe e colonne",cellColor:"Colore cella",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Inserisci colonna prima","Inserisci colonna dopo"],["Inserisci riga prima","Inserisci riga dopo"],["Cancella colonna","Cancella riga"]],editorCodeOptions:["Codice nel testo","Codice nel blocco"],editorFontOptions:{small:"Small",normal:"Normale",large:"Large",title:"Titolo",subtitle:"Sottotitolo"}}),{previewTexts:{rotate:"Ruota"},zoomTexts:{zoomOut:"Rimpicciolisci",zoomIn:"Ingrandisci",reset:"Ripristina"}}),{months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],close:"Жабық",nothingFoundMessage:"Ештеңе табылмады",defaultErrorMessage:"Мән жарамсыз",spinTexts:["Алдыңғы","Келесі"],shortWeekDays:["Дүй","Ссе","Сәр","Бсе","Жұм","Сб","Жек"],countries:{[i.AD]:"Andorra",[i.AE]:"United Arab Emirates",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia and Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius and Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Central African Republic",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Czech Republic",[i.DE]:"Germany",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Dominican Republic",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egypt",[i.ER]:"Eritrea",[i.ES]:"Spain",[i.ET]:"Ethiopia",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Islands",[i.FM]:"F.S. of Micronesia",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Japan",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Cambodia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts and Nevis",[i.KP]:"Korean PDR",[i.KR]:"Rep. Korea",[i.KW]:"Kuwait",[i.KY]:"Cayman Islands",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Rep. of North Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Netherlands",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Saudi Arabia",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome and Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syrian Arab Republic",[i.SZ]:"Swaziland",[i.TC]:"Turks and Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"East Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turkey",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"USA",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent and the Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.ZA]:"South Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),p=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"kazakh"},h),{cancel:"Болдырмау",done:"Дайын",more:"Көбірек",otherDate:"Басқа күн...",showAll:"Барлығын көрсету",hide:"Жасыру",mobileCalendarTexts:["Күнді таңдаңыз","Аралықты таңдаңыз","Күндерді таңдаңыз"],range:["бастап","дейін"],countTexts:["Плюс","Минус"],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:["Құпия сөзді көрсету","Құпия сөзді жасыру"],copyTexts:["Көшіру","Көшірілген"],shortCalendarMonths:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],pagination:["Алдыңғы бет","Келесі бет"],fileTexts:{loadingError:"Жүктеп салу сәтсіз аяқталды",preview:"Алдын ала қарау",remove:"Жою"},inputFileTexts:{defaultLabelSingle:"немесе тастаңыз ол мұнда",defaultLabelMultiple:"немесе тастаңыз олар мұнда",defaultLinkSingle:"Файлды таңдаңыз",defaultLinkMultiple:"Файлдарды таңдаңыз",maxSizeRejectionReason:"Файл тым үлкен",formatRejectionReason:"Қате файл түрі",drop:"Файлды осы жерге тастаңыз",dropMultiple:"Файлдарды осы жерге тастаңыз"},multiSelectTexts:{all:"Барлығын таңдаңыз",none:"Ешбіреуін таңдау"},prompt:{yes:"Иә",no:"Жоқ"}}),{showHideText:"Көрсету/Жасыру",paginationTexts:{pages:"Беттер",linesPerPage:"Әр беттегі жолдар",of:"ның"}}),{cardNumber:["Сан","Карточка нөмірі"],cardExpiry:["Мерзімі бітеді","Арқылы жарамды"]}),{colorSelectorModeNames:["Бірыңғай түс","Градиент"],toolbarTools:{undo:"Болдырмау",redo:"Қайталау",font:"Қаріп",fontStyle:"Қаріп стилі",fontSize:"Қаріп өлшемі",bold:"Қалың",italic:"Курсив",underline:"Астын сызу",strikeThrough:"Соғу",justify:"Ақтау",justifyLeft:"Сол жаққа ақтаңыз",justifyCenter:"Орталықты негіздеу",justifyRight:"Дұрыс негіздеу",justifyFull:"Толық негіздеу",list:"Тізім",indent:"Шегініс",outdent:"Ашық",unorderedList:"Реттелмеген тізім",orderedList:"Реттелген тізім",quote:"Дәйексөз",foreColor:"Түс",backColor:"Фон түсі",hiliteColor:"Түсті бөлектеу",clear:"Таза",link:"Сілтеме",attach:"Файлды тіркеңіз",tex:"TeX енгізіңіз",code:"Код",image:"Суретті енгізу",insertHorizontalRule:"Көлденең ережені енгізіңіз",superscript:"Жоғарғы сызба",subscript:"Жазу",insertTable:"Кестені енгізу",insertGroup:"Топты енгізу",hiliteGroup:"Хилит тобы",removeGroup:"Топты жою",insertAnchor:"Анкерді салыңыз",mergeCells:"Ұяшықтарды біріктіру",splitCells:"Бөлінген жасушалар",rowsColumnsManaging:"Жолдар мен бағандарды басқару",cellColor:"Жасуша түсі",setDetails:"Егжей",removeDetails:"Мәліметтерді жою"},editorEditLink:{urlExample:"example.com",anchorExample:"Якорь"},editorTableCommands:[["Алдында бағанды енгізу","Бағананы кейін енгізіңіз"],["Алдында жолды енгізіңіз","Жолды кейін енгізіңіз"],["Бағанды жою","Жолды жою"]],editorCodeOptions:["Мәтіндегі код","Блоктағы код"],editorFontOptions:{small:"Кішкентай",large:"Үлкен",normal:"Қалыпты",title:"Тақырып",subtitle:"Субтитр"}}),{previewTexts:{rotate:"Айналдыру"},zoomTexts:{zoomOut:"Кішірейту",zoomIn:"Үлкейту",reset:"Қалпына келтіру"}}),{months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],close:"Tutup",nothingFoundMessage:"Tiada apa-apa Dijumpai",defaultErrorMessage:"Nilai tidak sah",spinTexts:["Sebelum","Selepas"],shortWeekDays:["Isn","Sel","Rab","Kha","Jum","Sab","Ahd"],countries:{[i.AD]:"Andorra",[i.AE]:"Emiriah Arab Bersatu",[i.AF]:"Afghanistan",[i.AG]:"Antigua dan Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia dan Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius dan Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Kanada",[i.CD]:"Rep. Dem. Congo (Kinshasa)",[i.CF]:"Republik Afrika Tengah",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast (Côte d'Ivoire)",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Republik Czech",[i.DE]:"Jerman",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Republik Dominican",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Mesir",[i.ER]:"Eritrea",[i.ES]:"Sepanyol",[i.ET]:"Habsyah (Ethiopia)",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Kepulauan Falkland",[i.FM]:"Persekutuan Mikronesia",[i.FR]:"Perancis",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Itali",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Jepun",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Kemboja",[i.KM]:"Comoros",[i.KN]:"Saint Kitts dan Nevis",[i.KP]:"Korea Utara",[i.KR]:"Korea Selatan",[i.KW]:"Kuwait",[i.KY]:"kepulauan Cayman",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lubnan",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Maghribi",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Republik Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Belanda",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Filipina",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Arab Saudi",[i.SB]:"Kepulauan Solomon",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapura",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome dan Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Republik Arab Syria",[i.SZ]:"Swaziland",[i.TC]:"Turki dan Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"Timor Timur",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turki",[i.TT]:"Trinidad dan Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"Amerika Syarikat",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent dan Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yaman",[i.ZA]:"Afrika Selatan",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),g=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"malay"},p),{cancel:"Batal",done:"selesai",more:"Lebih",otherDate:"Tarikh lain...",showAll:"Tunjukkan semua",hide:"Sembunyi",mobileCalendarTexts:["Pilih hari","Pilih julat","Pilih hari"],range:["dari","ke"],countTexts:["Tambah","Tolak"],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:["Tunjukkan kata laluan","Sembunyikan kata laluan"],copyTexts:["Salin","Disalin"],shortCalendarMonths:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],pagination:["Halaman sebelumnya","Halaman seterusnya"],fileTexts:{loadingError:"Muatnaik gagal",preview:"Pratonton",remove:"Alih keluar"},inputFileTexts:{defaultLabelSingle:"atau lepaskan di sini",defaultLabelMultiple:"atau lepaskan mereka di sini",defaultLinkSingle:"Pilih sebuah fail",defaultLinkMultiple:"Pilih fail",maxSizeRejectionReason:"Fail terlalu besar",formatRejectionReason:"Jenis fail salah",drop:"Lepaskan fail di sini",dropMultiple:"Lepaskan fail di sini"},multiSelectTexts:{all:"Pilih semua",none:"pilih tiada"},prompt:{yes:"Ya",no:"tidak"}}),{showHideText:"Tunjuk/Sembunyi",paginationTexts:{pages:"Halaman",linesPerPage:"Baris setiap halaman",of:"dari"}}),{cardNumber:["Nombor","Nombor kad"],cardExpiry:["Tamat tempoh","Sah sehingga"]}),{colorSelectorModeNames:["Warna padu","Kecerunan"],toolbarTools:{undo:"Buat asal",redo:"Buat semula",font:"Huruf",fontStyle:"Gaya huruf",fontSize:"Saiz huruf",bold:"Tebal",italic:"Condong",underline:"Garis bawah",strikeThrough:"Tembus",justify:"Kelarasan",justifyLeft:"Kelarasan kiri",justifyCenter:"Kelarasan tengah",justifyRight:"Kelarasan kanan",justifyFull:"Kelarasan penuh",list:"Senarai",indent:"Inden",outdent:"Outden",unorderedList:"Senarai tidak teratur",orderedList:"Senarai teratur",quote:"petikan",foreColor:"Warna",backColor:"Warna latar belakang",hiliteColor:"Sorotan warna",clear:"Kosongkan",link:"Pautan",attach:"Lampirkan fail",tex:"Masukkan TeX",code:"Kod",image:"Masukkan gambar",insertHorizontalRule:"Masukkan peraturan mendatar",superscript:"Superskrip",subscript:"Subskrip",insertTable:"Masukkan jadual",insertGroup:"Masukkan kumpulan",hiliteGroup:"Sorotan kumpulan",removeGroup:"Buang kumpulan",insertAnchor:"Masukkan sauh",mergeCells:"Cantumkan sel",splitCells:"Pisahkan sel",rowsColumnsManaging:"Menguruskan baris dan lajur",cellColor:"Warna sel",setDetails:"Butiran",removeDetails:"Buang butiran"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Masukkan lajur sebelum","Masukkan lajur selepas"],["Masukkan baris sebelum","Masukkan baris selepas"],["Padam lajur","Padam baris"]],editorCodeOptions:["Kod dalam teks","Kod dalam blok"],editorFontOptions:{small:"Kecil",large:"Besar",normal:"Biasa",title:"Tajuk",subtitle:"Sarikata"}}),{previewTexts:{rotate:"Putar"},zoomTexts:{zoomOut:"Zum keluar",zoomIn:"Zum masuk",reset:"Set semula"}}),{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],close:"Zamknij",nothingFoundMessage:"Nic nie znaleziono",defaultErrorMessage:"Nieprawidłowa wartość",spinTexts:["Poprzedni","Następny"],shortWeekDays:["Pon","Wt","Śr","Czw","Pt","Sob","Nie"],countries:{[i.AD]:"Andora",[i.AE]:"Zjednoczone Emiraty Arabskie",[i.AF]:"Afganistan",[i.AG]:"Antigua i Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentyna",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbejdżan",[i.BA]:"Bośnia i Hercegowina",[i.BB]:"Barbados",[i.BD]:"Bangladesz",[i.BE]:"Belgia",[i.BF]:"Burkina Faso",[i.BG]:"Bułgaria",[i.BH]:"Bahrajn",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Święty Barthélemy",[i.BM]:"Bermudy",[i.BN]:"Brunei",[i.BO]:"Boliwia",[i.BQ]:"Bonaire, Sint Eustatius i Saba",[i.BR]:"Brazylia",[i.BS]:"Bahamy",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Białoruś",[i.BZ]:"Belize",[i.CA]:"Kanada",[i.CD]:"Demokratyczna Republika Konga",[i.CF]:"Republika Środkowoafrykańska",[i.CG]:"Kongo",[i.CH]:"Szwajcaria",[i.CI]:"Wybrzeże Kości Słoniowej",[i.CL]:"Chile",[i.CM]:"Kamerun",[i.CN]:"Chiny",[i.CO]:"Kolumbia",[i.CR]:"Kostaryka",[i.CU]:"Kuba",[i.CV]:"Republika Zielonego Przylądka",[i.CW]:"Curaçao",[i.CY]:"Cypr",[i.CZ]:"Czechy",[i.DE]:"Niemcy",[i.DJ]:"Dżibuti ",[i.DK]:"Dania",[i.DM]:"Dominika",[i.DO]:"Dominikana",[i.DZ]:"Algieria",[i.EC]:"Ekwador",[i.EE]:"Estonia",[i.EG]:"Egipt",[i.ER]:"Erytrea",[i.ES]:"Hiszpania",[i.ET]:"Etiopia",[i.FI]:"Finlandia",[i.FJ]:"Fidżi",[i.FK]:"Falklandy",[i.FM]:"Mikronezja",[i.FR]:"Francja",[i.GA]:"Gabon",[i.GB]:"Wielka Brytania",[i.GD]:"Grenada",[i.GE]:"Gruzja",[i.GF]:"Gujana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Grenlandia",[i.GM]:"Gambia",[i.GN]:"Gwinea",[i.GP]:"Gwadelupa",[i.GQ]:"Gwinea Równikowa",[i.GR]:"Grecja",[i.GT]:"Gwatemala",[i.GW]:"Gwinea Bissau",[i.GY]:"Gujana",[i.HK]:"Hongkong",[i.HN]:"Honduras",[i.HR]:"Chorwacja",[i.HT]:"Haiti",[i.HU]:"Węgry",[i.ID]:"Indonezja",[i.IE]:"Irlandia",[i.IL]:"Izrael",[i.IN]:"Indie",[i.IQ]:"Irak",[i.IR]:"Iran",[i.IS]:"Islandia",[i.IT]:"Włochy",[i.JM]:"Jamajka",[i.JO]:"Jordania",[i.JP]:"Japonia",[i.KE]:"Kenia",[i.KG]:"Kirgistan",[i.KH]:"Kambodża",[i.KM]:"Komory",[i.KN]:"Saint Kitts i Nevis",[i.KP]:"Korea Północna",[i.KR]:"Korea Południowa",[i.KW]:"Kuwejt",[i.KY]:"Kajmany",[i.KZ]:"Kazachstan",[i.LA]:"Laos",[i.LB]:"Liban",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litwa",[i.LU]:"Luksemburg",[i.LV]:"Łotwa",[i.LY]:"Libia",[i.MA]:"Maroko",[i.MC]:"Monako",[i.MD]:"Mołdawia",[i.ME]:"Czarnogóra",[i.MF]:"Święty Marcin",[i.MG]:"Madagaskar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Mjanma (Birma)",[i.MN]:"Mongolia",[i.MO]:"Makau",[i.MQ]:"Martynika",[i.MR]:"Mauretania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Malediwy",[i.MW]:"Malawi",[i.MX]:"Meksyk",[i.MY]:"Malezja",[i.MZ]:"Mozambik",[i.NA]:"Namibia",[i.NC]:"Nowa Kaledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nikaragua",[i.NL]:"Holandia",[i.NO]:"Norwegia",[i.NP]:"Nepal",[i.NZ]:"Nowa Zelandia",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Polinezja Francuska",[i.PG]:"Papua-Nowa Gwinea",[i.PH]:"Filipiny",[i.PK]:"Pakistan",[i.PL]:"Polska",[i.PT]:"Portugalia",[i.PW]:"Palau",[i.PY]:"Paragwaj",[i.QA]:"Katar",[i.RE]:"Posiedzenie",[i.RO]:"Rumunia",[i.RS]:"Serbia",[i.RU]:"Rosja",[i.RW]:"Rwanda",[i.SA]:"Arabia Saudyjska",[i.SB]:"Wyspy Salomona",[i.SC]:"Seszele",[i.SD]:"Sudan",[i.SE]:"Szwecja",[i.SG]:"Singapur",[i.SH]:"Wyspa Świętej Heleny",[i.SI]:"Słowenia",[i.SK]:"Słowacja",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Surinam",[i.ST]:"Wyspy Świętego Tomasza i Książęca",[i.SV]:"Salwador",[i.SX]:"Sint Maarten",[i.SY]:"Syria",[i.SZ]:"Eswatini",[i.TC]:"Turks i Caicos",[i.TD]:"Czad",[i.TG]:"Togo",[i.TH]:"Tajlandia",[i.TJ]:"Tadżykistan",[i.TL]:"Timor Wschodni",[i.TM]:"Turkmenistan",[i.TN]:"Tunezja",[i.TO]:"Tonga",[i.TR]:"Turcja",[i.TT]:"Trynidad i Tobago",[i.TW]:"Tajwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraina",[i.UG]:"Uganda",[i.US]:"Stany Zjednoczone",[i.UY]:"Urugwaj",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent i Grenadyny",[i.VE]:"Wenezuela",[i.VG]:"Brytyjskie Wyspy Dziewicze",[i.VN]:"Wietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Jemen",[i.YT]:"Majotta",[i.ZA]:"Republika Południowej Afryki",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),m=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"polish"},g),{cancel:"Anuluj",done:"Gotowe",more:"Więcej",otherDate:"Inna data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Wybierz dzień","Wybierz zakres","Wybierz dni"],range:["od","do"],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.rrrr",MDY:"mm.dd.rrrr",YMD:"rrrr.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Pokaż hasło","Ukryj hasło"],copyTexts:["Kopiuj","Skopiowano"],shortCalendarMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],pagination:["Poprzednia strona","Następna strona"],fileTexts:{loadingError:"Błąd ładowania",preview:"Podgląd",remove:"Usuń"},inputFileTexts:{defaultLabelSingle:"lub przeciągnij tutaj",defaultLabelMultiple:"lub przeciągnij tutaj",defaultLinkSingle:"Wybierz plik",defaultLinkMultiple:"Wybierz pliki",maxSizeRejectionReason:"Plik przekracza rozmiar ",formatRejectionReason:"Nieprawidłowy format pliku",drop:"Przeciągnij plik tutaj",dropMultiple:"Przeciągnij pliki tutaj"},multiSelectTexts:{all:"Zaznacz wszystko",none:"Nie zaznaczaj"},prompt:{yes:"Tak",no:"Nie"}}),{showHideText:"Pokaż/Ukryj",paginationTexts:{pages:"Strony",linesPerPage:"Wierszy na stronę",of:"z"}}),{cardNumber:["Numer","Numer karty"],cardExpiry:["Wygasa","Data ważności"]}),{colorSelectorModeNames:["Kolor","Gradient"],toolbarTools:{undo:"Cofnij",redo:"Ponów",font:"Czcionka",fontStyle:"Styl czcionki",fontSize:"Rozmiar czcionki",bold:"Pogrubienie",italic:"Kursywa",underline:"Podkreślenie",strikeThrough:"Przekreślenie",justify:"Wyrównanie",justifyLeft:"Wyrównanie do lewej",justifyCenter:"Wyrównanie do środka",justifyRight:"Wyrównanie do prawej",justifyFull:"Justowanie",list:"Lista",indent:"Zwiększ wcięcie",outdent:"Zmniejsz wcięcie",unorderedList:"Lista punktowana",orderedList:"Lista numerowana",quote:"Cytat",foreColor:"Kolor tekstu",backColor:"Kolor tła",hiliteColor:"Kolor zaznaczenia",clear:"Wyczyść",link:"Link",attach:"Załącz plik",tex:"Wstaw wzór",code:"Kod",image:"Wstaw ilustrację",insertHorizontalRule:"Wstaw separator",superscript:"Indeks górny",subscript:"Indeks dolny",insertTable:"Wstaw tabelę",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Scal komórki",splitCells:"Podziel komórki",rowsColumnsManaging:"Zarządzaj wierszami i kolumnami",cellColor:"Kolor komórki",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Wstaw kolumnę przed","Wstaw kolumnę po"],["Wstaw wiersz przed","Wstaw wiersz po"],["Usuń kolumnę","Usuń wiersz"]],editorCodeOptions:["Kod w tekście","Kod w bloku"],editorFontOptions:{small:"Small",normal:"Normalny",large:"Large",title:"Tytuł",subtitle:"Podtytuł"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],close:"Fechar",nothingFoundMessage:"Nada encontrado",defaultErrorMessage:"Valor é inválido",spinTexts:["Anterior","Próximo"],shortWeekDays:["Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emirados Árabes Unidos",[i.AF]:"Afeganistão",[i.AG]:"Antígua e Barbuda",[i.AI]:"Anguila",[i.AL]:"Albânia",[i.AM]:"Armênia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Áustria",[i.AU]:"Austrália",[i.AW]:"Aruba",[i.AZ]:"Azerbaijão",[i.BA]:"Bósnia e Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bélgica",[i.BF]:"Burkina Faso",[i.BG]:"Bulgária",[i.BH]:"Bahréin",[i.BI]:"Burundi",[i.BJ]:"Benín",[i.BL]:"São Bartolomeu",[i.BM]:"Bermudas",[i.BN]:"Brunéi",[i.BO]:"Bolívia",[i.BQ]:"Bonaire, Santo Eustáquio e Saba",[i.BR]:"Brasil",[i.BS]:"Bahamas",[i.BT]:"Butão",[i.BW]:"Botsuana",[i.BY]:"Bielorrusia",[i.BZ]:"Belice",[i.CA]:"Canadá",[i.CD]:"República Democrática do Congo",[i.CF]:"República Centro-Africana",[i.CG]:"Congo",[i.CH]:"Suiça",[i.CI]:"Costa do Marfim",[i.CL]:"Chile",[i.CM]:"Camarões",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cabo Verde",[i.CW]:"Curaçau",[i.CY]:"Chipre",[i.CZ]:"República Checa",[i.DE]:"Alemanha",[i.DJ]:"Yibuti",[i.DK]:"Dinamarca",[i.DM]:"Dominica",[i.DO]:"República Dominicana",[i.DZ]:"Algeria",[i.EC]:"Equador",[i.EE]:"Estônia",[i.EG]:"Egito",[i.ER]:"Eritreia",[i.ES]:"Espanha",[i.ET]:"Etiópia",[i.FI]:"Finlândia",[i.FJ]:"Fiyi",[i.FK]:"Ilhas Malvinas",[i.FM]:"Micronesia",[i.FR]:"França",[i.GA]:"Gabão",[i.GB]:"Reino Unido",[i.GD]:"Granada",[i.GE]:"Georgia",[i.GF]:"Guiana",[i.GH]:"Gana",[i.GI]:"Gibraltar",[i.GL]:"Groenlândia",[i.GM]:"Gambia",[i.GN]:"Guiné",[i.GP]:"Guadalupe",[i.GQ]:"Guiné Equatorial",[i.GR]:"Grécia",[i.GT]:"Guatemala",[i.GW]:"Guiné-Bisssau",[i.GY]:"Guiana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croácia",[i.HT]:"Haiti",[i.HU]:"Hungría",[i.ID]:"Indonésia",[i.IE]:"Irlanda",[i.IL]:"Israel",[i.IN]:"Índia",[i.IQ]:"Iraque",[i.IR]:"Irã",[i.IS]:"Islândia",[i.IT]:"Itália",[i.JM]:"Jamaica",[i.JO]:"Jordania",[i.JP]:"Japão",[i.KE]:"Kenia",[i.KG]:"Quiirguistão",[i.KH]:"Camboja",[i.KM]:"Comoros",[i.KN]:"São Cristóvão e Nevis",[i.KP]:"Coreia do Norte",[i.KR]:"Coreia do Sul",[i.KW]:"Kuwait",[i.KY]:"Ilhas Cayman",[i.KZ]:"Kazaquistão",[i.LA]:"Laos",[i.LB]:"Líbano",[i.LC]:"Santa Lucía",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Libéria",[i.LS]:"Lesotho",[i.LT]:"Lituânia",[i.LU]:"Luxemburgo",[i.LV]:"Letônia",[i.LY]:"Líbia",[i.MA]:"Marrocos",[i.MC]:"Mônaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"São Martinho",[i.MG]:"Madagascar",[i.MK]:"Macedônia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongólia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritânia",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauricio",[i.MV]:"Maldivas",[i.MW]:"Malawi",[i.MX]:"México",[i.MY]:"Malasia",[i.MZ]:"Moçambique",[i.NA]:"Namibia",[i.NC]:"Nova Caledónia",[i.NE]:"Níger",[i.NG]:"Nigéria",[i.NI]:"Nicarágua",[i.NL]:"Países Baixos",[i.NO]:"Noruega",[i.NP]:"Nepal",[i.NZ]:"Nova Zelandia",[i.OM]:"Omã",[i.PA]:"Panamá",[i.PE]:"Peru",[i.PF]:"Polinesia Francesa",[i.PG]:"Papua-Nova Guiné",[i.PH]:"Filipinas",[i.PK]:"Paquistão",[i.PL]:"Polônia",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguai",[i.QA]:"Catar",[i.RE]:"A reunião",[i.RO]:"Romênia",[i.RS]:"Sérbia",[i.RU]:"Rússia",[i.RW]:"Ruanda",[i.SA]:"Arábia Saudita",[i.SB]:"Ilhas Salomão",[i.SC]:"Seychelles",[i.SD]:"Sudão",[i.SE]:"Suécia",[i.SG]:"Singapura",[i.SH]:"Santa Eena",[i.SI]:"Eslovênia",[i.SK]:"Eslováquia",[i.SL]:"Serra Leoa",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somália",[i.SR]:"Suriname",[i.ST]:"Santo Tomé e Príncipe",[i.SV]:"El Salvador",[i.SX]:"São Martinho",[i.SY]:"Síria",[i.SZ]:"Essuatíni",[i.TC]:"Ilhas Turcas e Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Tailândia",[i.TJ]:"Tajiquistão",[i.TL]:"Timor Oriental",[i.TM]:"Turkmenistán",[i.TN]:"T´únez",[i.TO]:"Tonga",[i.TR]:"Turquia",[i.TT]:"Trinidad e Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzânia",[i.UA]:"Ucrânia",[i.UG]:"Uganda",[i.US]:"Estados Unidos",[i.UY]:"Uruguai",[i.UZ]:"Uzbequistão",[i.VC]:"São Vicente e Granadinas",[i.VE]:"Venezuela",[i.VG]:"Ilhas Virgens Británicas",[i.VN]:"Vietnã",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemén",[i.YT]:"Maiote",[i.ZA]:"África do Sul",[i.ZM]:"Zâmbia",[i.ZW]:"Zimbabwe"}}),f=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"portuguese"},m),{cancel:"Cancelar",done:"Concluir",more:"Mais",otherDate:"Outra data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Escolha o dia","Escolha o intervalo","Escolha os dias"],range:["de","para"],countTexts:["Mais","Menos"],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:["Mostrar senha","Esconder senha"],copyTexts:["Copiar","Copiado"],shortCalendarMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],pagination:["Página anterior","Próxima página"],fileTexts:{loadingError:"Erro ao carregar",preview:"Preview",remove:"Remover"},inputFileTexts:{defaultLabelSingle:"ou arraste ele aqui",defaultLabelMultiple:"ou arraste eles aqui",defaultLinkSingle:"Escolha um arquivo",defaultLinkMultiple:"Escolha os arquivos",maxSizeRejectionReason:"Arquivo ultrapassa o tamanho ",formatRejectionReason:"Formato do arquivo inválido",drop:"Solte o arquivo aqui",dropMultiple:"Solte os arquivos aqui"},multiSelectTexts:{all:"Selecionar tudo",none:"Selecione nenhum"},prompt:{yes:"Sim",no:"Não"}}),{showHideText:"Mostrar/Esconder",paginationTexts:{pages:"Páginas",linesPerPage:"Linhas por página",of:"de"}}),{cardNumber:["Número","Número do Cartão"],cardExpiry:["Validade","Validade do Cartão"]}),{colorSelectorModeNames:["Cor sólida","Gradiente"],toolbarTools:{undo:"Desfazer",redo:"Refazer",font:"Fonte",fontStyle:"Estilo da Fonte",fontSize:"Tamanho da Fonte",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strikeThrough:"Riscado",justify:"Justificado",justifyLeft:"Justificado à esquerda",justifyCenter:"Justificado ao centro",justifyRight:"Justificado à direita",justifyFull:"Totalmente justificado",list:"Lista",indent:"Recuo interno",outdent:"Recuo externo",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",quote:"Frase",foreColor:"Cor",backColor:"Cor de fundo",hiliteColor:"Cor destaque",clear:"Limpar",link:"Link",attach:"Anexar arquivo",tex:"Inserir TeX",code:"Código",image:"Inserir imagem",insertHorizontalRule:"Inserir regra horizontal",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],close:"Закрыть",nothingFoundMessage:"Ничего не найдено",defaultErrorMessage:"Поле заполнено неверно",spinTexts:["Предыдущий","Следующий"],shortWeekDays:["ПН","ВТ","СР","ЧТ","ПТ","СБ","ВС"],countries:{[i.AD]:"Андорра",[i.AE]:"Объединенные Арабские Эмираты",[i.AF]:"Афганистан",[i.AG]:"Антигуа и Барбуда",[i.AI]:"Ангилья",[i.AL]:"Албания",[i.AM]:"Армения",[i.AO]:"Ангола",[i.AR]:"Аргентина",[i.AT]:"Австрия",[i.AU]:"Австралия",[i.AW]:"Аруба",[i.AZ]:"Азербайджан",[i.BA]:"Босния и Герцеговина",[i.BB]:"Барбадос",[i.BD]:"Бангладеш",[i.BE]:"Бельгия",[i.BF]:"Буркина Фасо",[i.BG]:"Болгария",[i.BH]:"Бахрейн",[i.BI]:"Бурунди",[i.BJ]:"Бенин",[i.BL]:"Сен-Бартельми",[i.BM]:"Бермудские острова",[i.BN]:"Бруней-Даруссалам",[i.BO]:"Боливия",[i.BQ]:"Бонайре, Синт-Эстатиус и Саба",[i.BR]:"Бразилия",[i.BS]:"Багамские Острова",[i.BT]:"Бутан",[i.BW]:"Ботсвана",[i.BY]:"Беларусь (Белоруссия)",[i.BZ]:"Белиз",[i.CA]:"Канада",[i.CD]:"Дем. Респ. Конго (Киншаса)",[i.CF]:"Центральноафриканская Республика",[i.CG]:"Конго (Браззавиль)",[i.CH]:"Швейцария",[i.CI]:"Кот-д’Ивуар",[i.CL]:"Чили",[i.CM]:"Камерун",[i.CN]:"Китайская Н.Р.",[i.CO]:"Колумбия",[i.CR]:"Коста-Рика",[i.CU]:"Куба",[i.CV]:"Кабо-Верде",[i.CW]:"Кюрасао",[i.CY]:"Кипр",[i.CZ]:"Чехия",[i.DE]:"Германия",[i.DJ]:"Джибути",[i.DK]:"Дания",[i.DM]:"Доминика",[i.DO]:"Доминиканская Республика",[i.DZ]:"Алжир",[i.EC]:"Эквадор ",[i.EE]:"Эстония ",[i.EG]:"Египет",[i.ER]:"Эритрея",[i.ES]:"Испания",[i.ET]:"Эфиопия",[i.FI]:"Финляндия",[i.FJ]:"Фиджи",[i.FK]:"Фолклендские острова",[i.FM]:"Ф.Ш. Микронезии",[i.FR]:"Франция",[i.GA]:"Габон",[i.GB]:"Великобритания",[i.GD]:"Гренада",[i.GE]:"Грузия",[i.GF]:"Гайана",[i.GH]:"Гана",[i.GI]:"Гибралтар",[i.GL]:"Гренландия",[i.GM]:"Гамбия",[i.GN]:"Гвинея",[i.GP]:"Гваделупа",[i.GQ]:"Экваториальная Гвинея",[i.GR]:"Греция",[i.GT]:"Гватемала",[i.GW]:"Гвинея-Бисау",[i.GY]:"Гайана",[i.HK]:"Гонконг",[i.HN]:"Гондурас",[i.HR]:"Хорватия",[i.HT]:"Гаити",[i.HU]:"Венгрия",[i.ID]:"Индонезия ",[i.IE]:"Ирландия",[i.IL]:"Израиль",[i.IN]:"Индия",[i.IQ]:"Ирак",[i.IR]:"Иран",[i.IS]:"Исландия",[i.IT]:"Италия",[i.JM]:"Ямайка",[i.JO]:"Иордания",[i.JP]:"Япония ",[i.KE]:"Кения",[i.KG]:"Киргизия",[i.KH]:"Камбоджа",[i.KM]:"Коморы",[i.KN]:"Сент-Китс и Невис",[i.KP]:"Корейская НДР",[i.KR]:"Респ. Корея",[i.KW]:"Кувейт",[i.KY]:"Каймановы острова",[i.KZ]:"Казахстан",[i.LA]:"Лаос",[i.LB]:"Ливан ",[i.LC]:"Сент-Люсия",[i.LI]:"Лихтенштейн",[i.LK]:"Шри-Ланка",[i.LR]:"Либерия",[i.LS]:"Лесото",[i.LT]:"Литва",[i.LU]:"Люксембург",[i.LV]:"Латвия",[i.LY]:"Ливия",[i.MA]:"Марокко",[i.MC]:"Монако",[i.MD]:"Молдова",[i.ME]:"Черногория",[i.MF]:"Сен-Мартен",[i.MG]:"Мадагаскар",[i.MK]:"Респ. Северная Македония",[i.ML]:"Мали",[i.MM]:"Бирма (Мьянма)",[i.MN]:"Монголия",[i.MO]:"Макао",[i.MQ]:"Мартиника",[i.MR]:"Мавритания",[i.MS]:"Монтсеррат",[i.MT]:"Мальта",[i.MU]:"Маврикий",[i.MV]:"Мальдивские острова",[i.MW]:"Малави",[i.MX]:"Мексика",[i.MY]:"Малайзия",[i.MZ]:"Мозамбик",[i.NA]:"Намибия",[i.NC]:"Новая Каледония",[i.NE]:"Нигер",[i.NG]:"Нигерия",[i.NI]:"Никарагуа",[i.NL]:"Нидерланды",[i.NO]:"Норвегия",[i.NP]:"Непал",[i.NZ]:"Новая Зеландия",[i.OM]:"Оман",[i.PA]:"Панама",[i.PE]:"Перу",[i.PF]:"Французская Полинезия (Таити)",[i.PG]:"Папуа-Новая Гвинея",[i.PH]:"Филиппины",[i.PK]:"Пакистан",[i.PL]:"Польша",[i.PT]:"Португалия",[i.PW]:"Палау",[i.PY]:"Парагвай",[i.QA]:"Катар",[i.RE]:"Реюньон",[i.RO]:"Румыния",[i.RS]:"Сербия",[i.RU]:"Россия",[i.RW]:"Руанда",[i.SA]:"Саудовская Аравия ",[i.SB]:"Соломоновы Острова ",[i.SC]:"Сейшелы",[i.SD]:"Судан",[i.SE]:"Швеция",[i.SG]:"Сингапур",[i.SH]:"Остров Святой Елены",[i.SI]:"Словения",[i.SK]:"Словакия",[i.SL]:"Сьерра-Леоне",[i.SM]:"Сан-Марино",[i.SN]:"Сенегал",[i.SO]:"Сомали",[i.SR]:"Суринам ",[i.ST]:"Сан-Томе и Принсипи",[i.SV]:"Сальвадор",[i.SX]:"Синт-Мартен",[i.SY]:"Сирийская арабская республика",[i.SZ]:"Свазиленд",[i.TC]:"Тёркс и Кайкос",[i.TD]:"Чад",[i.TG]:"Того",[i.TH]:"Таиланд ",[i.TJ]:"Таджикистан",[i.TL]:"Восточный Тимор",[i.TM]:"Туркменистан",[i.TN]:"Тунис",[i.TO]:"Тонга",[i.TR]:"Турция",[i.TT]:"Тринидад и Тобаго",[i.TW]:"Тайвань",[i.TZ]:"Танзания",[i.UA]:"Украина",[i.UG]:"Уганда",[i.US]:"США",[i.UY]:"Уругвай",[i.UZ]:"Узбекистан",[i.VC]:"Сент-Винсент и Гренадины",[i.VE]:"Венесуэла",[i.VG]:"Британские Виргинские острова",[i.VN]:"Вьетнам",[i.VU]:"Вануату ",[i.WS]:"Самоа",[i.YE]:"Йемен ",[i.YT]:"Майотта",[i.ZA]:"Южно-Африканская Респ.",[i.ZM]:"Замбия",[i.ZW]:"Зимбабве",[i.XK]:"Косово"}}),v=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"russian"},f),{cancel:"Отменить",done:"Готово",more:"Еще",otherDate:"Другая дата...",showAll:"Показать все",hide:"Скрыть",mobileCalendarTexts:["Выберите день","Выберите период","Выбрать дни"],range:["от","до"],countTexts:["Плюс","Минус"],time:{"HH:MM":"ЧЧ:ММ","HH:MM:SS":"ЧЧ:ММ:СС","HH:MM:SS.MSS":"ЧЧ:ММ:СС.МСС"},dateTexts:{DMY:"дд.мм.гггг",MDY:"мм.дд.гггг",YMD:"гггг.мм.дд"},digitalInformationUnits:["Б","КиБ","МиБ"],passwordTexts:["Показать пароль","Скрыть пароль"],copyTexts:["Копировать","Скопировано"],shortCalendarMonths:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Нояб","Дек"],pagination:["Предыдущая страница","Следующая страница"],fileTexts:{loadingError:"Ошибка загрузки",preview:"Предварительный просмотр",remove:"Удалить"},inputFileTexts:{defaultLabelSingle:"или перетащите его сюда",defaultLabelMultiple:"или перетащите их сюда",defaultLinkSingle:"Выберите файл",defaultLinkMultiple:"Выберите файлы",maxSizeRejectionReason:"Файл превышает объем ",formatRejectionReason:"Неверный формат файла",drop:"Поместите файл сюда",dropMultiple:"Поместите файлы сюда"},multiSelectTexts:{all:"Выбрать все",none:"Снять выбор"},prompt:{yes:"Да",no:"Нет"}}),{cardNumber:["Номер","Номер карты"],cardExpiry:["Срок","Срок действия"]}),{showHideText:"Показать/Скрыть",paginationTexts:{pages:"Страниц",linesPerPage:"Строк на страницу",of:"из"}}),{colorSelectorModeNames:["Сплошной цвет","Градиент"],toolbarTools:{undo:"Отменить",redo:"Повторить",font:"Шрифт",fontStyle:"Стиль шрифта",fontSize:"Размер шрифта",bold:"Полужирный",italic:"Курсив",underline:"Подчеркнутый",strikeThrough:"Зачеркнутый",justify:"Выравнивание",justifyLeft:"Выровнять текст по левому краю",justifyCenter:"Выровнять текст по центру",justifyRight:"Выровнять текст по правому краю",justifyFull:"Выровнять по ширине",list:"Списки",indent:"Увеличить отступ",outdent:"Уменьшить отступ",unorderedList:"Маркированный список",orderedList:"Нумерованный список",quote:"Цитата",foreColor:"Цвет: Текст",hiliteColor:"Цвет выделения",backColor:"Цвет фона",clear:"Сбросить форматирование",link:"Ссылка",attach:"Вставить файл",tex:"Вставить формулу",code:"Code",image:"Вставить изображение",insertHorizontalRule:"Разделитель",superscript:"Надстрочный",subscript:"Подстрочный",insertTable:"Добавить таблицу",insertGroup:"Добавить группу",hiliteGroup:"Покрасить группу",removeGroup:"Удалить группу",insertAnchor:"Добавить якорь",mergeCells:"Объединить ячейки",splitCells:"Разъединить ячейки",rowsColumnsManaging:"Управление строками и столбцами",cellColor:"Цвет ячейки",setDetails:"Аккордеон",removeDetails:"Удалить аккордеон"},editorEditLink:{urlExample:"example.com",anchorExample:"якорь"},editorTableCommands:[["Добавить столбец слева","Добавить столбец справа"],["Добавить строку сверху","Добавить строку снизу"],["Удалить столбец","Удалить строку"]],editorCodeOptions:["Код","Код в блоке"],editorFontOptions:{small:"Мелкий",normal:"Обычный",large:"Крупный",title:"Заголовок",subtitle:"Подзаголовок"}}),{previewTexts:{rotate:"Повернуть"},zoomTexts:{zoomIn:"Увеличить масштаб",zoomOut:"Уменьшить масштаб",reset:"Сбросить масштаб"}}),{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],close:"Cerrar",nothingFoundMessage:"Nada encontrado",defaultErrorMessage:"El valor es inválido",spinTexts:["Previo","Siguiente"],shortWeekDays:["Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emiratos Árabes Unidos",[i.AF]:"Afganistán",[i.AG]:"Antigua y Barbuda",[i.AI]:"Anguila",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaiyán",[i.BA]:"Bosnia y Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bélgica",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahréin",[i.BI]:"Burundi",[i.BJ]:"Benín",[i.BL]:"San Bartolomé",[i.BM]:"Bermudas",[i.BN]:"Brunéi",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, San Eustaquio y Saba",[i.BR]:"Brasil",[i.BS]:"Bahamas",[i.BT]:"Bután",[i.BW]:"Botsuana",[i.BY]:"Bielorrusia",[i.BZ]:"Belice",[i.CA]:"Canadá",[i.CD]:"República Democrática del Congo",[i.CF]:"República Centro-Africana",[i.CG]:"Congo",[i.CH]:"Suiza",[i.CI]:"Costa de Marfil",[i.CL]:"Chile",[i.CM]:"Camerún",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cabo Verde",[i.CW]:"Curazao",[i.CY]:"Chipre",[i.CZ]:"República Checa",[i.DE]:"Alemania",[i.DJ]:"Yibuti",[i.DK]:"Dinamarca",[i.DM]:"Dominica",[i.DO]:"República Dominicana",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egipto",[i.ER]:"Eritrea",[i.ES]:"España",[i.ET]:"Etiopía",[i.FI]:"Finlandia",[i.FJ]:"Fiyi",[i.FK]:"Islas Malvinas",[i.FM]:"Micronesia",[i.FR]:"Francia",[i.GA]:"Gabón",[i.GB]:"Reino Unido",[i.GD]:"Granada",[i.GE]:"Georgia",[i.GF]:"Guayana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenlandia",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadalupe",[i.GQ]:"Guinea Ecuatorial",[i.GR]:"Grecia",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bisáu",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croacia",[i.HT]:"Haití",[i.HU]:"Hungría",[i.ID]:"Indonesia",[i.IE]:"Irlanda",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Irak",[i.IR]:"Irán",[i.IS]:"Islandia",[i.IT]:"Italia",[i.JM]:"Jamaica",[i.JO]:"Jordania",[i.JP]:"Japón",[i.KE]:"Kenia",[i.KG]:"Kirguistán",[i.KH]:"Camboya",[i.KM]:"Comoros",[i.KN]:"San Cristóbal y Nieves",[i.KP]:"Corea del Norte",[i.KR]:"Corea del Sur",[i.KW]:"Kuwait",[i.KY]:"Islas Caimán",[i.KZ]:"Kazajstán",[i.LA]:"Laos",[i.LB]:"Líbano",[i.LC]:"Santa Lucía",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lituania",[i.LU]:"Luxemburgo",[i.LV]:"Letonia",[i.LY]:"Libia",[i.MA]:"Marruecos",[i.MC]:"M´ónaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"San Martín",[i.MG]:"Madagascar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauricio",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"México",[i.MY]:"Malasia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"Nueva Caledonia",[i.NE]:"Níger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Países Bajos",[i.NO]:"Noruega",[i.NP]:"Nepal",[i.NZ]:"Nueva Zelanda",[i.OM]:"Omán",[i.PA]:"Panamá",[i.PE]:"Perú",[i.PF]:"Polinesia Francesa",[i.PG]:"Papúa Nueva Guínea",[i.PH]:"Filipinas",[i.PK]:"Pakistán",[i.PL]:"Polonia",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguay",[i.QA]:"Catar",[i.RE]:"Reunión",[i.RO]:"Rumania",[i.RS]:"Serbia",[i.RU]:"Rusia",[i.RW]:"Ruanda",[i.SA]:"Arabia Saudita",[i.SB]:"Islas Salomón",[i.SC]:"Seychelles",[i.SD]:"Sudán",[i.SE]:"Suecia",[i.SG]:"Singapur",[i.SH]:"Santa Elena",[i.SI]:"Eslovenia",[i.SK]:"Eslovaquia",[i.SL]:"Sierra Leona",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Surinam",[i.ST]:"Santo Tomé y Príncipe",[i.SV]:"El Salvador",[i.SX]:"San Martín",[i.SY]:"Siria",[i.SZ]:"Suazilandia",[i.TC]:"Islas Turcas y Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Tailandia",[i.TJ]:"Tayikistán",[i.TL]:"Timor Oriental",[i.TM]:"Turkmenistán",[i.TN]:"T´únez",[i.TO]:"Tonga",[i.TR]:"Turquía",[i.TT]:"Trinidad y Tobago",[i.TW]:"Taiwán",[i.TZ]:"Tanzania",[i.UA]:"Ucrania",[i.UG]:"Uganda",[i.US]:"Estados Unidos",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistán",[i.VC]:"San Vicente y las Granadinas",[i.VE]:"Venezuela",[i.VG]:"Islas Vírgenes Británicas",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemén",[i.YT]:"Mayotte",[i.ZA]:"Sudáfrica",[i.ZM]:"Zambia",[i.ZW]:"Zimbabue"}}),b=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"spanish"},v),{cancel:"Cancelar",done:"Hecho",more:"Más",otherDate:"Otra fecha...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Seleccione el día","Seleccione un rango","Elige días"],range:["desde","hasta"],countTexts:["Más","Menos"],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:["Mostrar contraseña","Ocultar contraseña"],copyTexts:["Copiar","Copiado"],shortCalendarMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],pagination:["Página anterior","Página siguiente"],fileTexts:{loadingError:"Error de carga",preview:"Previsualizar",remove:"Remover"},inputFileTexts:{defaultLabelSingle:"o arrástrelo aquí",defaultLabelMultiple:"o arrástrelos aquí",defaultLinkSingle:"Seleccione un archivo",defaultLinkMultiple:"Seleccione archivos",maxSizeRejectionReason:"Archivo demasiado grande ",formatRejectionReason:"Formato de archivo inválido",drop:"Suelte el archivo aquí",dropMultiple:"Suelte los archivos aquí"},multiSelectTexts:{all:"Seleccionar todo",none:"Seleccionar ninguno"},prompt:{yes:"Sí",no:"No"}}),{showHideText:"Mostrar/Ocultar",paginationTexts:{pages:"Páginas",linesPerPage:"Lineas por página",of:"de"}}),{cardNumber:["Número","Número de la tarjeta"],cardExpiry:["Expira","Fecha de expiración"]}),{colorSelectorModeNames:["Color sólido","Gradiente"],toolbarTools:{undo:"Deshacer",redo:"Rehacer",font:"Fuente",fontStyle:"Estilo de la fuente",fontSize:"Tamaño de la fuente",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strikeThrough:"Tachado",justify:"Justificar",justifyLeft:"Alinear a izquierda",justifyCenter:"Centrar",justifyRight:"Alinear a derecha",justifyFull:"Justificar",list:"Listar",indent:"Sangría",outdent:"Sin sangría",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",quote:"Cita",foreColor:"Color",backColor:"Color de fondo",hiliteColor:"Color de resaltado",clear:"Limpiar",link:"Enlace",attach:"Adjuntar archivo",tex:"Insertar texto",code:"Código",image:"Insertar imagen",insertHorizontalRule:"Insertar regla horizontal",superscript:"Superíndice",subscript:"Subíndice",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],close:"Kapat",nothingFoundMessage:"Kayıt Bulunamadı",defaultErrorMessage:"Değer hatalı",spinTexts:["Geri","İleri"],shortWeekDays:["Ptsi","Salı","Çrş","Prş","Cma","Ctsi","Pzr"],countries:s}),y=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"turkish"},b),{cancel:"İptal Et",done:"Tamam",more:"Daha Fazla",otherDate:"Farklı bir tarih...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Gün seç","Aralık seç","Günleri seçin"],range:["dan","a"],countTexts:["Artı","Eksi"],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:["Göster","Gizle"],copyTexts:["Kopyala","Kopyalandı"],shortCalendarMonths:["Ock","Şbt","Mart","Nsn","Mays","Hzrn","Tmmz","Ağu","Eyl","Ekm","Kas","Aral"],pagination:["Önceki","Sonraki"],fileTexts:{loadingError:"Yükleme Hatası",preview:"Öz İzleme",remove:"Kaldır"},inputFileTexts:{defaultLabelSingle:"veya buraya sürükleyin",defaultLabelMultiple:"veya buraya sürükleyin",defaultLinkSingle:"Dosya seç",defaultLinkMultiple:"Dosyaları seç",maxSizeRejectionReason:"Dosya boyutu fazla ",formatRejectionReason:"Dosya formatı yanlış",drop:"Dosyayı buraya bırakın",dropMultiple:"Dosyaları buraya bırakın"},multiSelectTexts:{all:"Hepsini seç",none:"Hiçbirini Seçme"},prompt:{yes:"Evet",no:"Hayır"}}),{showHideText:"Göster/Hizle",paginationTexts:{pages:"Sayfa",linesPerPage:"Görüntülenen",of:"toplam"}}),{cardNumber:["Kart No","Kart Numarası"],cardExpiry:["SKT","Son Kullanma"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Geri al",redo:"İleri Al",font:"Yazı Tipi",fontStyle:"Yazı stili",fontSize:"Yatı Boyutu",bold:"Kalın",italic:"İtalik",underline:"Altı Çizi",strikeThrough:"Üstü Çizili",justify:"Hizala",justifyLeft:"Sola yasla",justifyCenter:"Ortala",justifyRight:"Sağa yasla",justifyFull:"Doldur",list:"Liste",indent:"Girinti",outdent:"Çıkıntı",unorderedList:"Noktalı liste",orderedList:"Numerik liste",quote:"Alıntı",foreColor:"Renk",backColor:"Arka plan rengi",hiliteColor:"hiliteColor",clear:"Formatı Temizle",link:"Link",attach:"Dosya Ekle",tex:"TeX Ekle",code:"Kod",image:"Resim Ekle",insertHorizontalRule:"Satır Ekle",superscript:"Üst Simge",subscript:"Alt Simge",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],close:"Закрити",nothingFoundMessage:"Нічого не знайдено",defaultErrorMessage:"Поле заповнено невірно",spinTexts:["Попередній","Наступний"],shortWeekDays:["ПН","ВТ","СР","ЧТ","ПТ","СБ","НД"],countries:s}),_=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"ukrainian"},y),{cancel:"Скасувати",done:"Готово",more:"Ще",otherDate:"Інша дата ...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Виберіть день","Виберіть період","Виберіть дні"],range:["від","до"],countTexts:["Плюс","Мінус"],time:{"HH:MM":"ГГ:ХХ","HH:MM:SS":"ГГ:ХХ:СС","HH:MM:SS.MSS":"ГГ:ХХ:СС.МСС"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["Б","КБ","МБ"],passwordTexts:["Показати пароль","Приховати пароль"],copyTexts:["Копіювати","Скопійовано"],shortCalendarMonths:["Січ","Лют","Бер","Квіт","Трав","Черв","Лип","Серп","Верес","Жовт","Лист","Груд"],pagination:["Попередня сторінка","Наступна сторінка"],fileTexts:{loadingError:"Помилка завантаження",preview:"Попередній перегляд",remove:"Видалити"},inputFileTexts:{defaultLabelSingle:"та перенесіть його сюди",defaultLabelMultiple:"та перенесіть їx сюди",defaultLinkSingle:"Виберіть файл",defaultLinkMultiple:"Виберіть файли",maxSizeRejectionReason:"Файл перевищує розмір ",formatRejectionReason:"Невірний формат файлу",drop:"Помістіть файл сюди",dropMultiple:"Помістіть файли сюди"},multiSelectTexts:{all:"Вибрати все",none:"Не вибирати"},prompt:{yes:"Так",no:"Немає"}}),{cardNumber:["Номер","Номер карти"],cardExpiry:["Термін","Термін дії"]}),{showHideText:"Показати/Приховати",paginationTexts:{pages:"Сторінок",linesPerPage:"Рядків на сторінку",of:"з"}}),{colorSelectorModeNames:["Суцільний колір","Градієнт"],toolbarTools:{undo:"Скасувати",redo:"Повторити",font:"Шрифт",fontStyle:"Стиль шрифту",fontSize:"Розмір шрифту",bold:"Жирний",italic:"Курсив",underline:"Підкреслений",strikeThrough:"Закреслений",justify:"Вирівнювання",justifyLeft:"Вирівняти текст за лівим краєм",justifyCenter:"Вирівняти текст по центру",justifyRight:"Вирівняти текст за правим краєм",justifyFull:"Вирівняти за шириною",list:"Списки",indent:"Збільшити відступ",outdent:"Зменшити відступ",unorderedList:"Маркований список",orderedList:"Нумерований список",quote:"Цитата",foreColor:"Колір: Текст",hiliteColor:"Колір виділення",backColor:"Колір фону",clear:"Скинути форматування",link:"Посилання",attach:"Вставити файл",tex:"Вставити формулу",code:"Code",image:"Вставити зображення",insertHorizontalRule:"Розділювач",superscript:"Надрядковий",subscript:"Підрядковий",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],close:"Đóng",nothingFoundMessage:"Không tìm thấy",defaultErrorMessage:"Giá trị không hợp lệ",spinTexts:["Trước","Sau"],shortWeekDays:["T2","T3","T4","T5","T6","T7","CN"],countries:{[i.AD]:"Andorra",[i.AE]:"Các tiểu Vương quốc Ả Rập Thống nhất",[i.AF]:"Afghanistan",[i.AG]:"Antigua và Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Áo",[i.AU]:"Úc",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia và Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bỉ",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Saint Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius và Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Cộng hoà dân chủ Congo",[i.CF]:"Cộng hoà Trung Phi",[i.CG]:"Cộng hoà Congo",[i.CH]:"Thụy Sĩ",[i.CI]:"Bờ Biển Ngà",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"Trung Quốc",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Síp",[i.CZ]:"Cộng hòa Séc",[i.DE]:"Đức",[i.DJ]:"Djibouti",[i.DK]:"Đan Mạch",[i.DM]:"Dominica",[i.DO]:"Cộng hoà Dominica",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Ai Cập",[i.ER]:"Eritrea",[i.ES]:"Tây Ban Nha",[i.ET]:"Ethiopia",[i.FI]:"Phần Lan",[i.FJ]:"Fiji",[i.FK]:"Quần đảo Falkland",[i.FM]:"Liên bang Micronesia",[i.FR]:"Pháp",[i.GA]:"Gabon",[i.GB]:"Vương quốc Anh",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadeloupe",[i.GQ]:"Guinea Xích đạo",[i.GR]:"Hy Lạp",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hồng Kông",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"Ấn Độ",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Nhật Bản",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Campuchia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts và Nevis",[i.KP]:"Triều Tiên",[i.KR]:"Hàn Quốc",[i.KW]:"Kuwait",[i.KY]:"Quần đảo Cayman",[i.KZ]:"Kazakhstan",[i.LA]:"Lào",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litva",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Ma Rốc",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MF]:"Saint Martin",[i.MG]:"Madagascar",[i.MK]:"Bắc Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mông Cổ",[i.MO]:"Ma Cao",[i.MQ]:"Martinique",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"Nouvelle-Calédonie",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Hà Lan",[i.NO]:"Na Uy",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Polynesia thuộc Pháp (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Ba Lan",[i.PT]:"Bồ Đào Nha",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Réunion",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Nga",[i.RW]:"Rwanda",[i.SA]:"Ả Rập Xê-út",[i.SB]:"Quần đảo Solomon",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Thụy Điển",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome và Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syria",[i.SZ]:"Swaziland",[i.TC]:"Turks và Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thái Lan",[i.TJ]:"Tajikistan",[i.TL]:"Timor-Leste",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Thổ Nhĩ Kỳ",[i.TT]:"Trinidad và Tobago",[i.TW]:"Đài Loan",[i.TZ]:"Tanzania",[i.UA]:"Ukraina",[i.UG]:"Uganda",[i.US]:"Hoa Kỳ",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent và Grenadines",[i.VE]:"Venezuela",[i.VG]:"Quần đảo Virgin thuộc Anh",[i.VN]:"Việt Nam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.YT]:"Mayotte",[i.ZA]:"Nam Phi",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}});Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"vietnamese"},_),{cancel:"Hủy bỏ",done:"Hoàn thành",more:"Thêm",otherDate:"Ngày khác...",showAll:"Hiển thị tất cả",hide:"Ẩn",mobileCalendarTexts:["Chọn ngày","Chọn phạm vi","Chọn ngày"],range:["từ","đến"],countTexts:["Cộng","Trừ"],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:["Hiện mật khẩu","Ẩn mật khẩu"],copyTexts:["Sao chép","Đã sao chép"],shortCalendarMonths:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],pagination:["Trang trước","Trang sau"],fileTexts:{loadingError:"Lỗi tải",preview:"Xem trước",remove:"Gỡ bỏ"},inputFileTexts:{defaultLabelSingle:"hoặc kéo nó vào đây",defaultLabelMultiple:"hoặc kéo nó vào đây",defaultLinkSingle:"Chọn một tệp",defaultLinkMultiple:"Chọn nhiều tệp",maxSizeRejectionReason:"Tệp vượt quá kích thước ",formatRejectionReason:"Tệp sai định dạng",drop:"Thả tệp tại đây",dropMultiple:"Thả nhiều tệp tại đây"},multiSelectTexts:{all:"Chọn tất cả",none:"Không chọn"},prompt:{yes:"Đúng",no:"Không"}}),{showHideText:"Hiện/Ẩn",paginationTexts:{pages:"Tổng số trang",linesPerPage:"Số dòng mỗi trang",of:"trên"}}),{cardNumber:["Số thẻ","Số thẻ"],cardExpiry:["Hết hạn","Ngày hết hạn"]}),{colorSelectorModeNames:["Màu thuần","Màu chuyển sắc"],toolbarTools:{undo:"Hoàn tác",redo:"Làm lại",font:"Phông chữ",fontStyle:"Kiểu chữ",fontSize:"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",underline:"Gạch chân",strikeThrough:"Gạch ngang",justify:"Canh lề",justifyLeft:"Canh trái",justifyCenter:"Canh giữa",justifyRight:"Canh phải",justifyFull:"Canh đều",list:"Danh sách",indent:"Thụt vào",outdent:"Thụt ra",unorderedList:"Danh sách không đánh số",orderedList:"Danh sách được đánh số",quote:"Trích dẫn",foreColor:"Màu",backColor:"Màu nền",hiliteColor:"Màu đánh dấu",clear:"Xóa",link:"Liên kết",attach:"Tệp đính kèm",tex:"Chèn TeX",code:"Đoạn mã",image:"Chèn hình",insertHorizontalRule:"Chèn thước ngang",superscript:"Chỉ số trên",subscript:"Chỉ số dưới",insertTable:"Chèn bảng",hiliteGroup:"Hilite group",insertGroup:"Chèn nhóm",removeGroup:"Xóa nhóm",insertAnchor:"Chèn mỏ neo",mergeCells:"Hợp nhất ô",splitCells:"Tách ô",rowsColumnsManaging:"Quản lý hàng và cột",cellColor:"Màu ô",setDetails:"Chi tiết",removeDetails:"Hủy chi tiết"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Chèn cột trước","Chèn cột sau"],["Chèn hàng trước","Chèn hàng sau"],["Xóa cột","Xóa hàng"]],editorCodeOptions:["Mã trong dòng","Mã trong khối"],editorFontOptions:{small:"Nhỏ",normal:"Thường",large:"Lớn",title:"Tiêu đề",subtitle:"Phụ đề"}}),{previewTexts:{rotate:"Xoay"},zoomTexts:{zoomOut:"Thu nhỏ",zoomIn:"Phóng to",reset:"Đặt lại"}});var C=n(74788),w=n(25917);const x=new C.OlP("[TUI_DEFAULT_LANGUAGE]",{factory:()=>l}),M=new C.OlP("[TUI_LANGUAGE]",{factory:()=>(0,w.of)((0,C.f3M)(x))});new C.OlP("[TUI_LANGUAGE_LOADER]"),new C.OlP("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var O=n(95639),k=n(43190),S=n(88002);function P(t){return()=>(0,C.f3M)(M).pipe((0,k.w)((t=>(0,O.b)(t)?t:(0,w.of)(t))),(0,S.U)((e=>e[t])))}},2046:(t,e,n)=>{n.d(e,{s:()=>a});var i=n(74788),r=n(42600),o=n(43232),s=n(41035);let a=(()=>{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(o.S0o),i.Y36(r.M$T),i.Y36(i.SBq),i.Y36(r.llV),i.Y36(s.Ys))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(o.gXS,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})()},25466:(t,e,n)=>{n.d(e,{d:()=>o});var i=n(74788),r=n(89570);let o=(()=>{class t extends r.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})()},25535:(t,e,n)=>{n.d(e,{K:()=>k});var i=n(74788),r=n(42600),o=n(43232),s=n(30991),a=n(25466);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccordionItemContent","",5,"ng-template"]]}),t})();var u=n(63973),c=n(28347),d=n(35928),h=n(12057),p=n(2793),g=n(9975),m=n(89570),f=n(77825);const v=["focusableElement"];function b(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 y(t,e){if(1&t&&(i.ynx(0),i.YNc(1,b,1,3,"tui-svg",8),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.options.iconLarge)}}function _(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 C(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,_,2,1,"ng-container",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("polymorpheusOutlet",t.lazyContent)}}function w(t,e){if(1&t&&i.YNc(0,C,2,1,"div",10),2&t){const t=i.oxw();i.Q6J("ngIf",t.lazyContent)}}function x(t,e){1&t&&(i.TgZ(0,"div",13),i.Hsn(1,1),i.qZA())}const M=["*",[["","tuiAccordionItemContent",""]]],O=["*","[tuiAccordionItemContent]"];let k=(()=>{class t extends r.XnQ{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,r.V8W)(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(o.Auc),i.Y36(s._j))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion-item"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,l,5),i.Suo(n,a.d,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(v,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,r.FTc)(t),o.CV2]),i.qOj],ngContentSelectors:O,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(M),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,y,2,1,"ng-container",4),i.qZA(),i.TgZ(6,"tui-expand",5),i.YNc(7,w,1,1,"ng-template",6),i.YNc(8,x,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:[u.t,c.U,d.q,h.O5,p.S,g.I,m.Li,f.P],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;text-decoration:none;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}.t-wrapper[_ngcontent-%COMP%]:hover:not([data-mode]) > .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-base-02)}.t-wrapper[_ngcontent-%COMP%]:hover[data-mode=onDark] > .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}.t-wrapper[_ngcontent-%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})()},21260:(t,e,n)=>{n.d(e,{o:()=>f});var i=n(42600),r=n(66682),o=n(54487),s=n(59328),a=n(88002),l=n(45435),u=n(43190),c=n(46782),d=n(25535),h=n(74788),p=n(20690);const g=[[["tui-accordion-item"]]],m=["tui-accordion-item"];let f=(()=>{class t{constructor(t){this.destroy$=t,this.closeOthers=!0,this.rounded=!0,this.accordionItems=i.Mmc}ngAfterContentInit(){const{accordionItems:t}=this,e=(0,i.llR)(t),n=e.pipe((0,s.G)(),(0,a.U)((([t,e])=>e.find((e=>!t.includes(e)&&e.open)))),(0,l.h)(i.PcC));(0,r.T)(e.pipe((0,u.w)((t=>(0,r.T)(...t.map((t=>t.openChange.pipe((0,l.h)(o.y),(0,a.U)((()=>t))))))))),n).pipe((0,l.h)((()=>this.closeOthers)),(0,c.R)(this.destroy$)).subscribe((e=>{t.forEach((t=>{e!==t&&t.close()}))}))}}return t.ɵfac=function(e){return new(e||t)(h.Y36(i.a31,2))},t.ɵcmp=h.Xpm({type:t,selectors:[["tui-accordion"]],contentQueries:function(t,e,n){if(1&t&&h.Suo(n,d.K,4),2&t){let t;h.iGM(t=h.CRH())&&(e.accordionItems=t)}},inputs:{closeOthers:"closeOthers",rounded:"rounded"},features:[h._Bn([i.a31])],ngContentSelectors:m,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&&(h.F$t(g),h.TgZ(0,"div",0),h.Hsn(1),h.qZA()),2&t&&h.Q6J("collapsed",!0)("rounded",e.rounded)},directives:[p.g],styles:["[_nghost-%COMP%]{display:block}.t-group[_ngcontent-%COMP%]{display:flex}"],changeDetection:0}),t})()},30991:(t,e,n)=>{n.d(e,{SX:()=>p,Ii:()=>f,_j:()=>s,Mt:()=>g});var i=n(43232),r=n(89570),o=n(42600);const s=(0,o.JN4)({iconSmall:"tuiIconChevronDown",iconLarge:"tuiIconChevronDownLarge"});var a=n(74788),l=n(12057),u=n(77825);function c(t,e){if(1&t&&a._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet;a.Q6J("src",t)}}function d(t,e){1&t&&a.GkF(0)}let h=(()=>{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,i.R9V)(this.textfieldSize.size)?this.options.iconLarge:this.options.iconSmall}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.o1K),a.Y36(i.kId),a.Y36(s))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_rotated",e.rotated)},decls:3,vars:4,consts:[[3,"src",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"src"]],template:function(t,e){1&t&&(a.YNc(0,c,1,1,"tui-svg",0),a.YNc(1,d,1,0,"ng-container",1),a.ALo(2,"async")),2&t&&(a.Q6J("polymorpheusOutlet",e.arrowIcon),a.xp6(1),a.Q6J("ngIf",a.lcZ(2,2,e.dropdown.openChange)))},directives:[r.Li,l.O5,u.P],pipes:[l.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 p=new r.Al(h);let g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[l.ez,i.EIu,r.wq]]}),t})();const m={interactive:p,disabled:p},f=(0,o.JN4)(m)},38039:(t,e,n)=>{n.d(e,{g:()=>a});var i=n(42600),r=n(43232),o=n(74788);const s=["*"];let a=(()=>{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,i.dtH)(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,i.dtH)(e)&&e>99?"99+":(0,i.PcC)(this.value)?String(this.value):""}get isEmpty(){return!this.value&&0!==this.value}titleText({offsetWidth:t,scrollWidth:e}){return t{n.d(e,{p:()=>c});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(64201),l=n(72444);const u=["*"];let c=(()=>{class t extends o.F9l{constructor(t,e,n,i){super(t,e),this.mode$=n,this.options=i,this.size=this.options.size}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.checkbox)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}onFocused(t){this.updateFocused(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.Auc),i.Y36(s.Y2g))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(t,e){if(1&t&&i.Gf(a.f,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,o.FTc)(t),(0,o.wBO)(t),s.CV2]),i.qOj],ngContentSelectors:u,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:[l.f,r.JJ,r.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})()},72444:(t,e,n)=>{n.d(e,{f:()=>p});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(87605),l=n(10035),u=n(63973),c=n(28347),d=n(35928);const h=["focusableElement"];let p=(()=>{class t extends o.F9l{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,o.V8W)(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(r.a5,10),i.Y36(s.Y2g),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,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,o.FTc)(t),(0,o.wBO)(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:[a.r,l.t,u.t,c.U,d.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-width: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})()},64201:(t,e,n)=>{n.d(e,{f:()=>i.f,x:()=>l});var i=n(72444),r=n(12057),o=n(42600),s=n(43232),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.S1R,o.udY,o.Fqk,o.ceN,s.fBj]]}),t})()},55891:(t,e,n)=>{n.d(e,{e:()=>v});var i=n(43232),r=n(41035),o=n(97462),s=n(74788),a=n(12057),l=n(22545),u=n(91283),c=n(44766),d=n(89570),h=n(57634);function p(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){const t=e.polymorpheusOutlet;s.xp6(1),s.hij(" ",t," ")}}function g(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",4,5),s.NdJ("click",(function(){const e=s.CHM(t).$implicit;return s.oxw(2).itemClick.emit(e)})),s.TgZ(2,"span",6),s.YNc(3,p,2,1,"ng-container",7),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.MAs(1),i=s.oxw(2);s.Q6J("disabled",i.disabledItemHandler(t))("value",t),s.xp6(3),s.Q6J("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(t,n))}}function m(t,e){if(1&t&&(s.TgZ(0,"tui-data-list",2),s.YNc(1,g,4,4,"button",3),s.qZA()),2&t){const t=s.oxw();s.Q6J("emptyContent",t.emptyContent)("size",t.size),s.xp6(1),s.Q6J("ngForOf",t.items)}}function f(t,e){1&t&&s._UZ(0,"tui-loader",8)}let v=(()=>{class t extends o.z{constructor(t,e){super(t,(null==e?void 0:e.size)||"m"),this.items=[]}}return t.ɵfac=function(e){return new(e||t)(s.Y36(r.Ys),s.Y36(i.CsI,8))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-data-list-wrapper",3,"labels",""]],inputs:{items:"items"},features:[s._Bn([(0,i.RBi)(t),i.Y0]),s.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","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click"],["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&&(s.YNc(0,m,2,3,"tui-data-list",0),s.YNc(1,f,1,0,"ng-template",null,1,s.W1O)),2&t){const t=s.MAs(2);s.Q6J("ngIf",e.items)("ngIfElse",t)}},directives:[a.O5,l.q,a.sg,u.v,c.U,d.Li,h.k],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0}),t})()},97462:(t,e,n)=>{n.d(e,{z:()=>s});var i=n(74788),r=n(42600),o=n(43232);let s=(()=>{class t{constructor(t,e){this.itemsHandlers=t,this.defaultSize=e,this.optionsQuery=r.Mmc,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=this.defaultSize,this.itemClick=new i.vpe,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:e}){return{$implicit:t,active:(0,r.V8W)(e)}}getOptions(t=!1){return this.optionsQuery.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(r.PcC)}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(o.vKW,5),2&t){let t;i.iGM(t=i.CRH())&&(e.optionsQuery=t)}},inputs:{disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"}}),t})()},36866:(t,e,n)=>{n.d(e,{l:()=>m});var i=n(74788),r=n(24751),o=n(42600),s=n(59912),a=n(12057),l=n(93604),u=n(63973),c=n(28347);const d=["native"],h=["text"];function p(t,e){1&t&&(i.TgZ(0,"span",5),i.Hsn(1),i.qZA())}const g=["*"];let m=(()=>{class t extends o.M$T{constructor(t,e){super(t,e),this.maxLength=null,this.indent=-1}get nativeFocusableElement(){return this.native?this.native.nativeElement:null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get hasValue(){return""!==this.value}onValueChange(t){this.text&&(this.text.nativeElement.textContent=t,this.text.nativeElement.style.textIndent="",this.value=t)}onFocused(t){this.updateFocused(t)}onScroll(){var t;const e=(null===(t=this.native)||void 0===t?void 0:t.nativeElement.scrollLeft)||0;this.indent=-1-e}getFallbackValue(){return""}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input-inline"]],viewQuery:function(t,e){if(1&t&&(i.Gf(d,5),i.Gf(h,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.native=t.first),i.iGM(t=i.CRH())&&(e.text=t.first)}},inputs:{maxLength:"maxLength"},features:[i._Bn([s.E2,(0,o.FTc)(t)]),i.qOj],ngContentSelectors:g,decls:5,vars:10,consts:[[1,"t-before",3,"textContent"],["text",""],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__native","tuiMaskAccessor","","type","text",1,"t-native",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange","scroll","tuiFocusedChange"],["native",""],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(t,e){1&t&&(i.F$t(),i._UZ(0,"span",0,1),i.YNc(2,p,2,0,"span",2),i.TgZ(3,"input",3,4),i.NdJ("ngModelChange",(function(t){return e.onValueChange(t)}))("scroll",(function(){return e.onScroll()}))("tuiFocusedChange",(function(t){return e.onFocused(t)})),i.qZA()),2&t&&(i.Udp("text-indent",e.indent,"px"),i.Q6J("textContent",e.value),i.xp6(2),i.Q6J("ngIf",!e.hasValue),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly)("tuiFocusable",e.focusable),i.uIk("maxLength",e.maxLength))},directives:[a.O5,l.j,r.Fj,r.JJ,r.On,u.t,c.U],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}.t-before[_ngcontent-%COMP%]{display:block;padding-right:.02em;margin-left:1px;white-space:pre}.t-placeholder[_ngcontent-%COMP%]{display:inline-block;min-width:1px}.t-native[_ngcontent-%COMP%]{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}"],changeDetection:0}),t})()},71753:(t,e,n)=>{n.d(e,{q:()=>k});var i=n(97582),r=n(74788),o=n(24751),s=n(72878),a=n(42600),l=n(43232),u=n(89570),c=n(92482),d=n(75526),h=n(19042),p=n(38190),g=n(40330),m=n(4642),f=n(45642),v=n(12057),b=n(18289);function y(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 _(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,y,2,1,"ng-container",7),r.qZA()),2&t){r.oxw();const t=r.MAs(9);r.xp6(1),r.Q6J("polymorpheusOutlet",t)}}function C(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 w(t,e){1&t&&r.GkF(0)}function x(t,e){1&t&&r.Hsn(0,2)}const M=["*",[["input"]],[["tuiContent"]]],O=new r.OlP("");class k extends a.F9l{constructor(t,e,n,i,r,o,s,l){super(t,e,n),this.options=i,this.numberFormat=r,this.isIOS=o,this.textfieldSize=s,this.controller=l,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=a.Mmc}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,l.LfO)(t,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=i.length),this.computedPrefix+(0,l.lx_)(t,Object.assign(Object.assign({},this.numberFormat),{decimalLimit:n})).replace(a.fv1,a.emD)+this.computedPostfix}get isNativeValueNotFinished(){const t=this.nativeNumberValue;return t<0?t>this.computedMax:t[l.length,t.length-u.length]))]})}}k.ɵfac=function(t){return new(t||k)(r.Y36(o.a5,10),r.Y36(r.sBO),r.Y36(O,8),r.Y36(c.vy),r.Y36(l.HOy),r.Y36(a.FAH),r.Y36(l.kId),r.Y36(l.CsI))},k.ɵcmp=r.Xpm({type:k,selectors:[["tui-input-number"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.polymorpheusValueContent=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(l.ycg,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,a.FTc)(k),(0,a.wBO)(k),l.Y0]),r.qOj],ngContentSelectors:["*","input","tuiContent"],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(M),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,_,2,1,"div",2),r.qZA(),r.YNc(5,C,5,8,"section",3),r.YNc(6,w,1,0,"ng-container",4),r.ALo(7,"async"),r.YNc(8,x,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:[d.y,h.B,p.T,g.A,m.n,f.ro,v.O5,u.Li,b.v],pipes:[v.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)([a.UMq],k.prototype,"computeMin",null),(0,i.gn)([a.UMq],k.prototype,"computeMax",null),(0,i.gn)([a.UMq],k.prototype,"calculateMask",null)},21032:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{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,i.cpA)(t)]),r.qOj]}),t})()},92482:(t,e,n)=>{n.d(e,{vy:()=>o});var i=n(42600);const r={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0,decimal:"not-zero",precision:2},o=(0,i.JN4)(r)},38642:(t,e,n)=>{n.d(e,{K:()=>g});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(59912),l=n(98778),u=n(55788),c=n(75526),d=n(19042);const h=["*",[["input"]]],p=["*","input"];let g=(()=>{class t extends o.M$T{constructor(t,e,n,i){super(t,e,i),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,o.V8W)(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(s.kId),i.Y36(o.FXc,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,s.gXS,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(s.o1K,5),i.Gf(s.ycg,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([a.E2,(0,o.FTc)(t),(0,s.oEG)(t),(0,o.wBO)(t)],[a.yn]),i.qOj],ngContentSelectors:p,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(h),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:[l.o,u.e,c.y,d.B],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})()},55770:(t,e,n)=>{n.d(e,{w:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{onValueChange(t){this.host.onValueChange(t)}}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"]],features:[r._Bn([(0,i.cpA)(t)]),r.qOj]}),t})()},68039:(t,e,n)=>{n.d(e,{_:()=>p});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(4812),l=n(12057),u=n(42),c=n(63084);function d(t,e){1&t&&i.GkF(0)}const h=["*"];let p=(()=>{class t extends o.F9l{constructor(t,e,n){super(t,e),this.modeDirective=n,this.identityMatcher=o.bgn,this.contentAlign="right",this.size="l",this.hideRadio=!1,this.pseudoDisabled=!1}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.radio)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e: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?s.NmR.Primary:s.NmR.Secondary:this.checked?s.NmR.WhiteblockActive:s.NmR.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(r.a5,10),i.Y36(i.sBO),i.Y36(s.wtG,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-block"]],viewQuery:function(t,e){if(1&t&&i.Gf(a._M,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,o.FTc)(t),(0,o.wBO)(t)]),i.qOj],ngContentSelectors:h,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,d,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:[l.O5,u.o,c._,r.JJ,r.On],pipes:[l.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=xs][_nghost-%COMP%]{font:var(--tui-font-text-xs)}[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-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-right:.5rem}[data-align=right][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:0 0 0 1rem}[data-align=right][data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-left:.5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:not(._focused):after{border-width:1px}[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=xs][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-xs) / 2 - .5rem) .25rem;transform:scale(.75)}[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=xs][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-xs)}[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})()},4812:(t,e,n)=>{n.d(e,{_M:()=>i._,FE:()=>l});var i=n(63084),r=n(12057),o=n(42600),s=n(43232),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.S1R,o.udY,o.Fqk,o.ceN,s.WUl]]}),t})();n(48806)},63084:(t,e,n)=>{n.d(e,{_:()=>m});var i=n(74788),r=n(24751),o=n(42600);const s=["*"];let a=(()=>{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:s,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),t})();var l=n(48806),u=n(42),c=n(10035),d=n(63973),h=n(28347),p=n(35928);const g=["focusableElement"];let m=(()=>{class t extends o.F9l{constructor(t,e,n,i){super(t,e),this.options=n,this.radioGroup=i,this.identityMatcher=o.bgn,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,o.V8W)(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(r.a5,10),i.Y36(i.sBO),i.Y36(l.nh),i.Y36(a,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio"]],viewQuery:function(t,e){if(1&t&&i.Gf(g,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,o.FTc)(t),(0,o.wBO)(t)]),i.qOj],decls:4,vars:13,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],[1,"t-mark"],["type","radio",1,"t-native",3,"disabled","id","tuiChecked","tuiFocusable","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i._UZ(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.ekj("t-mark_visible",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:[u.o,c.t,d.t,h.U,p.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%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;background-color:currentColor;border-radius:100%;transform:scale(0)}.t-mark_visible[_ngcontent-%COMP%]{transform:scale(1)}[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-width: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}"],changeDetection:0}),t})()},48806:(t,e,n)=>{n.d(e,{nh:()=>s});var i=n(42600),r=n(43232);const o={size:"m",appearances:{unchecked:r.NmR.Outline,checked:r.NmR.Primary}},s=(0,i.JN4)(o)},81476:(t,e,n)=>{n.d(e,{Q4:()=>_,TA:()=>y,Ig:()=>C});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(89570),l=n(79765),u=n(66682),c=n(59193),d=n(39761),h=n(88002),p=n(87519),g=n(12057),m=n(77825),f=n(78273);function v(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 b(t,e){1&t&&i._UZ(0,"span",4)}let y=(()=>{class t{constructor(t,e,n,i,r,s,a,g){this.icons=t,this.context=e,this.host=n,this.el=i,this.option=r,this.dataList=s,this.control=a,this.abstractControl=g,this.changeDetection$=new l.xQ,this.selected$=(0,u.T)(this.changeDetection$,this.control.valueChanges||c.E,(0,o.mLY)(this.el.nativeElement,"animationstart")).pipe((0,d.O)(null),(0,h.U)((()=>this.selected)),(0,p.x)())}get matcher(){return this.host.identityMatcher||o.bgn}ngOnInit(){Promise.resolve().then((()=>{var t,e;(0,o.PcC)(this.option.value)&&!this.option.disabled&&(null===(e=(t=this.host).checkOption)||void 0===e||e.call(t,this.option.value))}))}ngDoCheck(){this.changeDetection$.next()}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,o.PcC)(this.option.value)&&(0,o.PcC)(this.value)&&this.matcher(this.value,this.option.value)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.Gs9),i.Y36(a.yf),i.Y36(s.N1S),i.Y36(i.SBq),i.Y36(s.vKW),i.Y36(s.qiE,8),i.Y36(r.a5),i.Y36(o.M$T,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,v,1,2,"tui-svg",1),i.ALo(2,"async"),i.YNc(3,b,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:[g.tP,g.O5,m.P,f.M],pipes:[g.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.75rem}'],changeDetection:0}),t})();const _=new a.Al(y);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[g.ez,s.EIu,s.ecP]]}),t})()},1065:(t,e,n)=>{n.d(e,{u:()=>E});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(2046),l=n(30991),u=n(81476),c=n(59912),d=n(41035),h=n(77128),p=n(98778),g=n(55788),m=n(75526),f=n(19042),v=n(60644),b=n(12057),y=n(89570),_=n(42);function C(t,e){1&t&&i.Hsn(0,2,["*ngIf","isMobile"])}function w(t,e){if(1&t&&i.YNc(0,C,1,0,"ng-content",6),2&t){const t=i.oxw();i.Q6J("ngIf",t.isMobile)}}function x(t,e){1&t&&i.GkF(0,7)}function M(t,e){if(1&t&&i._UZ(0,"div",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}const O=function(t,e){return{$implicit:t,active:e}};function k(t,e){if(1&t&&(i.TgZ(0,"div",8),i.YNc(1,M,1,1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",i.WLB(2,O,t.value,t.computedFocused))}}function S(t,e){1&t&&i.GkF(0)}function P(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,S,1,0,"ng-container",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.arrow)}}const T=["*",[["input"]],[["select"]]],A=["*","input","select"];let E=(()=>{class t extends o.F9l{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(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(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||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(r.a5,10),i.Y36(i.sBO),i.Y36(s.YmJ),i.Y36(s.kId),i.Y36(l.Ii),i.Y36(d.Ys),i.Y36(h.l),i.Y36(o.fLQ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,a.s,7),i.Suo(n,s.gXS,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(s.ycg,5),i.Gf(s.o1K,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,o.FTc)(t),(0,o.wBO)(t),(0,s.oEG)(t),(0,s.P7F)(u.Q4)],[c.yn]),i.qOj],ngContentSelectors:A,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(T),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,w,1,1,"ng-template",null,2,i.W1O),i.YNc(6,x,1,0,"ng-container",3),i.YNc(7,k,2,5,"div",4),i.qZA(),i.YNc(8,P,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:[p.o,g.e,m.y,f.B,v.A,b.tP,b.O5,y.Li,_.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})()},75747:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{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=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["tui-select"]],features:[r._Bn([(0,i.cpA)(t)]),r.qOj]}),t})()},77128:(t,e,n)=>{n.d(e,{l:()=>i});const i=(0,n(42600).JN4)({valueContent:""})},41699:(t,e,n)=>{n.d(e,{t:()=>l});var i=n(74788),r=n(24751),o=n(42600),s=n(82191),a=n(5657);let l=(()=>{class t extends o.M$T{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,o.V8W)(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=(0,s.hm)(this.slider.valuePercentage,this.keySteps)}writeValue(t){if(null===t)return;const e=(0,o.Kiv)(t,this.min,this.max);this.slider.value=this.transformToNativeValue(e)}getFallbackValue(){return 0}transformToNativeValue(t){const{min:e,max:n}=this.slider;return(0,s.ox)(t,this.keySteps)*(n-e)/100+e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36((0,i.Gpc)((()=>a.i))))},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})()},52707:(t,e,n)=>{n.d(e,{Z:()=>d});var i=n(24751),r=(n(42600),n(5657)),o=n(74788),s=n(12057);const a=["tuiSliderThumbLabel",""];function l(t,e){1&t&&o.GkF(0)}const u=["*",[["input","type","range"]]],c=["*","input[type=range]"];let d=(()=>{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.valueRatio)||0}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=o.Xpm({type:t,selectors:[["","tuiSliderThumbLabel",""]],contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,r.i,5),o.Suo(n,i.a5,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.slider=t.first),o.iGM(t=o.CRH())&&(e.control=t.first)}},attrs:a,ngContentSelectors:c,decls:5,vars:8,consts:[[4,"ngIf"],[1,"t-ghost"]],template:function(t,e){1&t&&(o.F$t(u),o.YNc(0,l,1,0,"ng-container",0),o.ALo(1,"async"),o.TgZ(2,"div",1),o.Hsn(3),o.qZA(),o.Hsn(4,1)),2&t&&(o.Q6J("ngIf",o.lcZ(1,6,null==e.control?null:e.control.valueChanges)),o.xp6(2),o.Udp("--tui-slider-thumb-ratio",e.ratio)("left",e.ghostLeft,"px"),o.uIk("data-size",e.size))},directives:[s.O5],pipes:[s.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:.75rem;height:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem))}"],changeDetection:0}),t})()},5657:(t,e,n)=>{n.d(e,{i:()=>d});var i=n(97582),r=n(74788),o=n(24751),s=n(62579),a=n(42600),l=n(15257),u=n(41699),c=n(76508);class d{constructor(t,e,n,i,r,s){var u;this.control=t,this.options=n,this.el=i,this.userAgent=r,this.injector=s,this.size=this.options.size,this.segments=1,t instanceof o.On&&(null===(u=t.valueChanges)||void 0===u||u.pipe((0,a.NAr)(e),(0,l.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 o.On?e.viewModel:Number(t.nativeElement.value)||0}set value(t){this.el.nativeElement.value=`${t}`}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get valuePercentage(){return 100*this.valueRatio}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return(0,a.xz3)(a.FSK,this.userAgent)}get hasKeySteps(){return Boolean(this.injector.get(u.t,null))}}d.ɵfac=function(t){return new(t||d)(r.Y36(o.a5,10),r.Y36(r.sBO),r.Y36(c.NN),r.Y36(r.SBq),r.Y36(s.yZ),r.Y36(r.zs3))},d.ɵcmp=r.Xpm({type:d,selectors:[["input","type","range","tuiSlider",""]],hostVars:11,hostBindings:function(t,e){1&t&&r.NdJ("input",(function(){return 0})),2&t&&(r.uIk("data-size",e.size),r.Udp("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-ratio",e.valueRatio)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),r.ekj("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:["type","range","tuiSlider",""],decls:0,vars:0,template:function(t,e){},styles:['[_nghost-%COMP%]{position:relative;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}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_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 .5rem,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,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),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 .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[_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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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,i.gn)([a.UMq],d.prototype,"hasKeySteps",null)},76508:(t,e,n)=>{n.d(e,{NN:()=>o,OF:()=>s});var i=n(42600);const r={size:"m",trackColor:"var(--tui-base-03)"},o=(0,i.JN4)(r);function s(t){return(0,i.vKU)(o,t,r)}},94824:(t,e,n)=>{n.d(e,{y:()=>p});var i=n(74788),r=n(34016),o=n(42600),s=n(43232),a=n(41035),l=n(9203),u=n(12057);const c=["tuiTab",""];function d(t,e){1&t&&i.GkF(0)}const h=["*"];let p=(()=>{class t{constructor(t,e,n,i,r){this.routerLinkActive=t,this.el=e,this.mode$=n,this.event$=i,this.margin=r}get isActive(){return!!this.routerLinkActive&&this.routerLinkActive.isActive}ngOnDestroy(){(0,o.V8W)(this.el.nativeElement)&&this.el.nativeElement.blur()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.Od,8),i.Y36(i.SBq),i.Y36(s.Auc),i.Y36(l.dJ),i.Y36(a.WO))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],hostVars:6,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("_active",e.isActive))},features:[i._Bn(l.pF)],attrs:c,ngContentSelectors:h,decls:4,vars:3,consts:[[4,"ngIf"],[1,"t-highlight"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,d,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:[u.O5],pipes:[u.Ov],styles:['._underline[_nghost-%COMP%]:hover:not(._active), ._underline [_nghost-%COMP%]:hover:not(._active){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;text-decoration:none;position:relative;display:flex;flex-shrink:0;height:100%;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline: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][_nghost-%COMP%]:focus-visible .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][_nghost-%COMP%]:focus-visible .t-highlight[_ngcontent-%COMP%]{background:var(--tui-text-01);color:#fff}[_nghost-%COMP%]:focus-visible .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})()},9203:(t,e,n)=>{n.d(e,{dJ:()=>p,pF:()=>g});var i=n(74788),r=n(34016),o=n(23764),s=n(42600),a=n(43232),l=n(59193),u=n(66682),c=n(54487),d=n(45435),h=n(88002);const p=new i.OlP("[TUI_TAB_EVENT]"),g=[s.a31,s.kuj,a.OkA,{provide:p,deps:[i.SBq,a.OkA,[new i.FiY,o.IM],[new i.FiY,r.Od]],useFactory:({nativeElement:t},e,n,i)=>{const r=i&&n?n.pipe((0,d.h)((()=>i.isActive))):l.E;return(0,u.T)(r,e.pipe((0,d.h)(c.y)),t.matches("button")?(0,s.mLY)(t,"click"):l.E).pipe((0,h.U)((()=>t.dispatchEvent(new CustomEvent("tui-tab-activate",{bubbles:!0})))))}},a.CV2]},25276:(t,e,n)=>{n.d(e,{W:()=>A});var i=n(74788),r=n(42600),o=n(30991),s=n(41035),a=n(88002),l=n(45435),u=n(94824),c=n(51360),d=n(5025),h=n(12057),p=n(1618),g=n(81057),m=n(98778),f=n(63973),v=n(89570),b=n(77825),y=n(58154);function _(t,e){1&t&&i.GkF(0)}function C(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function w(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 x(t,e){if(1&t&&(i.ynx(0),i.YNc(1,C,1,1,"ng-container",10),i.YNc(2,w,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 M(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 O(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 k(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function S(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,k,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 P(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,S,2,1,"div",16),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngForOf",t.items)}}function T(t,e){if(1&t&&i._UZ(0,"tui-underline",19),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}let A=(()=>{class t{constructor(t,e,n,o,s,a,l){this.options=t,this.margin=e,this.refresh$=n,this.el=o,this.cdr=s,this.moreWord$=a,this.arrowOptions=l,this.maxIndex=1/0,this.underline=this.options.underline,this.itemsLimit=this.options.itemsLimit,this.activeItemIndexChange=new i.vpe,this.items=r.Mmc,this.activeItemIndex=0,this.open=!1}set itemIndex(t){this.activeItemIndex=t,this.maxIndex=this.getMaxIndex()}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){var t;const{tabs:e}=this,n=(0,r.Kiv)(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,a.U)((()=>this.getMaxIndex())),(0,l.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,r.veZ)(t.target)&&(0,r.V8W)(t.target)&&this.focusMore()}onArrowLeft(){const{tabs:t}=this;let e=t.length-2;for(;e>=0;){if(t[e].focus(),(0,r.V8W)(t[e]))return;e--}}onWrapperArrow(t,e,n){const i=t.target,o=(0,r.BWF)({initial:i,root:e,previous:n});o&&o.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:o}=this.options,{clientWidth:s}=this.el.nativeElement,a=t[e]?t[e].scrollWidth:0,l=Math.max(t[t.length-1].scrollWidth,o);let u=t.length-2,c=t.reduce(((t,{scrollWidth:e})=>t+e),0)+u*n-t[t.length-1].scrollWidth;if(c<=s)return 1/0;for(;u;)if(c-=t[u].scrollWidth+n,u--,c+(i&&e>u?a+n:0)+l+n+(0,r.HWE)(this.maxIndex===u-1){n.d(e,{l:()=>g,N:()=>m});var i=n(12057),r=n(74788),o=n(23764),s=n(42600),a=n(43232),l=n(66682),u=n(68307),c=n(45435),d=n(54395),h=n(39761),p=n(46782);const g=new r.OlP("[TUI_TABS_REFRESH]"),m=[s.tll,s.a31,o.IM,(0,a.fxH)({align:"right"}),{provide:o.k2,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:g,deps:[s.tll,o.IM,s.a31,i.K0,r.SBq,r.sBO],useFactory:(t,e,n,{body:i},{nativeElement:r},o)=>(0,l.T)(t,e.pipe((0,u.b)((()=>o.detectChanges())))).pipe((0,c.h)((()=>i.contains(r))),(0,d.b)(0),(0,h.O)(null),(0,p.R)(n))}]},81057:(t,e,n)=>{n.d(e,{p:()=>o});var i=n(74788),r=n(42600);let o=(()=>{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,r.VRr)(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})()},51360:(t,e,n)=>{n.d(e,{bH:()=>i});const i=(0,n(42600).JN4)({underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0})},1618:(t,e,n)=>{n.d(e,{H:()=>m});var i=n(97582),r=n(74788),o=n(23764),s=n(42600),a=n(45435),l=n(94824),u=n(81057),c=n(51360),d=n(12057),h=n(58154);function p(t,e){1&t&&r.GkF(0)}function g(t,e){if(1&t&&r._UZ(0,"tui-underline",2),2&t){const t=r.oxw();r.Q6J("element",t.activeElement)}}class m{constructor(t,e,n,i,r){this.options=t,this.el=e,this.tabs=n,this.children=s.Mmc,this.underline=this.options.underline,r.pipe((0,a.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)}}m.ɵfac=function(t){return new(t||m)(r.Y36(c.bH),r.Y36(r.SBq),r.Y36(u.p),r.Y36(r.sBO),r.Y36(s.tll))},m.ɵcmp=r.Xpm({type:m,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,l.y,4),2&t){let t;r.iGM(t=r.CRH())&&(e.children=t)}},hostVars:2,hostBindings:function(t,e){1&t&&r.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&&r.ekj("_underline",e.underline)},inputs:{underline:"underline"},features:[r._Bn([s.a31,s.tll,o.IM,{provide:o.k2,useValue:{childList:!0}}])],ngContentSelectors:["*"],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&&(r.F$t(),r.YNc(0,p,1,0,"ng-container",0),r.ALo(1,"async"),r.Hsn(2),r.YNc(3,g,1,1,"tui-underline",1)),2&t&&(r.Q6J("ngIf",r.lcZ(1,2,e.children.changes)),r.xp6(3),r.Q6J("ngIf",e.underline))},directives:[d.O5,h.B],pipes:[d.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:relative;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;isolation:isolate}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-underline[_ngcontent-%COMP%]{z-index:-1}"],changeDetection:0}),(0,i.gn)([s.UMq],m.prototype,"scrollTo",null)},58154:(t,e,n)=>{n.d(e,{B:()=>g});var i=n(74788),r=n(62579),o=n(42600),s=n(43232),a=n(30126),l=n(74235),u=n(25917),c=n(43190),d=n(88002),h=n(9945),p=n(54395);let g=(()=>{class t{constructor({nativeElement:t},e,n,i){this.zone=e,this.animationFrame$=n,this.mode$=i,this.el$=new l.t(1),this.refresh$=this.el$.pipe((0,c.w)((t=>t?this.animationFrame$.pipe((0,d.U)((()=>t)),(0,o.fL9)(this.zone)):(0,u.of)(null))),(0,h.B)()),this.transition$=(0,a.Gt)(this.el$.pipe((0,d.U)((t=>t&&"all")),(0,p.b)(50))),this.transform$=(0,a.Gt)(this.refresh$.pipe((0,d.U)((t=>t?`translate3d(${t.offsetLeft}px, 0, 0)`:null)))),this.width$=(0,a.Gt)(this.refresh$.pipe((0,d.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(r.L1),i.Y36(s.Auc))},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([s.CV2])],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{transition-property:none;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;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})()},50830:(t,e,n)=>{n.d(e,{G:()=>b});var i=n(74788),r=n(43232),o=n(37654),s=n(90691),a=n(12057),l=n(89570),u=n(57634),c=n(77825),d=n(24751);const h=["input"];function p(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 g(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,p,2,1,"ng-container",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.leftContent)}}function m(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 f(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.stop.prevent.silent",(function(){return 0})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("src",t.icons.close)}}function v(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)}}let b=(()=>{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?(0,o.s)(this.value):null}get canRemove(){return this.removable&&!this.disabled&&!this.showLoader}get displayText(){return null===this.editedText?this.value:this.editedText}get loaderSize(){return(0,r.R9V)(this.size)?"s":"xs"}edit(t){this.canEdit&&(t.preventDefault(),this.editing=!0,this.editedText=this.value)}remove(t){this.canRemove&&(t.preventDefault(),t.stopPropagation(),this.edited.emit(""))}onInput(t){const e=t.split(this.separator);e.length>1?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(r.Auc),i.Y36(s.nu),i.Y36(r.Gs9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(t,e){if(1&t&&i.Gf(h,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([r.CV2])],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.stop.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.stop.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,g,2,1,"div",1),i._UZ(2,"span",2),i.YNc(3,m,1,2,"tui-loader",3),i.YNc(4,f,1,1,"tui-svg",4),i.qZA(),i.YNc(5,v,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:[a.O5,l.Li,u.k,c.P,d.Fj,d.JJ,d.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-width: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})()},90691:(t,e,n)=>{n.d(e,{nu:()=>i});const i=(0,n(42600).JN4)({size:"m",status:"default",autoColor:!1})},31338:(t,e,n)=>{n.d(e,{p:()=>O});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(66895),l=n(42),u=n(12057),c=n(10035),d=n(63973),h=n(28347),p=n(35928),g=n(57634),m=n(89570),f=n(77825);const v=["focusableElement"];function b(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 y(t,e){if(1&t&&i._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const _=function(t){return{$implicit:t}};function C(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,y,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,_,t.size))}}function w(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",12),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function M(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,x,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,_,t.size))}}let O=(()=>{class t extends o.M$T{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(){var t,e;return null!==(e=null===(t=this.focusableElement)||void 0===t?void 0:t.nativeElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(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(){var t,e;return null!==(e=null===(t=this.modeDirective)||void 0===t?void 0:t.mode)&&void 0!==e?e: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(s.wtG,8),i.Y36(a.oO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-toggle"]],viewQuery:function(t,e){if(1&t&&i.Gf(v,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,o.FTc)(t),(0,o.wBO)(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,b,1,3,"tui-loader",2),i.YNc(3,C,2,4,"span",3),i._UZ(4,"div",4),i.YNc(5,w,1,3,"tui-loader",2),i.YNc(6,M,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:[l.o,u.O5,c.t,d.t,h.U,p.q,g.k,m.Li,f.P],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-width: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)}.t-loader[_ngcontent-%COMP%]{min-width:auto}[_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})()},66895:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(42600),r=n(43232);const o={icons:{toggleOff:({$implicit:t})=>"m"===t?"tuiIconToggleOff":"tuiIconToggleOffLarge",toggleOn:({$implicit:t})=>"m"===t?"tuiIconToggleOn":"tuiIconToggleOnLarge"},appearances:{checked:r.NmR.Primary,unchecked:r.NmR.Secondary},singleColor:!1,showIcons:!1,size:"m"},s=(0,i.JN4)(o)},2181:(t,e,n)=>{n.d(e,{JC:()=>r,m2:()=>o,EP:()=>u,bM:()=>c,ux:()=>i,bF:()=>l});const i={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"},r=", ",o=/\([#]+\)|[#\- ]/g;var s=n(42600),a=n(43232);s.kUW,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,s.fv1,a.hW1,a.hW1,s.fv1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1;const l=7,u=(t,e,n,i)=>{if(!(null==e?void 0:e.isSingleDay)||!n)return t;const r=(0,s.yj2)(Object.entries(n).map((([t,e])=>[t,-e]))),o=e.from.append(i?r:n).append({day:i?1:-1});return i?o.dayBefore(t)?t:o:t&&o.dayAfter(t)?t:o},c={HH:23,MM:59,SS:59,MS:999}},4642:(t,e,n)=>{n.d(e,{n:()=>o});var i=n(59912),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiValueAccessor",""]],features:[r._Bn([i.E2])]}),t})()},6667:(t,e,n)=>{n.d(e,{_jk:()=>h._j,s3J:()=>nt.s3,UVe:()=>nt.UV,ueO:()=>nt.ue,iKB:()=>u,fT6:()=>et,sxu:()=>Jt,zXW:()=>re,YuV:()=>Ni,z$l:()=>ki,QfL:()=>Ne,_Hh:()=>en,ydP:()=>ro,zk$:()=>d,nJ7:()=>mo,Jyo:()=>fo,c2K:()=>Or,$$e:()=>Oo,d38:()=>Zn,YMv:()=>Fo,SCC:()=>tt});var i=n(2046),r=(n(21260),n(12057)),o=n(42600),s=n(43232),a=n(89570),l=n(74788);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Fqk,o.ceN,o.udY,a.wq,s.EIu,s.n6B,s.ijq]]}),t})();n(25535);var c=n(77825);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,s.EIu]]}),t})();var h=n(30991),p=n(97582),g=n(37654);const m=(0,o.JN4)({size:"m",autoColor:!1,rounded:!1});var f=n(29856),v=n(9945),b=n(62579);const y=new l.OlP("Root element for IntersectionObserver"),_="0px 0px 0px 0px",C=new l.OlP("rootMargin for IntersectionObserver",{providedIn:"root",factory:()=>_});function w(t){return t||_}const x=new l.OlP("threshold for IntersectionObserver",{providedIn:"root",factory:()=>0});function M(t){return(null==t?void 0:t.split(",").map(parseFloat))||0}const O="undefined"!=typeof IntersectionObserver?IntersectionObserver:class{constructor(){this.root=null,this.rootMargin="",this.thresholds=[]}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}};let k=(()=>{class t extends O{constructor(t,e,n){super((t=>{this.callbacks.forEach(((e,n)=>{const i=t.filter((({target:t})=>t===n));return i.length&&e(i,this)}))}),{root:t&&t.nativeElement,rootMargin:w(e),threshold:M(n)}),this.callbacks=new Map}observe(t,e=(()=>{})){super.observe(t),this.callbacks.set(t,e)}unobserve(t){super.unobserve(t),this.callbacks.delete(t)}ngOnDestroy(){this.disconnect()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(y,8),l.$8M("waIntersectionRootMargin"),l.$8M("waIntersectionThreshold"))},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionObserver",""]],exportAs:["IntersectionObserver"],features:[l.qOj]}),t})(),S=(()=>{class t extends f.y{constructor({nativeElement:t},e){return super((n=>(e.observe(t,(t=>{n.next(t)})),()=>{e.unobserve(t)}))),this.pipe((0,v.B)())}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(k))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})(),P=(()=>{class t{constructor(t){this.waIntersectionObservee=t}}return t.ɵfac=function(e){return new(e||t)(l.Y36(S))},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionObservee",""]],outputs:{waIntersectionObservee:"waIntersectionObservee"},features:[l._Bn([S])]}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionRoot",""]],features:[l._Bn([{provide:y,useExisting:l.SBq}])]}),t})();const A=new l.OlP("Intersection Observer API support",{providedIn:"root",factory:()=>!!(0,l.f3M)(b.m9).IntersectionObserver});let E=(()=>{class t extends f.y{constructor({nativeElement:t},e,n,i,r){return super((o=>{if(!e)return void o.error("IntersectionObserver is not supported in your browser");const s=new IntersectionObserver((t=>{o.next(t)}),{root:null==r?void 0:r.nativeElement,rootMargin:n,threshold:i});return s.observe(t),()=>{s.disconnect()}})),this.pipe((0,v.B)())}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(A),l.LFG(C),l.LFG(x),l.LFG(y,8))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})();var I=n(25917),D=n(79765),L=n(43190),F=n(45435),N=n(88002),z=n(5304),R=n(15257),B=n(46782);let H=(()=>{class t extends f.y{constructor(t,e,n){super((i=>this.src$.pipe((0,L.w)((e=>n.pipe((0,F.h)((([{isIntersecting:t}])=>t)),(0,N.U)((()=>e)),(0,z.K)((()=>(0,I.of)(e))),(0,o.NAr)(t),(0,R.q)(1)))),(0,B.R)(e)).subscribe(i))),this.src$=new D.xQ}next(t){this.src$.next(t)}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.sBO),l.LFG(o.a31,2),l.LFG(E))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{class t{constructor(t,e){this.src$=t,this.el=e,this.animation="tuiSkeletonVibe ease-in-out 1s infinite alternate",this.background="var(--tui-clear-hover)",this.src=null,this.supported||this.src$.subscribe((t=>{this.src=t}))}set srcSetter(t){this.src=this.supported?t:null,this.src$.next(t)}get supported(){return"loading"in this.el.nativeElement}onLoad(){this.background="",this.animation=""}}return t.ɵfac=function(e){return new(e||t)(l.Y36(H),l.Y36(l.SBq))},t.ɵdir=l.lG2({type:t,selectors:[["img","loading","lazy"]],hostVars:5,hostBindings:function(t,e){1&t&&l.NdJ("load",(function(){return e.onLoad()})),2&t&&(l.uIk("src",e.src,l.LSH),l.Udp("animation",e.animation)("background",e.background))},inputs:{srcSetter:["src","srcSetter"]},features:[l._Bn([H,E,o.a31])]}),t})();function Y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"img",3),l.NdJ("error",(function(){return l.CHM(t),l.oxw().onError()})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("src",t.avatarUrl||"",l.LSH),l.uIk("alt",t.text)}}function j(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.fallback)}}function Z(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.stringAvatar)}}class ${constructor(t){this.options=t,this.size=this.options.size,this.text="",this.fallback=null,this.autoColor=this.options.autoColor,this.rounded=this.options.rounded,this.avatarUrl=null,this.isUrlValid=!1}set avatarUrlSetter(t){this.avatarUrl=t,this.isUrlValid=!!t&&!this.iconAvatar}get bgColor(){return this.autoColor?(0,g.s)(this.text):""}get hasAvatar(){return null!==this.avatarUrl&&this.isUrlValid}get iconAvatar(){var t;return(0,o.Ajw)(this.avatarUrl)&&!!(null===(t=this.avatarUrl)||void 0===t?void 0:t.startsWith("tuiIcon"))}get useFallback(){return!(!this.fallback||!this.avatarUrl||this.isUrlValid||this.text.length)}get computedText(){return this.hasAvatar||this.iconAvatar||""===this.text?"":this.getSlicedText(this.text,this.size)}get stringAvatar(){return this.iconAvatar?String(this.avatarUrl):""}onError(){this.isUrlValid=!1}getSlicedText(t,e){const n=t.split(" ");return n.length>1&&(0,s.R9V)(e)?n[0].slice(0,1)+n[1].slice(0,1):n[0].slice(0,1)}}$.ɵfac=function(t){return new(t||$)(l.Y36(m))},$.ɵcmp=l.Xpm({type:$,selectors:[["tui-avatar"]],hostVars:7,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.size),l.Udp("background",e.bgColor),l.ekj("_rounded",e.rounded)("_has-avatar",e.hasAvatar))},inputs:{size:"size",avatarUrlSetter:["avatarUrl","avatarUrlSetter"],text:"text",fallback:"fallback",autoColor:"autoColor",rounded:"rounded"},decls:5,vars:4,consts:[["loading","lazy","class","t-image",3,"src","error",4,"ngIf"],["class","t-icon",3,"src",4,"ngIf"],[1,"t-text"],["loading","lazy",1,"t-image",3,"src","error"],[1,"t-icon",3,"src"]],template:function(t,e){1&t&&(l.YNc(0,Y,1,2,"img",0),l.YNc(1,j,1,1,"tui-svg",1),l.YNc(2,Z,1,1,"tui-svg",1),l.TgZ(3,"span",2),l._uU(4),l.qZA()),2&t&&(l.Q6J("ngIf",e.isUrlValid),l.xp6(1),l.Q6J("ngIf",e.useFallback),l.xp6(1),l.Q6J("ngIf",e.stringAvatar),l.xp6(2),l.Oqu(e.computedText))},directives:[r.O5,V,c.P],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-shrink:0;border-radius:var(--tui-radius-m);color:var(--tui-secondary-active);text-align:center;text-transform:uppercase;justify-content:center;align-items:center;background:var(--tui-avatar-background, currentColor);-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}[data-size=xs][_nghost-%COMP%]{font:var(--tui-font-text-s);width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-m);width:2rem;height:2rem}[data-size=m][_nghost-%COMP%]{font:var(--tui-font-text-l);width:3rem;height:3rem}[data-size=l][_nghost-%COMP%]{font:var(--tui-font-heading-5);width:4rem;height:4rem;border-radius:var(--tui-radius-xl)}[data-size=xl][_nghost-%COMP%]{font:var(--tui-font-heading-3);width:6rem;height:6rem;border-radius:var(--tui-radius-xl)}[data-size=xxl][_nghost-%COMP%]{font:var(--tui-font-heading-1);width:9rem;height:9rem;border-radius:var(--tui-radius-l)}[new][data-size=xxs][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}[new][data-size=xxs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.58)}[new][data-size=xs][_nghost-%COMP%]{width:2rem;height:2rem;border-radius:var(--tui-radius-s)}[new][data-size=xs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.83)}[new][data-size=s][_nghost-%COMP%]{width:2.5rem;height:2.5rem;border-radius:calc(1.5 * var(--tui-radius-s))}[new][data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1)}[new][data-size=m][_nghost-%COMP%]{width:3rem;height:3rem;border-radius:calc(2 * var(--tui-radius-s))}[new][data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.17)}[new][data-size=l][_nghost-%COMP%]{width:4rem;height:4rem;border-radius:calc(2 * var(--tui-radius-s))}[new][data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.67)}[new][data-size=xl][_nghost-%COMP%]{width:6rem;height:6rem;border-radius:calc(3 * var(--tui-radius-s))}[new][data-size=xl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(2.33)}[new][data-size=xxl][_nghost-%COMP%]{width:8rem;height:8rem;border-radius:calc(4 * var(--tui-radius-s))}[new][data-size=xxl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(3.33)}._has-avatar[_nghost-%COMP%]{background-color:transparent}._rounded[_nghost-%COMP%]{border-radius:100%!important} .tui-avatar-stack{display:flex;width:-webkit-min-content;width:min-content}.tui-avatar-stack[data-size=xs][_nghost-%COMP%], .tui-avatar-stack [data-size=xs][_nghost-%COMP%]{margin-right:-.625rem;box-shadow:0 0 0 1px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=s][_nghost-%COMP%], .tui-avatar-stack [data-size=s][_nghost-%COMP%]{margin-right:-.875rem;box-shadow:0 0 0 1px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=m][_nghost-%COMP%], .tui-avatar-stack [data-size=m][_nghost-%COMP%]{margin-right:-1.25rem;box-shadow:0 0 0 2px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=l][_nghost-%COMP%], .tui-avatar-stack [data-size=l][_nghost-%COMP%]{margin-right:-1.625rem;box-shadow:0 0 0 2px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=xl][_nghost-%COMP%], .tui-avatar-stack [data-size=xl][_nghost-%COMP%]{margin-right:-2.25rem;box-shadow:0 0 0 3px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=xxl][_nghost-%COMP%], .tui-avatar-stack [data-size=xxl][_nghost-%COMP%]{margin-right:-3.375rem;box-shadow:0 0 0 3px var(--tui-avatar-border, var(--tui-base-01))}.t-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.t-text[_ngcontent-%COMP%]{color:var(--tui-avatar-color, var(--tui-text-01))}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-avatar-color, var(--tui-text-01))}[data-size=xs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.5)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.6)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(2)}[data-size=xl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(3.2)}"],changeDetection:0}),(0,p.gn)([o.UMq],$.prototype,"getSlicedText",null);var U=n(66682),G=n(59193),q=n(68307),J=n(47349),Q=n(54395);class W{constructor(t){this.destroy$=t,this.dropdowns=o.Mmc,this.els=o.Mmc}ngAfterViewInit(){this.right$.pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.tryToFocus(t)})),(0,U.T)(this.immediate$,this.debounce$).pipe((0,L.w)((t=>{this.dropdowns.forEach(((e,n)=>{e.toggle(n===t)}));const e=this.els.get(t),n=this.dropdowns.get(t);if(!e||!(null==n?void 0:n.dropdownBoxRef))return G.E;const{nativeElement:i}=n.dropdownBoxRef.location,r=(0,o.mLY)(i,"mouseenter").pipe((0,R.q)(1)),s=(0,U.T)((0,o.mLY)(e.nativeElement,"keydown"),(0,o.mLY)(i,"keydown")).pipe((0,F.h)((({key:t})=>"Escape"===t)));return(0,U.T)(r,s).pipe((0,q.b)((t=>{n.dropdownBoxRef&&t.stopPropagation(),e.nativeElement.focus(),n.toggle("offsetX"in t)})))})),(0,B.R)(this.destroy$)).subscribe()}get elements$(){return(0,o.llR)(this.els).pipe((0,N.U)((t=>t.map((({nativeElement:t})=>t)))),(0,J.d)({bufferSize:1,refCount:!0}))}get right$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,o.mLY)(t,"keydown").pipe((0,F.h)((({key:t})=>"ArrowRight"===t)),(0,o.mp3)(),(0,N.U)((()=>e)))))))))}get immediate$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,o.mLY)(t,"click").pipe((0,N.U)((()=>e)))))))))}get debounce$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,U.T)((0,o.mLY)(t,"focus"),(0,o.mLY)(t,"blur")).pipe((0,F.h)((({relatedTarget:t})=>this.notInDropdown(t,e))),(0,N.U)((({type:t})=>"focus"===t?e:NaN)))))))),(0,Q.b)(300))}notInDropdown(t,e){var n,i;return!(null===(i=null===(n=this.dropdowns.get(e))||void 0===n?void 0:n.dropdownBoxRef)||void 0===i?void 0:i.location.nativeElement.contains(t))}tryToFocus(t){var e,n;const i=null===(n=null===(e=this.dropdowns.get(t))||void 0===e?void 0:e.dropdownBoxRef)||void 0===n?void 0:n.location.nativeElement;if(!i)return;const r=(0,o.BWF)({initial:i,root:i}),s=(0,o.BWF)({initial:r||i,root:i});s&&s.focus()}}W.ɵfac=function(t){return new(t||W)(l.Y36(o.a31,2))},W.ɵdir=l.lG2({type:W,selectors:[["tui-data-list","tuiDataListDropdownManager",""]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,s.tdC,5),l.Suo(n,s.tdC,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.dropdowns=t),l.iGM(t=l.CRH())&&(e.els=t)}},features:[l._Bn([o.a31])]}),(0,p.gn)([o.UMq],W.prototype,"elements$",null),(0,p.gn)([o.UMq],W.prototype,"right$",null),(0,p.gn)([o.UMq],W.prototype,"immediate$",null),(0,p.gn)([o.UMq],W.prototype,"debounce$",null),n(42775);var K=n(25219),X=n(4642);let tt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})();n(38039);let et=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();(0,o.JN4)({icon:"tuiIconChevronRight",size:"m",mode:"onLight"});var nt=n(41035),it=n(96281),rt=n(46109),ot=n(10259),st=n(73460),at=n(63973),lt=n(42486),ut=n(11108),ct=n(9092);function dt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-scrollbar",2),l.TgZ(1,"tui-primitive-year-picker",3),l.NdJ("yearClick",(function(e){return l.CHM(t),l.oxw().onPickerYearClick(e)})),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("initialItem",t.year)("max",t.computedMax)("min",t.computedMin)("value",t.value)}}function ht(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",9),l.NdJ("click",(function(){const e=l.CHM(t).tuiLet;return l.oxw(3).onItemClick(e)}))("tuiHoveredChange",(function(e){const n=l.CHM(t).tuiLet;return l.oxw(3).onItemHovered(e,n)}))("tuiPressedChange",(function(e){const n=l.CHM(t).tuiLet;return l.oxw(3).onItemHovered(e,n)})),l.TgZ(1,"div",10),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw().$implicit,i=l.oxw(2);l.ekj("t-cell_interval",i.isItemInsideRange(t))("t-cell_today",i.isItemToday(t)),l.uIk("data-range",i.getItemRange(t))("data-state",i.getItemState(t)),l.xp6(2),l.Oqu(n)}}function pt(t,e){if(1&t&&(l.ynx(0),l.YNc(1,ht,3,7,"div",8),l.BQk()),2&t){const t=e.index,n=l.oxw(2);l.xp6(1),l.Q6J("tuiLet",n.getTuiMonth(t,n.year.year))}}function gt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-spin-button",4),l.NdJ("leftClick",(function(){return l.CHM(t),l.oxw().onPreviousYear()}))("rightClick",(function(){return l.CHM(t),l.oxw().onNextYear()})),l.TgZ(1,"button",5),l.NdJ("click",(function(){return l.CHM(t),l.oxw().onYearClick()})),l._uU(2),l.qZA(),l.qZA(),l.TgZ(3,"div",6),l.YNc(4,pt,2,1,"ng-container",7),l.ALo(5,"async"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("focusable",!1)("leftDisabled",t.previousYearDisabled)("rightDisabled",t.nextYearDisabled),l.xp6(1),l.Q6J("tuiFocusable",!1),l.xp6(1),l.hij(" ",t.year.formattedYear," "),l.xp6(2),l.Q6J("ngForOf",l.lcZ(5,6,t.months$))}}const mt=o.TU1.currentLocal();class ft{constructor(t){this.months$=t,this.value=null,this.year=mt,this.disabledItemHandler=o.IyD,this.min=o.nNo,this.max=o.OyN,this.monthClick=new l.vpe,this.hoveredItemChange=new l.vpe,this.yearChange=new l.vpe,this.isYearPickerShown=!1,this.hoveredItem=null,this.pressedItem=null}get isSingle(){return null!==this.value&&(this.value instanceof o.qld||this.value.isSingleMonth)}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}get previousYearDisabled(){return this.year.yearSameOrBefore(this.computedMin)}get nextYearDisabled(){return this.year.yearSameOrAfter(this.computedMax)}getItemState(t){const{disabledItemHandlerWithMinMax:e,pressedItem:n,hoveredItem:i}=this;return e(t)?s.z3N.Disabled:(null==n?void 0:n.monthSame(t))?s.z3N.Active:(null==i?void 0:i.monthSame(t))?s.z3N.Hover:null}getItemRange(t){const{value:e,hoveredItem:n}=this;if(null===e)return null;if(e instanceof o.qld)return e.monthSame(t)?s.qD5.Single:null;const i=e.from.monthSame(t)&&!e.isSingleMonth,r=(null==n?void 0:n.monthAfter(e.from))&&e.from.monthSame(t)&&e.isSingleMonth,a=(null==n?void 0:n.monthSame(t))&&(null==n?void 0:n.monthBefore(e.from))&&e.isSingleMonth;if(i||r||a)return s.qD5.Start;const l=e.to.monthSame(t)&&!e.isSingleMonth,u=e.to.monthSame(t)&&(null==n?void 0:n.monthBefore(e.to))&&e.isSingleMonth,c=(null==n?void 0:n.monthSame(t))&&(null==n?void 0:n.monthAfter(e.from))&&e.isSingleMonth;return l||u||c?s.qD5.End:e.isSingleMonth&&e.from.monthSame(t)?s.qD5.Single:null}getTuiMonth(t,e){return new o.qld(e,t)}isItemToday(t){return mt.monthSame(t)}isItemInsideRange(t){const{value:e,hoveredItem:n}=this;if(null===e||e instanceof o.qld)return!1;if(!e.isSingleMonth)return e.from.monthSameOrBefore(t)&&e.to.monthAfter(t);if(null===n)return!1;const i=o.dtp.sort(e.from,n);return i.from.monthSameOrBefore(t)&&i.to.monthAfter(t)}onPickerYearClick(t){this.isYearPickerShown=!1,this.year.yearSame(t)||this.updateActiveYear(t)}onItemClick(t){this.disabledItemHandlerWithMinMax(t)||this.monthClick.emit(t)}onYearClick(){this.isYearPickerShown=!0}onNextYear(){this.updateActiveYear(this.year.append({year:1}))}onPreviousYear(){this.updateActiveYear(this.year.append({year:-1}))}onItemHovered(t,e){this.updateHoveredItem(t?e:null)}onItemPressed(t,e){this.updatePressedItem(t?e:null)}calculateDisabledItemHandlerWithMinMax(t,e,n,i){return r=>r.monthBefore(n)||r.monthAfter(i)||t(r,{value:e})}get disabledItemHandlerWithMinMax(){return this.calculateDisabledItemHandlerWithMinMax(this.disabledItemHandler,this.value,this.computedMin,this.computedMax)}updateHoveredItem(t){(0,o.J$k)(this.hoveredItem,t,((t,e)=>t.monthSame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}updatePressedItem(t){this.pressedItem=t}updateActiveYear(t){this.year=t,this.yearChange.emit(t)}}ft.ɵfac=function(t){return new(t||ft)(l.Y36(nt.qE))},ft.ɵcmp=l.Xpm({type:ft,selectors:[["tui-calendar-month"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_single",e.isSingle)},inputs:{value:"value",year:"year",disabledItemHandler:"disabledItemHandler",min:"min",max:"max"},outputs:{monthClick:"monthClick",hoveredItemChange:"hoveredItemChange",yearChange:"yearChange"},decls:3,vars:2,consts:[["class","t-scrollbar",4,"ngIf","ngIfElse"],["monthSelect",""],[1,"t-scrollbar"],[3,"initialItem","max","min","value","yearClick"],[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],["automation-id","tui-calendar-month__active-year","tuiLink","","type","button",3,"tuiFocusable","click"],[1,"t-row"],[4,"ngFor","ngForOf"],["class","t-cell",3,"t-cell_interval","t-cell_today","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],[1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(t,e){if(1&t&&(l.YNc(0,dt,2,4,"tui-scrollbar",0),l.YNc(1,gt,6,8,"ng-template",null,1,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",e.isYearPickerShown)("ngIfElse",t)}},directives:[r.O5,it.I,rt.T,ot.a,st.V,at.t,r.sg,lt.L,ut.c,ct.n],pipes:[r.Ov],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{display:block;height:13.625rem;width:15.75rem;padding:1.125rem;box-sizing:content-box}.t-row[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:1.4375rem}.t-cell[_ngcontent-%COMP%]:nth-child(n + 5){margin-top:1.75rem}.t-cell_interval[_ngcontent-%COMP%]:nth-child(4n):before{right:0}.t-scrollbar[_ngcontent-%COMP%]{height:inherit;width:inherit}'],changeDetection:0}),(0,p.gn)([o.UMq],ft.prototype,"calculateDisabledItemHandlerWithMinMax",null);var vt=n(2181),bt=n(414),yt=n(2579);let _t=(()=>{class t{constructor(t,e,n){this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.defaultViewedMonthFirst=o.qld.currentLocal(),this.defaultViewedMonthSecond=o.qld.currentLocal().append({month:1}),this.min=o.nNo,this.max=o.OyN,this.value=null,this.dayClick=new l.vpe,this.hoveredItem=null,this.userViewedMonthFirst=this.defaultViewedMonthFirst,this.userViewedMonthSecond=this.defaultViewedMonthSecond,this.monthOffset=(t,e)=>t.append({month:e}),t&&t.pipe((0,o.NAr)(e),(0,B.R)(n)).subscribe((t=>{this.value=t,this.updateViewedMonths()}))}get cappedUserViewedMonthSecond(){return this.userViewedMonthSecond.monthBefore(this.max)?this.userViewedMonthSecond:this.max}get cappedUserViewedMonthFirst(){return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)?this.userViewedMonthFirst:this.userViewedMonthSecond}ngOnInit(){this.setInitialMonths()}onSectionFirstViewedMonth(t){this.userViewedMonthFirst=t,this.userViewedMonthSecond=this.userViewedMonthFirst.append({month:1})}onSectionSecondViewedMonth(t){this.userViewedMonthSecond=t,this.userViewedMonthFirst=this.userViewedMonthSecond.append({month:-1})}onDayClick(t){this.dayClick.emit(t)}setInitialMonths(){this.value||(this.userViewedMonthSecond=this.updatedViewedMonthSecond(this.defaultViewedMonthSecond),this.userViewedMonthFirst=this.updatedViewedMonthFirst(this.defaultViewedMonthFirst))}updatedViewedMonthSecond(t){return t.monthSameOrAfter(this.max)?this.max:t.monthBefore(this.min)?this.min.append({month:1}):t}updatedViewedMonthFirst(t){return t.monthSameOrAfter(this.userViewedMonthSecond)?this.userViewedMonthSecond.append({month:-1}):t.monthSameOrBefore(this.min)?this.min:t}updateViewedMonths(){this.userViewedMonthFirst=null===this.value?this.defaultViewedMonthFirst:this.value.from,this.userViewedMonthSecond=this.userViewedMonthFirst.append({month:1})}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.s3,8),l.Y36(l.sBO),l.Y36(o.a31,2))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-primitive-calendar-range"]],inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonthFirst:"defaultViewedMonthFirst",defaultViewedMonthSecond:"defaultViewedMonthSecond",min:"min",max:"max",value:"value"},outputs:{dayClick:"dayClick"},features:[l._Bn([o.a31])],decls:5,vars:30,consts:[[3,"disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange"],[1,"t-border",3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange"]],template:function(t,e){1&t&&(l.TgZ(0,"tui-calendar",0),l.NdJ("hoveredItemChange",(function(t){return e.hoveredItem=t}))("dayClick",(function(t){return e.onDayClick(t)}))("monthChange",(function(t){return e.onSectionFirstViewedMonth(t)})),l.ALo(1,"tuiMapper"),l.qZA(),l.TgZ(2,"tui-calendar",1),l.NdJ("hoveredItemChange",(function(t){return e.hoveredItem=t}))("dayClick",(function(t){return e.onDayClick(t)}))("monthChange",(function(t){return e.onSectionSecondViewedMonth(t)})),l.ALo(3,"tuiMapper"),l.ALo(4,"tuiMapper"),l.qZA()),2&t&&(l.Q6J("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.max)("maxViewedMonth",l.Dn7(1,18,e.cappedUserViewedMonthSecond,e.monthOffset,-1))("min",e.min)("month",e.userViewedMonthFirst)("showAdjacent",!1)("value",e.value)("hoveredItem",e.hoveredItem),l.xp6(2),l.Q6J("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.max)("min",e.min)("minViewedMonth",l.Dn7(3,22,e.cappedUserViewedMonthFirst,e.monthOffset,1))("month",e.userViewedMonthSecond.monthSameOrBefore(e.min)?l.Dn7(4,26,e.min,e.monthOffset,1):e.userViewedMonthSecond)("showAdjacent",!1)("value",e.value)("hoveredItem",e.hoveredItem))},directives:[bt.a],pipes:[yt.c],styles:["[_nghost-%COMP%]{display:flex}.t-border[_ngcontent-%COMP%]{border-left:1px solid var(--tui-base-03)}"],changeDetection:0}),t})();var Ct=n(30251),wt=n(22545),xt=n(91283);const Mt=function(t,e,n,i){return[t,e,n,i,!1]},Ot=function(t,e,n,i){return[t,e,n,i,!0]};function kt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-calendar-range",2),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)})),l.ALo(1,"tuiMapper"),l.ALo(2,"tuiMapper"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("defaultViewedMonthFirst",t.defaultViewedMonth)("disabledItemHandler",t.calculatedDisabledItemHandler)("markerHandler",t.markerHandler)("max",l.G7q(1,6,l.l5B(18,Mt,t.computedMax,t.maxLengthMapper,t.value,t.maxLength)))("min",l.G7q(2,12,l.l5B(23,Ot,t.computedMin,t.maxLengthMapper,t.value,t.maxLength)))("value",t.value)}}function St(t,e){if(1&t&&l._UZ(0,"tui-svg",9),2&t){const t=l.oxw(3);l.Q6J("src",t.icons.check)}}function Pt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)}))("keydown.enter.prevent",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)}))("keydown.space.prevent",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)})),l._uU(1),l.YNc(2,St,1,1,"tui-svg",8),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2);l.uIk("aria-checked",n.isItemActive(t)),l.xp6(1),l.hij(" ",t," "),l.xp6(1),l.Q6J("ngIf",n.isItemActive(t))}}const Tt=function(t,e,n,i,r,o){return[t,e,n,i,r,o]};function At(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"tui-calendar",4),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)})),l.ALo(2,"tuiMapper"),l.ALo(3,"tuiMapper"),l.qZA(),l.TgZ(4,"tui-data-list",5),l.YNc(5,Pt,3,3,"button",6),l.ALo(6,"tuiMapper"),l.ALo(7,"async"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("disabledItemHandler",t.calculatedDisabledItemHandler)("markerHandler",t.markerHandler)("max",l.G7q(2,7,l.l5B(28,Mt,t.computedMax,t.maxLengthMapper,t.value,t.maxLength)))("min",l.G7q(3,13,l.l5B(33,Ot,t.computedMin,t.maxLengthMapper,t.value,t.maxLength)))("month",t.computedMonth)("value",t.value),l.xp6(4),l.Q6J("ngForOf",l.G7q(6,19,l.HTZ(38,Tt,t.items,t.mapper,t.min,t.max,t.minLength,l.lcZ(7,26,t.otherDateText$))))}}class Et{constructor(t,e,n,i,r){this.otherDateText$=i,this.icons=r,this.defaultViewedMonth=o.qld.currentLocal(),this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.items=[],this.min=o.nNo,this.max=o.OyN,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new l.vpe,this.previousValue=null,this.maxLengthMapper=vt.EP,this.mapper=(t,e,n,i,r="")=>[...t.filter((t=>(null===i||t.range.from.append(i).daySameOrBefore(t.range.to))&&(null===e||t.range.to.daySameOrAfter(e))&&(null===n||t.range.from.daySameOrBefore(n)))),r],t&&t.pipe((0,o.NAr)(e),(0,B.R)(n)).subscribe((t=>{this.value=t}))}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}onEsc(t){var e;"Escape"===t.key&&(null===(e=this.value)||void 0===e?void 0:e.isSingleDay)&&(t.stopPropagation(),this.value=this.previousValue)}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}get computedMonth(){return this.value?this.value.to:this.defaultViewedMonth}isItemActive(t){const{activePeriod:e}=this;return(0,o.Ajw)(t)&&null===e||e===t}onRangeChange(t){this.updateValue(t)}onDayClick(t){const{value:e}=this;this.previousValue=e,null!==e&&e.isSingleDay?this.updateValue(o.VRe.sort(e.from,t)):this.value=new o.VRe(t,t)}onItemSelect(t){"string"==typeof t?null!==this.activePeriod&&this.updateValue(null):this.updateValue(t.range.dayLimit(this.min,this.max))}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.items.find((t=>(0,o.J$k)(this.value,t.range,((t,e)=>t.from.daySame(e.from.dayLimit(this.min,this.max))&&t.to.daySame(e.to.dayLimit(this.min,this.max))))))||null}calculateDisabledItemHandler(t,e,n){return i=>{if(!(null==e?void 0:e.isSingleDay)||!n)return t(i);const r=(0,o.yj2)(Object.entries(n).map((([t,e])=>[t,-e]))),s=e.from.append(r).append({day:1}),a=e.from.append(n).append({day:-1});return s.dayBefore(i)&&a.dayAfter(i)||t(i)}}}Et.ɵfac=function(t){return new(t||Et)(l.Y36(nt.s3,8),l.Y36(l.sBO),l.Y36(o.a31,2),l.Y36(nt.q5),l.Y36(s.Gs9))},Et.ɵcmp=l.Xpm({type:Et,selectors:[["tui-calendar-range"]],hostBindings:function(t,e){1&t&&l.NdJ("keydown.capture",(function(t){return e.onEsc(t)}),!1,l.evT)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},features:[l._Bn([o.a31])],decls:3,vars:2,consts:[["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"defaultViewedMonthFirst","disabledItemHandler","markerHandler","max","min","value","dayClick",4,"ngIf","ngIfElse"],["presets",""],["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"defaultViewedMonthFirst","disabledItemHandler","markerHandler","max","min","value","dayClick"],[1,"t-wrapper"],["automation-id","tui-calendar-range__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick"],["automation-id","tui-calendar-range__menu","role","menu",1,"t-menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","","tuiPreventDefault","mousedown",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","","tuiPreventDefault","mousedown",3,"click","keydown.enter.prevent","keydown.space.prevent"],["automation-id","tui-calendar-range__checkmark","class","t-checkmark",3,"src",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",1,"t-checkmark",3,"src"]],template:function(t,e){if(1&t&&(l.YNc(0,kt,3,28,"tui-primitive-calendar-range",0),l.YNc(1,At,8,45,"ng-template",null,1,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",!e.items.length)("ngIfElse",t)}},directives:[r.O5,_t,Ct.A,bt.a,wt.q,r.sg,xt.v,c.P],pipes:[yt.c,r.Ov],styles:["[_nghost-%COMP%]{display:block}.t-wrapper[_ngcontent-%COMP%]{display:flex}.t-menu[_ngcontent-%COMP%]{width:11rem;border-left:1px solid var(--tui-base-03)}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}"],changeDetection:0}),(0,p.gn)([o.UMq],Et.prototype,"calculateDisabledItemHandler",null);var It=n(43219);let Dt=(()=>{class t{constructor(t){this.el=t,this.tuiCarouselScroll=(0,o.mLY)(this.el.nativeElement,"wheel").pipe((0,F.h)((({deltaX:t})=>Math.abs(t)>20)),(0,It.p)(500),(0,N.U)((({deltaX:t})=>Math.sign(t))),(0,q.b)((()=>{this.el.nativeElement.scrollLeft=10})))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiCarouselScroll",""]],outputs:{tuiCarouselScroll:"tuiCarouselScroll"}}),t})();var Lt=n(26215),Ft=n(9112),Nt=n(33637),zt=n(26561);function Rt(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}let Bt=(()=>{class t extends f.y{constructor(t,e){super((t=>this.output$.subscribe(t))),this.el=t,this.visible$=e,this.duration$=new Lt.X(0),this.running$=(0,U.T)((0,o.mLY)(this.el.nativeElement,"mouseenter").pipe((0,N.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"touchstart").pipe((0,N.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"touchend").pipe((0,N.U)(o.YeN)),(0,o.mLY)(this.el.nativeElement,"mouseleave").pipe((0,N.U)(o.YeN)),this.visible$),this.output$=(0,Ft.aj)([this.duration$,this.running$]).pipe((0,o.Xdy)((([t])=>function(t=0,e=Nt.P){return(!(0,zt.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Nt.P),new f.y((n=>(n.add(e.schedule(Rt,t,{subscriber:n,counter:0,period:t})),n)))}(t)),(t=>t.every(Boolean))))}set duration(t){this.duration$.next(t)}set index(t){this.duration$.next(this.duration$.value)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(b.de))},t.ɵdir=l.lG2({type:t,selectors:[["tui-carousel"]],inputs:{duration:"duration",index:"index"},features:[l.qOj]}),t})(),Ht=(()=>{class t{constructor(t){this.tuiCarouselAutoscroll=t}}return t.ɵfac=function(e){return new(e||t)(l.Y36(Bt))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiCarouselAutoscroll",""]],outputs:{tuiCarouselAutoscroll:"tuiCarouselAutoscroll"}}),t})();var Vt=n(11123),Yt=n(69919);function jt(t,e){1&t&&l.GkF(0)}function Zt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"fieldset",5),l.NdJ("waIntersectionObservee",(function(e){const n=l.CHM(t).index;return l.oxw().onIntersection(e[0],n)})),l.GkF(1,6),l.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=l.oxw();l.Q6J("disabled",i.isDisabled(n))("ngStyle",i.getStyle(i.itemsCount)),l.xp6(1),l.Q6J("ngTemplateOutlet",t)}}class $t{constructor(t,e,n){this.cdr=t,this.el=e,this.isMobile=n,this.translate=0,this.draggable=!1,this.itemsCount=1,this.index=0,this.indexChange=new l.vpe,this.items=o.Mmc,this.transitioned=!0}get transform(){return`translateX(${100*(this.transitioned?this.computedTranslate:this.translate)}%)`}onTransitioned(t){this.transitioned=t,t||(this.translate=this.computedTranslate)}getStyle(t){const e=100/t+"%";return{flexBasis:e,minWidth:e,maxWidth:e}}next(){this.items&&this.index===this.items.length-this.itemsCount||this.updateIndex(this.index+1)}prev(){this.updateIndex(this.index-1)}isDisabled(t){return tthis.index+this.itemsCount}onIntersection({intersectionRatio:t},e){t&&1!==t&&!this.transitioned&&this.updateIndex(e-Math.floor(this.itemsCount/2))}onScroll(t){this.isMobile||this.updateIndex(this.index+t)}onPan(t){if(!this.computedDraggable)return;const{clientWidth:e}=this.el.nativeElement,n=1-this.items.length/this.itemsCount;this.translate=(0,o.Kiv)(t/e+this.translate,n,0)}onSwipe(t){"left"===t?this.next():"right"===t&&this.prev()}onAutoscroll(){this.updateIndex(this.index===this.items.length-1?0:this.index+1)}get computedTranslate(){return-this.index/this.itemsCount}get computedDraggable(){return this.isMobile||this.draggable}updateIndex(t){this.index=(0,o.Kiv)(t,0,this.items.length-1),this.indexChange.emit(this.index),this.cdr.markForCheck()}}$t.ɵfac=function(t){return new(t||$t)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(o.fLQ))},$t.ɵcmp=l.Xpm({type:$t,selectors:[["tui-carousel"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,o.wt3,4,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.items=t)}},hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("touchstart",(function(){return e.onTransitioned(!1)}))("touchend",(function(){return e.onTransitioned(!0)}))("mousedown",(function(){return e.onTransitioned(!1)}))("mouseup.silent",(function(){return e.onTransitioned(!0)}),!1,l.evT),2&t&&l.ekj("_draggable",e.draggable)("_transitioned",e.transitioned)},inputs:{draggable:"draggable",itemsCount:"itemsCount",index:"index"},outputs:{indexChange:"indexChange"},decls:6,vars:6,consts:[[4,"ngIf"],[1,"t-scroller",3,"tuiCarouselScroll"],["waIntersectionObserver","","waIntersectionRoot","","waIntersectionRootMargin","100px 1000000px 100px -51%","waIntersectionThreshold","0,1",1,"t-wrapper"],[1,"t-items",3,"tuiCarouselAutoscroll","tuiPan","tuiSwipe"],["class","t-item",3,"disabled","ngStyle","waIntersectionObservee",4,"ngFor","ngForOf"],[1,"t-item",3,"disabled","ngStyle","waIntersectionObservee"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l.YNc(0,jt,1,0,"ng-container",0),l.ALo(1,"async"),l.TgZ(2,"div",1),l.NdJ("tuiCarouselScroll",(function(t){return e.onScroll(t)})),l.TgZ(3,"div",2),l.TgZ(4,"div",3),l.NdJ("tuiCarouselAutoscroll",(function(){return e.onAutoscroll()}))("tuiPan",(function(t){return e.onPan(t[0])}))("tuiSwipe",(function(t){return e.onSwipe(t.direction)})),l.YNc(5,Zt,2,3,"fieldset",4),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Q6J("ngIf",l.lcZ(1,4,e.items.changes)),l.xp6(4),l.Udp("transform",e.transform),l.xp6(1),l.Q6J("ngForOf",e.items))},directives:[r.O5,Dt,k,T,Ht,Vt.g,Yt.W,r.sg,r.PC,P,r.tP],pipes:[r.Ov],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden}._draggable[_nghost-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none}._draggable[_nghost-%COMP%]:hover{cursor:grab}._draggable[_nghost-%COMP%]:active{cursor:grabbing}.t-items[_ngcontent-%COMP%]{display:flex}._transitioned[_nghost-%COMP%] .t-items[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:var(--tui-carousel-padding, 0 1.25rem);flex:1;min-width:100%;max-width:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;right:0;min-width:100%;overflow:hidden}.t-scroller[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none}.t-scroller[_ngcontent-%COMP%]::-webkit-scrollbar, .t-scroller[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-scroller[_ngcontent-%COMP%]:before, .t-scroller[_ngcontent-%COMP%]:after{content:"";display:block;min-width:1rem}'],changeDetection:0}),(0,p.gn)([o.UMq],$t.prototype,"getStyle",null);var Ut=n(64201),Gt=n(42);n(72444),n(59517);var qt=n(24751);let Jt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,Ut.x]]}),t})();var Qt=n(81476),Wt=n(59912),Kt=n(98778),Xt=n(55788),te=n(75526),ee=n(19042),ne=n(60644);n(97462);var ie=n(57634);n(55891);let re=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,o.U1Q,s.pcV,s.dSp]]}),t})();var oe=n(30126),se=n(23764),ae=n(32917),le=n(87519);let ue=(()=>{class t{constructor(t,e,n){this.el=t,this.resize$=e,this.mutation$=n,this.tuiElasticContainer=(0,U.T)(this.resize$,this.mutation$).pipe((0,Q.b)(0),(0,N.U)((()=>this.el.nativeElement.clientHeight-1)),(0,le.x)())}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(ae.ax),l.Y36(se.IM))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiElasticContainer",""]],outputs:{tuiElasticContainer:"tuiElasticContainer"},features:[l._Bn([ae.ax,se.IM,{provide:se.k2,useValue:{childList:!0,characterData:!0,subtree:!0}}])]}),t})();class ce{constructor(){this.height=NaN,this.transitions=0}onAnimation(t,e){this.transitions+=e}}ce.ɵfac=function(t){return new(t||ce)},ce.ɵcmp=l.Xpm({type:ce,selectors:[["tui-elastic-container"]],hostVars:4,hostBindings:function(t,e){2&t&&(l.Udp("height",e.height,"px"),l.ekj("_transitioning",e.transitions))},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"t-wrapper",3,"transitioncancel.silent","transitionend.silent","transitionstart.silent","tuiElasticContainer"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0),l.NdJ("transitioncancel.silent",(function(t){return e.onAnimation(t.propertyName,-1)}))("transitionend.silent",(function(t){return e.onAnimation(t.propertyName,-1)}))("transitionstart.silent",(function(t){return e.onAnimation(t.propertyName,1)}))("tuiElasticContainer",(function(t){return e.height=t})),l.Hsn(1),l.qZA())},directives:[ue],styles:["[_nghost-%COMP%]{transition-property:height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden}._transitioning[_nghost-%COMP%]{height:auto!important}.t-wrapper[_ngcontent-%COMP%]{padding-top:1px;margin-top:-1px}"],changeDetection:0}),(0,p.gn)([(0,oe.uX)((t=>"height"===t))],ce.prototype,"onAnimation",null);var de=n(91211),he=n(82191);const pe={formatSize:he.z,icons:{normal:({$implicit:t})=>"l"===t?"tuiIconFileLarge":"tuiIconCheckCircleLarge",error:"tuiIconAlertCircleLarge",deleted:"tuiIconTrashLarge"}},ge=(0,o.JN4)(pe);var me=n(35928),fe=n(18289);function ve(t,e){if(1&t&&l.GkF(0,4),2&t){l.oxw();const t=l.MAs(4);l.Q6J("ngTemplateOutlet",t)}}function be(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"a",5),l.NdJ("tuiFocusVisibleChange",(function(e){return l.CHM(t),l.oxw().onFocusVisible(e)})),l.GkF(1,4),l.qZA()}if(2&t){const t=l.oxw(),e=l.MAs(4);l.Q6J("href",t.src,l.LSH),l.xp6(1),l.Q6J("ngTemplateOutlet",e)}}function ye(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function _e(t,e){if(1&t&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&t){const t=e.ngIf;l.xp6(1),l.hij(" ",t," ")}}function Ce(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function we(t,e){if(1&t&&(l.TgZ(0,"div",16),l.YNc(1,Ce,2,1,"ng-container",7),l.qZA()),2&t){const t=e.ngIf;l.xp6(1),l.Q6J("polymorpheusOutlet",t)}}function xe(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",18),l.NdJ("click.prevent",(function(){return l.CHM(t),l.oxw(3).onRemoveClick()})),l.qZA()}if(2&t){const t=e.ngIf,n=l.oxw(3);l.Q6J("icon",n.icons.close)("title",t.remove)}}function Me(t,e){if(1&t&&(l.ynx(0),l.YNc(1,xe,1,2,"button",17),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngIf",l.lcZ(2,1,t.fileTexts$))}}function Oe(t,e){if(1&t&&(l.TgZ(0,"div",6),l.YNc(1,ye,2,1,"ng-container",7),l.qZA(),l.TgZ(2,"div",8),l.TgZ(3,"div",9),l.TgZ(4,"div",10),l._uU(5),l.qZA(),l.TgZ(6,"div",11),l._uU(7),l.qZA(),l.YNc(8,_e,2,1,"div",12),l.ALo(9,"async"),l.qZA(),l.YNc(10,we,2,1,"div",13),l.ALo(11,"async"),l.Hsn(12),l.qZA(),l.YNc(13,Me,3,3,"ng-container",14)),2&t){const t=l.oxw(),e=l.MAs(6);l.ekj("t-preview_big",t.isBig),l.xp6(1),l.Q6J("polymorpheusOutlet",t.leftContent||e),l.xp6(4),l.hij(" ",t.name," "),l.xp6(2),l.hij(" ",t.type," "),l.xp6(1),l.Q6J("ngIf",t.showSize&&l.lcZ(9,8,t.fileSize$)),l.xp6(2),l.Q6J("ngIf",l.lcZ(11,10,t.content$)),l.xp6(3),l.Q6J("ngIf",t.allowDelete)}}function ke(t,e){if(1&t&&l._UZ(0,"img",22),2&t){const t=l.oxw(2);l.Q6J("src",t.preview,l.LSH)}}function Se(t,e){if(1&t&&l._UZ(0,"tui-loader",24),2&t){const t=l.oxw(3);l.Q6J("inheritColor",t.isBig)}}function Pe(t,e){if(1&t&&l.YNc(0,Se,1,1,"tui-loader",23),2&t){l.oxw();const t=l.MAs(4),e=l.oxw();l.Q6J("ngIf",e.isLoading)("ngIfElse",t)}}function Te(t,e){if(1&t&&l._UZ(0,"tui-svg",26),2&t){const t=e.polymorpheusOutlet,n=l.oxw(3);l.ekj("t-icon_blank",n.isBig||n.isDeleted)("t-icon_error",n.isError),l.Q6J("src",t)}}const Ae=function(t){return{$implicit:t}};function Ee(t,e){if(1&t&&l.YNc(0,Te,1,5,"tui-svg",25),2&t){const t=l.oxw(2);l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,Ae,t.size))}}function Ie(t,e){if(1&t&&(l.YNc(0,ke,1,1,"img",19),l.YNc(1,Pe,1,2,"ng-template",null,20,l.W1O),l.YNc(3,Ee,1,4,"ng-template",null,21,l.W1O)),2&t){const t=l.MAs(2),e=l.oxw();l.Q6J("ngIf",e.preview)("ngIfElse",t)}}class De{constructor(t,e,n,i,r){this.sanitizer=t,this.icons=e,this.fileTexts$=n,this.options=i,this.units$=r,this.file={name:""},this.state="normal",this.size="m",this.showDelete=!0,this.showSize=!0,this.removed=new l.vpe,this.focused=!1}get preview(){return this.isBig?this.createPreview(this.file,this.sanitizer):""}get isBig(){return"l"===this.size}get isLoading(){return"loading"===this.state}get isError(){return"error"===this.state}get isDeleted(){return"deleted"===this.state}get allowDelete(){return this.showDelete&&(0,o.fwO)(this.removed)}get icon(){return"loading"===this.state?"":this.options.icons[this.state]}get src(){return this.file.src||""}get name(){return this.getName(this.file)}get type(){return this.getType(this.file)}get content$(){return this.calculateContent$(this.state,this.file,this.fileTexts$)}get fileSize$(){return this.calculateFileSize$(this.file,this.units$)}onRemoveClick(){this.removed.emit()}onFocusVisible(t){this.focused=t}calculateContent$(t,e,n){return"error"!==t||e.content?(0,I.of)(this.file.content||""):n.pipe((0,N.U)((t=>t.loadingError)))}calculateFileSize$(t,e){return e.pipe((0,N.U)((e=>this.options.formatSize(e,t.size))))}createPreview(t,e){return t.src?t.src:t instanceof File&&t.type&&t.type.startsWith("image/")?e.bypassSecurityTrustUrl(URL.createObjectURL(t)):""}getName(t){return t.name.split(".").slice(0,-1).join(".")}getType(t){return`.${t.name.split(".").pop()}`||""}}De.ɵfac=function(t){return new(t||De)(l.Y36(de.H7),l.Y36(s.Gs9),l.Y36(nt.qk),l.Y36(ge),l.Y36(nt.rV))},De.ɵcmp=l.Xpm({type:De,selectors:[["tui-file"]],hostVars:5,hostBindings:function(t,e){2&t&&(l.uIk("data-delete",e.showDelete),l.ekj("_focused",e.focused)("_link",e.src))},inputs:{file:"file",state:"state",size:"size",showDelete:"showDelete",showSize:"showSize",leftContent:"leftContent"},outputs:{removed:"removed"},ngContentSelectors:["*"],decls:7,vars:2,consts:[[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],["withLink",""],["fileInfoTemplate",""],["defaultLeftContent",""],[3,"ngTemplateOutlet"],["rel","noreferrer noopener","target","_blank",1,"t-link",3,"href","tuiFocusVisibleChange"],[1,"t-preview"],[4,"polymorpheusOutlet"],[1,"t-wrapper"],[1,"t-text"],["automation-id","tui-file__name",1,"t-name"],["automation-id","tui-file__type",1,"t-type"],["automation-id","tui-file__size","class","t-size",4,"ngIf"],["automation-id","tui-file__content","class","t-content",4,"ngIf"],[4,"ngIf"],["automation-id","tui-file__size",1,"t-size"],["automation-id","tui-file__content",1,"t-content"],["appearance","icon","automation-id","tui-file__remove","size","xs","tuiIconButton","","tuiPreventDefault","mousedown","type","button","class","t-remove",3,"icon","title","click.prevent",4,"ngIf"],["appearance","icon","automation-id","tui-file__remove","size","xs","tuiIconButton","","tuiPreventDefault","mousedown","type","button",1,"t-remove",3,"icon","title","click.prevent"],["alt","file preview","automation-id","tui-file__preview","class","t-image",3,"src",4,"ngIf","ngIfElse"],["loader",""],["svg",""],["alt","file preview","automation-id","tui-file__preview",1,"t-image",3,"src"],["automation-id","tui-file__loader","class","t-loader",3,"inheritColor",4,"ngIf","ngIfElse"],["automation-id","tui-file__loader",1,"t-loader",3,"inheritColor"],["automation-id","tui-file__icon","class","t-icon",3,"t-icon_blank","t-icon_error","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-file__icon",1,"t-icon",3,"src"]],template:function(t,e){if(1&t&&(l.F$t(),l.YNc(0,ve,1,1,"ng-container",0),l.YNc(1,be,2,2,"ng-template",null,1,l.W1O),l.YNc(3,Oe,14,12,"ng-template",null,2,l.W1O),l.YNc(5,Ie,5,2,"ng-template",null,3,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",!e.src)("ngIfElse",t)}},directives:[r.O5,r.tP,me.q,a.Li,fe.v,Ct.A,ie.k,c.P],pipes:[r.Ov],styles:['[_nghost-%COMP%]{position:relative;display:flex;align-items:center;font:var(--tui-font-text-m);background:var(--tui-base-01);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}[data-delete=always][_nghost-%COMP%] .t-remove[_ngcontent-%COMP%]{opacity:1}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[_nghost-%COMP%]:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}[_nghost-%COMP%]:hover .t-remove[_ngcontent-%COMP%]{opacity:1}._focused[_nghost-%COMP%]{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.t-link[_ngcontent-%COMP%]{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:none;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.t-link[_ngcontent-%COMP%]:hover{background-color:var(--tui-base-02)}.t-preview[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:var(--tui-base-06)}.t-preview_big[_ngcontent-%COMP%]{width:4rem;height:4rem;margin-right:1rem}.t-preview_big[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-base-08);opacity:.08}.t-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;color:var(--tui-success-fill);margin:auto}.t-icon_blank[_ngcontent-%COMP%]{color:var(--tui-base-06)}.t-icon_error[_ngcontent-%COMP%]{color:var(--tui-error-fill)}.t-remove[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem}.t-remove[_ngcontent-%COMP%]:focus{opacity:1}.t-remove[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}@media (hover: hover) and (pointer: fine){.t-remove[_ngcontent-%COMP%]{opacity:0}}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.t-text[_ngcontent-%COMP%]{display:flex}.t-size[_ngcontent-%COMP%]{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.t-type[_ngcontent-%COMP%]{flex-shrink:0}.t-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-error-fill)}'],changeDetection:0}),(0,p.gn)([o.UMq],De.prototype,"calculateContent$",null),(0,p.gn)([o.UMq],De.prototype,"calculateFileSize$",null),(0,p.gn)([o.UMq],De.prototype,"createPreview",null),(0,p.gn)([o.UMq],De.prototype,"getName",null),(0,p.gn)([o.UMq],De.prototype,"getType",null);var Le=n(20690),Fe=n(2793);n(47999),n(38642),n(55770);let Ne=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Ah6,s.KWI,s.jhF]]}),t})();var ze=n(46797),Re=n(39761);const Be=(0,o.JN4)({successMessage:"",messageDirection:"bottom-left",messageAppearance:"",icon:({$implicit:t})=>"s"===t?"tuiIconCopy":"tuiIconCopyLarge"});var He=n(13938),Ve=n(10406),Ye=n(63790),je=n(51928);function Ze(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",4),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).copy()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2),i=l.MAs(6);l.Q6J("disabled",!n.value)("src",t)("tuiHint",i)("tuiHintAppearance",n.messageAppearance)("tuiHintDirection",n.messageDirection)}}const $e=function(t){return{$implicit:t}};function Ue(t,e){if(1&t&&l.YNc(0,Ze,1,5,"tui-svg",3),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,$e,t.size))}}function Ge(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function qe(t,e){if(1&t&&(l.YNc(0,Ge,2,1,"ng-container",5),l.ALo(1,"async")),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",l.lcZ(1,1,t.hintText$))}}const Je=["*",[["input"]]];class Qe extends o.M$T{constructor(t,e,n,i,r,o){super(t,e),this.doc=n,this.copyTexts$=i,this.options=r,this.textfieldSize=o,this.copy$=new D.xQ,this.successMessage=this.options.successMessage,this.messageDirection=this.options.messageDirection,this.messageAppearance=this.options.messageAppearance}get size(){return this.textfieldSize.size}get hintText$(){return this.copyTexts$.pipe((0,L.w)((t=>this.copy$.pipe((0,L.w)((()=>(0,U.T)((0,I.of)(this.successMessage||t[1]),(0,ze.H)(3e3).pipe((0,N.U)((()=>t[0])))))),(0,Re.O)(t[0])))))}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get icon(){return this.options.icon}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}copy(){var t;(null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&(this.textfield.nativeFocusableElement.select(),this.doc.execCommand("copy"),this.copy$.next())}getFallbackValue(){return""}}Qe.ɵfac=function(t){return new(t||Qe)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(r.K0),l.Y36(nt.UV),l.Y36(Be),l.Y36(s.kId))},Qe.ɵcmp=l.Xpm({type:Qe,selectors:[["tui-input-copy"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{successMessage:"successMessage",messageDirection:"messageDirection",messageAppearance:"messageAppearance"},features:[l._Bn([Wt.E2,(0,o.FTc)(Qe),(0,o.wBO)(Qe)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:10,consts:[[1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","valueChange","focusedChange"],["iconContent",""],["hint",""],["appearance","icon","automation-id","tui-copy__icon","tuiWrapper","","class","t-icon",3,"disabled","src","tuiHint","tuiHintAppearance","tuiHintDirection","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-copy__icon","tuiWrapper","",1,"t-icon",3,"disabled","src","tuiHint","tuiHintAppearance","tuiHintDirection","click"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t&&(l.F$t(Je),l.TgZ(0,"tui-primitive-textfield",0),l.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(3,Ue,1,4,"ng-template",null,1,l.W1O),l.YNc(5,qe,2,3,"ng-template",null,2,l.W1O)),2&t){const t=l.MAs(4);l.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.disabled?"":t)("value",e.value)}},directives:[te.y,ee.B,ne.A,a.Li,c.P,Gt.o,He.D,Ve.x,Ye.t,je.D],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon[_ngcontent-%COMP%]{position:relative;cursor:pointer;pointer-events:auto;color:var(--tui-base-06)}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],Qe.prototype,"hintText$",null);var We=n(72878),Ke=n(71753),Xe=n(21032),tn=n(45642);let en=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,tn.U5,s.KWI,s.cnw,tt,a.wq,s.fNO]]}),t})();n(92482);const nn={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},appearance:"textfield",hideButtons:!1,min:0,max:Number.MAX_SAFE_INTEGER,step:1,postfix:""};(0,o.JN4)(nn);var rn=n(59557);let on=(()=>{class t{constructor(t,e){this.host=t,this.dateFormat=e}get value(){return this.host.value.length===o.ekI?o.TU1.normalizeParse(this.host.value,this.dateFormat).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?o.TU1.normalizeParse(t,"YMD").toString(this.dateFormat):"")}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o),l.Y36(o.P_B))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("change",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("input.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&l.Ikx("tabIndex",-1)("value",e.value)("max",e.max)("min",e.min)}}),t})();function sn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-textfield",5),l.NdJ("focusedChange",(function(e){return l.CHM(t),l.oxw().onFocused(e)}))("valueChange",(function(e){return l.CHM(t),l.oxw().onValueChange(e)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw(),i=l.MAs(4);l.Q6J("disabled",n.computedDisabled)("focusable",n.computedFocusable)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedFiller(t||""))("tuiTextfieldIcon",n.calendarIcon&&i)("value",n.computedValue)}}function an(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",8),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).onIconClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function ln(t,e){1&t&&l._UZ(0,"input",9)}const un=function(t){return{$implicit:t}};function cn(t,e){if(1&t&&(l.YNc(0,an,1,3,"tui-svg",6),l.YNc(1,ln,1,0,"input",7)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(3,un,t.size)),l.xp6(1),l.Q6J("ngIf",t.isMobile&&t.nativePicker)}}function dn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",12),l.TgZ(1,"button",13),l.NdJ("click",(function(){l.CHM(t);const e=l.oxw(2);return e.onDayClick(e.items[0].day)})),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=l.oxw(2);l.xp6(2),l.hij(" ",t.items[0]," ")}}function hn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar",10),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)}))("monthChange",(function(e){return l.CHM(t),l.oxw().onMonthChange(e)})),l.qZA(),l.YNc(1,dn,3,1,"div",11)}if(2&t){const t=l.oxw();l.Q6J("disabledItemHandler",t.disabledItemHandler)("markerHandler",t.markerHandler)("max",t.computedMax)("min",t.computedMin)("month",t.computedActiveYearMonth)("value",t.value),l.xp6(1),l.Q6J("ngIf",1===t.items.length)}}const pn=["*",[["input"]]];class gn extends o.F9l{constructor(t,e,n,i,r,a,l,u,c,d,h,p){super(t,e,d),this.injector=n,this.isMobile=i,this.dialogs=r,this.mobileCalendar=a,this.dateFormat=l,this.dateSeparator=u,this.dateTexts$=c,this.valueTransformer=d,this.options=h,this.textfieldSize=p,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.items=[],this.defaultActiveYearMonth=o.qld.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator))))}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:this.options.min}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:this.options.max}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get computedMobile(){return this.isMobile&&(!!this.mobileCalendar||this.nativePicker)}get nativePicker(){return this.options.nativePicker}get calendarIcon(){return this.options.icon}get computedValue(){const{value:t,nativeValue:e,activeItem:n}=this;return n?String(n):t?t.toString(this.dateFormat,this.dateSeparator):e}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||(0,o.hVF)(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?K.A_:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){const{value:t}=this;return t&&this.items.find((e=>e.day.daySame(t)))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onMobileClick(){this.onIconClick()}onIconClick(){this.computedMobile&&this.mobileCalendar&&this.dialogs.open(new a.Al(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.value=t}))}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),t||this.onOpenChange(!0),this.value=t.length!==o.ekI?null:o.TU1.normalizeParse(t,this.dateFormat)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}valueIdenticalComparator(t,e){return(0,o.J$k)(t,e,((t,e)=>t.daySame(e)))}computeMaskOptions(t,e,n,i){return(0,We.tr)({separator:e,mode:vt.ux[t],min:n.toLocalNativeDate(),max:i.toLocalNativeDate()})}}gn.ɵfac=function(t){return new(t||gn)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.zs3),l.Y36(o.fLQ),l.Y36(s.ROA),l.Y36(nt.vk,8),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.zf),l.Y36(nt.HF,8),l.Y36(nt.WB),l.Y36(s.kId))},gn.ɵcmp=l.Xpm({type:gn,selectors:[["tui-input-date"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[l._Bn([(0,o.FTc)(gn),(0,o.wBO)(gn),(0,nt._V)(nt.HF)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:7,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick","monthChange"],["tuiPreventDefault","mousedown","class","t-button",4,"ngIf"],["tuiPreventDefault","mousedown",1,"t-button"],["tuiLink","","type","button",3,"click"]],template:function(t,e){if(1&t&&(l.F$t(pn),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)})),l.YNc(1,sn,3,11,"tui-primitive-textfield",1),l.ALo(2,"async"),l.YNc(3,cn,2,5,"ng-template",null,2,l.W1O),l.YNc(5,hn,2,7,"ng-template",3,4,l.W1O),l.qZA()),2&t){const t=l.MAs(6);l.Q6J("canOpen",e.canOpen)("content",t)("open",e.open&&e.canOpen),l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,5,e.filler$)),l.xp6(4),l.Q6J("polymorpheus",e.type)}},directives:[Kt.o,lt.L,a.GL,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,a.Li,r.O5,c.P,Gt.o,on,bt.a,Ct.A,st.V],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),(0,p.gn)([o.UMq],gn.prototype,"computeMaskOptions",null);const mn=(0,o.JN4)({separator:",",uniqueTags:!0,tagStatus:"primary"});var fn=n(50830),vn=n(63360);const bn=["focusableElement"],yn=["tagsContainer"],_n=["cleaner"],Cn=["errorIcon"],wn=["tag"];function xn(t,e){1&t&&l.GkF(0)}function Mn(t,e){if(1&t&&l._UZ(0,"tui-svg",21),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}const On=function(t){return{$implicit:t}};function kn(t,e){if(1&t&&(l.TgZ(0,"div",19),l.YNc(1,Mn,1,1,"tui-svg",20),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.iconLeft)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function Sn(t,e){if(1&t&&(l.TgZ(0,"div",22),l.Hsn(1,2),l.qZA()),2&t){const t=l.oxw();l.ekj("t-placeholder_raised",t.placeholderRaised)}}function Pn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-tag",24,25),l.NdJ("edited",(function(e){const n=l.CHM(t).index;return l.oxw(2).onTagEdited(e,n)}))("keydown.arrowLeft.prevent",(function(){const e=l.CHM(t).index;return l.oxw(2).onTagKeyDownArrowLeft(e)}))("keydown.arrowRight.prevent",(function(){const e=l.CHM(t).index;return l.oxw(2).onTagKeyDownArrowRight(e)})),l.ALo(2,"async"),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2);l.Q6J("disabled",n.computedDisabled||n.disabledItemHandler(t))("editable",n.editable&&!n.readOnly)("hoverable",!n.readOnly)("leftContent",n.getLeftContent(t))("maxLength",n.maxLength)("removable",!n.readOnly&&n.removable)("separator",n.separator)("size",n.controller.size)("status",l.lcZ(2,11,n.status$))("tuiFocusable",!1)("value",t.toString())}}function Tn(t,e){if(1&t&&(l.ynx(0),l.YNc(1,Pn,3,13,"tui-tag",23),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",t.value)("ngForTrackBy",t.trackByFn)}}function An(t,e){if(1&t&&l._UZ(0,"span",27),2&t){const t=e.$implicit,n=l.oxw(2);l.ekj("t-text_comma",n.computedFocused&&!n.inputHidden)("t-text_disabled",n.disabledItemHandler(t))("t-text_error",!n.tagValidator(t)),l.Q6J("textContent",t)}}function En(t,e){if(1&t&&l.YNc(0,An,1,7,"span",26),2&t){const t=l.oxw();l.Q6J("ngForOf",t.value)}}function In(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",32,33),l.NdJ("click.stop",(function(){return l.CHM(t),l.oxw(3).onCleanerClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Dn(t,e){if(1&t&&(l.ynx(0),l.YNc(1,In,2,1,"tui-svg",31),l.BQk()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.iconCleaner)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function Ln(t,e){if(1&t&&l._UZ(0,"tui-tooltip",34),2&t){const t=l.oxw(2);l.Q6J("content",null==t.hintOptions?null:t.hintOptions.content)("describeId",t.id)}}function Fn(t,e){if(1&t&&l._UZ(0,"tui-svg",21),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Nn(t,e){if(1&t&&(l.TgZ(0,"div",35),l.YNc(1,Fn,1,1,"tui-svg",20),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function zn(t,e){if(1&t&&(l.TgZ(0,"div",28),l.YNc(1,Dn,2,4,"ng-container",0),l.YNc(2,Ln,1,2,"tui-tooltip",29),l.YNc(3,Nn,2,4,"div",30),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngIf",t.hasCleaner),l.xp6(1),l.Q6J("ngIf",t.showHint),l.xp6(1),l.Q6J("ngIf",t.icon)}}function Rn(t,e){if(1&t&&l._UZ(0,"tui-svg",36),2&t){const t=l.oxw();l.Q6J("src",t.icons.error)}}const Bn=[[["tuiContent"]],[["select"]],"*"],Hn=["tuiContent","select","*"],Vn={s:1.25,m:1.5,l:2},Yn={s:1,m:1.25,l:1.25};let jn=(()=>{class t extends o.m6v{constructor(t,e,n,i,r,s,a,u,c){super(t,e),this.el=n,this.modeDirective=i,this.mode$=r,this.hintOptions=s,this.controller=a,this.options=u,this.icons=c,this.tags=o.Mmc,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=o.YeN,this.expandable=!0,this.rows=1/0,this.inputHidden=!1,this.uniqueTags=this.options.uniqueTags,this.maxLength=null,this.placeholder="",this.removable=!0,this.disabledItemHandler=o.IyD,this.searchChange=new l.vpe,this.status$=this.mode$.pipe((0,N.U)((()=>this.status))),this.open=!1}set pseudoFocusedSetter(t){t||this.focused||this.scrollTo(0),this.pseudoFocus=t}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){var t;return(0,o.zb4)(this.el.nativeElement)||!!(null===(t=this.hostedDropdown)||void 0===t?void 0:t.focused)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get labelOutside(){const{size:t,labelOutside:e}=this.controller;return"s"===t||e}get iconLeft(){return this.controller.iconLeft}get icon(){return this.controller.icon}get iconCleaner(){return this.controller.options.iconCleaner}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&this.interactive}get hasNativeValue(){return!!this.search}get hasValue(){return!!this.value.length||this.hasNativeValue}get hasPlaceholder(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)}get placeholderRaised(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)}get hasExampleText(){var t;return!!(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)&&this.computedFocused&&!this.hasValue&&!this.readOnly}get hasRightIcons(){var t;return this.hasCleaner||!!this.icon||!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&!this.computedDisabled}get showHint(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&(this.controller.options.hintOnDisabled||!this.computedDisabled)}get status(){var t;return(null===(t=this.modeDirective)||void 0===t?void 0:t.mode)?"default":this.options.tagStatus}get canOpen(){return this.interactive&&!!this.datalist}get computeMaxHeight(){return this.expandable?this.rows*this.lineHeight:null}onFocusInOut(){this.cdr.detectChanges()}detectRetargetFromLabel(t){(0,o.UPZ)(t)&&t.stopImmediatePropagation()}getLeftContent(t){return!this.tagValidator(t)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){this.updateSearch(""),this.clear(),this.focusInput()}onActiveZone(t){this.open=!1,this.addTag(),this.updateFocused(t),t||this.computedFocused||this.scrollTo(0)}onMouseDown(t){var e;const n=(0,o.mAU)(t);!this.focusableElement||n===this.focusableElement.nativeElement||!(0,o.veZ)(t.target)||(null===(e=this.cleanerSvg)||void 0===e?void 0:e.nativeElement.contains(t.target))||this.tagsContainer&&n!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(n)||(t.preventDefault(),this.focusInput())}onFieldKeyDownBackspace(t){this.labelOutside||this.hasNativeValue||!this.value.length?this.onFieldKeyDownArrowLeft(t):this.deleteLastEnabledItem()}onFieldKeyDownArrowLeft(t){this.labelOutside&&!this.hasNativeValue&&this.value.length&&(t.preventDefault(),this.tags.last.nativeElement.focus())}onFieldKeyDownEnter(){this.addTag(),this.scrollTo()}onTagKeyDownArrowLeft(t){t>0&&this.onScrollKeyDown(t,-1)}onTagKeyDownArrowRight(t){t===this.value.length-1?this.focusInput():this.onScrollKeyDown(t,1)}onTagEdited(t,e){this.focusInput(""===t),this.value=this.filterValue(this.value.map(((n,i)=>i!==e?n:t.split(this.separator).map((t=>t.trim())).filter(Boolean))).reduce(((t,e)=>t.concat(e)),[]))}handleOption(t){this.focusInput(),this.updateSearch(""),this.value=this.filterValue(this.value.concat(t)),this.open=!1,this.scrollTo()}onInput(t){const e=t.split(this.separator),n=e.map((t=>this.clippedValue(t.trim()))).filter(((t,e,{length:n})=>t.length>0&&e!==n-1)).filter((t=>!this.disabledItemHandler(t)));e.length>1?(this.updateSearch(this.clippedValue(e[e.length-1].trim())),this.value=this.filterValue([...this.value,...n])):this.updateSearch(this.clippedValue(t)),this.open=this.hasNativeValue}onPaste(t){const e=(0,o.Nnc)(t);this.onInput(e||"")}onDrop({dataTransfer:t}){t&&this.onInput(t.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(t,e){return e.toString()}scrollTo(t){var e;void 0===t&&(t=null===(e=this.scrollBar)||void 0===e?void 0:e.nativeElement.scrollWidth),(0,ze.H)(0).pipe((0,B.R)(this.destroy$)).subscribe((()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=t||0)}))}filterValue(t){const e=new Set;return t.reverse().filter((t=>!this.uniqueTags||t&&!e.has(t)&&e.add(t))).reverse()}onScrollKeyDown(t,e){const n=this.tags.find(((n,i)=>i===t+e));n&&this.scrollBar&&(n.nativeElement.focus(),e*this.scrollBar.nativeElement.clientWidth-e*n.nativeElement.offsetLeft-n.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=e*n.nativeElement.clientWidth))}updateSearch(t){this.focusableElement&&(this.focusableElement.nativeElement.value=t),this.search=t,this.searchChange.emit(t)}addTag(){var t,e;const n=null!==(e=null===(t=this.search)||void 0===t?void 0:t.trim())&&void 0!==e?e:"";n&&!this.disabledItemHandler(n)&&(this.updateSearch(""),this.value=this.filterValue(this.value.concat(n)))}deleteLastEnabledItem(){for(let t=this.value.length-1;t>=0;t--)if(!this.disabledItemHandler(this.value[t])){this.value=(0,o.WX)(this.value,t);break}}focusInput(t=!1){var e;null===(e=this.nativeFocusableElement)||void 0===e||e.focus({preventScroll:t})}clippedValue(t){return t.slice(0,this.maxLength||t.length)}get lineHeight(){return this.labelOutside?Vn[this.controller.size]+.25:Yn[this.controller.size]}}return t.ɵfac=function(e){return new(e||t)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(s.wtG,8),l.Y36(s.Auc),l.Y36(s.bZA,8),l.Y36(s.CsI),l.Y36(mn),l.Y36(s.Gs9))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-input-tag"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.gXS,5,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(bn,5),l.Gf(yn,5),l.Gf(_n,5,l.SBq),l.Gf(s.IB$,5,l.SBq),l.Gf(Cn,5),l.Gf(wn,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.hostedDropdown=t.first),l.iGM(t=l.CRH())&&(e.focusableElement=t.first),l.iGM(t=l.CRH())&&(e.tagsContainer=t.first),l.iGM(t=l.CRH())&&(e.cleanerSvg=t.first),l.iGM(t=l.CRH())&&(e.scrollBar=t.first),l.iGM(t=l.CRH())&&(e.errorIconTemplate=t.first),l.iGM(t=l.CRH())&&(e.tags=t)}},hostVars:7,hostBindings:function(t,e){1&t&&l.NdJ("focusin.capture.silent",(function(){return e.onFocusInOut()}))("focusout.capture.silent",(function(){return e.onFocusInOut()})),2&t&&(l.uIk("data-size",e.size),l.ekj("_expandable",e.expandable)("_label-outside",e.labelOutside)("_icon-left",e.iconLeft))},inputs:{separator:"separator",search:"search",editable:"editable",tagValidator:"tagValidator",expandable:"expandable",rows:"rows",inputHidden:"inputHidden",uniqueTags:"uniqueTags",maxLength:"maxLength",placeholder:"placeholder",removable:"removable",disabledItemHandler:"disabledItemHandler",pseudoFocusedSetter:["pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(t),(0,o.wBO)(t),(0,s.oEG)(t),s.Y0,s.CV2],[Wt.yn]),l.qOj],ngContentSelectors:Hn,decls:25,vars:34,consts:[[4,"ngIf"],[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiWrapper","",3,"appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon t-icon-wrapper",4,"ngIf"],[1,"t-wrapper"],[1,"t-absolute-wrapper"],["automation-id","tui-input-tag__placeholder","class","t-placeholder",3,"t-placeholder_raised",4,"ngIf"],[1,"t-scrollbar",3,"hidden"],[1,"t-tags"],[4,"ngIf","ngIfElse"],["text",""],[1,"t-input-wrapper"],[1,"t-ghost"],["automation-id","tui-input-tag__native","type","text",1,"t-native",3,"disabled","id","ngModel","placeholder","readOnly","tuiFocusable","drop.prevent","keydown.arrowLeft","keydown.backspace","keydown.enter.prevent","ngModelChange","paste.prevent"],["focusableElement",""],[1,"t-value-content"],["class","t-icons t-icon-wrapper",4,"ngIf"],["errorIcon",""],[1,"t-icon","t-icon_left","t-textfield-icon","t-icon-wrapper"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-input-tag__placeholder",1,"t-placeholder"],["automation-id","tui-input-tag__tag","class","t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent",4,"ngFor","ngForOf","ngForTrackBy"],["automation-id","tui-input-tag__tag",1,"t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent"],["tag",""],["class","t-text",3,"t-text_comma","t-text_disabled","t-text_error","textContent",4,"ngFor","ngForOf"],[1,"t-text",3,"textContent"],[1,"t-icons","t-icon-wrapper"],["automation-id","tui-input-tag__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","","class","t-cleaner",3,"src","click.stop",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","",1,"t-cleaner",3,"src","click.stop"],["cleaner",""],["automation-id","tui-input-tag__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"],[1,"t-error-icon",3,"src"]],template:function(t,e){if(1&t&&(l.F$t(Bn),l.YNc(0,xn,1,0,"ng-container",0),l.ALo(1,"async"),l.TgZ(2,"tui-hosted-dropdown",1),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(3,"div",2),l.NdJ("click.prevent.silent",(function(t){return e.detectRetargetFromLabel(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),l.TgZ(4,"div",3),l.YNc(5,kn,2,4,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l.YNc(8,Sn,2,2,"div",7),l.qZA(),l.TgZ(9,"tui-scrollbar",8),l.TgZ(10,"div",9),l.YNc(11,Tn,2,2,"ng-container",10),l.YNc(12,En,1,1,"ng-template",null,11,l.W1O),l.TgZ(14,"div",12),l.TgZ(15,"div",13),l._uU(16),l.qZA(),l.TgZ(17,"input",14,15),l.NdJ("drop.prevent",(function(t){return e.onDrop(t)}))("keydown.arrowLeft",(function(t){return e.onFieldKeyDownArrowLeft(t)}))("keydown.backspace",(function(t){return e.onFieldKeyDownBackspace(t)}))("keydown.enter.prevent",(function(){return e.onFieldKeyDownEnter()}))("ngModelChange",(function(t){return e.onInput(t)}))("paste.prevent",(function(t){return e.onPaste(t)})),l.qZA(),l.qZA(),l.qZA(),l.TgZ(19,"div",16),l.Hsn(20),l.qZA(),l.qZA(),l.qZA(),l.Hsn(21,1),l.YNc(22,zn,4,3,"div",17),l.qZA(),l.YNc(23,Rn,1,1,"ng-template",null,18,l.W1O),l.qZA(),l.qZA()),2&t){const t=l.MAs(13);let n;l.Q6J("ngIf",l.lcZ(1,32,null==e.hintOptions?null:e.hintOptions.change$)),l.xp6(2),l.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),l.xp6(2),l.Q6J("ngIf",e.iconLeft),l.xp6(3),l.Q6J("ngIf",e.hasPlaceholder),l.xp6(1),l.Udp("max-height",e.computeMaxHeight,"rem"),l.Q6J("hidden",!e.expandable),l.xp6(1),l.ekj("t-tags_empty",(!e.focused||e.inputHidden)&&!(null!=e.value&&e.value.length)&&!(null!=e.search&&null!=(n=e.search.trim())&&n.length)),l.xp6(1),l.Q6J("ngIf",e.labelOutside)("ngIfElse",t),l.xp6(3),l.ekj("t-input-wrapper_collapsed",e.computedDisabled||e.readOnly||e.inputHidden),l.xp6(2),l.Oqu(e.search),l.xp6(1),l.ekj("t-native_hidden",e.inputHidden),l.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.search)("placeholder",e.placeholder)("readOnly",e.readOnly||e.inputHidden)("tuiFocusable",e.computedFocusable),l.uIk("maxLength",e.maxLength),l.xp6(5),l.Q6J("ngIf",e.hasRightIcons)}},directives:[r.O5,Kt.o,Xt.e,Gt.o,it.I,qt.Fj,qt.JJ,qt.On,at.t,a.Li,c.P,r.sg,fn.G,vn.w],pipes:[r.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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{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%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-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)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.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}[_nghost-%COMP%]{cursor:text}._expandable[_nghost-%COMP%]{height:auto;max-height:none}._disabled[_nghost-%COMP%]{pointer-events:none}._readonly[_nghost-%COMP%]{cursor:default}[data-size=m][_nghost-%COMP%]{line-height:1rem}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}[_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%], ._label-outside._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{margin:0}[data-size=s]._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:.25rem;margin-inline-start:.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1rem solid transparent}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1.25rem solid transparent}.t-tags[_ngcontent-%COMP%]{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable[_ngcontent-%COMP%]{overflow:hidden}.t-tags_empty[_ngcontent-%COMP%]{height:0}._expandable[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{flex-wrap:wrap;white-space:normal;overflow:hidden}._readonly[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{pointer-events:none}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{align-items:flex-start}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}[data-size=s][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-absolute-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}[data-size=m][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag[_ngcontent-%COMP%]{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text[_ngcontent-%COMP%]:after{content:",\\a0"}.t-text_disabled[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-text_error[_ngcontent-%COMP%]{color:var(--tui-negative)}.t-text[_ngcontent-%COMP%]:not(.t-text_comma):last-of-type:after{content:""}[_nghost-%COMP%]:not(._expandable) .t-text[_ngcontent-%COMP%]{white-space:nowrap}.t-input-wrapper[_ngcontent-%COMP%], .t-value-content[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;max-width:100%}[data-size=s][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:1.5rem}[data-size=m][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=m][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}[data-size=l][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-s) + 2 * .125rem)}[_nghost-%COMP%]:not(._label-outside) .t-input-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._label-outside) .t-value-content[_ngcontent-%COMP%]{min-height:1rem}.t-input-wrapper_collapsed[_ngcontent-%COMP%]{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content[_ngcontent-%COMP%]:empty{display:none}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}[_nghost-%COMP%]:not(._expandable) .t-ghost[_ngcontent-%COMP%]{min-width:2rem}.t-native[_ngcontent-%COMP%]{margin:0;border-width: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%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.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}.t-native_hidden[_ngcontent-%COMP%]{opacity:0;text-indent:-10em}.t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03-night)}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:-moz-read-only)::placeholder{opacity:1}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:read-only)::placeholder{opacity:1}.t-error-icon[_ngcontent-%COMP%]{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}'],changeDetection:0}),t})(),Zn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,s.EIu,s.dSp,a.wq]]}),t})();function $n(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}n(90691);const Un=function(t){return{$implicit:t}};function Gn(t,e){if(1&t&&(l.TgZ(0,"div",6),l.YNc(1,$n,2,1,"ng-container",7),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",l.VKq(2,Un,t.value))}}function qn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-textfield",4),l.NdJ("valueChange",(function(e){return l.CHM(t),l.oxw().onValueChange(e)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.YNc(3,Gn,2,4,"div",5),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw(),i=l.MAs(4);l.Q6J("disabled",n.computedDisabled)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.innerPseudoFocused)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedRangeFiller(t||""))("tuiTextfieldIcon",n.calendarIcon&&i)("value",n.computedValue),l.xp6(3),l.Q6J("ngIf",n.showValueTemplate)}}function Jn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",9),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).onIconClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function Qn(t,e){if(1&t&&l.YNc(0,Jn,1,3,"tui-svg",8),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(2,Un,t.size))}}function Wn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar-range",10),l.NdJ("valueChange",(function(e){return l.CHM(t),l.oxw().onRangeChange(e)})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("defaultViewedMonth",t.defaultViewedMonth)("disabledItemHandler",t.disabledItemHandler)("items",t.items)("markerHandler",t.markerHandler)("max",t.computedMax)("maxLength",t.maxLength)("min",t.computedMin)("minLength",t.minLength)("value",t.value)}}const Kn=["*",[["input"]]];class Xn extends o.F9l{constructor(t,e,n,i,r,a,l,u,c,d,h,p){super(t,e,d),this.injector=n,this.isMobile=i,this.dialogs=r,this.mobileCalendar=a,this.dateFormat=l,this.dateSeparator=u,this.dateTexts$=c,this.valueTransformer=d,this.options=h,this.textfieldSize=p,this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.defaultViewedMonth=o.qld.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1,this.maxLengthMapper=vt.EP,this.dateFiller$=this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator))))}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get canOpen(){return this.interactive&&!this.computedMobile}get computedExampleText(){var t,e;return this.items.length&&(null===(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||void 0===e?void 0:e.placeholder)||""}get computedMask(){var t,e;const n=(null===(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||void 0===e?void 0:e.value)!==this.computedValue;return this.activePeriod||n?K.A_:this.calculateMask(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax,this.minLength,this.maxLength)}get activePeriod(){return this.items.find((t=>(0,o.J$k)(this.value,t.range,((t,e)=>t.from.daySame(e.from.dayLimit(this.min,this.max))&&t.to.daySame(e.to.dayLimit(this.min,this.max))))))||null}get computedValue(){const{value:t,nativeValue:e,activePeriod:n}=this;return n?String(n):t?t.getFormattedDayRange(this.dateFormat,this.dateSeparator):e}get showValueTemplate(){return(0,o.PcC)(this.value)&&!this.focused}get computedContent(){var t;return(null===(t=this.activePeriod)||void 0===t?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return!1!==this.pseudoFocus&&(!(!this.open&&!this.computedFocused)||null)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}onClick(){this.isMobile||this.toggle()}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.computedMobile&&this.mobileCalendar&&this.dialogs.open(new a.Al(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{min:this.maxLengthMapper(this.computedMin,this.value,this.maxLength,!0),max:this.maxLengthMapper(this.computedMax,this.value,this.maxLength,!1),disabledItemHandler:this.disabledItemHandler}}).pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.value=t}))}onOpenChange(t){this.open=t}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),t||this.onOpenChange(!0),this.value=t.length===o.FZu?o.VRe.normalizeParse(t,this.dateFormat):null}onRangeChange(t){this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t}onItemSelect(t){this.toggle(),this.focusInput(),"string"==typeof t?null!==this.activePeriod&&(this.value=null,this.nativeValue=""):this.value=t.range.dayLimit(this.min,this.max)}onActiveZone(t){this.updateFocused(t),t||this.itemSelected||this.nativeValue.length!==o.ekI&&this.nativeValue.length!==o.ekI+o.mHA.length||(this.value=o.VRe.normalizeParse(this.nativeValue,this.dateFormat))}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}valueIdenticalComparator(t,e){return(0,o.J$k)(t,e,((t,e)=>t.daySame(e)))}calculateMask(t,e,n,i,r,o){return(0,We.n9)({separator:e,mode:vt.ux[t],min:n.toLocalNativeDate(),max:i.toLocalNativeDate(),minLength:r||{},maxLength:o||{}})}get itemSelected(){return-1!==this.items.findIndex((t=>String(t)===this.nativeValue))}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${o.mHA}${t}`}}Xn.ɵfac=function(t){return new(t||Xn)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.zs3),l.Y36(o.fLQ),l.Y36(s.ROA),l.Y36(nt.vk,8),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.zf),l.Y36(nt.LD,8),l.Y36(nt.WB),l.Y36(s.kId))},Xn.ɵcmp=l.Xpm({type:Xn,selectors:[["tui-input-date-range"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[l._Bn([(0,o.FTc)(Xn),(0,o.wBO)(Xn),(0,nt._V)(nt.LD)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:6,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["iconContent",""],["dropdown",""],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],[3,"defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value","valueChange"]],template:function(t,e){if(1&t&&(l.F$t(Kn),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.YNc(1,qn,4,12,"tui-primitive-textfield",1),l.ALo(2,"async"),l.YNc(3,Qn,1,4,"ng-template",null,2,l.W1O),l.YNc(5,Wn,1,9,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(6);l.Q6J("canOpen",e.canOpen)("content",t)("open",e.open&&e.canOpen),l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,4,e.dateFiller$))}},directives:[Kt.o,Xt.e,lt.L,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,r.O5,a.Li,c.P,Gt.o,Et],pipes:[r.Ov],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}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0}),(0,p.gn)([o.UMq],Xn.prototype,"calculateMask",null);let ti=(()=>{class t{constructor(t){this.host=t}get value(){var t,e;return this.host.rawValue[0]&&this.host.rawValue[1]?`${null===(t=this.host.rawValue[0])||void 0===t?void 0:t.toString("YMD","-")}T${null===(e=this.host.rawValue[1])||void 0===e?void 0:e.toString("HH:MM")}`:""}onChange(t){if(!t)return void this.host.writeValue([null,null]);const e=new Date(t),n=o.TU1.fromLocalNativeDate(e),i=o.qDo.fromLocalNativeDate(e);this.host.writeValue([n,i])}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiDateTime",""]],hostAttrs:["type","datetime-local"],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("change.stop",(function(t){return e.onChange(t.target.value)}))("input.stop",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&l.Ikx("tabIndex",-1)("value",e.value)}}),t})();function ei(t,e){if(1&t&&l._UZ(0,"tui-svg",7),2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function ni(t,e){1&t&&l._UZ(0,"input",8)}const ii=function(t){return{$implicit:t}};function ri(t,e){if(1&t&&(l.YNc(0,ei,1,3,"tui-svg",5),l.YNc(1,ni,1,0,"input",6)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(3,ii,t.size)),l.xp6(1),l.Q6J("ngIf",t.showNativePicker)}}function oi(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar",9),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)}))("monthChange",(function(e){return l.CHM(t),l.oxw().onMonthChange(e)})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabledItemHandler",t.disabledItemHandler)("max",t.calendarMaxDay)("min",t.calendarMinDay)("month",t.computedActiveYearMonth)("value",t.calendarValue)}}const si=["*",[["input"]]];class ai extends o.M$T{constructor(t,e,n,i,r,s,a,l,u,c,d){super(t,e,a),this.dateFormat=n,this.dateSeparator=i,this.timeTexts$=r,this.dateTexts$=s,this.valueTransformer=a,this.options=l,this.isMobile=u,this.isIos=c,this.textfieldSize=d,this.month=null,this.timeMode$=new Lt.X("HH:MM"),this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=o.IyD,this.defaultActiveYearMonth=o.qld.currentLocal(),this.open=!1,this.filler$=(0,Ft.aj)([this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator)))),this.timeTexts$,this.timeMode$]).pipe((0,N.U)((([t,e,n])=>this.getDateTimeString(t,e[n]))))}set timeMode(t){this.timeMode$.next(t)}get timeMode(){return this.timeMode$.value}get size(){return this.textfieldSize.size}get computedMin(){return this.toTuiDay(this.min,this.options.min)}get computedMax(){return this.toTuiDay(this.max,this.options.max)}get fillerLength(){return o.ekI+vt.JC.length+this.timeMode.length}get maskOptions(){return this.calculateMask(this.computedMin,this.computedMax,this.timeMode,this.dateFormat,this.dateSeparator)}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get calendarIcon(){return this.options.icon}get nativePicker(){return this.options.nativePicker&&this.isMobile}get showNativePicker(){return this.nativePicker&&"HH:MM"===this.timeMode}get computedValue(){const{value:t,nativeValue:e,timeMode:n}=this,[i,r]=t,s=e.length>o.ekI;return!i||!r&&s?e:this.getDateTimeString(i,r,n)}get calendarValue(){return this.value[0]}get calendarMinDay(){const t=this.computedMin;return Array.isArray(t)?t[0]:t}get calendarMaxDay(){const t=this.computedMax;return Array.isArray(t)?t[0]:t}get computedActiveYearMonth(){const{computedMin:t,computedMax:e}=this;return this.month||this.value[0]||(0,o.hVF)(this.defaultActiveYearMonth,Array.isArray(t)?t[0]:t,Array.isArray(e)?e[0]:e)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}onClick(){this.open=!this.open}onValueChange(t){if(t||this.onOpenChange(!0),t.length{this.nativeValue=this.trimTrailingSeparator(this.nativeValue)})),null===this.value[0]||null!==this.value[1]||this.nativeValue.length<=this.fillerLength+vt.JC.length||"HH:MM"===this.timeMode)return;const[,e]=this.nativeValue.split(vt.JC);if(!e)return;const n=o.qDo.fromString(e);this.value=[this.value[0],n]}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=this.value&&(this.value[0]||this.value[1])?this.computedValue:""}getFallbackValue(){return[null,null]}valueIdenticalComparator(t,e){return(0,o.J$k)(t[0],e[0],((t,e)=>t.daySame(e)))&&(0,o.J$k)(t[1],e[1],((t,e)=>String(t)===String(e)))}calculateMask(t,e,n,i,r){return(0,We.H$)({timeMode:n,dateSeparator:r,dateMode:vt.ux[i],min:this.toNativeDate(t),max:this.toNativeDate(e)})}getDateTimeString(t,e,n="HH:MM"){const i=t instanceof o.TU1?t.toString(this.dateFormat,this.dateSeparator):t,r=e instanceof o.qDo?e.toString(n):e||"";return r?`${i}${vt.JC}${r}`:i}updateNativeValue(t){const e=this.nativeValue.split(vt.JC)[1]||"";this.nativeValue=this.getDateTimeString(t,e)}clampTime(t,e){const{computedMin:n,computedMax:i}=this,r=t.toAbsoluteMilliseconds(),s=Array.isArray(n)&&e.daySame(this.calendarMinDay)?n[1].toAbsoluteMilliseconds():-1/0,a=Array.isArray(i)&&e.daySame(this.calendarMaxDay)?i[1].toAbsoluteMilliseconds():1/0;return o.qDo.fromAbsoluteMilliseconds((0,o.Kiv)(r,s,a))}trimTrailingSeparator(t){return t.replace(new RegExp(`(\\${this.dateSeparator}|${vt.JC}|\\.)$`),"")}toNativeDate(t){if(!Array.isArray(t))return t.toLocalNativeDate();const[{year:e,month:n,day:i},{hours:r,minutes:o,seconds:s,ms:a}]=t;return new Date(e,n,i,r,o,s,a)}toTuiDay(t,e){if(!t)return e;if(!Array.isArray(t))return t;const[n,i]=t;return n?i?[n,i]:n:e}}ai.ɵfac=function(t){return new(t||ai)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.Yq),l.Y36(nt.zf),l.Y36(nt.Mu,8),l.Y36(nt.WB),l.Y36(o.fLQ),l.Y36(o.FAH),l.Y36(s.kId))},ai.ɵcmp=l.Xpm({type:ai,selectors:[["tui-input-date-time"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",defaultActiveYearMonth:"defaultActiveYearMonth",timeMode:"timeMode"},features:[l._Bn([(0,o.FTc)(ai),(0,o.wBO)(ai),(0,nt._V)(nt.Mu)]),l.qOj],ngContentSelectors:["*","input"],decls:9,vars:16,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["automation-id","tui-input-date-time__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["appearance","icon","tuiWrapper","",3,"t-icon","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDateTime","","class","t-native-input",4,"ngIf"],["appearance","icon","tuiWrapper","",3,"src"],["tuiDateTime","",1,"t-native-input"],["automation-id","tui-input-date-time__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","max","min","month","value","dayClick","monthChange"]],template:function(t,e){if(1&t&&(l.F$t(si),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("focusedChange",(function(t){return e.onFocused(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.ALo(2,"async"),l.Hsn(3),l.Hsn(4,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(5,ri,2,5,"ng-template",null,2,l.W1O),l.YNc(7,oi,1,5,"ng-template",3,4,l.W1O),l.qZA()),2&t){const t=l.MAs(6),n=l.MAs(8);l.Q6J("canOpen",e.interactive&&!e.showNativePicker)("content",n)("open",e.open&&e.interactive),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",l.lcZ(2,14,e.filler$)||"")("tuiTextfieldIcon",e.calendarIcon&&t)("value",e.computedValue),l.xp6(6),l.Q6J("polymorpheus",e.type)}},directives:[Kt.o,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,a.GL,a.Li,r.O5,c.P,Gt.o,ti,bt.a,Ct.A],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),(0,p.gn)([o.UMq],ai.prototype,"calculateMask",null),(0,p.gn)([o.UMq],ai.prototype,"getDateTimeString",null);var li=n(24112);const ui=(0,o.JN4)({capture:null,accepts:"",multiple:!1,size:"m",maxFileSize:31457280});let ci=(()=>{class t{constructor(t,e,n,i){this.host=t,this.el=e,this.idService=n,this.options=i}get tabIndex(){return this.host.focusable?0:-1}get id(){return this.el.nativeElement.id||this.idService.generate()}get accept(){var t;return null!==(t=this.el.nativeElement.accept)&&void 0!==t?t:this.options.accepts}get multiple(){var t;return null!==(t=this.el.nativeElement.multiple)&&void 0!==t?t:this.options.multiple}get capture(){var t;return null!==(t=this.el.nativeElement.getAttribute("capture"))&&void 0!==t?t:this.options.capture}get input(){return this.el.nativeElement}}return t.ɵfac=function(e){return new(e||t)(l.Y36((0,l.Gpc)((()=>Oi))),l.Y36(l.SBq),l.Y36(o.llV),l.Y36(ui))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiInputFiles",""]],hostAttrs:["type","file",1,"t-native"],hostVars:5,hostBindings:function(t,e){2&t&&(l.Ikx("tabIndex",e.tabIndex)("id",e.id)("accept",e.accept)("multiple",e.multiple),l.uIk("capture",e.capture))}}),t})();var di=n(48992);let hi=(()=>{class t{constructor(t,e){this.inputFileTexts$=t,this.units$=e}transform(t){return(0,Ft.aj)([this.inputFileTexts$,this.units$]).pipe((0,N.U)((([{maxSizeRejectionReason:e},n])=>`${e}${(0,he.z)(n,t)}`)))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.BV,16),l.Y36(nt.rV,16))},t.ɵpipe=l.Yjl({name:"tuiMaxSizeRejectionError",type:t,pure:!0}),t})();const pi=["input"],gi=["formatRejection"],mi=["maxSizeRejection"];function fi(t,e){1&t&&l.GkF(0)}function vi(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function bi(t,e){if(1&t&&l._UZ(0,"span",10),2&t){const t=e.polymorpheusOutlet;l.Q6J("textContent",t)}}function yi(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"a",7),l.YNc(2,vi,2,1,"ng-container",8),l.ALo(3,"async"),l.qZA(),l.YNc(4,bi,1,1,"span",9),l.ALo(5,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("polymorpheusOutlet",l.lcZ(3,2,t.computedLink$)),l.xp6(2),l.Q6J("polymorpheusOutlet",l.lcZ(5,4,t.computedLabel$))}}function _i(t,e){if(1&t&&(l.ynx(0),l.Hsn(1),l._UZ(2,"input",11,12),l.BQk()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("accept",t.accept)("id",t.id)("multiple",t.multiple)("tuiFocusable",t.focusable)}}function Ci(t,e){if(1&t&&(l._uU(0),l.ALo(1,"async")),2&t){const t=l.oxw();let e;l.hij(" ",(null==(e=l.lcZ(1,1,t.inputFileTexts$))?null:e.formatRejectionReason)||"","\n")}}function wi(t,e){if(1&t&&(l._uU(0),l.ALo(1,"async"),l.ALo(2,"tuiMaxSizeRejectionError")),2&t){const t=l.oxw();l.hij(" ",l.lcZ(1,1,l.lcZ(2,3,t.maxFileSize)),"\n")}}const xi=[[["input"]]],Mi=function(t){return{$implicit:t}};class Oi extends o.F9l{constructor(t,e,n,i,r){super(t,e),this.isMobile=n,this.inputFileTexts$=i,this.options=r,this.dataTransfer=null,this.accept=this.options.accepts,this.multiple=this.options.multiple,this.size=this.options.size,this.maxFileSize=this.options.maxFileSize,this.reject=new l.vpe}get computedMultiple(){var t,e;return null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.multiple)&&void 0!==e?e:this.multiple}get computedAccept(){var t,e;return null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.accept)&&void 0!==e?e:this.accept}get nativeFocusableElement(){var t;return(null===(t=this.input)||void 0===t?void 0:t.nativeElement)||null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get computedPseudoHovered(){var t;return null!==(t=this.pseudoHover)&&void 0!==t?t:this.fileDragged||null}get computedLink$(){return this.computeLink$(this.fileDragged,this.computedMultiple,this.link)}get computedLabel$(){return this.computeLabel$(this.isMobile,this.fileDragged,this.computedMultiple,this.label)}get fileDragged(){var t;return!!(null===(t=this.dataTransfer)||void 0===t?void 0:t.types.includes("Files"))}get arrayValue(){return this.getValueArray(this.value)}onFocused(t){this.updateFocused(t)}onFilesSelected(){var t,e,n;const i=null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.input)&&void 0!==e?e:null===(n=this.input)||void 0===n?void 0:n.nativeElement;i&&(this.processSelectedFiles(i.files),i.value="")}onDropped(t){this.processSelectedFiles(t.files)}onDragOver(t){this.dataTransfer=t}removeFile(t){this.value=this.computedMultiple?this.arrayValue.filter((e=>e!==t)):null}computeLink$(t,e,n){return t?(0,I.of)(""):this.inputFileTexts$.pipe((0,N.U)((t=>e&&!n?t.defaultLinkMultiple:n||t.defaultLinkSingle)))}computeLabel$(t,e,n,i){return t?(0,I.of)(""):e?this.inputFileTexts$.pipe((0,N.U)((t=>n?t.dropMultiple:t.drop))):this.inputFileTexts$.pipe((0,N.U)((t=>n&&!i?t.defaultLabelMultiple:i||t.defaultLabelSingle)))}getValueArray(t){return t?Array.isArray(t)?t:[t]:o.LZ8}processSelectedFiles(t){if(!(null==t?void 0:t.length))return;const e={formatRejection:this.formatRejection,maxSizeRejection:this.maxSizeRejection},n=this.computedMultiple?Array.from(t):[t[0]],i=n.filter((t=>t.size>this.maxFileSize)),r=n.filter((t=>!this.isFormatAcceptable(t)&&!i.includes(t))),o=n.filter((t=>!i.includes(t)&&!r.includes(t)));(i.length||r.length)&&this.rejectFiles([...i.map((t=>({name:t.name,type:t.type,size:t.size,content:e.maxSizeRejection}))),...r.map((t=>({name:t.name,type:t.type,size:t.size,content:e.formatRejection})))]),this.value=this.computedMultiple?[...this.arrayValue,...o]:o[0]||null}isFormatAcceptable(t){if(!this.computedAccept)return!0;const e=`.${(t.name.split(".").pop()||"").toLowerCase()}`;return(0,li.w)(this.computedAccept).some((n=>n===e||n===t.type||"*"===n.split("/")[1]&&t.type.split("/")[0]===n.split("/")[0]))}rejectFiles(t){this.reject.emit(this.computedMultiple?t:t[0])}}Oi.ɵfac=function(t){return new(t||Oi)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.fLQ),l.Y36(nt.BV),l.Y36(ui))},Oi.ɵcmp=l.Xpm({type:Oi,selectors:[["tui-input-files"]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,ci,5),l.Suo(n,l.Rgc,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.nativeInput=t.first),l.iGM(t=l.CRH())&&(e.template=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(pi,5),l.Gf(gi,5),l.Gf(mi,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.input=t.first),l.iGM(t=l.CRH())&&(e.formatRejection=t.first),l.iGM(t=l.CRH())&&(e.maxSizeRejection=t.first)}},hostBindings:function(t,e){1&t&&l.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))("change",(function(){return e.onFilesSelected()}))},inputs:{link:"link",label:"label",accept:"accept",multiple:"multiple",size:"size",maxFileSize:"maxFileSize"},outputs:{reject:"reject"},features:[l._Bn([s.CV2,(0,o.FTc)(Oi)]),l.qOj],ngContentSelectors:pi,decls:10,vars:12,consts:[["appearance","input-file","tuiWrapper","",1,"t-wrapper",3,"active","disabled","focus","hover"],["automation-id","tui-input-file__label",1,"t-label",3,"mousedown.prevent.silent","tuiDroppableDragOverChange","tuiDroppableDropped"],[1,"t-description"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["formatRejection",""],["maxSizeRejection",""],["tuiLink",""],[4,"polymorpheusOutlet"],[3,"textContent",4,"polymorpheusOutlet"],[3,"textContent"],["title","","type","file",1,"t-native",3,"accept","id","multiple","tuiFocusable"],["input",""]],template:function(t,e){1&t&&(l.F$t(xi),l.TgZ(0,"div",0),l.TgZ(1,"label",1),l.NdJ("mousedown.prevent.silent",(function(){return 0}))("tuiDroppableDragOverChange",(function(t){return e.onDragOver(t)}))("tuiDroppableDropped",(function(t){return e.onDropped(t)})),l.TgZ(2,"div",2),l.YNc(3,fi,1,0,"ng-container",3),l.YNc(4,yi,6,6,"div",4),l.qZA(),l.YNc(5,_i,4,4,"ng-container",4),l.qZA(),l.qZA(),l.YNc(6,Ci,2,3,"ng-template",null,5,l.W1O),l.YNc(8,wi,3,5,"ng-template",null,6,l.W1O)),2&t&&(l.ekj("_mobile",e.isMobile),l.Q6J("active",e.pseudoActive)("disabled",e.computedDisabled)("focus",e.computedFocused)("hover",e.pseudoHover||e.fileDragged||null),l.xp6(3),l.Q6J("ngTemplateOutlet",e.template||null)("ngTemplateOutletContext",l.VKq(10,Mi,e.fileDragged)),l.xp6(1),l.Q6J("ngIf",!e.template),l.xp6(1),l.Q6J("ngIf",!e.readOnly&&!e.computedDisabled))},directives:[Gt.o,di._,r.tP,r.O5,st.V,a.Li,at.t],pipes:[r.Ov,hi],styles:['tui-input-files{display:block;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);font:var(--tui-font-text-m)}tui-input-files .t-native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}tui-input-files .t-native::-webkit-file-upload-button{display:none}tui-input-files .t-native+.t-native{display:none}tui-input-files .t-label{width:100%;min-height:inherit;text-align:center}tui-input-files .t-description{display:flex;justify-content:center;align-items:center;height:100%;min-height:inherit;padding:1rem 0;box-sizing:border-box}[tuiWrapper][data-appearance=input-file]{background:transparent;word-wrap:break-word;color:var(--tui-text-02);min-height:inherit;border-radius:inherit;padding:0 .5rem;box-sizing:border-box}[tuiWrapper][data-appearance=input-file]:after{border:1px dashed;color:var(--tui-link)}[tuiWrapper][data-appearance=input-file]._mobile:after{border:1px solid}[tuiWrapper][data-appearance=input-file]:disabled:disabled:after,[tuiWrapper][data-appearance=input-file][data-state=disabled][data-state=disabled]:after{color:var(--tui-text-03)}:focus-visible:not([data-focused="false"])>[tuiWrapper][data-appearance=input-file]:after,[data-focused=true]>[tuiWrapper][data-appearance=input-file]:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file]:focus-visible:focus-visible:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file]._focused._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after{color:var(--tui-text-01-night)}:focus-visible:not([data-focused="false"])>[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after,[data-focused=true]>[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:focus-visible:focus-visible:after{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]._focused._focused:after{color:var(--tui-text-01-night)}@media (hover: hover){[tuiWrapper][data-appearance=input-file][data-mode=onDark]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=hover]{background:var(--tui-clear-inverse-hover)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=hover]:after{color:var(--tui-text-03-night)}}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active],[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:hover{background:var(--tui-clear-inverse-active)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:active:not(._no-active):after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:hover:after{color:var(--tui-text-03-night)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]{color:var(--tui-text-01)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:after{color:var(--tui-text-01)}@media (hover: hover){[tuiWrapper][data-appearance=input-file][data-mode=onLight]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=hover]{background:var(--tui-clear-hover)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=hover]:after{color:var(--tui-text-03)}}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active],[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:hover{background:var(--tui-clear-active)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:active:not(._no-active):after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:hover:after{color:var(--tui-text-03)}@media (hover: hover){[tuiWrapper][data-appearance=input-file]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-state=hover]{background:var(--tui-secondary)}[tuiWrapper][data-appearance=input-file]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-state=hover]:after{color:var(--tui-link-hover)}}[tuiWrapper][data-appearance=input-file]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-state=active],[tuiWrapper][data-appearance=input-file][data-state=active]:hover{background:var(--tui-secondary-hover)}\n'],encapsulation:2,changeDetection:0}),(0,p.gn)([o.UMq],Oi.prototype,"computeLink$",null),(0,p.gn)([o.UMq],Oi.prototype,"computeLabel$",null),(0,p.gn)([o.UMq],Oi.prototype,"getValueArray",null),n(36866);let ki=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,o.udY,o.Fqk,s.c86]]}),t})();(0,o.JN4)({icons:{hide:({$implicit:t})=>"s"===t?"tuiIconEyeOff":"tuiIconEyeOffLarge",show:({$implicit:t})=>"s"===t?"tuiIconEye":"tuiIconEyeLarge"}});const Si=(0,o.JN4)({phoneMaskAfterCountryCode:"### ###-##-##",allowText:!1,countryCode:"+7"}),Pi=t=>t.replace(/\D/g,"").length;function Ti(t,e){const n=(t+e).replace(/[^#\d]+/g,"").length,i=e=>"+7"===t?e.replace(/^(\+?7?\s?8?)\s?/,""):e.replace(new RegExp(`^(\\+?${t.replace("+","")}?)\\s?`),"");return({elementState:t,data:e})=>{const{value:r,selection:o}=t;return{elementState:{selection:o,value:Pi(r)>n?i(r):r},data:Pi(e)>=n?i(e):e}}}var Ai=n(44530);const Ei=["*",[["input"]]];function Ii(t){return Number.isNaN(parseInt(t.replace(s.AJd,""),10))}class Di extends o.M$T{constructor(t,e,n,i,r){super(t,e),this.textfieldCleaner=n,this.options=i,this.textfieldSize=r,this.phoneMaskAfterCountryCode=this.options.phoneMaskAfterCountryCode,this.allowText=this.options.allowText,this.search="",this.searchChange=new l.vpe,this.countryCode=this.options.countryCode,this.open=!1}set countryCodeSetter(t){const e=this.countryCode;this.countryCode=t,this.updateValueWithNewCountryCode(e,t)}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){return(0,o.V8W)(this.nativeFocusableElement)||!!this.dropdown&&this.dropdown.focused}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||(0,K.CV)(this.value,this.maskOptions)}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get inputMode(){return this.allowText?"text":"numeric"}get canOpen(){return this.interactive&&!!this.datalist}get canClean(){return this.nativeValue!==this.nonRemovablePrefix&&this.textfieldCleaner.cleaner}get maskOptions(){return this.calculateMask(this.countryCode,this.phoneMaskAfterCountryCode,this.nonRemovablePrefix,this.allowText)}onActiveZone(t){return this.updateFocused(t),!t||this.nativeValue||this.readOnly||this.allowText?this.nativeValue===this.nonRemovablePrefix||this.isTextValue?(this.updateSearch(""),void(this.nativeValue="")):void(t||this.allowText||!this.nativeFocusableElement||(this.nativeValue=this.nativeValue.replace(/\D$/,""))):(this.updateSearch(this.nonRemovablePrefix),void(this.nativeValue=this.nonRemovablePrefix))}onValueChange(t){const e=Ii(t)?t:t.replace(s.AJd,"").slice(0,this.maxPhoneLength);this.updateSearch(e),this.value=e===this.countryCode||Ii(e)?"":e,this.open=!0,this.value||this.allowText||(this.nativeValue=this.nonRemovablePrefix)}handleOption(t){this.focusInput(),this.value=t,this.nativeValue=(0,K.CV)(this.value,this.maskOptions),this.updateSearch(""),this.open=!1}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=(0,K.CV)(t||"",this.maskOptions),this.updateSearch("")}getFallbackValue(){return""}get nonRemovablePrefix(){return`${this.countryCode} `}get maxPhoneLength(){return this.countryCode.length+this.phoneMaskAfterCountryCode.replace(/[^#]+/g,"").length}get isTextValue(){return!!this.search&&Ii(this.search)}calculateMask(t,e,n,i){const r=function(t,e){return[...t.split("")," ",...e.replace(/[^#\- ()]+/g,"").split("").map((t=>"#"===t?/\d/:t))]}(t,e),o=[Ti(t,e)];return i?{mask:({value:t})=>Ii(t)&&"+"!==t?K.A_.mask:r,preprocessors:o}:{mask:r,preprocessors:o,postprocessors:[(0,We.jX)(n)],plugins:[(0,We.nQ)(((t,[e,i])=>[e===i?n.length:0,t.length]))]}}focusInput(){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:!0})}updateSearch(t){this.search!==t&&(this.search=t,this.searchChange.emit(t))}updateValueWithNewCountryCode(t,e){this.isTextValue||(this.value=this.value.replace(t,e),this.nativeValue=(0,K.CV)(this.value,this.maskOptions))}}Di.ɵfac=function(t){return new(t||Di)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(s.YmJ),l.Y36(Si),l.Y36(s.kId))},Di.ɵcmp=l.Xpm({type:Di,selectors:[["tui-input-phone"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.gXS,5,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(s.ycg,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.dropdown=t.first),l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{countryCodeSetter:["countryCode","countryCodeSetter"],phoneMaskAfterCountryCode:"phoneMaskAfterCountryCode",allowText:"allowText",search:"search"},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(Di),(0,o.wBO)(Di),(0,s.oEG)(Di)],[Wt.yn]),l.qOj],ngContentSelectors:["*","input"],decls:4,vars:13,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldCleaner","value","valueChange"]],template:function(t,e){1&t&&(l.F$t(Ei),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("valueChange",(function(t){return e.nativeValue=t}))("valueChange",(function(t){return e.onValueChange(t)})),l.Hsn(2),l.Hsn(3,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.qZA()),2&t&&(l.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldCleaner",e.canClean)("value",e.nativeValue))},directives:[Kt.o,Xt.e,te.y,ee.B,X.n,tn.ro,Ai.b],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}),(0,p.gn)([o.UMq],Di.prototype,"calculateMask",null);let Li=(()=>{class t extends s.D1Q{get value(){return this.host.nativeValue}onValueChange(t){this.host.onValueChange(t)}process(t){this.input=t}ngDoCheck(){this.input&&(this.input.type="tel",this.input.inputMode=this.host.inputMode)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵdir=l.lG2({type:t,selectors:[["tui-input-phone"]],features:[l._Bn([(0,s.cpA)(t)]),l.qOj]}),t})();var Fi=n(19633);let Ni=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})();n(18569),(0,p.gn)([o.UMq],class{get query(){return this.accessor.nativeFocusableElement&&this.accessor.nativeFocusableElement.value||""}filter(t,e,n,i){return t?(0,he.fR)(t)?this.filterFlat(t,e,n,i):this.filter2d(t,e,n,i):null}filterFlat(t,e,n,i){const r=this.getMatch(t,n,i);return(0,o.PcC)(r)&&!this.multiSelect?t:t.filter((t=>e(t,i,n)))}filter2d(t,e,n,i){const r=t.find((t=>(0,o.PcC)(this.getMatch(t,n,i))));return(0,o.PcC)(r)&&!this.multiSelect?t:t.map((t=>this.filterFlat(t,e,n,i)))}getMatch(t,e,n){return t.find((t=>e(t).toLocaleLowerCase()===n.toLocaleLowerCase()))}}.prototype,"filter",null);class zi{constructor(t,e){this.item=t,this.stringify=e}toString(){return this.stringify(this.item)}}const Ri=(0,o.JN4)({expandable:!0,valueContent:""});let Bi=(()=>{class t extends i.s{constructor(){super(...arguments),this.selectedMapper=(t,e)=>e.includes(t)}get stringify(){return this.host.stringify}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵdir=l.lG2({type:t,features:[l.qOj]}),t})();function Hi(t,e){1&t&&l.Hsn(0,1,["*ngIf","isMobile"])}function Vi(t,e){if(1&t&&l.YNc(0,Hi,1,0,"ng-content",7),2&t){const t=l.oxw();l.Q6J("ngIf",t.isMobile)}}function Yi(t,e){1&t&&l.GkF(0,8)}function ji(t,e){if(1&t&&(l.TgZ(0,"span",11),l._uU(1),l.qZA()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}const Zi=function(t){return{$implicit:t}};function $i(t,e){if(1&t&&(l.TgZ(0,"div",9),l.YNc(1,ji,2,1,"span",10),l.qZA()),2&t){const t=l.oxw(),e=l.MAs(2);l.ekj("t-content_fullsize",e.labelOutside),l.xp6(1),l.Q6J("polymorpheusOutlet",t.valueContent)("polymorpheusOutletContext",l.VKq(4,Zi,t.value))}}function Ui(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function Gi(t,e){if(1&t&&(l.TgZ(0,"div",12),l.YNc(1,Ui,2,1,"ng-container",13),l.qZA()),2&t){const t=l.oxw();l.ekj("t-arrow_native-dropdown",t.nativeDropdownMode),l.xp6(1),l.Q6J("polymorpheusOutlet",t.arrow)}}const qi=["*",[["select"]]];class Ji extends o.m6v{constructor(t,e,n,i,r,s,a){super(t,e),this.arrowMode=n,this.itemsHandlers=i,this.options=r,this.controller=s,this.isMobile=a,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.expandable=this.options.expandable,this.search="",this.placeholder="",this.editable=!0,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.valueContent=this.options.valueContent,this.tagValidator=o.YeN,this.rows=1/0,this.searchChange=new l.vpe,this.open=!1,this.valueMapper=(t,e,n)=>n?o.LZ8:t.map((t=>new zi(t,e))),this.disabledItemHandlerWrapper=t=>e=>(0,o.Ajw)(e)||t(e.item)}get size(){return this.controller.size}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.input)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t,e;return!!(null===(t=this.input)||void 0===t?void 0:t.focused)||!!(null===(e=this.hostedDropdown)||void 0===e?void 0:e.focused)}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile&&!this.editable}get computedValue(){return this.computedGroup?o.LZ8:this.value}get searchOrSpace(){return this.computedGroup?" ":this.searchString}get searchString(){return null===this.search?"":this.search}get computedGroup(){return!!this.valueContent&&this.value.length>0&&(!this.focused||!this.editable)}getStringifier(t){return({$implicit:e})=>t(e)}onSpace(t){var e;this.editable||t.preventDefault(),this.readOnly||null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!0)}handleOption(t){const{value:e,identityMatcher:n}=this,i=e.findIndex((e=>n(e,t)));this.value=-1===i?[...e,t]:e.filter(((t,e)=>e!==i)),this.updateSearch(null)}onEnter(t){const{value:e}=this,n=this.accessor?this.accessor.getOptions():[];1===n.length&&(t.preventDefault(),this.value=(0,o.jp1)(e,n[0]),this.updateSearch(null))}onClick({nativeFocusableElement:t}){var e;this.interactive&&t&&(0,o.V8W)(t)&&(null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!this.open))}onInput(t){this.value=t.map((({item:t})=>t))}onValueChange(t){this.value=t}onSearch(t){var e;""!==t&&(null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!0)),this.updateSearch(t)}onActiveZone(t){this.updateFocused(t)}setDisabledState(){var t;super.setDisabledState(),null===(t=this.hostedDropdown)||void 0===t||t.updateOpen(!1)}updateSearch(t){this.search!==t&&(this.search=t,this.searchChange.emit(t))}}Ji.ɵfac=function(t){return new(t||Ji)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(h.Ii),l.Y36(nt.Ys),l.Y36(Ri),l.Y36(s.CsI),l.Y36(o.fLQ))},Ji.ɵcmp=l.Xpm({type:Ji,selectors:[["tui-multi-select"]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,s.Ccr,5),l.Suo(n,Bi,7),l.Suo(n,s.gXS,5,l.Rgc)),2&t){let t;l.iGM(t=l.CRH())&&(e.accessor=t.first),l.iGM(t=l.CRH())&&(e.nativeSelect=t.first),l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(jn,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.hostedDropdown=t.first),l.iGM(t=l.CRH())&&(e.input=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.size),l.ekj("_editable",e.editable))},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",expandable:"expandable",search:"search",placeholder:"placeholder",editable:"editable",disabledItemHandler:"disabledItemHandler",valueContent:"valueContent",tagValidator:"tagValidator",rows:"rows"},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(Ji),(0,o.wBO)(Ji),(0,s.oEG)(Ji),s.Y0],[Wt.yn]),l.qOj],ngContentSelectors:["*","select"],decls:13,vars:32,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-multi-select__input",1,"t-input",3,"disabled","disabledItemHandler","editable","expandable","inputHidden","nativeId","ngModel","placeholder","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","removable","rows","search","tagValidator","tuiTextfieldIcon","click.prevent","keydown.enter","keydown.space","ngModelChange","searchChange"],["inputTag",""],["select",""],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["ngProjectAs","tuiContent","class","t-content",5,["tuiContent"],3,"t-content_fullsize",4,"ngIf"],["icon",""],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-content"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"],["appearance","icon","automation-id","tui-multi-select__arrow","tuiPreventDefault","mousedown","tuiWrapper","",1,"t-arrow"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t){const t=l.EpF();l.F$t(qi),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-input-tag",1,2),l.NdJ("click.prevent",(function(){l.CHM(t);const n=l.MAs(2);return e.onClick(n)}))("keydown.enter",(function(t){return e.onEnter(t)}))("keydown.space",(function(t){return e.onSpace(t)}))("ngModelChange",(function(t){return e.onInput(t)}))("searchChange",(function(t){return e.onSearch(t)})),l.ALo(3,"tuiMapper"),l.ALo(4,"tuiMapper"),l.ALo(5,"tuiMapper"),l.Hsn(6),l.YNc(7,Vi,1,1,"ng-template",null,3,l.W1O),l.YNc(9,Yi,1,0,"ng-container",4),l.YNc(10,$i,2,6,"div",5),l.qZA(),l.YNc(11,Gi,2,3,"ng-template",null,6,l.W1O),l.qZA()}if(2&t){const t=l.MAs(8),n=l.MAs(12);l.Q6J("canOpen",e.interactive&&!e.nativeDropdownMode)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("disabled",e.disabled)("disabledItemHandler",l.xi3(3,22,e.disabledItemHandler,e.disabledItemHandlerWrapper))("editable",!1)("expandable",e.expandable)("inputHidden",!e.editable)("nativeId",e.nativeId)("ngModel",l.Dn7(4,25,e.computedValue,e.valueMapper,e.stringify))("placeholder",e.placeholder)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("removable",!e.nativeDropdownMode)("rows",e.rows)("search",e.searchOrSpace)("tagValidator",l.xi3(5,29,e.tagValidator,e.disabledItemHandlerWrapper))("tuiTextfieldIcon",e.arrow?n:""),l.xp6(8),l.Q6J("ngTemplateOutlet",t),l.xp6(1),l.Q6J("ngIf",e.computedGroup)}},directives:[Kt.o,Xt.e,jn,qt.JJ,qt.On,ne.A,r.tP,r.O5,a.Li,Ct.A,Gt.o],pipes:[yt.c],styles:["[_nghost-%COMP%]{position:relative;display:block;border-radius:var(--tui-radius-m)}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-input[_ngcontent-%COMP%]{border-radius:inherit}[_nghost-%COMP%]:not(._editable):not(._readonly) .t-input[_ngcontent-%COMP%]{cursor:pointer}.t-content[_ngcontent-%COMP%]{display:flex;align-items:center;pointer-events:none;box-sizing:border-box}.t-primitive[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-arrow[_ngcontent-%COMP%]{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0}),(0,p.gn)([o.UMq],Ji.prototype,"getStringifier",null);class Qi{constructor(t){this.component=t}transform(t){const{value:e,identityMatcher:n}=this.component;return t?(0,he.fR)(t)?this.filter(t,e,n):this.filter2d(t,e,n):null}filter2d(t,e,n){return t.map((t=>this.filter(t,e,n)))}filter(t,e,n){return t.filter((t=>e.every((e=>!n(e,t)))))}}Qi.ɵfac=function(t){return new(t||Qi)(l.Y36(Ji,16))},Qi.ɵpipe=l.Yjl({name:"tuiHideSelected",type:Qi,pure:!1}),(0,p.gn)([o.UMq],Qi.prototype,"filter2d",null),(0,p.gn)([o.UMq],Qi.prototype,"filter",null);var Wi=n(87605);let Ki=(()=>{class t extends Qt.TA{get size(){var t;return"l"===this.option.size||"l"===(null===(t=this.dataList)||void 0===t?void 0:t.size)&&!this.option.size?"l":"m"}get selected(){const{value:t}=this.option;return(0,o.PcC)(t)&&(0,o.PcC)(this.value)&&this.value.some((e=>this.matcher(e,t)))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵcmp=l.Xpm({type:t,selectors:[["tui-multi-select-option"]],features:[l.qOj],decls:3,vars:5,consts:[[1,"t-checkbox",3,"size","value"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l._UZ(0,"tui-primitive-checkbox",0),l.ALo(1,"async"),l.GkF(2,1)),2&t&&(l.Q6J("size",e.size)("value",l.lcZ(1,3,e.selected$)),l.xp6(2),l.Q6J("ngTemplateOutlet",e.context.$implicit))},directives:[Wi.r,r.tP],pipes:[r.Ov],styles:["@keyframes retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;overflow:hidden;animation:retrigger 1s}.t-checkbox[_ngcontent-%COMP%]{margin-right:.75rem}"],changeDetection:0}),t})();function Xi(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",4),l.NdJ("click",(function(){l.CHM(t);const e=l.oxw().tuiLet;return l.oxw().onClick(e)})),l.ALo(1,"async"),l._uU(2),l.ALo(3,"async"),l.qZA()}if(2&t){const t=l.oxw().tuiLet,e=l.oxw();let n;l.Q6J("disabled",!!l.lcZ(1,2,e.disabled$)),l.xp6(2),l.hij(" ",null==(n=l.lcZ(3,4,e.multiSelectTexts$))?null:n[t?"none":"all"]," ")}}function tr(t,e){if(1&t&&(l.TgZ(0,"span",1),l.TgZ(1,"span",2),l._uU(2),l.qZA(),l.YNc(3,Xi,4,6,"button",3),l.ALo(4,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(t.label),l.xp6(1),l.Q6J("ngIf",t.label&&!l.lcZ(4,2,t.empty$))}}class er{constructor(t,e,n){this.multiSelectTexts$=t,this.host=e,this.control=n,this.options=o.Mmc,this.label=""}get size(){var t;return(null===(t=this.options.first)||void 0===t?void 0:t.size)||"m"}get empty$(){return(0,o.llR)(this.options).pipe((0,N.U)((({length:t})=>!t)))}get disabled$(){return(0,o.llR)(this.options).pipe((0,N.U)((t=>t.every((({disabled:t})=>t)))))}get value$(){return(0,Ft.aj)([this.items$,this.valueChanges$]).pipe((0,N.U)((([t,e])=>{let n=!1;for(let i=0;ithis.matcher(e,t[i])));if(!r&&n||r&&!n&&i)return null;n=r}return n})))}onClick(t){if(!this.control.control)return;const e=this.control.value||[],{values:n}=this,i=e.filter((t=>n.every((e=>!this.matcher(t,e)))));this.control.control.setValue(t?i:[...i,...n])}get values(){return this.filter((0,o.gDA)(this.options))}get matcher(){return this.host.identityMatcher||o.bgn}get items$(){return(0,o.llR)(this.options).pipe((0,N.U)((t=>t.map((({value:t})=>t)).filter(o.PcC))))}get valueChanges$(){return(0,o.EKY)(this.control).pipe((0,N.U)((t=>t||[])))}filter(t){return t.map((({value:t})=>t)).filter(o.PcC)}}er.ɵfac=function(t){return new(t||er)(l.Y36(nt.E6),l.Y36(s.N1S),l.Y36(qt.a5))},er.ɵcmp=l.Xpm({type:er,selectors:[["tui-opt-group","tuiMultiSelectGroup",""]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.vKW,4),2&t){let t;l.iGM(t=l.CRH())&&(e.options=t)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_label",e.label)},inputs:{label:"label"},attrs:["tuiMultiSelectGroup",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["class","t-wrapper",4,"tuiLet"],[1,"t-wrapper"],[1,"t-label"],["tuiLink","","type","button","class","t-button",3,"disabled","click",4,"ngIf"],["tuiLink","","type","button",1,"t-button",3,"disabled","click"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,tr,5,4,"span",0),l.ALo(1,"async"),l.Hsn(2)),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.value$))},directives:[lt.L,r.O5,st.V],pipes:[r.Ov],styles:["._label[_nghost-%COMP%]:before{display:none}[_nghost-%COMP%]:not(:first-of-type) .t-label[_ngcontent-%COMP%]:not(:empty){padding-top:1.25rem}[_nghost-%COMP%]:not(:first-of-type) .t-button[_ngcontent-%COMP%]{margin-top:1.25rem}.t-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.t-label[_ngcontent-%COMP%]:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button[_ngcontent-%COMP%]{margin:.75rem 1rem 0 auto}"],changeDetection:0}),(0,p.gn)([o.UMq],er.prototype,"empty$",null),(0,p.gn)([o.UMq],er.prototype,"disabled$",null),(0,p.gn)([o.UMq],er.prototype,"value$",null),(0,p.gn)([o.UMq],er.prototype,"items$",null),(0,p.gn)([o.UMq],er.prototype,"valueChanges$",null),(0,p.gn)([o.UMq],er.prototype,"filter",null),new a.Al(Ki);let nr=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})(),ir=(()=>{class t{constructor(t){this.countriesMasks=t}transform(t,e){return e.find((e=>{if(e===Fi.Xi.RU&&/^[78]/.test(t)&&/^(?!880[1-9 ])/.test(t)&&t.length+1===(0,he.fn)(this.countriesMasks,Fi.Xi.RU)||t.startsWith((0,he.zm)(this.countriesMasks,e).replace(o.kUW,""))&&t.length+1===(0,he.fn)(this.countriesMasks,e))switch(e){case Fi.Xi.RU:return(0,he.u7)(t);case Fi.Xi.KZ:return!(0,he.u7)(t);default:return!0}return!1}))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.iN,16))},t.ɵpipe=l.Yjl({name:"tuiToCountryCode",type:t,pure:!0}),t})(),rr=(()=>{class t{transform(t){return new o.F4U(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=l.Yjl({name:"tuiToYear",type:t,pure:!0}),t})();const or={countries:[],countryIsoCode:Fi.Xi.RU},sr=(0,o.JN4)(or);var ar=n(64387),lr=n(38190),ur=n(40330),cr=n(63578),dr=n(99036),hr=n(52846),pr=n(77488);function gr(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(3).onItemClick(e)})),l._UZ(1,"img",11),l.ALo(2,"tuiFlag"),l.TgZ(3,"span",12),l._uU(4),l.qZA(),l.TgZ(5,"span",13),l._uU(6),l.ALo(7,"tuiMapper"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2).ngIf,i=l.oxw();l.xp6(1),l.Q6J("src",l.lcZ(2,3,t),l.LSH),l.xp6(3),l.hij(" ",n[t]," "),l.xp6(2),l.hij(" ",l.xi3(7,5,t,i.isoToCountryCodeMapper)," ")}}function mr(t,e){if(1&t&&(l.TgZ(0,"tui-data-list"),l.YNc(1,gr,8,8,"button",9),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",t.countries)}}function fr(t,e){if(1&t&&(l._UZ(0,"img",14),l.ALo(1,"tuiFlag")),2&t){const t=l.oxw().ngIf,e=l.oxw();l.Q6J("alt",t[e.countryIsoCode])("src",l.lcZ(1,2,e.countryIsoCode),l.LSH)}}function vr(t,e){1&t&&l.GkF(0)}function br(t,e){if(1&t&&(l.TgZ(0,"div",15),l.YNc(1,vr,1,0,"ng-container",16),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.arrow)}}function yr(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-hosted-dropdown",1),l.NdJ("openChange",(function(e){return l.CHM(t),l.oxw().open=e}))("tuiActiveZoneChange",(function(e){return l.CHM(t),l.oxw().onActiveZone(e)})),l.TgZ(1,"div",2),l._UZ(2,"tui-primitive-textfield",3),l.TgZ(3,"tui-input-phone",4),l.NdJ("ngModelChange",(function(e){return l.CHM(t),l.oxw().value=e})),l.Hsn(4),l._UZ(5,"input",5),l.qZA(),l.qZA(),l.YNc(6,mr,2,1,"ng-template",null,6,l.W1O),l.YNc(8,fr,2,4,"ng-template",null,7,l.W1O),l.YNc(10,br,2,1,"ng-template",null,8,l.W1O),l.qZA()}if(2&t){const t=l.MAs(7),e=l.MAs(9),n=l.MAs(11),i=l.oxw();l.Q6J("canOpen",!i.readOnly)("content",t)("open",i.open),l.xp6(2),l.Q6J("disabled",i.disabled)("editable",!1)("focusable",i.focusable)("pseudoFocus",i.open||null)("readOnly",i.readOnly)("tuiTextfieldCustomContent",e)("tuiTextfieldIcon",n)("tuiTextfieldLabelOutside",!0),l.xp6(1),l.Q6J("countryCode",i.inputPhoneCountryCode)("disabled",i.disabled)("focusable",i.focusable)("phoneMaskAfterCountryCode",i.phoneMaskAfterCountryCode)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("pseudoInvalid",i.computedInvalid)("readOnly",i.readOnly)("ngModel",i.value)}}class _r extends o.M$T{constructor(t,e,n,i,r,o,s,a){super(t,e),this.countriesNames$=n,this.countriesMasks=i,this.options=r,this.flagPipe=o,this.extractCountryCodePipe=s,this.textfieldSize=a,this.countries=this.options.countries,this.countryIsoCodeChange=new l.vpe,this.countryIsoCode=this.options.countryIsoCode,this.open=!1,this.arrow=h.SX,this.isoToCountryCodeMapper=t=>(0,he.zm)(this.countriesMasks,t)}set isoCode(t){var e;this.countryIsoCode!==t&&(null===(e=this.inputPhoneComponent)||void 0===e||e.writeValue(this.value),this.countryIsoCode=t)}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.inputPhoneComponent&&!this.computedDisabled?this.inputPhoneComponent.nativeFocusableElement:null}get focused(){return!!this.primitiveTextfield&&this.primitiveTextfield.focused||!!this.inputPhoneComponent&&this.inputPhoneComponent.focused}get inputPhoneCountryCode(){return(0,he.zm)(this.countriesMasks,this.countryIsoCode)}get phoneMaskAfterCountryCode(){const t=this.inputPhoneCountryCode;return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode],t)}get countryFlagPath(){return this.getFlagPath(this.countryIsoCode)}onPaste(t){let e=function(t){var e;return"dataTransfer"in t?(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("text/plain"))||"":(0,o.Nnc)(t)}(t).replace(s.R3j,"");const n=this.extractCountryCodePipe.transform(e,this.countries);n?(n===Fi.Xi.RU&&(e=e.replace(/^8/,"7")),this.updateCountryIsoCode(n),this.value=`${o.kUW}${e}`):this.value=`${this.inputPhoneCountryCode}${e}`.replace(s.AJd,"").slice(0,(0,he.fn)(this.countriesMasks,this.countryIsoCode))}getFlagPath(t){return this.flagPipe.transform(t)}onItemClick(t){this.open=!1,this.updateCountryIsoCode(t),this.cdr.detectChanges();const e=(0,he.fn)(this.countriesMasks,t);this.value.length>e&&(this.value=this.value.slice(0,e)),this.nativeFocusableElement&&this.nativeFocusableElement.focus()}setDisabledState(){super.setDisabledState(),this.close()}isoToCountryCode(t){return(0,he.zm)(this.countriesMasks,t)}onModelChange(t){this.value=t}onActiveZone(t){this.updateFocused(t)}getFallbackValue(){return""}calculateMaskAfterCountryCode(t,e){return t.replace(e,"").trim()}close(){this.open=!1}updateCountryIsoCode(t){this.countryIsoCode=t,this.countryIsoCodeChange.emit(t)}}_r.ɵfac=function(t){return new(t||_r)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.Hw),l.Y36(nt.iN),l.Y36(sr),l.Y36(s.TGm),l.Y36(ir),l.Y36(s.kId))},_r.ɵcmp=l.Xpm({type:_r,selectors:[["tui-input-phone-international"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Di,5),l.Gf(s.ycg,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.inputPhoneComponent=t.first),l.iGM(t=l.CRH())&&(e.primitiveTextfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("paste.capture.prevent.stop",(function(t){return e.onPaste(t)}))("drop.capture.prevent.stop",(function(t){return e.onPaste(t)})),2&t&&l.uIk("data-size",e.size)},inputs:{isoCode:["countryIsoCode","isoCode"],countries:"countries"},outputs:{countryIsoCodeChange:"countryIsoCodeChange"},features:[l._Bn([(0,o.FTc)(_r),(0,o.wBO)(_r),s.TGm,ir],[Wt.yn]),l.qOj],ngContentSelectors:["*"],decls:2,vars:3,consts:[["class","t-hosted-dropdown",3,"canOpen","content","open","openChange","tuiActiveZoneChange",4,"ngIf"],[1,"t-hosted-dropdown",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiGroup",""],["tuiHintContent","","tuiTextfieldPostfix","","tuiTextfieldPrefix","",1,"t-country-select","tui-group__auto-width-item",3,"disabled","editable","focusable","pseudoFocus","readOnly","tuiTextfieldCustomContent","tuiTextfieldIcon","tuiTextfieldLabelOutside"],[1,"t-input-phone","tui-group__auto-width-item",3,"countryCode","disabled","focusable","phoneMaskAfterCountryCode","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","ngModel","ngModelChange"],["autocomplete","new-password","tuiTextfield",""],["dropdown",""],["countryValueContent",""],["icon",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"],["alt","",1,"t-country-item-flag",3,"src"],[1,"t-country-item-name"],[1,"t-country-item-code"],[1,"t-flag",3,"alt","src"],["appearance","icon","tuiWrapper",""],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,yr,12,20,"tui-hosted-dropdown",0),l.ALo(1,"async")),2&t&&l.Q6J("ngIf",l.lcZ(1,1,e.countriesNames$))},directives:[r.O5,Kt.o,Xt.e,Le.g,te.y,ee.B,ar.bZ,lr.T,ur.A,cr.B,ne.A,dr.x,Di,Li,qt.JJ,qt.On,hr.M,wt.q,r.sg,xt.v,Gt.o,a.Li],pipes:[r.Ov,pr.T,yt.c],styles:["[_nghost-%COMP%]{display:block}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted-dropdown[_ngcontent-%COMP%]{display:block}.t-country-select[_ngcontent-%COMP%]{width:5.625rem}.t-country-select[_ngcontent-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}.t-country-select._readonly[_ngcontent-%COMP%] input{cursor:default}.t-country-select[data-size=m][_ngcontent-%COMP%]{width:5.5rem}.t-country-select[data-size=s][_ngcontent-%COMP%]{width:2rem}.t-country-select[data-size=s][_ngcontent-%COMP%] .t-flag[_ngcontent-%COMP%]{margin-left:-1rem}.t-arrow-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;pointer-events:auto}._readonly[_nghost-%COMP%] .t-arrow-icon[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-arrow-icon[_ngcontent-%COMP%]{pointer-events:none}.t-arrow-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-input-phone[_ngcontent-%COMP%]{flex:1}.t-flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem}.t-country-item-name[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:auto}.t-country-item-code[_ngcontent-%COMP%]{color:var(--tui-text-02);margin-right:.25rem}"],changeDetection:0}),(0,p.gn)([o.UMq],_r.prototype,"calculateMaskAfterCountryCode",null);var Cr=n(41699);const wr=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"]);let xr=(()=>{class t{constructor(t,e,n){this.readonly=!0;const i=(0,o.mLY)(t.nativeElement,"touchstart",{passive:!1}),r=(0,o.mLY)(e,"touchmove",{passive:!1}),s=(0,o.mLY)(e,"touchend",{passive:!0}),a=(0,U.T)(i.pipe((0,q.b)((t=>this.preventEvent(t))),(0,N.U)(o.YeN)),s.pipe((0,N.U)(o.IyD)));(0,Ft.aj)([r,a]).pipe((0,F.h)((([t,e])=>e)),(0,B.R)(n)).subscribe((([t])=>this.preventEvent(t)))}preventEvent(t){t.cancelable&&(0,o.LzW)(this.readonly)&&t.preventDefault()}preventKeyboardInteraction(t){wr.has(t.key)&&this.preventEvent(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(r.K0),l.Y36(o.a31,2))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiSlider","","readonly",""]],hostBindings:function(t,e){1&t&&l.NdJ("mousedown",(function(t){return e.preventEvent(t)}))("keydown",(function(t){return e.preventKeyboardInteraction(t)}))},inputs:{readonly:"readonly"},features:[l._Bn([o.a31])]}),t})();n(52707);var Mr=n(5657);let Or=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();var kr=n(76508);class Sr extends o.M$T{constructor(t,e,n){super(t,e),this.el=n,this.min=0,this.max=100,this.step=1,this.size="m",this.segments=1,this.keySteps=null,this.slidersRefs=o.Mmc,this.lastActiveThumb="right"}get nativeFocusableElement(){const[t,e]=this.slidersRefs;return!this.computedDisabled&&this.focusable&&t&&e?100===this.right?e.nativeElement:t.nativeElement:null}get focused(){return(0,o.zb4)(this.el.nativeElement)}get fractionStep(){return this.step/(this.max-this.min)}get computedKeySteps(){return this.computePureKeySteps(this.keySteps,this.min,this.max)}get segmentWidthRatio(){return 1/this.segments}get left(){return this.getPercentageFromValue(this.value[0])}get right(){return 100-this.getPercentageFromValue(this.value[1])}onFocused(t){this.updateFocused(t)}changeByStep(t,e){const[n,i]=this.slidersRefs,r=n.nativeElement,o=i.nativeElement,s=e===this.el.nativeElement?"right"===this.lastActiveThumb:e===o,a=s?o:r,l=s?this.value[1]:this.value[0],u=this.getPercentageFromValue(l)/100+t*this.fractionStep;this.processValue(this.getValueFromFraction(u),s),a&&a.focus()}processValue(t,e){e?this.updateEnd(t):this.updateStart(t),this.lastActiveThumb=e?"right":"left"}getValueFromFraction(t){const e=(0,o.Kiv)((0,o.Mz4)(t,this.fractionStep),0,1);return(0,he.hm)(100*e,this.computedKeySteps)}getPercentageFromValue(t){return(0,he.ox)(t,this.computedKeySteps)}getFallbackValue(){return[0,0]}computePureKeySteps(t,e,n){return t||[[0,e],[100,n]]}updateStart(t){this.value=[Math.min(t,this.value[1]),this.value[1]]}updateEnd(t){this.value=[this.value[0],Math.max(t,this.value[0])]}}Sr.ɵfac=function(t){return new(t||Sr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.SBq))},Sr.ɵcmp=l.Xpm({type:Sr,selectors:[["tui-range"]],viewQuery:function(t,e){if(1&t&&l.Gf(Mr.i,5,l.SBq),2&t){let t;l.iGM(t=l.CRH())&&(e.slidersRefs=t)}},hostVars:7,hostBindings:function(t,e){1&t&&l.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))("keydown.arrowUp.prevent",(function(t){return e.changeByStep(1,t.target)}))("keydown.arrowRight.prevent",(function(t){return e.changeByStep(1,t.target)}))("keydown.arrowLeft.prevent",(function(t){return e.changeByStep(-1,t.target)}))("keydown.arrowDown.prevent",(function(t){return e.changeByStep(-1,t.target)})),2&t&&(l.uIk("tabindex",-1)("aria-disabled",e.computedDisabled)("data-size",e.size),l.Udp("--left",e.left,"%")("--right",e.right,"%"))},inputs:{min:"min",max:"max",step:"step",size:"size",segments:"segments",keySteps:"keySteps"},features:[l.qOj],decls:3,vars:18,consts:[[1,"t-track"],["automation-id","tui-range__left","readonly","","step","any","tuiSlider","","type","range",1,"t-thumb",3,"disabled","keySteps","max","min","ngModel","size","tuiFocusable"],["automation-id","tui-range__right","readonly","","step","any","tuiSlider","","type","range",1,"t-thumb",3,"disabled","keySteps","max","min","ngModel","size","tuiFocusable"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"input",1),l._UZ(2,"input",2),l.qZA()),2&t&&(l.Udp("--bg-size-ratio",1-e.segmentWidthRatio)("--segment-width",100*e.segmentWidthRatio,"%"),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("keySteps",e.computedKeySteps)("max",e.max)("min",e.min)("ngModel",e.value[0])("size",e.size)("tuiFocusable",e.focusable),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("keySteps",e.computedKeySteps)("max",e.max)("min",e.min)("ngModel",e.value[1])("size",e.size)("tuiFocusable",e.focusable))},directives:[xr,Cr.t,Mr.i,qt.eT,qt.Fj,qt.JJ,qt.On,at.t],styles:['[_nghost-%COMP%]{position:relative;display:block;height:.125rem;border-radius:var(--tui-radius-m);background:var(--tui-base-03);cursor:pointer;outline:none;margin:.4375rem 0;touch-action:pan-x}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:after{content:"";position:absolute;top:-.4375rem;bottom:-.4375rem;width:100%}._disabled[_nghost-%COMP%]{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]{position:relative;margin:0 .25rem;height:100%}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:var(--left);right:var(--right);height:100%;background:var(--tui-primary);margin:0 calc(-.5rem / 2 - 1px)}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";left:.125rem;right:.375rem;background-image:repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]{position:relative;margin:0 .375rem;height:100%}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:var(--left);right:var(--right);height:100%;background:var(--tui-primary);margin:0 calc(-.75rem / 2 - 1px)}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";left:.25rem;right:.5rem;background-image:repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}.t-thumb[_ngcontent-%COMP%]{pointer-events:none;position:absolute;top:.0625rem;left:0;right:0;z-index:1;transform:translateY(-50%);margin:0}.t-thumb[_ngcontent-%COMP%]::-webkit-slider-thumb{pointer-events:all}.t-thumb[_ngcontent-%COMP%]::-moz-range-thumb{pointer-events:all}input[type=range].t-thumb[_ngcontent-%COMP%]::-webkit-slider-runnable-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-moz-range-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-moz-range-progress{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-ms-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-ms-fill-lower{background:transparent}.t-thumb[_ngcontent-%COMP%]:last-of-type{--tui-slider-thumb-transform: translateX(50%) translateX(1px)}.t-thumb[_ngcontent-%COMP%]:first-of-type{--tui-slider-thumb-transform: translateX(-50%) translateX(-1px)}._disabled[_nghost-%COMP%] .t-thumb[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),(0,p.gn)([o.UMq],Sr.prototype,"computePureKeySteps",null);var Pr=n(79196);let Tr=(()=>{class t{constructor(t,e,n,i){let r;this.doc=t,this.el=e,this.range=n,this.pointerDown$=(0,U.T)((0,o.mLY)(this.el.nativeElement,"touchstart",{passive:!0}).pipe((0,F.h)((({touches:t})=>1===t.length)),(0,N.U)((({touches:t})=>t[0]))),(0,o.mLY)(this.el.nativeElement,"mousedown",{passive:!0})),this.pointerMove$=(0,U.T)((0,o.mLY)(this.doc,"touchmove").pipe((0,F.h)((({touches:t})=>1===t.length)),(0,N.U)((({touches:t})=>t[0]))),(0,o.mLY)(this.doc,"mousemove")),this.pointerUp$=(0,U.T)((0,o.mLY)(this.doc,"touchend",{passive:!0}),(0,o.mLY)(this.doc,"mouseup",{passive:!0})),this.activeThumbChange=new l.vpe,this.pointerDown$.pipe((0,q.b)((({clientX:t,target:n})=>{r=this.detectActiveThumb(t,n),this.activeThumbChange.emit(r),this.range.focusable&&e.nativeElement.focus()})),(0,L.w)((t=>this.pointerMove$.pipe((0,Re.O)(t)))),(0,N.U)((({clientX:t})=>this.getFractionFromEvents(t))),(0,B.R)(this.pointerUp$),(0,Pr.r)(),(0,B.R)(i)).subscribe((t=>{const e=this.range.getValueFromFraction(t);this.range.processValue(e,"right"===r)}))}getFractionFromEvents(t){const e=this.el.nativeElement.getBoundingClientRect(),n=t-e.left,i=e.width;return(0,o.Kiv)((0,o.FGw)(n/i,vt.bF),0,1)}detectActiveThumb(t,e){const[n,i]=this.range.slidersRefs;switch(e){case n.nativeElement:return"left";case i.nativeElement:return"right";default:return this.findNearestActiveThumb(t)}}findNearestActiveThumb(t){const e=this.getFractionFromEvents(t),n=100*e-this.range.left,i=100*e-100+this.range.right;return Math.abs(n)>Math.abs(i)||i>0||0===this.range.left&&100===this.range.right?"right":"left"}}return t.ɵfac=function(e){return new(e||t)(l.Y36(r.K0),l.Y36(l.SBq),l.Y36(Sr),l.Y36(o.a31,2))},t.ɵdir=l.lG2({type:t,selectors:[["tui-range"]],outputs:{activeThumbChange:"activeThumbChange"},features:[l._Bn([o.a31])]}),t})();var Ar=n(47307);function Er(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}const Ir=function(t){return{$implicit:t}};function Dr(t,e){if(1&t&&(l.TgZ(0,"div",5),l.YNc(1,Er,2,1,"ng-container",6),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.leftValueContent)("polymorpheusOutletContext",l.VKq(2,Ir,t.value[0]))}}function Lr(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function Fr(t,e){if(1&t&&(l.TgZ(0,"div",5),l.YNc(1,Lr,2,1,"ng-container",6),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.rightValueContent)("polymorpheusOutletContext",l.VKq(2,Ir,t.value[1]))}}class Nr extends o.M$T{constructor(t,e,n,i,r){super(t,e),this.isMobile=n,this.el=i,this.controller=r,this.inputNumberRefs=o.Mmc,this.rangeRef=null,this.min=0,this.max=100,this.quantum=1,this.steps=0,this.segments=1,this.keySteps=null,this.pluralize=null,this.leftTextfieldValue=this.safeCurrentValue[0],this.rightTextfieldValue=this.safeCurrentValue[1],this.lastActiveSide="left"}get leftFocusableElement(){var t;return(null===(t=this.inputNumberRefs.first)||void 0===t?void 0:t.nativeFocusableElement)||null}get rightFocusableElement(){var t;return(null===(t=this.inputNumberRefs.last)||void 0===t?void 0:t.nativeFocusableElement)||null}get nativeFocusableElement(){return this.disabled?null:this.leftFocusableElement||this.rightFocusableElement}get focused(){return(0,o.zb4)(this.el.nativeElement)}get appearance(){return this.controller.appearance}get showLeftValueContent(){var t;return Boolean(this.leftValueContent&&!(0,o.V8W)(this.leftFocusableElement)&&!((null===(t=this.rangeRef)||void 0===t?void 0:t.focused)&&"left"===this.lastActiveSide))}get showRightValueContent(){var t;return Boolean(this.rightValueContent&&!(0,o.V8W)(this.rightFocusableElement)&&!((null===(t=this.rangeRef)||void 0===t?void 0:t.focused)&&"right"===this.lastActiveSide))}get precision(){return(0,s.LfO)(this.quantum).length}get decimal(){return this.precision?"not-zero":"never"}get computedSteps(){return this.steps||(this.max-this.min)/this.quantum}get step(){return(this.max-this.min)/this.computedSteps}computeKeySteps(t,e,n){return t||[[0,e],[100,n]]}onActiveZone(t){this.updateFocused(t)}onTextInputFocused(t){t||this.updateTextfieldValues(this.value)}changeByStep(t,[e,n]){if(this.readOnly)return;t.preventDefault();const i=this.valueGuard([this.value[0]+e*this.step,this.value[1]+n*this.step]);i[0]===this.value[0]&&i[1]===this.value[1]||this.onExternalValueUpdate(i)}onInputLeft(t){this.safelyUpdateValue([null!=t?t:this.safeCurrentValue[0],this.value[1]])}onInputRight(t){this.safelyUpdateValue([this.value[0],null!=t?t:this.safeCurrentValue[1]])}onExternalValueUpdate(t){this.safelyUpdateValue(t),this.updateTextfieldValues(this.value)}focusToTextInput(){const t="left"===this.lastActiveSide?this.leftFocusableElement:this.rightFocusableElement;!this.isMobile&&t&&t.focus()}onActiveThumbChange(t){this.lastActiveSide=t}writeValue(t){super.writeValue(t),this.updateTextfieldValues(this.value)}getFallbackValue(){return[0,0]}safelyUpdateValue(t){this.value=this.valueGuard(t)}valueGuard([t,e]){const n=this.calibrate(t),i=this.calibrate(e);return[Math.min(n,this.value[1]),Math.max(i,this.value[0])]}calibrate(t){const e=(0,o.FGw)(Math.round(t/this.quantum)*this.quantum,vt.bF);return(0,o.Kiv)(e,this.min,this.max)}updateTextfieldValues([t,e]){this.leftTextfieldValue=t,this.rightTextfieldValue=e}}function zr(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}Nr.ɵfac=function(t){return new(t||Nr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.fLQ),l.Y36(l.SBq),l.Y36(s.CsI))},Nr.ɵcmp=l.Xpm({type:Nr,selectors:[["tui-input-range"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Sr,5),l.Gf(Ke.q,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.rangeRef=t.first),l.iGM(t=l.CRH())&&(e.inputNumberRefs=t)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.controller.size),l.ekj("_label-outside",e.controller.labelOutside))},inputs:{min:"min",max:"max",quantum:"quantum",steps:"steps",segments:"segments",keySteps:"keySteps",leftValueContent:"leftValueContent",rightValueContent:"rightValueContent",pluralize:"pluralize"},features:[l._Bn([(0,o.FTc)(Nr),(0,o.wBO)(Nr),s.Y0]),l.qOj],ngContentSelectors:["*"],decls:9,vars:38,consts:[["tuiWrapper","",1,"t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange"],["automation-id","tui-input-range__left-input","tuiTextfieldAppearance","none",1,"t-left",3,"decimal","disabled","max","min","precision","readOnly","tuiTextfieldPostfix","ngModel","ngModelChange","focusedChange","keydown.arrowDown","keydown.arrowUp"],["ngProjectAs","tuiContent",5,["tuiContent"],4,"ngIf"],["automation-id","tui-input-range__right-input","tuiTextfieldAppearance","none",1,"t-right",3,"decimal","disabled","max","min","precision","readOnly","tuiTextfieldPostfix","ngModel","ngModelChange","focusedChange","keydown.arrowDown","keydown.arrowUp"],[1,"t-range",3,"disabled","focusable","keySteps","max","min","ngModel","segments","step","activeThumbChange","ngModelChange","tuiPressedChange"],["ngProjectAs","tuiContent",5,["tuiContent"]],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0),l.NdJ("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-input-number",1),l.NdJ("ngModelChange",(function(t){return e.leftTextfieldValue=t}))("focusedChange",(function(t){return e.onTextInputFocused(t)}))("keydown.arrowDown",(function(t){return e.changeByStep(t,[-1,0])}))("keydown.arrowUp",(function(t){return e.changeByStep(t,[1,0])}))("ngModelChange",(function(t){return e.onInputLeft(t)})),l.ALo(2,"i18nPlural"),l.Hsn(3),l.YNc(4,Dr,2,4,"div",2),l.qZA(),l.TgZ(5,"tui-input-number",3),l.NdJ("ngModelChange",(function(t){return e.rightTextfieldValue=t}))("focusedChange",(function(t){return e.onTextInputFocused(t)}))("keydown.arrowDown",(function(t){return e.changeByStep(t,[0,-1])}))("keydown.arrowUp",(function(t){return e.changeByStep(t,[0,1])}))("ngModelChange",(function(t){return e.onInputRight(t)})),l.ALo(6,"i18nPlural"),l.YNc(7,Fr,2,4,"div",2),l.qZA(),l.TgZ(8,"tui-range",4),l.NdJ("activeThumbChange",(function(t){return e.onActiveThumbChange(t)}))("ngModelChange",(function(t){return e.onExternalValueUpdate(t)}))("tuiPressedChange",(function(){return e.focusToTextInput()})),l.qZA(),l.qZA()),2&t&&(l.Q6J("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),l.xp6(1),l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.value[1])("min",e.min)("precision",e.precision)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.pluralize&&!e.showLeftValueContent?l.xi3(2,32,e.value[0],e.pluralize):"")("ngModel",e.leftTextfieldValue),l.xp6(3),l.Q6J("ngIf",e.showLeftValueContent),l.xp6(1),l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.max)("min",e.value[0])("precision",e.precision)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.pluralize&&!e.showRightValueContent?l.xi3(6,35,e.value[1],e.pluralize):"")("ngModel",e.rightTextfieldValue),l.xp6(2),l.Q6J("ngIf",e.showRightValueContent),l.xp6(1),l.Q6J("disabled",e.readOnly||e.disabled)("focusable",!1)("keySteps",e.computeKeySteps(e.keySteps,e.min,e.max))("max",e.max)("min",e.min)("ngModel",e.value)("segments",e.segments)("step",e.step))},directives:[Gt.o,Xt.e,Ke.q,Xe.g,Ar.q,lr.T,qt.JJ,qt.On,r.O5,Sr,Tr,ct.n,a.Li],pipes:[r.Gx],styles:[".t-wrapper[_ngcontent-%COMP%]{position:relative}.t-left[_ngcontent-%COMP%]{width:100%}.t-right[_ngcontent-%COMP%]{position:absolute;right:0;top:0;display:flex;width:50%;height:100%;text-align:right}[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}.t-range[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;z-index:1;margin:-.125rem 0 0;background:transparent}"],changeDetection:0}),(0,p.gn)([o.UMq],Nr.prototype,"computeKeySteps",null);const Rr=function(t){return{$implicit:t}};function Br(t,e){if(1&t&&(l.TgZ(0,"div",3),l.YNc(1,zr,2,1,"ng-container",4),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.valueContent)("polymorpheusOutletContext",l.VKq(2,Rr,t.value))}}class Hr extends o.M$T{constructor(t,e,n){super(t,e),this.controller=n,this.min=0,this.max=100,this.quantum=1,this.steps=0,this.segments=1,this.keySteps=null,this.textfieldPrefix="",this.textfieldPostfix="",this.textfieldValue=this.safeCurrentValue}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get nativeFocusableElement(){var t;return!(null===(t=this.inputNumberRef)||void 0===t?void 0:t.nativeFocusableElement)||this.computedDisabled?null:this.inputNumberRef.nativeFocusableElement}get focused(){var t;return(0,o.V8W)(this.nativeFocusableElement)||(0,o.V8W)((null===(t=this.sliderRef)||void 0===t?void 0:t.nativeElement)||null)}get computedSteps(){return this.steps||(this.max-this.min)/this.quantum}get precision(){return(0,s.LfO)(this.quantum).length}get decimal(){return this.precision?"not-zero":"never"}get showValueContent(){return Boolean(this.valueContent&&!this.focused)}get step(){return(this.max-this.min)/this.computedSteps}computeKeySteps(t,e,n){return t||[[0,e],[100,n]]}focusTextInput(){var t;const e=null===(t=this.inputNumberRef)||void 0===t?void 0:t.nativeFocusableElement;e&&e.focus()}safelyUpdateValue(t){this.value=this.valueGuard(null!=t?t:this.safeCurrentValue)}onVerticalArrowKeyDown(t){if(this.readOnly||!this.step)return;const e=this.value+t*this.step;e!==this.value&&(this.safelyUpdateValue(e),this.textfieldValue=this.value)}onSliderChange(t){this.safelyUpdateValue(t),this.textfieldValue=this.value}onFocused(t){const{value:e,textfieldValue:n}=this;t||n===e||(this.textfieldValue=e),this.updateFocused(t)}writeValue(t){super.writeValue(t),this.textfieldValue=this.value}getFallbackValue(){return 0}valueGuard(t){const e=(0,o.FGw)(Math.round(t/this.quantum)*this.quantum,vt.bF);return(0,o.Kiv)(e,this.min,this.max)}}Hr.ɵfac=function(t){return new(t||Hr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(s.CsI))},Hr.ɵcmp=l.Xpm({type:Hr,selectors:[["tui-input-slider"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Ke.q,5),l.Gf(Mr.i,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.inputNumberRef=t.first),l.iGM(t=l.CRH())&&(e.sliderRef=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.controller.size),l.ekj("_label-outside",e.controller.labelOutside))},inputs:{min:"min",max:"max",quantum:"quantum",steps:"steps",segments:"segments",keySteps:"keySteps",valueContent:"valueContent",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"]},features:[l._Bn([(0,o.FTc)(Hr),(0,o.wBO)(Hr),(0,kr.OF)({trackColor:"transparent"}),s.Y0]),l.qOj],ngContentSelectors:["*"],decls:4,vars:20,consts:[[3,"decimal","disabled","max","min","precision","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","tuiTextfieldPostfix","tuiTextfieldPrefix","ngModel","ngModelChange","focusedChange","keydown.arrowDown.prevent","keydown.arrowUp.prevent"],["automation-id","tui-input-slider__value-content","ngProjectAs","tuiContent",5,["tuiContent"],4,"ngIf"],["tuiSlider","","type","range",3,"disabled","keySteps","max","ngModel","segments","tuiFocusable","click","ngModelChange"],["automation-id","tui-input-slider__value-content","ngProjectAs","tuiContent",5,["tuiContent"]],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"tui-input-number",0),l.NdJ("ngModelChange",(function(t){return e.textfieldValue=t}))("focusedChange",(function(t){return e.onFocused(t)}))("keydown.arrowDown.prevent",(function(){return e.onVerticalArrowKeyDown(-1)}))("keydown.arrowUp.prevent",(function(){return e.onVerticalArrowKeyDown(1)}))("ngModelChange",(function(t){return e.safelyUpdateValue(t)})),l.Hsn(1),l.YNc(2,Br,2,4,"div",1),l.qZA(),l.TgZ(3,"input",2),l.NdJ("click",(function(){return e.focusTextInput()}))("ngModelChange",(function(t){return e.onSliderChange(t)})),l.qZA()),2&t&&(l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.max)("min",e.min)("precision",e.precision)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.pseudoInvalid)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.showValueContent?"":e.postfix)("tuiTextfieldPrefix",e.showValueContent?"":e.prefix)("ngModel",e.textfieldValue),l.xp6(2),l.Q6J("ngIf",e.showValueContent),l.xp6(1),l.Q6J("disabled",e.readOnly||e.computedDisabled)("keySteps",e.computeKeySteps(e.keySteps,e.min,e.max))("max",e.computedSteps)("ngModel",e.value)("segments",e.segments)("tuiFocusable",!1))},directives:[Ke.q,Xe.g,lr.T,ur.A,qt.JJ,qt.On,r.O5,Cr.t,Mr.i,qt.eT,qt.Fj,at.t,a.Li],styles:["[_nghost-%COMP%]{position:relative;display:block;height:-webkit-max-content;height:max-content;isolation:isolate}input[type=range][_ngcontent-%COMP%]{position:absolute;top:100%;left:calc(var(--tui-radius-m) / 2);right:0;width:calc(100% - calc(var(--tui-radius-m) / 2));box-sizing:border-box;height:1rem;margin:-.5625rem 0 0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}"],changeDetection:0}),(0,p.gn)([o.UMq],Hr.prototype,"computeKeySteps",null);const Vr={icon:({$implicit:t})=>"s"===t?"tuiIconClock":"tuiIconClockLarge",mode:"HH:MM",postfix:"",maxValues:vt.bM,itemSize:"m",nativePicker:!1},Yr=(0,o.JN4)(Vr),jr=["tuiTime",""];function Zr(t,e){if(1&t&&l._UZ(0,"option",3),2&t){const t=e.$implicit;l.s9C("value",t)}}function $r(t,e){if(1&t&&(l.TgZ(0,"datalist",1),l.YNc(1,Zr,1,1,"option",2),l.qZA()),2&t){const t=l.oxw();l.Q6J("id",t.autoIdString),l.xp6(1),l.Q6J("ngForOf",t.items)}}let Ur=(()=>{class t{constructor(t,e){this.host=t,this.autoIdString=e.generate()}get items(){return this.host.items.map((t=>t.toString(this.host.mode)))}get value(){return this.host.value.length===this.host.mode.length?this.host.value:""}get step(){switch(this.host.mode){case"HH:MM:SS":return 1;case"HH:MM:SS.MSS":return.001;default:return 60}}onChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o),l.Y36(o.llV))},t.ɵcmp=l.Xpm({type:t,selectors:[["input","tuiTime",""]],hostAttrs:["type","time"],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("change.stop",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&(l.Ikx("tabIndex",-1)("value",e.value)("step",e.step),l.uIk("list",e.autoIdString))},attrs:jr,decls:1,vars:1,consts:[[3,"id",4,"ngIf"],[3,"id"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&l.YNc(0,$r,2,2,"datalist",0),2&t&&l.Q6J("ngIf",e.items.length)},directives:[r.O5,r.sg],styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),t})();function Gr(t,e){if(1&t&&(l.TgZ(0,"button",7),l._uU(1),l.qZA()),2&t){const t=e.$implicit,n=l.oxw(2);l.Q6J("disabled",n.disabledItemHandler(t))("value",t),l.xp6(1),l.hij(" ",t," ")}}function qr(t,e){if(1&t&&(l.TgZ(0,"tui-data-list",5),l.YNc(1,Gr,2,3,"button",6),l.qZA()),2&t){const t=l.oxw();l.Q6J("size",t.itemSize),l.xp6(1),l.Q6J("ngForOf",t.filtered)}}function Jr(t,e){if(1&t&&l._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Qr(t,e){1&t&&l._UZ(0,"input",11)}const Wr=function(t){return{$implicit:t}};function Kr(t,e){if(1&t&&(l.YNc(0,Jr,1,1,"tui-svg",8),l.YNc(1,Qr,1,0,"input",9)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(3,Wr,t.size)),l.xp6(1),l.Q6J("ngIf",t.showNativePicker)}}class Xr extends o.F9l{constructor(t,e,n,i,r,s,a){super(t,e),this.timeTexts$=n,this.options=i,this.isMobile=r,this.isIos=s,this.textfieldSize=a,this.disabledItemHandler=o.IyD,this.items=[],this.itemSize=this.options.itemSize,this.strict=!1,this.mode=this.options.mode,this.postfix=this.options.postfix,this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get canOpen(){return this.interactive&&!!this.filtered.length}get filtered(){return this.filter(this.items,this.mode,this.computedSearch)}get showNativePicker(){return this.nativePicker&&(!this.isIos||"HH:MM"===this.mode&&!this.items.length)}get nativeDatalist(){return this.nativePicker&&!this.isIos}get maskOptions(){return this.calculateMask(this.mode)}get computedValue(){return this.value?this.value.toString(this.mode):this.nativeValue}get computedSearch(){return this.computedValue.length!==this.mode.length?this.computedValue:""}get innerPseudoFocused(){return!1!==this.pseudoFocus&&(!!(this.open&&this.canOpen||this.computedFocused)||null)}get icon(){return this.options.icon}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getFiller$(t){return this.timeTexts$.pipe((0,N.U)((e=>e[t])))}onClick(){this.open=!this.open}onValueChange(t){this.open=!!this.items.length,this.control&&this.control.updateValueAndValidity({emitEvent:!1});const e=this.getMatch(t);if(void 0!==e)return void(this.value=e);if(t.length!==this.mode.length)return void(this.value=null);const n=o.qDo.fromString(t);this.value=this.strict?this.findNearestTimeFromItems(n):n}onFocused(t){this.updateFocused(t),t||null!==this.value||""===this.nativeValue||"HH:MM"===this.mode||(this.value=o.qDo.fromString(this.nativeValue),(0,ze.H)(0).pipe((0,B.R)(this.destroy$)).subscribe((()=>{(this.nativeValue.endsWith(".")||this.nativeValue.endsWith(":"))&&(this.nativeValue=this.nativeValue.slice(0,-1))})))}onArrowUp(t){this.items.length||this.processArrow(t,1)}onArrowDown(t){this.items.length||this.processArrow(t,-1)}handleOption(t){this.focusInput(),this.value=t}onOpen(t){this.open=t}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get nativePicker(){return!!this.options.nativePicker&&this.isMobile}calculateMask(t){const{HH:e,MM:n,SS:i,MS:r}=this.options.maxValues;return(0,We.rC)({mode:t,timeSegmentMaxValues:{hours:e,minutes:n,seconds:i,milliseconds:r}})}filter(t,e,n){return t.filter((t=>t.toString(e).includes(n)))}findNearestTimeFromItems(t){return this.items.reduce(((e,n)=>Math.abs(n.valueOf()-t.valueOf())(0,o.zyr)(e,t)))}close(){this.open=!1}processArrow(t,e){const{target:n}=t;if(this.readOnly||!(0,o.veZ)(n)||!(0,o.LsU)(n))return;const i=n.selectionStart||0;this.shiftTime(this.calculateShift(i,e)),n.setSelectionRange(i,i),t.preventDefault()}calculateShift(t,e){return t<=2?{hours:e}:t<=5?{minutes:e}:t<=8?{seconds:e}:{ms:e}}shiftTime(t){if(null===this.value)return;const e=this.value.shift(t);this.nativeValue=e.toString(this.mode),this.value=e}focusInput(t=!1){this.nativeFocusableElement&&(this.nativeFocusableElement.focus({preventScroll:t}),this.close())}}function to(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"tui-scrollbar",4),l.TgZ(2,"tui-primitive-year-picker",5),l.NdJ("mousedown.prevent.silent",(function(){return 0}))("yearClick",(function(e){return l.CHM(t),l.oxw().onYearClick(e)})),l.ALo(3,"tuiToYear"),l.ALo(4,"tuiToYear"),l.ALo(5,"tuiToYear"),l.ALo(6,"tuiToYear"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.Q6J("disabledItemHandler",t.disabledItemHandler)("initialItem",l.lcZ(3,5,t.value||t.initialItem))("max",l.lcZ(4,7,t.computedMax))("min",l.lcZ(5,9,t.computedMin))("value",null===t.value?null:l.lcZ(6,11,t.value))}}Xr.ɵfac=function(t){return new(t||Xr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.Yq),l.Y36(Yr),l.Y36(o.fLQ),l.Y36(o.FAH),l.Y36(s.kId))},Xr.ɵcmp=l.Xpm({type:Xr,selectors:[["tui-input-time"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{disabledItemHandler:"disabledItemHandler",items:"items",itemSize:"itemSize",strict:"strict",mode:"mode",postfix:"postfix"},features:[l._Bn([(0,o.FTc)(Xr),(0,o.wBO)(Xr),(0,s.oEG)(Xr),(0,s.P7F)(Qt.Q4)],[Wt.yn]),l.qOj],ngContentSelectors:["*"],decls:9,vars:18,consts:[[1,"t-wrapper",3,"canOpen","content","open","focusedChange","openChange"],["tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","postfix","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","keydown.arrowDown","keydown.arrowUp","valueChange"],["inputmode","numeric","tuiTextfield",""],["dropdownContent",""],["iconContent",""],["automation-id","tui-input-time__dropdown",3,"size"],["automation-id","tui-input-time__item","tuiOption","",3,"disabled","value",4,"ngFor","ngForOf"],["automation-id","tui-input-time__item","tuiOption","",3,"disabled","value"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiTime","",4,"ngIf"],["appearance","icon","tuiWrapper","",3,"src"],["tuiTime",""]],template:function(t,e){if(1&t&&(l.F$t(),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("focusedChange",(function(t){return e.onFocused(t)}))("openChange",(function(t){return e.onOpen(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("keydown.arrowDown",(function(t){return e.onArrowDown(t)}))("keydown.arrowUp",(function(t){return e.onArrowUp(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.ALo(2,"async"),l.Hsn(3),l._UZ(4,"input",2),l.qZA(),l.qZA(),l.YNc(5,qr,2,2,"ng-template",null,3,l.W1O),l.YNc(7,Kr,2,5,"ng-template",null,4,l.W1O)),2&t){const t=l.MAs(6),n=l.MAs(8);l.Q6J("canOpen",e.canOpen&&!e.nativeDatalist)("content",t)("open",e.canOpen&&e.open),l.xp6(1),l.Q6J("disabled",e.disabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("postfix",e.postfix)("pseudoActive",e.pseudoActive)("pseudoFocus",e.innerPseudoFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",l.lcZ(2,16,e.getFiller$(e.mode))||"")("tuiTextfieldIcon",n)("value",e.computedValue)}},directives:[Kt.o,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,hr.M,wt.q,r.sg,xt.v,a.Li,r.O5,c.P,Gt.o,Ur],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],Xr.prototype,"getFiller$",null),(0,p.gn)([o.UMq],Xr.prototype,"calculateMask",null),(0,p.gn)([o.UMq],Xr.prototype,"filter",null);const eo=["*",[["input"]]],no=/^\d{0,4}$/;class io extends o.F9l{constructor(t,e,n,i){super(t,e),this.options=n,this.textfieldSize=i,this.min=this.options.min.year,this.max=this.options.max.year,this.disabledItemHandler=o.IyD,this.open=!1,this.nativeValue="",this.initialItem=(new Date).getFullYear()}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:this.options.min.year}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:this.options.max.year}get nativeFocusableElement(){var t;return(null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get calendarIcon(){return this.options.icon}getMaskOptions(t,e){return Object.assign(Object.assign({},(0,We.f8)({min:t,max:e,thousandSeparator:""})),{mask:no})}onValueChange(t){this.value=t?Number(t):null}onYearClick({year:t}){this.value=t,this.updateNativeValue(t),this.onOpenChange(!1)}onFocused(t){this.updateFocused(t)}onOpenChange(t){this.open=t}toggle(){this.open=!this.open}writeValue(t){super.writeValue(t),this.updateNativeValue(t)}updateNativeValue(t){this.nativeValue=(null==t?void 0:t.toString())||""}}io.ɵfac=function(t){return new(t||io)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.WB),l.Y36(s.kId))},io.ɵcmp=l.Xpm({type:io,selectors:[["tui-input-year"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},features:[l._Bn([(0,o.FTc)(io),(0,o.wBO)(io)]),l.qOj],ngContentSelectors:["*","input"],decls:6,vars:12,consts:[[1,"t-hosted",3,"canOpen","content","open","click","openChange"],[1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","valueChange","focusedChange"],["dropdown",""],[1,"t-container"],[1,"t-scrollbar"],[3,"disabledItemHandler","initialItem","max","min","value","mousedown.prevent.silent","yearClick"]],template:function(t,e){if(1&t&&(l.F$t(eo),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("click",(function(){return e.toggle()}))("openChange",(function(t){return e.onOpenChange(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("valueChange",(function(t){return e.nativeValue=t}))("focusedChange",(function(t){return e.onFocused(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.Hsn(2),l.Hsn(3,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(4,to,7,13,"ng-template",null,2,l.W1O),l.qZA()),2&t){const t=l.MAs(5);l.Q6J("canOpen",e.interactive)("content",t)("open",e.open&&e.interactive),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("invalid",e.computedInvalid)("maskito",e.getMaskOptions(e.computedMin,e.computedMax))("nativeId",e.nativeId)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.calendarIcon)("value",e.nativeValue)}},directives:[Kt.o,te.y,ee.B,tn.ro,ne.A,it.I,rt.T],pipes:[rr],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-container[_ngcontent-%COMP%]{width:15.75rem;padding:1rem 1.125rem}.t-scrollbar[_ngcontent-%COMP%]{max-height:18.25rem;width:16.875rem}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],io.prototype,"getMaskOptions",null);let ro=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();function oo(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function so(t,e){if(1&t&&l._UZ(0,"iframe",7),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t,l.uOi)}}(0,o.JN4)({showHint:!0}),n(53874),n(29577),n(46648);let ao=(()=>{class t{constructor(t,e,n,i){this.animation=t,this.closeWord$=e,this.icons=n,this.context=i}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.PwD),l.Y36(s.U0F),l.Y36(s.Gs9),l.Y36(a.yf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-pdf-viewer"]],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,l.evT),2&t&&l.d8E("@tuiFadeIn",e.animation)("@tuiSlideInTop",e.animation)},decls:9,vars:9,consts:[[1,"t-header"],["automation-id","tui-pdf-viewer__label",1,"t-title"],[1,"t-actions"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[1,"t-content"],["title","pdf","class","t-iframe",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["title","pdf",1,"t-iframe",3,"src"]],template:function(t,e){1&t&&(l.TgZ(0,"header",0),l.TgZ(1,"h2",1),l._uU(2),l.qZA(),l.TgZ(3,"div",2),l.YNc(4,oo,2,1,"ng-container",3),l.qZA(),l.TgZ(5,"button",4),l.NdJ("click",(function(){return e.context.$implicit.complete()})),l.ALo(6,"async"),l.qZA(),l.qZA(),l.TgZ(7,"section",5),l.YNc(8,so,1,1,"iframe",6),l.qZA()),2&t&&(l.xp6(2),l.hij(" ",e.context.label," "),l.xp6(2),l.Q6J("polymorpheusOutlet",e.context.actions)("polymorpheusOutletContext",e.context),l.xp6(1),l.Q6J("icon",e.icons.close)("title",l.lcZ(6,7,e.closeWord$)),l.xp6(3),l.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[a.Li,fe.v],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;box-sizing:border-box;color:var(--tui-text-01-night);background:#333639}.t-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:4rem;padding:0 1rem 0 1.5625rem;box-shadow:inset 0 -1px #535659}.t-title[_ngcontent-%COMP%]{margin:0;font:var(--tui-font-text-m);white-space:nowrap;text-overflow:ellipsis;padding-right:.3125rem;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;margin-left:auto}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:.75rem;color:var(--tui-text-01-night);background:rgba(255,255,255,.32)}.t-close[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.4)}.t-content[_ngcontent-%COMP%]{height:calc(100% - 4rem);overflow:hidden}.t-iframe[_ngcontent-%COMP%]{width:100%;height:100%}"],data:{animation:[s.X9R,s.QFo]},changeDetection:0}),t})();(0,o.JN4)({label:"",actions:""}),new a.Al(ao);class lo{constructor(t,e,n){this.el=t,this.resize$=e,this.userAgent=n,this.isOldBrowsers=(0,o.xz3)(o.FSK,this.userAgent),this.colors$=new Lt.X([])}set colors(t){this.colors$.next(t)}get calcSegments$(){return(0,Ft.aj)([this.colors$,this.resize$.pipe((0,N.U)((()=>this.el.nativeElement.offsetWidth)),(0,le.x)())]).pipe((0,N.U)((([t,e])=>this.isOldBrowsers?t[0]:function(t,e){const n=Math.ceil(e/t.length);return`linear-gradient(to right ${t.reduce(((t,e,i)=>`${t}, ${e} ${i*n}px ${(i+1)*n}px`),"")})`}(t,e))))}}lo.ɵfac=function(t){return new(t||lo)(l.Y36(l.SBq),l.Y36(o.tll),l.Y36(b.yZ))},lo.ɵdir=l.lG2({type:lo,selectors:[["progress","tuiProgressBar","","tuiProgressColorSegments",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("$.style.--tui-progress-color",(function(){return 0})),2&t&&l.Ikx("$.style.--tui-progress-color",e.calcSegments$)},inputs:{colors:["tuiProgressColorSegments","colors"]},features:[l._Bn([o.a31,o.tll])]}),(0,p.gn)([o.UMq],lo.prototype,"calcSegments$",null);var uo=n(30528);function co(t,e){if(1&t&&l._UZ(0,"div",2),2&t){const t=e.polymorpheusOutlet;l.Q6J("innerHTML",t,l.oJD)}}function ho(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"button",4),l.NdJ("click",(function(){return l.CHM(t),l.oxw().context.completeWith(!1)})),l._uU(2),l.qZA(),l.TgZ(3,"button",5),l.NdJ("click",(function(){return l.CHM(t),l.oxw().context.completeWith(!0)})),l._uU(4),l.qZA(),l.qZA()}if(2&t){const t=e.ngIf,n=l.oxw();l.xp6(1),l.Q6J("appearance",n.appearance),l.xp6(1),l.hij(" ",(null==n.context.data?null:n.context.data.no)||t.no," "),l.xp6(2),l.hij(" ",(null==n.context.data?null:n.context.data.yes)||t.yes," ")}}let po=(()=>{class t{constructor(t,e,n){this.words$=t,this.context=e,this.isMobile=n}get appearance(){return this.isMobile?s.NmR.Secondary:s.NmR.Flat}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.JF),l.Y36(a.yf),l.Y36(o.fLQ))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-prompt"]],decls:3,vars:4,consts:[["class","t-content",3,"innerHTML",4,"polymorpheusOutlet"],["class","t-buttons",4,"ngIf"],[1,"t-content",3,"innerHTML"],[1,"t-buttons"],["size","m","tuiButton","","type","button",1,"t-button",3,"appearance","click"],["size","m","tuiAutoFocus","","tuiButton","","type","button",1,"t-button",3,"click"]],template:function(t,e){1&t&&(l.YNc(0,co,1,1,"div",0),l.YNc(1,ho,5,3,"div",1),l.ALo(2,"async")),2&t&&(l.Q6J("polymorpheusOutlet",null==e.context.data?null:e.context.data.content),l.xp6(1),l.Q6J("ngIf",l.lcZ(2,2,e.words$)))},directives:[a.Li,r.O5,fe.v,uo.k],pipes:[r.Ov],styles:[".t-content[_ngcontent-%COMP%]:not(:empty){margin-bottom:.875rem}.t-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;margin:.375rem -.375rem -.375rem}.t-button[_ngcontent-%COMP%]{margin:.375rem;white-space:nowrap}tui-root._mobile[_nghost-%COMP%] .t-button[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-button[_ngcontent-%COMP%]{flex:1}"],changeDetection:0}),t})();new a.Al(po),n(89910),(0,o.JN4)({heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]});var go=n(4812);n(68039);let mo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,go.FE,s.WUl]]}),t})();n(63084),(0,o.JN4)({min:0,max:5,iconNormal:"tuiIconStarLarge",iconFilled:"tuiIconStarLarge"}),n(1065),n(75747);let fo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,o.Ah6,s.KWI,s.jhF,Qt.Ig,h.Mt,s.WUl,s.cnw,re,s.pcV,nr]]}),t})();n(77128);var vo=n(54487),bo=n(87874);function yo(t,e){1&t&&l.GkF(0)}class _o{constructor(t,e,n,i,r,s){this.cdr=t,this.el=e,this.scrollService=n,this.duration=r,this.destroy$=s,this.steps=o.Mmc,this.orientation="horizontal",this.activeItemIndexChange=new l.vpe,this.activeItemIndex=0,i.subscribe((()=>this.scrollIntoView(this.activeItemIndex)))}set activeIndex(t){this.activeItemIndex=t,this.scrollIntoView(t)}get changes$(){return(0,o.llR)(this.steps).pipe((0,bo.g)(0))}onHorizontal(t,e){"horizontal"===this.orientation&&t.target&&(t.preventDefault(),this.moveFocus(t.target,e))}onVertical(t,e){"vertical"===this.orientation&&t.target&&(t.preventDefault(),this.moveFocus(t.target,e))}indexOf(t){return(0,o.gDA)(this.steps).findIndex((({nativeElement:e})=>e===t))}isActive(t){return t===this.activeItemIndex}activate(t){this.activeItemIndex!==t&&(this.activeItemIndex=t,this.activeItemIndexChange.emit(t),this.cdr.markForCheck(),this.scrollIntoView(t))}getNativeElements(t){return t.map((({nativeElement:t})=>t))}moveFocus(t,e){if(!(0,o.veZ)(t))return;const n=this.getNativeElements(this.steps),i=n.findIndex((e=>e===t));(0,o.VRr)(i,n,e)}scrollIntoView(t){const e=this.getNativeElements(this.steps)[t];if(!e)return;const{nativeElement:n}=this.el,{clientHeight:i,clientWidth:r,offsetTop:o,offsetLeft:s}=n,{offsetHeight:a,offsetWidth:l,offsetTop:u,offsetLeft:c}=e,d=u-o-i/2+a/2,h=c-s-r/2+l/2;this.scrollService.scroll$(n,Math.max(0,d),Math.max(0,h),this.duration/3).pipe((0,B.R)(this.destroy$)).subscribe()}}_o.ɵfac=function(t){return new(t||_o)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(o.FYW),l.Y36(o.tll),l.Y36(s.dxT),l.Y36(o.a31,2))},_o.ɵcmp=l.Xpm({type:_o,selectors:[["tui-stepper"],["nav","tuiStepper",""]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,Mo,4,l.SBq),2&t){let t;l.iGM(t=l.CRH())&&(e.steps=t)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("keydown.arrowRight",(function(t){return e.onHorizontal(t,1)}))("keydown.arrowLeft",(function(t){return e.onHorizontal(t,-1)}))("keydown.arrowDown",(function(t){return e.onVertical(t,1)}))("keydown.arrowUp",(function(t){return e.onVertical(t,-1)})),2&t&&l.uIk("data-orientation",e.orientation)},inputs:{orientation:"orientation",activeIndex:["activeItemIndex","activeIndex"]},outputs:{activeItemIndexChange:"activeItemIndexChange"},features:[l._Bn([o.tll,o.a31])],ngContentSelectors:["*"],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,yo,1,0,"ng-container",0),l.ALo(1,"async"),l.Hsn(2)),2&t&&l.Q6J("ngIf",l.lcZ(1,1,e.changes$))},directives:[r.O5],pipes:[r.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;display:flex;overflow:auto;counter-reset:steps}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}tui-root._reduced-motion [_nghost-%COMP%]{scroll-behavior:auto}[data-orientation=vertical][_nghost-%COMP%]{flex-direction:column}"],changeDetection:0}),(0,p.gn)([o.UMq],_o.prototype,"changes$",null),(0,p.gn)([o.UMq],_o.prototype,"getNativeElements",null);const Co=["tuiStep",""];function wo(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.icon)}}const xo=["*"];let Mo=(()=>{class t{constructor(t,e,n,i,r){this.stepper=n,this.el=i,this.icons=r,this.stepState="normal",this.icon="",this.focusVisible=!1,e.pipe((0,F.h)(vo.y)).subscribe((()=>{this.activate()})),t.subscribe((t=>{this.focusVisible=t}))}get isActive(){return this.stepper.isActive(this.index)}get isVertical(){return"vertical"===this.stepper.orientation}get tabIndex(){return this.isActive?0:-1}get index(){return this.stepper.indexOf(this.el.nativeElement)}activate(){this.stepper.activate(this.index)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(o.kuj),l.Y36(s.OkA),l.Y36(_o),l.Y36(l.SBq),l.Y36(s.Gs9))},t.ɵcmp=l.Xpm({type:t,selectors:[["button","tuiStep",""],["a","tuiStep","",3,"routerLink",""],["a","tuiStep","","routerLink","","routerLinkActive",""]],hostAttrs:["type","button"],hostVars:8,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.activate()})),2&t&&(l.Ikx("tabIndex",e.tabIndex),l.uIk("data-state",e.stepState),l.ekj("_focus-visible",e.focusVisible)("_active",e.isActive)("_vertical",e.isVertical))},inputs:{stepState:"stepState",icon:"icon"},features:[l._Bn([o.a31,s.OkA,o.kuj])],attrs:Co,ngContentSelectors:xo,decls:5,vars:3,consts:[["class","t-marker t-marker_custom",3,"src",4,"ngIf"],[1,"t-marker","t-marker_error",3,"src"],[1,"t-marker","t-marker_pass",3,"src"],[1,"t-marker","t-marker_index"],[1,"t-marker","t-marker_custom",3,"src"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,wo,1,1,"tui-svg",0),l._UZ(1,"tui-svg",1),l._UZ(2,"tui-svg",2),l._UZ(3,"div",3),l.Hsn(4)),2&t&&(l.Q6J("ngIf",e.icon),l.xp6(1),l.Q6J("src",e.icons.error),l.xp6(1),l.Q6J("src",e.icons.check))},directives:[r.O5,c.P],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-link);margin-right:1.5rem;outline:none;cursor:pointer;counter-increment:steps}[_nghost-%COMP%]:disabled{pointer-events:none;color:var(--tui-base-07)}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:not(:last-of-type)._vertical{margin-bottom:1.25rem}._active[_nghost-%COMP%], ._active[_nghost-%COMP%]:hover{color:var(--tui-text-01);cursor:default}._focus-visible[_nghost-%COMP%]:before{content:"";position:absolute;left:2.75rem;right:0;top:50%;height:1.5rem;margin-top:-.75rem;background:var(--tui-selection)}.t-marker[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:2rem;height:2rem;border-radius:100%;margin-right:.75rem;flex-shrink:0;align-items:center;justify-content:center;background:var(--tui-secondary);color:var(--tui-link)}[_nghost-%COMP%]:disabled .t-marker[_ngcontent-%COMP%]{background:var(--tui-base-03);color:var(--tui-base-07)}.t-marker_index[_ngcontent-%COMP%]:before{content:counter(steps)}[_nghost-%COMP%]:hover .t-marker_index[_ngcontent-%COMP%]{color:var(--tui-link-hover);background:var(--tui-secondary-hover)}._active[_nghost-%COMP%] .t-marker_index[_ngcontent-%COMP%]{color:var(--tui-primary-text);background:var(--tui-primary)}[_nghost-%COMP%]:not([data-state="normal"]):not(._active) .t-marker_index[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._active) .t-marker_custom[_ngcontent-%COMP%] ~ .t-marker_index[_ngcontent-%COMP%]{display:none}.t-marker_error[_ngcontent-%COMP%]{background:var(--tui-error-bg);color:var(--tui-error-fill)}[_nghost-%COMP%]:hover .t-marker_error[_ngcontent-%COMP%]{background:var(--tui-error-bg-hover);color:var(--tui-error-fill)}[_nghost-%COMP%]:not([data-state="error"]) .t-marker_error[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_error[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:not([data-state="pass"]) .t-marker_pass[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_pass[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:not([data-state="normal"]) .t-marker_custom[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_custom[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:hover .t-marker_custom[_ngcontent-%COMP%]{color:var(--tui-link-hover);background:var(--tui-secondary-hover)}'],changeDetection:0}),t})();n(94824),n(9203),n(81057);let Oo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,s.jhF,s.EIu,o.udY,o.HOV]]}),t})();n(51360),n(1618),n(25276),n(5025),n(58154);var ko=n(59178),So=n(28984);const Po=["*"];let To=(()=>{class t{constructor(t){this.el=t,this.el$=new D.xQ,this.debounce=0,this.orderChange=this.el$.pipe((0,So.D)((()=>(0,ze.H)(this.debounce))),(0,F.h)(this.filter.bind(this)),(0,N.U)((t=>this.reorder(t)))),this.element=null,this.order$=new Lt.X(new Map)}set order(t){this.order$.next(t)}get order(){return this.order$.value}rearrange(t){this.el$.next(t)}filter(t){return!!this.element&&!!t&&this.element!==t}reorder(t){var e,n;const i=Array.from(this.el.nativeElement.children),r=i.indexOf(this.element||t),o=i.indexOf(t),s=this.order.size?new Map(this.order):new Map(i.map(((t,e)=>[e,e]))),a=null!==(e=s.get(r))&&void 0!==e?e:r,l=null!==(n=s.get(o))&&void 0!==n?n:o;return s.set(r,l),s.set(o,a),this.order$.next(s),s}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tiles"]],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("pointerleave.silent",(function(){return e.rearrange()})),2&t&&l.ekj("_dragged",e.element)},inputs:{debounce:"debounce",order:"order"},outputs:{orderChange:"orderChange"},features:[l._Bn([o.a31,o.tll,se.IM,{provide:se.k2,useValue:{childList:!0}}])],ngContentSelectors:Po,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.Hsn(0))},styles:["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"],encapsulation:2,changeDetection:0}),t})(),Ao=(()=>{class t{constructor(t,e,n,i){this.el=t,this.tiles=e,this.resize$=n,this.mutation$=i,this.sub=new ko.w,this.offset$=new Lt.X([NaN,NaN]),this.position$=(0,Ft.aj)([this.offset$.pipe((0,le.x)(o.Hh6)),this.resize$.pipe((0,Re.O)(null)),this.mutation$.pipe((0,Re.O)(null)),this.tiles.order$.pipe((0,Q.b)(0))]).pipe((0,N.U)((([t])=>t)))}init(t){this.sub.add(this.position$.subscribe((e=>{this.setPosition(t,e),this.setRect(t,e)})))}setOffset(t){this.offset$.next(t)}ngOnDestroy(){this.sub.unsubscribe()}getRect([t,e]){return{top:Number.isNaN(e)?this.el.nativeElement.offsetTop:e,left:Number.isNaN(t)?this.el.nativeElement.offsetLeft:t,width:this.el.nativeElement.clientWidth,height:this.el.nativeElement.clientHeight,right:NaN,bottom:NaN}}setRect({style:t},e){const{top:n,left:i,width:r,height:s}=this.getRect(e);t.top=(0,o.O9r)(n),t.left=(0,o.O9r)(i),t.width=(0,o.O9r)(r),t.height=(0,o.O9r)(s)}setPosition(t,[e]){if(!Number.isNaN(e))return void t.style.setProperty("position","fixed");const{style:n}=t,i=t.getBoundingClientRect(),r=this.el.nativeElement.getBoundingClientRect();n.removeProperty("position"),n.top=(0,o.O9r)(i.top-r.top+this.el.nativeElement.offsetTop),n.left=(0,o.O9r)(i.left-r.left+this.el.nativeElement.offsetLeft)}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(To),l.LFG(o.tll),l.LFG(se.IM))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})();const Eo=["wrapper"],Io=["*"];let Do=(()=>{class t{constructor(t,e,n){this.service=t,this.el=e,this.tiles=n,this.width=1,this.height=1,this.dragged=!1}get column(){return`span var(--tui-width, ${this.width})`}get row(){return`span var(--tui-height, ${this.height})`}get element(){return this.el.nativeElement}onEnter(){this.tiles.rearrange(this.element)}onDrag(t){const e=!Number.isNaN(t[0]);this.dragged=this.dragged||e,this.tiles.element=e?this.element:null,this.service.setOffset(t)}onTransitionEnd(){this.dragged=!1}ngAfterViewInit(){this.wrapper&&this.service.init(this.wrapper.nativeElement)}ngOnDestroy(){this.tiles.element===this.element&&(this.tiles.element=null)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(Ao),l.Y36(l.SBq),l.Y36(To))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tile"]],viewQuery:function(t,e){if(1&t&&l.Gf(Eo,5),2&t){let t;l.iGM(t=l.CRH())&&(e.wrapper=t.first)}},hostVars:6,hostBindings:function(t,e){1&t&&l.NdJ("pointerenter",(function(){return e.onEnter()})),2&t&&(l.Udp("grid-column",e.column)("grid-row",e.row),l.ekj("_dragged",e.dragged))},inputs:{width:"width",height:"height"},features:[l._Bn([Ao])],ngContentSelectors:Io,decls:3,vars:0,consts:[[1,"t-wrapper",3,"transitionend.self"],["wrapper",""]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0,1),l.NdJ("transitionend.self",(function(){return e.onTransitionEnd()})),l.Hsn(2),l.qZA())},encapsulation:2,changeDetection:0}),t})();class Lo{constructor(t){this.tile=t,this.x=NaN,this.y=NaN}onStart(t){const e=(0,o.mAU)(t),{x:n,y:i,pointerId:r}=t;(0,o.veZ)(e)&&e.releasePointerCapture(r),this.onPointer(n,i)}onPointer(t=NaN,e=NaN){const{left:n,top:i}=this.tile.element.getBoundingClientRect();this.x=t-n,this.y=e-i,this.tile.onDrag([NaN,NaN])}onMove(t,e){this.tile.onDrag([t-this.x,e-this.y])}}Lo.ɵfac=function(t){return new(t||Lo)(l.Y36(Do))},Lo.ɵdir=l.lG2({type:Lo,selectors:[["","tuiTileHandle",""]],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("pointerdown.silent",(function(t){return e.onStart(t)}))("pointerup.silent",(function(){return e.onPointer()}),!1,l.evT)("pointermove.silent",(function(t){return e.onMove(t.x,t.y)}),!1,l.evT),2&t&&l.Udp("touch-action","none")("user-select","none")}}),(0,p.gn)([(0,oe.uX)((function(t=NaN){return!Number.isNaN(t)||!Number.isNaN(this.x)}))],Lo.prototype,"onPointer",null),(0,p.gn)([(0,oe.uX)((function(){return!Number.isNaN(this.x)}))],Lo.prototype,"onMove",null),n(31338);let Fo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Fqk,o.udY,o.fzP,o.ceN,o.S1R,s.WUl,s.EIu,s.dSp,a.wq]]}),t})();function No(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",2),l.NdJ("click",(function(){return l.CHM(t),l.oxw().onClick()})),l.qZA()}if(2&t){const t=l.oxw();l.ekj("t-button_expanded",t.isExpanded),l.Q6J("icon",t.icons.more)}}n(66895);let zo=(()=>{class t{constructor(t,e,n){this.icons=t,this.context=e,this.controller=n}get isExpanded(){return this.context.$implicit.isExpanded}get isExpandable(){return this.context.$implicit.isExpandable&&this.controller!==Bo}onClick(){this.controller.toggle(this.context.$implicit)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.Gs9),l.Y36(a.yf),l.Y36((0,l.Gpc)((()=>Ho))))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tree-item-content"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_expandable",e.isExpandable)},decls:2,vars:2,consts:[["appearance","flat","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-button",3,"t-button_expanded","icon","click",4,"ngIf"],[3,"ngTemplateOutlet"],["appearance","flat","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-button",3,"icon","click"]],template:function(t,e){1&t&&(l.YNc(0,No,1,3,"button",0),l.GkF(1,1)),2&t&&(l.Q6J("ngIf",e.isExpandable),l.xp6(1),l.Q6J("ngTemplateOutlet",e.context.template))},directives:[r.O5,r.tP,fe.v],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] tui-tree-item._expandable[_nghost-%COMP%]:not(._expandable), tui-tree-item._expandable [_nghost-%COMP%]:not(._expandable){padding-left:2rem}.t-button[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-right:.5rem}.t-button_expanded[_ngcontent-%COMP%]{transform:rotate(90deg)}"],changeDetection:0}),t})();const Ro=new a.Al(zo),Bo={isExpanded:o.YeN,toggle:o.iDf},Ho=(new l.OlP("[TUI_TREE_ACCESSOR]"),(0,o.JN4)(Bo)),Vo=new l.OlP("[TUI_TREE_NODE]"),Yo=((0,o.JN4)({}),new l.OlP("[TUI_TREE_START]"),new l.OlP("[TUI_TREE_LOADER]"),(0,o.JN4)(Ro)),jo=(0,o.JN4)(-1),Zo=[{provide:jo,deps:[[new l.tp0,jo]],useFactory:t=>++t},{provide:Vo,useExisting:(0,l.Gpc)((()=>Ko))}];function $o(t,e){1&t&&l.Hsn(0)}function Uo(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t,"\n")}}function Go(t,e){if(1&t&&(l.TgZ(0,"tui-expand",4),l.ALo(1,"async"),l.TgZ(2,"div"),l.Hsn(3,1),l.Hsn(4,2),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.Q6J("expanded",l.lcZ(1,1,t.expanded$))}}function qo(t,e){1&t&&l.GkF(0)}const Jo=["*",[["tui-tree-item"]],[["tui-tree"]]],Qo=function(t,e){return{$implicit:t,template:e}},Wo=["*","tui-tree-item","tui-tree"];let Ko=(()=>{class t{constructor(t,e,n,i){this.el=t,this.controller=e,this.level=n,this.content=i,this.nested=o.Mmc,this.change$=new D.xQ,this.expanded$=this.change$.pipe((0,Re.O)(null),(0,N.U)((()=>this.isExpanded))),this.attached$=this.change$.pipe((0,N.U)((()=>this.el.nativeElement.isConnected)),(0,le.x)())}get isExpandable(){return!!this.nested.length}get isExpanded(){return this.controller.isExpanded(this)}ngDoCheck(){this.checkChanges()}checkChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36((0,l.Gpc)((()=>Ho))),l.Y36((0,l.Gpc)((()=>jo))),l.Y36((0,l.Gpc)((()=>Yo))))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tree-item"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,Vo,4),2&t){let t;l.iGM(t=l.CRH())&&(e.nested=t)}},hostAttrs:["role","treeitem"],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_expandable",e.isExpandable)},features:[l._Bn(Zo)],ngContentSelectors:Wo,decls:6,vars:9,consts:[["template",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["role","group","class","t-children",3,"expanded",4,"ngIf"],[4,"ngIf"],["role","group",1,"t-children",3,"expanded"]],template:function(t,e){if(1&t&&(l.F$t(Jo),l.YNc(0,$o,1,0,"ng-template",null,0,l.W1O),l.YNc(2,Uo,2,1,"ng-container",1),l.YNc(3,Go,5,3,"tui-expand",2),l.YNc(4,qo,1,0,"ng-container",3),l.ALo(5,"async")),2&t){const t=l.MAs(1);l.xp6(2),l.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",l.WLB(6,Qo,e,t)),l.xp6(1),l.Q6J("ngIf",e.isExpandable),l.xp6(1),l.Q6J("ngIf",l.lcZ(5,4,e.attached$))}},directives:[a.Li,r.O5,Fe.S],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block}.t-children[_ngcontent-%COMP%]{position:relative;margin-left:var(--tui-tree-item-indent, 1.5rem)}"],changeDetection:0}),t})()},18569:(t,e,n)=>{n.d(e,{A:()=>g});var i=n(97582),r=n(24751),o=n(42600),s=n(41035),a=n(25917),l=n(95639),u=n(88002),c=n(74788);const d={};function h(t,e){return t.pipe((0,u.U)((t=>new o.T8v(t||"",e))))}function p(t,e){return(0,a.of)(new o.T8v(t||"",e))}class g{constructor(t,e,n,i){this.parent=t,this.self=e,this.container=n,this.validationErrors=i,this.order=[],this.self&&!this.self.valueAccessor&&(this.self.valueAccessor=this)}transform(t){return this.order=t,this.computedError}get computedError(){return this.invalid&&this.touched&&this.error||(0,a.of)(null)}registerOnChange(){}registerOnTouched(){}setDisabledState(){}writeValue(){}get error(){const{errorId:t}=this;if(!t)return null;const e=this.controlErrors[t],n=this.validationErrors[t];return this.getError(e,n)}get invalid(){var t;return!!(null===(t=this.control)||void 0===t?void 0:t.invalid)}get touched(){var t;return!!(null===(t=this.control)||void 0===t?void 0:t.touched)}get control(){var t,e,n;return(null===(t=this.self)||void 0===t?void 0:t.control)||(null===(e=this.parent)||void 0===e?void 0:e.control)||(null===(n=this.container)||void 0===n?void 0:n.control)}get errorId(){return this.getErrorId(this.order,this.controlErrors)}get controlErrors(){var t;return(null===(t=this.control)||void 0===t?void 0:t.errors)||d}getErrorId(t,e){const n=null==t?void 0:t.find((t=>e[t])),i=Object.keys(e)[0];return n||i||""}getError(t,e){if(t instanceof o.T8v)return(0,a.of)(t);if(void 0===e&&(0,o.Ajw)(t))return(0,a.of)(new o.T8v(t));if((0,l.b)(e))return h(e,t);if(e instanceof Function){const n=e(t);return(0,l.b)(n)?h(n,t):p(n,t)}return p(e,t)}}g.ɵfac=function(t){return new(t||g)(c.Y36(r.a5,28),c.Y36(r.a5,26),c.Y36(r.gN,24),c.Y36(s.Z4,16))},g.ɵpipe=c.Yjl({name:"tuiFieldError",type:g,pure:!1}),(0,i.gn)([o.UMq],g.prototype,"getErrorId",null),(0,i.gn)([o.UMq],g.prototype,"getError",null)},59912:(t,e,n)=>{n.d(e,{yn:()=>o,E2:()=>u});var i=n(43232),r=n(41035);n(25917),n(88002),r.RZ,i.$7p;const o=(0,i.fxH)({limitWidth:"fixed",align:"right"});var s=n(74788),a=n(24751),l=n(54487);const u={provide:i.sEt,deps:[[new s.FiY,new s.PiD,a.JU]],useFactory:l.y}},41035:(t,e,n)=>{n.d(e,{s3:()=>s,qE:()=>C,UV:()=>_,Hw:()=>O,iN:()=>c,LD:()=>h,zf:()=>b,Mu:()=>p,HF:()=>d,rV:()=>y,qk:()=>w,WB:()=>S,BV:()=>x,Ys:()=>T,vk:()=>A,RZ:()=>E,ue:()=>m,E6:()=>M,q5:()=>f,JF:()=>g,WO:()=>I,Yq:()=>v,Z4:()=>D,_V:()=>a});var i=n(74788),r=n(24751),o=n(82191);const s=new i.OlP("[TUI_CALENDAR_DATE_STREAM]");function a(t){return{provide:s,deps:[[new i.FiY,new i.PiD,r.a5],[new i.FiY,t]],useFactory:o.pi}}var l=n(42600),u=n(19633);const c=(0,l.JN4)({[u.Xi.AD]:"+376###-###",[u.Xi.AE]:"+971-##-###-####",[u.Xi.AF]:"+93##-###-####",[u.Xi.AG]:"+1(268) ###-####",[u.Xi.AI]:"+1(264) ###-####",[u.Xi.AL]:"+355(###) ###-###",[u.Xi.AM]:"+374##-###-###",[u.Xi.AO]:"+244(###) ###-###",[u.Xi.AR]:"+54(###) ####-####",[u.Xi.AT]:"+43(###) ###-####",[u.Xi.AU]:"+61#-####-####",[u.Xi.AW]:"+297###-####",[u.Xi.AZ]:"+994##-###-##-##",[u.Xi.BA]:"+387 ###-####-##",[u.Xi.BB]:"+1(246) ###-####",[u.Xi.BD]:"+880##-###-###",[u.Xi.BE]:"+32(###) ###-###",[u.Xi.BF]:"+226##-##-####",[u.Xi.BG]:"+359(###) ###-###",[u.Xi.BH]:"+973####-####",[u.Xi.BI]:"+257##-##-####",[u.Xi.BJ]:"+229##-##-####",[u.Xi.BL]:"+590 ## ## ## ## ##",[u.Xi.BM]:"+1(441) ###-####",[u.Xi.BN]:"+673###-####",[u.Xi.BO]:"+591#-###-####",[u.Xi.BQ]:"+599-###-####",[u.Xi.BR]:"+55(##) ####-#####",[u.Xi.BS]:"+1(242) ###-####",[u.Xi.BT]:"+975#-###-###",[u.Xi.BW]:"+267##-###-###",[u.Xi.BY]:"+375(##) ###-##-##",[u.Xi.BZ]:"+501###-####",[u.Xi.CA]:"+1(###) ###-####",[u.Xi.CD]:"+243(###) ###-###",[u.Xi.CF]:"+236-##-##-####",[u.Xi.CG]:"+242##-###-####",[u.Xi.CH]:"+41##-###-####",[u.Xi.CI]:"+225##-##-###-###",[u.Xi.CL]:"+56#-####-####",[u.Xi.CM]:"+237#####-####",[u.Xi.CN]:"+86(###) ####-####",[u.Xi.CO]:"+57(###) ###-####",[u.Xi.CR]:"+506####-####",[u.Xi.CU]:"+53#-###-####",[u.Xi.CV]:"+238(###) ##-##",[u.Xi.CW]:"+5999-###-####",[u.Xi.CY]:"+357##-###-###",[u.Xi.CZ]:"+420(###) ###-###",[u.Xi.DE]:"+49(###) ###-###-##",[u.Xi.DJ]:"+253##-##-##-##",[u.Xi.DK]:"+45##-##-##-##",[u.Xi.DM]:"+1(767) ###-####",[u.Xi.DO]:"+1(###) ###-####",[u.Xi.DZ]:"+213##-###-####",[u.Xi.EC]:"+593##-###-####",[u.Xi.EE]:"+372####-####",[u.Xi.EG]:"+20(###) ###-####",[u.Xi.ER]:"+291#-###-###",[u.Xi.ES]:"+34(###) ###-###",[u.Xi.ET]:"+251##-###-####",[u.Xi.FI]:"+358(###) ###-##-##",[u.Xi.FJ]:"+679##-#####",[u.Xi.FK]:"+500#####",[u.Xi.FM]:"+691###-####",[u.Xi.FR]:"+33 ## ## ## ## ##",[u.Xi.GA]:"+241##-##-##-##",[u.Xi.GB]:"+44##-####-####",[u.Xi.GD]:"+1(473) ###-####",[u.Xi.GE]:"+995(###) ###-###",[u.Xi.GF]:"+594 ## ## ## ## ##",[u.Xi.GH]:"+233(###) ###-###",[u.Xi.GI]:"+350###-#####",[u.Xi.GL]:"+299##-##-##",[u.Xi.GM]:"+220(###) ##-##",[u.Xi.GN]:"+224##-###-###",[u.Xi.GP]:"+590 ## ## ## ## ##",[u.Xi.GQ]:"+240##-###-####",[u.Xi.GR]:"+30(###) ###-####",[u.Xi.GT]:"+502#-###-####",[u.Xi.GW]:"+245#-######",[u.Xi.GY]:"+592###-####",[u.Xi.HK]:"+852####-####",[u.Xi.HN]:"+504####-####",[u.Xi.HR]:"+385##-###-####",[u.Xi.HT]:"+509##-##-####",[u.Xi.HU]:"+36(###) ###-###",[u.Xi.ID]:"+62(###) ###-##-###",[u.Xi.IE]:"+353(###) ###-###",[u.Xi.IL]:"+972##-###-####",[u.Xi.IN]:"+91(####) ###-###",[u.Xi.IQ]:"+964(###) ###-####",[u.Xi.IR]:"+98(###) ###-####",[u.Xi.IS]:"+354###-####",[u.Xi.IT]:"+39(###) ####-###",[u.Xi.JM]:"+1(876) ###-####",[u.Xi.JO]:"+962#-####-####",[u.Xi.JP]:"+81-##-####-####",[u.Xi.KE]:"+254###-######",[u.Xi.KG]:"+996(###) ###-###",[u.Xi.KH]:"+855##-###-###",[u.Xi.KM]:"+269##-#####",[u.Xi.KN]:"+1(869) ###-####",[u.Xi.KP]:"+850####-#############",[u.Xi.KR]:"+82##-###-####",[u.Xi.KW]:"+965####-####",[u.Xi.KY]:"+1(345) ###-####",[u.Xi.KZ]:"+7(###) ###-##-##",[u.Xi.LA]:"+856##-##-###-###",[u.Xi.LB]:"+961##-###-###",[u.Xi.LC]:"+1(758) ###-####",[u.Xi.LI]:"+423(###) ###-####",[u.Xi.LK]:"+94##-###-####",[u.Xi.LR]:"+231##-###-###",[u.Xi.LS]:"+266#-###-####",[u.Xi.LT]:"+370(###) ##-###",[u.Xi.LU]:"+352(###) ###-###",[u.Xi.LV]:"+371##-###-###",[u.Xi.LY]:"+218##-###-####",[u.Xi.MA]:"+212##-####-###",[u.Xi.MC]:"+377###-###-###",[u.Xi.MD]:"+373####-####",[u.Xi.ME]:"+382##-###-###",[u.Xi.MF]:"+590 ## ## ## ## ##",[u.Xi.MG]:"+261##-##-#####",[u.Xi.MK]:"+389##-###-###",[u.Xi.ML]:"+223##-##-####",[u.Xi.MM]:"+95##-###-###",[u.Xi.MN]:"+976##-##-####",[u.Xi.MO]:"+853####-####",[u.Xi.MQ]:"+596 ## ## ## ## ##",[u.Xi.MR]:"+222##-##-####",[u.Xi.MS]:"+1(664) ###-####",[u.Xi.MT]:"+356####-####",[u.Xi.MU]:"+230####-####",[u.Xi.MV]:"+960###-####",[u.Xi.MW]:"+265#-####-####",[u.Xi.MX]:"+52(###) ###-####",[u.Xi.MY]:"+60(###) ###-###",[u.Xi.MZ]:"+258##-###-###",[u.Xi.NA]:"+264##-###-####",[u.Xi.NC]:"+687 ### ###",[u.Xi.NE]:"+227##-##-####",[u.Xi.NG]:"+234(###) ###-####",[u.Xi.NI]:"+505####-####",[u.Xi.NL]:"+31##-###-####",[u.Xi.NO]:"+47(###) ##-###",[u.Xi.NP]:"+977##-###-###",[u.Xi.NZ]:"+64(###) ###-####",[u.Xi.OM]:"+968##-###-###",[u.Xi.PA]:"+507###-####",[u.Xi.PE]:"+51(###) ###-###",[u.Xi.PF]:"+689 ## ## ## ##",[u.Xi.PG]:"+675(###) ##-###",[u.Xi.PH]:"+63(###) ###-####",[u.Xi.PK]:"+92(###) ###-####",[u.Xi.PL]:"+48(###) ###-###",[u.Xi.PT]:"+351##-###-####",[u.Xi.PW]:"+680###-####",[u.Xi.PY]:"+595(###) ###-###",[u.Xi.QA]:"+974####-####",[u.Xi.RE]:"+262 ## ## ## ## ##",[u.Xi.RO]:"+40##-###-####",[u.Xi.RS]:"+381##-###-####",[u.Xi.RU]:"+7### ###-##-##",[u.Xi.RW]:"+250(###) ###-###",[u.Xi.SA]:"+966#-####-####",[u.Xi.SB]:"+677###-####",[u.Xi.SC]:"+248#-###-###",[u.Xi.SD]:"+249##-###-####",[u.Xi.SE]:"+46##-###-####",[u.Xi.SG]:"+65####-####",[u.Xi.SH]:"+290####",[u.Xi.SI]:"+386##-###-###",[u.Xi.SK]:"+421(###) ###-###",[u.Xi.SL]:"+232##-######",[u.Xi.SM]:"+378####-######",[u.Xi.SN]:"+221##-###-####",[u.Xi.SO]:"+252##-###-###",[u.Xi.SR]:"+597###-####",[u.Xi.ST]:"+239##-#####",[u.Xi.SV]:"+503##-##-####",[u.Xi.SX]:"+1(721) ###-####",[u.Xi.SY]:"+963##-####-###",[u.Xi.SZ]:"+268##-##-####",[u.Xi.TC]:"+1(649) ###-####",[u.Xi.TD]:"+235##-##-##-##",[u.Xi.TG]:"+228##-###-###",[u.Xi.TH]:"+66##-###-####",[u.Xi.TJ]:"+992##-###-####",[u.Xi.TL]:"+670###-#####",[u.Xi.TM]:"+993#-###-####",[u.Xi.TN]:"+216##-###-###",[u.Xi.TO]:"+676#####",[u.Xi.TR]:"+90(###) ###-####",[u.Xi.TT]:"+1(868) ###-####",[u.Xi.TW]:"+886#-####-####",[u.Xi.TZ]:"+255##-###-####",[u.Xi.UA]:"+380(##) ###-##-##",[u.Xi.UG]:"+256(###) ###-###",[u.Xi.US]:"+1(###) ###-####",[u.Xi.UY]:"+598#-###-##-##",[u.Xi.UZ]:"+998##-###-####",[u.Xi.VC]:"+1(784) ###-####",[u.Xi.VE]:"+58(###) ###-####",[u.Xi.VG]:"+1(284)###-####",[u.Xi.VN]:"+84(###) ####-###",[u.Xi.VU]:"+678##-#####",[u.Xi.WS]:"+685##-####",[u.Xi.XK]:"+383##-###-###",[u.Xi.YE]:"+967###-###-###",[u.Xi.YT]:"+262 ## ## ## ## ##",[u.Xi.ZA]:"+27##-###-####",[u.Xi.ZM]:"+260##-###-####",[u.Xi.ZW]:"+263#-######"}),d=new i.OlP("[TUI_DATE_VALUE_TRANSFORMER]"),h=new i.OlP("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),p=new i.OlP("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),g=(0,l.N1V)((0,u.vv)("prompt")),m=((0,l.N1V)((0,u.vv)("cancel")),(0,l.N1V)((0,u.vv)("done")),(0,l.N1V)((0,u.vv)("more"))),f=((0,l.N1V)((0,u.vv)("hide")),(0,l.N1V)((0,u.vv)("showAll")),(0,l.N1V)((0,u.vv)("otherDate"))),v=((0,l.N1V)((0,u.vv)("mobileCalendarTexts")),(0,l.N1V)((0,u.vv)("range")),(0,l.N1V)((0,u.vv)("countTexts")),(0,l.N1V)((0,u.vv)("time"))),b=(0,l.N1V)((0,u.vv)("dateTexts")),y=(0,l.N1V)((0,u.vv)("digitalInformationUnits")),_=(0,l.N1V)((0,u.vv)("copyTexts")),C=((0,l.N1V)((0,u.vv)("passwordTexts")),(0,l.N1V)((0,u.vv)("shortCalendarMonths"))),w=(0,l.N1V)((0,u.vv)("fileTexts")),x=((0,l.N1V)((0,u.vv)("pagination")),(0,l.N1V)((0,u.vv)("inputFileTexts"))),M=(0,l.N1V)((0,u.vv)("multiSelectTexts")),O=(0,l.N1V)((0,u.vv)("countries")),k={icon:({$implicit:t})=>"s"===t?"tuiIconCalendar":"tuiIconCalendarLarge",min:l.nNo,max:l.OyN,nativePicker:!1},S=(0,l.JN4)(k),P={stringify:l.yZp,identityMatcher:l.bgn,disabledItemHandler:l.IyD},T=(0,l.JN4)(P),A=new i.OlP("[TUI_MOBILE_CALENDAR]"),E=new i.OlP("[TUI_MONTH_FORMATTER]"),I=(0,l.JN4)(24),D=(0,l.JN4)({})},24112:(t,e,n)=>{n.d(e,{z:()=>s,w:()=>a});var i=n(42600);const r=1024,o=1024*r;function s(t,e){return void 0===e?null:et.trim()))}},37654:(t,e,n)=>{function i(t){if(""===t)return"";let e=0;for(let n=0;ni})},82191:(t,e,n)=>{n.d(e,{pi:()=>d,z:()=>i.z,fn:()=>h,fR:()=>l,zm:()=>p,ox:()=>a.ox,u7:()=>g,hm:()=>a.hm});var i=n(24112),r=n(42600),o=n(2181),s=n(43232);new Array(2).fill(s.hW1),new Array(4).fill(s.hW1);var a=n(29577);function l(t){return!Array.isArray(t[0])}var u=n(25917),c=n(88002);function d(t,e){return t?(0,r.EKY)(t).pipe((0,c.U)((t=>e?e.fromControlValue(t):t))):(0,u.of)(null)}function h(t,e){return t[e].replace(/[()\- ]/g,"").length}function p(t,e){return t[e].replace(o.m2,"")}function g(t){const e=Number(t.slice(1,4));return e<600||e>799}},29577:(t,e,n)=>{n.d(e,{ox:()=>a,hm:()=>s});var i=n(42600),r=n(2181);function o(t,e){const n=t.findIndex(((t,n)=>n&&e(t)));return[t[n-1]||t[0],t[n]||t[t.length-1]]}function s(t,e){const[[n,s],[a,l]]=o(e,(([e,n])=>t<=e)),u=(t-n)/(a-n)*(l-s)+s;return(0,i.FGw)(u,r.bF)}function a(t,e){const[[n,i],[r,s]]=o(e,(([e,n])=>t<=n));return(r-n)*((t-i)/(s-i)||0)+n}},69153: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=69153,t.exports=e},95381:(t,e,n)=>{n.d(e,{Z:()=>pn});var i={};n.r(i),n.d(i,{decode:()=>u,encode:()=>h,format:()=>p,parse:()=>k});var r={};n.r(r),n.d(r,{Any:()=>S,Cc:()=>P,Cf:()=>T,P:()=>A,S:()=>E,Z:()=>I});var o={};n.r(o),n.d(o,{arrayReplaceAt:()=>et,assign:()=>tt,escapeHtml:()=>pt,escapeRE:()=>mt,fromCodePoint:()=>it,has:()=>X,isMdAsciiPunct:()=>yt,isPunctChar:()=>bt,isSpace:()=>ft,isString:()=>W,isValidEntityCode:()=>nt,isWhiteSpace:()=>vt,lib:()=>Ct,normalizeReference:()=>_t,unescapeAll:()=>lt,unescapeMd:()=>at});var s={};n.r(s),n.d(s,{parseLinkDestination:()=>xt,parseLinkLabel:()=>wt,parseLinkTitle:()=>Mt});const a={};function l(t,e){"string"!=typeof e&&(e=l.defaultChars);const n=function(t){let e=a[t];if(e)return e;e=a[t]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);e.push(n)}for(let n=0;n=55296&&t<=57343?"���":String.fromCharCode(t),i+=6;continue}}if(240==(248&o)&&i+91114111?e+="����":(t-=65536,e+=String.fromCharCode(55296+(t>>10),56320+(1023&t))),i+=9;continue}}e+="�"}}return e}))}l.defaultChars=";/?:@&=+$,#",l.componentChars="";const u=l,c={};function d(t,e,n){"string"!=typeof e&&(n=e,e=d.defaultChars),void 0===n&&(n=!0);const i=function(t){let e=c[t];if(e)return e;e=c[t]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&e+1=56320&&n<=57343){r+=encodeURIComponent(t[e]+t[e+1]),e++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(t[e])}return r}d.defaultChars=";/?:@&=+$,-_.!~*'()#",d.componentChars="-_.!~*'()";const h=d;function p(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function g(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const m=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,v=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,b=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),y=["'"].concat(b),_=["%","/","?",";","#"].concat(y),C=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};g.prototype.parse=function(t,e){let n,i,r,o=t;if(o=o.trim(),!e&&1===t.split("#").length){const t=v.exec(o);if(t)return this.pathname=t[1],t[2]&&(this.search=t[2]),this}let s=m.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(e||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===o.substr(0,2),!r||s&&M[s]||(o=o.substr(2),this.slashes=!0)),!M[s]&&(r||s&&!O[s])){let t,e,n=-1;for(let t=0;t127?i+="x":i+=n[t];if(!i.match(w)){const i=t.slice(0,e),r=t.slice(e+1),s=n.match(x);s&&(i.push(s[1]),r.unshift(s[2])),r.length&&(o=r.join(".")+o),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");-1!==a&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),O[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},g.prototype.parseHost=function(t){let e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const k=function(t,e){if(t&&t instanceof g)return t;const n=new g;return n.parse(t,e),n},S=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,P=/[\0-\x1F\x7F-\x9F]/,T=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,A=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,E=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,I=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,D=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t=>t.charCodeAt(0)))),L=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t=>t.charCodeAt(0))));var F;const N=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),z=null!==(F=String.fromCodePoint)&&void 0!==F?F:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e};var R=(()=>(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"}(R||(R={})),R))(),B=(()=>(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(B||(B={})),B))();function H(t){return t>=R.ZERO&&t<=R.NINE}var V=(()=>(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(V||(V={})),V))(),Y=(()=>{return(t=Y||(Y={}))[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute",Y;var t})();class j{constructor(t,e,n){this.decodeTree=t,this.emitCodePoint=e,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Y.Strict}startEntity(t){this.decodeMode=t,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case V.EntityStart:return t.charCodeAt(e)===R.NUM?(this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=V.NamedEntity,this.stateNamedEntity(t,e));case V.NumericStart:return this.stateNumericStart(t,e);case V.NumericDecimal:return this.stateNumericDecimal(t,e);case V.NumericHex:return this.stateNumericHex(t,e);case V.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===R.LOWER_X?(this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=V.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,n,i){if(e!==n){const r=n-e;this.result=this.result*Math.pow(i,r)+parseInt(t.substr(e,r),i),this.consumed+=r}}stateNumericHex(t,e){const n=e;for(;e=R.UPPER_A&&i<=R.UPPER_F||i>=R.LOWER_A&&i<=R.LOWER_F)))return this.addToNumericResult(t,n,e,16),this.emitNumericEntity(r,3);e+=1}var i;return this.addToNumericResult(t,n,e,16),-1}stateNumericDecimal(t,e){const n=e;for(;e=55296&&t<=57343||t>1114111?65533:null!==(e=N.get(t))&&void 0!==e?e:t}(this.result),this.consumed),this.errors&&(t!==R.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&B.VALUE_LENGTH)>>14;for(;e=R.UPPER_A&&t<=R.UPPER_Z||t>=R.LOWER_A&&t<=R.LOWER_Z||H(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&B.VALUE_LENGTH)>>14,0!==r){if(s===R.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var o;return-1}emitNotTerminatedNamedEntity(){var t;const{result:e,decodeTree:n}=this,i=(n[e]&B.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,i,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,n){const{decodeTree:i}=this;return this.emitCodePoint(1===e?i[t]&~B.VALUE_LENGTH:i[t+1],n),3===e&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case V.NamedEntity:return 0===this.result||this.decodeMode===Y.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}}function Z(t){let e="";const n=new j(t,(t=>e+=z(t)));return function(t,i){let r=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(r,o),n.startEntity(i);const s=n.write(t,o+1);if(s<0){r=o+n.end();break}r=o+s,o=0===s?r+1:r}const s=e+t.slice(r);return e="",s}}function $(t,e,n,i){const r=(e&B.BRANCH_LENGTH)>>7,o=e&B.JUMP_TABLE;if(0===r)return 0!==o&&i===o?n:-1;if(o){const e=i-o;return e<0||e>=r?-1:t[n+e]-1}let s=n,a=s+r-1;for(;s<=a;){const e=s+a>>>1,n=t[e];if(ni))return t[e+r];a=e-1}}return-1}const U=Z(D);function G(t,e=Y.Legacy){return U(t,e)}function q(t){for(let e=1;e'"]/g,J),Q(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Q(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));const K=Object.prototype.hasOwnProperty;function X(t,e){return K.call(t,e)}function tt(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function et(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function nt(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||!(65535&~t&&65534!=(65535&t))||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function it(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const rt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ot=new RegExp(rt.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),st=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function at(t){return t.indexOf("\\")<0?t:t.replace(rt,"$1")}function lt(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(ot,(function(t,e,n){return e||function(t,e){if(35===e.charCodeAt(0)&&st.test(e)){const n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return nt(n)?it(n):t}const n=G(t);return n!==t?n:t}(t,n)}))}const ut=/[&<>"]/,ct=/[&<>"]/g,dt={"&":"&","<":"<",">":">",'"':"""};function ht(t){return dt[t]}function pt(t){return ut.test(t)?t.replace(ct,ht):t}const gt=/[.?*+^$[\]\\(){}|-]/g;function mt(t){return t.replace(gt,"\\$&")}function ft(t){switch(t){case 9:case 32:return!0}return!1}function vt(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function bt(t){return A.test(t)}function yt(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _t(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const Ct={mdurl:i,ucmicro:r};function wt(t,e,n){let i,r,o,s;const a=t.posMax,l=t.pos;for(t.pos=e+1,i=1;t.pos32))return o;if(41===i){if(0===s)break;s--}r++}return e===r||0!==s||(o.str=lt(t.slice(e,r)),o.pos=r,o.ok=!0),o}function Mt(t,e,n){let i,r,o=0,s=e;const a={ok:!1,pos:0,lines:0,str:""};if(s>=n)return a;if(r=t.charCodeAt(s),34!==r&&39!==r&&40!==r)return a;for(s++,40===r&&(r=41);s"+pt(o.content)+""},Ot.code_block=function(t,e,n,i,r){const o=t[e];return""+pt(t[e].content)+"\n"},Ot.fence=function(t,e,n,i,r){const o=t[e],s=o.info?lt(o.info).trim():"";let a,l="",u="";if(s){const t=s.split(/(\s+)/g);l=t[0],u=t.slice(2).join("")}if(a=n.highlight&&n.highlight(o.content,l,u)||pt(o.content),0===a.indexOf("${a}\n`}return`
    ${a}
    \n`},Ot.image=function(t,e,n,i,r){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,i),r.renderToken(t,e,n)},Ot.hardbreak=function(t,e,n){return n.xhtmlOut?"
    \n":"
    \n"},Ot.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"
    \n":"
    \n":"\n"},Ot.text=function(t,e){return pt(t[e].content)},Ot.html_block=function(t,e){return t[e].content},Ot.html_inline=function(t,e){return t[e].content},kt.prototype.renderAttrs=function(t){let e,n,i;if(!t.attrs)return"";for(i="",e=0,n=t.attrs.length;e\n":">",r},kt.prototype.renderInline=function(t,e,n){let i="";const r=this.rules;for(let o=0,s=t.length;o=0&&(n=this.attrs[e][1]),n},At.prototype.attrJoin=function(t,e){const n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e};const Et=At;function It(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}It.prototype.Token=Et;const Dt=It,Lt=/\r\n?|\n/g,Ft=/\0/g;function Nt(t){return/^<\/a\s*>/i.test(t)}const zt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Rt=/\((c|tm|r)\)/i,Bt=/\((c|tm|r)\)/gi,Ht={c:"©",r:"®",tm:"™"};function Vt(t,e){return Ht[e.toLowerCase()]}function Yt(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];"text"!==i.type||e||(i.content=i.content.replace(Bt,Vt)),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}function jt(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];"text"!==i.type||e||zt.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}const Zt=/['"]/,$t=/['"]/g;function Ut(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Gt(t,e){let n;const i=[];for(let r=0;r=0&&!(i[n].level<=s);n--);if(i.length=n+1,"text"!==o.type)continue;let a=o.content,l=0,u=a.length;t:for(;l=0)g=a.charCodeAt(c.index-1);else for(n=r-1;n>=0&&"softbreak"!==t[n].type&&"hardbreak"!==t[n].type;n--)if(t[n].content){g=t[n].content.charCodeAt(t[n].content.length-1);break}let m=32;if(l=48&&g<=57&&(h=d=!1),d&&h&&(d=f,h=v),d||h){if(h)for(n=i.length-1;n>=0;n--){let d=i[n];if(i[n].level=0;s--){const a=r[s];if("link_close"!==a.type){if("html_inline"===a.type&&(n=a.content,/^\s]/i.test(n)&&o>0&&o--,Nt(a.content)&&o++),!(o>0)&&"text"===a.type&&t.md.linkify.test(a.content)){const n=a.content;let o=t.md.linkify.match(n);const l=[];let u=a.level,c=0;o.length>0&&0===o[0].index&&s>0&&"text_special"===r[s-1].type&&(o=o.slice(1));for(let e=0;ec){const e=new t.Token("text","",0);e.content=n.slice(c,a),e.level=u,l.push(e)}const d=new t.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const h=new t.Token("text","",0);h.content=s,h.level=u,l.push(h);const p=new t.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=o[e].lastIndex}if(c=0;e--)"inline"===t.tokens[e].type&&(Rt.test(t.tokens[e].content)&&Yt(t.tokens[e].children),zt.test(t.tokens[e].content)&&jt(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&Zt.test(t.tokens[e].content)&&Gt(t.tokens[e].children,t)}],["text_join",function(t){let e,n;const i=t.tokens,r=i.length;for(let t=0;t0&&this.level++,this.tokens.push(i),i},Wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Wt.prototype.skipEmptyLines=function(t){for(let e=this.lineMax;te;)if(!ft(this.src.charCodeAt(--t)))return t+1;return t},Wt.prototype.skipChars=function(t,e){for(let n=this.src.length;tn;)if(e!==this.src.charCodeAt(--t))return t+1;return t},Wt.prototype.getLines=function(t,e,n,i){if(t>=e)return"";const r=new Array(e-t);for(let o=0,s=t;sn?new Array(t-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return r.join("")},Wt.prototype.Token=Et;const Kt=Wt;function Xt(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(n,i)}function te(t){const e=[],n=t.length;let i=0,r=t.charCodeAt(i),o=!1,s=0,a="";for(;i=i)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=i)return-1;if(o=t.src.charCodeAt(r++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(r-n>=10)return-1}return r`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",re="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",oe=new RegExp("^(?:"+ie+"|"+re+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),se=new RegExp("^(?:"+ie+"|"+re+")"),ae=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(se.source+"\\s*$"),/^$/,!1]],le=[["table",function(t,e,n,i){if(e+2>n)return!1;let r=e+1;if(t.sCount[r]=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;const s=t.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s)return!1;if(o>=t.eMarks[r])return!1;const a=t.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a&&!ft(a))return!1;if(45===s&&ft(a))return!1;for(;o=4)return!1;u=te(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(i)return!0;const h=t.parentType;t.parentType="table";const p=t.md.block.ruler.getRules("blockquote"),g=[e,0];t.push("table_open","table",1).map=g,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e=4)break;u=te(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),r===e+2&&(t.push("tbody_open","tbody",1).map=m=[e+2,0]),t.push("tr_open","tr",1).map=[r,r+1];for(let e=0;e=4))break;i++,r=i}t.line=r;const o=t.push("code_block","code",0);return o.content=t.getLines(e,r,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}],["fence",function(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(r+3>o)return!1;const s=t.src.charCodeAt(r);if(126!==s&&96!==s)return!1;let a=r;r=t.skipChars(r,s);let l=r-a;if(l<3)return!1;const u=t.src.slice(a,r),c=t.src.slice(r,o);if(96===s&&c.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let d=e,h=!1;for(;d++,!(d>=n||(r=a=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],r=4||(r=t.skipChars(r,s),r-a=4)return!1;if(62!==t.src.charCodeAt(r))return!1;if(i)return!0;const a=[],l=[],u=[],c=[],d=t.md.block.ruler.getRules("blockquote"),h=t.parentType;t.parentType="blockquote";let p,g=!1;for(p=e;p=o)break;if(62===t.src.charCodeAt(r++)&&!e){let e,n,i=t.sCount[p]+1;32===t.src.charCodeAt(r)?(r++,i++,n=!1,e=!0):9===t.src.charCodeAt(r)?(e=!0,(t.bsCount[p]+i)%4==3?(r++,i++,n=!1):n=!0):e=!1;let s=i;for(a.push(t.bMarks[p]),t.bMarks[p]=r;r=o,l.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(e?1:0),u.push(t.sCount[p]),t.sCount[p]=s-i,c.push(t.tShift[p]),t.tShift[p]=r-t.bMarks[p];continue}if(g)break;let i=!1;for(let e=0,r=d.length;e";const v=[e,0];f.map=v,t.md.block.tokenize(t,e,p),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=s,t.parentType=h,v[1]=t.line;for(let n=0;n=4)return!1;let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;o=4)return!1;if(t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]=t.blkIndent&&(p=!0),(h=ne(t,l))>=0){if(c=!0,s=t.bMarks[l]+t.tShift[l],d=Number(t.src.slice(s,h-1)),p&&1!==d)return!1}else{if(!((h=ee(t,l))>=0))return!1;c=!1}if(p&&t.skipSpaces(h)>=t.eMarks[l])return!1;if(i)return!0;const g=t.src.charCodeAt(h-1),m=t.tokens.length;c?(a=t.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=t.push("bullet_list_open","ul",1);const f=[l,0];a.map=f,a.markup=String.fromCharCode(g);let v=!1;const b=t.md.block.ruler.getRules("list"),y=t.parentType;for(t.parentType="list";l=r?1:i-e,p>4&&(p=1);const m=e+p;a=t.push("list_item_open","li",1),a.markup=String.fromCharCode(g);const f=[l,0];a.map=f,c&&(a.info=t.src.slice(s,h-1));const y=t.tight,_=t.tShift[l],C=t.sCount[l],w=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=m,t.tight=!0,t.tShift[l]=d-t.bMarks[l],t.sCount[l]=i,d>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),t.tight&&!v||(u=!1),v=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=w,t.tShift[l]=_,t.sCount[l]=C,t.tight=y,a=t.push("list_item_close","li",-1),a.markup=String.fromCharCode(g),l=t.line,f[1]=l,l>=n)break;if(t.sCount[l]=4)break;let x=!1;for(let e=0,i=b.length;e=4)return!1;if(91!==t.src.charCodeAt(o))return!1;for(;++o3)continue;if(t.sCount[a]<0)continue;let e=!1;for(let n=0,i=u.length;n=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(r))return!1;let s=t.src.slice(r,o),a=0;for(;a=4)return!1;let s=t.src.charCodeAt(r);if(35!==s||r>=o)return!1;let a=1;for(s=t.src.charCodeAt(++r);35===s&&r6||rr&&ft(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const u=t.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[e,t.line];const c=t.push("inline","",0);return c.content=t.src.slice(r,o).trim(),c.map=[e,t.line],c.children=[],t.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,n){const i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const r=t.parentType;t.parentType="paragraph";let o,s=0,a=e+1;for(;a3)continue;if(t.sCount[a]>=t.blkIndent){let e=t.bMarks[a]+t.tShift[a];const n=t.eMarks[a];if(e=n))){s=61===o?1:2;break}}if(t.sCount[a]<0)continue;let e=!1;for(let r=0,o=i.length;r3)continue;if(t.sCount[o]<0)continue;let e=!1;for(let r=0,s=i.length;r=n))&&!(t.sCount[s]=o){t.line=n;break}const e=t.line;let l=!1;for(let o=0;o=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),s=t.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i},de.prototype.scanDelims=function(t,e){let n,i,r=!0,o=!0;const s=this.posMax,a=this.src.charCodeAt(t),l=t>0?this.src.charCodeAt(t-1):32;let u=t;for(;u?@[]^_`{|}~-".split("").forEach((function(t){me[t.charCodeAt(0)]=1}));const ve={tokenize:function(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e)return!1;if(126!==i)return!1;const r=t.scanDelims(t.pos,!0);let o=r.length;const s=String.fromCharCode(i);if(o<2)return!1;let a;o%2&&(a=t.push("text","",0),a.content=s,o--);for(let e=0;e=0;n--){const i=e[n];if(95!==i.marker&&42!==i.marker)continue;if(-1===i.end)continue;const r=e[i.end],o=n>0&&e[n-1].end===i.end+1&&e[n-1].marker===i.marker&&e[n-1].token===i.token-1&&e[i.end+1].token===r.token+1,s=String.fromCharCode(i.marker),a=t.tokens[i.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="";const l=t.tokens[r.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[i.end+1].token].content="",n--)}}const ye={tokenize:function(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e)return!1;if(95!==i&&42!==i)return!1;const r=t.scanDelims(t.pos,42===i);for(let e=0;e\x00-\x20]*)$/,we=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xe=/^&([a-z][a-z0-9]{1,31});/i;function Me(t){const e={},n=t.length;if(!n)return;let i=0,r=-2;const o=[];for(let s=0;sa;l-=o[l]+1){const e=t[l];if(e.marker===n.marker&&e.open&&e.end<0){let i=!1;if((e.close||n.open)&&(e.length+n.length)%3==0&&(e.length%3==0&&n.length%3==0||(i=!0)),!i){const i=l>0&&!t[l-1].open?o[l-1]+1:0;o[s]=s-l+i,o[l]=i,n.open=!1,e.end=s,e.close=!1,u=-1,r=-2;break}}}-1!==u&&(e[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const Oe=[["text",function(t,e){let n=t.pos;for(;n0)return!1;const n=t.pos;if(n+3>t.posMax)return!1;if(58!==t.src.charCodeAt(n))return!1;if(47!==t.src.charCodeAt(n+1))return!1;if(47!==t.src.charCodeAt(n+2))return!1;const i=t.pending.match(ge);if(!i)return!1;const r=i[1],o=t.md.linkify.matchAtStart(t.src.slice(n-r.length));if(!o)return!1;let s=o.url;if(s.length<=r.length)return!1;s=s.replace(/\*+$/,"");const a=t.md.normalizeLink(s);if(!t.md.validateLink(a))return!1;if(!e){t.pending=t.pending.slice(0,-r.length);const e=t.push("link_open","a",1);e.attrs=[["href",a]],e.markup="linkify",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(s);const n=t.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return t.pos+=s.length-r.length,!0}],["newline",function(t,e){let n=t.pos;if(10!==t.src.charCodeAt(n))return!1;const i=t.pending.length-1,r=t.posMax;if(!e)if(i>=0&&32===t.pending.charCodeAt(i))if(i>=1&&32===t.pending.charCodeAt(i-1)){let e=i-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n=i)return!1;let r=t.src.charCodeAt(n);if(10===r){for(e||t.push("hardbreak","br",0),n++;n=55296&&r<=56319&&n+1=56320&&e<=57343&&(o+=t.src[n+1],n++)}const s="\\"+o;if(!e){const e=t.push("text_special","",0);r<256&&0!==me[r]?e.content=o:e.content=s,e.markup=s,e.info="escape"}return t.pos=n+1,!0}],["backticks",function(t,e){let n=t.pos;if(96!==t.src.charCodeAt(n))return!1;const i=n;n++;const r=t.posMax;for(;n=d)return!1;if(l=g,r=t.md.helpers.parseLinkDestination(t.src,g,t.posMax),r.ok){for(s=t.md.normalizeLink(r.str),t.md.validateLink(s)?g=r.pos:s="",l=g;g=d||41!==t.src.charCodeAt(g))&&(u=!0),g++}if(u){if(void 0===t.env.references)return!1;if(g=0?i=t.src.slice(l,g++):g=p+1):g=p+1,i||(i=t.src.slice(h,p)),o=t.env.references[_t(i)],!o)return t.pos=c,!1;s=o.href,a=o.title}if(!e){t.pos=h,t.posMax=p;const e=[["href",s]];t.push("link_open","a",1).attrs=e,a&&e.push(["title",a]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=g,t.posMax=d,!0}],["image",function(t,e){let n,i,r,o,s,a,l,u,c="";const d=t.pos,h=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;const p=t.pos+2,g=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(g<0)return!1;if(o=g+1,o=h)return!1;for(u=o,a=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),a.ok&&(c=t.md.normalizeLink(a.str),t.md.validateLink(c)?o=a.pos:c=""),u=o;o=h||41!==t.src.charCodeAt(o))return t.pos=d,!1;o++}else{if(void 0===t.env.references)return!1;if(o=0?r=t.src.slice(u,o++):o=g+1):o=g+1,r||(r=t.src.slice(p,g)),s=t.env.references[_t(r)],!s)return t.pos=d,!1;c=s.href,l=s.title}if(!e){i=t.src.slice(p,g);const e=[];t.md.inline.parse(i,t.md,t.env,e);const n=t.push("image","img",0),r=[["src",c],["alt",""]];n.attrs=r,n.children=e,n.content=i,l&&r.push(["title",l])}return t.pos=o,t.posMax=h,!0}],["autolink",function(t,e){let n=t.pos;if(60!==t.src.charCodeAt(n))return!1;const i=t.pos,r=t.posMax;for(;;){if(++n>=r)return!1;const e=t.src.charCodeAt(n);if(60===e)return!1;if(62===e)break}const o=t.src.slice(i+1,n);if(Ce.test(o)){const n=t.md.normalizeLink(o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);const i=t.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return t.pos+=o.length+2,!0}if(_e.test(o)){const n=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);const i=t.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return t.pos+=o.length+2,!0}return!1}],["html_inline",function(t,e){if(!t.md.options.html)return!1;const n=t.posMax,i=t.pos;if(60!==t.src.charCodeAt(i)||i+2>=n)return!1;const r=t.src.charCodeAt(i+1);if(33!==r&&63!==r&&47!==r&&!function(t){const e=32|t;return e>=97&&e<=122}(r))return!1;const o=t.src.slice(i).match(oe);if(!o)return!1;if(!e){const e=t.push("html_inline","",0);e.content=o[0],s=e.content,/^\s]/i.test(s)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(e.content)&&t.linkLevel--}var s;return t.pos+=o[0].length,!0}],["entity",function(t,e){const n=t.pos,i=t.posMax;if(38!==t.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===t.src.charCodeAt(n+1)){const i=t.src.slice(n).match(we);if(i){if(!e){const e="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),n=t.push("text_special","",0);n.content=nt(e)?it(e):it(65533),n.markup=i[0],n.info="entity"}return t.pos+=i[0].length,!0}}else{const i=t.src.slice(n).match(xe);if(i){const n=G(i[0]);if(n!==i[0]){if(!e){const e=t.push("text_special","",0);e.content=n,e.markup=i[0],e.info="entity"}return t.pos+=i[0].length,!0}}}return!1}]],ke=[["balance_pairs",function(t){const e=t.tokens_meta,n=t.tokens_meta.length;Me(t.delimiters);for(let t=0;t0&&i++,"text"===r[e].type&&e+1=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;s||t.pos++,o[e]=t.pos},Se.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,i=t.posMax,r=t.md.options.maxNesting;for(;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Se.prototype.parse=function(t,e,n,i){const r=new this.State(t,e,n,i);this.tokenize(r);const o=this.ruler2.getRules(""),s=o.length;for(let t=0;t=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},Fe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ne="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ze(t){const e=t.re=function(t){const e={};return t=t||{},e.src_Any=S.source,e.src_Cc=P.source,e.src_Z=I.source,e.src_P=A.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}(t.__opts__),n=t.__tlds__.slice();function i(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||n.push(Fe),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");const r=[];function o(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){const n=t.__schemas__[e];if(null===n)return;const i={validate:null,link:null};if(t.__compiled__[e]=i,"[object Object]"===Ae(n))return"[object RegExp]"!==Ae(n.validate)?Ee(n.validate)?i.validate=n.validate:o(e,n):i.validate=function(t){return function(e,n){const i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}(n.validate),void(Ee(n.normalize)?i.normalize=n.normalize:n.normalize?o(e,n):i.normalize=function(t,e){e.normalize(t)});"[object String]"!==Ae(n)?o(e,n):r.push(e)})),r.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};const s=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(Ie).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function Re(t,e){const n=t.__index__,i=t.__last_index__,r=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function Be(t,e){const n=new Re(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function He(t,e){if(!(this instanceof He))return new He(t,e);var n;e||(n=t,Object.keys(n||{}).reduce((function(t,e){return t||De.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=Te({},De,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Te({},Le,t),this.__compiled__={},this.__tlds__=Ne,this.__tlds_replaced__=!1,this.re={},ze(this)}He.prototype.add=function(t,e){return this.__schemas__[t]=e,ze(this),this},He.prototype.set=function(t){return this.__opts__=Te(this.__opts__,t),this},He.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,n,i,r,o,s,a,l,u;if(this.re.schema_test.test(t))for(a=this.re.schema_search,a.lastIndex=0;null!==(e=a.exec(t));)if(r=this.testSchemaAt(t,e[2],a.lastIndex),r){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(i=t.match(this.re.email_fuzzy))&&(o=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0},He.prototype.pretest=function(t){return this.re.pretest.test(t)},He.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},He.prototype.match=function(t){const e=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(Be(this,n)),n=this.__last_index__);let i=n?t.slice(n):t;for(;this.test(i);)e.push(Be(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return e.length?e:null},He.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const n=this.testSchemaAt(t,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,Be(this,0)):null},He.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse(),ze(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ze(this),this)},He.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},He.prototype.onCompile=function(){};const Ve=He,Ye=2147483647,je=36,Ze=/^xn--/,$e=/[^\0-\x7F]/,Ue=/[\x2E\u3002\uFF0E\uFF61]/g,Ge={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},qe=Math.floor,Je=String.fromCharCode;function Qe(t){throw new RangeError(Ge[t])}function We(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]);const r=function(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}((t=t.replace(Ue,".")).split("."),e).join(".");return i+r}function Ke(t){const e=[];let n=0;const i=t.length;for(;n=55296&&r<=56319&&n>1,t+=qe(t/e);t>455;i+=je)t=qe(t/35);return qe(i+36*t/(t+38))},en=function(t){const e=[],n=t.length;let i=0,r=128,o=72,s=t.lastIndexOf("-");s<0&&(s=0);for(let n=0;n=128&&Qe("not-basic"),e.push(t.charCodeAt(n));for(let l=s>0?s+1:0;l=n&&Qe("invalid-input");const s=(a=t.charCodeAt(l++))>=48&&a<58?a-48+26:a>=65&&a<91?a-65:a>=97&&a<123?a-97:je;s>=je&&Qe("invalid-input"),s>qe((Ye-i)/e)&&Qe("overflow"),i+=s*e;const u=r<=o?1:r>=o+26?26:r-o;if(sqe(Ye/c)&&Qe("overflow"),e*=c}const u=e.length+1;o=tn(i-s,u,0==s),qe(i/u)>Ye-r&&Qe("overflow"),r+=qe(i/u),i%=u,e.splice(i++,0,r)}var a;return String.fromCodePoint(...e)},nn=function(t){const e=[],n=(t=Ke(t)).length;let i=128,r=0,o=72;for(const n of t)n<128&&e.push(Je(n));const s=e.length;let a=s;for(s&&e.push("-");a=i&&eqe((Ye-r)/l)&&Qe("overflow"),r+=(n-i)*l,i=n;for(const n of t)if(nYe&&Qe("overflow"),n===i){let t=r;for(let n=je;;n+=je){const i=n<=o?1:n>=o+26?26:n-o;if(tString.fromCodePoint(...t)},decode:en,encode:nn,toASCII:function(t){return We(t,(function(t){return $e.test(t)?"xn--"+nn(t):t}))},toUnicode:function(t){return We(t,(function(t){return Ze.test(t)?en(t.slice(4).toLowerCase()):t}))}},on={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},sn=/^(vbscript|javascript|file|data):/,an=/^data:image\/(gif|png|jpeg|webp);/;function ln(t){const e=t.trim().toLowerCase();return!sn.test(e)||an.test(e)}const un=["http:","https:","mailto:"];function cn(t){const e=k(t,!0);if(e.hostname&&(!e.protocol||un.indexOf(e.protocol)>=0))try{e.hostname=rn.toASCII(e.hostname)}catch(t){}return h(p(e))}function dn(t){const e=k(t,!0);if(e.hostname&&(!e.protocol||un.indexOf(e.protocol)>=0))try{e.hostname=rn.toUnicode(e.hostname)}catch(t){}return u(p(e),u.defaultChars+"%")}function hn(t,e){if(!(this instanceof hn))return new hn(t,e);e||W(t)||(e=t||{},t="default"),this.inline=new Pe,this.block=new ce,this.core=new Qt,this.renderer=new St,this.linkify=new Ve,this.validateLink=ln,this.normalizeLink=cn,this.normalizeLinkText=dn,this.utils=o,this.helpers=tt({},s),this.options={},this.configure(t),e&&this.set(e)}hn.prototype.set=function(t){return tt(this.options,t),this},hn.prototype.configure=function(t){const e=this;if(W(t)){const e=t;if(!(t=on[e]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)})),this},hn.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));const i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},hn.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));const i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},hn.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},hn.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},hn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},hn.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},hn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const pn=hn},28699:(t,e,n)=>{n.d(e,{y$:()=>w,_l:()=>x});var i=n(74788),r=n(26215),o=n(59193),s=n(40205),a=n(21571),l=n(97968),u=n(42569),c=n(45435),d=n(88002),h=n(15257),p=n(43190),g=n(68307),m=n(5304),f=n(12057),v=n(91211);const b=new i.OlP("HIGHLIGHT_OPTIONS");let y=(()=>{class t{constructor(t,e,n){var i;this.doc=t,this._options=n,this._ready=new r.X(null),this.ready=this._ready.asObservable().pipe((0,c.h)((t=>!!t)),(0,d.U)((t=>t)),(0,h.q)(1)),(0,f.NF)(e)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe((0,p.w)((e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe((0,g.b)((()=>this._ready.next(e))))):(this._ready.next(e),o.E))),(0,m.K)((t=>(console.error("[HLJS] ",t),o.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,s._)((()=>"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,s._)((()=>"The highlighting languages were imported they are not needed!"));if(this._options.coreLibraryLoader&&!this._options.languages)return(0,s._)((()=>"The highlighting languages were not imported!"));if(!this._options.coreLibraryLoader&&this._options.languages)return(0,s._)((()=>"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,p.w)((t=>this._loadLanguages(t))))}return(0,s._)((()=>"Highlight.js library was not imported!"))}_loadLanguages(t){const e=Object.entries(this._options.languages).map((([e,n])=>_(n()).pipe((0,g.b)((n=>t.registerLanguage(e,n))))));return(0,a.$R)(...e).pipe((0,d.U)((()=>t)))}loadCoreLibrary(){return _(this._options.coreLibraryLoader())}loadFullLibrary(){return _(this._options.fullLibraryLoader())}loadLineNumbers(){return _(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(f.K0),i.LFG(i.Lbi),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const _=t=>(0,l.D)(t).pipe((0,c.h)((t=>!!t&&!!t.default)),(0,d.U)((t=>t.default)));let C=(()=>{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,d.U)((i=>i.highlight(t,{language:e,ignoreIllegals:n}))))}highlightAuto(t,e){return this._loader.ready.pipe((0,d.U)((n=>n.highlightAuto(t,e))))}highlightElement(t){return this._loader.ready.pipe((0,d.U)((e=>e.highlightElement(t))))}highlightAll(){return this._loader.ready.pipe((0,d.U)((t=>t.highlightAll())))}configure(t){return this._loader.ready.pipe((0,d.U)((e=>e.configure(t))))}registerLanguage(t,e){return this._loader.ready.pipe((0,g.b)((n=>n.registerLanguage(t,e))))}unregisterLanguage(t){return this._loader.ready.pipe((0,g.b)((e=>e.unregisterLanguage(t))))}registerAliases(t,{languageName:e}){return this._loader.ready.pipe((0,g.b)((n=>n.registerAliases(t,{languageName:e}))))}listLanguages(){return this._loader.ready.pipe((0,d.U)((t=>t.listLanguages())))}getLanguage(t){return this._loader.ready.pipe((0,d.U)((e=>e.getLanguage(t))))}safeMode(){return this._loader.ready.pipe((0,d.U)((t=>t.safeMode())))}debugMode(){return this._loader.ready.pipe((0,d.U)((t=>t.debugMode())))}lineNumbersBlock(t){return this._loader.ready.pipe((0,c.h)((t=>!!t.lineNumbersBlock)),(0,g.b)((e=>e.lineNumbersBlock(t))))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),w=(()=>{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(),u.Z.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){u.Z.schedule((()=>this._nativeElement.textContent=t))}setInnerHTML(t){u.Z.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(C),i.Y36(v.H7),i.Y36(b,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})(),x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},97582:(t,e,n)=>{function i(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=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))}n.d(e,{_T:()=>i,gn:()=>r,mG:()=>o}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},t=>{t(t.s=2005)}]); \ No newline at end of file diff --git a/main.579c0449bcd10ef15f51.js b/main.579c0449bcd10ef15f51.js deleted file mode 100644 index 304744756..000000000 --- a/main.579c0449bcd10ef15f51.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunktui_editor=self.webpackChunktui_editor||[]).push([[179],{56083:(t,e,n)=>{n.d(e,{l3:()=>o,_j:()=>i,LC:()=>r,ZN:()=>m,jt:()=>a,pV:()=>d,IO:()=>h,vP:()=>l,EY:()=>p,oB:()=>u,eR:()=>c,X$:()=>s,ZE:()=>f,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 u(t){return{type:6,styles:t,offset:null}}function c(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t=null){return{type:9,options:t}}function h(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 g(t){Promise.resolve(null).then(t)}class m{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(){g((()=>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 f{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?g((()=>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:()=>k,Th:()=>re,NH:()=>Mt,uL:()=>_e,nV:()=>O,DT:()=>we,Ar:()=>Ot,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 u=-1,c=null;if(r.forEach((t=>{const n=t.offset,r=n==u,d=r&&c||{};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)}d[r]=l})),r||l.push(d),c=d,u=n})),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart((()=>i(n&&c(n,"start",t))));break;case"done":t.onDone((()=>i(n&&c(n,"done",t))));break;case"destroy":t.onDestroy((()=>i(n&&c(n,"destroy",t))))}}function c(t,e,n){const i=n.totalTime,r=!!n.disabled,o=d(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 d(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function h(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 g=(t,e)=>!1,m=(t,e)=>!1,f=(t,e,n)=>[];const v=s();(v||"undefined"!=typeof Element)&&(g=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),m=(()=>{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]):m}})(),f=(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 O=(()=>{class t{validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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})(),k=(()=>{class t{}return t.NOOP=new O,t})();const S=1e3,P="ng-enter",T="ng-leave",A="ng-trigger",E=".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:F(parseFloat(e[1]),e[2])}function F(t,e){return"s"===e?t*S:t}function N(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=F(parseFloat(n[1]),n[2]);const a=n[3];null!=a&&(o=F(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 z(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 z(t,n);return n}function B(t,e,n){return n?e+":"+n+";":""}function H(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()&&H(t))}function Y(t,e){t.style&&(Object.keys(e).forEach((e=>{const n=J(e);t.style[n]=""})),s()&&H(t))}function j(t){return Array.isArray(t)?1==t.length?t[0]:(0,i.vP)(t):t}const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(t){let e=[];if("string"==typeof t){let n;for(;n=Z.exec(t);)e.push(n[1]);Z.lastIndex=0}return e}function U(t,e,n){const i=t.toString(),r=i.replace(Z,((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 G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const q=/-+([a-z0-9])/g;function J(t){return t.replace(q,((...t)=>t[1].toUpperCase()))}function Q(t,e){return 0===t||0===e}function W(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 ut(e);return this._resetContextStyleTimingState(n),K(this,j(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(ct(t)){const e=t;Object.keys(e).forEach((t=>{$(e[t]).forEach((t=>{o.hasOwnProperty(t)||r.add(t)}))}))}})),r.size){const n=G(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=K(this,j(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:dt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map((t=>K(this,t,e))),options:dt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map((t=>{e.currentTime=n;const r=K(this,t,e);return i=Math.max(i,e.currentTime),r}));return e.currentTime=i,{type:3,steps:r,options:dt(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 ht(N(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some((t=>"{"==t.charAt(0)&&"{"==t.charAt(1)))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||N(i,e),ht(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(ct(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=$(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(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),u=0;return null!=l&&(i++,u=n.offset=l),s=s||u<0||u>1,o=o||u0&&i{const o=c>0?i==d?1:c*i:r[i],s=o*g;e.currentTime=h+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:K(this,j(t.animation),e),options:dt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:dt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:dt(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,E).replace(/@\w+/g,(t=>E+"-"+t.substr(1))).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,h(e.collectedStyles,e.currentQuerySelector,{});const s=K(this,j(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:dt(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"}:N(t.timings,e.errors,!0);return{type:12,animation:K(this,j(t.animation),e),timings:n,options:null}}}class ut{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 ct(t){return!Array.isArray(t)&&"object"==typeof t}function dt(t){var e;return t?(t=z(t)).params&&(t.params=(e=t.params)?z(e):null):t={},t}function ht(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 gt{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 mt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function vt(t,e,n,i,r,o={},s={},a,l,u=[]){return(new bt).buildKeyframes(t,e,n,i,r,o,s,a,l,u)}class bt{buildKeyframes(t,e,n,i,r,o,s,a,l,u=[]){l=l||new gt;const c=new _t(t,e,l,i,r,u,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),K(this,n,c);const d=c.timelines.filter((t=>t.containsAnimation()));if(d.length&&Object.keys(s).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,c.errors,a)}return d.length?d.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),K(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=>K(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),K(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 N(e.params?U(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),K(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 u=l.currentTime;K(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const yt={};class _t{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 Ct(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]=U(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 _t(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 wt(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(mt,"."+this._enterClassName)).replace(ft,"."+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 Ct{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 Ct(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=U(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?G(t.values()):[],s=e.size?G(e.values()):[];if(n){const t=r[0],e=z(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 wt extends Ct{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 u=t.length-1;for(let i=1;i<=u;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 Mt{}class Ot extends Mt{normalizePropertyName(t,e){return J(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(kt[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 kt=(()=>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 St(t,e,n,i,r,o,s,a,l,u,c,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}const Pt={};class Tt{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,u){const c=[],d=this.ast.options&&this.ast.options.params||Pt,p=s&&s.params||Pt,g=this.buildStyles(n,p,c),m=a&&a.params||Pt,f=this.buildStyles(i,m,c),v=new Set,b=new Map,y=new Map,_="void"===i,C={params:Object.assign(Object.assign({},d),m)},w=u?[]:vt(t,e,this.ast.animation,r,o,g,f,C,l,c);let x=0;if(w.forEach((t=>{x=Math.max(t.duration+t.delay,x)})),c.length)return St(e,this._triggerName,n,i,_,g,f,[],[],b,y,x,c);w.forEach((t=>{const n=t.element,i=h(b,n,{});t.preStyleProps.forEach((t=>i[t]=!0));const r=h(y,n,{});t.postStyleProps.forEach((t=>r[t]=!0)),n!==e&&v.add(n)}));const M=G(v.values());return St(e,this._triggerName,n,i,_,g,f,w,M,b,y,x)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=z(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=U(o,i,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o}))}})),n}}class Et{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 Tt(t,e,this.states))})),this.fallbackTransition=(i=t,r=this.states,this._normalizer,new Tt(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 gt;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,P,T,{},{},n,Dt,r),s.forEach((t=>{const e=h(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 u=a(s.map((t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((()=>this.destroy(t))),this.players.push(u),u}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=d(e,"","","");return u(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 Ft="ng-animate-queued",Nt="ng-animate-disabled",zt=".ng-animate-disabled",Rt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ht={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt="__ng_removed";class Yt{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=z(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 jt="void",Zt=new Yt(jt);class $t{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,Xt(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=h(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=h(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Xt(t,A),Xt(t,A+"-"+e),a[e]=Zt),()=>{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 Gt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Xt(t,A),Xt(t,A+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new Yt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=Zt),l.value!==jt&&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{Y(t,n),V(t,i)}))}return}const u=h(this._engine.playersByElement,t,[]);u.forEach((t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()}));let c=r.matchTransition(a.value,l.value,t,l.params),d=!1;if(!c){if(!i)return;c=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:o,isFallbackTransition:d}),d||(Xt(t,Ft),o.onStart((()=>{te(t,Ft)}))),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),u.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,E,!0);n.forEach((t=>{if(t[Vt])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,jt,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]||Zt,a=new Yt(jt),l=new Gt(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[Vt];i&&i!==Bt||(n.afterFlush((()=>this.clearElementCache(t))),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Xt(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=d(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(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 Ut{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 $t(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),Xt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),te(t,Nt))}removeNode(t,e,n,i){if(qt(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[Vt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return qt(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,E,!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[Vt];if(e&&e.setForRemoval){if(t[Vt]=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,zt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,zt,!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 gt,r=[],o=new Map,s=[],l=new Map,u=new Map,c=new Map,d=new Set;this.disabledNodes.forEach((t=>{d.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let t=0;t{const n=P+v++;f.set(e,n),t.forEach((t=>Xt(t,n)))}));const b=[],y=new Set,_=new Set;for(let t=0;ty.add(t))):_.add(e))}const C=new Map,w=Wt(g,Array.from(y));w.forEach(((t,e)=>{const n=T+v++;C.set(e,n),t.forEach((t=>Xt(t,n)))})),t.push((()=>{m.forEach(((t,e)=>{const n=f.get(e);t.forEach((t=>te(t,n)))})),w.forEach(((t,e)=>{const n=C.get(e);t.forEach((t=>te(t,n)))})),b.forEach((t=>{this.processLeaveNode(t)}))}));const x=[],M=[];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[Vt];if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,i),a=C.get(i),d=f.get(i),g=this._buildInstruction(t,n,d,a,o);if(g.errors&&g.errors.length)return void M.push(g);if(o)return e.onStart((()=>Y(i,g.fromStyles))),e.onDestroy((()=>V(i,g.toStyles))),void r.push(e);if(t.isFallbackTransition)return e.onStart((()=>Y(i,g.fromStyles))),e.onDestroy((()=>V(i,g.toStyles))),void r.push(e);g.timelines.forEach((t=>t.stretchStartingKeyframe=!0)),n.append(i,g.timelines);const m={instruction:g,player:e,element:i};s.push(m),g.queriedElements.forEach((t=>h(l,t,[]).push(e))),g.preStyleProps.forEach(((t,e)=>{const n=Object.keys(t);if(n.length){let t=u.get(e);t||u.set(e,t=new Set),n.forEach((e=>t.add(e)))}})),g.postStyleProps.forEach(((t,e)=>{const n=Object.keys(t);let i=c.get(e);i||c.set(e,i=new Set),n.forEach((t=>i.add(t)))}))}));if(M.length){const t=[];M.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 O=new Map,k=new Map;s.forEach((t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))})),r.forEach((t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((t=>{h(O,e,[]).push(t),t.destroy()}))}));const S=b.filter((t=>ie(t,u,c))),A=new Map;Qt(A,this.driver,_,c,i.l3).forEach((t=>{ie(t,u,c)&&S.push(t)}));const E=new Map;m.forEach(((t,e)=>{Qt(E,this.driver,new Set(t),u,i.k1)})),S.forEach((t=>{const e=A.get(t),n=E.get(t);A.set(t,Object.assign(Object.assign({},e),n))}));const I=[],L=[],F={};s.forEach((t=>{const{element:e,player:i,instruction:s}=t;if(n.has(e)){if(d.has(e))return i.onDestroy((()=>V(e,s.toStyles))),i.disabled=!0,i.overrideTotalTime(s.totalTime),void r.push(i);let t=F;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach((e=>k.set(e,t)))}const n=this._buildAnimation(i.namespaceId,s,O,o,E,A);if(i.setRealPlayer(n),t===F)I.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else Y(e,s.fromStyles),i.onDestroy((()=>V(e,s.toStyles))),L.push(i),d.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!t.destroyed));r.length?ee(this,e,r):this.processLeaveNode(e)}return b.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[Vt];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==jt;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=h(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)}))}Y(r,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const u=e.triggerName,c=e.element,d=[],p=new Set,g=new Set,m=e.timelines.map((e=>{const a=e.element;p.add(a);const h=a[Vt];if(h&&h.removedBeforeQueried)return new i.ZN(e.duration,e.delay);const m=a!==c,f=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),b=s.get(a),y=l(this.driver,this._normalizer,0,e.keyframes,v,b),_=this._buildPlayer(e,y,f);if(e.subTimeline&&r&&g.add(a),m){const e=new Gt(t,u,a);e.setRealPlayer(_),d.push(e)}return _}));d.forEach((t=>{h(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=>Xt(t,I)));const f=a(m);return f.onDestroy((()=>{p.forEach((t=>te(t,I))),V(c,e.toStyles)})),g.forEach((t=>{h(r,t,[]).push(f)})),f}_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 Gt{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=>u(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){h(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 qt(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 Qt(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[Vt]=Ht,s.push(i))})),t.set(i,o)}));let a=0;return n.forEach((t=>Jt(t,o[a++]))),s}function Wt(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 Kt="$$classes";function Xt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Kt];n||(n=t[Kt]={}),n[e]=!0}}function te(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Kt];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 Ut(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 Et(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&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Y(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Y(this._element,this._endStyles),this._endStyles=null),V(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(),me(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ve(t,"").split(","),i=ge(n,e);i>=0&&(n.splice(i,1),fe(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){fe(t,"PlayState",n,pe(t,e))}function pe(t,e){const n=ve(t,"");return n.indexOf(",")>0?ge(n.split(","),e):ge([n],e)}function ge(t,e){for(let n=0;n=0)return n;return-1}function me(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function fe(t,e,n,i){const r=ue+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[ue+e]||""}class be{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 de(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]:X(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=M(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 _e{constructor(){this._count=0}validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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=>M(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 be)),l={};Q(n,i)&&a.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const u=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=W(t,e,l));if(0==n)return new ye(t,u);const c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,c,e),h=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);h.appendChild(d);const p=oe(t,e),g=new be(t,e,c,n,i,r,u,p);return g.onDestroy((()=>{var t;(t=d).parentNode.removeChild(t)})),g}}class Ce{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]:X(this.element,e))})),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((t=>t())),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Me().toString()),this._cssKeyframesDriver=new _e}validateStyleProperty(t){return _(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return w(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={},u=o.filter((t=>t instanceof Ce));Q(n,i)&&u.forEach((t=>{let e=t.currentSnapshot;Object.keys(e).forEach((t=>l[t]=e[t]))}));const c=oe(t,e=W(t,e=e.map((t=>R(t,!1))),l));return new Ce(t,e,a,c)}}function xe(){return"function"==typeof Me()}function Me(){return o()&&Element.prototype.animate||{}}},50506:(t,e,n)=>{n.d(e,{i3:()=>l,TU:()=>s,Iq:()=>u});var i=n(12057),r=n(74788);class o{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 s=(()=>{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 o(t,this._document)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({factory:function(){return new t(r.LFG(i.K0))},token:t,providedIn:"root"}),t})();const a=new r.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let l=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new r.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)(r.Y36(s),r.Y36(r.R0b),r.Y36(a,8))},t.ɵdir=r.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&r.NdJ("click",(function(){return e.copy()}))},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},12057:(t,e,n)=>{n.d(e,{mr:()=>_,Ov:()=>nt,ez:()=>ct,K0:()=>l,Do:()=>w,Gx:()=>ot,Ts:()=>st,Nd:()=>at,V_:()=>d,Ye:()=>x,S$:()=>b,i8:()=>it,mk:()=>R,$G:()=>B,sg:()=>V,O5:()=>j,PC:()=>J,RF:()=>G,n9:()=>q,tP:()=>Q,b0:()=>C,Zx:()=>ut,lw:()=>u,EM:()=>mt,JF:()=>bt,NF:()=>pt,PM:()=>gt,w_:()=>a,bD:()=>dt,q:()=>o,Mx:()=>z,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 u=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=(0,i.Yz7)({factory:c,token:t,providedIn:"platform"}),t})();function c(){return(0,i.LFG)(h)}const d=new i.OlP("Location Initialized");let h=(()=>{class t extends u{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:g,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function g(){return new h((0,i.LFG)(l))}function m(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 f(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 b=(()=>{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 C((0,i.LFG)(u),e&&e.origin||"")}const _=new i.OlP("appBaseHref");let C=(()=>{class t extends b{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 m(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(u),i.LFG(_,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),w=(()=>{class t extends b{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=m(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(u),i.LFG(_,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=f(O(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,O(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(b),i.LFG(u))},t.normalizeQueryParams=v,t.joinWithSlash=m,t.stripTrailingSlash=f,t.ɵprov=(0,i.Yz7)({factory:M,token:t,providedIn:"root"}),t})();function M(){return new x((0,i.LFG)(b),(0,i.LFG)(u))}function O(t){return t.replace(/\/index.html$/,"")}var k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Percent=1]="Percent",k[k.Currency=2]="Currency",k[k.Scientific=3]="Scientific",k))(),S=(()=>((S=S||{})[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S))(),P=(()=>((P=P||{})[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P[1/0]=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P))();function T(t,e){const n=(0,i.cg1)(t),r=n[i.wAp.NumberSymbols][e];if(void 0===r){if(e===P.CurrencyDecimal)return n[i.wAp.NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[i.wAp.NumberSymbols][P.Group]}return r}const A=i.kL8,E=/^(\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 F{}let N=(()=>{class t extends F{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.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 z(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 H{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 V=(()=>{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 H(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new Y(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 Y(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 Y{constructor(t,e){this.record=t,this.view=e}}let j=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Z,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){$("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){$("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 Z{constructor(){this.$implicit=null,this.ngIf=null}}function $(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class U{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 G=(()=>{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 U(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(G,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})(),Q=(()=>{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 W(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class K{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class X{createSubscription(t,e){return t.then(e,(t=>{throw t}))}dispose(t){}onDestroy(t){}}const tt=new X,et=new K;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 W(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 W(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})();const rt=/#/g;let ot=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw W(t,n);return n[function(t,e,n,i){let r=`=${t}`;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}(e,Object.keys(n),this._localization,i)].replace(rt,e.toString())}}return t.ɵfac=function(e){return new(e||t)(i.Y36(F,16))},t.ɵpipe=i.Yjl({name:"i18nPlural",type:t,pure:!0}),t})(),st=(()=>{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})(),at=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=lt}transform(t,e=lt){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 lt(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 u=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&&(u=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}(u));let c=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){const t=o.match(E);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&&(c=L(e)),null!=n&&(d=L(n)),null!=i?h=L(i):null!=n&&d>h&&(h=d)}!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=u?i.pop():l=!1),e>=10?1:0}),0);c&&(i.unshift(c),t.integerLen++)}(u,d,h);let p=u.digits,g=u.integerLen;const m=u.exponent;let f=[];for(l=p.every((t=>!t));g0?f=p.splice(g,p.length):(f=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(T(n,i)),f.length&&(a+=T(n,r)+f.join("")),m&&(a+=T(n,P.Exponential)+"+"+m)}else a=T(n,P.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:F,useClass:N}]}),t})();const dt="browser",ht="server";function pt(t){return t===dt}function gt(t){return t===ht}let mt=(()=>{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=vt(this.window.history)||vt(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 vt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class bt{}},58497:(t,e,n)=>{n.d(e,{eN:()=>A,JF:()=>j});var i=n(12057),r=n(74788),o=n(25917),s=n(29856),a=n(94612),l=n(45435),u=n(88002);class c{}class d{}class h{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 h?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 h;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof h?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 f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const g=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function f(t){return encodeURIComponent(t).replace(g,((t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t}))}function v(t){return`${t}`}class b{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 b({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 _(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function w(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 h),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&&(u=Object.keys(t.setParams).reduce(((e,n)=>e.set(n,t.setParams[n])),u)),new x(n,i,o,{params:u,headers:l,context:c,reportProgress:a,responseType:r,withCredentials:s})}}var M=(()=>((M=M||{})[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M))();class O{constructor(t,e=200,n="OK"){this.headers=t.headers||new h,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 k extends O{constructor(t={}){super(t),this.type=M.ResponseHeader}clone(t={}){return new k({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 O{constructor(t={}){super(t),this.type=M.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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 P extends O{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 T(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 h?n.headers:new h(n.headers),n.params&&(o=n.params instanceof b?n.params:new b({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 S)));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,u.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,u.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,u.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,u.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 b).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,T(n,e))}post(t,e,n={}){return this.request("POST",t,T(n,e))}put(t,e,n={}){return this.request("PUT",t,T(n,e))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(c))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class E{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 F=(()=>{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 h(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 k({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 u=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,u&&(u=!1,l={error:e,text:l})}}u?(e.next(new S({body:l,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new P({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const u=i=>{l||(e.next(o()),l=!0);let r={type:M.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},c=t=>{let n={type:M.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",u),null!==i&&n.upload&&n.upload.addEventListener("progress",c)),n.send(i),e.next({type:M.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",c)),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 N=new r.OlP("XSRF_COOKIE_NAME"),z=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(N))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),H=(()=>{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(z))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{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 E(t,e)),this.backend)}return this.chain.handle(t)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(d),r.LFG(r.zs3))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Y=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:H,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:N,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[H,{provide:I,useExisting:H,multi:!0},{provide:R,useClass:B},{provide:N,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),t})(),j=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:[A,{provide:c,useClass:V},F,{provide:d,useExisting:F}],imports:[[Y.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},74788:(t,e,n)=>{n.d(e,{deG:()=>Nn,tb:()=>Uu,AFp:()=>Vu,ip1:()=>Bu,CZH:()=>Hu,hGG:()=>Hc,z2F:()=>Ac,sBO:()=>kl,Sil:()=>ic,_Vd:()=>Qa,EJc:()=>Ju,SBq:()=>tl,qLn:()=>Rr,vpe:()=>yu,gxx:()=>Xo,tBr:()=>oi,XFs:()=>T,OlP:()=>Fn,zs3:()=>gs,ZZ4:()=>yl,aQg:()=>Cl,soG:()=>qu,YKP:()=>Nl,v3s:()=>Ic,h0i:()=>Fl,PXZ:()=>Oc,R0b:()=>sc,FiY:()=>si,Lbi:()=>$u,g9A:()=>Zu,n_E:()=>Cu,Qsj:()=>il,FYo:()=>nl,JOm:()=>ui,Tiy:()=>ol,q3G:()=>Er,PiD:()=>ai,tp0:()=>li,EAV:()=>Fc,Rgc:()=>El,dDg:()=>pc,DyG:()=>zn,GfV:()=>sl,s_b:()=>Rl,ifc:()=>F,eFA:()=>kc,G48:()=>wc,Gpc:()=>p,f3M:()=>ni,X6Q:()=>Cc,_c5:()=>Rc,VLi:()=>fc,c2e:()=>Gu,zSh:()=>es,wAp:()=>Fa,vHH:()=>f,EiD:()=>Tr,mCW:()=>hr,qzn:()=>er,JVY:()=>ir,pB0:()=>ar,eBb:()=>or,L6k:()=>rr,LAX:()=>sr,cg1:()=>Ia,Tjo:()=>zc,kL8:()=>Da,yhl:()=>nr,dqk:()=>H,sIi:()=>Ms,CqO:()=>qs,QGY:()=>Us,F4k:()=>Gs,RDi:()=>Wt,AaK:()=>c,z3N:()=>tr,qOj:()=>fs,TTD:()=>Yt,_Bn:()=>Ua,xp6:()=>no,uIk:()=>Es,Tol:()=>ha,ekj:()=>da,Suo:()=>Du,Xpm:()=>W,lG2:()=>rt,Yz7:()=>_,cJS:()=>C,oAB:()=>et,Yjl:()=>ot,Y36:()=>Fs,_UZ:()=>Vs,GkF:()=>Zs,BQk:()=>js,ynx:()=>Ys,qZA:()=>Hs,TgZ:()=>Bs,EpF:()=>$s,n5z:()=>An,Ikx:()=>Sa,LFG:()=>ei,$8M:()=>In,$Z:()=>Ns,NdJ:()=>Js,CRH:()=>Lu,kcU:()=>$e,O4$:()=>Ze,oxw:()=>Ks,ALo:()=>uu,lcZ:()=>cu,xi3:()=>du,Dn7:()=>hu,gM2:()=>pu,G7q:()=>gu,Hsn:()=>ea,F$t:()=>ta,Q6J:()=>zs,s9C:()=>na,DdM:()=>Xl,VKq:()=>tu,WLB:()=>eu,l5B:()=>nu,qbA:()=>iu,HTZ:()=>ru,iGM:()=>Eu,MAs:()=>Ls,evT:()=>Vr,Jf7:()=>Hr,CHM:()=>fe,oJD:()=>Ir,uOi:()=>Lr,LSH:()=>Dr,kYT:()=>nt,Udp:()=>ca,d8E:()=>Pa,YNc:()=>Ds,W1O:()=>Ru,_uU:()=>xa,Oqu:()=>Ma,hij:()=>Oa,AsE:()=>ka,Gf:()=>Iu});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 u(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function c(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(c).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 d(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const h=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return c(this())},t}function g(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(h)&&t.__forward_ref__===p}class f 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 b(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 f("201",`No provider for ${b(t)} found${n}`)}function _(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function C(t){return{providers:t.providers||[],imports:t.imports||[]}}function w(t){return x(t,O)||x(t,S)}function x(t,e){return t.hasOwnProperty(e)?t[e]:null}function M(t){return t&&(t.hasOwnProperty(k)||t.hasOwnProperty(P))?t[k]:null}const O=l({ɵprov:l}),k=l({ɵinj:l}),S=l({ngInjectableDef:l}),P=l({ngInjectorDef:l});var T=(()=>((T=T||{})[T.Default=0]="Default",T[T.Host=1]="Host",T[T.Self=2]="Self",T[T.SkipSelf=4]="SkipSelf",T[T.Optional=8]="Optional",T))();let A;function E(t){const e=A;return A=t,e}function I(t,e,n){const i=w(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&T.Optional?null:void 0!==e?e:void y(c(t),"Injector")}function D(t){return{toString:t}.toString()}var L=(()=>((L=L||{})[L.OnPush=0]="OnPush",L[L.Default=1]="Default",L))(),F=(()=>((F=F||{})[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",F))();const N="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=N||B||z||R,V={},Y=[],j=l({ɵcmp:l}),Z=l({ɵdir:l}),$=l({ɵpipe:l}),U=l({ɵmod:l}),G=l({ɵloc:l}),q=l({ɵfac:l}),J=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return D((()=>{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===L.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Y,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||Y,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=Q++,n.inputs=it(t.inputs,e),n.outputs=it(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(X):null,n}))}function K(t){const e=st(t)||function(t){return t[Z]||null}(t);return e}function X(t){const e=function(t){return t[$]||null}(t);return e}const tt={};function et(t){return D((()=>{const e={type:t.type,bootstrap:t.bootstrap||Y,declarations:t.declarations||Y,imports:t.imports||Y,exports:t.exports||Y,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(tt[t.id]=t.type),e}))}function nt(t,e){return D((()=>{const n=at(t,!0);n.declarations=e.declarations||Y,n.imports=e.imports||Y,n.exports=e.exports||Y}))}function it(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 rt=W;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function st(t){return t[j]||null}function at(t,e){const n=t[U]||null;if(!n&&!0===e)throw new Error(`Type ${c(t)} does not have 'ɵmod' property.`);return n}const lt=0,ut=1,ct=2,dt=3,ht=4,pt=5,gt=6,mt=7,ft=8,vt=9,bt=10,yt=11,_t=12,Ct=13,wt=14,xt=15,Mt=16,Ot=17,kt=18,St=19,Pt=20,Tt=1,At=2,Et=7,It=9,Dt=10;function Lt(t){return Array.isArray(t)&&"object"==typeof t[Tt]}function Ft(t){return Array.isArray(t)&&!0===t[Tt]}function Nt(t){return!!(8&t.flags)}function zt(t){return!(2&~t.flags)}function Rt(t){return!(1&~t.flags)}function Bt(t){return null!==t.template}function Ht(t,e){return t.hasOwnProperty(q)?t[q]:null}class Vt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Yt(){return jt}function jt(t){return t.type.prototype.ngOnChanges&&(t.setInput=$t),Zt}function Zt(){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 $t(t,e,n,i){const r=Gt(t)||function(t,e){return t[Ut]=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}Yt.ngInherit=!0;const Ut="__ngSimpleChanges__";function Gt(t){return t[Ut]||null}const qt=function(t,e,n){},Jt="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 Xt(t){return!!t.listen}const te={createRenderer:(t,e)=>Kt()};function ee(t){for(;Array.isArray(t);)t=t[lt];return t}function ne(t,e){return ee(e[t])}function ie(t,e){return ee(e[t.index])}function re(t,e){return t.data[e]}function oe(t,e){return t[e]}function se(t,e){const n=e[t];return Lt(n)?n:n[lt]}function ae(t){return!(4&~t[ct])}function le(t){return!(128&~t[ct])}function ue(t,e){return null==e?null:t[e]}function ce(t){t[kt]=0}function de(t,e){t[pt]+=e;let n=t,i=t[dt];for(;null!==i&&(1===e&&1===n[pt]||-1===e&&0===n[pt]);)i[pt]+=e,n=i,i=i[dt]}const he={lFrame:ze(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function pe(){return he.bindingsEnabled}function ge(){return he.lFrame.lView}function me(){return he.lFrame.tView}function fe(t){return he.lFrame.contextLView=t,t[ft]}function ve(){let t=be();for(;null!==t&&64===t.type;)t=t.parent;return t}function be(){return he.lFrame.currentTNode}function ye(t,e){const n=he.lFrame;n.currentTNode=t,n.isParent=e}function _e(){return he.lFrame.isParent}function Ce(){he.lFrame.isParent=!1}function we(){return he.isInCheckNoChangesMode}function xe(t){he.isInCheckNoChangesMode=t}function Me(){const t=he.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Oe(){return he.lFrame.bindingIndex}function ke(){return he.lFrame.bindingIndex++}function Se(t){const e=he.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Pe(t,e){const n=he.lFrame;n.bindingIndex=n.bindingRootIndex=t,Te(e)}function Te(t){he.lFrame.currentDirectiveIndex=t}function Ae(t){const e=he.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ee(){return he.lFrame.currentQueryIndex}function Ie(t){he.lFrame.currentQueryIndex=t}function De(t){const e=t[ut];return 2===e.type?e.declTNode:1===e.type?t[gt]:null}function Le(t,e,n){if(n&T.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&T.Host||(i=De(r),null===i)||(r=r[xt],10&i.type)););if(null===i)return!1;e=i,t=r}const i=he.lFrame=Ne();return i.currentTNode=e,i.lView=t,!0}function Fe(t){const e=Ne(),n=t[ut];he.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ne(){const t=he.lFrame,e=null===t?null:t.child;return null===e?ze(t):e}function ze(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 Re(){const t=he.lFrame;return he.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Be=Re;function He(){const t=Re();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 he.lFrame.selectedIndex}function Ye(t){he.lFrame.selectedIndex=t}function je(){const t=he.lFrame;return re(t.tView,t.selectedIndex)}function Ze(){he.lFrame.currentNamespace=Jt}function $e(){he.lFrame.currentNamespace=null}function Ue(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[l]<0&&(t[kt]+=65536),(a>11>16&&(3&t[ct])===e){t[ct]+=2048,qt(4,s,o);try{o.call(s)}finally{qt(5,s,o)}}}else{qt(4,s,o);try{o.call(s)}finally{qt(5,s,o)}}}const Ke=-1;class Xe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function tn(t,e,n){const i=Xt(t);let r=0;for(;re){s=o-1;break}}}for(;o>16,i=e;for(;n>0;)i=i[xt],n--;return i}let un=!0;function cn(t){const e=un;return un=t,e}const dn=255,hn=5;let pn=0;function gn(t,e){const n=fn(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=vn(t,e),o=t.injectorIndex;if(sn(r)){const t=an(r),n=ln(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 fn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function vn(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[xt],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ke}function bn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=pn++);const r=i&dn,o=1<>hn)]|=o}(t,e,n)}function yn(t,e,n){if(n&T.Optional)return t;y(e,"NodeInjector")}function _n(t,e,n,i){if(n&T.Optional&&void 0===i&&(i=null),!(n&(T.Self|T.Host))){const r=t[vt],o=E(void 0);try{return r?r.get(e,i,n&T.Optional):I(e,i,n&T.Optional)}finally{E(o)}}return yn(i,e,n)}function Cn(t,e,n,i=T.Default,r){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(J)?t[J]:void 0;return"number"==typeof e?e>=0?e&dn:xn:e}(n);if("function"==typeof o){if(!Le(e,t,i))return i&T.Host?yn(r,n,i):_n(e,n,i,r);try{const t=o(i);if(null!=t||i&T.Optional)return t;y(n)}finally{Be()}}else if("number"==typeof o){let r=null,s=fn(t,e),a=Ke,l=i&T.Host?e[Mt][gt]:null;for((-1===s||i&T.SkipSelf)&&(a=-1===s?vn(t,e):e[s+8],a!==Ke&&Pn(i,!1)?(r=e[ut],s=an(a),e=ln(a,e)):s=-1);-1!==s;){const t=e[ut];if(Sn(o,s,t.data)){const t=Mn(s,e,n,r,i,l);if(t!==wn)return t}a=e[s+8],a!==Ke&&Pn(i,e[ut].data[s+8]===l)&&Sn(o,s,e)?(r=t,s=an(a),e=ln(a,e)):s=-1}}}return _n(e,n,i,r)}const wn={};function xn(){return new Tn(ve(),ge())}function Mn(t,e,n,i,r,o){const s=e[ut],a=s.data[t+8],l=On(a,s,n,null==i?zt(a)&&un:i!=s&&!!(3&a.type),r&T.Host&&o===a);return null!==l?kn(e,s,l,a):wn}function On(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,u=t.directiveEnd,c=o>>20,d=r?a+c:u;for(let t=i?a:a+c;t=l&&e.type===n)return t}if(r){const t=s[l];if(t&&Bt(t)&&t.type===n)return l}return null}function kn(t,e,n,i){let r=t[n];const o=e.data;if(r instanceof Xe){const s=r;s.resolving&&function(t,e){throw new f("200",`Circular dependency in DI detected for ${t}`)}(b(o[n]));const a=cn(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?E(s.injectImpl):null;Le(t,i,T.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=jt(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&&E(l),cn(a),s.resolving=!1,Be()}}return r}function Sn(t,e,n){const i=1<>hn)]&i)}function Pn(t,e){return!(t&T.Self||t&T.Host&&e)}class Tn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,n){return Cn(this._tNode,this._lView,t,n,e)}}function An(t){return D((()=>{const e=t.prototype.constructor,n=e[q]||En(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[q]||En(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t}))}function En(t){return m(t)?()=>{const e=En(g(t));return e&&e()}:Ht(t)}function In(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(Dn)?t[Dn]:Object.defineProperty(t,Dn,{value:[]})[Dn];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 Fn{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=_({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Nn=new Fn("AnalyzeForEntryComponents"),zn=Function;function Rn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?Bn(t,e):e(t)))}function Hn(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 Yn(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 Zn(t,e){const n=$n(t,e);if(n>=0)return t[1|n]}function $n(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 Un={},Gn="__NG_DI_FLAG__",qn="ngTempTokenPath",Jn=/\n/gm,Qn="__source",Wn=l({provide:String,useValue:l});let Kn;function Xn(t){const e=Kn;return Kn=t,e}function ti(t,e=T.Default){if(void 0===Kn)throw new Error("inject() must be called from an injection context");return null===Kn?I(t,void 0,e):Kn.get(t,e&T.Optional?null:void 0,e)}function ei(t,e=T.Default){return(A||ti)(g(t),e)}const ni=ei;function ii(t){const e=[];for(let n=0;n({token:t}))),-1),si=ri(Ln("Optional"),8),ai=ri(Ln("Self"),2),li=ri(Ln("SkipSelf"),4);var ui=(()=>((ui=ui||{})[ui.Important=1]="Important",ui[ui.DashCase=2]="DashCase",ui))();const ci="__ngContext__";function di(t,e){t[ci]=e}function hi(t){const e=function(t){return t[ci]||null}(t);return e?Array.isArray(e)?e:e.lView:null}let pi;function gi(t,e){return pi(t,e)}function mi(t){const e=t[dt];return Ft(e)?e[dt]:e}function fi(t){return bi(t[Ct])}function vi(t){return bi(t[ht])}function bi(t){for(;null!==t&&!Ft(t);)t=t[ht];return t}function yi(t,e,n,i,r){if(null!=i){let o,s=!1;Ft(i)?o=i:Lt(i)&&(s=!0,i=i[lt]);const a=ee(i);0===t&&null!==n?null==r?Si(e,n,a):ki(e,n,a,r||null,!0):1===t&&null!==n?ki(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Ti(t,e);i&&function(t,e,n,i){Xt(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[Et];o!==ee(n)&&yi(e,t,i,o,r);for(let r=Dt;r0&&(t[n-1][ht]=i[ht]);const s=Vn(t,Dt+e);Hi(i[ut],r=i,r[yt],2,null,null),r[lt]=null,r[gt]=null;const a=s[St];null!==a&&a.detachView(s[ut]),i[dt]=null,i[ht]=null,i[ct]&=-129}var r;return i}function xi(t,e){if(!(256&e[ct])){const n=e[yt];Xt(n)&&n.destroyNode&&Hi(t,e,n,3,null,null),function(t){let e=t[Ct];if(!e)return Mi(t[ut],t);for(;e;){let n=null;if(Lt(e))n=e[Ct];else{const t=e[Dt];t&&(n=t)}if(!n){for(;e&&!e[ht]&&e!==t;)Lt(e)&&Mi(e[ut],e),e=e[dt];null===e&&(e=t),Lt(e)&&Mi(e[ut],e),n=e&&e[ht]}e=n}}(e)}}function Mi(t,e){if(!(256&e[ct])){e[ct]&=-129,e[ct]|=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 Ii}())||void 0===e?void 0:e.createHTML(t))||t}function $i(){if(void 0===Di&&(Di=null,H.trustedTypes))try{Di=H.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Di}function Ui(t){var e;return(null===(e=$i())||void 0===e?void 0:e.createHTML(t))||t}function Gi(t){var e;return(null===(e=$i())||void 0===e?void 0:e.createScriptURL(t))||t}class qi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Ji extends qi{getTypeName(){return"HTML"}}class Qi extends qi{getTypeName(){return"Style"}}class Wi extends qi{getTypeName(){return"Script"}}class Ki extends qi{getTypeName(){return"URL"}}class Xi extends qi{getTypeName(){return"ResourceURL"}}function tr(t){return t instanceof qi?t.changingThisBreaksApplicationSecurity:t}function er(t,e){const n=nr(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 nr(t){return t instanceof qi&&t.getTypeName()||null}function ir(t){return new Ji(t)}function rr(t){return new Qi(t)}function or(t){return new Wi(t)}function sr(t){return new Ki(t)}function ar(t){return new Xi(t)}class lr{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zi(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=Zi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0hr(t.trim()))).join(", ")),this.buf.push(" ",r,'="',Sr(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();yr.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 Or=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(Or,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(kr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Pr;function Tr(t,e){let n=null;try{Pr=Pr||function(t){const e=new ur(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zi(""),"text/html")}catch(t){return!1}}()?new lr(e):e}(t);let i=e?String(e):"";n=Pr.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=Pr.getInertBodyElement(i)}while(i!==o);return Zi((new Mr).sanitizeChildren(Ar(n)||n))}finally{if(n){const t=Ar(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ar(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Er=(()=>((Er=Er||{})[Er.NONE=0]="NONE",Er[Er.HTML=1]="HTML",Er[Er.STYLE=2]="STYLE",Er[Er.SCRIPT=3]="SCRIPT",Er[Er.URL=4]="URL",Er[Er.RESOURCE_URL=5]="RESOURCE_URL",Er))();function Ir(t){const e=Fr();return e?Ui(e.sanitize(Er.HTML,t)||""):er(t,"HTML")?Ui(tr(t)):Tr(Kt(),v(t))}function Dr(t){const e=Fr();return e?e.sanitize(Er.URL,t)||"":er(t,"URL")?tr(t):hr(v(t))}function Lr(t){const e=Fr();if(e)return Gi(e.sanitize(Er.RESOURCE_URL,t)||"");if(er(t,"ResourceURL"))return Gi(tr(t));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Fr(){const t=ge();return t&&t[_t]}function Nr(t){return t.ngOriginalError}function zr(t,...e){t.error(...e)}class Rr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t&&t.ngErrorLogger||zr}(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(Nr(t)):null}_findOriginalError(t){let e=t&&Nr(t);for(;e&&Nr(e);)e=Nr(e);return e||null}}const Br=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function Hr(t){return t.ownerDocument.defaultView}function Vr(t){return t.ownerDocument}function Yr(t){return t instanceof Function?t():t}function jr(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 Zr="ng-template";function $r(t,e,n){let i=0;for(;io?"":r[c+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==jr(e,u,0)||2&i&&u!==t){if(Jr(i))return!1;s=!0}}}}else{if(!s&&!Jr(i)&&!Jr(l))return!1;if(s&&Jr(l))continue;s=!1,i=l|1&i}}return Jr(i)||s}function Jr(t){return!(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||Jr(s)||(e+=Xr(o,r),r=""),i=s,o=o||!Jr(i);n++}return""!==r&&(e+=Xr(o,r)),e}const eo={};function no(t){io(me(),ge(),Ve()+t,we())}function io(t,e,n,i){if(!i)if(3&~e[ct]){const i=t.preOrderHooks;null!==i&&qe(e,i,0,n)}else{const i=t.preOrderCheckHooks;null!==i&&Ge(e,i,n)}Ye(n)}function ro(t,e){return t<<17|e<<2}function oo(t){return t>>17&32767}function so(t){return 2|t}function ao(t){return(131068&t)>>2}function lo(t,e){return-131069&t|e<<2}function uo(t){return 1|t}function co(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;iPt&&io(t,e,Pt,we()),qt(s?2:0,r),n(i,r)}finally{Ye(o),qt(s?3:1,r)}}function yo(t,e,n){if(Nt(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 To(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ao(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Eo(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&Bo(n)}}function Bo(t){for(let e=fi(t);null!==e;e=vi(e))for(let t=Dt;t0&&Bo(n)}const e=t[ut].components;if(null!==e)for(let n=0;n0&&Bo(i)}}function Ho(t,e){const n=se(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 qo(t){return t.cleanup||(t.cleanup=[])}function Jo(t,e){const n=t[vt],i=n?n.get(Rr,null):null;i&&i.handleError(e)}function Qo(t,e,n,i,r){for(let o=0;othis.processProvider(n,t,e))),Bn([t],(t=>this.processInjectorType(t,[],r))),this.records.set(Xo,cs(void 0,this));const o=this.records.get(es);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:c(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=Un,n=T.Default){this.assertNotDestroyed();const i=Xn(this),r=E(void 0);try{if(!(n&T.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof Fn)&&w(t);e=n&&this.injectableDefInScope(n)?cs(ls(t),ns):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const i=n&T.Self?os():this.parent;return e=n&T.Optional&&e===Un?null:e,i.get(t,e)}catch(e){if("NullInjectorError"===e.name){if((e[qn]=e[qn]||[]).unshift(c(t)),i)throw e;return function(t,e,n,i){const r=t[qn];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=c(e);if(Array.isArray(e))r=e.map(c).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):c(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Jn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[qn]=null,t}(e,t,"R3InjectorError",this.source)}throw e}finally{E(r),Xn(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach((t=>this.get(t)))}toString(){const t=[];return this.records.forEach(((e,n)=>t.push(c(n)))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=M(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=M(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{Bn(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||Y)))}}this.injectorDefTypes.add(o);const a=Ht(o)||(()=>new o);this.records.set(o,cs(a,ns));const l=i.providers;if(null!=l&&!s){const e=t;Bn(l,(t=>this.processProvider(t,e,l)))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=hs(t=g(t))?t:g(t&&t.provide);const r=function(t,e,n){return ds(t)?cs(void 0,t.useValue):cs(us(t),ns)}(t);if(hs(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=cs(void 0,ns,!0),e.factory=()=>ii(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===ns&&(e.value=is,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=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ls(t){const e=w(t),n=null!==e?e.factory:Ht(t);if(null!==n)return n;if(t instanceof Fn)throw new Error(`Token ${c(t)} is missing a ɵprov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Yn(e,"?");throw new Error(`Can't resolve all parameters for ${c(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[O]||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(hs(t)){const e=g(t);return Ht(e)||ls(e)}if(ds(t))i=()=>g(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ii(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>ei(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ht(e)||ls(e);i=()=>new e(...ii(t.deps))}var r;return i}function cs(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 hs(t){return"function"==typeof t}const ps=function(t,e,n){return function(t,e=null,n=null,i){const r=ss(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)?ps(t,e,""):ps(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Un,t.NULL=new ts,t.ɵprov=_({token:t,providedIn:"any",factory:()=>ei(Xo)}),t.__NG_ELEMENT_ID__=-1,t})();function ms(t,e){Ue(hi(t)[ut],ve())}function fs(t){let e=(i=t.type,Object.getPrototypeOf(i.prototype).constructor),n=!0;var i;const r=[t];for(;e;){let i;if(Bt(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=vs(t.inputs),e.declaredInputs=vs(t.declaredInputs),e.outputs=vs(t.outputs);const n=i.hostBindings;n&&_s(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&bs(t,o),s&&ys(t,s),u(t.inputs,i.inputs),u(t.declaredInputs,i.declaredInputs),u(t.outputs,i.outputs),Bt(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=rn(r.hostAttrs,n=rn(n,r.hostAttrs))}}(r)}function vs(t){return t===V?{}:t===Y?[]:t}function bs(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ys(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function _s(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Cs=null;function ws(){if(!Cs){const t=H.Symbol;if(t&&t.iterator)Cs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ee(t[i.index])):i.index;if(Xt(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,h=!1;else{o=Ws(i,e,c,o,!1);const t=n.listen(g,r,o);d.push(o,t),u&&u.push(r,f,m,m+1)}}else o=Ws(i,e,c,o,!0),g.addEventListener(r,o,s),d.push(o),u&&u.push(r,f,m,s)}else o=Ws(i,e,c,o,!1);const p=i.outputs;let g;if(h&&null!==p&&(g=p[r])){const t=g.length;if(t)for(let n=0;n0;)e=e[xt],t--;return e}(t,he.lFrame.contextLView))[ft]}(t)}function Xs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const sa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aa(t){return t.substring(sa.key,sa.keyEnd)}function la(t,e){const n=sa.textEnd;return n===e?-1:(e=sa.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,sa.key=e,n),ua(t,e,n))}function ua(t,e,n){for(;e=0;n=la(e,n))jn(t,aa(e),!0)}function ga(t,e,n,i){const r=ge(),o=me(),s=Se(2);o.firstUpdatePass&&fa(o,t,s,i),e!==eo&&Ps(r,s,e)&&ya(o,o.data[Ve()],r,r[yt],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=c(tr(t)))),t}(e,n),i,s)}function ma(t,e){return e>=t.expandoStartIndex}function fa(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[Ve()],s=ma(t,n);wa(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=Ae(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ba(n=va(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=va(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ao(i))return t[oo(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=va(null,t,e,n[1],i),n=ba(n,e.attrs,i),function(t,e,n,i){t[oo(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)&&(c=!0)}else u=n;if(r)if(0!==l){const e=oo(t[a+1]);t[i+1]=ro(e,a),0!==e&&(t[e+1]=lo(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=ro(a,0),0!==a&&(t[a+1]=lo(t[a+1],i)),a=i;else t[i+1]=ro(l,0),0===a?a=i:t[l+1]=lo(t[l+1],i),l=i;c&&(t[i+1]=so(t[i+1])),ra(t,u,i,!0),ra(t,u,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&$n(o,e)>=0&&(n[i+1]=uo(n[i+1]))}(e,u,t,i,o),s=ro(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function va(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,u=null===l;let c=n[r+1];c===eo&&(c=u?Y:void 0);let d=u?Zn(c,i):l===i?c:void 0;if(o&&!Ca(d)&&(d=Zn(e,i)),Ca(d)&&(a=d,s))return a;const h=t[r+1];r=s?oo(h):ao(h)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=Zn(t,i))}return a}function Ca(t){return void 0!==t}function wa(t,e){return!!(t.flags&(e?16:32))}function xa(t,e=""){const n=ge(),i=me(),r=t+Pt,o=i.firstCreatePass?po(i,r,1,e,null):i.data[r],s=n[r]=function(t,e){return Xt(t)?t.createText(e):t.createTextNode(e)}(n[yt],e);Fi(i,n,s,o),ye(o,!1)}function Ma(t){return Oa("",t,""),Ma}function Oa(t,e,n){const i=ge(),r=Is(i,t,e,n);return r!==eo&&Wo(i,Ve(),r),Oa}function ka(t,e,n,i,r){const o=ge(),s=function(t,e,n,i,r,o){const s=Ts(t,Oe(),n,r);return Se(2),s?e+v(n)+i+v(r)+o:eo}(o,t,e,n,i,r);return s!==eo&&Wo(o,Ve(),s),ka}function Sa(t,e,n){const i=ge();return Ps(i,ke(),e)&&ko(me(),je(),i,t,e,i[yt],n,!0),Sa}function Pa(t,e,n){const i=ge();if(Ps(i,ke(),e)){const r=me(),o=je();ko(r,o,i,t,e,function(t,e,n){return(null===t||Bt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[Tt])return t;t=t[lt]}return null}(n[e.index])),n[yt]}(Ae(r.data),o,i),n,!0)}return Pa}const Ta=void 0;var Aa=["en",[["a","p"],["AM","PM"],Ta],[["AM","PM"],Ta,Ta],[["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"]],Ta,[["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"]],Ta,[["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}",Ta,"{1} 'at' {0}",Ta],[".",",",";","%","+","-","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 Ea={};function Ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=La(e);if(n)return n;const i=e.split("-")[0];if(n=La(i),n)return n;if("en"===i)return Aa;throw new Error(`Missing locale data for the locale "${t}".`)}function Da(t){return Ia(t)[Fa.PluralCase]}function La(t){return t in Ea||(Ea[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),Ea[t]}var Fa=(()=>((Fa=Fa||{})[Fa.LocaleId=0]="LocaleId",Fa[Fa.DayPeriodsFormat=1]="DayPeriodsFormat",Fa[Fa.DayPeriodsStandalone=2]="DayPeriodsStandalone",Fa[Fa.DaysFormat=3]="DaysFormat",Fa[Fa.DaysStandalone=4]="DaysStandalone",Fa[Fa.MonthsFormat=5]="MonthsFormat",Fa[Fa.MonthsStandalone=6]="MonthsStandalone",Fa[Fa.Eras=7]="Eras",Fa[Fa.FirstDayOfWeek=8]="FirstDayOfWeek",Fa[Fa.WeekendRange=9]="WeekendRange",Fa[Fa.DateFormat=10]="DateFormat",Fa[Fa.TimeFormat=11]="TimeFormat",Fa[Fa.DateTimeFormat=12]="DateTimeFormat",Fa[Fa.NumberSymbols=13]="NumberSymbols",Fa[Fa.NumberFormats=14]="NumberFormats",Fa[Fa.CurrencyCode=15]="CurrencyCode",Fa[Fa.CurrencySymbol=16]="CurrencySymbol",Fa[Fa.CurrencyName=17]="CurrencyName",Fa[Fa.Currencies=18]="Currencies",Fa[Fa.Directionality=19]="Directionality",Fa[Fa.PluralCase=20]="PluralCase",Fa[Fa.ExtraData=21]="ExtraData",Fa))();const Na="en-US";let za=Na;function Ra(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&&(za=t.toLowerCase().replace(/_/g,"-"))}function Ba(t,e,n,i,r){if(t=g(t),Array.isArray(t))for(let o=0;o>20;if(hs(t)||!t.multi){const i=new Xe(l,r,Fs),p=Ya(a,e,r?c:c+h,d);-1===p?(bn(gn(u,s),o,a),Ha(o,t,e.length),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=Ya(a,e,c+h,d),g=Ya(a,e,c,c+h),m=p>=0&&n[p],f=g>=0&&n[g];if(r&&!f||!r&&!m){bn(gn(u,s),o,a);const c=function(t,e,n,i,r){const o=new Xe(t,n,Fs);return o.multi=[],o.index=e,o.componentProviders=0,Va(o,r,i&&!n),o}(r?Za:ja,n.length,r,i,l);!r&&f&&(n[g].providerFactory=c),Ha(o,t,e.length,0),e.push(a),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(c),s.push(c)}else Ha(o,t,p>-1?p:g,Va(n[r?g:p],l,!r&&i));!r&&i&&f&&n[g].componentProviders++}}}function Ha(t,e,n,i){const r=hs(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 Va(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ya(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=Bt(t);Ba(n,i.data,i.blueprint,r,!0),Ba(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class Ga{}class qa{}class Ja{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${c(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Qa=(()=>{class t{}return t.NULL=new Ja,t})();function Wa(...t){}function Ka(t,e){return new tl(ie(t,e))}const Xa=function(){return Ka(ve(),ge())};let tl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Xa,t})();function el(t){return t instanceof tl?t.nativeElement:t}class nl{}let il=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>rl(),t})();const rl=function(){const t=ge(),e=se(ve().index,t);return function(t){return t[yt]}(Lt(e)?e:t)};let ol=(()=>{class t{}return t.ɵprov=_({token:t,providedIn:"root",factory:()=>null}),t})();class sl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const al=new sl("12.2.17");class ll{constructor(){}supports(t){return Ms(t)}create(t){return new cl(t)}}const ul=(t,e)=>e;class cl{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||ul}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 dl(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 pl),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 pl),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 dl{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 hl{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 pl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new hl,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 gl(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 vl(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 vl{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 bl(){return new yl([new ll])}let yl=(()=>{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||bl()),deps:[[t,new li,new si]]}}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=_({token:t,providedIn:"root",factory:bl}),t})();function _l(){return new Cl([new ml])}let Cl=(()=>{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||_l()),deps:[[t,new li,new si]]}}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=_({token:t,providedIn:"root",factory:_l}),t})();function wl(t,e,n,i,r=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&i.push(ee(o)),Ft(o))for(let t=Dt;t-1&&(wi(t,n),Vn(e,n))}this._attachedToViewContainer=!1}xi(this._lView[ut],this._lView)}onDestroy(t){Mo(this._lView[ut],this._lView,null,t)}markForCheck(){Yo(this._cdRefInjectingView||this._lView)}detach(){this._lView[ct]&=-129}reattach(){this._lView[ct]|=128}detectChanges(){jo(this._lView[ut],this._lView,this.context)}checkNoChanges(){!function(t,e,n){xe(!0);try{jo(t,e,n)}finally{xe(!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,Hi(this._lView[ut],t=this._lView,t[yt],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ml extends xl{constructor(t){super(t),this._view=t}detectChanges(){Zo(this._view)}checkNoChanges(){!function(t){xe(!0);try{Zo(t)}finally{xe(!1)}}(this._view)}get context(){return null}}const Ol=function(t){return function(t,e,n){if(zt(t)&&!n){const n=se(t.index,e);return new xl(n,n)}if(47&t.type){const t=e[Mt];return new xl(t,e)}return null}(ve(),ge(),!(16&~t))};let kl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ol,t})();const Sl=[new ml],Pl=new yl([new ll]),Tl=new Cl(Sl),Al=function(){return Ll(ve(),ge())};let El=(()=>{class t{}return t.__NG_ELEMENT_ID__=Al,t})();const Il=El,Dl=class extends Il{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ho(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null),i=this._declarationLView[this._declarationTContainer.index];n[Ot]=i;const r=this._declarationLView[St];return null!==r&&(n[St]=r.createEmbeddedView(e)),mo(e,n,t),new xl(n)}};function Ll(t,e){return 4&t.type?new Dl(e,t,Ka(t,e)):null}class Fl{}class Nl{}const zl=function(){return jl(ve(),ge())};let Rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=zl,t})();const Bl=Rl,Hl=class extends Bl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new Tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=vn(this._hostTNode,this._hostLView);if(sn(t)){const e=ln(t,this._hostLView),n=an(t),i=e[ut].data[n+8];return new Tn(i,e)}return new Tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Vl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-Dt}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(Fl,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(Ft(n[dt])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[dt],i=new Hl(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=Dt+i,o=n.length;i>0&&(n[r-1][ht]=e),iBr});class ql extends qa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(to).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ul(this.componentDef.inputs)}get outputs(){return Ul(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,Zl,r);return o!==Zl||i===Zl?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(nl,te),s=r.get(ol,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(t,e,n){if(Xt(t)){const i=n===F.ShadowDom;return t.selectRootElement(e,i)}let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):_i(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?Jt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,d={components:[],scheduler:Br,clean:Uo,playerHandler:null,flags:0},h=xo(0,null,null,1,0,null,null,null,null,null),p=ho(null,h,d,c,null,null,o,a,s,r);let g,m;Fe(p);try{const t=function(t,e,n,i,r,o){const s=n[ut],a=Pt;n[a]=t;const l=po(s,a,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(Ko(l,u,!0),null!==t&&(tn(r,t,u),null!==l.classes&&ji(r,t,l.classes),null!==l.styles&&Yi(r,t,l.styles)));const c=i.createRenderer(t,e),d=ho(n,wo(e),null,e.onPush?64:16,n[a],l,i,c,null,null);return s.firstCreatePass&&(bn(gn(l,n),s,e.type),Ao(s,l),Io(l,n.length,1)),Vo(n,d),n[a]=d}(u,this.componentDef,p,o,a);if(u)if(n)tn(a,u,["ng-version",al.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&ji(a,u,e.join(" "))}if(m=re(h,Pt),void 0!==e){const t=m.projection=[];for(let n=0;nt(s,e))),e.contentQueries){const t=ve();e.contentQueries(1,s,t.directiveStart)}const a=ve();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Ye(a.index),Po(n[ut],a,0,a.directiveStart,a.directiveEnd,e),To(e,s)),s}(t,this.componentDef,p,d,[ms]),mo(h,p,null)}finally{He()}return new Jl(this.componentType,g,Ka(m,p),p,m)}}class Jl extends Ga{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Ml(i),this.componentType=t}get injector(){return new Tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Ql=new Map;class Wl extends Fl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new $l(this);const n=at(t),i=t[G]||null;i&&Ra(i),this._bootstrapComponents=Yr(n.bootstrap),this._r3Injector=ss(t,e,[{provide:Fl,useValue:this},{provide:Qa,useValue:this.componentFactoryResolver}],c(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=gs.THROW_IF_NOT_FOUND,n=T.Default){return t===gs||t===Fl||t===Xo?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 Kl extends Nl{constructor(t){super(),this.moduleType=t,null!==at(t)&&function(t){const e=new Set;!function t(n){const i=at(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${c(e)} vs ${c(e.name)}`)}(r,Ql.get(r),n),Ql.set(r,n));const o=Yr(i.imports);for(const n of o)e.has(n)||(e.add(n),t(n))}(t)}(t)}create(t){return new Wl(this.moduleType,t)}}function Xl(t,e,n){const i=Me()+t,r=ge();return r[i]===eo?ks(r,i,n?e.call(n):e()):Ss(r,i)}function tu(t,e,n,i){return su(ge(),Me(),t,e,n,i)}function eu(t,e,n,i,r){return au(ge(),Me(),t,e,n,i,r)}function nu(t,e,n,i,r,o,s){return lu(ge(),Me(),t,e,n,i,r,o,s)}function iu(t,e,n,i,r,o,s,a){const l=Me()+t,u=ge(),c=As(u,l,n,i,r,o);return Ps(u,l+4,s)||c?ks(u,l+5,a?e.call(a,n,i,r,o,s):e(n,i,r,o,s)):Ss(u,l+5)}function ru(t,e,n,i,r,o,s,a,l){const u=Me()+t,c=ge(),d=As(c,u,n,i,r,o);return Ts(c,u+4,s,a)||d?ks(c,u+6,l?e.call(l,n,i,r,o,s,a):e(n,i,r,o,s,a)):Ss(c,u+6)}function ou(t,e){const n=t[e];return n===eo?void 0:n}function su(t,e,n,i,r,o){const s=e+n;return Ps(t,s,r)?ks(t,s+1,o?i.call(o,r):i(r)):ou(t,s+1)}function au(t,e,n,i,r,o,s){const a=e+n;return Ts(t,a,r,o)?ks(t,a+2,s?i.call(s,r,o):i(r,o)):ou(t,a+2)}function lu(t,e,n,i,r,o,s,a,l){const u=e+n;return As(t,u,r,o,s,a)?ks(t,u+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):ou(t,u+4)}function uu(t,e){const n=me();let i;const r=t+Pt;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 f("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=Ht(i.type)),s=E(Fs);try{const t=cn(!1),e=o();return cn(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{E(s)}}function cu(t,e,n){const i=t+Pt,r=ge(),o=oe(r,i);return fu(r,mu(r,i)?su(r,Me(),e,o.transform,n,o):o.transform(n))}function du(t,e,n,i){const r=t+Pt,o=ge(),s=oe(o,r);return fu(o,mu(o,r)?au(o,Me(),e,s.transform,n,i,s):s.transform(n,i))}function hu(t,e,n,i,r){const o=t+Pt,s=ge(),a=oe(s,o);return fu(s,mu(s,o)?function(t,e,n,i,r,o,s,a){const l=e+n;return function(t,e,n,i,r){const o=Ts(t,e,n,i);return Ps(t,e+2,r)||o}(t,l,r,o,s)?ks(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):ou(t,l+3)}(s,Me(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function pu(t,e,n,i,r,o){const s=t+Pt,a=ge(),l=oe(a,s);return fu(a,mu(a,s)?lu(a,Me(),e,l.transform,n,i,r,o,l):l.transform(n,i,r,o))}function gu(t,e,n){const i=t+Pt,r=ge(),o=oe(r,i);return fu(r,mu(r,i)?function(t,e,n,i,r,o){let s=e+n,a=!1;for(let e=0;enull),u=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),u=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(l=bu(l),a&&(a=bu(a)),u&&(u=bu(u)));const c=super.subscribe({next:a,error:l,complete:u});return t instanceof r.w&&t.add(c),c}}function bu(t){return e=>{setTimeout(t,void 0,e)}}const yu=vu;function _u(){return this._results[ws()]()}class Cu{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=ws(),n=Cu.prototype;n[e]||(n[e]=_u)}get changes(){return this._changes||(this._changes=new yu)}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=Rn(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=Dt;t{class t{constructor(t){this.appInits=t,this.resolve=Wa,this.reject=Wa,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)(ei(Bu,8))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const Vu=new Fn("AppId"),Yu={provide:Vu,useFactory:function(){return`${ju()}${ju()}${ju()}`},deps:[]};function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Zu=new Fn("Platform Initializer"),$u=new Fn("Platform ID"),Uu=new Fn("appBootstrapListener");let Gu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const qu=new Fn("LocaleId"),Ju=new Fn("DefaultCurrencyCode");class Qu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Wu=function(t){return new Kl(t)},Ku=Wu,Xu=function(t){return Promise.resolve(Wu(t))},tc=function(t){const e=Wu(t),n=Yr(at(t).declarations).reduce(((t,e)=>{const n=st(e);return n&&t.push(new ql(n)),t}),[]);return new Qu(e,n)},ec=tc,nc=function(t){return Promise.resolve(tc(t))};let ic=(()=>{class t{constructor(){this.compileModuleSync=Ku,this.compileModuleAsync=Xu,this.compileModuleAndAllComponentsSync=ec,this.compileModuleAndAllComponentsAsync=nc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();const rc=(()=>Promise.resolve(0))();function oc(t){"undefined"==typeof Zone?rc.then((()=>{t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class sc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new yu(!1),this.onMicrotaskEmpty=new yu(!1),this.onStable=new yu(!1),this.onError=new yu(!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=H.requestAnimationFrame,e=H.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(H,(()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{t.lastRequestAnimationFrameId=-1,uc(t),t.isCheckStableRunning=!0,lc(t),t.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),t.fakeTopEventTask.invoke()})),uc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return cc(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),dc(t)}},onInvoke:(n,i,r,o,s,a,l)=>{try{return cc(t),n.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),dc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,uc(t),lc(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(!sc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(sc.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,ac,Wa,Wa);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 ac={};function lc(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 uc(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function cc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function dc(t){t._nesting--,lc(t)}class hc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new yu,this.onMicrotaskEmpty=new yu,this.onStable=new yu,this.onError=new yu}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 pc=(()=>{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:()=>{sc.assertNotInAngularZone(),oc((()=>{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())oc((()=>{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)(ei(sc))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})(),gc=(()=>{class t{constructor(){this._applications=new Map,bc.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 bc.findTestabilityInTree(this,t,e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();class mc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function fc(t){bc=t}let vc,bc=new mc,yc=!0,_c=!1;function Cc(){return _c=!0,yc}function wc(){if(_c)throw new Error("Cannot enable prod mode after platform setup.");yc=!1}let xc=function(){};const Mc=new Fn("AllowMultipleToken");class Oc{constructor(t,e){this.name=t,this.token=e}}function kc(t,e,n=[]){const i=`Platform: ${e}`,r=new Fn(i);return(e=[])=>{let o=Sc();if(!o||o.injector.get(Mc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:es,useValue:"platform"});!function(t){if(vc&&!vc.destroyed&&!vc.injector.get(Mc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xc(),vc=t.get(Pc);const e=t.get(Zu,null);e&&e.forEach((t=>t()))}(gs.create({providers:t,name:i}))}return function(t){const e=Sc();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 Sc(){return vc&&!vc.destroyed?vc:null}let Pc=(()=>{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 hc:("zone.js"===t?void 0:t)||new sc({enableLongStackTrace:Cc(),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:sc,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(Rr,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((()=>{Ec(this._modules,r),t.unsubscribe()}))})),function(t,e,n){try{const i=n();return Us(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(Hu);return t.runInitializers(),t.donePromise.then((()=>(Ra(r.injector.get(qu,Na)||Na),this._moduleDoBootstrap(r),r)))}))}))}bootstrapModule(t,e=[]){const n=Tc({},e);return function(t,e,n){const i=new Kl(n);return Promise.resolve(i)}(this.injector,0,t).then((t=>this.bootstrapModuleFactory(t,n)))}_moduleDoBootstrap(t){const e=t.injector.get(Ac);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((t=>e.bootstrap(t)));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${c(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)(ei(gs))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Tc(t,e){return Array.isArray(e)?e.reduce(Tc,t):Object.assign(Object.assign({},t),e)}let Ac=(()=>{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()}))})),u=new o.y((t=>{let e;this._zone.runOutsideAngular((()=>{e=this._zone.onStable.subscribe((()=>{sc.assertNotInAngularZone(),oc((()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))}))}))}));const n=this._zone.onUnstable.subscribe((()=>{sc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular((()=>{t.next(!1)})))}));return()=>{e.unsubscribe(),n.unsubscribe()}}));this.isStable=(0,s.T)(l,u.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 qa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(Fl),r=e||n.selector,o=n.create(gs.NULL,[],r,i),s=o.location.nativeElement,a=o.injector.get(pc,null),l=a&&o.injector.get(gc);return a&&l&&l.registerApplication(s,a),o.onDestroy((()=>{this.detachView(o.hostView),Ec(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;Ec(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Uu,[]).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)(ei(sc),ei(gs),ei(Rr),ei(Qa),ei(Hu))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Ec(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ic{}class Dc{}const Lc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Fc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Lc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(69153)(e).then((t=>t[i])).then((t=>Nc(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(69153)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then((t=>t[i+r])).then((t=>Nc(t,e,i)))}}return t.ɵfac=function(e){return new(e||t)(ei(ic),ei(Dc,8))},t.ɵprov=_({token:t,factory:t.ɵfac}),t})();function Nc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const zc=function(t){return null},Rc=kc(null,"core",[{provide:$u,useValue:"unknown"},{provide:Pc,deps:[gs]},{provide:gc,deps:[]},{provide:Gu,deps:[]}]),Bc=[{provide:Ac,useClass:Ac,deps:[sc,gs,Rr,Qa,Hu]},{provide:Gl,deps:[sc],useFactory:function(t){let e=[];return t.onStable.subscribe((()=>{for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:Hu,useClass:Hu,deps:[[new si,Bu]]},{provide:ic,useClass:ic,deps:[]},Yu,{provide:yl,useFactory:function(){return Pl},deps:[]},{provide:Cl,useFactory:function(){return Tl},deps:[]},{provide:qu,useFactory:function(t){return Ra(t=t||"undefined"!=typeof $localize&&$localize.locale||Na),t},deps:[[new oi(qu),new si,new li]]},{provide:Ju,useValue:"USD"}];let Hc=(()=>{class t{constructor(t){}}return t.ɵfac=function(e){return new(e||t)(ei(Ac))},t.ɵmod=et({type:t}),t.ɵinj=C({providers:Bc}),t})()},24751:(t,e,n)=>{n.d(e,{gN:()=>R,Fj:()=>p,NI:()=>ut,oH:()=>Ct,u:()=>Ot,cw:()=>ct,sg:()=>xt,u5:()=>St,Cf:()=>f,JU:()=>c,a5:()=>B,JJ:()=>V,JL:()=>Y,On:()=>gt,eT:()=>bt,UX:()=>Pt,kI:()=>y,_Y:()=>mt});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})(),u=(()=>{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 c=new i.OlP("NgValueAccessor"),d={provide:c,useExisting:(0,i.Gpc)((()=>p)),multi:!0},h=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(h,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([d]),i.qOj]}),t})();function g(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const f=new i.OlP("NgValidators"),v=new i.OlP("NgAsyncValidators"),b=/^(?=.{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(g(e.value)||g(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(g(e.value)||g(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 g(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 g(t.value)||b.test(t.value)?null:{email:!0}}(t)}static minLength(t){return function(t){return e=>g(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}(t)}static pattern(t){return function(t){if(!t)return _;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(g(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 k(t)}static composeAsync(t){return P(t)}}function _(t){return null}function C(t){return null!=t}function w(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 M(t,e){return e.map((e=>e(t)))}function O(t){return t.map((t=>function(t){return!t.validate}(t)?t:e=>t.validate(e)))}function k(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){return x(M(t,e))}}function S(t){return null!=t?k(O(t)):null}function P(t){if(!t)return null;const e=t.filter(C);return 0==e.length?null:function(t){const n=M(t,e).map(w);return(0,s.D)(n).pipe((0,a.U)(x))}}function T(t){return null!=t?P(O(t)):null}function A(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function E(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 F(t,e){const n=D(e);return D(t).forEach((t=>{L(n,t)||n.push(t)})),n}function N(t,e){return D(e).filter((e=>!L(t,e)))}let z=(()=>{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=S(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=T(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 z{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 z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class H{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 V=(()=>{class t extends H{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})(),Y=(()=>{class t extends H{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 j(t,e){return[...e.path,t]}function Z(t,e){G(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&&J(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&&J(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 $(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange((()=>{})))}function U(t,e){t.forEach((t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)}))}function G(t,e){const n=E(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();U(e._rawValidators,r),U(e._rawAsyncValidators,r)}function q(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=E(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 U(e._rawValidators,i),U(e._rawAsyncValidators,i),n}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Q(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function W(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)===u?i=t:r=t)})),r||i||n||null}function K(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X="VALID",tt="INVALID",et="PENDING",nt="DISABLED";function it(t){return(at(t)?t.validators:t)||null}function rt(t){return Array.isArray(t)?S(t):t||null}function ot(t,e){return(at(e)?e.asyncValidators:t)||null}function st(t){return Array.isArray(t)?T(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{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=rt(this._rawValidators),this._composedAsyncValidatorFn=st(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===X}get invalid(){return this.status===tt}get pending(){return this.status==et}get disabled(){return this.status===nt}get enabled(){return this.status!==nt}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=rt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=st(t)}addValidators(t){this.setValidators(F(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(F(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(N(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(N(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=et,!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=nt,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=X,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!==X&&this.status!==et||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()?nt:X}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=et,this._hasOwnPendingAsyncValidator=!0;const e=w(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 dt&&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()?nt:this.errors?tt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(et)?et:this._anyControlsHaveStatus(tt)?tt:X}_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){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}}class ut extends lt{constructor(t=null,e,n){super(it(e),ot(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){K(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){K(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 lt{constructor(t,e,n){super(it(e),ot(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 ut?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 dt extends lt{constructor(t,e,n){super(it(e),ot(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 ut?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)((()=>gt))},pt=(()=>Promise.resolve(null))();let gt=(()=>{class t extends B{constructor(t,e,n,r){super(),this.control=new ut,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=W(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Q(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?j(this.name,this._parent):[this.name]}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(){Z(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){pt.then((()=>{this.control.setValue(t,{emitViewToModelChange:!1})}))}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;pt.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(f,10),i.Y36(v,10),i.Y36(c,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})(),mt=(()=>{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})(),ft=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})();const vt={provide:c,useExisting:(0,i.Gpc)((()=>bt)),multi:!0};let bt=(()=>{class t extends u{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([vt]),i.qOj]}),t})();const yt=new i.OlP("NgModelWithFormControlWarning"),_t={provide:B,useExisting:(0,i.Gpc)((()=>Ct))};let Ct=(()=>{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=W(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&$(e,this,!1),Z(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Q(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&$(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(f,10),i.Y36(v,10),i.Y36(c,10),i.Y36(yt,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([_t]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const wt={provide:R,useExisting:(0,i.Gpc)((()=>xt))};let xt=(()=>{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&&(q(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 Z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){$(t.control||null,t,!1),K(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&&($(e||null,t),n instanceof ut&&(Z(n,t),t.control=n))})),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){G(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 q(t,e)}(e,t);n&&e.updateValueAndValidity({emitEvent:!1})}}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange((()=>{}))}_updateValidators(){G(this.form,this),this._oldForm&&q(this._oldForm,this)}_checkFormPresent(){this.form}}return t.ɵfac=function(e){return new(e||t)(i.Y36(f,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})();const Mt={provide:B,useExisting:(0,i.Gpc)((()=>Ot))};let Ot=(()=>{class t extends B{constructor(t,e,n,r,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=W(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),Q(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return j(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.ɵfac=function(e){return new(e||t)(i.Y36(R,13),i.Y36(f,10),i.Y36(v,10),i.Y36(c,10),i.Y36(yt,8))},t.ɵdir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Mt]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})(),kt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[ft]]}),t})(),St=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[kt]}),t})(),Pt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:yt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[kt]}),t})()},91211:(t,e,n)=>{n.d(e,{b2:()=>Z,H7:()=>N,s3:()=>p,Dx:()=>U,q6:()=>Y,se:()=>k});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 u=new r.OlP("TRANSITION_ID"),c=[{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 h=(()=>{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 g=(()=>{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 f{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(b),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(((e,n)=>{this._addStylesToHost(t,n,e)}))}ngOnDestroy(){this._hostNodes.forEach((t=>t.forEach(b)))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(i.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();function b(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/"},_=/%COMP%/g,C="%COMP%",w=`_nghost-${C}`,x=`_ngcontent-${C}`;function M(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let k=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(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 P(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 T(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=M(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(g),r.LFG(v),r.LFG(r.AFp))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();class S{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,O(n)):this.eventManager.addEventListener(t,e,O(n))}}class P extends S{constructor(t,e,n,i){super(t),this.component=n;const r=M(i+"-"+n.id,n.styles,[]);var o;e.addStyles(r),this.contentAttr=(o=i+"-"+n.id,x.replace(_,o)),this.hostAttr=function(t){return w.replace(_,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 T extends S{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=M(i.id,i.styles,[]);for(let t=0;t{class t extends m{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 E=["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 F=(()=>{class t extends m{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(E.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"),E.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})(),N=(()=>{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 z(t){return new R(t.get(i.K0))}let R=(()=>{class t extends N{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 z((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const B=i.bD,H=[{provide:r.Lbi,useValue:B},{provide:r.g9A,useValue:function(){s.makeCurrent(),d.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}],V=(r.Tiy,i.K0,[]),Y=(0,r.eFA)(r._c5,"browser",H),j=[V,{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:F,multi:!0,deps:[i.K0]},[],{provide:k,useClass:k,deps:[g,v,r.AFp]},{provide:r.FYo,useExisting:k},{provide:f,useExisting:v},{provide:v,useClass:v,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:g,useClass:g,deps:[p,r.R0b]},{provide:i.JF,useClass:h,deps:[]},[]];let Z=(()=>{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:u,useExisting:r.AFp},c]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(t,12))},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:j,imports:[i.ez,r.hGG]}),t})();function $(){return new U((0,r.LFG)(i.K0))}let U=(()=>{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:$,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},34016:(t,e,n)=>{n.d(e,{gz:()=>Ut,m2:()=>H,F0:()=>fn,Od:()=>Cn,yS:()=>yn,Bz:()=>In,lC:()=>wn,Xs:()=>tt,Hx:()=>xt});var i=n(12057),r=n(74788),o=n(97968),s=n(25917),a=n(26215),l=n(9112),u=n(29856),c=n(13410),d=n(22416),h=n(41439),p=n(59193),g=n(52441),m=n(79765),f=n(45435),v=n(77393),b=n(7108);function y(t){return function(e){return 0===t?(0,p.c)():e.lift(new _(t))}}class _{constructor(t){if(this.total=t,this.total<0)throw new b.W}call(t,e){return e.subscribe(new C(t,this.total))}}class C 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 ut(t){return Array.prototype.concat.apply([],t)}function ct(t){return t.length>0?t[t.length-1]:null}function dt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ht(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(!wt(e.segments,n.segments))return!1;if(!bt(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:ft},gt={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 mt(t,e,n){return pt[n.paths](t.root,e.root,n.matrixParams)&>[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function ft(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!!wt(r,n)&&!e.hasChildren()&&!!bt(r,n,i)}if(t.segments.length===n.length){if(!wt(t.segments,n))return!1;if(!bt(t.segments,n,i))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ft(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!!wt(t.segments,r)&&!!bt(t.segments,r,i)&&!!t.children[et]&&vt(t.children[et],e,o,i)}}function bt(t,e,n){return e.every(((e,i)=>gt[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 Ot.serialize(this)}}class _t{constructor(t,e){this.segments=t,this.children=e,this.parent=null,dt(e,((t,e)=>t.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kt(this)}}class Ct{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 wt(t,e){return t.length===e.length&&t.every(((t,n)=>t.path===e[n].path))}class xt{}class Mt{parse(t){const e=new Rt(t);return new yt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${St(t.root,!0)}`,n=function(t){const e=Object.keys(t).map((e=>{const n=t[e];return Array.isArray(n)?n.map((t=>`${Tt(e)}=${Tt(t)}`)).join("&"):`${Tt(e)}=${Tt(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 Ot=new Mt;function kt(t){return t.segments.map((t=>Dt(t))).join("/")}function St(t,e){if(!t.hasChildren())return kt(t);if(e){const e=t.children[et]?St(t.children[et],!1):"",n=[];return dt(t.children,((t,e)=>{e!==et&&n.push(`${e}:${St(t,!1)}`)})),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return dt(t.children,((t,i)=>{i===et&&(n=n.concat(e(t,i)))})),dt(t.children,((t,i)=>{i!==et&&(n=n.concat(e(t,i)))})),n}(t,((e,n)=>n===et?[St(t.children[et],!1)]:[`${n}:${St(e,!1)}`]));return 1===Object.keys(t.children).length&&null!=t.children[et]?`${kt(t)}/${e[0]}`:`${kt(t)}/(${e.join("//")})`}}function Pt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return Pt(t).replace(/%3B/gi,";")}function At(t){return Pt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(t){return decodeURIComponent(t)}function It(t){return Et(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 Ft(t){const e=t.match(Lt);return e?e[0]:""}const Nt=/^[^=?&#]+/,zt=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new _t([],{}):new _t([],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 _t(t,e)),n}parseSegment(){const t=Ft(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ct(Et(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ft(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ft(this.remaining);t&&(n=t,this.capture(n))}t[Et(e)]=Et(n)}parseQueryParam(t){const e=function(t){const e=t.match(Nt);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(zt);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=Ft(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 _t([],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=Ht(t,this._root);return e?e.children.map((t=>t.value)):[]}firstChild(t){const e=Ht(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Vt(t,this._root);return e.length<2?[]:e[e.length-2].children.map((t=>t.value)).filter((e=>e!==t))}pathFromRoot(t){return Vt(t,this._root).map((t=>t.value))}}function Ht(t,e){if(t===e.value)return e;for(const n of e.children){const e=Ht(t,n);if(e)return e}return null}function Vt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Vt(t,n);if(i.length)return i.unshift(e),i}return[]}class Yt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function jt(t){const e={};return t&&t.children.forEach((t=>e[t.value.outlet]=t)),e}class Zt extends Bt{constructor(t,e){super(t),this.snapshot=e,Qt(this,t)}toString(){return this.snapshot.toString()}}function $t(t,e){const n=function(t,e){const n=new qt([],{},{},"",{},et,e,null,t.root,-1,{});return new Jt("",new Yt(n,[]))}(t,e),i=new a.X([new Ct("",{})]),r=new a.X({}),o=new a.X({}),s=new a.X({}),l=new a.X(""),u=new Ut(i,r,s,l,o,et,e,n.root);return u.snapshot=n.root,new Zt(new Yt(u,[]),n)}class Ut{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,O.U)((t=>it(t))))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,O.U)((t=>it(t))))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gt(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 qt{constructor(t,e,n,i,r,o,s,a,l,u,c){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=u,this._resolve=c}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,Qt(this,e)}toString(){return Wt(this._root)}}function Qt(t,e){e.value._routerState=t,e.children.forEach((e=>Qt(t,e)))}function Wt(t){const e=t.children.length>0?` { ${t.children.map(Wt).join(", ")} } `:"";return`${t.value}${e}`}function Kt(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||Xt(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 Yt(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 Ut(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 Yt(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 dt(t.children,((t,r)=>{i[r]=t===e?n:oe(t,e,n)})),new _t(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!==ct(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 _t([],{})),0===t.segments.length&&t.hasChildren())return ue(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))})),dt(t.children,((t,e)=>{void 0===i[e]&&(r[e]=t)})),new _t(t.segments,r)}}function ce(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=ce(new _t([],{}),0,t))})),e}function he(t){const e={};return dt(t,((t,n)=>e[n]=`${t}`)),e}function pe(t,e,n){return t==n.path&&at(e,n.parameters)}class ge{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),Kt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=jt(e);t.children.forEach((t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]})),dt(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=jt(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=jt(e);t.children.forEach((t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new X(t.value.snapshot))})),t.children.length&&this.forwardEvent(new W(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Kt(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),me(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 me(t){Kt(t.value),t.children.forEach(me)}class fe{constructor(t,e){this.routes=t,this.module=e}}function ve(t){return"function"==typeof t}function be(t){return t instanceof yt}const ye=Symbol("INITIAL_VALUE");function _e(){return(0,k.w)((t=>(0,l.aj)(t.map((t=>t.pipe((0,S.q)(1),(0,P.O)(ye))))).pipe((0,T.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||be(i))return i}return t}),t)}),ye),(0,f.h)((t=>t!==ye)),(0,O.U)((t=>be(t)?t:!0===t)),(0,S.q)(1))))}let Ce=(()=>{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[wn]},encapsulation:2}),t})();function we(t,e=""){for(let n=0;nke(t)===e));return n.push(...t.filter((t=>ke(t)!==e))),n}const Pe={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Te(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Pe):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||st)(n,t,e);if(!r)return Object.assign({},Pe);const o={};dt(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=>Ee(t,e,n)&&ke(n)!==et))}(t,n,i)){const r=new _t(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&&ke(i)!==et){const n=new _t([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[ke(i)]=n}return r}(t,e,i,new _t(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=>Ee(t,e,n)))}(t,n,i)){const o=new _t(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(Ee(t,n,a)&&!r[ke(a)]){const n=new _t([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[ke(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 _t(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Ee(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ie(t,e,n,i){return!!(ke(t)===i||i!==et&&Ee(e,n,t))&&("**"===t.path||Te(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 Fe{constructor(t){this.urlTree=t}}function Ne(t){return new u.y((e=>e.error(new Le(t))))}function ze(t){return new u.y((e=>e.error(new Fe(t))))}function Re(t){return new u.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 _t(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,et).pipe((0,O.U)((t=>this.createUrlTree(He(t),this.urlTree.queryParams,this.urlTree.fragment)))).pipe((0,A.K)((t=>{if(t instanceof Fe)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,O.U)((e=>this.createUrlTree(He(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 _t([],{[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,O.U)((t=>new _t([],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,E.b)((i=>{const r=n.children[i],o=Se(e,i);return this.expandSegmentGroup(t,o,r,i).pipe((0,O.U)((t=>({segment:t,outlet:i}))))})),(0,T.R)(((t,e)=>(t[e.outlet]=e.segment,t)),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,f.h)(((e,n)=>t(e,n,i))):M.y,y(1),n?(0,x.d)(e):(0,w.T)((()=>new c.K)))}())}expandSegment(t,e,n,i,r,a){return(0,o.D)(n).pipe((0,E.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 c.K||"EmptyError"===t.name){if(De(e,i,r))return(0,s.of)(new _t([],{}));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):Ne(e):Ne(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("/")?ze(r):this.lineralizeSegments(n,r).pipe((0,D.zg)((n=>{const r=new _t(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:u}=Te(e,i,r);if(!s)return Ne(e);const c=this.applyRedirectCommands(a,i.redirectTo,u);return i.redirectTo.startsWith("/")?ze(c):this.lineralizeSegments(i,c).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,O.U)((t=>(n._loadedConfig=t,new _t(i,{}))))):(0,s.of)(new _t(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=Te(e,n,i);if(!o)return Ne(e);const u=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,D.zg)((t=>{const i=t.module,o=t.routes,{segmentGroup:l,slicedSegments:c}=Ae(e,a,u,o),d=new _t(l.segments,l.children);if(0===c.length&&d.hasChildren())return this.expandChildren(i,o,d).pipe((0,O.U)((t=>new _t(a,t))));if(0===o.length&&0===c.length)return(0,s.of)(new _t(a,{}));const h=ke(n)===r;return this.expandSegment(i,d,o,c,h?et:r,!0).pipe((0,O.U)((t=>new _t(a.concat(t.segments),t.children))))})))}getChildConfig(t,e,n){return e.children?(0,s.of)(new fe(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,O.U)((t=>(e._loadedConfig=t,t)))):function(t){return new u.y((e=>e.error(ot(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))))}(e)))):(0,s.of)(new fe([],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 ht(o)}));return(0,s.of)(r).pipe(_e(),(0,L.b)((t=>{if(!be(t))return;const e=ot(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e})),(0,O.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 dt(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 dt(e.children,((e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)})),new _t(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 He(t){const e={};for(const n of Object.keys(t.children)){const i=He(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 _t(t.segments.concat(e.segments),e.children)}return t}(new _t(t.segments,e))}class Ve{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ye{constructor(t,e){this.component=t,this.route=e}}function je(t,e,n){const i=t._root;return $e(i,e?e._root:null,n,[i.value])}function Ze(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 $e(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=jt(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!wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!wt(t.url,e.url)||!at(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!at(t.queryParams,e.queryParams);default:return!Xt(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ve(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$e(t,e,a?a.children:null,i,r):$e(t,e,n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ye(a.outlet.component,s))}else s&&Ue(e,a,r),r.canActivateChecks.push(new Ve(i)),o.component?$e(t,null,a?a.children:null,i,r):$e(t,null,n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),dt(o,((t,e)=>Ue(t,n.getContext(e),r))),r}function Ue(t,e,n){const i=jt(t),r=t.value;dt(i,((t,i)=>{r.component?Ue(t,e?e.children.getContext(i):null,n):Ue(t,e,n)})),r.component&&e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Ye(e.outlet.component,r)):n.canDeactivateChecks.push(new Ye(null,r))}class Ge{}function qe(t){return new u.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 qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},et,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Yt(n,e),r=new Jt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Gt(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=Se(t,i),s=this.processSegmentGroup(o,r,i);if(null===s)return null;n.push(...s)}const i=We(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?ct(n).parameters:{};r=new qt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),ke(t),t.component,t,Ke(e),Xe(e)+n.length,en(t))}else{const i=Te(e,t,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new qt(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,tn(t),ke(t),t.component,t,Ke(e),Xe(e)+o.length,en(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:u}=Ae(e,o,s,a.filter((t=>void 0===t.redirectTo)),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new Yt(r,t)]}if(0===a.length&&0===u.length)return[new Yt(r,[])];const c=ke(t)===i,d=this.processSegment(a,l,u,c?et:i);return null===d?null:[new Yt(r,d)]}}function Qe(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function We(t){const e=[],n=new Set;for(const i of t){if(!Qe(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=We(t.children);e.push(new Yt(t.value,n))}return e.filter((t=>!n.has(t)))}function Ke(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Xe(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,k.w)((e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,O.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,O.U)((n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new fe(ut(i.injector.get(sn,void 0,r.XFs.Self|r.XFs.Optional)).map(Oe),i)})),(0,A.K)((t=>{throw e._loader$=void 0,t})));return e._loader$=new g.c(n,(()=>new m.xQ)).pipe((0,F.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):ht(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 un,this.attachRef=null}}class un{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 cn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function dn(t){throw t}function hn(t,e,n){return e.parse("/")}function pn(t,e){return(0,s.of)(null)}const gn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let fn=(()=>{class t{constructor(t,e,n,i,o,s,l,u){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=dn,this.malformedUriErrorHandler=hn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pn,afterPreactivation:pn},this.urlHandlingStrategy=new cn,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 c=o.get(r.R0b);this.isNgZoneEnabled=c instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new yt(new _t([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new an(s,l,(t=>this.triggerEvent(new q(t))),(t=>this.triggerEvent(new J(t)))),this.routerState=$t(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,f.h)((t=>0!==t.id)),(0,O.U)((t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)}))),(0,k.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,k.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,k.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,k.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,O.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?qe(new Ge):(0,s.of)(a)}catch(t){return qe(t)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe((0,O.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 j(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 u=$t(i,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},t),{targetSnapshot:u,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 Z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,O.U)((t=>Object.assign(Object.assign({},t),{guards:je(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=Ze(o,e,r);let a;if(function(t){return t&&ve(t.canDeactivate)}(s))a=ht(s.canDeactivate(t,e,n,i));else{if(!ve(s))throw new Error("Invalid CanDeactivate guard");a=ht(s(t,e,n,i))}return a.pipe((0,I.P)())}));return(0,s.of)(a).pipe(_e())}(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,E.b)((e=>(0,d.z)(function(t,e){return null!==t&&e&&e(new Q(t)),(0,s.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new K(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,h.P)((()=>{const r=e.guards.map((r=>{const o=Ze(r,e.node,n);let s;if(function(t){return t&&ve(t.canActivateChild)}(o))s=ht(o.canActivateChild(i,t));else{if(!ve(o))throw new Error("Invalid CanActivateChild guard");s=ht(o(i,t))}return s.pipe((0,I.P)())}));return(0,s.of)(r).pipe(_e())}))));return(0,s.of)(r).pipe(_e())}(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,h.P)((()=>{const r=Ze(i,e,n);let o;if(function(t){return t&&ve(t.canActivate)}(r))o=ht(r.canActivate(e,t));else{if(!ve(r))throw new Error("Invalid CanActivate guard");o=ht(r(e,t))}return o.pipe((0,I.P)())}))));return(0,s.of)(r).pipe(_e())}(t,e.route,n)))),(0,I.P)((t=>!0!==t),!0))}(i,a,t,e):(0,s.of)(n))),(0,O.U)((t=>Object.assign(Object.assign({},n),{guardsResult:t}))))}))}(this.ngModule.injector,(t=>this.triggerEvent(t))),(0,L.b)((t=>{if(be(t.guardsResult)){const e=ot(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)})),(0,f.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 U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)})),(0,k.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,E.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=Ze(t,e,i);return r.resolve?ht(r.resolve(e,n)):ht(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,O.U)((e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Gt(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 G(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,O.U)((t=>{const e=function(t,e,n){const i=te(t,e._root,n?n._root:void 0);return new Zt(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,O.U)((t=>(new ge(a,t.targetRouterState,t.currentRouterState,l).activate(r),t)))),(0,L.b)({next(){n=!0},complete(){n=!0}}),(0,N.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=be(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new V(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 Y(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){we(t),this.config=t.map(Oe),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 u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),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 dt(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 _t([],{}),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?ue(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,u,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=be(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 H(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),u=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&u)return Promise.resolve(!0);let c,d,h;r?(c=r.resolve,d=r.reject,h=r.promise):h=new Promise(((t,e)=>{c=t,d=e}));const p=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),g=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):g=0,this.setTransition({id:p,targetPageId:g,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.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 V(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(un),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 bn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.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:_n(this.skipLocationChange),replaceUrl:_n(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:_n(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(fn),r.Y36(Ut),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 m.xQ,this.subscription=t.events.subscribe((t=>{t instanceof H&&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:_n(this.skipLocationChange),replaceUrl:_n(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:_n(this.preserveFragment)})}}return t.ɵfac=function(e){return new(e||t)(r.Y36(fn),r.Y36(Ut),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 _n(t){return""===t||!!t}let Cn=(()=>{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 H&&this.update()}))}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,z.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,z.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(fn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(bn,8),r.Y36(yn,8))},t.ɵdir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,bn,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})(),wn=(()=>{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(un),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===Ut?this.route:t===un?this.childContexts:this.parent.get(t,e)}}class Mn{}class On{preload(t,e){return(0,s.of)(null)}}let kn=(()=>{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 q(e))),(e=>t.triggerEvent(new J(e))))}setUpPreloading(){this.subscription=this.router.events.pipe((0,f.h)((t=>t instanceof H)),(0,E.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,z.J)(),(0,O.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(fn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),Sn=(()=>{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 H&&(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(fn),r.LFG(i.EM),r.LFG(void 0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();const Pn=new r.OlP("ROUTER_CONFIGURATION"),Tn=new r.OlP("ROUTER_FORROOT_GUARD"),An=[i.Ye,{provide:xt,useClass:Mt},{provide:fn,useFactory:function(t,e,n,i,r,o,s,a={},l,u){const c=new fn(null,t,e,n,i,r,o,ut(s));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),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,c),a.enableTracing&&c.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)})),c},deps:[xt,un,i.Ye,r.zs3,r.v3s,r.Sil,sn,Pn,[class{},new r.FiY],[class{},new r.FiY]]},un,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[fn]},{provide:r.v3s,useClass:r.EAV},kn,On,class{preload(t,e){return e().pipe((0,A.K)((()=>(0,s.of)(null))))}},{provide:Pn,useValue:{enableTracing:!1}}];function En(){return new r.PXZ("Router",fn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[An,Nn(e),{provide:Tn,useFactory:Fn,deps:[[fn,new r.FiY,new r.tp0]]},{provide:Pn,useValue:n||{}},{provide:i.S$,useFactory:Ln,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Pn]},{provide:Sn,useFactory:Dn,deps:[fn,i.EM,Pn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:On},{provide:r.PXZ,multi:!0,useFactory:En},[zn,{provide:r.ip1,multi:!0,useFactory:Rn,deps:[zn]},{provide:Hn,useFactory:Bn,deps:[zn]},{provide:r.tb,multi:!0,useExisting:Hn}]]}}static forChild(e){return{ngModule:t,providers:[Nn(e)]}}}return t.ɵfac=function(e){return new(e||t)(r.LFG(Tn,8),r.LFG(fn,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 Sn(t,e,n)}function Ln(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function Fn(t){return"guarded"}function Nn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:sn,multi:!0,useValue:t}]}let zn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.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(fn),i=this.injector.get(Pn);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(Pn),n=this.injector.get(kn),i=this.injector.get(Sn),o=this.injector.get(fn),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 Hn=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((()=>{var t;this.maskedElement=new r.C8(n,null!==(t=this.maskito)&&void 0!==t?t:r.A_)}))}))}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:()=>w,CV:()=>C});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 u(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,u)=>{const c=o+a(e,o,l,n),d=e[c.length];return s(d)?c+d:l.match(d)?(null===i&&u>=t.selection[0]&&(i=c.length),null===r&&u>=t.selection[1]&&(r=c.length),c+l):c}),""),u=a(e,o,"",n);return{value:l(o+u,e)?o+u: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 c(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 d{constructor(t,e){this.initialElementState=t,this.maskOptions=e,this.value="",this.selection=[0,0];const{value:n,selection:i}=u(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=c(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,d=s.value.slice(0,a)+n,h=d.length,p=u({value:d+s.value.slice(l),selection:[h,h]},r,o);if(i.slice(0,a)===u({value:d,selection:[h,h]},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=c(r,i),[s,a]=o.selection,l=u({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 h{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 g({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 m({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 f=/\s+$/g,v=/^\s+/g,b=/\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(b);return[i,-1!==r?i+n.length+r:t.length]}const o=t.slice(0,r),[s]=o.match(f)||[""],a=o.replace(f,"").split("").reverse().findIndex((t=>t.match(b)));return[-1!==a?r-s.length-a:0,r]}function _(t=[]){return(e,...n)=>t.reduce(((t,e)=>Object.assign(Object.assign({},t),e(t,...n))),e)}function C(t,e){const n=Object.assign(Object.assign({},r),e),i=_(n.preprocessors),o=_(n.postprocessors),s="string"==typeof t?{value:t,selection:[0,0]}:t,{elementState:a}=i({elementState:s,data:""},"validation"),l=new d(a,n),{value:u,selection:c}=o(l,s);return"string"==typeof t?u:{value:u,selection:c}}class w extends o{constructor(t,e){super(),this.element=t,this.maskitoOptions=e,this.isTextArea="TEXTAREA"===this.element.nodeName,this.eventListener=new h(this.element),this.options=Object.assign(Object.assign({},r),this.maskitoOptions),this.preprocessor=_(this.options.preprocessors),this.postprocessor=_(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:m(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:g(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(C(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:m(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 d(a,this.options),[u,c]=a.selection;l.deleteCharacters([u,c]);const h=this.postprocessor(l,r);if(r.value.slice(0,o)+r.value.slice(s)===h.value&&!i)return;if(t.preventDefault(),function(t,...e){return e.every((({value:e})=>e===t.value))}(r,a,l,h))return this.updateSelectionRange(n?[c,c]:[u,u]);const p=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(h,{inputType:"inputType"in t?t.inputType:p,data:null}),this.updateHistory(h)}handleInsert(t,e){const n=this.elementState,{elementState:i,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),o=new d(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),u=this.postprocessor(o,n);if(u.value.length>this.maxLength)return t.preventDefault();l!==u.value&&(t.preventDefault(),this.updateElementState(u,{data:e,inputType:"inputType"in t?t.inputType:"insertText"}),this.updateHistory(u))}handleEnter(t){this.isTextArea&&this.handleInsert(t,"\n")}}},72878:(t,e,n)=>{n.d(e,{nQ:()=>j,tr:()=>Z,n9:()=>G,H$:()=>nt,f8:()=>yt,vZ:()=>ot,jX:()=>H,rC:()=>Ct});var i=n(25219);const r=[".",",","б","ю"],o=new Date("0001-01-01"),s=new Date("9999-12-31"),a={hours:23,minutes:59,seconds:59,milliseconds:999},l=" ",u="–",c="—",d="-",h="−",p=[d,u,c,h],g=[","," "],m=[":","."],f={hours:2,minutes:2,seconds:2,milliseconds:3};function v(t,e,n){const i=Math.min(Number(n),Math.max(Number(e),Number(t)));return t instanceof Date?new Date(i):i}function b(t,{day:e,month:n,year:i}={}){const r=new Date(t);return e&&r.setDate(r.getDate()+e),n&&r.setMonth(r.getMonth()+n),i&&r.setFullYear(r.getFullYear()+i),r}const y=t=>{var e,n,i;return{day:(null===(e=t.match(/d/g))||void 0===e?void 0:e.length)||0,month:(null===(n=t.match(/m/g))||void 0===n?void 0:n.length)||0,year:(null===(i=t.match(/y/g))||void 0===i?void 0:i.length)||0}};function _(t){return{day:String(t.getDate()).padStart(2,"0"),month:String(t.getMonth()+1).padStart(2,"0"),year:String(t.getFullYear()).padStart(4,"0"),hours:String(t.getHours()).padStart(2,"0"),minutes:String(t.getMinutes()).padStart(2,"0"),seconds:String(t.getSeconds()).padStart(2,"0"),milliseconds:String(t.getMilliseconds()).padStart(3,"0")}}function C(t,e){return!(t.length!t.match(/^0+$/)))}function w(t,e,n){const i=e.replace(/\W/g,"").length;return t.replace(n,"").match(new RegExp(`(\\D*\\d[^\\d\\s]*){1,${i}}`,"g"))||[]}function x(t){return t.reduce(((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n})),{})}function M(t,e){const n=e.replace(/[^dmy]/g,""),i=t.replace(/\D+/g,""),r={day:i.slice(n.indexOf("d"),n.lastIndexOf("d")+1),month:i.slice(n.indexOf("m"),n.lastIndexOf("m")+1),year:i.slice(n.indexOf("y"),n.lastIndexOf("y")+1)};return x(Object.entries(r).filter((([t,e])=>Boolean(e))).sort((([t],[n])=>e.toLowerCase().indexOf(t[0])>e.toLowerCase().indexOf(n[0])?1:-1)))}function O(t,e){var n,i,r,o,s,a,l;const u=2===(null===(n=t.year)||void 0===n?void 0:n.length)?`20${t.year}`:t.year,c=new Date(Number(null!=u?u:"0"),Number(null!==(i=t.month)&&void 0!==i?i:"1")-1,Number(null!==(r=t.day)&&void 0!==r?r:"1"),Number(null!==(o=null==e?void 0:e.hours)&&void 0!==o?o:"0"),Number(null!==(s=null==e?void 0:e.minutes)&&void 0!==s?s:"0"),Number(null!==(a=null==e?void 0:e.seconds)&&void 0!==a?a:"0"),Number(null!==(l=null==e?void 0:e.milliseconds)&&void 0!==l?l:"0"));return c.setFullYear(Number(null!=u?u:"0")),c}const k=", ";function S({day:t,month:e,year:n,hours:i,minutes:r,seconds:o,milliseconds:s},a,l){var u;const c=2===(null===(u=a.match(/y/g))||void 0===u?void 0:u.length)?null==n?void 0:n.slice(-2):n;return(a+(l?k+l:"")).replace(/d+/g,null!=t?t:"").replace(/m+/g,null!=e?e:"").replace(/y+/g,null!=c?c:"").replace(/H+/g,null!=i?i:"").replace(/MSS/g,null!=s?s:"").replace(/M+/g,null!=r?r:"").replace(/S+/g,null!=o?o:"").replace(/^\D+/g,"").replace(/\D+$/g,"")}function P(t,e,n=0){return Number(t.padEnd(e.length,"0"))<=Number(e)?{validatedSegmentValue:t,prefixedZeroesCount:n}:t.endsWith("0")?P(`0${t.slice(0,e.length-1)}`,e,n+1):P(`${t.slice(0,e.length-1)}0`,e,n)}const T={day:31,month:12,year:9999};function A({dateString:t,dateModeTemplate:e,offset:n,selection:[i,r]}){const o=M(t,e),s=Object.entries(o),a={};let l=0;for(const[t,o]of s){const s=S(a,e),u=T[t],c=s.length&&1,d=n+s.length+c+y(e)[t],h=d>=i&&d===r;if(h&&Number(o)>Number(u))return{validatedDateString:"",updatedSelection:[i,r]};if(h&&Number(o)<1)return{validatedDateString:"",updatedSelection:[i,r]};const{validatedSegmentValue:p,prefixedZeroesCount:g}=P(o,`${u}`);l+=g,a[t]=p}const u=S(a,e),c=u.length-t.length;return{validatedDateString:u,updatedSelection:[i+l+c,r+l+c]}}const E=/[\\^$.*+?()[\]{}|]/g,I=new RegExp(E.source);function D(t){return t&&I.test(t)?t.replace(E,"\\$&"):t}function L(t){return t}function F(t){return!t||"object"==typeof t&&0===Object.keys(t).length}function N(t,e){const n=y(e);return x(Object.entries(t).map((([t,e])=>{const i=n[t];return[t,e.length===i&&e.match(/^0+$/)?"1".padStart(i,"0"):e]})))}function z({dateModeTemplate:t,min:e=o,max:n=s,rangeSeparator:i="",dateSegmentSeparator:r="."}){return({value:o,selection:s})=>{const a=i&&o.endsWith(i),l=w(o,t,i);let u="";for(const o of l){u+=u?i:"";const s=M(o,t);C(o,t)?u+=S(_(v(O(s),e,n)),t):u+=S(N(s,t),t)+(o.endsWith(r)?r:"")}return{selection:s,value:u+(a?i:"")}}}function R({dateModeTemplate:t,dateSegmentsSeparator:e,rangeSeparator:n=""}){return({elementState:i,data:r})=>{const o=n?new RegExp(`${n}|-`):k,s=r.split(o),a=r.includes(k)?[s[0]]:s;if(a.every((n=>n.trim().split(/\D/).length===t.split(e).length))){const o=a.map((n=>function(t,e,n){const i=t.split(/\D/),r=e.split(n);return i.map(((t,e)=>e===r.length-1?t:t.padStart(r[e].length,"0"))).join(n)}(n,t,e))).join(n);return{elementState:i,data:`${o}${r.includes(k)&&k+s[1]||""}`}}return{elementState:i,data:r}}}function B(t){const e=new RegExp(`${D(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)}}:L}function H(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,e,n)=>t[n]===e?t:t.slice(0,n)+e+t.slice(n)),e),a=s.length-e.length;return{selection:[r+a,o+a],value:s}}:L}function V({dateModeTemplate:t,dateSegmentsSeparator:e,rangeSeparator:n=""}){return({elementState:i,data:r})=>{const{value:o,selection:s}=i;if(r===e)return{elementState:i,data:s[0]===o.length?r:""};if(p.includes(r))return{elementState:i,data:n};const a=r.replace(new RegExp(`[^\\d${D(e)}${n}]`,"g"),"");if(!a)return{elementState:i,data:""};const[l,u]=s;let c=u+r.length;const d=o.slice(0,l)+a+o.slice(c),h=w(d,t,n);let g="";const m=Boolean(n)&&d.includes(n);for(const e of h){const{validatedDateString:r,updatedSelection:o}=A({dateString:e,dateModeTemplate:t,offset:g?g.length+n.length:0,selection:[l,c]});if(e&&!r)return{elementState:i,data:""};c=o[1],g+=m&&g?n+r:r}const f=g.slice(l,c);return{elementState:{selection:s,value:g.slice(0,l)+f.split(e).map((t=>"0".repeat(t.length))).join(e)+g.slice(c)},data:f}}}function Y(t,e,n){return(i,r)=>{const o=()=>e(i,r);return i.addEventListener(t,o,n),()=>i.removeEventListener(t,o,n)}}function j(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 Z({mode:t,separator:e=".",max:n,min:r}){const o=t.split("/").join(e);return Object.assign(Object.assign({},i.A_),{mask:Array.from(o).map((t=>t===e?t:/\d/)),overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:o,dateSegmentsSeparator:e}),V({dateModeTemplate:o,dateSegmentsSeparator:e})],postprocessors:[z({min:r,max:n,dateModeTemplate:o,dateSegmentSeparator:e})]})}function $({dateModeTemplate:t,rangeSeparator:e,minLength:n,maxLength:i,max:r=s}){return F(n)&&F(i)?L:({value:o,selection:s})=>{const a=w(o,t,e);if(2!==a.length||a.some((e=>!C(e,t))))return{value:o,selection:s};const[l,u]=a.map((e=>O(M(e,t)))),c=b(l,Object.assign(Object.assign({},n),{day:(null==n?void 0:n.day)&&n.day-1})),d=F(i)?r:b(l,Object.assign(Object.assign({},i),{day:(null==i?void 0:i.day)&&i.day-1})),h=v(u,c,r),p=h>d?d:h;return{selection:s,value:a[0]+e+S(_(p),t)}}}function U({dateModeTemplate:t,rangeSeparator:e}){return({value:n,selection:i})=>{const r=w(n,t,e),o=2===r.length&&r.every((e=>C(e,t))),[s,a]=i,l=s>=n.length,u=0===s&&a>=n.length;if(!l&&!u||!o)return{value:n,selection:i};const[c,d]=r.map((e=>O(M(e,t))));return{selection:i,value:c>d?r.reverse().join(e):n}}}function G({mode:t,separator:e=".",min:n,max:r,minLength:o,maxLength:s,dateSeparator:a=e,rangeSeparator:c=`${l}${u}${l}`}){const d=t.split("/").join(a),h=Array.from(d).map((t=>t===a?t:/\d/));return Object.assign(Object.assign({},i.A_),{mask:[...h,...Array.from(c),...h],overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:d,rangeSeparator:c,dateSegmentsSeparator:a}),V({dateModeTemplate:d,rangeSeparator:c,dateSegmentsSeparator:a})],postprocessors:[z({min:n,max:r,dateModeTemplate:d,rangeSeparator:c,dateSegmentSeparator:a}),$({dateModeTemplate:d,minLength:o,maxLength:s,max:r,rangeSeparator:c}),U({dateModeTemplate:d,rangeSeparator:c})]})}function q(t){return x(Object.entries(t).map((([t,e])=>[t,`${e}`.padEnd(f[t],"0")])))}function J(t){const e=t.replace(/\D+/g,""),n={hours:e.slice(0,2),minutes:e.slice(2,4),seconds:e.slice(4,6),milliseconds:e.slice(6,9)};return x(Object.entries(n).filter((([t,e])=>Boolean(e))))}function Q({hours:t="",minutes:e="",seconds:n="",milliseconds:i=""}){return`${t}${e&&`:${e}`}${n&&`:${n}`}${i&&`.${i}`}`}const W=new RegExp(`[${m.map(D).join("")}]$`);function K({timeString:t,paddedMaxValues:e,offset:n,selection:[i,r]}){const o=J(t),s=Object.entries(o),a={};let l=0;for(const[t,o]of s){const s=Q(a),u=e[t],c=s.length&&1,d=n+s.length+c+f[t];if(d>=i&&d<=r&&Number(o)>Number(u))return{validatedTimeString:"",updatedTimeSelection:[i,r]};const{validatedSegmentValue:h,prefixedZeroesCount:p}=P(o,`${u}`);l+=p,a[t]=h}const[u=""]=t.match(W)||[],c=Q(a)+u,d=Math.max(c.length-t.length,0);return{validatedTimeString:c,updatedTimeSelection:[i+l+d,r+l+d]}}function X(t,e){const n=t.includes(k);return[t.slice(0,e.length),t.slice(n?e.length+k.length:e.length)]}function tt({dateModeTemplate:t,timeMode:e,min:n=o,max:i=s}){return({value:r,selection:o})=>{const[s,a]=X(r,t),l=M(s,t),u=J(a);if(!function(t,e,n){return t.length>=e.length+n.length+k.length&&t.split(k)[0].split(/\D/).every((t=>!t.match(/^0+$/)))}(r,t,e)){const a=N(l,t),{year:c,month:d,day:h}=C(s,t)?_(v(O(a),n,i)):a,p=S(Object.assign({year:c,month:d,day:h},u),t,e);return{selection:o,value:p+r.slice(p.length)}}return{selection:o,value:S(_(v(O(l,u),n,i)),t,e)}}}function et({dateModeTemplate:t,dateSegmentsSeparator:e}){const n=new RegExp(`[^\\d${m.map(D).join("")}${D(e)}]+`);return({elementState:i,data:r})=>{const{value:o,selection:s}=i;if(r===e)return{elementState:i,data:s[0]===o.length?r:""};if(g.includes(r))return{elementState:i,data:k};const l=r.replace(n,"");if(!l)return{elementState:i,data:""};const[u,c]=s;let d=c+r.length;const h=o.slice(0,u)+l+o.slice(d),[p,m]=X(h,t);let f="";const v=h.includes(k),{validatedDateString:b,updatedSelection:y}=A({dateString:p,dateModeTemplate:t,offset:0,selection:[u,d]});if(p&&!b)return{elementState:i,data:""};d=y[1],f+=b;const _=q(a),{validatedTimeString:C,updatedTimeSelection:w}=K({timeString:m,paddedMaxValues:_,offset:f.length+k.length,selection:[u,d]});if(m&&!C)return{elementState:i,data:""};d=w[1],f+=v?k+C:C;const x=f.slice(u,d);return{elementState:{selection:s,value:f.slice(0,u)+x.split(e).map((t=>"0".repeat(t.length))).join(e)+f.slice(d)},data:x}}}function nt({dateMode:t,timeMode:e,dateSeparator:n=".",min:r,max:o}){const s=t.split("/").join(n);return Object.assign(Object.assign({},i.A_),{mask:[...Array.from(s).map((t=>t===n?t:/\d/)),...k.split(""),...Array.from(e).map((t=>m.includes(t)?t:/\d/))],overwriteMode:"replace",preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},R({dateModeTemplate:s,dateSegmentsSeparator:n}),et({dateModeTemplate:s,dateSegmentsSeparator:n})],postprocessors:[tt({min:r,max:o,dateModeTemplate:s,timeMode:e})]})}function it({decimalSeparator:t,isNegativeAllowed:e,precision:n,thousandSeparator:i,prefix:r,postfix:o,decimalPseudoSeparators:s=[],pseudoMinuses:a=[]}){const l=rt(r),u="\\d",c=e?`[${h}${a.map((t=>`\\${t}`)).join("")}]?`:"",d=i?`[${u}${D(i).replace(/\s/g,"\\s")}]*`:`[${u}]*`,p=n>0?`([${D(t)}${s.map(D).join("")}]${u}{0,${Number.isFinite(n)?n:""}})?`:"",g=rt(o);return new RegExp(`^${l}${c}${d}${p}${g}$`)}function rt(t){return t?`${t.split("").map((t=>`${D(t)}?`)).join("")}`:""}function ot(t,e="."){const n=!!t.match(new RegExp(`^\\D*[${h}\\${d}${u}${c}]`)),i=t.replace(new RegExp(`[^\\d${D(e)}]`,"g"),"").replace(e,".");return i?Number((n?d:"")+i):NaN}function st({decimalSeparator:t,precision:e,decimalZeroPadding:n,postfix:i}){if(e<=0||!n)return L;const r=new RegExp(`${D(i)}$`);return({value:n,selection:o})=>{if(Number.isNaN(ot(n,t)))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 at({decimalSeparator:t,decimalPseudoSeparators:e,pseudoMinuses:n}){let r=!0;const o=it({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 lt({min:t,max:e,decimalSeparator:n}){return({value:i,selection:r})=>{const o=ot(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(d,h);return{value:t,selection:[t.length,t.length]}}return{value:i,selection:r}}}function ut({decimalSeparator:t,thousandSeparator:e,decimalZeroPadding:n}){return({elementState:i,data:r},o)=>{const{value:s,selection:a}=i,[l,u]=a,c=s.slice(l,u),d=n?[t,e]:[e],h=n&&l>s.indexOf(t)&&Boolean(c.match(/^0+$/gi));return"deleteBackward"!==o&&"deleteForward"!==o||!d.includes(c)&&!h?{elementState:i,data:r}:{elementState:{value:s,selection:"deleteForward"===o?[u,u]:[l,l]},data:r}}}function ct({decimalSeparator:t,precision:e}){const n=new RegExp(`^\\D*${D(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 dt(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 ht(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(D(t),"gi"),"")}}}function pt({thousandSeparator:t,decimalSeparator:e,prefix:n,postfix:i}){if(!t)return L;const r=new RegExp(`^${D(n)}${h}?`),o=new RegExp(`${D(i)}$`);return({value:n,selection:i})=>{const[s,a=""]=n.split(e),[l,u]=i;let[c,d]=i;const h=s.replace(r,"").replace(o,""),[p=""]=s.match(r)||[],[g=""]=s.match(o)||[];return{value:p+Array.from(h).reduceRight(((e,n,i)=>{const r=!(!i&&n===t)&&e.length&&(e.length+1)%4==0;return r&&(n===t||((...t)=>t.every((t=>/\s/.test(t))))(n,t))?t+e:n!==t||r?r?(i<=l&&c++,i<=u&&d++,n+t+e):n+e:(i&&i<=l&&c--,i&&i<=u&&d--,e)}),"")+g+(n.includes(e)?e:"")+a,selection:[c,d]}}}function gt(t,e){if(t>0)return L;const n=new RegExp(`${D(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,"")}}}const mt=[0,0];function ft(t,e){const n=function(t,e){const n=t=>{const n=D(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,u=""]=e.split(t),c=n(l);if(l===c)return{value:e,selection:r};const d=o-i(e,o),h=s-i(e,s);return{value:c+(a?t:"")+u,selection:[Math.max(d,0),Math.max(h,0)]}}}(t,e);return Y("blur",(t=>{const e=n({value:t.value,selection:mt},{value:"",selection:mt}).value;t.value!==e&&(t.value=e,t.dispatchEvent(new Event("input")))}),{capture:!0})}function vt({min:t,max:e,decimalSeparator:n}){return Y("blur",((r,o)=>{const s=ot(r.value,n),a=v(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 bt(t){return Y("blur",(e=>{const n=e.value.replace(new RegExp(`^(\\D+)?${D(t)}`),`$10${t}`);n!==e.value&&(e.value=n,e.dispatchEvent(new Event("input")))}),{capture:!0})}function yt({max:t=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,precision:n=0,thousandSeparator:o=l,decimalSeparator:s=".",decimalPseudoSeparators:a,decimalZeroPadding:p=!1,prefix:g="",postfix:m=""}={}){const f=[d,u,c].filter((t=>t!==o&&t!==s)),v=function({decimalSeparator:t,thousandSeparator:e,decimalPseudoSeparators:n=r}){return n.filter((n=>n!==e&&n!==t))}({decimalSeparator:s,thousandSeparator:o,decimalPseudoSeparators:a});return Object.assign(Object.assign({},i.A_),{mask:it({decimalSeparator:s,precision:n,thousandSeparator:o,prefix:g,postfix:m,isNegativeAllowed:e<0}),preprocessors:[at({decimalSeparator:s,decimalPseudoSeparators:v,pseudoMinuses:f}),dt(h,f),dt(s,v),ct({decimalSeparator:s,precision:n}),ut({decimalSeparator:s,decimalZeroPadding:p,thousandSeparator:o}),gt(n,s),ht(s)],postprocessors:[lt({decimalSeparator:s,min:e,max:t}),H(g),B(m),pt({decimalSeparator:s,thousandSeparator:o,prefix:g,postfix:m}),st({decimalSeparator:s,decimalZeroPadding:p,precision:n,postfix:m})],plugins:[ft(s,o),bt(s),vt({min:e,max:t,decimalSeparator:s})],overwriteMode:p?({value:t,selection:[e]})=>e<=t.indexOf(s)?"shift":"replace":"shift"})}function _t(t){const e=q(t),n=new RegExp(`[^\\d${m.map(D).join("")}]+`);return({elementState:t,data:i},r)=>{if("deleteBackward"===r||"deleteForward"===r)return{elementState:t,data:i};const{value:o,selection:s}=t;if("validation"===r){const{validatedTimeString:t,updatedTimeSelection:n}=K({timeString:o,paddedMaxValues:e,offset:0,selection:s});return{elementState:{value:t,selection:n},data:i}}const a=i.replace(n,""),[l,u]=s;let c=u+a.length;const d=o.slice(0,l)+a+o.slice(c),{validatedTimeString:h,updatedTimeSelection:p}=K({timeString:d,paddedMaxValues:e,offset:0,selection:[l,c]});if(d&&!h)return{elementState:t,data:""};c=p[1];const g=h.slice(l,c);return{elementState:{selection:s,value:h.slice(0,l)+"0".repeat(g.length)+h.slice(c)},data:g}}}function Ct({mode:t,timeSegmentMaxValues:e={}}){const n=Object.assign(Object.assign({},a),e);return Object.assign(Object.assign({},i.A_),{mask:Array.from(t).map((t=>m.includes(t)?t:/\d/)),preprocessors:[({elementState:t},e)=>{const{value:n,selection:i}=t;if(!n||function(t,[e,n]){return n===t.length}(n,i))return{elementState:t};const[r,o]=i,s=n.slice(r,o).replace(/\d/g,"0"),a=n.slice(0,r)+s+n.slice(o);return"validation"===e||"insert"===e&&r===o?{elementState:{selection:i,value:a}}:{elementState:{selection:"deleteBackward"===e||"insert"===e?[r,r]:[o,o],value:a}}},_t(n)],overwriteMode:"replace"})}},62579:(t,e,n)=>{n.d(e,{L1:()=>p,ux:()=>g,UA:()=>m,H3:()=>f,Ct:()=>v,s5:()=>b,de:()=>y,KS:()=>_,yZ:()=>C,m9:()=>h});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),u=n(87519),c=n(47349),d=n(12057);const h=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(d.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)(h);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)())}}),g=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(h).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(h).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(h).CSS||{escape:t=>t,supports:()=>!1}})),m=new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(h).history}),f=new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(h).localStorage}),v=new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(h).location}),b=new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(h).navigator}),y=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(b).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(b).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(d.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)((()=>"hidden"!==t.visibilityState)),(0,u.x)(),(0,c.d)({refCount:!1,bufferSize:1}))}})),_=new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(h).performance}),C=(new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(h).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(h).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(h);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(h).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(b).userAgent}))},23764:(t,e,n)=>{n.d(e,{k2:()=>o,Vi:()=>l,NI:()=>c,IM:()=>u});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,u){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})(),u=(()=>{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})(),c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},32917:(t,e,n)=>{n.d(e,{vU:()=>l,jg:()=>a,ax:()=>u});var i=n(74788),r=n(29856),o=n(9945),s=n(62579);const a=new i.OlP("Box model to observe changes",{providedIn:"root",factory:()=>"content-box"}),l=new i.OlP("Resize Observer API support",{providedIn:"root",factory:()=>!!(0,i.f3M)(s.m9).ResizeObserver});let u=(()=>{class t extends r.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,o.B)())}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(l),i.LFG(a))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})()},30126:(t,e,n)=>{n.d(e,{X1:()=>b,Gt:()=>v,uX:()=>f});var i=n(91211),r=n(74788),o=n(59193),s=n(22416),a=n(41439),l=n(70409);class u{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter((t=>!this.modifier.includes(t))).join(".")}}let c=(()=>{class t extends u{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})(),d=(()=>{class t extends u{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})(),h=(()=>{class t extends u{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 u{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})(),g=(()=>{class t extends u{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 m=[g,c,d,h,p,(()=>{class t extends u{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 u{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 f(t){return(e,n,i)=>{const{value:r}=i;i.value=function(...e){t.apply(this,e)&&(g.ngZone?g.ngZone.run((()=>r.apply(this,e))):r.apply(this,e))}}}function v(t){return t}let b=(()=>{class t{constructor([e]){console.assert(!(e instanceof g)||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:m}),t})()},89570:(t,e,n)=>{n.d(e,{yf:()=>r,Al:()=>o,wq:()=>d,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 u(this.content)?this.content.template:this.content instanceof i.Rgc?this.content:this.t}ngOnChanges({content:t}){var e;const n=this.getContext();if(null===(e=this.c)||void 0===e||e.injector.get(i.sBO).markForCheck(),!t)return;this.vcr.clear();const r=n&&new Proxy(n,{get:(t,e)=>{var n;return null===(n=this.getContext())||void 0===n?void 0:n[e]}});c(this.content)?this.process(this.content,r):null!=(n instanceof a&&n.$implicit)&&this.vcr.createEmbeddedView(this.template,r)}ngDoCheck(){u(this.content)&&this.content.check()}static ngTemplateContextGuard(t,e){return!0}getContext(){return u(t=this.content)||t instanceof i.Rgc||c(this.content)?this.context:new a("function"==typeof this.content?this.content(this.context):this.content);var t}process(t,e){const n=t.createInjector(this.i,e);this.c=this.vcr.createComponent(n.get(i._Vd).resolveComponentFactory(t.component),0,n)}}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 u(t){return t instanceof s}function c(t){return t instanceof o}let d=(()=>{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(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(t){return t}),s||(s=function(t){return t}),l||(l=function(t,e,n){return t.apply(e,n)}),u||(u=function(t,e){return new t(...e)});const c=w(Array.prototype.forEach),d=w(Array.prototype.pop),h=w(Array.prototype.push),p=w(String.prototype.toLowerCase),g=w(String.prototype.toString),m=w(String.prototype.match),f=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),y=w(RegExp.prototype.test),_=(C=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let o=i.length;for(;o--;){let e=i[o];if("string"==typeof e){const t=r(e);t!==e&&(n(i)||(i[o]=t),e=t)}t[e]=!0}return t}function M(e){const n=a(null);for(const[i,o]of t(e))void 0!==r(e,i)&&(n[i]=o);return n}function O(t,e){for(;null!==t;){const n=r(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=i(t)}return function(t){return console.warn("fallback value for",t),null}}const k=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),A=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),E=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=o(["#text"]),D=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),L=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),R=s(/<%[\w\W]*|[\w\W]*%>/gm),B=s(/\${[\w\W]*}/gm),H=s(/^data-[\-\w.\u00B7-\uFFFF]/),V=s(/^aria-[\-\w]+$/),Y=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),j=s(/^(?:\w+script|data):/i),Z=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=s(/^html$/i);var U=Object.freeze({__proto__:null,MUSTACHE_EXPR:z,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:H,ARIA_ATTR:V,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:Z,DOCTYPE_NAME:$});const G=function(){return"undefined"==typeof window?null:window};return function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G();const i=t=>e(t);if(i.version="3.0.6",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;let{document:r}=n;const s=r,l=s.currentScript,{DocumentFragment:u,HTMLTemplateElement:C,Node:w,Element:z,NodeFilter:R,NamedNodeMap:B=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:V,trustedTypes:j}=n,Z=z.prototype,q=O(Z,"cloneNode"),J=O(Z,"nextSibling"),Q=O(Z,"childNodes"),W=O(Z,"parentNode");if("function"==typeof C){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let K,X="";const{implementation:tt,createNodeIterator:et,createDocumentFragment:nt,getElementsByTagName:it}=r,{importNode:rt}=s;let ot={};i.isSupported="function"==typeof t&&"function"==typeof W&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:st,ERB_EXPR:at,TMPLIT_EXPR:lt,DATA_ATTR:ut,ARIA_ATTR:ct,IS_SCRIPT_OR_DATA:dt,ATTR_WHITESPACE:ht}=U;let{IS_ALLOWED_URI:pt}=U,gt=null;const mt=x({},[...k,...S,...P,...A,...I]);let ft=null;const vt=x({},[...D,...L,...F,...N]);let bt=Object.seal(a(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}})),yt=null,_t=null,Ct=!0,wt=!0,xt=!1,Mt=!0,Ot=!1,kt=!1,St=!1,Pt=!1,Tt=!1,At=!1,Et=!1,It=!0,Dt=!1,Lt=!0,Ft=!1,Nt={},zt=null;const Rt=x({},["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"]);let Bt=null;const Ht=x({},["audio","video","img","source","image","track"]);let Vt=null;const Yt=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",$t="http://www.w3.org/1999/xhtml";let Ut=$t,Gt=!1,qt=null;const Jt=x({},[jt,Zt,$t],g);let Qt=null;const Wt=["application/xhtml+xml","text/html"];let Kt=null,Xt=null;const te=r.createElement("form"),ee=function(t){return t instanceof RegExp||t instanceof Function},ne=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Xt||Xt!==t){if(t&&"object"==typeof t||(t={}),t=M(t),Qt=Qt=-1===Wt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Kt="application/xhtml+xml"===Qt?g:p,gt="ALLOWED_TAGS"in t?x({},t.ALLOWED_TAGS,Kt):mt,ft="ALLOWED_ATTR"in t?x({},t.ALLOWED_ATTR,Kt):vt,qt="ALLOWED_NAMESPACES"in t?x({},t.ALLOWED_NAMESPACES,g):Jt,Vt="ADD_URI_SAFE_ATTR"in t?x(M(Yt),t.ADD_URI_SAFE_ATTR,Kt):Yt,Bt="ADD_DATA_URI_TAGS"in t?x(M(Ht),t.ADD_DATA_URI_TAGS,Kt):Ht,zt="FORBID_CONTENTS"in t?x({},t.FORBID_CONTENTS,Kt):Rt,yt="FORBID_TAGS"in t?x({},t.FORBID_TAGS,Kt):{},_t="FORBID_ATTR"in t?x({},t.FORBID_ATTR,Kt):{},Nt="USE_PROFILES"in t&&t.USE_PROFILES,Ct=!1!==t.ALLOW_ARIA_ATTR,wt=!1!==t.ALLOW_DATA_ATTR,xt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Mt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ot=t.SAFE_FOR_TEMPLATES||!1,kt=t.WHOLE_DOCUMENT||!1,Tt=t.RETURN_DOM||!1,At=t.RETURN_DOM_FRAGMENT||!1,Et=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,It=!1!==t.SANITIZE_DOM,Dt=t.SANITIZE_NAMED_PROPS||!1,Lt=!1!==t.KEEP_CONTENT,Ft=t.IN_PLACE||!1,pt=t.ALLOWED_URI_REGEXP||Y,Ut=t.NAMESPACE||$t,bt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(bt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(bt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(bt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ot&&(wt=!1),At&&(Tt=!0),Nt&&(gt=x({},[...I]),ft=[],!0===Nt.html&&(x(gt,k),x(ft,D)),!0===Nt.svg&&(x(gt,S),x(ft,L),x(ft,N)),!0===Nt.svgFilters&&(x(gt,P),x(ft,L),x(ft,N)),!0===Nt.mathMl&&(x(gt,A),x(ft,F),x(ft,N))),t.ADD_TAGS&&(gt===mt&&(gt=M(gt)),x(gt,t.ADD_TAGS,Kt)),t.ADD_ATTR&&(ft===vt&&(ft=M(ft)),x(ft,t.ADD_ATTR,Kt)),t.ADD_URI_SAFE_ATTR&&x(Vt,t.ADD_URI_SAFE_ATTR,Kt),t.FORBID_CONTENTS&&(zt===Rt&&(zt=M(zt)),x(zt,t.FORBID_CONTENTS,Kt)),Lt&&(gt["#text"]=!0),kt&&x(gt,["html","head","body"]),gt.table&&(x(gt,["tbody"]),delete yt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=t.TRUSTED_TYPES_POLICY,X=K.createHTML("")}else void 0===K&&(K=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(j,l)),null!==K&&"string"==typeof X&&(X=K.createHTML(""));o&&o(t),Xt=t}},ie=x({},["mi","mo","mn","ms","mtext"]),re=x({},["foreignobject","desc","title","annotation-xml"]),oe=x({},["title","style","font","a","script"]),se=x({},S);x(se,P),x(se,T);const ae=x({},A);x(ae,E);const le=function(t){h(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},ue=function(t,e){try{h(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!ft[t])if(Tt||At)try{le(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ce=function(t){let e=null,n=null;if(Pt)t=""+t;else{const e=m(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qt&&Ut===$t&&(t=''+t+"");const i=K?K.createHTML(t):t;if(Ut===$t)try{e=(new V).parseFromString(i,Qt)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Ut,"template",null);try{e.documentElement.innerHTML=Gt?X:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),Ut===$t?it.call(e,kt?"html":"body")[0]:kt?e.documentElement:o},de=function(t){return et.call(t.ownerDocument||t,t,R.SHOW_ELEMENT|R.SHOW_COMMENT|R.SHOW_TEXT,null)},he=function(t){return"function"==typeof w&&t instanceof w},pe=function(t,e,n){ot[t]&&c(ot[t],(t=>{t.call(i,e,n,Xt)}))},ge=function(t){let e=null;if(pe("beforeSanitizeElements",t,null),(n=t)instanceof H&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof B)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return le(t),!0;var n;const r=Kt(t.nodeName);if(pe("uponSanitizeElement",t,{tagName:r,allowedTags:gt}),t.hasChildNodes()&&!he(t.firstElementChild)&&y(/<[/\w]/g,t.innerHTML)&&y(/<[/\w]/g,t.textContent))return le(t),!0;if(!gt[r]||yt[r]){if(!yt[r]&&fe(r)){if(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,r))return!1;if(bt.tagNameCheck instanceof Function&&bt.tagNameCheck(r))return!1}if(Lt&&!zt[r]){const e=W(t)||t.parentNode,n=Q(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i)e.insertBefore(q(n[i],!0),J(t))}return le(t),!0}return t instanceof z&&!function(t){let e=W(t);e&&e.tagName||(e={namespaceURI:Ut,tagName:"template"});const n=p(t.tagName),i=p(e.tagName);return!!qt[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===$t?"svg"===n:e.namespaceURI===jt?"svg"===n&&("annotation-xml"===i||ie[i]):Boolean(se[n]):t.namespaceURI===jt?e.namespaceURI===$t?"math"===n:e.namespaceURI===Zt?"math"===n&&re[i]:Boolean(ae[n]):t.namespaceURI===$t?!(e.namespaceURI===Zt&&!re[i])&&!(e.namespaceURI===jt&&!ie[i])&&!ae[n]&&(oe[n]||!se[n]):!("application/xhtml+xml"!==Qt||!qt[t.namespaceURI]))}(t)?(le(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ot&&3===t.nodeType&&(e=t.textContent,c([st,at,lt],(t=>{e=f(e,t," ")})),t.textContent!==e&&(h(i.removed,{element:t.cloneNode()}),t.textContent=e)),pe("afterSanitizeElements",t,null),!1):(le(t),!0)},me=function(t,e,n){if(It&&("id"===e||"name"===e)&&(n in r||n in te))return!1;if(wt&&!_t[e]&&y(ut,e));else if(Ct&&y(ct,e));else if(!ft[e]||_t[e]){if(!(fe(t)&&(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,t)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(t))&&(bt.attributeNameCheck instanceof RegExp&&y(bt.attributeNameCheck,e)||bt.attributeNameCheck instanceof Function&&bt.attributeNameCheck(e))||"is"===e&&bt.allowCustomizedBuiltInElements&&(bt.tagNameCheck instanceof RegExp&&y(bt.tagNameCheck,n)||bt.tagNameCheck instanceof Function&&bt.tagNameCheck(n))))return!1}else if(Vt[e]);else if(y(pt,f(n,ht,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Bt[t])if(xt&&!y(dt,f(n,ht,"")));else if(n)return!1;return!0},fe=function(t){return t.indexOf("-")>0},ve=function(t){pe("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ft};let r=e.length;for(;r--;){const o=e[r],{name:s,namespaceURI:a,value:l}=o,u=Kt(s);let h="value"===s?l:b(l);if(n.attrName=u,n.attrValue=h,n.keepAttr=!0,n.forceKeepAttr=void 0,pe("uponSanitizeAttribute",t,n),h=n.attrValue,n.forceKeepAttr)continue;if(ue(s,t),!n.keepAttr)continue;if(!Mt&&y(/\/>/i,h)){ue(s,t);continue}Ot&&c([st,at,lt],(t=>{h=f(h,t," ")}));const p=Kt(t.nodeName);if(me(p,u,h)){if(!Dt||"id"!==u&&"name"!==u||(ue(s,t),h="user-content-"+h),K&&"object"==typeof j&&"function"==typeof j.getAttributeType)if(a);else switch(j.getAttributeType(p,u)){case"TrustedHTML":h=K.createHTML(h);break;case"TrustedScriptURL":h=K.createScriptURL(h)}try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),d(i.removed)}catch(t){}}}pe("afterSanitizeAttributes",t,null)},be=function t(e){let n=null;const i=de(e);for(pe("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)pe("uponSanitizeShadowNode",n,null),ge(n)||(n.content instanceof u&&t(n.content),ve(n));pe("afterSanitizeShadowDOM",e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if(Gt=!t,Gt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!he(t)){if("function"!=typeof t.toString)throw _("toString is not a function");if("string"!=typeof(t=t.toString()))throw _("dirty is not a string, aborting")}if(!i.isSupported)return t;if(St||ne(e),i.removed=[],"string"==typeof t&&(Ft=!1),Ft){if(t.nodeName){const e=Kt(t.nodeName);if(!gt[e]||yt[e])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof w)n=ce("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Tt&&!Ot&&!kt&&-1===t.indexOf("<"))return K&&Et?K.createHTML(t):t;if(n=ce(t),!n)return Tt?null:Et?X:""}n&&Pt&&le(n.firstChild);const l=de(Ft?t:n);for(;o=l.nextNode();)ge(o)||(o.content instanceof u&&be(o.content),ve(o));if(Ft)return t;if(Tt){if(At)for(a=nt.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(ft.shadowroot||ft.shadowrootmode)&&(a=rt.call(s,a,!0)),a}let d=kt?n.outerHTML:n.innerHTML;return kt&>["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&y($,n.ownerDocument.doctype.name)&&(d="\n"+d),Ot&&c([st,at,lt],(t=>{d=f(d,t," ")})),K&&Et?K.createHTML(d):d},i.setConfig=function(){ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),St=!0},i.clearConfig=function(){Xt=null,St=!1},i.isValidAttribute=function(t,e,n){Xt||ne({});const i=Kt(t),r=Kt(e);return me(i,r,n)},i.addHook=function(t,e){"function"==typeof e&&(ot[t]=ot[t]||[],h(ot[t],e))},i.removeHook=function(t){if(ot[t])return d(ot[t])},i.removeHooks=function(t){ot[t]&&(ot[t]=[])},i.removeAllHooks=function(){ot={}},i}()}()},2546:(t,e,n)=>{n.d(e,{JP:()=>q});var i=n(74788),r=n(12057);let o={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const s=/[&<>"']/,a=new RegExp(s.source,"g"),l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,u=new RegExp(l.source,"g"),c={"&":"&","<":"<",">":">",'"':""","'":"'"},d=t=>c[t];function h(t,e){if(e){if(s.test(t))return t.replace(a,d)}else if(l.test(t))return t.replace(u,d);return t}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(t){return t.replace(p,((t,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const m=/(^|[^\[])\^/g;function f(t,e){t="string"==typeof t?t:t.source,e=e||"";const n={replace:(e,i)=>(i=(i=i.source||i).replace(m,"$1"),t=t.replace(e,i),n),getRegex:()=>new RegExp(t,e)};return n}const v=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(t,e,n){if(t){let t;try{t=decodeURIComponent(g(n)).replace(v,"").toLowerCase()}catch(t){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}e&&!b.test(n)&&(n=function(t,e){_[" "+t]||(C.test(t)?_[" "+t]=t+"/":_[" "+t]=k(t,"/",!0));const n=-1===(t=_[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(w,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(x,"$1")+e:t+e}(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n}const _={},C=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/,M={exec:function(){}};function O(t,e){const n=t.replace(/\|/g,((t,e,n)=>{let i=!1,r=e;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length1;)1&e&&(n+=t),e>>=1,t+=t;return n+t}function P(t,e,n,i){const r=e.href,o=e.title?h(e.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const t={type:"link",raw:n,href:r,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,t}return{type:"image",raw:n,href:r,title:o,text:h(s)}}class T{constructor(t){this.options=t||o}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const t=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:k(t,"\n")}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const t=e[0],n=function(t,e){const n=t.match(/^(\s+)(?:```)/);if(null===n)return e;const i=n[1];return e.split("\n").map((t=>{const e=t.match(/^\s+/);if(null===e)return t;const[n]=e;return n.length>=i.length?t.slice(i.length):t})).join("\n")}(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:n}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(/#$/.test(t)){const e=k(t,"#");this.options.pedantic?t=e.trim():e&&!/ $/.test(e)||(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){const t=e[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=n,{type:"blockquote",raw:e[0],tokens:i,text:t}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n,i,r,o,s,a,l,u,c,d,h,p,g=e[1].trim();const m=g.length>1,f={type:"list",raw:"",ordered:m,start:m?+g.slice(0,-1):"",loose:!1,items:[]};g=m?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`,this.options.pedantic&&(g=m?g:"[*+-]");const v=new RegExp(`^( {0,3}${g})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;t&&(p=!1,e=v.exec(t))&&!this.rules.block.hr.test(t);){if(n=e[0],t=t.substring(n.length),u=e[2].split("\n",1)[0].replace(/^\t+/,(t=>" ".repeat(3*t.length))),c=t.split("\n",1)[0],this.options.pedantic?(o=2,h=u.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=u.slice(o),o+=e[1].length),a=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",t=t.substring(c.length+1),p=!0),!p){const e=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(d=t.split("\n",1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!r.test(c))&&!s.test(c)&&!e.test(c)&&!i.test(t);){if(c.search(/[^ ]/)>=o||!c.trim())h+="\n"+c.slice(o);else{if(a)break;if(u.search(/[^ ]/)>=4)break;if(r.test(u))break;if(s.test(u))break;if(i.test(u))break;h+="\n"+c}a||c.trim()||(a=!0),n+=d+"\n",t=t.substring(d.length+1),u=c.slice(o)}}f.loose||(l?f.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),f.raw+=n}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=h.trimRight(),f.raw=f.raw.trimRight();const b=f.items.length;for(s=0;s"space"===t.type)),e=t.length>0&&t.some((t=>/\n.*\n/.test(t.raw)));f.loose=e}if(f.loose)for(s=0;s$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:i}}}table(t){const e=this.rules.block.table.exec(t);if(e){const t={type:"table",header:O(e[1]).map((t=>({text:t}))),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];let n,i,r,o,s=t.align.length;for(n=0;n({text:t})));for(s=t.header.length,i=0;i/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):h(e[0]):e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const t=e[2].trim();if(!this.options.pedantic&&/^$/.test(t))return;const e=k(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{const t=function(t,e){if(-1===t.indexOf(e[1]))return-1;const n=t.length;let i=0,r=0;for(;r-1){const n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],i="";if(this.options.pedantic){const t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);t&&(n=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return n=n.trim(),/^$/.test(t)?n.slice(1):n.slice(1,-1)),P(e,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:i?i.replace(this.rules.inline._escapes,"$1"):i},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=(n[2]||n[1]).replace(/\s+/g," ");if(t=e[t.toLowerCase()],!t){const t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return P(n,t,n[0],this.lexer)}}emStrong(t,e,n=""){let i=this.rules.inline.emStrong.lDelim.exec(t);if(!i)return;if(i[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=i[0].length-1;let r,o,s=n,a=0;const l="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+n);null!=(i=l.exec(e));){if(r=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!r)continue;if(o=r.length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){a+=o;continue}if(s-=o,s>0)continue;o=Math.min(o,o+s+a);const e=t.slice(0,n+i.index+(i[0].length-r.length)+o);if(Math.min(n,o)%2){const t=e.slice(1,-1);return{type:"em",raw:e,text:t,tokens:this.lexer.inlineTokens(t)}}const l=e.slice(2,-2);return{type:"strong",raw:e,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(/\n/g," ");const n=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return n&&i&&(t=t.substring(1,t.length-1)),t=h(t,!0),{type:"codespan",raw:e[0],text:t}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t,e){const n=this.rules.inline.autolink.exec(t);if(n){let t,i;return"@"===n[2]?(t=h(this.options.mangle?e(n[1]):n[1]),i="mailto:"+t):(t=h(n[1]),i=t),{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}url(t,e){let n;if(n=this.rules.inline.url.exec(t)){let t,i;if("@"===n[2])t=h(this.options.mangle?e(n[0]):n[0]),i="mailto:"+t;else{let e;do{e=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(e!==n[0]);t=h(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:t,href:i,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t,e){const n=this.rules.inline.text.exec(t);if(n){let t;return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:t}}}}const A={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:M,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};A.def=f(A.def).replace("label",A._label).replace("title",A._title).getRegex(),A.bullet=/(?:[*+-]|\d{1,9}[.)])/,A.listItemStart=f(/^( *)(bull) */).replace("bull",A.bullet).getRegex(),A.list=f(A.list).replace(/bull/g,A.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+A.def.source+")").getRegex(),A._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",A._comment=/|$)/,A.html=f(A.html,"i").replace("comment",A._comment).replace("tag",A._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),A.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.blockquote=f(A.blockquote).replace("paragraph",A.paragraph).getRegex(),A.normal={...A},A.gfm={...A.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},A.gfm.table=f(A.gfm.table).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.gfm.paragraph=f(A._paragraph).replace("hr",A.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",A.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A._tag).getRegex(),A.pedantic={...A.normal,html:f("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",A._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(A.normal._paragraph).replace("hr",A.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",A.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const E={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}E._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",E.punctuation=f(E.punctuation).replace(/punctuation/g,E._punctuation).getRegex(),E.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,E.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,E._comment=f(A._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),E.emStrong.lDelim=f(E.emStrong.lDelim).replace(/punct/g,E._punctuation).getRegex(),E.emStrong.rDelimAst=f(E.emStrong.rDelimAst,"g").replace(/punct/g,E._punctuation).getRegex(),E.emStrong.rDelimUnd=f(E.emStrong.rDelimUnd,"g").replace(/punct/g,E._punctuation).getRegex(),E._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,E._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,E._email=/[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])?)+(?![-_])/,E.autolink=f(E.autolink).replace("scheme",E._scheme).replace("email",E._email).getRegex(),E._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,E.tag=f(E.tag).replace("comment",E._comment).replace("attribute",E._attribute).getRegex(),E._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,E._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,E._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,E.link=f(E.link).replace("label",E._label).replace("href",E._href).replace("title",E._title).getRegex(),E.reflink=f(E.reflink).replace("label",E._label).replace("ref",A._label).getRegex(),E.nolink=f(E.nolink).replace("ref",A._label).getRegex(),E.reflinkSearch=f(E.reflinkSearch,"g").replace("reflink",E.reflink).replace("nolink",E.nolink).getRegex(),E.normal={...E},E.pedantic={...E.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",E._label).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",E._label).getRegex()},E.gfm={...E.normal,escape:f(E.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\e+" ".repeat(n.length)));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else{if(r=t,this.options.extensions&&this.options.extensions.startBlock){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,i,r,o,s,a,l=t;if(this.tokens.links){const t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l));)t.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+S("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,o.index)+"["+S("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((i=>!!(n=i.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,l,a))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,D))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,D))){if(r=t,this.options.extensions&&this.options.extensions.startInline){let e=1/0;const n=t.slice(1);let i;this.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"==typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}if(n=this.tokenizer.inlineText(r,I))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){const e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw new Error(e)}}else t=t.substring(n.raw.length),e.push(n);return e}}class F{constructor(t){this.options=t||o}code(t,e,n){const i=(e||"").match(/\S*/)[0];if(this.options.highlight){const e=this.options.highlight(t,i);null!=e&&e!==t&&(n=!0,t=e)}return t=t.replace(/\n$/,"")+"\n",i?'
    '+(n?t:h(t,!0))+"
    \n":"
    "+(n?t:h(t,!0))+"
    \n"}blockquote(t){return`
    \n${t}
    \n`}html(t){return t}heading(t,e,n,i){return this.options.headerIds?`${t}\n`:`${t}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(t,e,n){const i=e?"ol":"ul";return"<"+i+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}listitem(t){return`
  • ${t}
  • \n`}checkbox(t){return" "}paragraph(t){return`

    ${t}

    \n`}table(t,e){return e&&(e=`${e}`),"\n\n"+t+"\n"+e+"
    \n"}tablerow(t){return`\n${t}\n`}tablecell(t,e){const n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`\n`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return this.options.xhtml?"
    ":"
    "}del(t){return`${t}`}link(t,e,n){if(null===(t=y(this.options.sanitize,this.options.baseUrl,t)))return n;let i='
    ",i}image(t,e,n){if(null===(t=y(this.options.sanitize,this.options.baseUrl,t)))return n;let i=`${n}":">",i}text(t){return t}}class N{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,e,n){return""+n}image(t,e,n){return""+n}br(){return""}}class z{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,e){let n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n}slug(t,e={}){const n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}class R{constructor(t){this.options=t||o,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new N,this.slugger=new z}static parse(t,e){return new R(e).parse(t)}static parseInline(t,e){return new R(e).parseInline(t)}parse(t,e=!0){let n,i,r,o,s,a,l,u,c,d,h,p,m,f,v,b,y,_,C,w="";const x=t.length;for(n=0;n0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=_+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=_+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:_}):f+=_),f+=this.parse(v.tokens,m),c+=this.renderer.listitem(f,y,b);w+=this.renderer.list(c,h,p);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1{"function"==typeof i&&(r=i,i=null);const o={...i},s=function(t,e,n){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const t="

    An error occurred:

    "+h(i.message+"",!0)+"
    ";return e?Promise.resolve(t):n?void n(null,t):t}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}((i={...V.defaults,...o}).silent,i.async,r);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),r){const o=i.highlight;let a;try{i.hooks&&(n=i.hooks.preprocess(n)),a=t(n,i)}catch(t){return s(t)}const l=function(t){let n;if(!t)try{i.walkTokens&&V.walkTokens(a,i.walkTokens),n=e(a,i),i.hooks&&(n=i.hooks.postprocess(n))}catch(e){t=e}return i.highlight=o,t?s(t):r(null,n)};if(!o||o.length<3)return l();if(delete i.highlight,!a.length)return l();let u=0;return V.walkTokens(a,(function(t){"code"===t.type&&(u++,setTimeout((()=>{o(t.text,t.lang,(function(e,n){if(e)return l(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),u--,0===u&&l()}))}),0))})),void(0===u&&l())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((e=>t(e,i))).then((t=>i.walkTokens?Promise.all(V.walkTokens(t,i.walkTokens)).then((()=>t)):t)).then((t=>e(t,i))).then((t=>i.hooks?i.hooks.postprocess(t):t)).catch(s);try{i.hooks&&(n=i.hooks.preprocess(n));const r=t(n,i);i.walkTokens&&V.walkTokens(r,i.walkTokens);let o=e(r,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(t){return s(t)}}}function V(t,e,n){return H(L.lex,R.parse)(t,e,n)}V.options=V.setOptions=function(t){var e;return V.defaults={...V.defaults,...t},e=V.defaults,o=e,V},V.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},V.defaults=o,V.use=function(...t){const e=V.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((t=>{const n={...t};if(n.async=V.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=n.apply(this,e)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer){const e=V.defaults.renderer||new F;for(const n in t.renderer){const i=e[n];e[n]=(...r)=>{let o=t.renderer[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.renderer=e}if(t.tokenizer){const e=V.defaults.tokenizer||new T;for(const n in t.tokenizer){const i=e[n];e[n]=(...r)=>{let o=t.tokenizer[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.tokenizer=e}if(t.hooks){const e=V.defaults.hooks||new B;for(const n in t.hooks){const i=e[n];B.passThroughHooks.has(n)?e[n]=r=>{if(V.defaults.async)return Promise.resolve(t.hooks[n].call(e,r)).then((t=>i.call(e,t)));const o=t.hooks[n].call(e,r);return i.call(e,o)}:e[n]=(...r)=>{let o=t.hooks[n].apply(e,r);return!1===o&&(o=i.apply(e,r)),o}}n.hooks=e}if(t.walkTokens){const e=V.defaults.walkTokens;n.walkTokens=function(n){let i=[];return i.push(t.walkTokens.call(this,n)),e&&(i=i.concat(e.call(this,n))),i}}V.setOptions(n)}))},V.walkTokens=function(t,e){let n=[];for(const i of t)switch(n=n.concat(e.call(V,i)),i.type){case"table":for(const t of i.header)n=n.concat(V.walkTokens(t.tokens,e));for(const t of i.rows)for(const i of t)n=n.concat(V.walkTokens(i.tokens,e));break;case"list":n=n.concat(V.walkTokens(i.items,e));break;default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[i.type]?V.defaults.extensions.childTokens[i.type].forEach((function(t){n=n.concat(V.walkTokens(i[t],e))})):i.tokens&&(n=n.concat(V.walkTokens(i.tokens,e)))}return n},V.parseInline=H(L.lexInline,R.parseInline),V.Parser=R,V.parser=R.parse,V.Renderer=F,V.TextRenderer=N,V.Lexer=L,V.lexer=L.lex,V.Tokenizer=T,V.Slugger=z,V.Hooks=B,V.parse=V,V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,R.parse,L.lex;var Y=n(88002),j=(n(28049),n(58497)),Z=n(91211);class ${}const U=new i.OlP("SECURITY_CONTEXT");let G=(()=>{class t{constructor(t,e,n,i,r){this.platform=t,this.securityContext=e,this.http=n,this.sanitizer=r,this.initialMarkedOptions={renderer:new F},this.options=i}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,n=!1,i=this.options){const r=this.trimIndentation(t),o=e?this.decodeHtml(r):r,s=V(n?this.renderEmoji(o):o,i);return this.sanitizer.sanitize(this.securityContext,s)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe((0,Y.U)((e=>this.handleExtension(t,e))))}highlight(t){if((0,r.NF)(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,(t=>t.classList.add("language-none"))),Prism.highlightAllUnder(t)}}renderKatex(t,e){if(!(0,r.NF)(this.platform))return t;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,((t,n)=>katex.renderToString(n,e)))}decodeHtml(t){if(!(0,r.NF)(this.platform))return t;const e=document.createElement("textarea");return e.innerHTML=t,e.value}handleExtension(t,e){const n=t?t.split("?")[0].split(".").splice(-1).join():"";return"md"!==n?"```"+n+"\n"+e+"\n```":e}renderEmoji(t){if(!(0,r.NF)(this.platform))return t;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map((t=>{let n=e;return t.length>0&&(n=isNaN(n)?t.search(/\S|$/):Math.min(t.search(/\S|$/),n)),isNaN(e)&&(e=n),n?t.substring(n):t})).join("\n")}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.Lbi),i.LFG(U),i.LFG(j.eN,8),i.LFG($,8),i.LFG(Z.H7))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})(),q=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[G,e&&e.loader||[],e&&e.markedOptions||[],{provide:U,useValue:e&&null!=e.sanitize?e.sanitize:i.q3G.HTML}]}}static forChild(){return{ngModule:t}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},26215:(t,e,n)=>{n.d(e,{X:()=>o});var i=n(79765),r=n(77971);class o extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}next(t){super.next(this._value=t)}}},23098:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(59193),r=n(25917),o=n(40205);class s{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new s("N",t):s.undefinedValueNotification}static createError(t){return new s("E",void 0,t)}static createComplete(){return s.completeNotification}}s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0)},29856:(t,e,n)=>{n.d(e,{y:()=>u});var i=n(77393),r=n(29181),o=n(46490),s=n(16554),a=n(34022),l=n(82494);let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[r.b])return t[r.b]()}return t||e||n?new i.L(t,e,n):new i.L(o.c)}(t,e,n);if(s?a.add(s.call(a,this.source)):a.add(this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=c(e))(((e,n)=>{let i;i=this.subscribe((e=>{try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.L](){return this}pipe(...t){return 0===t.length?this:(0,a.U)(t)(this)}toPromise(t){return new(t=c(t))(((t,e)=>{let n;this.subscribe((t=>n=t),(t=>e(t)),(()=>t(n)))}))}}return t.create=e=>new t(e),t})();function c(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},46490:(t,e,n)=>{n.d(e,{c:()=>o});var i=n(82494),r=n(54449);const o={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,r.z)(t)},complete(){}}},55197:(t,e,n)=>{n.d(e,{L:()=>r});var i=n(77393);class r extends i.L{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},74235:(t,e,n)=>{n.d(e,{t:()=>f});var i=n(79765),r=n(71023);class o extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var s=n(69457);class a extends s.v{}const l=new a(o);var u=n(59178),c=n(77393),d=n(23098);class h extends c.L{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(h.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(d.P.createNext(t))}_error(t){this.scheduleMessage(d.P.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(d.P.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=n(77971),m=n(78858);class f extends i.xQ{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new v(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let o;if(this.closed)throw new g.N;if(this.isStopped||this.hasError?o=u.w.EMPTY:(this.observers.push(t),o=new m.W(this,t)),i&&t.add(t=new h(t,i)),e)for(let e=0;ee&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i}}class v{constructor(t,e){this.time=t,this.value=e}}},79765:(t,e,n)=>{n.d(e,{Yc:()=>u,xQ:()=>c});var i=n(29856),r=n(77393),o=n(59178),s=n(77971),a=n(78858),l=n(29181);class u extends r.L{constructor(t){super(t),this.destination=t}}let c=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new u(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let e=0;enew d(t,e),t})();class d extends c{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.w.EMPTY}}},78858:(t,e,n)=>{n.d(e,{W:()=>r});var i=n(59178);class r extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},77393:(t,e,n)=>{n.d(e,{L:()=>u});var i=n(69105),r=n(46490),o=n(59178),s=n(29181),a=n(82494),l=n(54449);class u extends o.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.c;break;case 1:if(!t){this.destination=r.c;break}if("object"==typeof t){t instanceof u?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,t,e,n)}}[s.b](){return this}static create(t,e,n){const i=new u(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class c extends u{constructor(t,e,n,o){let s;super(),this._parentSubscriber=t;let a=this;(0,i.m)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==r.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw t;(0,l.z)(t)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,l.z)(e),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},59178:(t,e,n)=>{n.d(e,{w:()=>a});var i=n(59796),r=n(81555),o=n(69105);const s=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let t=0;tt.concat(e instanceof s?e.errors:e)),[])}a.EMPTY=((l=new a).closed=!0,l)},82494:(t,e,n)=>{n.d(e,{v:()=>r});let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},85345:(t,e,n)=>{n.d(e,{IY:()=>s,Ds:()=>a,ft:()=>l});var i=n(77393),r=n(29856),o=n(98314);class s extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof r.y)return t.subscribe(e);let n;try{n=(0,o.s)(t)(e)}catch(t){e.error(t)}return n}},52441:(t,e,n)=>{n.d(e,{c:()=>a,N:()=>l});var i=n(79765),r=n(29856),o=n(59178),s=n(51307);class a extends r.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.w,t.add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t}refCount(){return(0,s.x)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class u extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},9112:(t,e,n)=>{n.d(e,{aj:()=>u});var i=n(54869),r=n(59796),o=n(55197),s=n(96563),a=n(56693);const l={};function u(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,r.k)(t[0])&&(t=t[0]),(0,a.n)(t,n).lift(new c(e))}class c{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new d(t,this.resultSelector))}}class d extends o.L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{n.d(e,{z:()=>o});var i=n(25917),r=n(63282);function o(...t){return(0,r.J)(1)((0,i.of)(...t))}},41439:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(29856),r=n(97968),o=n(59193);function s(t){return new i.y((e=>{let n;try{n=t()}catch(t){return void e.error(t)}return(n?(0,r.D)(n):(0,o.c)()).subscribe(e)}))}},59193:(t,e,n)=>{n.d(e,{E:()=>r,c:()=>o});var i=n(29856);const r=new i.y((t=>t.complete()));function o(t){return t?function(t){return new i.y((e=>t.schedule((()=>e.complete()))))}(t):r}},35758:(t,e,n)=>{n.d(e,{D:()=>l});var i=n(29856),r=n(59796),o=n(88002),s=n(81555),a=n(97968);function l(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return u(e,null);if((0,s.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map((t=>e[t])),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)((t=>e(...t))))}return u(t,null)}function u(t,e){return new i.y((n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let l=0;l{c||(c=!0,s++),r[l]=t},error:t=>n.error(t),complete:()=>{o++,o!==i&&c||(s===i&&n.next(e?e.reduce(((t,e,n)=>(t[e]=r[n],t)),{}):r),n.complete())}}))}}))}},97968:(t,e,n)=>{n.d(e,{D:()=>d});var i=n(29856),r=n(98314),o=n(59178),s=n(16554),a=n(94087),l=n(20377),u=n(44072),c=n(69489);function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new i.y((n=>{const i=new o.w;return i.add(e.schedule((()=>{const r=t[s.L]();i.add(r.subscribe({next(t){i.add(e.schedule((()=>n.next(t))))},error(t){i.add(e.schedule((()=>n.error(t))))},complete(){i.add(e.schedule((()=>n.complete())))}}))}))),i}))}(t,e);if((0,u.t)(t))return function(t,e){return new i.y((n=>{const i=new o.w;return i.add(e.schedule((()=>t.then((t=>{i.add(e.schedule((()=>{n.next(t),i.add(e.schedule((()=>n.complete())))})))}),(t=>{i.add(e.schedule((()=>n.error(t))))}))))),i}))}(t,e);if((0,c.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y((n=>{const i=new o.w;let r;return i.add((()=>{r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((()=>{r=t[l.hZ](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,r.s)(t))}},56693:(t,e,n)=>{n.d(e,{n:()=>s});var i=n(29856),r=n(55015),o=n(94087);function s(t,e){return e?(0,o.r)(t,e):new i.y((0,r.V)(t))}},22759:(t,e,n)=>{n.d(e,{R:()=>a});var i=n(29856),r=n(59796),o=n(69105),s=n(88002);function a(t,e,n,u){return(0,o.m)(n)&&(u=n,n=void 0),u?a(t,e,n).pipe((0,s.U)((t=>(0,r.k)(t)?u(...t):u(t)))):new i.y((i=>{l(t,e,(function(t){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(t)}),i,n)}))}function l(t,e,n,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),o=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),o=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),o=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o{n.d(e,{T:()=>a});var i=n(29856),r=n(54869),o=n(63282),s=n(56693);function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return(0,r.K)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(e)((0,s.n)(t,n))}},25917:(t,e,n)=>{n.d(e,{of:()=>s});var i=n(54869),r=n(56693),o=n(94087);function s(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,o.r)(t,e)):(0,r.n)(t)}},98085:(t,e,n)=>{n.d(e,{S3:()=>a});var i=n(59796),r=n(56693),o=n(55197),s=n(96563);function a(...t){if(1===t.length){if(!(0,i.k)(t[0]))return t[0];t=t[0]}return(0,r.n)(t,void 0).lift(new l)}class l{call(t,e){return e.subscribe(new u(t))}}class u extends o.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{n.d(e,{_:()=>r});var i=n(29856);function r(t,e){return e?new i.y((n=>e.schedule(o,0,{error:t,subscriber:n}))):new i.y((e=>e.error(t)))}function o({error:t,subscriber:e}){e.error(t)}},46797:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(29856),r=n(33637),o=n(26561),s=n(54869);function a(t=0,e,n){let a=-1;return(0,o.k)(e)?a=Number(e)<1?1:Number(e):(0,s.K)(e)&&(n=e),(0,s.K)(n)||(n=r.P),new i.y((e=>{const i=(0,o.k)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:a,subscriber:e})}))}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},21571:(t,e,n)=>{n.d(e,{$R:()=>l});var i=n(56693),r=n(59796),o=n(77393),s=n(20377),a=n(85345);function l(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),(0,i.n)(t,void 0).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new c(t,this.resultSelector))}}class c 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,r.k)(t)?e.push(new h(t)):"function"==typeof t[s.hZ]?e.push(new d(t[s.hZ]())):e.push(new p(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 p extends a.Ds{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[s.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,a.ft)(this.observable,new a.IY(this))}}},5304:(t,e,n)=>{n.d(e,{K:()=>r});var i=n(85345);function r(t){return function(e){const n=new o(t),i=e.lift(n);return n.caught=i}}class o{constructor(t){this.selector=t}call(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}class s extends i.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const n=new i.IY(this);this.add(n);const r=(0,i.ft)(e,n);r!==n&&this.add(r)}}}},94612:(t,e,n)=>{n.d(e,{b:()=>r});var i=n(19773);function r(t,e){return(0,i.zg)(t,e,1)}},28984:(t,e,n)=>{n.d(e,{D:()=>r});var i=n(85345);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new s(t,this.durationSelector))}}class s extends i.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,i.ft)(e,new i.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)}}}},54395:(t,e,n)=>{n.d(e,{b:()=>o});var i=n(77393),r=n(33637);function o(t,e=r.P){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},95242:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(77393);function r(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s(t,this.defaultValue))}}class s extends i.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},87874:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(33637),r=n(77393),o=n(23098);function s(t,e=i.P){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(r,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends r.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},87519:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(77393);function r(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))}}class s extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(t){return this.destination.error(t)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},86804:(t,e,n)=>{n.d(e,{l:()=>o});var i=n(22416),r=n(25917);function o(...t){return e=>(0,i.z)(e,(0,r.of)(...t))}},45435:(t,e,n)=>{n.d(e,{h:()=>r});var i=n(77393);function r(t,e){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}class s extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}},68939:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(77393),r=n(59178);function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.L{constructor(t,e){super(t),this.add(new r.w(e))}}},28049:(t,e,n)=>{n.d(e,{P:()=>u});var i=n(13410),r=n(45435),o=n(15257),s=n(95242),a=n(44635),l=n(54487);function u(t,e){const n=arguments.length>=2;return u=>u.pipe(t?(0,r.h)(((e,n)=>t(e,n,u))):l.y,(0,o.q)(1),n?(0,s.d)(e):(0,a.T)((()=>new i.K)))}},88002:(t,e,n)=>{n.d(e,{U:()=>r});var i=n(77393);function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}},63282:(t,e,n)=>{n.d(e,{J:()=>o});var i=n(19773),r=n(54487);function o(t=Number.POSITIVE_INFINITY){return(0,i.zg)(r.y,t)}},19773:(t,e,n)=>{n.d(e,{zg:()=>s});var i=n(88002),r=n(97968),o=n(85345);function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s(((n,o)=>(0,r.D)(t(n,o)).pipe((0,i.U)(((t,i)=>e(n,t,o,i))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends o.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},59328:(t,e,n)=>{n.d(e,{G:()=>r});var i=n(77393);function r(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends i.L{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},51307:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(77393);function r(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new s(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class s extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},79196:(t,e,n)=>{n.d(e,{r:()=>o});var i=n(77393),r=n(59193);function o(t=-1){return e=>0===t?(0,r.c)():t<0?e.lift(new s(-1,e)):e.lift(new s(t-1,e))}class s{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.count,this.source))}}class a extends i.L{constructor(t,e,n){super(t),this.count=e,this.source=n}complete(){if(!this.isStopped){const{source:t,count:e}=this;if(0===e)return super.complete();e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}},72361:(t,e,n)=>{n.d(e,{a:()=>o});var i=n(79765),r=n(85345);function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new a(t,this.notifier,e))}}class a extends r.Ds{constructor(t,e,n){super(t),this.notifier=e,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new i.xQ;try{const{notifier:e}=this;t=e(this.notifications)}catch(t){return super.complete()}this.retries=t,this.retriesSubscription=(0,r.ft)(t,new r.IY(this))}}},42145:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(77393);function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new o(t,e,n))}}class o{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))}}class s extends i.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(t){this.destination.error(t)}this.seed=n,this.destination.next(n)}}},9945:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(52441),r=n(51307),o=n(79765);function s(){return new o.xQ}function a(){return t=>{return(0,r.x)()((e=s,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,i.N);return r.source=t,r.subjectFactory=n,r})(t));var e}}},47349:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(74235);function r(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let o,s,a=0,l=!1,u=!1;return function(c){let d;a++,!o||l?(l=!1,o=new i.t(t,e,r),d=o.subscribe(this),s=c.subscribe({next(t){o.next(t)},error(t){l=!0,o.error(t)},complete(){u=!0,s=void 0,o.complete()}}),u&&(s=void 0)):d=o.subscribe(this),this.add((()=>{a--,d.unsubscribe(),d=void 0,s&&!u&&n&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)}))}}(r))}},13653:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(77393);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.total=t}call(t,e){return e.subscribe(new s(t,this.total))}}class s extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},39761:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(22416),r=n(54869);function o(...t){const e=t[t.length-1];return(0,r.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},43190:(t,e,n)=>{n.d(e,{w:()=>s});var i=n(88002),r=n(97968),o=n(85345);function s(t,e){return"function"==typeof e?n=>n.pipe(s(((n,o)=>(0,r.D)(t(n,o)).pipe((0,i.U)(((t,i)=>e(n,t,o,i))))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends o.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new o.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,o.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},15257:(t,e,n)=>{n.d(e,{q:()=>s});var i=n(77393),r=n(7108),o=n(59193);function s(t){return e=>0===t?(0,o.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},46782:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(85345);function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new s(t),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class s extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},70409:(t,e,n)=>{n.d(e,{o:()=>r});var i=n(77393);function r(t,e=!1){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.inclusive))}}class s extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(t){return void e.error(t)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}},68307:(t,e,n)=>{n.d(e,{b:()=>s});var i=n(77393),r=n(98640),o=n(69105);function s(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=r.Z,this._tapError=r.Z,this._tapComplete=r.Z,this._tapError=n||r.Z,this._tapComplete=i||r.Z,(0,o.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r.Z,this._tapError=e.error||r.Z,this._tapComplete=e.complete||r.Z)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},43219:(t,e,n)=>{n.d(e,{p:()=>s});var i=n(77393),r=n(33637);const o={leading:!0,trailing:!1};function s(t,e=r.P,n=o){return i=>i.lift(new a(t,e,n.leading,n.trailing))}class a{constructor(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}call(t,e){return e.subscribe(new l(t,this.duration,this.scheduler,this.leading,this.trailing))}}class l extends i.L{constructor(t,e,n,i,r){super(t),this.duration=e,this.scheduler=n,this.leading=i,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(u,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function u(t){const{subscriber:e}=t;e.clearThrottle()}},44635:(t,e,n)=>{n.d(e,{T:()=>o});var i=n(13410),r=n(77393);function o(t=l){return e=>e.lift(new s(t))}class s{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function l(){return new i.K}},57057:(t,e,n)=>{n.d(e,{M:()=>o});var i=n(55197),r=n(96563);function o(...t){return e=>{let n;"function"==typeof t[t.length-1]&&(n=t.pop());const i=t;return e.lift(new s(i,n))}}class s{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.L{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let t=0;t0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}},94087:(t,e,n)=>{n.d(e,{r:()=>o});var i=n(29856),r=n(59178);function o(t,e){return new i.y((n=>{const i=new r.w;let o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}},71023:(t,e,n)=>{n.d(e,{o:()=>o});var i=n(59178);class r extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(t){i=!0,n=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},69457:(t,e,n)=>{n.d(e,{v:()=>r});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,(()=>r.delegate&&r.delegate!==this?r.delegate.now():e())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},42569:(t,e,n)=>{n.d(e,{Z:()=>a});var i=n(71023);class r extends i.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 o=n(69457);class s extends o.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{n.d(e,{P:()=>r});var i=n(71023);const r=new(n(69457).v)(i.o)},20377:(t,e,n)=>{n.d(e,{hZ:()=>i});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},16554:(t,e,n)=>{n.d(e,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},29181:(t,e,n)=>{n.d(e,{b:()=>i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(t,e,n)=>{n.d(e,{W:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},13410:(t,e,n)=>{n.d(e,{K:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},77971:(t,e,n)=>{n.d(e,{N:()=>i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},54449:(t,e,n)=>{function i(t){setTimeout((()=>{throw t}),0)}n.d(e,{z:()=>i})},54487:(t,e,n)=>{function i(t){return t}n.d(e,{y:()=>i})},59796:(t,e,n)=>{n.d(e,{k:()=>i});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},69489:(t,e,n)=>{n.d(e,{z:()=>i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},69105:(t,e,n)=>{function i(t){return"function"==typeof t}n.d(e,{m:()=>i})},26561:(t,e,n)=>{n.d(e,{k:()=>r});var i=n(59796);function r(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},81555:(t,e,n)=>{function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:()=>i})},95639:(t,e,n)=>{n.d(e,{b:()=>r});var i=n(29856);function r(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},44072:(t,e,n)=>{function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:()=>i})},54869:(t,e,n)=>{function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:()=>i})},98640:(t,e,n)=>{function i(){}n.d(e,{Z:()=>i})},34022:(t,e,n)=>{n.d(e,{z:()=>r,U:()=>o});var i=n(54487);function r(...t){return o(t)}function o(t){return 0===t.length?i.y:1===t.length?t[0]:function(e){return t.reduce(((t,e)=>e(t)),e)}}},98314:(t,e,n)=>{n.d(e,{s:()=>c});var i=n(55015),r=n(54449),o=n(20377),s=n(16554),a=n(69489),l=n(44072),u=n(81555);const c=t=>{if(t&&"function"==typeof t[s.L])return c=t,t=>{const e=c[s.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return n=t,t=>(n.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,r.z),t);if(t&&"function"==typeof t[o.hZ])return e=t,t=>{const n=e[o.hZ]();for(;;){let e;try{e=n.next()}catch(e){return t.error(e),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add((()=>{n.return&&n.return()})),t};{const e=(0,u.K)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,c}},55015:(t,e,n)=>{n.d(e,{V:()=>i});const i=t=>e=>{for(let n=0,i=t.length;n{n.d(e,{D:()=>a});var i=n(77393);class r extends i.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var o=n(98314),s=n(29856);function a(t,e,n,i,a=new r(t,n,i)){if(!a.closed)return e instanceof s.y?e.subscribe(a):(0,o.s)(e)(a)}},42775:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(3);Object.defineProperty(e,"conformToMask",{enumerable:!0,get:function(){return i(r).default}});var o=n(2);Object.defineProperty(e,"adjustCaretPosition",{enumerable:!0,get:function(){return i(o).default}});var s=n(5);Object.defineProperty(e,"createTextMaskInputElement",{enumerable:!0,get:function(){return i(s).default}})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.placeholderChar="_",e.strFunction="function"},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.previousConformedValue,r=void 0===e?i:e,o=t.previousPlaceholder,s=void 0===o?i:o,a=t.currentCaretPosition,l=void 0===a?0:a,u=t.conformedValue,c=t.rawValue,d=t.placeholderChar,h=t.placeholder,p=t.indexesOfPipedChars,g=void 0===p?n:p,m=t.caretTrapIndexes,f=void 0===m?n:m;if(0===l||!c.length)return 0;var v=c.length,b=r.length,y=h.length,_=u.length,C=v-b,w=C>0;if(C>1&&!w&&0!==b)return l;var x=0,M=void 0,O=void 0;if(!w||r!==u&&u!==h){var k=u.toLowerCase(),S=c.toLowerCase().substr(0,l).split(i).filter((function(t){return-1!==k.indexOf(t)}));O=S[S.length-1];var P=s.substr(0,S.length).split(i).filter((function(t){return t!==d})).length,T=h.substr(0,S.length).split(i).filter((function(t){return t!==d})).length,A=T!==P,E=void 0!==s[S.length-1]&&void 0!==h[S.length-2]&&s[S.length-1]!==d&&s[S.length-1]!==h[S.length-1]&&s[S.length-1]===h[S.length-2];!w&&(A||E)&&P>0&&h.indexOf(O)>-1&&void 0!==c[l]&&(M=!0,O=c[l]);for(var I=g.map((function(t){return k[t]})),D=I.filter((function(t){return t===O})).length,L=S.filter((function(t){return t===O})).length,F=h.substr(0,h.indexOf(d)).split(i).filter((function(t,e){return t===O&&c[e]!==t})).length,N=F+L+D+(M?1:0),z=0,R=0;R<_&&(x=R+1,k[R]===O&&z++,!(z>=N));R++);}else x=l-C;if(w){for(var B=x,H=x;H<=y;H++)if(h[H]===d&&(B=H),h[H]===d||-1!==f.indexOf(H)||H===y)return B}else if(M){for(var V=x-1;V>=0;V--)if(u[V]===O||-1!==f.indexOf(V)||0===V)return V}else for(var Y=x;Y>=0;Y--)if(h[Y-1]===d||-1!==f.indexOf(Y)||0===Y)return Y};var n=[],i=""},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i="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};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(e)){if((void 0===e?"undefined":i(e))!==o.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");e=e(t,n),e=(0,r.processCaretTraps)(e).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,c=n.previousConformedValue,d=void 0===c?a:c,h=n.placeholderChar,p=void 0===h?o.placeholderChar:h,g=n.placeholder,m=void 0===g?(0,r.convertMaskToPlaceholder)(e,p):g,f=n.currentCaretPosition,v=n.keepCharPositions,b=!1===u&&void 0!==d,y=t.length,_=d.length,C=m.length,w=e.length,x=y-_,M=x>0,O=f+(M?-x:0),k=O+Math.abs(x);if(!0===v&&!M){for(var S=a,P=O;P=O&&e=0;A--){var E=T[A].char;E!==p&&E===m[A>=O&&_===w?A-x:A]&&T.splice(A,1)}var I=a,D=!1;t:for(var L=0;L0)for(;T.length>0;){var N=T.shift(),z=N.char,R=N.isNew;if(z===p&&!0!==b){I+=p;continue t}if(e[L].test(z)){if(!0===v&&!1!==R&&d!==a&&!1!==u&&M){for(var B=T.length,H=null,V=0;V0&&void 0!==arguments[0]?arguments[0]:o,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(t))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==t.indexOf(e))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(e)+"\n\nThe mask that was received is: "+JSON.stringify(t));return t.map((function(t){return t instanceof RegExp?e:t})).join("")},e.isArray=i,e.isString=function(t){return"string"==typeof t||t instanceof String},e.isNumber=function(t){return"number"==typeof t&&void 0===t.length&&!isNaN(t)},e.isNil=function(t){return null==t},e.processCaretTraps=function(t){for(var e=[],n=void 0;-1!==(n=t.indexOf(s));)e.push(n),t.splice(n,1);return{maskWithoutCaretTraps:t,indexes:e}};var r=n(1),o=[],s="[]"},function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){document.activeElement===t&&(g?m((function(){return t.setSelectionRange(e,e,h)}),0):t.setSelectionRange(e,e,h))}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:t,h=i.inputElement,g=i.mask,m=i.guide,f=i.pipe,v=i.placeholderChar,b=void 0===v?c.placeholderChar:v,y=i.keepCharPositions,_=void 0!==y&&y,C=i.showMask,w=void 0!==C&&C;if(void 0===n&&(n=h.value),n!==e.previousConformedValue){(void 0===g?"undefined":s(g))===p&&void 0!==g.pipe&&void 0!==g.mask&&(f=g.pipe,g=g.mask);var x=void 0,M=void 0;if(g instanceof Array&&(x=(0,u.convertMaskToPlaceholder)(g,b)),!1!==g){var O=function(t){if((0,u.isString)(t))return t;if((0,u.isNumber)(t))return String(t);if(null==t)return d;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(t))}(n),k=h.selectionEnd,S=e.previousConformedValue,P=e.previousPlaceholder,T=void 0;if((void 0===g?"undefined":s(g))===c.strFunction){if(!1===(M=g(O,{currentCaretPosition:k,previousConformedValue:S,placeholderChar:b})))return;var A=(0,u.processCaretTraps)(M);M=A.maskWithoutCaretTraps,T=A.indexes,x=(0,u.convertMaskToPlaceholder)(M,b)}else M=g;var E={previousConformedValue:S,guide:m,placeholderChar:b,pipe:f,placeholder:x,currentCaretPosition:k,keepCharPositions:_},I=(0,l.default)(O,M,E).conformedValue,D=(void 0===f?"undefined":s(f))===c.strFunction,L={};D&&(!1===(L=f(I,o({rawValue:O},E)))?L={value:S,rejected:!0}:(0,u.isString)(L)&&(L={value:L}));var F=D?L.value:I,N=(0,a.default)({previousConformedValue:S,previousPlaceholder:P,conformedValue:F,placeholder:x,rawValue:O,currentCaretPosition:k,placeholderChar:b,indexesOfPipedChars:L.indexesOfPipedChars,caretTrapIndexes:T}),z=F===x&&0===N?w?x:d:F;e.previousConformedValue=z,e.previousPlaceholder=x,h.value!==z&&(h.value=z,r(h,N))}}}}};var a=i(n(2)),l=i(n(3)),u=n(4),c=n(1),d="",h="none",p="object",g="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},2005:(t,e,n)=>{var i=n(91211),r=n(74788),o=n(12057),s=n(58497),a=n(56083),l=n(79221);let u=(()=>{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 h(this._renderer,null,e,"register",[n]),new c(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 c extends a.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new d(this._id,t,e||{},this._renderer)}}class d{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 h(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 h(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const p="@",g="@.disabled";let m=(()=>{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 f("",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 f{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==g?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 f{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==g?(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 b=(()=>{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"),_=[{provide:a._j,useClass:u},{provide:l.NH,useFactory:function(){return new l.Ar}},{provide:l.Th,useClass:b},{provide:r.FYo,useFactory:function(t,e,n){return new m(t,e,n)},deps:[i.se,l.Th,r.R0b]}],C=[{provide:l.Vi,useFactory:function(){return(0,l.QN)()?new l.DT:new l.uL}},{provide:y,useValue:"BrowserAnimations"},..._],w=[{provide:l.Vi,useClass:l.nV},{provide:y,useValue:"NoopAnimations"},..._];let x=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?w:C}}}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({providers:C,imports:[i.b2]}),t})();var M=n(47029),O=n(83044),k=n(43232),S=n(23358),P=n.n(S);const T=new r.OlP("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),A=new r.OlP("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),E=new r.OlP("A function that sanitizes value for a CSS rule",{factory:()=>t=>t,providedIn:"root"}),I=P();let D=(()=>{class t{constructor(t,e,{defaultView:n},i){this.config=t,this.sanitizeStyle=e,this.domPurify=I(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)}}return t.ɵfac=function(e){return new(e||t)(r.LFG(T),r.LFG(E),r.LFG(o.K0),r.LFG(A))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var L=n(2546),F=n(97582),N=n(34016),z=n(62579),R=n(6226),B=n(78668),H=n(73460),V=n(47999);let Y=(()=>{class t{constructor(t,e,n){this.pageLoaded$=t,this.router=e,this.storage=n,this.pageLoadedInit="0",this.pageLoaded=this.pageLoaded$,this.version="1.18.0"}ngOnInit(){this.replaceEnvInURI()}replaceEnvInURI(){return(0,F.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(M.V1),r.Y36(N.F0),r.Y36(z.H3))},t.ɵcmp=r.Xpm({type:t,selectors:[["app"]],hostVars:3,hostBindings:function(t,e){2&t&&(r.Ikx("$.class._loaded",e.pageLoaded),r.ekj("_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:[R.G,B.$,H.V,V.w,N.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 j=[{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",target:"_blank"},{section:"Documentation",title:"Changelog",route:"changelog",keywords:"release, change, changelog, archive, history"},{section:"Documentation",title:"Contenteditable accessor",route:"angular-contenteditable-accessor",keywords:"contenteditable, accessor, angular contenteditable accessor"},{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:"Appearance",route:"appearance",keywords:"editor, appearance, 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"}]},{section:"Examples",title:"Toolbar",subPages:[{section:"Examples",title:"Align bottom",keywords:"editor, toolbar, bottom, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/toolbar/bottom"},{section:"Examples",title:"Floating",keywords:"editor, toolbar, floating, wysiwyg, редактор, текст, подсветка, html, rich, text",route:"/toolbar/floating"}]}],Z=[{path:"starter-kit",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(9478)]).then(n.bind(n,19478))).ExampleTuiEditorStarterModule})),data:{title:"StarterKit"}},{path:"stackblitz",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(7726).then(n.bind(n,67726))).StackblitzStarterModule})),data:{title:"Stackblitz Starter"}},{path:"color-picker",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2504)]).then(n.bind(n,42504))).ExampleTuiEditorInputColorPickerModule})),data:{title:"Input color picker"}},{path:"angular-contenteditable-accessor",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(9918).then(n.bind(n,9918))).ExampleAngularContenteditableAccessorModule})),data:{title:"Angular contenteditable accessor"}},{path:"font",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(7932)]).then(n.bind(n,47932))).ExampleTuiEditorFontModule})),data:{title:"Font"}},{path:"anchors",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(760)]).then(n.bind(n,80760))).ExampleTuiEditorAnchorsModule})),data:{title:"Anchors"}},{path:"appearance",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(6240)]).then(n.bind(n,46240))).ExampleTuiEditorAppearanceModule})),data:{title:"Appearance"}},{path:"focus",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(6233)]).then(n.bind(n,6233))).ExampleTuiEditorFocusModule})),data:{title:"Focus"}},{path:"groups",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8033)]).then(n.bind(n,8033))).ExampleTuiEditorGroupsModule})),data:{title:"Groups"}},{path:"upload-files",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(965)]).then(n.bind(n,60965))).ExampleTuiEditorUploadFilesModule})),data:{title:"Upload files"}},{path:"custom-tool/paste-emoji",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(1318)]).then(n.bind(n,71318))).ExampleTuiEditorPasteEmojiToolModule})),data:{title:"Editor — Paste emoji custom tool"}},{path:"custom-tool/color-picker",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8490)]).then(n.bind(n,98490))).ExampleTuiEditorColorPickerToolModule})),data:{title:"Editor — Color picker custom tool"}},{path:"custom-tool/paste-image",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8592),n.e(7573)]).then(n.bind(n,77573))).ExampleTuiEditorPasteImageToolModule})),data:{title:"Editor — Paste image custom tool"}},{path:"highlight/text",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(517)]).then(n.bind(n,80517))).ExampleTuiEditorMarkTextModule})),data:{title:"Editor — Highlight text"}},{path:"toolbar/bottom",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(9762)]).then(n.bind(n,39762))).ExampleToolbarBottomModule})),data:{title:"Editor — Toolbar"}},{path:"toolbar/floating",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8934)]).then(n.bind(n,38934))).ExampleToolbarFloatingModule})),data:{title:"Editor — Toolbar"}},{path:"processing/legacy-html",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(9345)]).then(n.bind(n,9345))).ExampleTuiEditorLegacyHtmlModule})),data:{title:"Editor — Legacy html"}},{path:"processing/cleanup-html",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1919)]).then(n.bind(n,51919))).ExampleTuiEditorCleanupHtmlModule})),data:{title:"Editor — Cleanup html"}},{path:"processing/markdown",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8876)]).then(n.bind(n,48876))).ExampleTuiEditorMarkdownModule})),data:{title:"Editor — Markdown"}},{path:"highlight/code",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(668)]).then(n.bind(n,668))).ExampleTuiEditorCodeBlockModule})),data:{title:"Editor — Highlight code"}},{path:"images/resizable",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1975)]).then(n.bind(n,81975))).ExampleTuiEditorResizableImagesToolModule})),data:{title:"Editor — Resizable images"}},{path:"images/preview",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8841)]).then(n.bind(n,78841))).ExampleTuiEditorPreviewImagesToolModule})),data:{title:"Editor — Preview images"}},{path:"images/upload",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(8669)]).then(n.bind(n,78669))).ExampleTuiEditorUploadImagesModule})),data:{title:"Editor — Upload images"}},{path:"embed/youtube",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(1320)]).then(n.bind(n,51320))).ExampleTuiEditorEmbedYoutubeModule})),data:{title:"Editor — Youtube"}},{path:"embed/iframe",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2291)]).then(n.bind(n,2291))).ExampleTuiEditorEmbedIframeModule})),data:{title:"Editor — Iframe"}},{path:"embed/html5",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield Promise.all([n.e(7195),n.e(2520)]).then(n.bind(n,92520))).ExampleTuiEditorEmbedHtml5Module})),data:{title:"Editor — HTML5"}},{path:"changelog",loadChildren:()=>(0,F.mG)(void 0,void 0,void 0,(function*(){return(yield n.e(1089).then(n.bind(n,1089))).ExampleTuiEditorChangelogModule})),data:{title:"Changelog"}},{path:"**",redirectTo:"starter-kit"}];let $=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[N.Bz.forRoot(Z,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled",scrollOffset:[0,64]})],N.Bz]}),t})();var U=n(89570),G=n(77825);let q=(()=>{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:[N.yS,H.V,G.P],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 J=new U.Al(q);let Q=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({imports:[[k.jzK,N.Bz,k.EIu]]}),t})(),W=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t,bootstrap:[Y]}),t.ɵinj=r.cJS({providers:[{provide:o.S$,useClass:o.b0},{provide:M.Yx,useValue:"TUI Editor | "},{provide:M.Or,useValue:J},{provide:M.AC,useValue:["Description and examples","API"]},{provide:M.V5,useValue:j},{provide:k.hmb,useClass:D},{provide:M.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"}),$,k.WwM,k.upG,O.E6,x,s.JF,Q,L.JP.forRoot({loader:s.eN}),M.qn,k.jzK,k.zw7]]}),t})();(0,r.G48)(),i.q6().bootstrapModule(W).catch((t=>console.error(t)))},95509:(t,e,n)=>{n.d(e,{c:()=>y});var i=n(903),r=n(71216),o=n(26215),s=n(79765),a=n(46797),l=n(43190),u=n(88002),c=n(39761),d=n(74788),h=n(12057),p=n(28699),g=n(18289),m=n(50506);function f(t,e){if(1&t&&(d.TgZ(0,"p",2),d._uU(1),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.hij(" ",t.filename,"\n")}}function v(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"pre",3),d._uU(1," "),d._UZ(2,"code",4),d._uU(3,"\n "),d.TgZ(4,"div",5),d._uU(5,"\n "),d.TgZ(6,"button",6),d.NdJ("click",(function(){return d.CHM(t),d.oxw().copy$.next()})),d.ALo(7,"async"),d._uU(8,"\n "),d.qZA(),d._uU(9,"\n "),d.Hsn(10),d._uU(11,"\n "),d.qZA(),d._uU(12,"\n"),d.qZA()}if(2&t){const t=e.$implicit,n=d.oxw();d.xp6(2),d.Q6J("lineNumbers",!0)("highlight",t),d.xp6(4),d.Q6J("icon",d.lcZ(7,4,n.icon$)||"tuiIconCopyLarge")("cdkCopyToClipboard",t)}}const b=["*"];let y=(()=>{class t{constructor(t){this.markdownCodeProcessor=t,this.rawLoader$$=new o.X(""),this.filename="",this.copy$=new s.xQ,this.icon$=this.copy$.pipe((0,l.w)((()=>(0,a.H)(2e3).pipe((0,u.U)((()=>"tuiIconCopyLarge")),(0,c.O)("tuiIconCheckLarge"))))),this.processor$=this.rawLoader$$.pipe((0,l.w)(r.JQ),(0,u.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)(d.Y36(i.Es))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-doc-code"]],hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("_has-filename",e.hasFilename)},inputs:{filename:"filename",code:"code"},ngContentSelectors:b,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"],[1,"t-code-actions"],["tuiIconButton","","appearance","icon","size","xs",1,"t-copy-button",3,"icon","cdkCopyToClipboard","click"]],template:function(t,e){1&t&&(d.F$t(),d.YNc(0,f,2,1,"p",0),d.YNc(1,v,13,6,"pre",1),d.ALo(2,"async")),2&t&&(d.Q6J("ngIf",e.filename),d.xp6(1),d.Q6J("ngForOf",d.lcZ(2,2,e.processor$)))},directives:[h.O5,h.sg,p.y$,g.v,m.i3],pipes:[h.Ov],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}.t-header[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{border-radius:.25rem}.t-code[_ngcontent-%COMP%]{position:relative;margin:0;white-space:normal;outline:1px solid var(--tui-base-03)}.t-code[_ngcontent-%COMP%] .hljs-ln{width:-webkit-max-content;width:max-content}.t-code[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{margin-top:1rem}.t-code-actions[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;display:flex;justify-content:center;align-items:center;flex-direction:row-reverse}tui-root._mobile[_nghost-%COMP%] .t-code-actions[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-code-actions[_ngcontent-%COMP%]{padding:.3125rem;border-radius:.25rem;border:1px solid var(--tui-base-04)}.t-copy-button[_ngcontent-%COMP%] +*:not(:empty){margin-right:.375rem}.hljs[_ngcontent-%COMP%]:not(:empty){font:var(--tui-font-text-m);font-size:.875rem;padding:1.5rem 2rem;font-family:monospace;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:.375rem 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)}}tui-root._mobile[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty), tui-root._mobile [_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){padding:1rem}.t-code-actions[_ngcontent-%COMP%], .hljs[_ngcontent-%COMP%]:not(:empty){background:var(--tui-base-01)}@supports (background: color-mix(in srgb,var(--tui-base-01),#222 2%)){.t-code-actions[_ngcontent-%COMP%], .hljs[_ngcontent-%COMP%]:not(:empty){background:color-mix(in srgb,var(--tui-base-01),#222 2%)}}"],changeDetection:0}),t})()},40029:(t,e,n)=>{n.d(e,{F:()=>$});var i=n(97582),r=n(12057),o=n(74788),s=n(24751),a=n(34016),l=n(903),u=n(71216),c=n(42600),d=n(43232),h=n(6667),p=n(79765),g=n(47999),m=n(59517),f=n(76995),v=n(51703),b=n(73460),y=n(1065),_=n(75747),C=n(28986),w=n(64387),x=n(44530),M=n(65266),O=n(55891),k=n(63360),S=n(20690),P=n(68039),T=n(18289),A=n(2793),E=n(9975),I=n(77825);const D=["content"],L=["resizer"];function F(t,e){if(1&t&&(o._uU(0),o.TgZ(1,"a",11),o.TgZ(2,"code"),o._uU(3,"tuiMode"),o.qZA(),o.qZA()),2&t){const t=o.oxw();o.hij(" ",t.texts[0]," ")}}function N(t,e){if(1&t&&o._UZ(0,"tui-data-list-wrapper",14),2&t){const t=o.oxw(2);o.Q6J("items",t.items)}}function z(t,e){if(1&t){const t=o.EpF();o.ynx(0),o.TgZ(1,"tui-select",12),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(2," tuiMode "),o.YNc(3,N,1,1,"tui-data-list-wrapper",13),o.qZA(),o.BQk()}if(2&t){const t=o.oxw(),e=o.MAs(2);o.xp6(1),o.Q6J("ngModel",t.mode)("tuiHintContent",e)("tuiTextfieldCleaner",!0)}}function R(t,e){if(1&t){const t=o.EpF();o._uU(0," tuiMode: "),o._UZ(1,"tui-tooltip",15),o.TgZ(2,"div",16),o.TgZ(3,"tui-radio-block",17),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(4," null "),o.qZA(),o.TgZ(5,"tui-radio-block",18),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(6," onDark "),o.qZA(),o.TgZ(7,"tui-radio-block",19),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw().onModeChange(e)})),o._uU(8," onLight "),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(),e=o.MAs(2);o.xp6(1),o.Q6J("content",e),o.xp6(1),o.Q6J("collapsed",!0),o.xp6(1),o.Q6J("hideRadio",!0)("item",null)("ngModel",t.mode),o.xp6(2),o.Q6J("hideRadio",!0)("ngModel",t.mode),o.xp6(2),o.Q6J("hideRadio",!0)("ngModel",t.mode)}}function B(t,e){if(1&t&&o._UZ(0,"tui-svg",27),2&t){const t=o.oxw(2);o.ekj("t-icon_rotated",t.expanded),o.Q6J("src",t.options.iconSmall)}}function H(t,e){if(1&t&&o._UZ(0,"tui-data-list-wrapper",14),2&t){const t=o.oxw(3);o.Q6J("items",t.updateOnVariants)}}const V=function(){return{standalone:!0}};function Y(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"pre",28),o._uU(1),o.ALo(2,"json"),o.qZA(),o.TgZ(3,"div",29),o.TgZ(4,"tui-select",30),o.NdJ("ngModelChange",(function(e){return o.CHM(t),o.oxw(2).updateOnChange(e)})),o._uU(5," updateOn "),o.YNc(6,H,1,1,"tui-data-list-wrapper",13),o.qZA(),o.TgZ(7,"button",31),o._uU(8," Reset "),o.qZA(),o.TgZ(9,"button",32),o._uU(10," Submit "),o.qZA(),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.hij("Form data: ",o.lcZ(2,3,t.testForm.value),""),o.xp6(3),o.Q6J("ngModel",t.updateOn)("ngModelOptions",o.DdM(5,V))}}function j(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"form",20),o.TgZ(1,"div",21),o.GkF(2,22),o.qZA(),o.TgZ(3,"button",23),o.NdJ("click",(function(){return o.CHM(t),o.oxw().toggleDetails()})),o._uU(4),o.qZA(),o.YNc(5,B,1,3,"ng-template",null,24,o.W1O),o.TgZ(7,"tui-expand",25),o.YNc(8,Y,11,6,"ng-template",26),o.qZA(),o.qZA()}if(2&t){const t=o.MAs(6),e=o.oxw();o.Q6J("formGroup",e.testForm),o.xp6(2),o.Q6J("ngTemplateOutlet",e.template),o.xp6(1),o.Q6J("iconRight",t),o.xp6(1),o.hij(" ",e.texts[2]," "),o.xp6(3),o.Q6J("expanded",e.expanded)}}const Z=function(){return[1,0]};class ${constructor(t,e,n,i,r,o,s){var a,l;this.options=t,this.isMobile=e,this.el=n,this.locationRef=i,this.urlSerializer=r,this.texts=o,this.urlStateHandler=s,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,u.cd)(null===(a=this.params.sandboxOpaque)||void 0===a||a),this.expanded=(0,u.cd)(null!==(l=this.params.sandboxExpanded)&&void 0!==l&&l),this.mode=this.params.tuiMode||null,this.sandboxWidth=(0,c.oYk)(this.params.sandboxWidth),this.change$=new p.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,c.Kiv)(e,160,n))-this.delta,r=e$))}])],ngContentSelectors:["*"],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&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,F,4,1,"ng-template",null,1,o.W1O),o.YNc(3,z,4,3,"ng-container",2),o.YNc(4,R,9,9,"ng-template",null,3,o.W1O),o.TgZ(6,"tui-checkbox-labeled",4),o.NdJ("ngModelChange",(function(t){return e.changeOpaque(t)})),o._uU(7),o.qZA(),o.qZA(),o.TgZ(8,"div",5),o.TgZ(9,"div",6),o.TgZ(10,"div",null,7),o.YNc(12,j,9,5,"form",8),o.Hsn(13),o.qZA(),o.qZA(),o.TgZ(14,"div",9,10),o.NdJ("tuiSizeChange",(function(t){return e.updateWidth(t[0])})),o.qZA(),o.qZA()),2&t){const t=o.MAs(5);o.Q6J("tuiMode",null),o.xp6(3),o.Q6J("ngIf",e.isMobile)("ngIfElse",t),o.xp6(3),o.Q6J("ngModel",e.opaque),o.xp6(1),o.hij(" ",e.texts[1]," "),o.xp6(1),o.ekj("t-wrapper_dark","onDark"===e.mode)("t-wrapper_gray","onLight"===e.mode)("t-wrapper_transparent",!e.opaque),o.xp6(4),o.Q6J("ngIf",e.testForm),o.xp6(2),o.Q6J("tuiResizer",o.DdM(13,Z))}},directives:[g.w,r.O5,m.p,s.JJ,s.On,f.U,v.L,a.yS,b.V,y.u,_.O,C.s,w.bZ,x.b,M.g,O.e,k.w,S.g,P._,s._Y,s.JL,s.sg,r.tP,T.v,A.S,E.I,I.P],pipes:[r.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:var(--tui-shadow-dropdown);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:var(--tui-shadow-dropdown);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,i.gn)([c.UMq],$.prototype,"updateUrl",null)},85602:(t,e,n)=>{n.d(e,{B:()=>h});var i=n(12057),r=n(74788),o=n(34016),s=n(903),a=n(71216),l=n(42600),u=n(43232),c=n(79765),d=n(26215);let h=(()=>{class t{constructor(t,e,n,i,o,s){this.template=t,this.locationRef=e,this.activatedRoute=n,this.urlSerializer=i,this.urlStateHandler=o,this.alerts=s,this.documentationPropertyName="",this.documentationPropertyMode=null,this.documentationPropertyType="",this.documentationPropertyDeprecated=!1,this.documentationPropertyValues=null,this.documentationPropertyValueChange=new r.vpe,this.changed$=new c.xQ,this.emits$=new d.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){let e;console.info(this.attrName,t),this.emits$.next(this.emits$.value+1),void 0!==t&&(e=(0,a.sj)(t,2)),this.alerts.open(e,{label:this.attrName}).subscribe()}parseParams(t){const e=t[this.documentationPropertyName],n=t[`${this.documentationPropertyName}$`];if(!e&&!n)return;let i=n&&this.documentationPropertyValues?this.documentationPropertyValues[n]:(0,a.p8)(e);"string"===this.documentationPropertyType&&(0,l.dtH)(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)(r.Y36(r.Rgc),r.Y36(i.Ye),r.Y36(o.gz),r.Y36(o.Hx),r.Y36(s.Ii),r.Y36(u.J9F))},t.ɵdir=r.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:[r.TTD]}),t})()},26256:(t,e,n)=>{n.d(e,{z:()=>dt});var i=n(56083),r=n(74788),o=n(903),s=n(42600),a=n(66682),l=n(43190),u=n(46782),c=n(85602),d=n(75383);let h=(()=>{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=r.Yjl({name:"tuiGetOpacity",type:t,pure:!0}),t})();var p=n(12057),g=n(38039),m=n(1065),f=n(75747),v=n(16331),b=n(28986),y=n(24751),_=n(44530),C=n(99036),w=n(65266),x=n(55891),M=n(31338),O=n(75526),k=n(19042),S=n(20690),P=n(61997),T=n(52846),A=n(71753),E=n(21032),I=n(48236);let D=(()=>{class t{transform(t,e,...n){return t.filter((t=>e(t,...n)))}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiFilter",type:t,pure:!0}),t})(),L=(()=>{class t{transform(t){return t.replace("?","")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiStripOptionalPipe",type:t,pure:!0}),t})(),F=(()=>{class t{transform(t){return t.includes("?")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiIsOptionalPipe",type:t,pure:!0}),t})();var N=n(79567);let z=(()=>{class t{transform(t){return t.includes("null")}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiShowCleanerPipe",type:t,pure:!0}),t})();var R=n(7512),B=n(56775);function H(t,e){if(1&t&&(r.TgZ(0,"h1",2),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.hij(" ",t.heading,"\n")}}function V(t,e){if(1&t&&(r.TgZ(0,"th",10),r._uU(1),r.qZA()),2&t){const t=r.oxw(3);r.xp6(1),r.hij(" ",t.texts[3]," ")}}function Y(t,e){1&t&&r._UZ(0,"tui-badge",22)}function j(t,e){1&t&&r._UZ(0,"tui-badge",23)}function Z(t,e){if(1&t&&(r.TgZ(0,"a",26),r._uU(1),r.qZA()),2&t){const t=r.oxw().$implicit;r.uIk("href",t.reference,r.LSH),r.xp6(1),r.hij(" ",t.type," ")}}function $(t,e){if(1&t&&r._uU(0),2&t){const t=r.oxw().$implicit;r.hij(" ",t.type," ")}}function U(t,e){1&t&&(r.TgZ(0,"span"),r._uU(1," | "),r.qZA())}function G(t,e){if(1&t&&(r.ynx(0),r.YNc(1,Z,2,2,"a",24),r.YNc(2,$,1,1,"ng-template",null,25,r.W1O),r.YNc(4,U,2,0,"span",1),r.BQk()),2&t){const t=e.$implicit,n=e.last,i=r.MAs(3);r.xp6(1),r.Q6J("ngIf",t.reference)("ngIfElse",i),r.xp6(3),r.Q6J("ngIf",!n)}}function q(t,e){if(1&t&&r._UZ(0,"tui-data-list-wrapper",36),2&t){r.oxw(2);const t=r.MAs(3),e=r.oxw(2).$implicit;r.Q6J("itemContent",t)("items",e.documentationPropertyValues)}}function J(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-select",33),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(3).$implicit.onValueChange(e)})),r.ALo(1,"tuiShowCleanerPipe"),r.TgZ(2,"code",34),r._uU(3,"null"),r.qZA(),r.YNc(4,q,1,2,"tui-data-list-wrapper",35),r.qZA()}if(2&t){r.oxw();const t=r.MAs(3),e=r.oxw(2).$implicit;r.Q6J("nativeId",e.attrName)("ngModel",e.documentationPropertyValue)("tuiTextfieldCleaner",r.lcZ(1,5,e.documentationPropertyType))("tuiTextfieldLabelOutside",!0)("valueContent",t)}}function Q(t,e){if(1&t&&(r.TgZ(0,"code"),r._uU(1),r.ALo(2,"tuiInspectAny"),r.qZA()),2&t){const t=e.$implicit;r.xp6(1),r.Oqu(r.lcZ(2,1,t))}}function W(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-toggle",43),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("showIcons",!0)}}function K(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-primitive-textfield",44),r.NdJ("valueChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue||"")}}function X(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",45),r.TgZ(1,"tui-primitive-textfield",46),r.NdJ("valueChange",(function(e){r.CHM(t);const n=r.oxw(4).$implicit;return r.oxw(3).onColorChange(n,e)})),r.ALo(2,"tuiGetOpacity"),r.ALo(3,"tuiGetColorPipe"),r._UZ(4,"input",47),r.qZA(),r.TgZ(5,"tui-input-number",48),r.NdJ("ngModelChange",(function(e){r.CHM(t);const n=r.oxw(4).$implicit;return r.oxw(3).onOpacityChange(n,e)})),r.ALo(6,"tuiGetOpacity"),r._uU(7," Opacity "),r.qZA(),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.xp6(1),r.Q6J("tuiInputOpacity",r.lcZ(2,8,t.documentationPropertyValue))("tuiTextfieldLabelOutside",!0)("value",r.lcZ(3,10,t.documentationPropertyValue)),r.uIk("id",t.attrName),r.xp6(4),r.Q6J("max",100)("min",0)("ngModel",r.lcZ(6,12,t.documentationPropertyValue))("step",1)}}function tt(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-input-number",49),r.NdJ("ngModelChange",(function(e){return r.CHM(t),r.oxw(4).$implicit.onValueChange(e||0)})),r.qZA()}if(2&t){const t=r.oxw(4).$implicit;r.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("step",1)("tuiTextfieldLabelOutside",!0)}}function et(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"tui-primitive-textfield",44),r.NdJ("valueChange",(function(e){return r.CHM(t),r.oxw(5).$implicit.onValueChange(e)})),r._uU(1," Default content "),r.qZA()}if(2&t){const t=r.oxw(5).$implicit;r.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue.toString())}}function nt(t,e){if(1&t&&(r.ynx(0),r.YNc(1,et,2,4,"tui-primitive-textfield",50),r.ALo(2,"tuiIsPrimitivePolymorpheusContentPipe"),r.BQk()),2&t){const t=r.oxw(4).$implicit;r.xp6(1),r.Q6J("ngIf",r.lcZ(2,1,t.documentationPropertyValue))}}function it(t,e){if(1&t&&(r.ynx(0,37),r.YNc(1,W,1,3,"tui-toggle",38),r.YNc(2,K,1,4,"tui-primitive-textfield",39),r.YNc(3,X,8,14,"div",40),r.YNc(4,tt,1,4,"tui-input-number",41),r.YNc(5,nt,3,3,"ng-container",42),r.BQk()),2&t){const t=r.oxw(3).$implicit;r.Q6J("ngSwitch",t.documentationPropertyType),r.xp6(1),r.Q6J("ngSwitchCase","boolean"),r.xp6(1),r.Q6J("ngSwitchCase","string"),r.xp6(1),r.Q6J("ngSwitchCase","color"),r.xp6(1),r.Q6J("ngSwitchCase","number"),r.xp6(1),r.Q6J("ngSwitchCase","PolymorpheusContent")}}function rt(t,e){if(1&t&&(r.ynx(0),r.YNc(1,J,5,7,"tui-select",30),r.YNc(2,Q,3,3,"ng-template",null,31,r.W1O),r.YNc(4,it,6,6,"ng-template",null,32,r.W1O),r.BQk()),2&t){const t=r.MAs(5),e=r.oxw(2).$implicit;r.xp6(1),r.Q6J("ngIf",e.hasItems)("ngIfElse",t)}}function ot(t,e){if(1&t&&(r.TgZ(0,"tui-notification",51),r.ALo(1,"async"),r._uU(2," Emit! "),r.qZA()),2&t){const t=r.oxw(2).$implicit;r.Q6J("@emitEvent",r.lcZ(1,1,t.emits$))}}function st(t,e){if(1&t&&(r.TgZ(0,"td",27),r.YNc(1,rt,6,2,"ng-container",28),r.YNc(2,ot,3,3,"ng-template",null,29,r.W1O),r.qZA()),2&t){const t=r.MAs(3),e=r.oxw().$implicit;r.xp6(1),r.Q6J("ngIf",e.shouldShowValues)("ngIfElse",t)}}function at(t,e){if(1&t&&(r.TgZ(0,"tr",11),r.TgZ(1,"td",12),r.TgZ(2,"div",13),r.TgZ(3,"code",14),r._uU(4),r.ALo(5,"tuiStripOptionalPipe"),r.qZA(),r.YNc(6,Y,1,0,"tui-badge",15),r.ALo(7,"tuiIsOptionalPipe"),r.YNc(8,j,1,0,"tui-badge",16),r.qZA(),r.GkF(9,17),r.qZA(),r.TgZ(10,"td",12),r.TgZ(11,"span",18),r.TgZ(12,"code",19),r.YNc(13,G,5,3,"ng-container",20),r.ALo(14,"tuiDocTypeReference"),r.qZA(),r.qZA(),r.qZA(),r.YNc(15,st,4,2,"td",21),r.qZA()),2&t){const t=e.$implicit,n=r.oxw(3);r.ekj("t-deprecated",t.documentationPropertyDeprecated),r.xp6(3),r.Udp("color","var(--tui-accent-active)"),r.xp6(1),r.hij(" ",r.lcZ(5,10,t.attrName)," "),r.xp6(2),r.Q6J("ngIf",r.lcZ(7,12,t.attrName)),r.xp6(2),r.Q6J("ngIf",t.documentationPropertyDeprecated),r.xp6(1),r.Q6J("ngTemplateOutlet",t.template),r.xp6(4),r.Q6J("ngForOf",r.lcZ(14,14,t.documentationPropertyType)),r.xp6(2),r.Q6J("ngIf",n.showValues)}}function lt(t,e){if(1&t&&(r.TgZ(0,"table",4),r.TgZ(1,"tr",5),r.TgZ(2,"th",6),r._uU(3),r.qZA(),r.TgZ(4,"th",7),r._uU(5),r.qZA(),r.YNc(6,V,2,1,"th",8),r.qZA(),r.YNc(7,at,16,16,"tr",9),r.qZA()),2&t){const t=r.oxw().ngIf,e=r.oxw();r.xp6(3),r.Oqu(e.texts[2]),r.xp6(2),r.Oqu(e.type),r.xp6(1),r.Q6J("ngIf",e.showValues&&!e.isAPI),r.xp6(1),r.Q6J("ngForOf",t)}}function ut(t,e){if(1&t&&(r.ynx(0),r.YNc(1,lt,8,4,"table",3),r.BQk()),2&t){const t=e.ngIf;r.xp6(1),r.Q6J("ngIf",t.length)}}const ct=["*"];let dt=(()=>{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=s.Mmc,this.activeItemIndex=0,this.matcher=(t,e)=>!e.has(t.documentationPropertyName)}ngAfterContentInit(){(0,s.llR)(this.propertiesConnectors).pipe((0,l.w)((t=>(0,a.T)(...t.map((({changed$:t})=>t))))),(0,s.NAr)(this.cdr),(0,u.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,s.ROF)(e).join(", ")}, ${n/100})`;t.onValueChange(i)}onOpacityChange(t,e){const n=this.getColor.transform(t.documentationPropertyValue||""),i=`rgba(${(0,s.ROF)(n)}, ${(e||0)/100})`;t.onValueChange(i)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.sBO),r.Y36(o.IK),r.Y36(o.et),r.Y36(s.a31,2),r.Y36(d.i),r.Y36(h))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-doc-documentation"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,c.B,4),2&t){let t;r.iGM(t=r.CRH())&&(e.propertiesConnectors=t)}},inputs:{heading:"heading",showValues:"showValues",isAPI:"isAPI"},features:[r._Bn([d.i,h,s.a31])],ngContentSelectors:ct,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","t-additional-info"],[1,"t-property-code"],["size","s","status","neutral","value","Optional",4,"ngIf"],["size","s","status","error","value","Deprecated",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"type"],[1,"t-code-type"],[4,"ngFor","ngForOf"],["class","t-cell t-cell_value",4,"ngIf"],["size","s","status","neutral","value","Optional"],["size","s","status","error","value","Deprecated"],["target","_blank","class","t-code-reference",4,"ngIf","ngIfElse"],["default",""],["target","_blank",1,"t-code-reference"],[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&&(r.F$t(),r.YNc(0,H,2,1,"h1",0),r.Hsn(1),r.YNc(2,ut,2,1,"ng-container",1),r.ALo(3,"tuiFilter")),2&t&&(r.Q6J("ngIf",e.heading),r.xp6(2),r.Q6J("ngIf",r.Dn7(3,2,e.propertiesConnectors,e.matcher,e.excludedProperties)))},directives:[p.O5,p.sg,p.tP,g.g,m.u,f.O,v.Ek,b.s,y.JJ,y.On,_.b,C.x,w.g,x.e,p.RF,p.n9,M.p,O.y,k.B,S.g,P.$,T.M,A.q,E.g,I.L],pipes:[D,L,F,N.f,z,R.F,h,d.i,B.j,p.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%] .t-property-code[_ngcontent-%COMP%]{text-decoration:line-through}.t-deprecated-label[_ngcontent-%COMP%]{margin-right:.125rem;color:var(--tui-error-fill);font-size:.75rem}.t-additional-info[_ngcontent-%COMP%]{display:flex;grid-gap:.3125rem;gap:.3125rem;align-items:center}.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)}.t-code-type[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start}.t-code-reference[_ngcontent-%COMP%]{display:inline-flex;color:var(--tui-link);text-decoration:none;align-items:center;justify-content:center;grid-gap:3px;gap:3px}.t-code-reference[_ngcontent-%COMP%]:after{content:"";font-size:1rem;width:1rem;height:1rem;background:currentColor;-webkit-mask:url(\'data:image/svg+xml,\') center / 100%;mask:url(\'data:image/svg+xml,\') center / 100%}'],data:{animation:[(0,i.X$)("emitEvent",[(0,i.eR)(":increment",[(0,i.oB)({opacity:1}),(0,i.jt)("500ms ease-in")])])]},changeDetection:0}),t})()},75383:(t,e,n)=>{n.d(e,{i:()=>o});var i=n(42600),r=n(74788);let o=(()=>{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,i.WSX)(...e)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiGetColorPipe",type:t,pure:!0}),t})()},7512:(t,e,n)=>{n.d(e,{F:()=>s});var i=n(71216),r=n(42600),o=n(74788);let s=(()=>{class t{constructor(t){this.isE2E=t}transform(t,e=2){return this.isE2E&&"function"==typeof t?"λ(x) => y":(0,i.sj)(t,e)}}return t.ɵfac=function(e){return new(e||t)(o.Y36(r.oDT,16))},t.ɵpipe=o.Yjl({name:"tuiInspectAny",type:t,pure:!0}),t})()},56775:(t,e,n)=>{n.d(e,{j:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t{transform(t){return(0,i.Ajw)(t)||(0,i.dtH)(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=r.Yjl({name:"tuiIsPrimitivePolymorpheusContentPipe",type:t,pure:!0}),t})()},79567:(t,e,n)=>{n.d(e,{f:()=>o});var i=n(903),r=n(74788);let o=(()=>{class t{constructor(t,e){this.parser=t,this.linkHandler=e}transform(t){return this.parser(t).map((({type:t,extracted:e})=>{var n,i;return{type:t,extracted:e,reference:null!==(i=null===(n=this.linkHandler)||void 0===n?void 0:n.call(this,e))&&void 0!==i?i:null}})).sort(((t,e)=>{var n,i,r;return null!==(r=null===(n=e.reference)||void 0===n?void 0:n.localeCompare(null!==(i=t.reference)&&void 0!==i?i:""))&&void 0!==r?r:-1}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.B$,16),r.Y36(i.x9,16))},t.ɵpipe=r.Yjl({name:"tuiDocTypeReference",type:t,pure:!0}),t})()},42328:(t,e,n)=>{n.d(e,{f:()=>W});var i=n(50506),r=n(62579),o=n(903),s=n(71216),a=n(42600),l=n(43232),u=n(6667),c=n(26215),d=n(79765),h=n(88002),p=n(43190),g=n(99814),m=n(74788),f=n(12057),v=n(89570),b=n(34016),y=n(18289),_=n(25276),C=n(32489),w=n(94824),x=n(57634),M=n(95509);let O=(()=>{class t{transform(t,e){return[e,...Object.keys(t)]}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=m.Yjl({name:"tuiDocExampleGetTabs",type:t,pure:!0}),t})();var k=n(2579);function S(t,e){if(1&t&&m._UZ(0,"span",8),2&t){const t=e.polymorpheusOutlet;m.Q6J("textContent",t)}}function P(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"a",9),m.NdJ("click",(function(e){return m.CHM(t),m.oxw(2).copyExampleLink(e.currentTarget)})),m.ALo(1,"async"),m.qZA()}if(2&t){const t=m.oxw(2);m.Q6J("fragment",t.id)("icon",t.options.linkIcon)("title",m.lcZ(1,3,t.copy$))}}function T(t,e){if(1&t&&(m.TgZ(0,"h3",5),m.YNc(1,S,1,1,"span",6),m.YNc(2,P,2,5,"a",7),m.qZA()),2&t){const t=m.oxw();m.xp6(1),m.Q6J("polymorpheusOutlet",t.heading),m.xp6(1),m.Q6J("ngIf",t.id)}}function A(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function E(t,e){if(1&t&&(m.TgZ(0,"h4",10),m.YNc(1,A,2,1,"ng-container",11),m.qZA()),2&t){const t=m.oxw();m.xp6(1),m.Q6J("polymorpheusOutlet",t.description)}}function I(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function D(t,e){if(1&t&&(m.TgZ(0,"button",21),m.YNc(1,I,2,1,"ng-container",11),m.qZA()),2&t){const t=m.oxw().$implicit,e=m.oxw(4);m.xp6(1),m.Q6J("polymorpheusOutlet",e.getTabTitle(t))}}function L(t,e){1&t&&(m.ynx(0),m.YNc(1,D,2,1,"button",20),m.BQk())}function F(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function N(t,e){if(1&t&&(m.ynx(0),m.YNc(1,F,2,1,"ng-container",11),m.BQk()),2&t){const t=e.ngIf;m.xp6(1),m.Q6J("polymorpheusOutlet",t)}}function z(t,e){if(1&t&&(m.TgZ(0,"button",25),m._uU(1),m.qZA()),2&t){const t=m.oxw(5);m.xp6(1),m.hij(" Edit on ",t.codeEditor.name," ")}}function R(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"tui-loader",22),m.NdJ("click",(function(){m.CHM(t);const e=m.oxw(3).ngIf;return m.oxw().edit(e)})),m.ALo(1,"async"),m.YNc(2,N,2,1,"ng-container",23),m.YNc(3,z,2,1,"ng-template",null,24,m.W1O),m.qZA()}if(2&t){const t=m.MAs(4),e=m.oxw(4);m.Q6J("overlay",!0)("showLoader",!!m.lcZ(1,4,e.loading$)),m.xp6(2),m.Q6J("ngIf",null==e.codeEditor?null:e.codeEditor.content)("ngIfElse",t)}}function B(t,e){if(1&t){const t=m.EpF();m.TgZ(0,"div",16),m.TgZ(1,"tui-tabs-with-more",17),m.NdJ("activeItemIndexChange",(function(e){return m.CHM(t),m.oxw(3).activeItemIndex=e})),m.YNc(2,L,2,0,"ng-container",18),m.qZA(),m.YNc(3,R,5,6,"tui-loader",19),m.ALo(4,"tuiMapper"),m.qZA()}if(2&t){const t=m.oxw().ngIf,e=m.oxw().ngIf,n=m.oxw();m.xp6(1),m.Q6J("activeItemIndex",n.activeItemIndex),m.xp6(1),m.Q6J("ngForOf",t),m.xp6(1),m.Q6J("ngIf",m.xi3(4,3,e,n.visible))}}function H(t,e){if(1&t&&m.GkF(0,29),2&t){m.oxw(4);const t=m.MAs(5);m.Q6J("ngTemplateOutlet",t)}}const V=function(t){return{$implicit:t}};function Y(t,e){if(1&t&&m.GkF(0,30),2&t){const t=m.oxw(2).ngIf,e=m.oxw().ngIf,n=m.oxw(),i=m.MAs(7);m.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",m.VKq(2,V,(null==e?null:e[t[n.activeItemIndex]])||""))}}function j(t,e){if(1&t&&(m.TgZ(0,"div",26),m.YNc(1,H,1,1,"ng-container",27),m.YNc(2,Y,1,4,"ng-template",null,28,m.W1O),m.qZA()),2&t){const t=e.index,n=m.MAs(3),i=m.oxw(3);m.ekj("t-content_animated",!i.isE2E)("t-content_visible",i.activeItemIndex===t),m.xp6(1),m.Q6J("ngIf",t===i.defaultTabIndex)("ngIfElse",n)}}function Z(t,e){if(1&t&&(m.ynx(0),m.YNc(1,B,5,6,"div",14),m.YNc(2,j,4,6,"div",15),m.BQk()),2&t){const t=e.ngIf;m.xp6(1),m.Q6J("ngIf",t.length>1),m.xp6(1),m.Q6J("ngForOf",t)}}function $(t,e){if(1&t&&(m.TgZ(0,"div",12),m.YNc(1,Z,3,2,"ng-container",13),m.ALo(2,"tuiDocExampleGetTabs"),m.qZA()),2&t){const t=e.ngIf,n=m.oxw();m.xp6(1),m.Q6J("ngIf",m.xi3(2,1,t,n.defaultTab))}}function U(t,e){1&t&&(m.TgZ(0,"div",31),m.Hsn(1),m.qZA())}function G(t,e){if(1&t&&(m.ynx(0),m._uU(1),m.BQk()),2&t){const t=e.polymorpheusOutlet;m.xp6(1),m.hij(" ",t," ")}}function q(t,e){if(1&t&&(m.ynx(0),m.YNc(1,G,2,1,"ng-container",33),m.BQk()),2&t){const t=e.$implicit,n=m.oxw().$implicit;m.xp6(1),m.Q6J("polymorpheusOutlet",t)("polymorpheusOutletContext",m.VKq(2,V,n))}}function J(t,e){if(1&t&&(m.TgZ(0,"tui-doc-code",32),m.YNc(1,q,2,4,"ng-container",18),m.qZA()),2&t){const t=e.$implicit,n=m.oxw();m.Q6J("code",t),m.xp6(1),m.Q6J("ngForOf",n.codeActions)}}const Q=["*"];let W=(()=>{class t{constructor(t,e,n,i,r,o,a,l,u,g){this.clipboard=t,this.alerts=e,this.location=n,this.copyTexts$=i,this.texts=r,this.codeEditor=o,this.processContent=a,this.isE2E=l,this.codeActions=u,this.options=g,this.rawLoader$$=new c.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,p.w)(s.vP),(0,h.U)((t=>this.processContent(t)))),this.loading$=new d.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({href:t}){this.clipboard.copy(t),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)))}}return t.ɵfac=function(e){return new(e||t)(m.Y36(i.TU),m.Y36(l.J9F),m.Y36(r.Ct),m.Y36(u.UVe),m.Y36(o.mv),m.Y36(o.lW,8),m.Y36(o.$_),m.Y36(a.oDT),m.Y36(o.mT),m.Y36(g.mt))},t.ɵcmp=m.Xpm({type:t,selectors:[["tui-doc-example"]],hostVars:2,hostBindings:function(t,e){2&t&&m.ekj("_fullsize",e.fullsize)},inputs:{id:"id",heading:"heading",description:"description",content:"content",fullsize:"fullsize",componentName:"componentName"},ngContentSelectors:Q,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","routerLink",".","size","xs","tuiIconButton","","type","button","class","t-link-icon",3,"fragment","icon","title","click",4,"ngIf"],[3,"textContent"],["appearance","icon","routerLink",".","size","xs","tuiIconButton","","type","button",1,"t-link-icon",3,"fragment","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"],[3,"code"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(m.F$t(),m.YNc(0,T,3,2,"h3",0),m.YNc(1,E,2,1,"h4",1),m.YNc(2,$,3,4,"div",2),m.ALo(3,"async"),m.YNc(4,U,2,0,"ng-template",null,3,m.W1O),m.YNc(6,J,2,2,"ng-template",null,4,m.W1O)),2&t&&(m.Q6J("ngIf",e.heading),m.xp6(1),m.Q6J("ngIf",e.description),m.xp6(1),m.Q6J("ngIf",m.lcZ(3,3,e.processor$)))},directives:[f.O5,v.Li,b.yS,y.v,f.sg,_.W,C.w,w.y,x.k,f.tP,M.c],pipes:[f.Ov,O,k.c],styles:["[_nghost-%COMP%]{position:relative;display:block;padding-top:3.5rem;clear:right}[_nghost-%COMP%]:target{animation:1s .3s tuiShaking}[_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-title[_ngcontent-%COMP%]:first-letter, .t-description[_ngcontent-%COMP%]:first-letter{text-transform:capitalize}.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;overflow:hidden}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 .875rem 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 .875rem 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:.375rem 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-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})()},99814:(t,e,n)=>{n.d(e,{mt:()=>s});var i=n(81811),r=n(42600);const o={codeEditorVisibilityHandler:t=>Boolean(t[i.N.TS]&&t[i.N.HTML]),tabTitles:new Map,fullsize:!0,linkIcon:"tuiIconLink"},s=(0,r.JN4)(o)},26887:(t,e,n)=>{n.d(e,{f:()=>w});var i=n(34016),r=n(903),o=n(42600),s=n(79765),a=n(66682),l=n(88002),u=n(39761),c=n(87519),d=n(74788),h=n(18289),p=n(55788),g=n(52934),m=n(89570),f=n(3942),v=n(12057);const b=["tuiDocHeader",""];function y(t,e){1&t&&d._UZ(0,"tui-doc-navigation",4)}function _(t,e){if(1&t&&d._UZ(0,"img",5),2&t){const t=e.polymorpheusOutlet;d.Q6J("src",t,d.LSH)}}const C=["*"];let w=(()=>{class t{constructor(t,e,n,i){this.icons=t,this.logo=e,this.menu=n,this.router=i,this.stream$=new s.xQ,this.open$=(0,a.T)(this.router.events.pipe((0,l.U)(o.IyD)),this.stream$).pipe((0,u.O)(!1),(0,c.x)())}onClick(){this.stream$.next(!0)}onActiveZone(t){t||this.stream$.next(!1)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(r.oq),d.Y36(r.Or),d.Y36(r.gG),d.Y36(i.F0))},t.ɵcmp=d.Xpm({type:t,selectors:[["header","tuiDocHeader",""]],attrs:b,ngContentSelectors:C,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&&(d.F$t(),d.TgZ(0,"button",0),d.NdJ("click",(function(){return e.onClick()}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),d.YNc(1,y,1,0,"tui-doc-navigation",1),d.ALo(2,"async"),d.qZA(),d.TgZ(3,"div",2),d.YNc(4,_,1,1,"img",3),d.qZA(),d.Hsn(5)),2&t&&(d.Q6J("icon",e.icons.menu)("title",e.menu),d.xp6(1),d.Q6J("tuiSidebar",!!d.lcZ(2,4,e.open$)),d.xp6(3),d.Q6J("polymorpheusOutlet",e.logo))},directives:[h.v,p.e,g.B,m.Li,f.u],pipes:[v.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:1;display:flex;box-shadow:var(--tui-shadow-navigation);height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}@supports (background: color-mix(in srgb,var(--tui-base-01),transparent 50%)){[_nghost-%COMP%]{background:color-mix(in srgb,var(--tui-base-01),transparent 50%);-webkit-backdrop-filter:blur(1.25rem);backdrop-filter:blur(1.25rem)}}.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})()},61997:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(74788),r=n(42600);let o=(()=>{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(r.KZI))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiInputOpacity",""]],inputs:{tuiInputOpacity:"tuiInputOpacity"}}),t})()},64596:(t,e,n)=>{n.d(e,{C:()=>c});var i=n(903),r=n(74788),o=n(12057),s=n(73460),a=n(34016);function l(t,e){1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t&&(r.xp6(1),r.Oqu(", "))}function u(t,e){if(1&t&&(r.ynx(0),r._UZ(1,"a",2),r.YNc(2,l,2,1,"ng-container",3),r.BQk()),2&t){const t=e.$implicit,n=e.last,i=r.oxw();r.xp6(1),r.Q6J("innerText",t)("routerLink",i.getRouterLink(t)),r.xp6(1),r.Q6J("ngIf",!n)}}let c=(()=>{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)(r.Y36(i.VX),r.Y36(i._Z))},t.ɵcmp=r.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&&(r.TgZ(0,"h5",0),r._uU(1),r.qZA(),r.YNc(2,u,3,3,"ng-container",1)),2&t&&(r.xp6(1),r.Oqu(e.text),r.xp6(1),r.Q6J("ngForOf",e.seeAlso))},directives:[o.sg,s.V,a.yS,o.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})()},81306:(t,e,n)=>{n.d(e,{z:()=>c});var i=n(97582),r=n(903),o=n(42600),s=n(74788),a=n(89570),l=n(18289);function u(t,e){if(1&t&&s._UZ(0,"a",1),2&t){const t=e.polymorpheusOutlet,n=s.oxw();s.Q6J("href",t,s.LSH)("icon",n.icons.code)("title",n.text)}}class c{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}}}c.ɵfac=function(t){return new(t||c)(s.Y36(r.oq),s.Y36(r.yO),s.Y36(r.as))},c.ɵcmp=s.Xpm({type:c,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&&s.YNc(0,u,1,3,"a",0),2&t&&s.Q6J("polymorpheusOutlet",e.pathIsUrl(e.path)?e.path:e.sourceCode)("polymorpheusOutletContext",e.pathOptions)},directives:[a.Li,l.v],encapsulation:2,changeDetection:0}),(0,i.gn)([o.UMq],c.prototype,"pathIsUrl",null),(0,i.gn)([o.UMq],c.prototype,"getPathOptions",null)},78668:(t,e,n)=>{n.d(e,{$:()=>x});var i=n(74788),r=n(24931),o=n(903),s=n(42600),a=n(43232),l=n(39761),u=n(88002),c=n(87519),d=n(9945),h=n(12057),p=n(6226),g=n(3942),m=n(34016),f=n(26887),v=n(18289),b=n(47999),y=n(75830);function _(t,e){1&t&&i._UZ(0,"tui-theme-night")}const C=[[["tuiDocNavigation"]],[["tuiDocHeader"]],[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],w=["tuiDocNavigation","tuiDocHeader","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let x=(()=>{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,l.O)(null),(0,u.U)((()=>this.night.value)),(0,c.x)(),(0,d.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(o.oq),i.Y36(r.ML),i.Y36(r.kk))},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:a.wtG,useExisting:(0,i.Gpc)((()=>t))},s.$DV])],ngContentSelectors:w,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(C),i.YNc(0,_,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:[h.O5,p.G,g.u,m.lC,f.f,v.v,b.w,y.Z],pipes:[h.Ov],styles:['@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}html,body{scroll-padding-top:4rem;background:var(--tui-base-01);height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}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;display:inline-flex;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;align-items:center;border-radius:.25rem;font-weight:500;outline:1px solid var(--tui-base-04);font-size:.75rem;padding:0 .3125rem;margin:.125rem .1875rem;text-wrap:wrap}tui-notification code:not(pre code):not(.hljs):not([class*="language-"]){mix-blend-mode:luminosity}a code:not(pre code):not(.hljs):not([class*="language-"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{isolation:isolate;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-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-property{color:var(--tui-support-14)}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-attr{color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link,tui-doc-code .hljs-built_in{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})()},3942:(t,e,n)=>{n.d(e,{u:()=>pt});var i=n(97582),r=n(12057),o=n(74788),s=n(24751),a=n(91211),l=n(34016),u=n(903),c=n(71216),d=n(2219),h=n(42600),p=n(43232),g=n(9112),m=n(45435),f=n(88002),v=n(39761),b=n(43190),y=n(15257),_=n(46782),C=n(19773);function w(t){return t.map((({section:t})=>t)).filter(h.PcC).filter(((t,e,n)=>n.indexOf(t)===e))}const x=new o.OlP("[NAVIGATION_TITLE]"),M=new o.OlP("[NAVIGATION_LABELS]"),O=new o.OlP("[NAVIGATION_ITEMS]"),k=[h.a31,{provide:x,deps:[l.F0,l.gz,u.Yx,h.a31],useFactory:(t,e,n,i)=>t.events.pipe((0,m.h)((t=>t instanceof l.m2)),(0,f.U)((()=>e.firstChild)),(0,m.h)(h.PcC),(0,C.zg)((({data:t})=>t)),(0,f.U)((({title:t})=>`${n}${t}`)),(0,_.R)(i))},{provide:M,deps:[u.V5],useFactory:w},{provide:O,deps:[u.V5],useFactory:t=>[...w(t).map((e=>t.filter((({section:t})=>t===e)))),t.filter((t=>!t.section))]}];var S=n(38642),P=n(55770),T=n(28986),A=n(30528),E=n(44530),I=n(61183),D=n(99036),L=n(96281),F=n(47999),N=n(21260),z=n(65266),R=n(22545),B=n(94052),H=n(91283),V=n(89570),Y=n(77825),j=n(25535),Z=n(25466),$=n(73460),U=n(22889),G=n(2793);function q(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function J(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",14),o.NdJ("click",(function(){o.CHM(t);const e=o.oxw(4),n=o.MAs(1);return e.onClick(n)})),o._uU(1),o.YNc(2,q,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=e.$implicit;o.Q6J("fragment",t.fragment)("routerLink",t.route)("target",t.target||"_self"),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}function Q(t,e){if(1&t&&(o.TgZ(0,"tui-opt-group",12),o.YNc(1,J,3,6,"a",13),o.qZA()),2&t){const t=e.$implicit,n=e.index,i=o.oxw(3);o.Q6J("label",i.labels[n]||""),o.xp6(1),o.Q6J("ngForOf",t)}}function W(t,e){if(1&t&&(o.TgZ(0,"tui-data-list"),o.YNc(1,Q,2,2,"tui-opt-group",11),o.ALo(2,"async"),o.qZA()),2&t){const t=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",o.lcZ(2,1,t.filtered$))}}function K(t,e){1&t&&(o.ynx(0),o.YNc(1,W,3,3,"tui-data-list",10),o.BQk())}const X=function(t,e){return{item:t,index:e}};function tt(t,e){if(1&t&&o.GkF(0,21),2&t){const t=e.$implicit,n=e.index,i=o.oxw(2).index;o.oxw();const r=o.MAs(12);o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(2,X,t,100*i+n))}}function et(t,e){if(1&t&&(o.TgZ(0,"div",20),o.YNc(1,tt,1,5,"ng-container",8),o.qZA()),2&t){const t=o.oxw().index,e=o.oxw();o.xp6(1),o.Q6J("ngForOf",e.items[t])}}function nt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"tui-accordion-item",17),o.NdJ("openChange",(function(e){const n=o.CHM(t).index;return!!(o.oxw().openPagesArr[n]=e)})),o.TgZ(1,"span",18),o.TgZ(2,"strong"),o._uU(3),o.qZA(),o.qZA(),o.YNc(4,et,2,1,"ng-template",19),o.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=o.oxw();o.Q6J("borders",null)("open",!!i.openPagesArr[n]),o.xp6(3),o.Oqu(t)}}function it(t,e){if(1&t&&o.GkF(0,21),2&t){const t=e.$implicit,n=e.index,i=o.oxw(),r=o.MAs(12);o.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",o.WLB(2,X,t,i.items.length-1+n))}}function rt(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function ot(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",24),o.NdJ("click",(function(){return o.CHM(t),o.oxw(2).closeMenu()})),o._uU(1),o.YNc(2,rt,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=o.oxw().item,e=o.oxw();o.Q6J("routerLink",t.route)("target",t.target||"_self")("tuiScrollIntoViewLink",e.isActive(t.route)),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}function st(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function at(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"button",30),o.NdJ("click",(function(){o.CHM(t);const e=o.oxw(2).index;return o.oxw().onGroupClick(e)})),o._UZ(1,"tui-svg",31),o._uU(2),o.YNc(3,st,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=o.oxw(2),e=t.index,n=t.item,i=o.oxw();o.xp6(1),o.ekj("t-chevron_active",!!i.openPagesGroupsArr[e]),o.Q6J("src",i.icons.more),o.xp6(1),o.hij(" ",n.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",n.icon)}}function lt(t,e){if(1&t&&o._UZ(0,"tui-svg",16),2&t){const t=e.polymorpheusOutlet;o.Q6J("src",t)}}function ut(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"a",32),o.NdJ("click",(function(){return o.CHM(t),o.oxw(3).closeMenu()})),o._uU(1),o.YNc(2,lt,1,1,"tui-svg",15),o.qZA()}if(2&t){const t=e.$implicit,n=o.oxw(3);o.Q6J("fragment",t.fragment)("routerLink",t.route)("target",t.target||"_self")("tuiScrollIntoViewLink",n.isActive(t.route)),o.uIk("rel",t.rel),o.xp6(1),o.hij(" ",t.title," "),o.xp6(1),o.Q6J("polymorpheusOutlet",t.icon)}}const ct=function(){return{exact:!1}};function dt(t,e){if(1&t&&(o.TgZ(0,"div",25),o.YNc(1,at,4,5,"button",26),o.TgZ(2,"tui-expand",27),o.TgZ(3,"div",28),o.YNc(4,ut,3,7,"a",29),o.qZA(),o.qZA(),o.qZA()),2&t){const t=o.oxw(),e=t.item,n=t.index,i=o.oxw();o.Q6J("routerLinkActiveOptions",o.DdM(4,ct)),o.xp6(1),o.Q6J("ngIf",e.subPages),o.xp6(1),o.Q6J("expanded",!!i.openPagesGroupsArr[n]),o.xp6(2),o.Q6J("ngForOf",i.$pages(e.subPages))}}function ht(t,e){if(1&t&&(o.YNc(0,ot,3,6,"a",22),o.YNc(1,dt,5,5,"ng-template",null,23,o.W1O)),2&t){const t=e.item,n=o.MAs(2);o.Q6J("ngIf",!t.subPages)("ngIfElse",n)}}class pt{constructor(t,e,n,i,r,o,a,u,c,d,p,C,w,x,M){this.title$=n,this.mode=i,this.sidebar=r,this.labels=o,this.items=a,this.searchText=u,this.router=c,this.activatedRoute=d,this.destroy$=p,this.readyToScroll$=C,this.docIcons=w,this.icons=x,this.doc=M,this.menuOpen=!1,this.openPagesArr=[],this.openPagesGroupsArr=[],this.active="",this.search=new s.NI(""),this.filtered$=(0,h.EKY)(this.search).pipe((0,m.h)((t=>t.trim().length>2)),(0,f.U)((t=>this.filterItems(this.flattenSubPages(this.items),t)))),this.mode$=this.mode.change$.pipe((0,v.O)(null),(0,f.U)((()=>this.mode.mode||"onLight"))),n.subscribe((n=>{t.markForCheck(),e.setTitle(n),this.openActivePageGroup()})),(0,g.aj)([this.router.events.pipe((0,m.h)((t=>t instanceof l.Xs))),this.title$.pipe((0,b.w)((()=>this.readyToScroll$.pipe((0,m.h)(Boolean)))))]).pipe((0,y.q)(1),(0,f.U)((([t])=>t.anchor||"")),(0,m.h)(Boolean),(0,_.R)(this.destroy$)).subscribe((t=>this.navigateToAnchorLink(t)))}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,h.pfE)(t.filter((({title:t,keywords:n=""})=>(e=e.toLowerCase().trim(),n=n.toLowerCase(),(t=t.toLowerCase()).includes(e)||n.includes(e)||t.includes((0,c.OO)(e))||n.includes((0,c.OO)(e))||e.replace(/-/gi,"").includes(t)||t.includes(e.replace(/\s|tui/g,""))||n.includes(e.replace(/\s|tui/g,""))||e.split(/\s/).find((e=>t.includes(e)))))),"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"})}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}`):[];if(!e.length||!e[e.length-1])return;const n=this.doc.createElement("a");n.href=`${this.doc.location.pathname}#${t}`,n.style.display="none",n.style.position="absolute",this.doc.body.appendChild(n),n.click(),n.remove()}}pt.ɵfac=function(t){return new(t||pt)(o.Y36(o.sBO),o.Y36(a.Dx),o.Y36(x),o.Y36(p.wtG),o.Y36(d.B7,8),o.Y36(M),o.Y36(O),o.Y36(u.EI),o.Y36(l.F0),o.Y36(l.gz),o.Y36(h.a31,2),o.Y36(u.V1),o.Y36(u.oq),o.Y36(p.Gs9),o.Y36(r.K0))},pt.ɵcmp=o.Xpm({type:pt,selectors:[["tui-doc-navigation"]],hostVars:2,hostBindings:function(t,e){2&t&&o.ekj("_open",e.menuOpen)},features:[o._Bn(k)],ngContentSelectors:["*"],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","target","click",4,"ngFor","ngForOf"],["tuiOption","",3,"fragment","routerLink","target","click"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],["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","target","tuiScrollIntoViewLink","click",4,"ngIf","ngIfElse"],["subPagesTemplate",""],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink",3,"routerLink","target","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","target","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","target","tuiScrollIntoViewLink","click"]],template:function(t,e){1&t&&(o.F$t(),o.TgZ(0,"tui-input",0,1),o._uU(2),o.YNc(3,K,2,0,"ng-container",2),o.qZA(),o.TgZ(4,"nav",3),o.TgZ(5,"tui-scrollbar",4),o.ALo(6,"async"),o.TgZ(7,"tui-accordion",5),o.YNc(8,nt,5,3,"tui-accordion-item",6),o.qZA(),o.TgZ(9,"div",7),o.YNc(10,it,1,5,"ng-container",8),o.qZA(),o.YNc(11,ht,3,2,"ng-template",null,9,o.W1O),o.qZA(),o.qZA(),o.Hsn(13)),2&t&&(o.Q6J("formControl",e.search)("tuiAutoFocus",!!e.sidebar)("tuiTextfieldCleaner",!0)("tuiTextfieldIconLeft",e.docIcons.search)("tuiTextfieldLabelOutside",!0),o.xp6(2),o.hij(" ",e.searchText," "),o.xp6(1),o.Q6J("ngIf",e.canOpen),o.xp6(2),o.Q6J("tuiMode",o.lcZ(6,12,e.mode$)),o.xp6(2),o.Q6J("closeOthers",!1)("rounded",!1),o.xp6(1),o.Q6J("ngForOf",e.labels),o.xp6(2),o.Q6J("ngForOf",e.itemsWithoutSections))},directives:[S.K,P.w,T.s,s.JJ,s.oH,A.k,E.b,I.a,D.x,r.O5,L.I,F.w,N.o,r.sg,z.g,R.q,B.R,H.v,l.yS,V.Li,Y.P,j.K,Z.d,r.tP,$.V,l.Od,U.$,G.S],pipes:[r.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%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .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;text-decoration:none;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-icon[_ngcontent-%COMP%]{margin-left:.5rem}.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,i.gn)([h.UMq],pt.prototype,"filterItems",null),(0,i.gn)([h.UMq],pt.prototype,"flattenSubPages",null)},31037:(t,e,n)=>{n.d(e,{n:()=>r});var i=n(74788);let r=(()=>{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})()},15997:(t,e,n)=>{n.d(e,{q:()=>P});var i=n(903),r=n(42600),o=n(14891),s=n(31037),a=n(74788),l=n(12057),u=n(81306),c=n(50830),d=n(25276),h=n(32489),p=n(94824),g=n(34016),m=n(64596);let f=(()=>{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=a.Yjl({name:"tuiReplace",type:t,pure:!0}),t})();function v(t,e){1&t&&a._UZ(0,"tui-tag",9)}function b(t,e){if(1&t&&a._UZ(0,"tui-tag",10),2&t){const t=a.oxw();a.Q6J("autoColor",!0)("value",t.package)}}const y=function(t){return{exact:t}};function _(t,e){if(1&t&&(a.TgZ(0,"a",14),a.ALo(1,"tuiReplace"),a._uU(2),a.qZA()),2&t){const t=a.oxw().ngIf,e=a.oxw().first,n=a.oxw(2);a.Q6J("routerLink",e?"./":a.Dn7(1,3,t,n.from,n.to))("routerLinkActiveOptions",a.VKq(7,y,e)),a.xp6(2),a.hij(" ",t," ")}}function C(t,e){1&t&&(a.ynx(0),a.YNc(1,_,3,9,"a",13),a.BQk())}function w(t,e){if(1&t&&(a.ynx(0),a.YNc(1,C,2,0,"ng-container",12),a.BQk()),2&t){const t=e.$implicit,n=e.index,i=a.oxw(2);a.xp6(1),a.Q6J("ngIf",t.pageTab||i.defaultTabs[n])}}function x(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"tui-tabs-with-more",11),a.NdJ("activeItemIndexChange",(function(e){return a.CHM(t),a.oxw().activeItemIndex=e})),a.YNc(1,w,2,1,"ng-container",8),a.qZA()}if(2&t){const t=a.oxw();a.Q6J("activeItemIndex",t.activeItemIndex),a.xp6(1),a.Q6J("ngForOf",t.tabConnectors)}}function M(t,e){if(1&t&&a._UZ(0,"tui-doc-see-also",15),2&t){const t=a.oxw();a.Q6J("seeAlso",t.seeAlso)}}function O(t,e){if(1&t&&a.GkF(0,17),2&t){const t=a.oxw().$implicit;a.Q6J("ngTemplateOutlet",t.template)}}function k(t,e){if(1&t&&(a.ynx(0),a.YNc(1,O,1,1,"ng-container",16),a.BQk()),2&t){const t=e.index,n=a.oxw();a.xp6(1),a.Q6J("ngIf",t===n.activeItemIndex)}}const S=["*"];let P=(()=>{class t{constructor(t,e){this.defaultTabs=t,this.seeAlso=e,this.header="",this.package="",this.type="",this.path="",this.deprecated=!1,this.tabConnectors=r.Mmc,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)(a.Y36(i.AC),a.Y36(o.l))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-doc-page"]],contentQueries:function(t,e,n){if(1&t&&a.Suo(n,s.n,4),2&t){let t;a.iGM(t=a.CRH())&&(e.tabConnectors=t)}},inputs:{header:"header",package:"package",type:"type",path:"path",deprecated:"deprecated"},features:[a._Bn(o.E)],ngContentSelectors:S,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&&(a.F$t(),a.TgZ(0,"header",0),a.TgZ(1,"h1",1),a._uU(2),a.YNc(3,v,1,0,"tui-tag",2),a.YNc(4,b,1,2,"tui-tag",3),a.qZA(),a.YNc(5,x,2,2,"tui-tabs-with-more",4),a._UZ(6,"tui-doc-source-code",5),a.qZA(),a.TgZ(7,"div",6),a.Hsn(8),a.YNc(9,M,1,1,"tui-doc-see-also",7),a.YNc(10,k,2,1,"ng-container",8),a.qZA()),2&t&&(a.xp6(2),a.hij(" ",e.header," "),a.xp6(1),a.Q6J("ngIf",!!e.deprecated||""===e.deprecated),a.xp6(1),a.Q6J("ngIf",e.package),a.xp6(1),a.Q6J("ngIf",e.tabConnectors.length),a.xp6(1),a.Q6J("header",e.header)("package",e.package)("path",e.path)("type",e.type),a.xp6(3),a.Q6J("ngIf",e.showSeeAlso),a.xp6(1),a.Q6J("ngForOf",e.tabConnectors))},directives:[l.O5,u.z,l.sg,c.G,d.W,h.w,p.y,g.yS,g.Od,m.C,l.tP],pipes:[f],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);color:#fff}.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})()},14891:(t,e,n)=>{n.d(e,{l:()=>o,E:()=>s});var i=n(74788),r=n(903);const o=new i.OlP("[PAGE_SEE_ALSO]"),s=[{provide:o,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)}}]},22889:(t,e,n)=>{n.d(e,{$:()=>d});var i=n(74788),r=n(903),o=n(42600),s=n(74235),a=n(45435),l=n(43190),u=n(54395),c=n(46782);let d=(()=>{class t{constructor(t,{nativeElement:e},n){this.readyToScroll$=n,this.scroll$=new s.t(1),this.readyToScroll$.pipe((0,a.h)(Boolean),(0,l.w)((()=>this.scroll$)),(0,u.b)(750),(0,a.h)((t=>t&&!!(0,o.PU1)(e))),(0,c.R)(t)).subscribe((()=>{e.scrollIntoView()}))}set tuiScrollIntoViewLink(t){this.scroll$.next(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.a31,2),i.Y36(i.SBq),i.Y36(r.V1))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoViewLink",""]],inputs:{tuiScrollIntoViewLink:"tuiScrollIntoViewLink"},features:[i._Bn([o.a31])]}),t})()},47029:(t,e,n)=>{n.d(e,{AC:()=>H.AC,Es:()=>H.Es,Or:()=>H.Or,V5:()=>H.V5,V1:()=>H.V1,yO:()=>H.yO,Yx:()=>H.Yx,N0:()=>B.N,fV:()=>R,qn:()=>F,Lq:()=>N,Zp:()=>A,Ve:()=>z.Ve,JQ:()=>z.JQ,vi:()=>z.vi}),n(95509);var i=n(50506),r=n(12057),o=n(43232),s=n(28699),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.EIu,s._l,o.fNO,i.Iq]]}),t})();var u=n(97582),c=n(42600),d=n(6667),h=n(79765),p=n(46797),g=n(43190),m=n(88002),f=n(39761),v=n(18289);function b(t,e){if(1&t){const t=a.EpF();a.TgZ(0,"button",1),a.NdJ("click",(function(){return a.CHM(t),a.oxw().onClick()})),a.TgZ(1,"span",2),a.ALo(2,"async"),a.TgZ(3,"span",3),a.Hsn(4),a.qZA(),a._uU(5),a.qZA(),a.qZA()}if(2&t){const t=e.ngIf,n=a.oxw();a.Q6J("title",t[0]),a.xp6(1),a.ekj("t-content_moved",a.lcZ(2,5,n.copied$)),a.xp6(2),a.uIk("data-text",t[0]),a.xp6(2),a.hij(" ",t[1]," ")}}class y{constructor(t){this.texts$=t,this.copy$=new h.xQ}get copied$(){return this.copy$.pipe((0,g.w)((()=>(0,p.H)(1500).pipe((0,m.U)(c.IyD),(0,f.O)(!0)))))}onClick(){this.copy$.next()}}y.ɵfac=function(t){return new(t||y)(a.Y36(d.UVe))},y.ɵcmp=a.Xpm({type:y,selectors:[["tui-doc-copy"]],features:[a._Bn([c.a31])],ngContentSelectors:["*"],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&&(a.F$t(),a.YNc(0,b,6,7,"button",0),a.ALo(1,"async")),2&t&&a.Q6J("ngIf",a.lcZ(1,1,e.texts$))},directives:[r.O5,v.v],pipes:[r.Ov],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;border-radius:var(--tui-radius-m)}.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,u.gn)([c.UMq],y.prototype,"copied$",null);let _=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.fNO]]}),t})();n(40029);var C=n(24751),w=n(34016);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.UX,C.u5,w.Bz,o.jzK,o.fNO,d.Jyo,o.ijq,o.n6B,o.QA7,o.zw7,d.nJ7,d.sxu,o.EIu,d.zXW,o.pcV,o.cnw,o.goS,c.gjW]]}),t})();n(77825),n(26256);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.u5,w.Bz,d.fT6,d.Jyo,d.YMv,o.jzK,d._Hh,o.zw7,o.n6B,M,o.KWI,o.cnw,o.dpK,o.pcV,d.zXW,o.HiG,c.pLW]]}),t})();n(85602),n(75383),n(7512),n(56775),n(79567),n(42328);var k=n(89570);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,i.Iq,d.$$e,o.fNO,_,l,k.wq,c.I1h,o.dSp,w.Bz]]}),t})();n(99814),n(26887);var P=n(2219);n(22889);let T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),E=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,C.UX,w.Bz,k.wq,T,o.fNO,d.QfL,o.cnw,c.Ah6,c.WDk,o.zw7,o.jzK,o.ijq,o.jhF,o.dpK,d.iKB,o.Jyu,o.EIu,o.pcV,c.Q7V]]}),t})(),I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,k.wq,o.fNO,P.T,c.Ah6,E]]}),t})();n(61997),n(64596);let D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,o.jzK]]}),t})();n(81306);let L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,k.wq,o.fNO]]}),t})();n(19633),n(1065),n(75747),n(22545),n(91283),n(77488),n(78668);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,o.jfl,I,o.WwM,o.upG,o.GK_,o.fNO,o.zw7,E]]}),t})();n(3942),n(15997);let N=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,w.Bz,D,d.$$e,d.d38,L,c.I2i]]}),t})();n(14891);var z=n(71216);let R=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[l,x,O,N,S]}),t})();var B=n(81811),H=n(903);H.ru,H.IK,H.mv,H.gG,H.EI,H.VX,H.as,n(24931)},81811:(t,e,n)=>{n.d(e,{N:()=>i});const i={TS:"TypeScript",LESS:"LESS",HTML:"HTML"}},24931:(t,e,n)=>{n.d(e,{kk:()=>p,ML:()=>c});var i=n(42600);const r="Taiga UI",o=(0,i.JN4)("tuiTheme"),s=(0,i.JN4)(r);var a=n(62579),l=n(26215),u=n(74788);let c=(()=>{class t extends l.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===r}}return t.ɵfac=function(e){return new(e||t)(u.LFG(s),u.LFG(o),u.LFG(a.H3))},t.ɵprov=u.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const d=(0,i.JN4)("tuiNight"),h=(0,i.JN4)(!0);let p=(()=>{class t extends l.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)(u.LFG(a.m9),u.LFG(a.H3),u.LFG(d),u.LFG(h))},t.ɵprov=u.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},903:(t,e,n)=>{n.d(e,{mT:()=>r,lW:()=>s,AC:()=>a,ru:()=>g,IK:()=>m,$_:()=>d,Es:()=>h,mv:()=>f,et:()=>p,oq:()=>l,Or:()=>C,_Z:()=>P,gG:()=>v,V5:()=>S,V1:()=>k,EI:()=>b,UL:()=>A,VX:()=>y,yO:()=>E,as:()=>_,Yx:()=>I,x9:()=>D,B$:()=>L,Ii:()=>F});var i=n(42600);const r=(0,i.JN4)("");var o=n(74788);const s=new o.OlP("[TUI_DOC_CODE_EDITOR]"),a=(0,i.JN4)([]),l=(0,i.JN4)({search:"tuiIconSearch",day:"tuiIconSun",night:"tuiIconMoon",code:"tuiIconCode",menu:"tuiIconMenuLarge"});var u=n(71216),c=n(54487);const d=(0,i.JN4)(c.y),h=(0,i.JN4)(u.vi),p=(0,i.JN4)(new Set([])),g=(0,i.JN4)(["Read more more about modes: ","Background","Form value"]),m=(0,i.JN4)(["Argument","Type","Name and description","Value","Learn about our dynamic templates from "]),f=(0,i.JN4)(["Preview","Link to a sample was successfully copied","Done"]),v=(0,i.JN4)("Menu"),b=(0,i.JN4)("Search"),y=(0,i.JN4)("See also"),_=(0,i.JN4)("Source code"),C=(0,i.JN4)("");var w=n(41439),x=n(46797),M=n(25917),O=n(43190);const k=(0,i.JN4)((0,w.P)((()=>(0,x.H)(200).pipe((0,O.w)((()=>(0,M.of)(!0))))))),S=(0,i.JN4)([]),P=(0,i.N1V)((()=>(0,u.S4)((0,o.f3M)(S))));var T=n(43232);(0,i.N1V)((()=>(0,o.f3M)(T.TKC)?"auto":"smooth"));const A=(0,i.JN4)([]),E=(0,i.JN4)(null),I=(0,i.JN4)(""),D=(0,i.JN4)(null),L=(0,i.JN4)(u.TN),F=(0,i.JN4)(String)},71216:(t,e,n)=>{function i(t){return"true"===(null==t?void 0:t.toString())}function r(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 o(t){return[{path:"",component:t,children:[{path:":tab",component:t}]}]}function s(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;rr,cd:()=>i,Ve:()=>o,sj:()=>s,JQ:()=>c,vP:()=>d,S4:()=>h,OO:()=>g,vi:()=>l,TN:()=>m});var a=n(95381);function l(t=""){const e=(new a.Z).parse(t,{}).filter((({tag:t,type:e})=>"code"===t&&"fence"===e)).map((({content:t})=>t.trim()));return e.length?e:[t]}var u=n(97582);function c(t){return(0,u.mG)(this,void 0,void 0,(function*(){return t instanceof Promise?(yield t).default:t}))}function d(t){return(0,u.mG)(this,void 0,void 0,(function*(){const e={};for(const[n,i]of Object.entries(t))i&&(e[n]=yield c(i));return e}))}function h(t){const e=new Map;return t.forEach((t=>{"subPages"in t?t.subPages.forEach((t=>{e.set(t.title,t)})):e.set(t.title,t)})),e}const p={а:"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]+)>/g);return(e?e.reduce(((t,e)=>t.replace(e,e.replace(/\|/g,"&"))),t).split("|").map((t=>t.trim())):t.split("|").map((t=>t.trim()))).reduce(((t,e)=>{var n,i,r,o,s,a,l,u,c,d,h,p;let g=e.trim().replace(/readonly /g,"").replace(/\[\]/g,"");return g=null!==(o=null===(r=null===(i=null===(n=g.match(/ReadonlyArray<([^>]+)>/))||void 0===n?void 0:n[1])||void 0===i?void 0:i.split("&"))||void 0===r?void 0:r[0])&&void 0!==o?o:g,g=null!==(u=null===(l=null===(a=null===(s=g.match(/\[([^\]]+)\]/))||void 0===s?void 0:s[1])||void 0===a?void 0:a.split(","))||void 0===l?void 0:l[0])&&void 0!==u?u:g,g=null!==(p=null===(h=null!==(d=null===(c=g.split("<"))||void 0===c?void 0:c[0])&&void 0!==d?d:g)||void 0===h?void 0:h.trim())&&void 0!==p?p:"",g=Number.isNaN(parseFloat(g))?g:"number",g=/^'(.+)'$|^"(.+)"$|^`(.+)`$/.test(g)?"string":g,g=1===g.length?"unknown":g,t.concat({type:e.replace(/&/g,"|"),extracted:g})}),[])}},98240:(t,e,n)=>{n.d(e,{b:()=>c});var i=n(43232),r=n(52934),o=n(74788),s=n(55788),a=n(89570);const l=["tuiSidebar",""];function u(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}let c=(()=>{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)(o.Y36(i.PwD),o.Y36(r.B))},t.ɵcmp=o.Xpm({type:t,selectors:[["aside","tuiSidebar",""]],hostVars:3,hostBindings:function(t,e){2&t&&(o.d8E("@tuiSlideIn",e.animation),o.Tol(e.directionHostClass))},attrs:l,decls:2,vars:3,consts:[["tuiActiveZone","",1,"t-wrapper"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(o.TgZ(0,"div",0),o.YNc(1,u,2,1,"ng-container",1),o.qZA()),2&t&&(o.ekj("t-wrapper_auto-width",e.autoWidth),o.xp6(1),o.Q6J("polymorpheusOutlet",e.content))},directives:[s.e,a.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:[i.GwG]},changeDetection:0}),t})()},52934:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(74788),r=n(42600),o=n(89570),s=n(98240);let a=(()=>{class t extends o.GL{constructor(t,e,n,i){super(t,i),this.content=t,this.injector=e,this.portalService=n,this.component=new o.Al(s.b,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(r.ae2),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})()},2219:(t,e,n)=>{n.d(e,{B7:()=>re.B,T:()=>oe});var i=n(42600),r=n(23764),o=n(43232);i.a31,i.tll,r.IM,r.k2,(0,o.O0j)({size:"m",appearance:""});var s=n(6667);function a(t){return Array.from({length:t.yearCycle},((e,n)=>Array.from({length:i.NRs},((e,i)=>t.label+function(t){const e=new Date(t.year+t.startingYear,t.month,1),n=new Date(t.year+t.startingYear,t.month+1,0).getDate()+(e.getDay()||7)-1;return Math.ceil(n/7)}({year:n,month:i,startingYear:t.startingYear})*t.week))))}const l=500,u=a({label:64,week:48,yearCycle:28,startingYear:1900}),c=a({label:50,week:50,yearCycle:28,startingYear:1900});var d=n(74788),h=n(79765),p=(n(25917),n(29856),n(22759),n(42569));let g=1;const m=Promise.resolve(),f={};function v(t){return t in f&&(delete f[t],!0)}const b={setImmediate(t){const e=g++;return f[e]=!0,m.then((()=>v(e)&&t())),e},clearImmediate(t){v(t)}};var y=n(71023);class _ extends y.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=b.setImmediate(t.flush.bind(t,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&&(b.clearImmediate(e),t.scheduled=void 0)}}var C=n(69457);class w extends C.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(++ir<=e?t+i.reduce(((t,i,o)=>rr)return Math.max((o+t)*i.NRs+n,0);return 196}computeHeight(t,e){const n=t%28,i=F(this.isIos?c:u,n,e),r=(t-n)/28;return(this.isIos?r*L:r*D)+i}updateRenderedRange(t){const e=t.measureScrollOffset(),{start:n,end:i}=t.getRenderedRange(),r=t.getViewportSize(),o=t.getDataLength(),s={start:n,end:i},a=this.getIndexForOffset(e);e-this.getOffsetForIndex(n)e||!t?E.E:(0,i.mLY)(n,"touchstart").pipe((0,B.U)((({touches:t})=>{const{clientX:e,clientY:o}=t[t.length-1],{width:s,height:a,top:l,left:u}=n.getBoundingClientRect(),c=Math.sqrt(s*s+a*a),d=2*c,h=e-u-c,p=o-l-c,g=r.createElement("div");return r.addClass(g,"tui-ripple"),r.setAttribute(g,"style",`width: ${(0,i.O9r)(d)}; height: ${(0,i.O9r)(d)}; left: ${(0,i.O9r)(h)}; top: ${(0,i.O9r)(p)}; animation-name: tuiRippleOn;`),g})))},{provide:Z,deps:[i.CyX,i.FAH,d.SBq,i.a31],useFactory:(t,e,{nativeElement:n},r)=>e||!t?E.E:(0,i.mLY)(n,"animationend").pipe((0,O.h)((({animationName:t})=>t===Y)),(0,B.U)((({target:t})=>t)),(0,O.h)(i.PcC),(0,k.R)(r))}];let U=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=d.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-ripple-styles"],decls:0,vars:0,template:function(t,e){},styles:["@keyframes tuiRippleOn{0%{transform:scale(0);opacity:.12}to{transform:none;opacity:.12}}@keyframes tuiRippleOff{0%{transform:none;opacity:.12}to{transform:none;opacity:0}}*[tuiRipple]{position:relative;overflow:hidden}.tui-ripple{position:absolute;z-index:100;border-radius:100%;background:currentColor;transform:scale(0);animation-duration:.45s;animation-fill-mode:forwards;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),G=(()=>{class t{constructor({nativeElement:t},e,n,r,o,s){e.addComponent(U);const a=(0,i.mLY)(t,"touchend"),l=(0,i.mLY)(t,"touchmove");s.subscribe((e=>{n.removeChild(t,e)})),o.pipe((0,R.zg)((e=>{const r=(0,i.mLY)(e,"animationend");return(0,z.S3)((0,M.H)(100).pipe((0,B.U)(i.IyD)),a.pipe((0,B.U)(i.YeN))).pipe((0,H.q)(1),(0,k.R)(l),(0,V.b)((()=>{n.setStyle(e,"background",this.tuiRipple||null),n.appendChild(t,e)})),(0,P.w)((t=>t?r:(0,z.S3)(a.pipe((0,P.w)((()=>r))),r.pipe((0,P.w)((()=>a)))))),(0,B.U)((()=>e)))})),(0,k.R)(r)).subscribe((t=>{n.setStyle(t,"animationName",Y)}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(i.gHG),d.Y36(d.Qsj),d.Y36(i.a31,2),d.Y36(j),d.Y36(Z))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiRipple",""]],inputs:{tuiRipple:"tuiRipple"},features:[d._Bn($)]}),t})();n(73460);var q=n(46648);n(99766),n(65566),n(78831);var J=n(89570);function Q(t,e){if(1&t&&(d.TgZ(0,"h2",4),d._uU(1),d.qZA()),2&t){const t=d.oxw();d.Q6J("id",t.context.id),d.xp6(1),d.hij(" ",t.context.label,"\n")}}function W(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function K(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",5),d.NdJ("click",(function(){const e=d.CHM(t).index;return d.oxw().onAction(e)})),d._uU(1),d.qZA()}if(2&t){const t=e.$implicit,n=d.oxw();d.ekj("t-button_column",n.context.actions.length>2),d.xp6(1),d.hij(" ",t,"\n")}}let X=(()=>{class t{constructor(t,e){this.isIOS=t,this.context=e}onAction(t){this.context.completeWith(t)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(i.FAH),d.Y36(J.yf))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-dialog"]],hostVars:2,hostBindings:function(t,e){2&t&&d.ekj("_ios",e.isIOS)},decls:4,vars:4,consts:[["automation-id","tui-mobile-dialog__label","class","t-heading",3,"id",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","flat","size","s","tuiButton","","tuiRipple","","type","button","class","t-button",3,"t-button_column","click",4,"ngFor","ngForOf"],["automation-id","tui-mobile-dialog__label",1,"t-heading",3,"id"],["appearance","flat","size","s","tuiButton","","tuiRipple","","type","button",1,"t-button",3,"click"]],template:function(t,e){1&t&&(d.YNc(0,Q,2,2,"h2",0),d.TgZ(1,"div",1),d.YNc(2,W,2,1,"ng-container",2),d.qZA(),d.YNc(3,K,2,3,"button",3)),2&t&&(d.Q6J("ngIf",!!e.context.label),d.xp6(2),d.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),d.xp6(1),d.Q6J("ngForOf",e.context.actions))},directives:[T.O5,J.Li,T.sg,N.v,G],styles:["[_nghost-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;background:var(--tui-base-01);word-break:break-word;overflow:hidden;padding:1.25rem .75rem 0 1.5rem}[_nghost-%COMP%]:not(._ios){max-width:17.5rem;border-radius:.125rem;text-align:left;box-shadow:0 1.5rem 1.5rem #00000052}._ios[_nghost-%COMP%]{max-width:16.875rem;padding:1.5rem 0 0;border-radius:.75rem;text-align:center}.t-heading[_ngcontent-%COMP%]{font-size:1rem}._ios[_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{font-weight:bold;font-size:1.125rem}.t-content[_ngcontent-%COMP%]{margin-top:.75rem;font-size:.875rem;line-height:1.25rem;padding-right:.75rem}._ios[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-top:.25rem;padding-left:1.5rem;padding-right:1.5rem}.t-button[_ngcontent-%COMP%]{border-radius:0}._ios[_nghost-%COMP%] .t-button[_ngcontent-%COMP%]{border-top:#b8b8b8 1px solid;height:2.625rem;width:100%}._ios[_nghost-%COMP%] .t-button[_ngcontent-%COMP%]:first-of-type{margin-top:1.125rem}[_nghost-%COMP%]:not(._ios) .t-button[_ngcontent-%COMP%]{margin:.5rem 0 .5rem .5rem;float:right}[_nghost-%COMP%]:not(._ios) .t-button_column[_ngcontent-%COMP%]{display:block;float:none;margin-left:auto}"],changeDetection:0}),t})();function tt(t,e){if(1&t&&(d.O4$(),d._UZ(0,"animate",5)),2&t){const t=d.oxw(2).$implicit,e=d.oxw();d.uIk("begin",e.calculateAnimationBegin(t))}}function et(t,e){if(1&t&&(d.O4$(),d.TgZ(0,"g"),d.TgZ(1,"rect",3),d.YNc(2,tt,1,1,"animate",4),d.qZA(),d.qZA()),2&t){const t=d.oxw().$implicit,e=d.oxw();d.uIk("transform",e.calculateTransform(t)),d.xp6(2),d.Q6J("ngIf",e.finished)}}function nt(t,e){if(1&t&&(d.O4$(),d.ynx(0),d.YNc(1,et,3,2,"g",2),d.BQk()),2&t){const t=e.$implicit,n=d.oxw();d.xp6(1),d.Q6J("ngIf",n.isShown(t))}}(0,i.JN4)({label:"",actions:["OK"]}),new J.Al(X);let it=(()=>{class t{constructor(t,e){this.context=t,this.threshold=e,this.steps=12}get finished(){return this.percent>=100}get percent(){return 100*this.context.$implicit/this.threshold}isShown(t){return this.percent>8*(t+1)}calculateTransform(t){return`rotate(${30*t} 50 50)`}calculateAnimationBegin(t){return 8*t/100+"s"}}return t.ɵfac=function(e){return new(e||t)(d.Y36(J.yf),d.Y36(ot))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-ios-loader"]],decls:2,vars:1,consts:[["height","36","preserveAspectRatio","xMidYMid","viewBox","0 0 100 100","width","36",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"ngIf"],["fill","#c7c9cc","height","16","rx","7.05","ry","3.3","width","6","x","47","y","22"],["attributeName","opacity","dur","1s","keyTimes","0;1","repeatCount","indefinite","values","1;0",4,"ngIf"],["attributeName","opacity","dur","1s","keyTimes","0;1","repeatCount","indefinite","values","1;0"]],template:function(t,e){1&t&&(d.O4$(),d.TgZ(0,"svg",0),d.YNc(1,nt,2,1,"ng-container",1),d.qZA()),2&t&&(d.xp6(1),d.Q6J("tuiRepeatTimesOf",e.steps))},directives:[q.X,T.O5],styles:["[_nghost-%COMP%]{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}"],changeDetection:0}),t})();const rt=new J.Al(it),ot=((0,i.JN4)(E.E),(0,i.JN4)(50)),st=((0,i.N1V)((()=>(0,d.f3M)(i.FAH)?rt:dt)),Math.pow(10,-6));var at=n(57634);function lt(t,e){if(1&t&&(d.O4$(),d.TgZ(0,"svg",3),d.TgZ(1,"defs"),d.TgZ(2,"mask",4),d._UZ(3,"path",5),d.qZA(),d.qZA(),d.TgZ(4,"g",6),d._UZ(5,"path",7),d.qZA(),d.qZA()),2&t){const t=d.oxw();d.Udp("opacity",t.opacity),d.uIk("transform",t.transform)}}function ut(t,e){1&t&&d._UZ(0,"tui-loader",8),2&t&&d.Q6J("inheritColor",!0)}let ct=(()=>{class t{constructor(t,e){this.context=t,this.threshold=e}get transform(){return`rotate(${Math.min(180+2.3*this.percent,500)} 0 0)`}get percent(){return 100*this.context.$implicit/this.threshold}get opacity(){return this.context.$implicit/(1.5*this.threshold)}get dropped(){return this.context.$implicit<=st||this.context.$implicit===this.threshold}get hostTransform(){return`translateY(${Math.min(this.context.$implicit,1.5*this.threshold)}px)`}}return t.ɵfac=function(e){return new(e||t)(d.Y36(J.yf),d.Y36(ot))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-mobile-android-loader"]],hostVars:6,hostBindings:function(t,e){2&t&&(d.Udp("transform",e.hostTransform),d.ekj("_visible",e.percent)("_dropped",e.dropped))},decls:4,vars:2,consts:[[1,"t-wrapper"],["fill","none","height","24","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg",3,"opacity",4,"ngIf","ngIfElse"],["loading",""],["fill","none","height","24","viewBox","0 0 24 24","width","24","xmlns","http://www.w3.org/2000/svg"],["id","mask-1"],["clip-rule","evenodd","d","M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z","fill","white","fill-rule","evenodd"],["mask","url(#mask-1)"],["clip-rule","evenodd","d","M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z","fill","black","fill-rule","evenodd"],["size","s",1,"t-loader",3,"inheritColor"]],template:function(t,e){if(1&t&&(d.TgZ(0,"div",0),d.YNc(1,lt,6,3,"svg",1),d.qZA(),d.YNc(2,ut,1,1,"ng-template",null,2,d.W1O)),2&t){const t=d.MAs(3);d.xp6(1),d.Q6J("ngIf",100!==e.percent)("ngIfElse",t)}},directives:[T.O5,at.k],styles:["[_nghost-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;display:block;height:0;opacity:0}._visible[_nghost-%COMP%]{opacity:1}._dropped[_nghost-%COMP%]{transition:transform var(--tui-duration) cubic-bezier(.4,0,.2,1),opacity var(--tui-duration) var(--tui-duration)}.t-wrapper[_ngcontent-%COMP%]{position:absolute;top:-2.5rem;left:50%;display:flex;box-shadow:var(--tui-shadow-dropdown);height:2.25rem;width:2.25rem;background-color:var(--tui-secondary);border-radius:6.25rem;align-items:center;justify-content:center;margin-left:-1.125rem}.t-loader[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})();const dt=new J.Al(ct),ht=new d.OlP("[TUI_SHEET]"),pt=new d.OlP("[TUI_SHEET_SCROLL]"),gt=new d.OlP("[TUI_SHEET_DRAGGED]");var mt=n(66682),ft=n(9945),vt=n(22416),bt=n(21571),yt=n(87874);const _t=[{provide:gt,deps:[d.SBq],useFactory:({nativeElement:t})=>(0,mt.T)((0,i.mLY)(t,"touchstart",{passive:!0}).pipe((0,B.U)(i.YeN)),(0,i.mLY)(t,"touchend").pipe((0,B.U)(i.IyD)))},{provide:pt,deps:[d.SBq,d.R0b,T.K0,i.FAH],useFactory:({nativeElement:t},e,n,r)=>r?function(t,e,n){const r=(0,i.mLY)(t,"load",{capture:!0}),o=(0,i.mLY)(t,"touchstart",{passive:!0}),s=(0,i.mLY)(e,"touchmove",{passive:!0}),a=(0,i.mLY)(e,"touchend"),l=(0,i.mLY)(t,"scroll").pipe((0,B.U)((()=>t.scrollTop))),u=(0,mt.T)(r.pipe((0,yt.g)(0),(0,B.U)((()=>t.scrollTop))),o.pipe((0,P.w)((({touches:e})=>{const{screenY:n}=e[0],{scrollTop:i}=t;return(0,vt.z)((0,bt.$R)(s,l).pipe((0,B.U)((([{touches:t}])=>i+n-t[0].screenY)),(0,k.R)(a)),l)}))));return(0,vt.z)(l.pipe((0,H.q)(1)),u).pipe((0,i.fL9)(n),(0,ft.B)())}(t,n,e):(0,mt.T)((0,i.mLY)(t,"scroll"),(0,i.mLY)(t,"load",{capture:!0})).pipe((0,B.U)((()=>t.scrollTop)),(0,i.fL9)(e),(0,ft.B)())},{provide:i.$__,useExisting:d.SBq},{provide:ht,useExisting:(0,d.Gpc)((()=>Yt))}];var Ct=n(57057),wt=n(43219);let xt=(()=>{class t{constructor(t,e,n,i,{nativeElement:r}){i.pipe((0,B.U)((e=>Math.floor(e)>t.nativeElement.offsetTop)),(0,x.x)(),(0,Ct.M)(n),(0,B.U)((([t,e])=>!t&&!e)),(0,O.h)(Boolean),(0,wt.p)(100),(0,k.R)(e)).subscribe((()=>{r.style.overflow="hidden",r.classList.remove("_stuck"),r.scrollTop=t.nativeElement.offsetTop,(0,M.H)(100).pipe((0,k.R)(e)).subscribe((()=>{r.style.overflow=""}))}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(d.SBq),d.Y36(i.a31,2),d.Y36(gt),d.Y36(pt),d.Y36(i.$__))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiSheetStop",""]],features:[d._Bn([i.a31])]}),t})();var Mt=n(42486);function Ot(t,e){1&t&&d.Hsn(0,0,["*ngIf","deg"])}const kt=function(t){return{transform:t}};function St(t,e){if(1&t&&(d.ynx(0),d._UZ(1,"div",1),d.YNc(2,Ot,1,0,"ng-content",2),d._UZ(3,"div",1),d.BQk()),2&t){const t=e.tuiLet;d.xp6(1),d.Q6J("ngStyle",d.VKq(3,kt,"rotate(-"+t+"deg)")),d.xp6(1),d.Q6J("ngIf",t),d.xp6(1),d.Q6J("ngStyle",d.VKq(5,kt,"rotate("+t+"deg)"))}}const Pt=["*"];let Tt=(()=>{class t{constructor(t,e,n){this.sheet=t,this.scroll$=e,this.zone=n,this.rotate$=this.scroll$.pipe((0,o.KV6)((t=>(0,i.Kiv)(10-(t-this.stop)/5,0,10)),this.zone))}get stop(){return this.sheet.stops[0]||0}}return t.ɵfac=function(e){return new(e||t)(d.Y36(ht),d.Y36(pt),d.Y36(d.R0b))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-sheet-bar"]],ngContentSelectors:Pt,decls:2,vars:3,consts:[[4,"tuiLet"],[1,"t-bar",3,"ngStyle"],[4,"ngIf"]],template:function(t,e){1&t&&(d.F$t(),d.YNc(0,St,4,7,"ng-container",0),d.ALo(1,"async")),2&t&&d.Q6J("tuiLet",d.lcZ(1,1,e.rotate$))},directives:[Mt.L,T.PC,T.O5],pipes:[T.Ov],styles:['[_nghost-%COMP%]{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar[_ngcontent-%COMP%]{content:"";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}._ios:not(._dragged)[_nghost-%COMP%] .t-bar[_ngcontent-%COMP%], ._ios:not(._dragged) [_nghost-%COMP%] .t-bar[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar[_ngcontent-%COMP%]:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar[_ngcontent-%COMP%]:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}'],changeDetection:0}),t})();var At=n(62579);let Et=(()=>{class t{constructor(t,e,n){this.scroll$=t,this.component=e,this.win=n,this.stop=0,this.transform$=this.scroll$.pipe((0,B.U)((t=>`translateY(${this.getY(t)}%) scaleX(-1)`))),this.rounded$=this.scroll$.pipe((0,B.U)((t=>t!!Math.round(this.getY(t)))))}getY(t){const e=t-this.stop,n=this.win.innerHeight-this.component.item.offset-this.stop;return this.stop&&(0,i.Kiv)(100-e/n*100,0,100)}}return t.ɵfac=function(e){return new(e||t)(d.Y36(pt),d.Y36(ht),d.Y36(At.m9))},t.ɵdir=d.lG2({type:t,selectors:[["","tuiSheetTop",""]],hostVars:3,hostBindings:function(t,e){1&t&&d.NdJ("$.style.transform",(function(){return e.transform$}))("$.class._rounded",(function(){return e.rounded$}))("$.class._clickthrough",(function(){return e.clickthrough$})),2&t&&d.Ikx("$.style.transform",e.transform$)("$.class._rounded",e.rounded$)("$.class._clickthrough",e.clickthrough$)},inputs:{stop:["tuiSheetTop","stop"]}}),t})();const It=["tuiSheetHeading",""],Dt=["*"];let Lt=(()=>{class t{constructor(t,e,n,i){this.idService=t,this.el=e,this.closeWord$=n,this.icons=i,this.id=this.idService.generate()}ngAfterViewInit(){this.el.nativeElement.dispatchEvent(new CustomEvent("tui-sheet-id",{bubbles:!0,detail:this.id}))}onClick(){this.el.nativeElement.dispatchEvent(new CustomEvent("tui-sheet-close",{bubbles:!0}))}}return t.ɵfac=function(e){return new(e||t)(d.Y36(i.llV),d.Y36(d.SBq),d.Y36(o.U0F),d.Y36(o.Gs9))},t.ɵcmp=d.Xpm({type:t,selectors:[["","tuiSheetHeading",""]],attrs:It,ngContentSelectors:Dt,decls:4,vars:5,consts:[["appearance","icon","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[3,"id"]],template:function(t,e){1&t&&(d.F$t(),d.TgZ(0,"button",0),d.NdJ("click",(function(){return e.onClick()})),d.ALo(1,"async"),d.qZA(),d.TgZ(2,"span",1),d.Hsn(3),d.qZA()),2&t&&(d.Q6J("icon",e.icons.close)("title",d.lcZ(1,3,e.closeWord$)),d.xp6(2),d.Q6J("id",e.id))},directives:[N.v],pipes:[T.Ov],styles:['[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}[_nghost-%COMP%]:after{content:"";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}[_nghost-%COMP%] ._stuck[_nghost-%COMP%]:after, ._stuck [_nghost-%COMP%]:after{opacity:1}.t-close[_ngcontent-%COMP%]{display:none;float:right;margin-right:-.25rem}.t-wrapper_closeable[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-wrapper_closeable [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}'],changeDetection:0}),t})();const Ft=["sheet"],Nt=["content"],zt=["stops"];function Rt(t,e){if(1&t&&d._UZ(0,"div",11,12),2&t){const t=e.$implicit;d.Udp("margin-top",t)}}function Bt(t,e){if(1&t&&d._UZ(0,"img",15),2&t){const t=e.polymorpheusOutlet;d.Q6J("src",t,d.LSH)}}function Ht(t,e){if(1&t&&(d.TgZ(0,"header",13),d.YNc(1,Bt,1,1,"img",14),d.qZA()),2&t){const t=d.oxw();d.Q6J("tuiSheetTop",t.imageStop),d.xp6(1),d.Q6J("polymorpheusOutlet",t.item.image)("polymorpheusOutletContext",t.context)}}function Vt(t,e){if(1&t&&(d.TgZ(0,"h2",16),d._uU(1),d.qZA()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}class Yt{constructor(t,e,n,r,o,s){this.scroll$=t,this.el=e,this.zone=n,this.isIos=r,this.moreWord$=o,this.destroy$=s,this.stopsRefs=i.Mmc,this.id="",this.stuck$=this.scroll$.pipe((0,B.U)((t=>Math.floor(t)>this.contentTop)))}get stops(){return this.getStops(this.stopsRefs)}get imageStop(){return this.item.imageSlide&&this.stops[this.stops.length-1]||0}get imageHeight(){return this.contentTop-this.sheetTop}get context(){return Object.assign(Object.assign({},this.item),{scroll$:this.scroll$.pipe((0,i.AoQ)(this.zone))})}onId(t){this.id=t}ngAfterViewInit(){this.el.nativeElement.scrollTop=[...this.stops,this.sheetTop,this.contentTop][this.item.initial]}scrollTo(t=this.sheetTop){const{nativeElement:e}=this.el;if(this.isIos){const n=t-e.scrollTop-16;e.style.transition="none",e.style.transform=`scaleX(-1) translate3d(0, ${n}px, 0)`,(0,M.H)(0).pipe((0,k.R)(this.destroy$)).subscribe((()=>{e.style.transition="",e.style.transform=""}))}e.scrollTo({top:t,behavior:"smooth"})}close(){this.context.closeable&&this.context.$implicit.complete()}get contentTop(){var t,e;return null!==(e=null===(t=this.content)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}get sheetTop(){var t,e;return null!==(e=null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}getStops(t){return t.map((({nativeElement:t})=>t.offsetTop+t.clientHeight))}}Yt.ɵfac=function(t){return new(t||Yt)(d.Y36(pt),d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(i.FAH),d.Y36(s.ueO),d.Y36(i.a31,2))},Yt.ɵcmp=d.Xpm({type:Yt,selectors:[["tui-sheet"]],viewQuery:function(t,e){if(1&t&&(d.Gf(Ft,5),d.Gf(Nt,5),d.Gf(zt,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.content=t.first),d.iGM(t=d.CRH())&&(e.stopsRefs=t)}},hostAttrs:["role","dialog"],hostVars:4,hostBindings:function(t,e){1&t&&d.NdJ("$.class._stuck",(function(){return e.stuck$}))("tui-sheet-id",(function(t){return e.onId(t.detail)})),2&t&&(d.Ikx("$.class._stuck",e.stuck$),d.uIk("aria-labelledby",e.id),d.ekj("_ios",e.isIos))},inputs:{item:"item"},features:[d._Bn(_t)],decls:13,vars:9,consts:[[1,"t-bumpers",3,"click"],["class","t-bumper",3,"marginTop",4,"ngFor","ngForOf"],[1,"t-wrapper"],["sheet",""],["class","t-top",3,"tuiSheetTop",4,"ngIf"],["tuiSheetStop","",1,"t-sheet"],["content",""],[1,"t-bar"],["type","button",1,"t-button",3,"title","click"],[1,"t-content"],["tuiSheetHeading","","class","t-heading",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-bumper"],["stops",""],[1,"t-top",3,"tuiSheetTop"],["alt","","class","t-image",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["alt","",1,"t-image",3,"src"],["tuiSheetHeading","",1,"t-heading"]],template:function(t,e){1&t&&(d.TgZ(0,"div",0),d.NdJ("click",(function(){return e.close()})),d.YNc(1,Rt,2,2,"div",1),d.qZA(),d.TgZ(2,"div",2,3),d.YNc(4,Ht,2,3,"header",4),d.TgZ(5,"section",5,6),d._UZ(7,"div",7),d.TgZ(8,"tui-sheet-bar"),d.TgZ(9,"button",8),d.NdJ("click",(function(){return e.scrollTo(e.stops[1])})),d.ALo(10,"async"),d.qZA(),d.qZA(),d.TgZ(11,"div",9),d.YNc(12,Vt,2,1,"h2",10),d.qZA(),d.qZA(),d.qZA()),2&t&&(d.xp6(1),d.Q6J("ngForOf",e.item.stops),d.xp6(1),d.ekj("t-wrapper_shadow",!e.item.image),d.xp6(2),d.Q6J("ngIf",e.item.image),d.xp6(5),d.Q6J("title",d.lcZ(10,7,e.moreWord$)),d.xp6(3),d.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.context))},directives:[T.sg,T.O5,xt,Tt,J.Li,Et,Lt],pipes:[T.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}._stuck[_nghost-%COMP%]{scroll-snap-type:none}@supports (-moz-appearance: none){[_nghost-%COMP%]{scroll-snap-type:none}}.t-bumpers[_ngcontent-%COMP%]{display:flex;height:100%}.t-wrapper_closeable[_nghost-%COMP%] .t-bumpers[_ngcontent-%COMP%], .t-wrapper_closeable [_nghost-%COMP%] .t-bumpers[_ngcontent-%COMP%]{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper[_ngcontent-%COMP%]{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow[_ngcontent-%COMP%]{box-shadow:var(--tui-shadow)}.t-top[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough[_ngcontent-%COMP%]{pointer-events:none}._overlay:not(._visible)[_nghost-%COMP%] .t-top[_ngcontent-%COMP%], ._overlay:not(._visible) [_nghost-%COMP%] .t-top[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image[_ngcontent-%COMP%]{display:block;width:100%}.t-sheet[_ngcontent-%COMP%]{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top[_ngcontent-%COMP%]:not(._rounded) ~ .t-sheet[_ngcontent-%COMP%] .t-bar[_ngcontent-%COMP%]{border-radius:0}.t-bar[_ngcontent-%COMP%]{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button[_ngcontent-%COMP%]{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content[_ngcontent-%COMP%]{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading[_ngcontent-%COMP%]{padding-bottom:.5rem;background:var(--tui-elevation-01)}"],data:{animation:[o.X9R]},changeDetection:0}),(0,I.gn)([i.UMq],Yt.prototype,"context",null),(0,I.gn)([i.UMq],Yt.prototype,"getStops",null),(0,i.JN4)(Object.assign({},{image:"",imageSlide:!0,stops:[],initial:0,offset:16,closeable:!0,overlay:!1}));var jt=n(54395);class Zt{constructor(t,e){this.zone=t,this.win=e,this.tuiSheetWrapper=16}get overlay$(){return this.scroll$.pipe((0,B.U)((t=>t+16>this.win.innerHeight-this.tuiSheetWrapper)),(0,x.x)(),(0,i.AoQ)(this.zone))}get visible$(){return function(t,e){const n=t.pipe((0,O.h)(Boolean)),r=t.pipe((0,O.h)(i.Mv9)),o=(0,z.S3)(e,(0,M.H)(100)).pipe((0,jt.b)(200),(0,H.q)(1),(0,B.U)(i.IyD));return n.pipe((0,P.w)((()=>r.pipe((0,P.w)((()=>o)),(0,S.O)(!0)))),(0,S.O)(!1))}(this.dragged$,this.scroll$).pipe((0,x.x)(),(0,i.AoQ)(this.zone))}get height$(){return this.scroll$.pipe((0,B.U)(this.getHeight.bind(this)))}getHeight(t){var e;return(null===(e=this.sheet)||void 0===e?void 0:e.context.overlay)?null:(0,i.Kiv)(this.withImage(t)+16,16,this.win.innerHeight)}withImage(t){var e;return!(null===(e=this.sheet)||void 0===e?void 0:e.imageStop)||Math.floor(t)>this.sheet.imageStop?t:t-this.sheet.imageHeight}}Zt.ɵfac=function(t){return new(t||Zt)(d.Y36(d.R0b),d.Y36(At.m9))},Zt.ɵdir=d.lG2({type:Zt,selectors:[["","tuiSheetWrapper",""]],contentQueries:function(t,e,n){if(1&t&&(d.Suo(n,Yt,5),d.Suo(n,Yt,7,gt),d.Suo(n,Yt,7,pt)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.dragged$=t.first),d.iGM(t=d.CRH())&&(e.scroll$=t.first)}},inputs:{tuiSheetWrapper:"tuiSheetWrapper"},exportAs:["tuiSheetWrapper"]}),(0,I.gn)([i.UMq],Zt.prototype,"overlay$",null),(0,I.gn)([i.UMq],Zt.prototype,"visible$",null),(0,I.gn)([i.UMq],Zt.prototype,"height$",null),n(75984),n(84714);var $t=n(30126),Ut=n(26215),Gt=n(24850);const qt=["sheet"],Jt=["stops"];function Qt(t,e){if(1&t&&d._UZ(0,"div",8,9),2&t){const t=e.$implicit;d.Udp("margin-top",t)}}function Wt(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function Kt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"button",13),d.NdJ("click",(function(){return d.CHM(t),d.oxw(2).close()})),d._uU(1),d.ALo(2,"async"),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("icon",t.icons.close),d.xp6(1),d.hij(" ",d.lcZ(2,2,t.closeWord$)," ")}}function Xt(t,e){if(1&t&&(d.TgZ(0,"h2",10),d.YNc(1,Wt,2,1,"ng-container",11),d.YNc(2,Kt,3,4,"button",12),d.qZA()),2&t){const t=d.oxw();d.Q6J("id",t.context.id),d.xp6(1),d.Q6J("polymorpheusOutlet",t.context.label),d.xp6(1),d.Q6J("ngIf",t.context.closeable)}}function te(t,e){if(1&t&&(d.ynx(0),d._uU(1),d.BQk()),2&t){const t=e.polymorpheusOutlet;d.xp6(1),d.hij(" ",t," ")}}function ee(t,e){if(1&t&&(d.TgZ(0,"div",14),d.YNc(1,te,2,1,"ng-container",15),d.qZA()),2&t){const t=d.oxw();d.xp6(1),d.Q6J("polymorpheusOutlet",t.context.content)("polymorpheusOutletContext",t.context)}}class ne{constructor(t,e,n,r,o){this.el=t,this.duration=e,this.icons=n,this.closeWord$=r,this.context=o,this.stopsRefs=i.Mmc,this.pointers=0,this.slideInTop={value:"",params:{start:"100vh",duration:this.duration}},this.stuck$=new Ut.X(!1)}get offset(){return this.context.offset}get closeable(){return this.context.closeable}get isSmall(){var t;return this.sheetTop>((null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.clientHeight)||1/0)}onPointerChange(t){if(this.pointers+=t,!t){const t=this.el.nativeElement.scrollTop>this.sheetTop;this.stuck$.value!==t&&this.stuck$.next(t)}!this.context.closeable||this.pointers||this.el.nativeElement.scrollTop||this.close()}close(){this.el.nativeElement.dispatchEvent(new Event("mousedown",{bubbles:!0})),this.context.$implicit.complete()}ngAfterViewInit(){this.el.nativeElement.scrollTop=[...this.getStops(this.stopsRefs),this.sheetTop][this.context.initial]}get sheetTop(){var t,e;return null!==(e=null===(t=this.sheet)||void 0===t?void 0:t.nativeElement.offsetTop)&&void 0!==e?e:1/0}getStops(t){return t.map((({nativeElement:t})=>t.offsetTop+t.clientHeight))}}ne.ɵfac=function(t){return new(t||ne)(d.Y36(d.SBq),d.Y36(o.dxT),d.Y36(o.Gs9),d.Y36(o.U0F),d.Y36(J.yf))},ne.ɵcmp=d.Xpm({type:ne,selectors:[["tui-sheet-dialog"]],viewQuery:function(t,e){if(1&t&&(d.Gf(qt,5),d.Gf(Jt,5)),2&t){let t;d.iGM(t=d.CRH())&&(e.sheet=t.first),d.iGM(t=d.CRH())&&(e.stopsRefs=t)}},hostVars:6,hostBindings:function(t,e){1&t&&d.NdJ("$.class._stuck",(function(){return e.stuck$}))("touchstart.passive.silent",(function(){return e.onPointerChange(1)}),!1,d.evT)("touchend.silent",(function(){return e.onPointerChange(-1)}),!1,d.evT)("touchcancel.silent",(function(){return e.onPointerChange(-1)}),!1,d.evT)("scroll.silent",(function(){return e.onPointerChange(0)})),2&t&&(d.Ikx("$.class._stuck",e.stuck$),d.d8E("@tuiSlideInTop",e.slideInTop),d.Udp("top",e.offset,"px"),d.ekj("_closeable",e.closeable))},decls:8,vars:5,consts:[[1,"t-stops"],["class","t-stop",3,"margin-top",4,"ngFor","ngForOf"],[1,"t-sheet",3,"tuiClickOutside"],["sheet",""],[1,"t-top"],["class","t-heading",3,"id",4,"ngIf"],["class","t-content",4,"ngIf"],[1,"t-footer"],[1,"t-stop"],["stops",""],[1,"t-heading",3,"id"],[4,"polymorpheusOutlet"],["appearance","icon","size","xs","tuiIconButton","","class","t-close",3,"icon","click",4,"ngIf"],["appearance","icon","size","xs","tuiIconButton","",1,"t-close",3,"icon","click"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(d.TgZ(0,"div",0),d.YNc(1,Qt,2,2,"div",1),d.qZA(),d.TgZ(2,"div",2,3),d.NdJ("tuiClickOutside",(function(){return e.close()})),d._UZ(4,"div",4),d.YNc(5,Xt,3,3,"h2",5),d.YNc(6,ee,2,2,"div",6),d.qZA(),d._UZ(7,"div",7)),2&t&&(d.xp6(1),d.Q6J("ngForOf",e.context.stops),d.xp6(1),d.ekj("t-sheet_small",e.isSmall),d.xp6(3),d.Q6J("ngIf",e.context.label),d.xp6(1),d.Q6J("ngIf",e.context.content))},directives:[T.sg,Gt.Z,T.O5,J.Li,N.v],pipes:[T.Ov],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;bottom:0;right:0;right:-1rem;display:flex;flex-direction:column;-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);font:var(--tui-font-text-m);overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:none;box-shadow:0 20rem var(--tui-elevation-01)}._closeable[_nghost-%COMP%]{display:block}._closeable[_nghost-%COMP%] .t-stops[_ngcontent-%COMP%]{display:flex}.t-stops[_ngcontent-%COMP%]{display:none;height:100%;scroll-snap-stop:always;scroll-snap-align:start}.t-stop[_ngcontent-%COMP%]{scroll-snap-stop:normal;scroll-snap-align:start;height:1rem;width:1rem}.t-sheet[_ngcontent-%COMP%]{box-shadow:var(--tui-shadow);width:calc(100% - 1rem);border-radius:.75rem .75rem 0 0;padding:0 1rem;margin-top:auto;background:var(--tui-elevation-01);box-sizing:border-box;scroll-snap-stop:always;scroll-snap-align:start}@supports (-moz-appearance: none){.t-sheet_small[_ngcontent-%COMP%]{scroll-snap-align:end}}.t-top[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;background:var(--tui-elevation-01)}.t-top[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.5rem;left:50%;width:2rem;height:.25rem;transform:translate(-50%);background:var(--tui-base-09);opacity:.3;border-radius:1rem}.t-heading[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:1.5rem;z-index:1;display:flex;margin:0;padding-bottom:1rem;font:var(--tui-font-heading-6);background:var(--tui-elevation-01)}.t-heading[_ngcontent-%COMP%]:last-child{margin-bottom:-.75rem}.t-heading[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}._stuck[_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]:after{opacity:1}.t-close[_ngcontent-%COMP%]{right:-.25rem;flex-shrink:0;margin-left:auto}.t-content[_ngcontent-%COMP%]{position:relative;isolation:isolate}.t-content[_ngcontent-%COMP%]:nth-child(3){margin-top:1rem}.t-footer[_ngcontent-%COMP%]{height:1rem;scroll-snap-stop:always;scroll-snap-align:end;background:var(--tui-elevation-01)}'],data:{animation:[o.X9R]},changeDetection:0}),(0,I.gn)([(0,$t.uX)((function(){return this.context.closeable}))],ne.prototype,"close",null),(0,I.gn)([i.UMq],ne.prototype,"getStops",null),(0,i.JN4)({label:"",stops:[],initial:0,offset:16,closeable:!0}),new J.Al(ne),n(77825);const ie={size:"fullscreen",closeable:!1};Object.assign({dismissible:!1},ie),Object.assign({dismissible:!0},ie),n(98240);var re=n(52934);let oe=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=d.oAB({type:t}),t.ɵinj=d.cJS({imports:[[i.Ah6,J.wq]]}),t})()},26922:(t,e,n)=>{n.d(e,{v:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiPreviewAction",""]],features:[r._Bn([(0,i.O0j)({appearance:"preview-action",shape:"rounded",size:"s"})])]}),t})()},3017:(t,e,n)=>{n.d(e,{m:()=>I});var i=n(74788),r=n(36331),o=n(42600),s=n(43232),a=n(26215),l=n(66682),u=n(9112),c=n(88002),d=n(39761),h=n(12057),p=n(11123),g=n(53874),m=n(43949),f=n(23764),v=n(18289),b=n(44099),y=n(26922),_=n(13938),C=n(10406),w=n(63790),x=n(51928),M=n(73320);function O(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 k(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 S(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,O,1,2,"button",7),i.YNc(15,k,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 P=["*",[["tui-preview-title"]],[["tui-preview-pagination"]],[["","tuiPreviewAction",""]]],T=["*","tui-preview-title","tui-preview-pagination","[tuiPreviewAction]"],A=.8,E=[0,0];let I=(()=>{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 a.X(this.minZoom),this.rotation$=new a.X(0),this.coordinates$=new a.X(E),this.transitioned$=(0,l.T)((0,o.mM1)(this.el.nativeElement).pipe((0,c.U)((({stage:t})=>t!==o.nc.Continues))),(0,o.mLY)(this.el.nativeElement,"touchmove",{passive:!0}).pipe((0,c.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"wheel",{passive:!0}).pipe((0,c.U)(o.IyD))),this.cursor$=(0,o.mM1)(this.el.nativeElement).pipe((0,c.U)((({stage:t})=>t===o.nc.Continues?"grabbing":"initial")),(0,d.O)("initial")),this.wrapperTransform$=(0,u.aj)([this.coordinates$.pipe((0,c.U)((([t,e])=>`${(0,o.O9r)(t)}, ${(0,o.O9r)(e)}`))),this.zoom$,this.rotation$]).pipe((0,c.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(E)}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*A||e>i*A,{clientHeight:s,clientWidth:a}=this.el.nativeElement;return r?(0,o.FGw)(Math.min(s*A/t,a*A/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(E),this.rotation$.next(0)}processZoom(t,e,n){const i=this.zoom$.value,r=(0,o.Kiv)(i+n,this.minZoom,2),s=this.getScaleCenter({clientX:t,clientY:e},this.coordinates$.value,this.zoom$.value),a=s[0]*i-s[0]*r,l=s[1]*i-s[1]*r;this.zoom$.next(r),this.coordinates$.next(this.getGuardedCoordinates(this.coordinates$.value[0]+a,this.coordinates$.value[1]+l))}getGuardedCoordinates(t,e){const{offsetX:n,offsetY:i}=this.offsets;return[(0,o.Kiv)(t,-n,n),(0,o.Kiv)(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(r.v3),i.Y36(r.tp))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-preview"]],inputs:{zoomable:"zoomable",rotatable:"rotatable"},ngContentSelectors:T,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(P),i.YNc(0,S,16,16,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[h.O5,p.g,g.$,m.x,f.Vi,v.v,b.$,y.v,_.D,C.x,w.t,x.D,M.n],pipes:[h.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:[s.X9R]},changeDetection:0}),t})()},73320:(t,e,n)=>{n.d(e,{n:()=>k});var i=n(74788),r=n(36331),o=n(42600),s=n(66682),a=n(25917),l=n(46797),u=n(43190),c=n(88002),d=n(39761),h=n(12057),p=n(18289),g=n(26922),m=n(52707),f=n(13938),v=n(10406),b=n(63790),y=n(51928),_=n(20708),C=n(5657),w=n(24751),x=n(44099);function M(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 O(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,M,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)}}let k=(()=>{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,u.w)((()=>(0,s.T)((0,a.of)(!0),(0,l.H)(1e3).pipe((0,c.U)(o.IyD))))),(0,d.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,o.Kiv)(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(r.v3),i.Y36(r.xP))},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,O,11,17,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.zoomTexts$))},directives:[h.O5,p.v,g.v,m.Z,f.D,v.x,b.t,y.D,_.Z,C.i,w.eT,w.Fj,w.JJ,w.On,x.$],pipes:[h.Ov,h.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})()},83044:(t,e,n)=>{n.d(e,{iK:()=>p,E6:()=>m}),n(36331);var i=n(42600),r=n(6667);n(18289),n(26922),n(3017);var o=n(12057),s=n(24751),a=n(23764),l=n(43232),u=n(89570),c=n(74788);function d(t,e){if(1&t&&(c.ynx(0),c._uU(1),c.BQk()),2&t){const t=e.polymorpheusOutlet;c.xp6(1),c.hij(" ",t," ")}}let h=(()=>{class t{constructor(t){this.context=t}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(c.Y36(u.yf))},t.ɵcmp=c.Xpm({type:t,selectors:[["tui-preview-dialog"]],hostBindings:function(t,e){1&t&&c.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,c.evT)},decls:2,vars:3,consts:[[1,"t-dialog-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(c.TgZ(0,"div",0),c.YNc(1,d,2,1,"ng-container",1),c.qZA()),2&t&&(c.Q6J("@tuiSlideInTop",void 0),c.xp6(1),c.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[u.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:[l.X9R]},changeDetection:0}),t})(),p=(()=>{class t extends i.d56{constructor(){super(...arguments),this.defaultOptions={},this.component=new u.Al(h)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=c.n5z(t)))(n||t)}}(),t.ɵprov=c.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({}),t})(),m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=c.oAB({type:t}),t.ɵinj=c.cJS({providers:[(0,i.QaK)(p)],imports:[[o.ez,u.wq,a.NI,l.fNO,s.u5,r.c2K,l.goS,i.NLi,i.k54,l.EIu,l.dSp,i.NZ5,i.RRg,g]]}),t})();n(73320)},36331:(t,e,n)=>{n.d(e,{v3:()=>a,tp:()=>o,xP:()=>s});var i=n(42600),r=n(19633);const o=(0,i.N1V)((0,r.vv)("previewTexts")),s=(0,i.N1V)((0,r.vv)("zoomTexts")),a=(0,i.JN4)({rotate:"tuiIconRotate",prev:"tuiIconArrowLeft",next:"tuiIconArrowRight",zoomIn:"tuiIconPlus",zoomOut:"tuiIconMinus",zoomReset:"tuiIconMinimize"})},44706:(t,e,n)=>{n.d(e,{M$:()=>b,QJ:()=>_,d5:()=>M,Xn:()=>f,m6:()=>O,F9:()=>k,Er:()=>A,N9:()=>P,GM:()=>I,FX:()=>v,wB:()=>y});var i=n(24751),r=(n(89476),n(24994)),o=n(60325),s=n(79765),a=n(66682),l=n(87874),u=n(39761),c=n(88002),d=n(45435),h=n(87519),p=n(43190),g=n(46782),m=n(74788);let f=(()=>{class t{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new m.vpe,this.focusVisibleChange=new m.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=m.lG2({type:t,hostVars:7,hostBindings:function(t,e){2&t&&(m.uIk("data-focused",e.pseudoFocus),m.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 v{}let b=(()=>{class t extends f{constructor(t,e,n){super(),this.ngControl=t,this.cdr=e,this.valueTransformer=n,this.refresh$=new s.xQ,this.onTouched=r.iD,this.onChange=r.iD,this.fallbackValue=this.getFallbackValue(),this.destroy$=new s.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 i.On&&void 0===this.previousInternalValue?t.viewModel:t.value;return this.fromControlValue(e)}ngOnInit(){this.refresh$.pipe((0,l.g)(0),(0,u.O)(null),(0,c.U)((()=>{var t;return null===(t=this.ngControl)||void 0===t?void 0:t.control})),(0,d.h)(o.Pc),(0,h.x)(),(0,p.w)((t=>(0,a.T)(t.valueChanges,t.statusChanges))),(0,g.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 i.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)(m.Y36(i.a5,8),m.Y36(m.sBO),m.Y36(v,8))},t.ɵdir=m.lG2({type:t,hostVars:4,hostBindings:function(t,e){2&t&&m.ekj("_readonly",e.readOnly)("_invalid",e.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[m.qOj]}),t})();function y(t){return{provide:b,useExisting:t}}let _=(()=>{class t{constructor(){this.change$=new s.xQ}ngOnChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=m.lG2({type:t,features:[m.TTD]}),t})();n(71241);var C=n(66614),w=n(29856),x=n(26215);let M=(()=>{class t extends w.y{constructor(t){super((t=>this.dialogs$.subscribe(t))),this.idService=t,this.dialogs$=new x.X([])}open(t,e={}){return new w.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)(m.LFG(C.ll))},t.ɵprov=m.Yz7({token:t,factory:t.ɵfac}),t})(),O=(()=>{class t extends b{clear(){this.value=[]}getFallbackValue(){return[]}}return t.ɵfac=function(){let e;return function(n){return(e||(e=m.n5z(t)))(n||t)}}(),t.ɵdir=m.lG2({type:t,features:[m.qOj]}),t})(),k=(()=>{class t extends b{getFallbackValue(){return null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=m.n5z(t)))(n||t)}}(),t.ɵdir=m.lG2({type:t,features:[m.qOj]}),t})();var S=n(21543);let P=(()=>{class t{get safeHost(){if(!this.host)throw new S.ZB;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroyed||t.destroy()}addTemplate(t,e){return this.safeHost.addTemplateChild(t,e)}removeTemplate(t){t.destroyed||t.destroy()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=m.Yz7({token:t,factory:t.ɵfac}),t})();const T=["viewContainer"];let 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),i=n.get(m._Vd).resolveComponentFactory(e.component),r=[{provide:t,useValue:this}],o=m.zs3.create({parent:n,providers:r}),s=this.vcr.createComponent(i,void 0,o);return s.changeDetectorRef.detectChanges(),s}addTemplateChild(t,e){return this.vcr.createEmbeddedView(t,e)}}return t.ɵfac=function(e){return new(e||t)(m.Y36(m.gxx),m.Y36(m.SBq),m.Y36(P))},t.ɵdir=m.lG2({type:t,viewQuery:function(t,e){if(1&t&&m.Gf(T,5,m.s_b),2&t){let t;m.iGM(t=m.CRH())&&(e.vcr=t.first)}}}),t})();var E=n(12057);let I=(()=>{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)(m.Y36(E.K0))},t.ɵdir=m.lG2({type:t}),t})()},89476:(t,e,n)=>{n.d(e,{T:()=>o,z:()=>r});var i=n(24994);const r={enabled:!1,get assert(){return i.iD}};class o{constructor(t,e={}){this.message=t,this.context=e}}},67697:(t,e,n)=>{function i(t){return null!=t&&"false"!=`${t}`}n.d(e,{L:()=>i})},29529:(t,e,n)=>{n.d(e,{f:()=>g});var i=n(74788),r=n(24994),o=n(66614),s=n(27203),a=n(89570),l=n(9112),u=n(46782),c=n(12057),d=n(2579);function h(t,e){if(1&t&&(i.GkF(0,3),i.ALo(1,"tuiMapper")),2&t){const t=e.$implicit,n=i.oxw(2);i.Q6J("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",i.xi3(1,2,t,n.mapper))}}function p(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,h,2,5,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0),i.xp6(1),i.Q6J("ngForOf",t)}}let g=(()=>{class t{constructor(t,e,n,r){this.allAlerts=t,this.injector=e,this.destroy$=n,this.cdr=r,this.alerts=[],this.trackBy=t=>t,this.mapper=t=>i.zs3.create({providers:[{provide:a.yf,useValue:t}],parent:this.injector})}ngOnInit(){(0,l.aj)(this.allAlerts).pipe((0,u.R)(this.destroy$)).subscribe((t=>{this.alerts=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.bS),i.Y36(i.gxx),i.Y36(o.a3,2),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-alert-host"]],features:[i._Bn([o.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&&i.YNc(0,p,2,2,"div",0),2&t&&i.Q6J("ngForOf",e.alerts)("ngForTrackBy",e.trackBy)},directives:[c.sg,c.$G],pipes:[d.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:[r.Kx]}}),t})()},68646:(t,e,n)=>{n.d(e,{T:()=>S});var i=n(56083),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(66614),u=n(27203),c=n(60325),d=n(25917),h=n(9112),p=n(88002),g=n(46782),m=n(42486),f=n(94084),v=n(75984),b=n(19869),y=n(89570),_=n(36378);function C(t,e){1&t&&o.GkF(0)}function w(t,e){1&t&&o._UZ(0,"tui-scroll-controls",5)}function x(t,e){if(1&t&&(o.TgZ(0,"section",2),o.YNc(1,C,1,0,"ng-container",3),o.YNc(2,w,1,0,"tui-scroll-controls",4),o.qZA()),2&t){const t=e.$implicit,n=o.oxw();o.Q6J("@host",void 0),o.uIk("aria-labelledby",t.id),o.xp6(1),o.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t),o.xp6(1),o.Q6J("ngIf",!n.isMobile)}}function M(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",6),o.NdJ("transitionend",(function(e){const n=o.CHM(t).tuiLet,i=o.oxw();return i.onDialog(e,!!i.dialogs.length,!!n)}))("popstate",(function(){const e=o.CHM(t).tuiLet,n=o.oxw();return n.closeLast(n.dialogs,!!e)}),!1,o.Jf7),o.qZA()}if(2&t){const t=o.oxw();o.ekj("t-overlay_visible",t.dialogs.length)}}const O={label:"ignoreMe"},k=(0,c.JN)((0,d.of)(!1));let S=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.isMobile=t,this.isDialogClosesOnBack$=e,this.dialogsByType=n,this.historyRef=i,this.titleService=r,this.destroy$=o,this.cdr=s,this.doc=a,this.dialogs=[]}ngOnInit(){(0,h.aj)(this.dialogsByType).pipe((0,p.U)((t=>[].concat(...t).sort(((t,e)=>t.createdAt-e.createdAt)))),(0,g.R)(this.destroy$)).subscribe((t=>{var e;this.dialogs=t,this.cdr.markForCheck(),null===(e=this.doc.defaultView)||void 0===e||e.document.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(O,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:t},e,n){var i;n&&"letter-spacing"===t&&(e?this.historyRef.pushState(O,this.titleService.getTitle()):(null==(i=this.historyRef.state)?void 0:i.label)===O.label&&this.historyRef.back())}}return t.ɵfac=function(e){return new(e||t)(o.Y36(u.fL),o.Y36(k),o.Y36(u.qY),o.Y36(a.UA),o.Y36(s.Dx),o.Y36(l.a3,2),o.Y36(o.sBO),o.Y36(r.K0))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dialog-host"]],features:[o._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"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(t,e){1&t&&(o.YNc(0,x,3,5,"section",0),o.YNc(1,M,1,2,"div",1),o.ALo(2,"async")),2&t&&(o.Q6J("ngForOf",e.dialogs),o.xp6(1),o.Q6J("tuiLet",o.lcZ(2,2,e.isDialogClosesOnBack$)))},directives:[r.sg,m.L,f.y,v.W,b.e,y.Li,r.O5,_.t],pipes:[r.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;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.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, .3s),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}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[(0,i.X$)("host",[(0,i.eR)(":enter",[(0,i.oB)({overflow:"clip"}),(0,i.IO)(":scope > *",[(0,i.pV)()],{optional:!0})]),(0,i.eR)(":leave",[(0,i.oB)({overflow:"clip"}),(0,i.IO)(":scope > *",[(0,i.pV)()],{optional:!0})])])]}}),t})()},73186:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(44706),r=n(81406),o=n(74788);const s=["*"];let a=(()=>{class t extends i.Er{}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dropdown-host"]],features:[o._Bn([{provide:i.N9,useExisting:r.a},{provide:i.Er,useExisting:t}]),o.qOj],ngContentSelectors:s,decls:3,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&(o.F$t(),o.Hsn(0),o.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})()},81406:(t,e,n)=>{n.d(e,{a:()=>o});var i=n(44706),r=n(74788);let o=(()=>{class t extends i.N9{}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,providedIn:"root"}),t})()},36378:(t,e,n)=>{n.d(e,{t:()=>f});var i=n(74788),r=n(62579),o=n(71241),s=n(27203),a=n(43219),l=n(88002),u=n(39761),c=n(87519),d=n(12057),h=n(65321);function p(t,e){if(1&t&&(i.TgZ(0,"div",3),i._UZ(1,"div",4),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-horizontal",t[1])}}function g(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"div",6),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-vertical",t[0])}}function m(t,e){if(1&t&&(i.ynx(0),i.YNc(1,p,2,2,"div",1),i.YNc(2,g,2,2,"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 f=(()=>{class t{constructor(t,e,n){this.zone=t,this.scrollRef=e,this.animationFrame$=n,this.refresh$=this.animationFrame$.pipe((0,a.p)(300),(0,l.U)((()=>this.scrollbars)),(0,u.O)([!1,!1]),(0,c.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(i.R0b),i.Y36(s.$_),i.Y36(r.L1))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,e){1&t&&(i.YNc(0,m,3,2,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.refresh$))},directives:[d.O5,h.N],pipes:[d.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;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.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%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.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}"],changeDetection:0}),t})()},19869:(t,e,n)=>{n.d(e,{e:()=>o});var i=n(74788),r=n(27203);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollRef",""]],features:[i._Bn([{provide:r.$_,useExisting:i.SBq}])]}),t})()},65321:(t,e,n)=>{n.d(e,{N:()=>m});var i=n(12057),r=n(74788),o=n(62579),s=n(24994),a=n(71241),l=n(66614),u=n(27203),c=n(66682),d=n(88002),h=n(43190),p=n(46782),g=n(43219);let m=(()=>{class t{constructor(t,e,n,i,r,o){this.container=i,this.doc=r,this.el=o,this.tuiScrollbar="vertical";const{nativeElement:l}=this.el,u=(0,a.mL)(l,"mousedown"),m=(0,a.mL)(this.doc,"mousemove"),f=(0,a.mL)(this.doc,"mouseup"),v=(0,a.mL)(this.wrapper,"mousedown");(0,c.T)(v.pipe((0,d.U)((t=>this.getScrolled(t,.5,.5)))),u.pipe((0,h.w)((t=>{const e=l.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,p.R)(f))})))).pipe((0,a.fL)(t),(0,p.R)(e)).subscribe((([t,e])=>{"vertical"===this.tuiScrollbar?this.element.scrollTop=t:this.element.scrollLeft=e})),(0,c.T)(n.pipe((0,g.p)(s.Yg)),(0,a.pt)(this.element)).pipe((0,a.fL)(t),(0,p.R)(e)).subscribe((()=>{"vertical"===this.tuiScrollbar?(l.style.top=100*this.thumb+"%",l.style.height=100*this.view+"%"):(l.style.left=100*this.thumb+"%",l.style.width=100*this.view+"%")}))}get wrapper(){return this.el.nativeElement.parentElement}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:u}=this.wrapper.getBoundingClientRect();return[(this.element.scrollHeight-u)*((t-s-r*n)/(u-r)),(this.element.scrollWidth-l)*((e-a-o*i)/(l-o))]}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(l.a3,2),r.Y36(o.L1),r.Y36(u.$_),r.Y36(i.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[r._Bn([l.a3])]}),t})()},24994:(t,e,n)=>{n.d(e,{Iy:()=>i,Ye:()=>r,F:()=>_,fv:()=>C,em:()=>w,f$:()=>y,kU:()=>x,tU:()=>M,FS:()=>o,LZ:()=>u,Jy:()=>d,iD:()=>c,Mm:()=>l,Yg:()=>v,bg:()=>g,yZ:()=>h,Kx:()=>f,zy:()=>p,Ml:()=>O,Lw:()=>b});const i=()=>!1,r=()=>!0,o=79;var s=n(74788);const a={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},l=new s.n_E,u=[],c=()=>{},d=Object.assign(Object.assign({},a),{toJSON:()=>a}),h=t=>String(t),p=(t,e,n=h)=>n(t).toLowerCase()===e.toLowerCase(),g=(t,e)=>t===e||function(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}(t,e);var m=n(56083);const f=(0,m.X$)("tuiParentAnimation",[(0,m.eR)(":leave",[(0,m.IO)(":scope > *",[(0,m.pV)()],{optional:!0})])]),v=((0,m.X$)("tuiParentStop",[(0,m.eR)(":enter",[])]),1e3/15),b=t=>"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,y=" ",_="–",C="-",w="−",x="+",M="​",O="3.70.0"},31818:(t,e,n)=>{n.d(e,{UM:()=>o}),n(89476);var i=n(21543);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 u=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=u.apply(this,i),n=!0),t);return Object.defineProperty(this,l,{configurable:!0,value:i}),i}}}},55788:(t,e,n)=>{n.d(e,{e:()=>p});var i=n(97582),r=n(74788),o=n(31818),s=n(71241),a=n(27203),l=n(60325),u=n(88002),c=n(39761),d=n(87519),h=n(13653);class p{constructor(t,e,n,i){var r;this.active$=t,this.zone=e,this.el=n,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,u.U)((t=>!!t&&this.contains(t))),(0,c.O)(!1),(0,d.x)(),(0,h.T)(1),(0,s.Yr)(this.zone)),null===(r=this.directParentActiveZone)||void 0===r||r.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){var t,e;null===(t=this.directParentActiveZone)||void 0===t||t.removeSubActiveZone(this),null===(e=this.tuiActiveZoneParent)||void 0===e||e.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){var e;null===(e=this.tuiActiveZoneParent)||void 0===e||e.removeSubActiveZone(this),null==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))}}p.ɵfac=function(t){return new(t||p)(r.Y36(a.wk),r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(p,12))},p.ɵdir=r.lG2({type:p,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],p.prototype,"setZone",null)},47787:(t,e,n)=>{n.d(e,{e:()=>i.e,A:()=>o});var i=n(55788),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},30528:(t,e,n)=>{n.d(e,{k:()=>u});var i=n(67697),r=n(66614),o=n(46797),s=n(46782),a=n(27998),l=n(74788);let u=(()=>{class t{constructor(t,e,n){this.handler=t,this.options=e,this.destroy$=n,this.autoFocus=!0}ngAfterViewInit(){(0,i.L)(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then((()=>this.handler.setFocus())):(0,o.H)(this.options.delay).pipe((0,s.R)(this.destroy$)).subscribe((()=>this.handler.setFocus()))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(a.hf),l.Y36(a.U5),l.Y36(r.a3,2))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[l._Bn(a.PE)]}),t})()},27998:(t,e,n)=>{n.d(e,{U5:()=>d,f$:()=>h,hf:()=>p,PE:()=>g});var i=n(74788),r=n(62579),o=n(66614),s=n(27203),a=n(50664),l=n(49289),u=n(8635);const c={delay:NaN},d=(0,a.JN)(c);function h(t){return(0,a.vK)(d,t,c)}const p=new i.OlP("[TUI_AUTOFOCUS_HANDLER]"),g=[{provide:p,useFactory:(t,e,n,i,r,o,s)=>s?new u.E(t,e,i,r,o):new l.B(t,e,n),deps:[[new i.FiY,new i.PiD,s.KZ],i.SBq,r.L1,i.Qsj,i.R0b,r.m9,s.FA]},o.a3]},93291:(t,e,n)=>{n.d(e,{K:()=>r});var i=n(74788);let r=(()=>{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})()},49289:(t,e,n)=>{n.d(e,{B:()=>f});var i=n(74788),r=n(62579),o=n(24994),s=n(27203),a=n(98085),l=n(46797),u=n(77393);class c{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new d(t,this.predicate))}}class d extends u.L{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}var h=n(43219),p=n(88002),g=n(15257),m=n(93291);let f=(()=>{class t extends m.K{constructor(t,e,n){super(t,e),this.animationFrame$=n}setFocus(){var t;this.isTextFieldElement?(0,a.S3)((0,l.H)(1e3),this.animationFrame$.pipe((0,h.p)(o.Yg),(0,p.U)((()=>this.element.closest(".ng-animating"))),(t=Boolean,e=>e.lift(new c(t))),(0,g.q)(1))).subscribe((()=>this.element.focus({preventScroll:!0}))):this.element.focus({preventScroll:!0})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.KZ,10),i.Y36(i.SBq),i.Y36(r.L1))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})()},8635:(t,e,n)=>{n.d(e,{E:()=>u});var i=n(74788),r=n(62579),o=n(27203),s=n(60325),a=n(93291);const l=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"];let u=(()=>{class t extends a.K{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({preventScroll:!0})}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,s.O9)(e.height),t.style.width=(0,s.O9)(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,s.O9)(16),t.style.top=(0,s.O9)(e.top),t.style.left=(0,s.O9)(e.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach((t=>{t.style.setProperty("overflow","auto"),t.style.setProperty("height","100%")}))}patchFakeInputFromFocusableElement(t){l.forEach((e=>{const n=this.element.getAttribute(e);(0,s.Pc)(n)&&t.setAttribute(e,n)}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.KZ,10),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(r.m9))},t.ɵdir=i.lG2({type:t,features:[i.qOj]}),t})()},13080:(t,e,n)=>{n.d(e,{G:()=>s});var i=n(74788),r=n(66614);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],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})(),s=(()=>{class t{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new i.vpe,t.addComponent(o)}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)(i.Y36(r.gH))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("transitionstart",(function(t){return e.transitionStartHandler(t)})),2&t&&i.ekj("_autofilled",e.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})()},10035:(t,e,n)=>{n.d(e,{t:()=>r});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})()},24850:(t,e,n)=>{n.d(e,{Z:()=>c});var i=n(12057),r=n(74788),o=n(71241),s=n(60325),a=n(22759),l=n(88002),u=n(45435);let c=(()=>{class t{constructor(t,e,n){this.zone=t,this.doc=e,this.el=n,this.tuiClickOutside=(0,a.R)(this.doc,"mouseup").pipe((0,l.U)(s.mA),(0,u.h)((t=>this.isOutside(t))),(0,o.Yr)(this.zone))}isOutside(t){return t===this.el.nativeElement||!(0,s.PP)(this.el.nativeElement,t)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(i.K0),r.Y36(r.SBq))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiClickOutside",""]],outputs:{tuiClickOutside:"tuiClickOutside"}}),t})()},48992:(t,e,n)=>{n.d(e,{_:()=>g});var i=n(74788),r=n(71241),o=n(66614),s=n(50664),a=n(66682),l=n(88002),u=n(45435),c=n(43190),d=n(39761),h=n(87519),p=n(46782);let g=(()=>{class t{constructor({nativeElement:t},e){this.tuiDroppableDropped=(0,r.mL)(t,"drop").pipe((0,r.mp)(),(0,l.U)((t=>t.dataTransfer)),(0,u.h)(s.Pc)),this.tuiDroppableDragOverChange=(0,r.mL)(t,"dragenter").pipe((0,c.w)((({target:e,dataTransfer:n})=>(0,a.T)((0,r.mL)(t,"dragleave").pipe((0,u.h)((t=>t.target===e))),(0,r.mL)(t,"drop")).pipe((0,l.U)((()=>null)),(0,d.O)(n)))),(0,h.x)(((t,e)=>!!t&&!!e||!t&&!e))),(0,r.mL)(t,"dragover").pipe((0,r.mp)(),(0,p.R)(e)).subscribe()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.a3,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDroppableDropped",""],["","tuiDroppableDragOverChange",""]],outputs:{tuiDroppableDropped:"tuiDroppableDropped",tuiDroppableDragOverChange:"tuiDroppableDragOverChange"},features:[i._Bn([o.a3])]}),t})()},44766:(t,e,n)=>{n.d(e,{U:()=>r});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})()},94084:(t,e,n)=>{n.d(e,{y:()=>a});var i=n(12057),r=n(74788),o=n(14393),s=n(68918);let a=(()=>{class t{constructor(t,e,n){this.doc=t,this.el=e,this.renderer=n,this.activeElement=(0,s.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,o.PP)(e,t))return;const n=(0,s.BW)({initial:e,root:e});n&&n.focus()}ngOnDestroy(){(0,s.hp)(this.doc),Promise.resolve().then((()=>{(0,o.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})()},35928:(t,e,n)=>{n.d(e,{q:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiFocusVisibleChange=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.ku))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[r._Bn([i.a3,i.ku])]}),t})()},63973:(t,e,n)=>{n.d(e,{t:()=>r});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})()},28347:(t,e,n)=>{n.d(e,{U:()=>d});var i=n(74788),r=n(71241),o=n(68918),s=n(66682),a=n(88002),l=n(39761),u=n(87519),c=n(13653);let d=(()=>{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,u.x)(),(0,c.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})()},11108:(t,e,n)=>{n.d(e,{c:()=>o});var i=n(17035),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiHoveredChange=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.g))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[r._Bn([i.g])]}),t})()},17035:(t,e,n)=>{n.d(e,{g:()=>p});var i=n(74788),r=n(24994),o=n(71241),s=n(60325),a=n(29856),l=n(66682),u=n(88002),c=n(45435),d=n(87519);function h({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,u.U)(r.Ye)),(0,o.mL)(this.el.nativeElement,"mouseleave").pipe((0,u.U)(r.Iy)),(0,o.mL)(this.el.nativeElement,"mouseout").pipe((0,c.h)(h),(0,u.U)(r.Iy))).pipe((0,d.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})()},32489:(t,e,n)=>{n.d(e,{w:()=>r});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})()},42486:(t,e,n)=>{n.d(e,{L:()=>o});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})()},41578:(t,e,n)=>{n.d(e,{z:()=>u});var i=n(47787),r=n(71241),o=n(66614),s=n(79765),a=n(88002),l=n(74788);let u=(()=>{class t{constructor(t,e){this.enabled$=new s.xQ;const n=e.pipe((0,a.U)((e=>!!e&&(!t||!e.length||e.every((e=>!t.contains(e)))))));this.tuiObscured=this.enabled$.pipe((0,r.Xd)((()=>n)))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(i.e,8),l.Y36(o.AQ,2))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[l._Bn([o.AQ,o.b0,o.a3])]}),t})()},75984:(t,e,n)=>{n.d(e,{W:()=>d});var i=n(74788),r=n(71241),o=n(66614),s=n(14393),a=n(45435),l=n(46782),u=n(43190),c=n(68307);let d=(()=>{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,u.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,c.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})()},11123:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiPan=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.l))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiPan",""]],outputs:{tuiPan:"tuiPan"},features:[r._Bn([i.l])]}),t})()},9092:(t,e,n)=>{n.d(e,{n:()=>s});var i=n(74788),r=n(71241),o=n(27203);let s=(()=>{class t{constructor(t,e){this.el=t,this.takeOnlyTrustedEvents=e,this.tuiPressedChange=(0,r.pn)(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.wx))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})()},30251:(t,e,n)=>{n.d(e,{A:()=>l});var i=n(74788),r=n(71241),o=n(66614),s=n(22759),a=n(46782);let l=(()=>{class t{constructor(t,e,n){this.el=t,this.zone=e,this.destroy$=n,this.eventName=""}ngOnInit(){(0,s.R)(this.el.nativeElement,this.eventName,{passive:!1}).pipe((0,r.fL)(this.zone),(0,r.mp)(),(0,a.R)(this.destroy$)).subscribe()}}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:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[i._Bn([o.a3])]}),t})()},46648:(t,e,n)=>{n.d(e,{X:()=>s});var i=n(74788),r=n(48843);class o{constructor(t){this.$implicit=t}}let s=(()=>{class t{constructor(t,e){this.viewContainer=t,this.templateRef=e}set tuiRepeatTimesOf(t){const e=Math.floor((0,r.Ki)(t,0,65536)),{length:n}=this.viewContainer;t{n.d(e,{$:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiResize=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.tl))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiResize",""]],outputs:{tuiResize:"tuiResize"},features:[r._Bn([i.a3,i.tl])]}),t})()},76995:(t,e,n)=>{n.d(e,{U:()=>o});var i=n(44766),r=n(74788);let o=(()=>{class t extends i.U{}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiResizeable",""]],features:[r.qOj]}),t})()},51703:(t,e,n)=>{n.d(e,{L:()=>s});var i=n(74788),r=n(36128),o=n(76995);let s=(()=>{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,r.O)(i[0])),this.tuiResizer[1]&&(n.height=(0,r.O)(i[1])),this.tuiSizeChange.emit(i)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.U))},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})()},69919:(t,e,n)=>{n.d(e,{W:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiSwipe=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.$D))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiSwipe",""]],outputs:{tuiSwipe:"tuiSwipe"},features:[r._Bn([i.$D])]}),t})()},66161:(t,e,n)=>{n.d(e,{W:()=>s});var i=n(74788),r=n(24751),o=n(24994);let s=(()=>{class t{constructor(){this.onChange=o.iD,this.tuiValidator=r.kI.nullValidator}validate(t){return this.tuiValidator(t)}registerOnValidatorChange(t){this.onChange=t}ngOnChanges(){this.onChange()}ngOnDestroy(){this.tuiValidator=r.kI.nullValidator,this.onChange()}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiValidator",""]],inputs:{tuiValidator:"tuiValidator"},features:[i._Bn([{provide:r.Cf,useExisting:(0,i.Gpc)((()=>t)),multi:!0}]),i.TTD]}),t})()},43949:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(66614),r=n(74788);let o=(()=>{class t{constructor(t){this.tuiZoom=t}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.bW))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiZoom",""]],hostVars:2,hostBindings:function(t,e){2&t&&r.Udp("touch-action","none")},outputs:{tuiZoom:"tuiZoom"},features:[r._Bn([i.bW])]}),t})()},21543:(t,e,n)=>{n.d(e,{I4:()=>i,AM:()=>r,JY:()=>o,ZB:()=>s,aq:()=>a,jw:()=>l,pb:()=>u,j2:()=>c}),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 u extends Error{constructor(){super("")}}class c extends Error{constructor(){super("")}}Error,Error},42600:(t,e,n)=>{n.d(e,{IyD:()=>U.Iy,YeN:()=>U.Ye,M$T:()=>i.M$,QJb:()=>i.QJ,d56:()=>i.d5,XnQ:()=>i.Xn,m6v:()=>i.m6,F9l:()=>i.F9,ErH:()=>i.Er,N9Y:()=>i.N9,GM_:()=>i.GM,FXc:()=>i.FX,fv1:()=>U.fv,emD:()=>U.em,f$6:()=>U.f$,kUW:()=>U.kU,tUj:()=>U.tU,FSK:()=>U.FS,ekI:()=>tt,FZu:()=>et,NAy:()=>q,LZ8:()=>U.LZ,Jy9:()=>U.Jy,iDf:()=>U.iD,Mmc:()=>U.Mm,NRs:()=>J,mHA:()=>Q,I28:()=>v.I2,P_B:()=>nt,q_$:()=>it,bgn:()=>U.bg,yZp:()=>U.yZ,qYI:()=>v.qY,nNo:()=>gt,KZI:()=>v.KZ,tSu:()=>v.tS,XGT:()=>v.XG,oDT:()=>v.oD,FAH:()=>v.FA,fLQ:()=>v.fL,SgE:()=>v.Sg,jFN:()=>v.jF,OyN:()=>mt,KxC:()=>U.Kx,i0M:()=>v.i0,$__:()=>v.$_,zyr:()=>U.zy,CyX:()=>v.Cy,Mle:()=>U.Ml,fMG:()=>v.fM,eJF:()=>g.e,Ah6:()=>g.A,F_5:()=>h,Q7V:()=>m,gIU:()=>b,S1R:()=>y,TU1:()=>dt,Lrk:()=>ot,VRe:()=>pt,a31:()=>bt.a3,FiZ:()=>$,gHG:()=>bt.gH,NLi:()=>C,nc:()=>_.nc,mLu:()=>F,ae2:()=>N.a,U1Q:()=>w,pLW:()=>l,ceN:()=>M,kuj:()=>bt.ku,udY:()=>O,Fqk:()=>k,VE3:()=>S,gsq:()=>P.g,llV:()=>bt.ll,wt3:()=>T.w,HOV:()=>A,WDk:()=>E,I1h:()=>c,qld:()=>ct,dtp:()=>ht,lTc:()=>I,eoI:()=>D,NZ5:()=>L,fzP:()=>z,IhY:()=>R,I2i:()=>d,k54:()=>B,tll:()=>bt.tl,U_3:()=>H.U,gjW:()=>V,eI3:()=>p,FYW:()=>bt.FY,FrL:()=>bt.Fr,$DV:()=>bt.$D,qDo:()=>ft,pbU:()=>at.pb,T8v:()=>r.T,op3:()=>Y,F4U:()=>ut,RRg:()=>j,YlY:()=>rt,LwS:()=>U.Lw,WX:()=>u.WX,Hh6:()=>u.Hh,jp1:()=>u.jp,XHb:()=>v.XH,wBO:()=>i.wB,QaK:()=>v.Q,FTc:()=>v.FT,zUu:()=>r.z,f$T:()=>f.f$,hpv:()=>u.hp,Kiv:()=>u.Ki,xTK:()=>u.xT,LzW:()=>o.L,PPV:()=>u.PP,EKY:()=>_.EK,jHx:()=>u.jH,JN4:()=>u.JN,N1V:()=>u.N1,hVF:()=>G,A2j:()=>u.A2,mM1:()=>_.mM,mAU:()=>u.mA,Nnc:()=>u.Nn,BWF:()=>u.BW,Wfd:()=>u.Wf,PU1:()=>u.PU,YXZ:()=>u.YX,ie4:()=>u.ie,gDA:()=>u.gD,ROF:()=>u.RO,qZG:()=>u.qZ,Xdy:()=>_.Xd,wfT:()=>u.wf,xz3:()=>u.xz,veZ:()=>u.ve,Hnx:()=>u.Hn,Mv9:()=>u.Mv,oKA:()=>u.oK,dWV:()=>u.dW,LsU:()=>u.Ls,V8W:()=>u.V8,zb4:()=>u.zb,dTd:()=>u.dT,_hh:()=>u._h,dtH:()=>u.dt,fwO:()=>_.fw,PcC:()=>u.Pc,Exm:()=>u.Ex,Ajw:()=>u.Aj,wqZ:()=>u.wq,qYx:()=>u.qY,lj0:()=>u.lj,VRr:()=>u.VR,J$k:()=>u.J$,yj2:()=>u.yj,MpC:()=>u.Mp,dDE:()=>u.dD,mp3:()=>_.mp,vKU:()=>u.vK,UMq:()=>vt.UM,O9r:()=>u.O9,Mz4:()=>u.Mz,llR:()=>_.ll,UPZ:()=>u.UP,WSX:()=>u.WS,bDt:()=>u.bD,FGw:()=>u.FG,h0X:()=>u.h0,Pg4:()=>u.Pg,NJB:()=>u.NJ,HWE:()=>u.HW,oYk:()=>u.oY,mLY:()=>_.mL,pfE:()=>u.pf,NAr:()=>_.NA,Yry:()=>_.Yr,fL9:()=>_.fL,AoQ:()=>_.Ao});var i=n(44706),r=n(89476),o=n(67697),s=(n(29529),n(12057)),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var u=n(60325);let c=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),h=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez,c]]}),t})();n(68646),n(36378);let p=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez]]}),t})();n(19869),n(65321);var g=n(47787);n(30528);let m=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var f=n(27998),v=(n(49289),n(8635),n(27203));n(13080);let b=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(24850);var _=n(71241);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(48992);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(94084);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(35928);let M=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(28347);let k=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(11108);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var P=n(17035),T=n(32489);let A=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})(),E=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(41578);let I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(75984);let D=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(11123);let L=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(73186);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var N=n(81406);n(9092);let z=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(30251),n(46648);let R=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(53874);let B=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var H=n(76995);n(51703);let V=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(69919),n(66161);let Y=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();n(43949);let j=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var Z=n(89570);let $=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.ez,Z.wq,D,x,E,p]]}),t})();var U=n(24994);function G(t,e,n){return n&&nt?e:t}const q=7,J=12,Q=`${U.f$}${U.F}${U.f$}`,W=6e4,K=36e5,X=864e5,tt=10,et=2*tt+Q.length,nt=(0,u.JN)("DMY"),it=(0,u.JN)("."),rt=(t,e)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,e);var ot=(()=>(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"}(ot||(ot={})),ot))(),st=(()=>(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"}(st||(st={})),st))(),at=n(21543),lt=n(48843);class ut{constructor(t){this.year=t}static isValidYear(t){return Number.isInteger(t)&&(0,lt.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,lt.G1)(t,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return ut.isLeapYear(this.year)}get absoluteLeapYears(){return ut.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 ut(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 ct extends ut{constructor(t,e){super(t),this.month=e}static isValidMonth(t,e){return ut.isValidYear(t)&&ct.isValidMonthPart(e)}static getMonthDaysCount(t,e){switch(t){case st.February:return e?29:28;case st.April:case st.June:case st.September:case st.November:return 30;default:return 31}}static currentLocal(){const t=new Date;return new ct(t.getFullYear(),t.getMonth())}static currentUtc(){const t=new Date;return new ct(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,lt.G1)(t,0,11)}static isValidMonthPart(t){return Number.isInteger(t)&&(0,lt.wf)(t,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return ct.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)*J+this.month+e;return new ct(Math.floor(n/J),n%J)}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 dt extends ct{constructor(t,e,n){super(t,e),this.day=n}static fromLocalNativeDate(t){return new dt(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new dt(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(t,e,n){return ct.isValidMonth(t,e)&&Number.isInteger(n)&&(0,lt.wf)(n,1,ct.getMonthDaysCount(e,ut.isLeapYear(t))+1)}static currentLocal(){const t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate();return new dt(e,n,i)}static currentUtc(){const t=new Date,e=t.getUTCFullYear(),n=t.getUTCMonth(),i=t.getUTCDate();return new dt(e,n,i)}static normalizeOf(t,e,n){const i=ut.normalizeYearPart(t),r=ct.normalizeMonthPart(e),o=dt.normalizeDayPart(n,r,i);return new dt(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 dt.normalizeOf(r,i,n)}static jsonParse(t){const{day:e,month:n,year:i}=this.parseRawDateString(t,"YMD");if(!ut.isValidYear(i))throw new at.JY(i);if(!ct.isValidMonth(i,n))throw new at.AM(n);if(!Number.isInteger(e)||!(0,lt.wf)(e,1,ct.getMonthDaysCount(n,ut.isLeapYear(i))+1))throw new at.I4(e);return new dt(i,n,e)}static normalizeDayPart(t,e,n){const i=ct.getMonthDaysCount(e,ut.isLeapYear(n));return(0,lt.G1)(t,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const t=this.dayOfWeek(!1);return t===ot.Saturday||t===ot.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)*J+this.month+e;let r=Math.floor(i/J),o=i%J,s=Math.min(this.day,ct.getMonthDaysCount(o,ut.isLeapYear(r)))+n;for(;s>ct.getMonthDaysCount(o,ut.isLeapYear(r));)s-=ct.getMonthDaysCount(o,ut.isLeapYear(r)),o===st.December?(r++,o=st.January):o++;for(;s<1;)o===st.January?(r--,o=st.December):o--,s+=ct.getMonthDaysCount(o,ut.isLeapYear(r));return new dt(r,o,s)}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))}}class ht{constructor(t,e){this.from=t,this.to=e}static sort(t,e){return t.monthSameOrBefore(e)?new ht(t,e):new ht(e,t)}get isSingleMonth(){return this.from.monthSame(this.to)}monthSame(t){return this.from.monthSame(t.from)&&this.to.monthSame(t.to)}toString(){return`${this.from}${Q}${this.to}`}}class pt extends ht{constructor(t,e){super(t,e),this.from=t,this.to=e}static sort(t,e){return t.daySameOrBefore(e)?new pt(t,e):new pt(e,t)}static normalizeParse(t,e="DMY"){const n=dt.normalizeParse(t.slice(0,tt),e);return t.length0,n=e||"HH:MM:SS"===t||!t&&this.seconds>0;return`${this.formatTime(this.hours)}:${this.formatTime(this.minutes)}`+(n?`:${this.formatTime(this.seconds)}`:"")+(e?`.${this.formatTime(this.ms,3)}`:"")}valueOf(){return this.toAbsoluteMilliseconds()}[Symbol.toPrimitive](t){return Date.prototype[Symbol.toPrimitive].call(this,t)}toAbsoluteMilliseconds(){return this.hours*K+this.minutes*W+1e3*this.seconds+this.ms}formatTime(t,e=2){return String(t).padStart(e,"0")}}var vt=n(31818),bt=n(66614)},71241:(t,e,n)=>{n.d(e,{nc:()=>b,EK:()=>s,mM:()=>_,ix:()=>z,Xd:()=>B,fw:()=>H,pn:()=>Y,mp:()=>Z,ll:()=>V,pt:()=>$,mL:()=>f,NA:()=>U,Yr:()=>J,fL:()=>q,Ao:()=>G});var i=n(21543),r=n(29856),o=n(39761);function s(t){return new r.y((e=>{if(!t.valueChanges)throw new i.j2;return t.valueChanges.pipe((0,o.O)(t.value)).subscribe(e)}))}var a=n(50664),l=n(22416),u=n(66682),c=n(15257),d=n(88002),h=n(86804),p=n(70409),g=n(79196),m=n(22759);function f(t,e,n={}){return(0,m.R)(t,e,n)}function v(t){return(0,u.T)(f(t,"mouseup"),f(t,"dragend"))}var b=(()=>(function(t){t[t.Start=0]="Start",t[t.Continues=1]="Continues",t[t.End=2]="End"}(b||(b={})),b))();class y{constructor(t,e){this.stage=t,this.event=e}}function _(t){const{ownerDocument:e}=t;if(!e)throw new i.aq;return(0,l.z)(f(t,"mousedown").pipe((0,c.q)(1),(0,d.U)((t=>new y(b.Start,t)))),(0,u.T)(f(e,"mousemove").pipe((0,d.U)((t=>new y(b.Continues,t)))),v(e).pipe((0,c.q)(1),(0,d.U)((t=>new y(b.End,t))),(0,h.l)(null))).pipe((0,p.o)(a.Pc))).pipe((0,g.r)())}var C=n(24994),w=n(60325),x=n(68918),M=n(47349),O=n(45435),k=n(77393);class S{call(t,e){return e.subscribe(new P(t))}}class P extends k.L{_next(t){}}var T=n(57057),A=n(43190),E=n(87519),I=n(34022),D=n(46797);function L(t=0){return(0,I.z)((0,A.w)((()=>(0,D.H)(t).pipe((0,d.U)(C.Iy),(0,o.O)(!0)))),(0,E.x)())}let F,N;function z(t){const e=f(t,"blur"),{ownerDocument:n}=t;if(!n)throw new i.aq;return N&&F||(F=f(n,"mouseup",{capture:!0}).pipe(L(),(0,o.O)(!1),(0,M.d)({bufferSize:1,refCount:!0})),N=f(n,"mousedown",{capture:!0}).pipe(L(),(0,o.O)(!1),(0,M.d)({bufferSize:1,refCount:!0}))),(0,u.T)((0,l.z)(f(t,"focus").pipe((0,c.q)(1)),e.pipe((0,O.h)((()=>!(0,x.V8)(t))),(0,c.q)(1),(function(t){return t.lift(new S)}))).pipe((0,g.r)(),(0,T.M)(N,F,((t,e,n)=>e||n)),(0,O.h)(w.Mv))).pipe((0,A.w)((()=>e.pipe((0,d.U)(C.Iy),(0,c.q)(1),(0,o.O)(!0)))),(0,E.x)())}var R=n(59193);function B(t,e=Boolean){return(0,I.z)((0,A.w)((n=>e(n)?t(n):R.E)))}function H(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 V(t){return t.changes.pipe((0,o.O)(null),(0,d.U)((()=>(0,a.gD)(t))))}function Y(t,{onlyTrusted:e}={onlyTrusted:!0}){const{ownerDocument:n}=t;if(!n)throw new i.aq;return f(t,"mousedown").pipe((0,O.h)((({isTrusted:t})=>t||!e)),(0,A.w)((()=>v(n).pipe((0,d.U)(C.Iy),(0,c.q)(1),(0,o.O)(!0)))))}var j=n(68307);function Z(){return(0,j.b)((t=>t.preventDefault()))}function $(t){return f(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function U(t){return(0,j.b)((()=>{t.markForCheck()}))}function G(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()))})))}function q(t){return e=>new r.y((n=>t.runOutsideAngular((()=>e.subscribe(n)))))}function J(t){return(0,I.z)(q(t),G(t))}},2579:(t,e,n)=>{n.d(e,{c:()=>r});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})()},66614:(t,e,n)=>{n.d(e,{a3:()=>o,gH:()=>s,ku:()=>c,ll:()=>d,AQ:()=>M,l:()=>A,b0:()=>x,tl:()=>F,FY:()=>j,Fr:()=>q,$D:()=>Q,bW:()=>X});var i=n(74235),r=n(74788);let o=(()=>{class t extends i.t{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),s=(()=>{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))}ngOnDestroy(){this.map.forEach((t=>t.destroy()))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r._Vd),r.LFG(r.gxx))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var a=n(71241),l=n(29856),u=n(46782);let c=(()=>{class t extends l.y{constructor({nativeElement:t},e,n){super((t=>this.focusVisible$.subscribe(t))),this.focusVisible$=(0,a.ix)(t).pipe((0,a.NA)(e),(0,u.R)(n))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(r.sBO),r.LFG(o,2))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),d=(()=>{class t{generate(){return`tui_${t.autoId++}${Date.now()}`}}return t.autoId=0,t.ɵfac=function(e){return new(e||t)},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var h=n(62579),p=n(24994),g=n(14393),m=n(66682),f=n(22759),v=n(87874),b=n(43219),y=n(88002),_=n(39761),C=n(87519),w=n(41439);let x=(()=>{class t extends l.y{constructor(t,e){super((t=>this.callback$.subscribe(t))),this.callback$=(0,w.P)((()=>{let{nativeElement:n}=t;const i=[e,n];for(;n.parentElement;)n=n.parentElement,i.push(n);return(0,m.T)(...i.map((t=>(0,a.mL)(t,"scroll"))))}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(h.m9))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})(),M=(()=>{class t extends l.y{constructor(t,{nativeElement:e},n,i,r,o){super((t=>this.obscured$.subscribe(t))),this.obscured$=(0,m.T)((0,m.T)(t,(0,f.R)(i,"resize")).pipe((0,v.g)(0)),o.pipe((0,b.p)(p.Yg))).pipe((0,y.U)((()=>(0,g.PU)(e))),(0,_.O)(null),(0,C.x)(),(0,a.Yr)(n),(0,u.R)(r))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(x,2),r.LFG(r.SBq),r.LFG(r.R0b),r.LFG(h.m9),r.LFG(o,2),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();var O=n(12057),k=n(43190),S=n(45435),P=n(59328),T=n(79196);let A=(()=>{class t extends l.y{constructor({nativeElement:t},e){super((n=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}),(0,a.mL)(t,"mousedown")).pipe((0,k.w)((()=>(0,m.T)((0,a.mL)(e,"touchmove",{passive:!0}).pipe((0,S.h)((({touches:t})=>t.length<2)),(0,y.U)((({touches:t})=>t[0]))),(0,a.mL)(e,"mousemove")))),(0,P.G)(),(0,y.U)((([t,e])=>[e.clientX-t.clientX,e.clientY-t.clientY])),(0,u.R)((0,m.T)((0,a.mL)(e,"touchend"),(0,a.mL)(e,"mouseup"))),(0,T.r)()).subscribe(n)}))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(O.K0))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();var E=n(32917),I=n(5304),D=n(54395),L=n(9945);let F=(()=>{class t extends E.ax{constructor(t,e,n,i,r,o){return super(t,e,i,r),this.pipe((0,I.K)((()=>o.pipe((0,b.p)(p.Yg),(0,y.U)((()=>`${t.nativeElement.clientWidth} ${t.nativeElement.clientHeight}`)),(0,C.x)(),(0,y.U)((()=>p.LZ))))),(0,D.b)(0),(0,a.fL)(e),(0,L.B)(),(0,u.R)(n))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(r.SBq),r.LFG(r.R0b),r.LFG(o,2),r.LFG(E.vU),r.LFG(E.jg),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})();n(89476);var N=n(48843),z=n(50664),R=n(25917),B=n(46797),H=n(86804),V=n(68307);function Y(t){return"scrollX"in t?t.scrollX:t.scrollLeft}let j=(()=>{class t{constructor(t,e){this.performanceRef=t,this.animationFrame$=e}scroll$(t,e,n=Y(t),i=300){const r=function(t){return"scrollY"in t?t.scrollY:t.scrollTop}(t),o=Y(t),s=e-r,a=n-o;return(i?(0,w.P)((()=>(0,R.of)(this.performanceRef.now()))).pipe((0,k.w)((t=>this.animationFrame$.pipe((0,y.U)((e=>e-t))))),(0,y.U)((t=>(0,z.Xg)((0,N.Ki)(t/i,0,1)))),(0,y.U)((t=>[r+s*t,o+a*t])),(0,u.R)((0,B.H)(i)),(0,H.l)([e,n])):(0,R.of)([e,n])).pipe((0,V.b)((([e,n])=>{var i;null===(i=t.scrollTo)||void 0===i||i.call(t,n,e)})))}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h.KS),r.LFG(h.L1))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var Z=n(97582),$=n(97968),U=n(59178),G=n(47349);let 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,O.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 U.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,$.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,w.P)((()=>(0,$.D)(fetch(t))))).pipe((0,k.w)((e=>(0,Z.mG)(this,void 0,void 0,(function*(){if(e.ok)return e.text();throw new Error(`Failed to load ${t} (${e.statusText})`)})))),(0,G.d)({bufferSize:1,refCount:!1}));return this.cache.set(t,n),n}}return t.ɵfac=function(e){return new(e||t)(r.LFG(h.m9),r.LFG(r.Lbi))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var J=n(27203);let Q=(()=>{class t extends l.y{constructor({nativeElement:t},{timeout:e,threshold:n},i){super((r=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}),(0,a.mL)(i,"touchend")).pipe((0,P.G)(),(0,S.h)((([t,e])=>!!t.touches.length&&t.touches[0].identifier===e.changedTouches[0].identifier)),(0,y.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 l.y{constructor({nativeElement:t},{wheelSensitivity:e}){super((n=>{(0,m.T)((0,a.mL)(t,"touchstart",{passive:!0}).pipe((0,S.h)((({touches:t})=>t.length>1)),(0,k.w)((e=>(0,a.mL)(t,"touchmove",{passive:!0}).pipe((0,a.mp)(),(0,K.R)(((t,e)=>{const n=(0,W.q2)(e);return{event:e,distance:n,delta:.01*(n-t.distance)}}),{event:e,distance:(0,W.q2)(e),delta:0}),(0,y.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,u.R)((0,a.mL)(t,"touchend")))))),(0,a.mL)(t,"wheel",{passive:!1}).pipe((0,a.mp)(),(0,y.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)(r.LFG(r.SBq),r.LFG(J.AK))},t.ɵprov=r.Yz7({token:t,factory:t.ɵfac}),t})()},27203:(t,e,n)=>{n.d(e,{wk:()=>O,bS:()=>k,I2:()=>P,qY:()=>T,KZ:()=>E,tS:()=>N,XG:()=>V,oD:()=>$,FA:()=>z,fL:()=>H,Sg:()=>U,jF:()=>G,i0:()=>q,$_:()=>J,s6:()=>Q,wx:()=>W,Cy:()=>K,fM:()=>X,AK:()=>tt,XH:()=>S,Q:()=>A,FT:()=>I});var i=n(12057),r=n(74788),o=n(62579),s=n(71241),a=n(60325),l=n(66682),u=n(25917),c=n(46797),d=n(88002),h=n(45435),p=n(46782),g=n(72361),m=n(57057),f=n(43190),v=n(39761),b=n(15257),y=n(87519),_=n(9945),C=n(79221),w=n(26215);const x=(0,a.N1)((()=>{const t={onRemovalComplete:()=>{}},e=new w.X(null),n=(0,r.f3M)(C.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,f.w)((t=>(0,c.H)(0).pipe((0,d.U)((()=>null)),(0,v.O)(t)))),(0,_.B)())}));function M(t,e=null){return(0,a.Wf)(t).activeElement!==t&&!t.matches(":disabled")&&!(null==e?void 0:e.contains(t))}const O=(0,a.N1)((()=>{const t=(0,r.f3M)(x),e=(0,r.f3M)(o.m9),n=(0,r.f3M)(i.K0),C=(0,s.mL)(e,"focusout"),w=(0,s.mL)(e,"focusin"),O=(0,s.mL)(e,"blur"),k=(0,s.mL)(e,"mousedown"),S=(0,s.mL)(e,"mouseup");return(0,l.T)(C.pipe((0,p.R)(k),(0,g.a)((()=>S)),(0,m.M)(t),(0,h.h)((([t,e])=>M((0,a.mA)(t),e))),(0,d.U)((([{relatedTarget:t}])=>t))),O.pipe((0,d.U)((()=>n.activeElement)),(0,h.h)((t=>!!(null==t?void 0:t.matches("iframe"))))),w.pipe((0,f.w)((t=>{const e=(0,a.mA)(t),i=(0,a.Wf)(e);return i===n?(0,u.of)(e):function(t){return(0,l.T)((0,s.mL)(t,"focusin").pipe((0,d.U)((({target:t})=>t))),(0,s.mL)(t,"focusout").pipe((0,h.h)((({target:t,relatedTarget:e})=>!!e&&M(t))),(0,d.U)((({relatedTarget:t})=>t))))}(i).pipe((0,v.O)(e))}))),k.pipe((0,f.w)((t=>{const e=(0,a.mA)(t);return n.activeElement&&n.activeElement!==n.body?C.pipe((0,b.q)(1),(0,d.U)((()=>e)),(0,p.R)((0,c.H)(0))):(0,u.of)(e)})))).pipe((0,y.x)(),(0,_.B)())})),k=(0,a.JN)([]);function S(t){return{provide:k,multi:!0,useExisting:t}}const P=(0,a.N1)((()=>{var t,e;return null!==(e=null===(t=(0,r.f3M)(i.K0).querySelector("base"))||void 0===t?void 0:t.href)&&void 0!==e?e:""})),T=((0,a.N1)((()=>(0,r.f3M)(r.FYo).createRenderer(null,null))),(0,a.JN)([]));function A(t){return{provide:T,multi:!0,useExisting:t}}(0,a.N1)((()=>{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 E=new r.OlP("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function I(t){return{provide:E,useExisting:t}}var D=n(97968),L=n(59193),F=n(47349);const N=new r.OlP("[TUI_FONTS_READY]",{factory:()=>{var t;return(0,D.D)((null===(t=(0,r.f3M)(i.K0).fonts)||void 0===t?void 0:t.ready)||L.E).pipe((0,F.d)({bufferSize:1,refCount:!1}))}}),z=(0,a.N1)((()=>(0,a.i1)((0,r.f3M)(o.s5)))),R=/(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/,B=/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-/,H=(0,a.N1)((()=>R.test((0,r.f3M)(o.yZ).toLowerCase())||B.test((0,r.f3M)(o.yZ).slice(0,4).toLowerCase()))),V=(0,a.N1)((()=>(0,r.f3M)(H)&&!(0,r.f3M)(z))),Y=((0,a.N1)((()=>(0,a.lx)((0,r.f3M)(o.s5)))),(0,a.N1)((()=>!!(0,r.f3M)(o.m9).chrome)),(0,a.N1)((()=>!!(0,r.f3M)(o.m9).Cypress)));var j=n(24994);const Z=(0,a.N1)(j.Iy),$=(0,a.N1)((()=>(0,r.f3M)(Y)||(0,r.f3M)(Z))),U=((0,a.N1)((()=>{var t;return void 0!==(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.mozCancelFullScreen)})),(0,a.N1)((()=>(0,r.f3M)(o.m9).location.host.endsWith("stackblitz.io")))),G=(0,a.N1)((()=>{var t;return!!(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.webkitConvertPointFromNodeToPage)}));(0,a.JN)("web");const q=(0,a.N1)((()=>(0,i.NF)((0,r.f3M)(r.Lbi))?new Range:{})),J=(0,a.N1)((()=>new r.SBq((0,r.f3M)(i.K0).documentElement))),Q=(0,a.JN)({timeout:500,threshold:30}),W=(0,a.N1)(j.Ye),K=(0,a.N1)((()=>(0,r.f3M)(o.m9).matchMedia("(any-pointer: coarse)").matches)),X=new r.OlP("[TUI_WINDOW_SIZE]",{factory:()=>{const t=(0,r.f3M)(o.m9);return(0,s.mL)(t,"resize").pipe((0,v.O)(null),(0,d.U)((()=>{var e,n;const i=Math.max(t.document.documentElement.clientWidth||0,t.innerWidth||0,(null===(e=t.visualViewport)||void 0===e?void 0:e.width)||0),r=Math.max(t.document.documentElement.clientHeight||0,t.innerHeight||0,(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,F.d)({bufferSize:1,refCount:!0}))}}),tt=((0,a.N1)((()=>(0,r.f3M)(X).pipe((0,d.U)((({height:t})=>t))))),(0,a.JN)({wheelSensitivity:.01}))},14393:(t,e,n)=>{function i(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)i,PP:()=>r,mA:()=>c,Nn:()=>h,Wf:()=>p,PU:()=>f,YX:()=>v,Hs:()=>b,ve:()=>a,Hn:()=>y,dW:()=>l,Ls:()=>o,wq:()=>u,qY:()=>s,dD:()=>_,UP:()=>C});const d="text/plain";function h(t,e=d){return"clipboardData"in t&&null!==t.clipboardData?t.clipboardData.getData(e)||t.clipboardData.getData(d):t.target.ownerDocument.defaultView.clipboardData.getData("text")}function p(t){return"getRootNode"in t&&t.isConnected?t.getRootNode():t.ownerDocument}var g=n(48843),m=n(50664);function f(t){const{ownerDocument:e}=t;if(!(null==e?void 0:e.defaultView)||!t.getBoundingClientRect)return null;const{innerWidth:n,innerHeight:i}=e.defaultView,r=p(t),o=t.getBoundingClientRect();if(0===o.width&&0===o.height)return null;const s=(0,g.Ki)(Math.round(o.left)+2,0,n),a=(0,g.Ki)(Math.round(o.top)+2,0,i),l=(0,g.Ki)(Math.round(o.right)-2,0,n),u=(0,g.Ki)(Math.round(o.bottom)-2,0,i),c=(0,g.Ki)(Math.round(o.left+o.width/2),0,n),d=(0,g.Ki)(Math.round(o.top+o.height/2),0,i),h=[r.elementFromPoint(c,a),r.elementFromPoint(c,u),r.elementFromPoint(s,d),r.elementFromPoint(l,d)].filter(m.Pc);if(!h.length)return h;const f=h.filter((e=>!t.contains(e)));return 4===f.length?f:null}function v(t,e){let{offsetTop:n,offsetLeft:i,offsetParent:r}=e;for(;l(r)&&r!==t;)n+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return{offsetTop:n,offsetLeft:i}}function b(t,e=!0){return null===t?null:e&&t.scrollHeight>t.clientHeight||!e&&t.scrollWidth>t.clientWidth?t:b(t.parentElement,e)}function y(t){return s(t)&&!t.readOnly||!!t.isContentEditable}function _(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})}function C(t){return"explicitOriginalTarget"in t?(null==t?void 0:t.explicitOriginalTarget)!==t.target:"pointerId"in t?-1===t.pointerId:"detail"in t&&"webkitForce"in t&&0===(null==t?void 0:t.detail)}n(89476)},68918:(t,e,n)=>{n.d(e,{hp:()=>o,BW:()=>u,ie:()=>r,V8:()=>c,zb:()=>d,dT:()=>a,_h:()=>l,VR:()=>h,Pg:()=>p});var i=n(14393);function r({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 o(t){const e=r(t);(0,i.dW)(e)&&e.blur()}var s=n(24994);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 u({initial:t,root:e,previous:n=!1,keyboard:r=!0}){if(!e.ownerDocument)return null;const o=r?a:l,u=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s.Lw);for(u.currentNode=t;n?u.previousNode():u.nextNode();)if((0,i.dW)(u.currentNode)&&(t=u.currentNode),(0,i.dW)(t)&&o(t))return t;return null}function c(t){return!!(null==t?void 0:t.ownerDocument)&&r(t.ownerDocument)===t&&t.ownerDocument.hasFocus()}function d(t){if(!t.ownerDocument||!t.contains)return!1;const e=r(t.ownerDocument);return null!==e&&t.contains(e)&&t.ownerDocument.hasFocus()}function h(t,e,n){for(t+=n;t>=0&&t{function i(t){return`${t}px`}n.d(e,{O:()=>i}),n(89476)},60325:(t,e,n)=>{n.d(e,{WX:()=>b.WX,Hh:()=>b.Hh,jp:()=>b.jp,hp:()=>m.hp,Ki:()=>v.Ki,xT:()=>b.xT,PP:()=>g.PP,jH:()=>b.jH,JN:()=>b.JN,N1:()=>b.N1,A2:()=>b.A2,q2:()=>b.q2,mA:()=>g.mA,Nn:()=>g.Nn,BW:()=>m.BW,Wf:()=>g.Wf,PU:()=>g.PU,YX:()=>g.YX,ie:()=>m.ie,gD:()=>b.gD,RO:()=>a,qZ:()=>u,wf:()=>v.wf,lx:()=>w,xz:()=>r,ve:()=>g.ve,Hn:()=>g.Hn,Mv:()=>b.Mv,oK:()=>o,dW:()=>g.dW,Ls:()=>g.Ls,i1:()=>_,V8:()=>m.V8,zb:()=>m.zb,dT:()=>m.dT,_h:()=>m._h,dt:()=>b.dt,Pc:()=>b.Pc,Ex:()=>s,Aj:()=>b.Aj,wq:()=>g.wq,qY:()=>g.qY,lj:()=>b.lj,VR:()=>m.VR,J$:()=>b.J$,yj:()=>b.yj,Mp:()=>d,dD:()=>g.dD,vK:()=>b.vK,O9:()=>f.O,Mz:()=>v.Mz,UP:()=>g.UP,WS:()=>h,bD:()=>p,FG:()=>v.FG,h0:()=>v.h0,Pg:()=>m.Pg,NJ:()=>x,HW:()=>v.HW,oY:()=>v.oY,pf:()=>b.pf});const i="edge/";function r(t,e){return parseInt(e.slice(e.toLowerCase().indexOf(i)+i.length),10)3===n.length?t+t:t)).join("").match(/.{2}/g);return e?e.map((t=>Number.parseInt(t,16))):[0,0,0]}function l(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))}function u(t,e,n){return[l(t,e,n,5),l(t,e,n,3),l(t,e,n,1)]}const c=[0,0,0,1];function d(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 c;const r=i.map((t=>parseInt(e.length%2?t+t:t,16)));return[r[0]||c[0],r[1]||c[1],r[2]||c[2],void 0===r[3]?c[3]:r[3]]}function h(t,e,n){return`#${[t,e,n].map((t=>t.toString(16).padStart(2,"0"))).join("")}`}function p(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]}var g=n(14393),m=n(68918),f=n(36128),v=n(48843),b=n(50664);const y=/ipad|iphone|ipod/;function _(t){return y.test(t.userAgent.toLowerCase())||function(t){return t.platform.startsWith("Mac")||"iPhone"===t.platform}(t)&&t.maxTouchPoints>1}const C=/^((?!chrome|android).)*safari/i;function w(t){return _(t)||C.test(t.userAgent.toLowerCase())}function x(t,e=function(){return Math.floor(Math.random()*Date.now())}(),n="rgba(0, 0, 0, 0.7)"){if((0,b.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}},48843:(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)}function s(t,e){const n=t%e;return ni,wf:()=>r,G1:()=>o,Mz:()=>s,FG:()=>u,h0:()=>c,HW:()=>d,oY:()=>h}),n(89476);const a=292;function l(t,e,n){if(t===1/0)return t;e=Math.min(e,a);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 u(t,e=0){return l(t,e,Math.round)}function c({value:t,precision:e,method:n}){switch(n){case"round":return u(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 d(t){return t?1:0}function h(t){return parseInt(t,10)}},50664:(t,e,n)=>{function i(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}function r(t,e){return t.length===e.length&&t.every(((t,n)=>t===e[n]))}function o(t,e){const n=t.indexOf(e);return-1===n?[...t,e]:i(t,n)}function s(t){return"string"==typeof t}function a(t){return JSON.parse(JSON.stringify(t,((t,e)=>function(t){const e=s(t)?t.trim():t;return[void 0,null,NaN,""].includes(e)}(e)?void 0:e)))}n.d(e,{WX:()=>i,Hh:()=>r,jp:()=>o,xT:()=>a,jH:()=>d,JN:()=>u,N1:()=>c,A2:()=>h,q2:()=>p,Xg:()=>g,gD:()=>m,M8:()=>f,Mv:()=>v,dt:()=>b,Pc:()=>y,Aj:()=>s,lj:()=>_,J$:()=>C,yj:()=>w,vK:()=>x,pf:()=>M});var l=n(74788);function u(t){return c((()=>t))}function c(t){return new l.OlP("",{factory:t})}function d(t){return c((()=>t))}function h(t,e){return t===e?0:s(t)&&s(e)?t.localeCompare(e):t>e?1:-1}function p({touches:t}){return Math.hypot(t[0].clientX-t[1].clientX,t[0].clientY-t[1].clientY)}function g(t){return t<.5?2*t*t:(4-2*t)*t-1}function m(t){let e=[];return t.find(((t,n,i)=>(e=i,!0))),e}function f(t,e){return Math.abs(e)>Math.abs(t)?e>0?"top":"bottom":t>0?"left":"right"}function v(t){return!t}function b(t){return"number"==typeof t}function y(t){return null!=t}function _(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 C(t,e,n){return null===t?null===e:null!==e&&n(t,e)}function w(t){return t.reduce(((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n})),{})}function x(t,e,n){return{provide:t,deps:[[new l.FiY,new l.tp0,t]],useFactory:t=>Object.assign(Object.assign({},t||n),e)}}function M(t,e){return Array.from(t.reduce(((t,n)=>t.has(n[e])?t:t.set(n[e],n)),new Map).values())}n(89476)},59890:(t,e,n)=>{n.d(e,{FP:()=>p,D1:()=>g,kk:()=>l,uG:()=>m,O4:()=>b,c2:()=>c,UK:()=>u,P7:()=>v,Ic:()=>C,Fe:()=>d,Sv:()=>_,ei:()=>f,Wk:()=>y});var i=n(42600),r=n(66682),o=n(87519),s=n(46782),a=n(29856);class l extends a.y{}function u(t){return{provide:l,multi:!0,useExisting:t}}class c{}function d(t){return{provide:c,multi:!0,useExisting:t}}var h=n(74788);let p=(()=>{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,r.T)(...this.drivers.filter((({type:t})=>t===this.type))).pipe((0,o.x)(),(0,s.R)(this.destroy$)).subscribe((e=>{null==t||t.toggle(e)}))}}return t.ɵfac=function(e){return new(e||t)(h.Y36(i.a31,2),h.Y36(l),h.Y36(c))},t.ɵdir=h.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)(h.Y36(i.M$T))},t.ɵdir=h.lG2({type:t}),t})();class m{}function f(t){return{provide:m,deps:[[new h.tp0,m]],useFactory:e=>e.find((e=>e.type===t))}}function v(t){return{provide:m,multi:!0,useExisting:t}}class b{}function y(t,e){return{provide:b,deps:[[new h.tp0,b],e],useFactory:_(t)}}function _(t){return(e,n)=>e.find((e=>e!==n&&e.type===t))||n}function C(t){return{provide:b,multi:!0,useExisting:t}}},31837:(t,e,n)=>{n.d(e,{i9:()=>u,QF:()=>l,eu:()=>a,Gw:()=>c,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)])),u=((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)])),c=((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)]),(0,i.X$)("tuiPop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1.1)"})),(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(1.1)"})),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),(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)])},18289:(t,e,n)=>{n.d(e,{v:()=>M});var i=n(74788),r=n(42600),o=n(29883),s=n(59193),a=n(39761),l=n(88002),u=n(87519),c=n(21142),d=n(12057),h=n(42),p=n(89570),g=n(77825),m=n(57634);const f=["tuiButton",""];function v(t,e){1&t&&i.GkF(0)}function b(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function y(t,e){if(1&t&&(i.TgZ(0,"span",6),i.YNc(1,b,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function _(t,e){if(1&t&&i._UZ(0,"tui-svg",8),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function C(t,e){if(1&t&&(i.TgZ(0,"span",9),i.YNc(1,_,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconRight)}}function w(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 x=["*"];let M=(()=>{class t extends r.XnQ{constructor(t,e,n){var i;super(),this.mode=t,this.el=e,this.options=n,this.mode$=(null===(i=this.mode)||void 0===i?void 0:i.change$)||s.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,a.O)(null),(0,l.U)((()=>this.computedAppearance)),(0,u.x)())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&(0,r.V8W)(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(o.wt,8),i.Y36(i.SBq),i.Y36(c.Gm))},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,r.FTc)(t),r.a31]),i.qOj],attrs:f,ngContentSelectors:x,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","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,v,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.TgZ(3,"span",2),i.YNc(4,y,2,1,"span",3),i.Hsn(5),i.YNc(6,C,2,1,"span",4),i.qZA(),i.YNc(7,w,1,2,"tui-loader",5),i.qZA()),2&t&&(i.Q6J("ngIf",i.lcZ(1,8,e.appearance$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.computedAppearance)("disabled",e.computedDisabled)("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:[d.O5,h.o,p.Li,g.P,m.k],pipes:[d.Ov],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[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})()},21142:(t,e,n)=>{n.d(e,{Gm:()=>o,O0:()=>s});var i=n(42600);const r={size:"l",shape:null,appearance:n(92444).N.Primary},o=(0,i.JN4)(r);function s(t){return(0,i.vKU)(o,t,r)}},414:(t,e,n)=>{n.d(e,{a:()=>g});var i=n(74788),r=n(42600),o=n(50035),s=n(12057),a=n(96281),l=n(46109),u=n(3395),c=n(23761),d=n(2579);function h(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-scrollbar",2),i.TgZ(1,"tui-primitive-year-picker",3),i.NdJ("yearClick",(function(e){return i.CHM(t),i.oxw().onPickerYearClick(e)})),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("initialItem",t.month)("max",t.computedMax)("min",t.computedMin)("value",t.value)}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-year-month-pagination",4),i.NdJ("valueChange",(function(e){return i.CHM(t),i.oxw().onPaginationValueChange(e)}))("yearClick",(function(){return i.CHM(t),i.oxw().onPaginationYearClick()})),i.qZA(),i.TgZ(1,"tui-primitive-calendar",5),i.NdJ("dayClick",(function(e){return i.CHM(t),i.oxw().onDayClick(e)}))("hoveredItemChange",(function(e){return i.CHM(t),i.oxw().onHoveredItemChange(e)})),i.ALo(2,"tuiMapper"),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("max",t.computedMaxViewedMonth)("min",t.computedMinViewedMonth)("value",t.month),i.xp6(1),i.Q6J("disabledItemHandler",i.gM2(2,9,t.disabledItemHandler,t.disabledItemHandlerMapper,t.computedMin,t.computedMax))("hoveredItem",t.hoveredItem)("markerHandler",t.markerHandler)("month",t.month)("showAdjacent",t.showAdjacent)("value",t.value)}}let g=(()=>{class t{constructor(){this.day=null,this.view="month",this.month=r.qld.currentLocal(),this.disabledItemHandler=r.IyD,this.min=r.nNo,this.max=r.OyN,this.minViewedMonth=r.nNo,this.maxViewedMonth=r.OyN,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=o.zE,this.dayClick=new i.vpe,this.monthChange=new i.vpe,this.hoveredItemChange=new i.vpe,this.disabledItemHandlerMapper=(t,e,n)=>i=>i.dayBefore(e)||i.dayAfter(n)||t(i)}set initialView(t){this.view=t}set value(t){this.day=t,this.showAdjacent&&t instanceof r.TU1&&(this.month=t)}get value(){return this.day}get isInYearView(){return"year"===this.view}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get computedMinViewedMonth(){var t;const e=this.computedMin,n=null!==(t=this.minViewedMonth)&&void 0!==t?t:r.nNo;return n.monthSameOrAfter(e)?n:e}get computedMaxViewedMonth(){var t;const e=this.computedMax,n=null!==(t=this.maxViewedMonth)&&void 0!==t?t:r.OyN;return n.monthSameOrBefore(e)?n:e}onPaginationYearClick(){this.view="year"}onPickerYearClick({year:t}){this.view="month",this.updateViewedMonth(new r.qld(t,this.month.month))}onPaginationValueChange(t){this.updateViewedMonth(t)}onDayClick(t){this.dayClick.emit(t)}onHoveredItemChange(t){this.updateHoveredDay(t)}updateViewedMonth(t){this.month.monthSame(t)||(this.month=t,this.monthChange.emit(t))}updateHoveredDay(t){(0,r.J$k)(this.hoveredItem,t,((t,e)=>t.daySame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-calendar"]],inputs:{initialView:"initialView",month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["calendar",""],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"initialItem","max","min","value","yearClick"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"max","min","value","valueChange","yearClick"],["automation-id","tui-calendar__calendar",3,"disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value","dayClick","hoveredItemChange"]],template:function(t,e){if(1&t&&(i.YNc(0,h,2,4,"tui-scrollbar",0),i.YNc(1,p,3,14,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.isInYearView)("ngIfElse",t)}},directives:[s.O5,a.I,l.T,u.d,c.A],pipes:[d.c],styles:["[_nghost-%COMP%]{display:block;height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0}),t})()},22545:(t,e,n)=>{n.d(e,{q:()=>g});var i=n(97582),r=n(74788),o=n(42600),s=n(29883),a=n(15837),l=n(88002),u=n(91283),c=n(12057),d=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 p(t,e){if(1&t&&(r.TgZ(0,"div",2),r.YNc(1,h,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$))}}class g{constructor(t,e,n){var i;this.controller=t,this.el=e,this.defaultEmptyContent$=n,this.options=o.Mmc,this.role="listbox",this.size=(null===(i=this.controller)||void 0===i?void 0:i.size)||"m"}get empty$(){return(0,o.llR)(this.options).pipe((0,l.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.VRr)(n.indexOf(t),n,e)}handleFocusLossIfNecessary(t=this.el.nativeElement){this.origin&&(0,o.zb4)(t)&&(0,o.Pg4)(this.origin,!0,!0)}getOptions(t=!1){return this.options.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(o.PcC)}onFocus({target:t},e){if(!(0,o.veZ)(t))return;const{elements:n}=this;(0,o.VRr)(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(t)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}}g.ɵfac=function(t){return new(t||g)(r.Y36(s.Cs,8),r.Y36(r.SBq),r.Y36(a.PH))},g.ɵcmp=r.Xpm({type:g,selectors:[["tui-data-list"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.v,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,a.RB)(g),s.Y0])],ngContentSelectors:["*"],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,p,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:[c.O5,d.Li],pipes:[c.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,tui-opt-group:not(:empty)~tui-opt-group:not([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,tui-opt-group:not([data-label]):before{padding:0;margin:0}\n'],encapsulation:2,changeDetection:0}),(0,i.gn)([o.UMq],g.prototype,"empty$",null)},65266:(t,e,n)=>{n.d(e,{g:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})()},94052:(t,e,n)=>{n.d(e,{R:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-label",e.label)},inputs:{label:"label"}}),t})()},91283:(t,e,n)=>{n.d(e,{v:()=>v});var i=n(97582),r=n(74788),o=n(42600),s=n(12174),a=n(15837),l=n(30126),u=n(22545),c=n(89570),d=n(12057),h=n(77825);function p(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 g(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 m(t,e){if(1&t&&(r.Hsn(0),r.YNc(1,g,1,1,"tui-svg",2)),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.dropdown)}}const f=function(t){return{$implicit:t}};class v{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)}}v.ɵfac=function(t){return new(t||v)(r.Y36(a.IQ,8),r.Y36((0,r.Gpc)((()=>u.q)),8),r.Y36(r.SBq),r.Y36(a.N1,8),r.Y36(s.td,10),r.Y36(a.Gs))},v.ɵcmp=r.Xpm({type:v,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:["tuiOption",""],ngContentSelectors:["*"],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,p,2,1,"ng-container",0),r.YNc(1,m,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,f,t))}},directives:[c.Li,d.O5,h.P],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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,l.uX)((function({currentTarget:t}){return!(0,o.V8W)(t)}))],v.prototype,"onMouseMove",null)},24956:(t,e,n)=>{n.d(e,{v:()=>p});var i=n(42600),r=n(31837),o=n(73784),s=n(15837),a=n(74788),l=n(12057),u=n(89570);function c(t,e){if(1&t&&(a.ynx(0),a._uU(1),a.BQk()),2&t){const t=e.polymorpheusOutlet;a.xp6(1),a.hij(" ",t," ")}}const d=function(){return{}};function h(t,e){if(1&t&&(a.TgZ(0,"div",1),a.ALo(1,"async"),a.YNc(2,c,2,1,"ng-container",2),a.ALo(3,"async"),a.qZA()),2&t){const t=a.oxw();a.ekj("t-message-text_light","onDark"===a.lcZ(1,6,t.mode$)),a.Q6J("@tuiFadeIn",t.animation)("@tuiHeightCollapse",t.animation),a.xp6(2),a.Q6J("polymorpheusOutlet",t.error.message||a.lcZ(3,8,t.defaultErrorMessage$))("polymorpheusOutletContext",t.error.context||a.DdM(10,d))}}let p=(()=>{class t{constructor(t,e,n){this.animation=t,this.mode$=e,this.defaultErrorMessage$=n,this.error=null,this.visible=!0}set errorSetter(t){this.error=(0,i.Ajw)(t)?new i.T8v(t):t}onAnimation(t){this.visible=t}}return t.ɵfac=function(e){return new(e||t)(a.Y36(s.Pw),a.Y36(s.Au),a.Y36(s.PL))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-error"]],hostBindings:function(t,e){1&t&&a.NdJ("animationcancel.self",(function(){return e.onAnimation(!1)}))("animationstart.self",(function(){return e.onAnimation(!0)}))},inputs:{errorSetter:["error","errorSetter"]},features:[a._Bn([o.CV])],decls:1,vars:1,consts:[["automation-id","tui-error__text","class","t-message-text",3,"t-message-text_light",4,"ngIf"],["automation-id","tui-error__text",1,"t-message-text"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&a.YNc(0,h,4,11,"div",0),2&t&&a.Q6J("ngIf",e.error&&e.visible)},directives:[l.O5,u.Li],pipes:[l.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);display:block;color:var(--tui-negative);word-wrap:break-word;animation:tuiPresent 1s infinite}.t-message-text[_ngcontent-%COMP%]{margin-top:.25rem;white-space:pre-line}.t-message-text_light[_ngcontent-%COMP%]{color:var(--tui-negative-night)}"],data:{animation:[r.eu,r.QF]},changeDetection:0}),t})()},9975:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(74788);let r=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiExpandContent",""]]}),t})()},2793:(t,e,n)=>{n.d(e,{S:()=>g});var i=n(74788),r=n(42600),o=n(46797),s=n(46782),a=n(9975),l=n(12057),u=n(57634);const c=["wrapper"];function d(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 h(t,e){if(1&t&&(i.ynx(0),i.Hsn(1),i.YNc(2,d,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 p=["*"];let g=(()=>{class t{constructor(t,e){this.cdr=t,this.destroy$=e,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,(0,o.H)(0).pipe((0,s.R)(this.destroy$)).subscribe((()=>{2===this.state&&(this.state=t,this.cdr.markForCheck())}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(r.a31,2))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-expand"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,a.I,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(c,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"]},features:[i._Bn([r.a31])],ngContentSelectors:p,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,h,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:[l.O5,u.k,l.tP],styles:['[_nghost-%COMP%]{transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;opacity:0;transition-delay:1ms}._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:[r.KxC]},changeDetection:0}),t})()},20690:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(42600),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=r.Xpm({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-group-styles"],decls:0,vars:0,template:function(t,e){},styles:[".tui-group{position:relative;display:flex;isolation:isolate}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group.tui-group>*:nth-child(n){border-radius:0}.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})(),s=(()=>{class t{constructor(t){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m",t.addComponent(o)}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)(r.Y36(i.gHG))},t.ɵdir=r.lG2({type:t,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(t,e){2&t&&r.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})()},53620:(t,e,n)=>{n.d(e,{J:()=>p});var i=n(74788),r=n(42600),o=n(48874),s=n(46782),a=n(12057),l=n(55788),u=n(89570);function c(t,e){1&t&&i.GkF(0)}const d=function(t){return{$implicit:t}};function h(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,c,1,0,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),i.xp6(1),i.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",i.VKq(4,d,t))}}let p=(()=>{class t{constructor(t,e,n){this.hints$=t,this.destroy$=e,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe((0,s.R)(this.destroy$)).subscribe((t=>{this.hints=t,this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(o.BN),i.Y36(r.a31,2),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[i._Bn([r.a31])],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&&i.YNc(0,h,2,6,"div",0),2&t&&i.Q6J("ngForOf",e.hints)},directives:[a.sg,l.e,u.Li],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[r.KxC]}}),t})()},55863:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(74788),r=n(59890);let o=(()=>{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})()},93529:(t,e,n)=>{n.d(e,{l:()=>u});var i=n(42600),r=n(29883),o=n(45435),s=n(46782),a=n(41524),l=n(74788);let u=(()=>{class t{constructor(t,e,n,i){null==i||i.tuiDropdownOpenChange.pipe((0,o.h)((t=>t&&i.dropdown===n&&!e.focused)),(0,s.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)(l.Y36(i.a31,2),l.Y36(a.p),l.Y36(r.td,2),l.Y36(r.oH,8))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[l._Bn([i.a31])]}),t})()},98778:(t,e,n)=>{n.d(e,{o:()=>B});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(12174),l=n(1585),u=n(30126),c=n(26215),d=n(9112),h=n(25917),p=n(59193),g=n(66682),m=n(88002),f=n(43190),v=n(87874),b=n(13653),y=n(87519),_=n(9945),C=n(55863),w=n(41524);let x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();var M=n(42486),O=n(93529),k=n(82335),S=n(80475),P=n(30416),T=n(80017),A=n(55788),E=n(41578),I=n(89570),D=n(12057);const L=["wrapper"];function F(t,e){if(1&t&&(r.TgZ(0,"div",8),r._uU(1),r.qZA()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}const N=function(t,e){return{$implicit:t,close:e}};function z(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",5,6),r.NdJ("keydown",(function(e){return r.CHM(t),r.oxw(2).onKeydown(e)})),r.YNc(2,F,2,1,"div",7),r.qZA(),r._UZ(3,"div")}if(2&t){r.oxw();const t=r.MAs(1),e=r.oxw();r.xp6(2),r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",r.WLB(2,N,t,e.close))}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",1,2),r.NdJ("tuiActiveZoneChange",(function(e){return r.CHM(t),r.oxw().onActiveZone(e)}))("tuiObscured",(function(e){return r.CHM(t),r.oxw().onHostObscured(e)})),r.Hsn(2),r.YNc(3,z,4,5,"ng-template",3,4,r.W1O),r.qZA()}if(2&t){const t=e.tuiLet,n=r.MAs(4),i=r.oxw();r.Q6J("tuiDropdown",n)("tuiDropdownManual",t&&i.canOpen)("tuiDropdownSided",i.sided)("tuiObscuredEnabled",t),r.xp6(3),r.Q6J("polymorpheus",i.context)}}class B{constructor(t,e){this.hover$=t,this.el=e,this.openChange$=new c.X(!1),this.hostHover$=(0,d.aj)([(0,o.mLY)(this.el.nativeElement,"mouseover").pipe((0,m.U)((t=>this.computedHost.contains((0,o.mAU)(t)))),(0,f.w)((t=>{var e,n;return(0,h.of)(t).pipe((0,v.g)((t?null===(e=this.hover$)||void 0===e?void 0:e.showDelay:null===(n=this.hover$)||void 0===n?void 0:n.hideDelay)||0))}))),this.hover$||p.E]).pipe((0,m.U)((([t,e])=>t&&e))),this.sided=!1,this.canOpen=!0,this.open$=(0,g.T)(this.openChange$,this.hostHover$).pipe((0,b.T)(1),(0,y.x)(),(0,_.B)()),this.focusedChange=new r.vpe,this.openChange=this.openChange$,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,o.dTd)(this.host)?this.host:(0,o.BWF)({initial:this.host,root:this.el.nativeElement})}get focused(){return(0,o.zb4)(this.host)||this.open&&!!this.wrapper&&(0,o.zb4)(this.wrapper.nativeElement)}onFocusInOut(){this.el.nativeElement.classList.toggle("_hosted_dropdown_focused",this.focused)}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.preventDefault(),this.closeDropdown()}onArrow(t,e){this.focusDropdown(t,e)}onKeydown({key:t,target:e,defaultPrevented:n}){!n&&(0,l.kL)(t)&&this.hostEditable&&(0,o.dWV)(e)&&!(0,o.Hnx)(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,o.Hnx)(this.computedHost)}focusDropdown(t,e){const n=this.nativeFocusableElement;if(!(n&&(0,o.dWV)(n)&&(0,o.veZ)(t.target)&&n.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&(0,o.dWV)(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void((0,o.Hnx)(n)||t.preventDefault());const i=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=(0,o.BWF)({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)}}B.ɵfac=function(t){return new(t||B)(r.Y36(a.E$,10),r.Y36(r.SBq))},B.ɵcmp=r.Xpm({type:B,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,x,5,r.SBq),2&t){let t;r.iGM(t=r.CRH())&&(e.dropdownHost=t.first)}},viewQuery:function(t,e){if(1&t&&(r.Gf(L,5,r.SBq),r.Gf(a.td,5),r.Gf(o.eJF,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.wrapper=t.first),r.iGM(t=r.CRH())&&(e.dropdownDirective=t.first),r.iGM(t=r.CRH())&&(e.activeZone=t.first)}},hostBindings:function(t,e){1&t&&r.NdJ("focusin.capture.silent",(function(){return e.onFocusInOut()}))("focusout.capture.silent",(function(){return e.onFocusInOut()}))("focusin",(function(t){return e.onFocusIn(t.target)}))("click",(function(t){return e.onClick(t.target)}))("keydown.silent.capture",(function(t){return e.onKeyDownEsc(t)}),!1,r.evT)("keydown.arrowDown",(function(t){return e.onArrow(t,!0)}))("keydown.arrowUp",(function(t){return e.onArrow(t,!1)}))},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[r._Bn([(0,o.FTc)(B),{provide:C.z,deps:[[new r.FiY,new r.PiD,s.uG]],useFactory:t=>null==t?void 0:t[0]},{provide:w.p,useExisting:B}])],ngContentSelectors:["*"],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",""],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,R,5,5,"div",0),r.ALo(1,"async")),2&t){let t;r.Q6J("tuiLet",null!==(t=r.lcZ(1,1,e.open$))&&void 0!==t?t:e.openChange.value)}},directives:[M.L,C.z,O.l,k.t,S.V,P.T,T.C,A.e,E.z,I.GL,I.Li],pipes:[D.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%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}"],changeDetection:0}),(0,i.gn)([(0,u.uX)((function(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)}))],B.prototype,"onKeyDownEsc",null)},41524:(t,e,n)=>{n.d(e,{p:()=>i});const i=new(n(74788).OlP)("[TUI_HOSTED_DROPDOWN_COMPONENT]")},73460:(t,e,n)=>{n.d(e,{V:()=>m});var i=n(74788),r=n(42600),o=n(73784),s=n(15837),a=n(66682),l=n(88002),u=n(12057),c=n(77825);const d=["tuiLink",""];function h(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}function p(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}const g=["*"];let m=(()=>{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,a.T)((0,r.mLY)(this.el.nativeElement,"focusin").pipe((0,l.U)(r.YeN)),(0,r.mLY)(this.el.nativeElement,"focusout").pipe((0,l.U)(r.IyD))),n.subscribe((t=>{this.focusVisible=t}))}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return(0,r.V8W)(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(s.Au),i.Y36(r.kuj))},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,r.FTc)(t),r.kuj,r.a31,o.CV])],attrs:d,ngContentSelectors:g,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,h,1,1,"tui-svg",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,1,1,"tui-svg",2)),2&t&&(i.Q6J("ngIf",e.iconAlignLeft),i.xp6(3),i.Q6J("ngIf",e.iconAlignRight))},directives:[u.O5,c.P],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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})()},57634:(t,e,n)=>{n.d(e,{k:()=>p});var i=n(12057),r=n(74788),o=n(42600),s=n(1585),a=n(34474),l=n(89570);function u(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 c(t,e){if(1&t&&(r.O4$(),r.kcU(),r.TgZ(0,"div",6),r.YNc(1,u,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 d(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,c,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 h=["*"];let p=(()=>{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,o.Exm)(this.el.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&(0,o.hpv)(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!(0,s.R9)(this.size)}get focused(){return(0,o.zb4)(this.el.nativeElement)}}return t.ɵfac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(o.FAH),r.Y36(a.vI))},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:h,decls:3,vars:7,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,d,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.uIk("inert",e.loading||null),r.xp6(2),r.Q6J("ngIf",e.loading))},directives:[i.O5,l.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;min-width:1.5rem}._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})()},34474:(t,e,n)=>{n.d(e,{vI:()=>i});const i=(0,n(42600).JN4)({size:"m",inheritColor:!1,overlay:!1})},48236:(t,e,n)=>{n.d(e,{L:()=>m});var i=n(74788),r=n(42600),o=n(15837),s=n(12057),a=n(77825),l=n(89570),u=n(18289);function c(t,e){if(1&t&&i._UZ(0,"tui-svg",5),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const d=function(t){return{$implicit:t}};function h(t,e){if(1&t&&(i.ynx(0),i.YNc(1,c,1,1,"tui-svg",4),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",i.VKq(2,d,t.status))}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",6),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 g=["*"];let m=(()=>{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.fwO)(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"],["a","tuiNotification",""],["button","tuiNotification",""]],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:g,decls:5,vars:3,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__more",1,"t-more",3,"src"],["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,h,2,4,"ng-container",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,4,"button",2),i._UZ(4,"tui-svg",3)),2&t&&(i.Q6J("ngIf",e.icon&&e.hasIcon),i.xp6(3),i.Q6J("ngIf",e.hasClose),i.xp6(1),i.Q6J("src",e.icons.more))},directives:[s.O5,a.P,l.Li,u.v],pipes:[s.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}[_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{display:none}button[_nghost-%COMP%], a[_nghost-%COMP%]{border:none;cursor:pointer}button[_nghost-%COMP%] .t-more[_ngcontent-%COMP%], a[_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{display:inline-flex;color:var(--tui-text-01);opacity:.5}[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=s][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem 0}[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=m][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem 0}[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-size=l][_nghost-%COMP%] .t-more[_ngcontent-%COMP%]{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-break:break-word;color:var(--tui-text-01);text-align:left;align-self:center}"],changeDetection:0}),t})()},23761:(t,e,n)=>{n.d(e,{A:()=>k});var i=n(74788),r=n(42600),o=n(50035),s=n(27907),a=n(5938),l=n(15837),u=n(12057),c=n(42486),d=n(46648),h=n(11108),p=n(9092),g=n(65566),m=n(99766),f=n(2579);function v(t,e){if(1&t&&i._UZ(0,"div",3),2&t){const t=e.$implicit;i.Q6J("textContent",t)}}function b(t,e){if(1&t&&i._UZ(0,"div",14),2&t){const t=i.oxw().ngIf;i.Udp("background-color",(null==t?null:t[1])||"")}}function y(t,e){if(1&t&&(i.TgZ(0,"div",13),i._UZ(1,"div",14),i.YNc(2,b,1,2,"div",15),i.qZA()),2&t){const t=e.ngIf;i.xp6(1),i.Udp("background-color",null==t?null:t[0]),i.xp6(1),i.Q6J("ngIf",t.length>1)}}const _=function(t,e,n,i,r){return[t,e,n,i,r]};function C(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",10),i.NdJ("click",(function(){i.CHM(t);const e=i.oxw().tuiLet;return i.oxw(4).onItemClick(e)}))("tuiHoveredChange",(function(e){i.CHM(t);const n=i.oxw().tuiLet;return i.oxw(4).onItemHovered(e&&n)}))("tuiPressedChange",(function(e){i.CHM(t);const n=i.oxw().tuiLet;return i.oxw(4).onItemPressed(e&&n)})),i.TgZ(1,"div",11),i.ALo(2,"tuiMapper"),i._uU(3),i.YNc(4,y,3,3,"div",12),i.ALo(5,"tuiMapper"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw().tuiLet,e=i.oxw(4);i.ekj("t-cell_interval",e.itemIsInterval(t))("t-cell_today",e.itemIsToday(t))("t-cell_unavailable",e.itemIsUnavailable(t)),i.uIk("data-range",e.getItemRange(t))("data-state",e.getItemState(t)),i.xp6(1),i.ekj("t-item_unavailable",e.itemIsUnavailable(t)),i.uIk("data-type",i.xi3(2,13,t,e.dayTypeHandler)),i.xp6(2),i.hij(" ",t.day," "),i.xp6(1),i.Q6J("ngIf",i.G7q(5,16,i.qbA(22,_,t,e.toMarkers,e.itemIsToday(t),!!e.getItemRange(t),e.markerHandler)))}}function w(t,e){if(1&t&&(i.ynx(0),i.YNc(1,C,6,28,"div",9),i.BQk()),2&t){const t=e.tuiLet,n=i.oxw(4);i.xp6(1),i.Q6J("ngIf",!n.itemIsUnavailable(t)||n.showAdjacent)}}function x(t,e){if(1&t&&(i.ynx(0),i.YNc(1,w,2,1,"ng-container",8),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit,r=i.oxw().tuiLet;i.xp6(1),i.Q6J("tuiLet",r[n][t])}}function M(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,x,2,1,"ng-container",7),i.qZA()),2&t){const t=e.$implicit,n=i.oxw().tuiLet;i.xp6(1),i.Q6J("tuiRepeatTimesOf",n[t].length)}}function O(t,e){if(1&t&&(i.TgZ(0,"div",4),i.YNc(1,M,2,1,"div",5),i.qZA()),2&t){const t=e.tuiLet;i.xp6(1),i.Q6J("tuiRepeatTimesOf",t.length)}}let k=(()=>{class t{constructor(t,e){this.unorderedWeekDays$=t,this.dayTypeHandler=e,this.pressedItem=null,this.today=r.TU1.currentLocal(),this.month=r.qld.currentLocal(),this.disabledItemHandler=r.IyD,this.markerHandler=o.zE,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new i.vpe,this.dayClick=new i.vpe,this.toMarkers=(t,e,n,i)=>{if(e||n)return null;const r=i(t);return 0===r.length?null:r}}get isSingleDayRange(){return this.value instanceof r.VRe&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(t){const{disabledItemHandler:e,pressedItem:n,hoveredItem:i}=this;return e(t)?s.z.Disabled:(null==n?void 0:n.daySame(t))?s.z.Active:(null==i?void 0:i.daySame(t))?s.z.Hover:null}getItemRange(t){const{value:e,hoveredItem:n}=this;return e?e instanceof r.TU1?e.daySame(t)?a.q.Single:null:e instanceof r.VRe?e.from.daySame(t)&&!e.isSingleDay||(null==n?void 0:n.dayAfter(e.from))&&e.from.daySame(t)&&e.isSingleDay||(null==n?void 0:n.daySame(t))&&n.dayBefore(e.from)&&e.isSingleDay?a.q.Start:e.to.daySame(t)&&!e.isSingleDay||(null==n?void 0:n.dayBefore(e.from))&&e.from.daySame(t)&&e.isSingleDay||(null==n?void 0:n.daySame(t))&&n.dayAfter(e.from)&&e.isSingleDay?a.q.End:e.isSingleDay&&e.from.daySame(t)?a.q.Single:null:e.find((e=>e.daySame(t)))?a.q.Single:null:null}itemIsToday(t){return this.today.daySame(t)}itemIsUnavailable(t){return!this.month.monthSame(t)}itemIsInterval(t){const{value:e,hoveredItem:n}=this;if(!(e instanceof r.VRe))return!1;if(!e.isSingleDay)return e.from.daySameOrBefore(t)&&e.to.dayAfter(t);if(null===n)return!1;const i=r.VRe.sort(e.from,n);return i.from.daySameOrBefore(t)&&i.to.dayAfter(t)}onItemHovered(t){this.updateHoveredItem(t||null)}onItemPressed(t){this.pressedItem=t||null}onItemClick(t){this.dayClick.emit(t)}updateHoveredItem(t){(0,r.J$k)(this.hoveredItem,t,((t,e)=>t.daySame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(l.P),i.Y36(l.rJ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_single",e.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],["id","date-rows",4,"tuiLet"],[1,"t-cell",3,"textContent"],["id","date-rows"],["automation-id","tui-primitive-calendar__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"tuiLet"],["automation-id","tui-primitive-calendar__cell","class","t-cell",3,"t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange","tuiPressedChange",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],["automation-id","tui-primitive-calendar__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"backgroundColor",4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,v,1,1,"div",1),i.ALo(2,"async"),i.ALo(3,"tuiOrderWeekDays"),i.qZA(),i.YNc(4,O,2,1,"div",2),i.ALo(5,"tuiCalendarSheet")),2&t&&(i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,i.lcZ(3,4,e.unorderedWeekDays$))),i.xp6(3),i.Q6J("tuiLet",i.xi3(5,6,e.month,!0)))},directives:[u.sg,c.L,d.X,u.O5,h.c,p.n],pipes:[u.Ov,g.q,m.h,f.c],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0}),t})()},38586:(t,e,n)=>{n.d(e,{Y2:()=>s});var i=n(42600),r=n(92444);const o={size:"m",appearances:{unchecked:r.N.Outline,checked:r.N.Primary,indeterminate:r.N.Primary},icons:{checked:({$implicit:t})=>"m"===t?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>"m"===t?"tuiIconMinus":"tuiIconMinusLarge"}},s=(0,i.JN4)(o)},87605:(t,e,n)=>{n.d(e,{r:()=>d});var i=n(38586),r=n(74788),o=n(42),s=n(89570),a=n(77825);function l(t,e){if(1&t&&r._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet,n=r.oxw();r.ekj("t-mark_on",!n.empty),r.Q6J("src",t)}}const u=function(t){return{$implicit:t}},c=["*"];let d=(()=>{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)(r.Y36(i.Y2))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("data-size",e.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:c,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&&(r.F$t(),r.TgZ(0,"div",0),r.YNc(1,l,1,3,"tui-svg",1),r.Hsn(2),r.qZA()),2&t&&(r.Q6J("active",e.pressed)("appearance",e.appearance)("disabled",e.disabled)("focus",e.focused)("hover",e.hovered)("invalid",e.invalid),r.xp6(1),r.Q6J("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",r.VKq(8,u,e.size)))},directives:[o.o,s.Li,a.P],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})()},10259:(t,e,n)=>{n.d(e,{a:()=>c});var i=n(74788),r=n(42600),o=n(15837),s=n(12057),a=n(18289);function l(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"button",1),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onLeftClick()})),i.qZA(),i.TgZ(2,"span",2),i.Hsn(3),i.qZA(),i.TgZ(4,"button",3),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onRightClick()})),i.qZA(),i.BQk()}if(2&t){const t=e.ngIf,n=i.oxw();i.xp6(1),i.ekj("t-hidden",n.leftComputedDisabled),i.Q6J("focusable",n.computedFocusable)("icon",n.icons.decrement)("title",t[0]),i.xp6(3),i.ekj("t-hidden",n.rightComputedDisabled),i.Q6J("focusable",n.computedFocusable)("icon",n.icons.increment)("title",t[1])}}const u=["*"];let c=(()=>{class t extends r.XnQ{constructor(t,e,n){super(),this.el=t,this.icons=e,this.spinTexts$=n,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new i.vpe,this.rightClick=new i.vpe}get focused(){return(0,r.zb4)(this.el.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(o.oC),i.Y36(o.U4))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(t,e){1&t&&i.NdJ("mousedown.silent.prevent",(function(){return 0}))("keydown.arrowLeft.prevent",(function(){return e.onLeftClick()}))("keydown.arrowRight.prevent",(function(){return e.onRightClick()}))("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[i.qOj],ngContentSelectors:u,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-primitive-spin-button__left","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-primitive-spin-button__right","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,l,5,10,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.spinTexts$))},directives:[s.O5,a.v],pipes:[s.Ov],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:bold}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0}),t})()},75526:(t,e,n)=>{n.d(e,{y:()=>R});var i=n(97582),r=n(74788),o=n(42600),s=n(25715),a=n(20735),l=n(1585),u=n(89570),c=n(22759),d=n(88002),h=n(12057),p=n(42),g=n(13080),m=n(93604),f=n(24751),v=n(63973),b=n(57971),y=n(77825),_=n(63360);const C=["focusableElement"];function w(t,e){1&t&&r.GkF(0)}function x(t,e){1&t&&r.GkF(0)}function M(t,e){1&t&&(r.TgZ(0,"div",17),r.Hsn(1,2),r.qZA())}function O(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}const k=function(t){return{$implicit:t}};function S(t,e){if(1&t&&(r.TgZ(0,"div",18),r.YNc(1,O,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,k,t.size))}}function P(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 T(t,e){if(1&t&&r._UZ(0,"tui-svg",24),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function A(t,e){if(1&t&&(r.TgZ(0,"div",22),r.YNc(1,T,1,1,"tui-svg",23),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.controller.customContent)}}function E(t,e){if(1&t&&r._UZ(0,"tui-svg",27),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function I(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,E,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,k,t.size))}}function D(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 L(t,e){if(1&t&&r._UZ(0,"tui-svg",20),2&t){const t=e.polymorpheusOutlet;r.Q6J("src",t)}}function F(t,e){if(1&t&&(r.TgZ(0,"div",29),r.YNc(1,L,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,k,t.size))}}const N=[[["input"]],[["select"]],[["tuiContent"]],"*"],z={s:1.25,m:1.75,l:2.25};class R extends o.XnQ{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,o.zb4)(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,l._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,c.R)(t,"scroll").pipe((0,d.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)}detectRetargetFromLabel(t){(0,o.UPZ)(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return z[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)}}R.ɵfac=function(t){return new(t||R)(r.Y36(a.Cs),r.Y36(s.bZ,8),r.Y36(a.z1),r.Y36(r.SBq))},R.ɵcmp=r.Xpm({type:R,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.content=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(C,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,o.FTc)(R),a.Y0]),r.qOj],ngContentSelectors:["input","select","tuiContent","*"],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(N),r.YNc(0,w,1,0,"ng-container",0),r.ALo(1,"async"),r.YNc(2,x,1,0,"ng-container",0),r.ALo(3,"async"),r.TgZ(4,"div",1),r.NdJ("click.prevent.silent",(function(t){return e.detectRetargetFromLabel(t)}))("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,M,2,0,"div",4),r.TgZ(11,"div",5),r.YNc(12,S,2,4,"div",6),r.TgZ(13,"div",7),r.YNc(14,P,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,A,2,1,"div",13),r.YNc(21,I,2,4,"span",14),r.YNc(22,D,1,2,"tui-tooltip",15),r.YNc(23,F,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:[h.O5,p.o,g.G,m.j,f.Fj,f.JJ,f.On,v.t,b.Z,u.Li,y.P,_.w],pipes:[h.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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{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%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-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)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.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._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)([o.UMq],R.prototype,"getIndent$",null)},19042:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(59890),r=n(15837),o=n(75526),s=n(74788);let a=(()=>{class t extends i.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)(s.Y36(o.y))},t.ɵdir=s.lG2({type:t,selectors:[["tui-primitive-textfield"]],features:[s._Bn([(0,r.cp)(t)]),s.qOj]}),t})()},52846:(t,e,n)=>{n.d(e,{M:()=>l});var i=n(74788),r=n(42600),o=n(29883),s=n(15837);const a=["tuiTextfield",""];let l=(()=>{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)(i.Y36(s.S0),i.Y36(o.Cs),i.Y36(i.SBq),i.Y36(r.llV),i.Y36(s.sf,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("input",(function(t){return!e.legacyMask&&e.host.onValueChange(t.target.value)})),2&t&&(i.Ikx("tabIndex",e.host.focusable?0:-1)("readOnly",e.host.readOnly)("value",e.host.value),i.uIk("id",e.id)("inputMode",e.inputMode)("aria-invalid",e.host.invalid)("disabled",e.host.disabled||null))},features:[i._Bn([o.Y0])],attrs:a,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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-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})()},57971:(t,e,n)=>{n.d(e,{Z:()=>p});var i=n(74788),r=n(42600),o=n(92444),s=n(26215),a=n(66682),l=n(87874),u=n(45435),c=n(88002),d=n(87519);const h=["pre"];let p=(()=>{class t{constructor(t,e){this.textfield=t,this.fontsReady$=e,this.prefix$=new s.X(""),this.pre$=(0,a.T)(this.fontsReady$,this.prefix$).pipe((0,l.g)(0),(0,u.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,d.x)())}get isContextTable(){return this.textfield.appearance===o.N.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)(i.Y36(r.KZI),i.Y36(r.tSu))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,7,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.pre=t.first)}},hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("animationstart",(function(){return e.ngDoCheck()})),2&t&&i.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&&(i._UZ(0,"span",0,1),i._UZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4)),2&t&&(i.Q6J("textContent",e.prefix),i.xp6(2),i.Q6J("textContent",e.value),i.xp6(1),i.Q6J("textContent",e.filler),i.xp6(1),i.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})()},46109:(t,e,n)=>{n.d(e,{T:()=>m});var i=n(74788),r=n(42600),o=n(27907),s=n(5938),a=n(46648),l=n(42486),u=n(78273),c=n(11108),d=n(9092);function h(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",4),i.NdJ("click",(function(){const e=i.CHM(t).tuiLet;return i.oxw(3).onItemClick(e)}))("tuiHoveredChange",(function(e){const n=i.CHM(t).tuiLet;return i.oxw(3).onItemHovered(e,n)}))("tuiPressedChange",(function(e){const n=i.CHM(t).tuiLet;return i.oxw(3).onItemPressed(e,n)})),i.TgZ(1,"div",5),i._uU(2),i.qZA(),i.qZA()}if(2&t){const t=e.tuiLet,n=i.oxw(3);i.ekj("t-cell_interval",n.itemIsInterval(t))("t-cell_today",n.itemIsToday(t)),i.Q6J("tuiScrollIntoView",n.scrollItemIntoView(t)),i.uIk("data-range",n.getItemRange(t))("data-state",n.getItemState(t)),i.xp6(2),i.Oqu(t)}}function p(t,e){if(1&t&&(i.ynx(0),i.YNc(1,h,3,8,"div",3),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit,r=i.oxw();i.xp6(1),i.Q6J("tuiLet",r.getItem(n,t))}}function g(t,e){1&t&&(i.TgZ(0,"div",1),i.YNc(1,p,2,1,"ng-container",2),i.qZA()),2&t&&(i.xp6(1),i.Q6J("tuiRepeatTimesOf",4))}let m=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=r.qld.currentLocal().year,this.value=null,this.initialItem=r.qld.currentLocal(),this.min=r.nNo,this.max=r.OyN,this.disabledItemHandler=r.IyD,this.yearClick=new i.vpe}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/4)}get calculatedMin(){const t=this.initialItem.year-100,e=this.computedMin;return e.year>t?e.year:t}get calculatedMax(){const t=this.initialItem.year+100,e=this.computedMax;return e.yeare.from.year&&e.from.year===t&&e.from.yearSame(e.to)||null!==n&&n===t&&ne.from.year&&e.from.yearSame(e.to)?s.q.End:e.from.yearSame(e.to)&&e.from.year===t?s.q.Single:null:e.find((e=>e.year===t))?s.q.Single:null}itemIsToday(t){return this.currentYear===t}itemIsInterval(t){const{value:e,hoveredItem:n}=this;return!(null===e||!this.isRange(e))&&(e.from.yearSame(e.to)?null!==n&&e.from.year!==n&&(0,r.wfT)(t,Math.min(e.from.year,n),Math.max(e.from.year,n)):e.from.year<=t&&e.to.year>t)}onItemHovered(t,e){this.updateHoveredItem(t,e)}onItemPressed(t,e){this.updatePressedItem(t,e)}onItemClick(t){this.yearClick.emit(new r.F4U(t))}updateHoveredItem(t,e){this.hoveredItem=t?e:null}updatePressedItem(t,e){this.pressedItem=t?e:null}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_single",e.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","t-cell",3,"t-cell_interval","t-cell_today","tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"t-cell",3,"tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(t,e){1&t&&i.YNc(0,g,2,1,"div",0),2&t&&i.Q6J("tuiRepeatTimesOf",e.rows)},directives:[a.X,l.L,u.M,c.c,d.n],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0}),t})()},6226:(t,e,n)=>{n.d(e,{G:()=>C});var i=n(12057),r=n(42600),o=n(48874),s=n(15837),a=n(9112),l=n(25917),u=n(88002),c=n(54395),d=n(74788),h=n(84651),p=n(73186),g=n(68646),m=n(29529),f=n(53620),v=n(36378);function b(t,e){1&t&&d._UZ(0,"tui-scroll-controls",2)}const y=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],_=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let C=(()=>{class t{constructor(t,e,n,i,r,o,s,d,h){var p;this.reducedMotion=t,this.duration=e,this.dialogs=n,this.isMobile=i,this.breakpoint=r,this.isIOS=o,this.isAndroid=s,this.isMobileRes$=this.breakpoint.pipe((0,u.U)((t=>"mobile"===t))),this.scrollbars$=this.dialogs.length&&!this.isMobile?(0,a.aj)([...this.dialogs]).pipe((0,u.U)((t=>!t.some((({length:t})=>t)))),(0,c.b)(0)):(0,l.of)(!this.isMobile),null===(p=d.defaultView)||void 0===p||p.document.body.setAttribute("data-tui-theme",h.toLowerCase())}}return t.ɵfac=function(e){return new(e||t)(d.Y36(s.TK),d.Y36(s.dx),d.Y36(r.qYI),d.Y36(r.fLQ),d.Y36(o.zE),d.Y36(r.FAH),d.Y36(r.XGT),d.Y36(i.K0),d.Y36(s.r2))},t.ɵcmp=d.Xpm({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.70.0"],hostVars:9,hostBindings:function(t,e){1&t&&d.NdJ("touchstart.passive.silent",(function(){return 0}))("$.class._mobile",(function(){return e.isMobileRes$})),2&t&&(d.Ikx("$.class._mobile",e.isMobileRes$),d.Udp("--tui-duration",e.duration,"ms"),d.ekj("_ios",e.isIOS)("_android",e.isAndroid)("_reduced-motion",e.reducedMotion))},ngContentSelectors:_,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&&(d.F$t(y),d.YNc(0,b,1,0,"tui-scroll-controls",0),d.ALo(1,"async"),d._UZ(2,"tui-svg-defs-host"),d.TgZ(3,"tui-dropdown-host"),d.TgZ(4,"div",1),d.Hsn(5),d.qZA(),d.Hsn(6,1),d._UZ(7,"tui-dialog-host"),d.Hsn(8,2),d._UZ(9,"tui-alert-host"),d.Hsn(10,3),d.qZA(),d.Hsn(11,4),d._UZ(12,"tui-hints-host"),d.Hsn(13,5)),2&t&&d.Q6J("ngIf",d.lcZ(1,1,e.scrollbars$))},directives:[i.O5,h.M,p.q,g.T,m.f,f.J,v.t],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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})()},49229:(t,e,n)=>{n.d(e,{IB:()=>i.I,Jy:()=>a}),n(84714),n(50035);var i=n(96281),r=n(12057),o=n(42600),s=n(74788);let a=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=s.oAB({type:t}),t.ɵinj=s.cJS({imports:[[r.ez,o.eI3]]}),t})()},84714:(t,e,n)=>{n(42600)},96281:(t,e,n)=>{n.d(e,{I:()=>c});var i=n(74788),r=n(62579),o=n(42600),s=n(12057),a=n(36378);function l(t,e){1&t&&i._UZ(0,"tui-scroll-controls",2)}const u=["*"];let c=(()=>{class t{constructor(t,e,n,r){this.cssRef=t,this.el=e,this.userAgent=n,this.isIos=r,this.isLegacy=!this.cssRef.supports("position","sticky")||(0,o.oKA)(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new i.SBq(this.el.nativeElement)}get delegated(){return this.browserScrollRef.nativeElement!==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.browserScrollRef.nativeElement=t}scrollIntoView(t){var e;if(this.delegated)return;const{nativeElement:n}=this.browserScrollRef,{offsetTop:i,offsetLeft:r}=(0,o.YXZ)(n,t),{clientHeight:s,clientWidth:a}=n,{offsetHeight:l,offsetWidth:u}=t,c=i+l/2-s/2,d=r+u/2-a/2;null===(e=n.scrollTo)||void 0===e||e.call(n,d,c)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.ux),i.Y36(i.SBq),i.Y36(r.yZ),i.Y36(o.FAH))},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:o.$__,deps:[t],useFactory:({browserScrollRef:t})=>t}])],ngContentSelectors:u,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,l,1,0,"tui-scroll-controls",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()),2&t&&(i.Q6J("ngIf",e.showScrollbars),i.xp6(1),i.ekj("t-content_delegated",e.delegated))},directives:[s.O5,a.t],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;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:.375rem 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%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})()},30633:(t,e,n)=>{n.d(e,{U:()=>i});const i={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"}},26637:(t,e,n)=>{n.d(e,{$E:()=>a.$E,EI:()=>s}),n(30633),n(77825);var i=n(12057),r=n(42600),o=n(74788);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[i.ez,r.WDk]]}),t})();var a=n(38950)},38950:(t,e,n)=>{n.d(e,{$E:()=>c,_f:()=>d});var i=n(74788),r=n(42600),o=n(15837),s=n(2116),a=n(54487),l=n(30633);const u={iconsPlace:o.xp,path:(0,s.ht)(o.xp),srcProcessor:a.y,contentProcessor:r.NJB,deprecated:t=>{const e=t.replace("Large","").replace("Outline",""),n=l.U[e];return n?`${e}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},c=(0,r.N1V)((()=>({iconsPlace:(0,i.f3M)(o.AA),path:(0,i.f3M)(o.ki),deprecated:u.deprecated,srcProcessor:(0,i.f3M)(o.V5),contentProcessor:(0,i.f3M)(o.u_)}))),d=new i.OlP("[TUI_SVG_SRC_INTERCEPTORS]")},77825:(t,e,n)=>{n.d(e,{P:()=>M});var i=n(97582),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(42600),u=n(50035),c=n(48874),d=n(15837),h=n(1585),p=n(74235),g=n(25917),m=n(43190),f=n(39761),v=n(5304),b=n(88002),y=n(38950),_=n(42486);function C(t,e){if(1&t&&o._UZ(0,"div",3),2&t){const t=o.oxw().tuiLet;o.Q6J("innerHTML",t,o.oJD)}}function w(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 x(t,e){if(1&t&&(o.ynx(0),o.YNc(1,C,1,1,"div",1),o.YNc(2,w,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)}}class M{constructor(t,e,n,i,r,o,s,a,u,c){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=u,this.baseHref=c,this.src$=new p.t(1),this.icon="",this.innerHTML$=this.src$.pipe((0,m.w)((()=>(0,l.Ajw)(this.icon)?this.isExternal?this.getExternalIcon(this.icon):(0,g.of)(this.getSafeHtml(this.icon)):(0,g.of)(this.icon))),(0,f.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,l.Ajw)(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!(0,l.Ajw)(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return(0,l.Wfd)(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(u.uJ,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return(0,l.Ajw)(this.icon)&&this.icon.replace(u.uJ,"").endsWith(".svg")}get isSrc(){return(0,l.Ajw)(this.icon)&&(0,h.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(u.qT,{bubbles:!0,detail:{message:t,icon:e}});this.el.nativeElement.dispatchEvent(n)}resolveName(t,e){return e(t,this.baseHref)}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,l.Ajw)(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,v.K)((()=>(this.onError("Failed to load external SVG"),(0,g.of)("")))),(0,b.U)((t=>this.sanitize(t.replace("{n.d(e,{Z:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t extends i.GM_{}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵcmp=r.Xpm({type:t,selectors:[["tui-theme-night"]],features:[r.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-shadow: 0 .25rem 1.5rem rgba(0, 0, 0, .12);--tui-shadow-hover: 0 .75rem 2.25rem rgba(0, 0, 0, .2);--tui-shadow-dropdown: 0 1.5rem 1rem rgba(0, 0, 0, .03), 0 .75rem .75rem rgba(0, 0, 0, .04), 0 .25rem .375rem rgba(0, 0, 0, .05);--tui-shadow-modal: 0 1.125rem 1.875rem rgba(0, 0, 0, .48);--tui-shadow-sidebar: .25rem 0 1.5rem rgba(0, 0, 0, .12);--tui-shadow-navigation: 0 .125rem 1rem rgba(0, 0, 0, .08);--tui-shadow-sheet: 0 -1rem 1.75rem rgba(0, 0, 0, .24)}tui-notification{--tui-base-01: #000}\n"],encapsulation:2,changeDetection:0}),t})()},63360:(t,e,n)=>{n.d(e,{w:()=>y});var i=n(42600),r=n(29883),o=n(73784),s=n(15837),a=n(46782),l=n(74788),u=n(42),c=n(13938),d=n(10406),h=n(63790),p=n(51928),g=n(44099),m=n(89570),f=n(77825),v=n(12057);function b(t,e){if(1&t&&l._UZ(0,"tui-svg",3),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}let y=(()=>{class t extends r.bZ{constructor(t,e,n,i){super(n),this.isMobile=i,this.mode=null,this.describeId="",e.pipe((0,a.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)(l.Y36(i.a31,2),l.Y36(s.Au),l.Y36(r.H3),l.Y36(i.fLQ))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tooltip"]],viewQuery:function(t,e){if(1&t&&l.Gf(r.t6,5),2&t){let t;l.iGM(t=l.CRH())&&(e.driver$=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("mousedown",(function(t){return e.stopOnMobile(t)})),2&t&&l.uIk("data-appearance",e.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[l._Bn([i.a31,o.CV]),l.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&&(l.TgZ(0,"span",0,1),l.ALo(2,"async"),l.YNc(3,b,1,1,"tui-svg",2),l.qZA()),2&t){const t=l.MAs(1);l.Q6J("hover",l.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),l.xp6(3),l.Q6J("polymorpheusOutlet",e.icon)}},directives:[u.o,c.D,d.x,h.t,p.D,g.$,m.Li,f.P],pipes:[v.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})()},50035:(t,e,n)=>{n.d(e,{oA:()=>o,uJ:()=>r,zE:()=>s,Jl:()=>a,hW:()=>h,Fw:()=>d,qT:()=>c,AJ:()=>g,R3:()=>p,fe:()=>u,Nq:()=>l});var i=n(42600);const r=`?v=${i.Mle}`,o=t=>t.includes(".svg#")?t:`#${t}`,s=()=>i.LZ8,a={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:i.f$6,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},l=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],u="tui-scroll-into-view",c="tui-icon-error",d=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"],h=/\d/,p=/\D+/g,g=/[ \-_()]/g},80475:(t,e,n)=>{n.d(e,{V:()=>s});var i=n(42600),r=n(59890),o=n(74788);let s=(()=>{class t extends r.FP{constructor(t,e,n){super(t,e,n),this.type="dropdown"}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a31,2),o.Y36(r.kk),o.Y36(r.c2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiDropdown",""]],features:[o._Bn([i.a31]),o.qOj]}),t})()},16843:(t,e,n)=>{n.d(e,{E:()=>g});var i=n(42600),r=n(59890),o=n(79765),s=n(66682),a=n(25917),l=n(43190),u=n(87874),c=n(68307),d=n(9945),h=n(36702),p=n(74788);let g=(()=>{class t extends r.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.hovered$=t,this.options=e,this.parentHover=n,this.toggle$=new o.xQ,this.stream$=(0,s.T)(this.toggle$,this.hovered$).pipe((0,l.w)((t=>(0,a.of)(t).pipe((0,u.g)(t?this.showDelay:this.hideDelay)))),(0,c.b)((t=>{this.hovered=t})),(0,d.B)()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(t){var e;null===(e=this.parentHover)||void 0===e||e.toggle(t),this.toggle$.next(t)}}return t.ɵfac=function(e){return new(e||t)(p.Y36(i.gsq),p.Y36(h.Mm),p.Y36(t,12))},t.ɵdir=p.lG2({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[p._Bn([(0,r.UK)(t),i.gsq]),p.qOj]}),t})()},36702:(t,e,n)=>{n.d(e,{Mm:()=>i});const i=(0,n(42600).JN4)({showDelay:200,hideDelay:500})},30416:(t,e,n)=>{n.d(e,{T:()=>s});var i=n(59890),r=n(26215),o=n(74788);let s=(()=>{class t extends i.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=o.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[o._Bn([(0,i.UK)(t)]),o.qOj,o.TTD]}),t})()},95880:(t,e,n)=>{n.d(e,{o:()=>r});var i=n(74788);let r=(()=>{class t{constructor(){this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new i.vpe}update(t){this.tuiDropdownOpen=t,this.tuiDropdownOpenChange.emit(t)}ngOnChanges(){var t;null===(t=this.dropdown)||void 0===t||t.toggle(this.tuiDropdownOpen)}}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},features:[i.TTD]}),t})()},16331:(t,e,n)=>{n.d(e,{vY:()=>a,fx:()=>l,Ek:()=>u});var i=n(74788),r=n(42600),o=n(2116);const s={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},a=(0,r.JN4)(s),l=t=>({provide:a,deps:[[new i.FiY,u],[new i.FiY,new i.tp0,a]],useFactory:(0,o.lp)(t,s)});let u=(()=>{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(a,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:a,useExisting:(0,i.Gpc)((()=>t))}])]}),t})()},80017:(t,e,n)=>{n.d(e,{C:()=>u});var i=n(42600),r=n(59890),o=n(15837),s=n(16331),a=n(62541),l=n(74788);let u=(()=>{class t extends r.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:r,width:o}=t,s=null!==(n=null===(e=this.vertical.accessor)||void 0===e?void 0:e.getClientRect())&&void 0!==n?n:i.Jy9,a=this.viewport.getClientRect(),{direction:l,minHeight:u,offset:c}=this.options,d="center"===this.options.align?"left":this.options.align,h={top:s.bottom-a.top,left:s.left-c-a.left,right:a.right-s.right-c,bottom:a.bottom-s.top},p={top:s.bottom-r+this.tuiDropdownSidedOffset+1,left:s.left-o-c,right:s.right+c,bottom:s.top-this.tuiDropdownSidedOffset-1},g=h.top>h.bottom?"top":"bottom",m=h[d]>o?p[d]:h.left>h.right?p.left:p.right;return h[this.previous]>u&&l||this.previous===g?[p[this.previous],m]:(this.previous=g,[p[g],m])}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.vY),l.Y36(o.EO),l.Y36(a.A))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[l._Bn([a.A,(0,r.P7)(t)]),l.qOj]}),t})()},62541:(t,e,n)=>{n.d(e,{A:()=>c});var i=n(97582),r=n(42600),o=n(59890),s=n(15837),a=n(82335),l=n(16331),u=n(74788);class c extends o.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;t||e||(this.previous=void 0);const o=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:r.Jy9,s=this.viewport.getClientRect(),{minHeight:a,align:l,direction:u,offset:c,limitWidth:d}=this.options,h={top:s.top-c,bottom:s.bottom+c,right:s.right-c,left:s.left+c},p=this.previous||u||"bottom",g={top:o.top-2*c-h.top,bottom:h.bottom-o.bottom-2*c},m="fixed"===d?o.width:t,f=Math.max(o.right-m,c),v=o.left+tg.bottom?"top":"bottom";return g[p]>a&&u||g[p]>e?[b[p],b[l]]:(this.previous=y,[b[y],b[l]])}get accessor(){return(0,o.Sv)("dropdown")(this.accessors,this.directive)}}c.ɵfac=function(t){return new(t||c)(u.Y36(l.vY),u.Y36(s.EO),u.Y36(o.O4),u.Y36(a.t))},c.ɵdir=u.lG2({type:c,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[u._Bn([(0,o.P7)(c)]),u.qOj]}),(0,i.gn)([r.UMq],c.prototype,"accessor",null)},40870:(t,e,n)=>{n.d(e,{n:()=>x});var i=n(74788),r=n(62579),o=n(42600),s=n(59890),a=n(31837),l=n(73784),u=n(48874),c=n(15837),d=n(88002),h=n(46782),p=n(82335),g=n(16843),m=n(16331),f=n(96281),v=n(55788),b=n(75984),y=n(11108),_=n(89570);function C(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 w=function(t){return{$implicit:t}};let x=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,u,c){this.directive=i,this.animation=r,this.el=o,this.accessor=s,this.win=a,this.mode$=l,this.options=u,this.hoverDirective=c,e.pipe((0,d.U)((e=>"fixed"===this.directive.position?t.correct(e):e)),(0,h.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(t){var e;null===(e=this.hoverDirective)||void 0===e||e.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,e){var n;const{style:i}=this.el.nativeElement,{right:r}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:s,minHeight:a,offset:l}=this.options,{innerHeight:u}=this.win,c=null===(n=this.el.nativeElement.offsetParent)||void 0===n?void 0:n.getBoundingClientRect(),{position:d}=this.directive,h=this.accessor.getClientRect(),p="fixed"===d?0:-((null==c?void 0:c.left)||0),g="fixed"===d?0:-((null==c?void 0:c.top)||0);t+=g;const m=(e+=p)h.left&&t=h.right;i.position=d,i.top=(0,o.O9r)(Math.max(t,g+l)),i.left=(0,o.O9r)(e),i.maxHeight=f?`${s}px`:(0,o.O9r)(Math.min(s,Math.max(m,a))),i.width="",i.minWidth="",this.updateWidth(h.width)}updateWidth(t){const{style:e}=this.el.nativeElement;switch(this.options.limitWidth){case"min":e.minWidth=(0,o.O9r)(t);break;case"fixed":e.width=(0,o.O9r)(t)}}moveFocusOutside(t){const{nativeElement:e}=this.directive.el,{ownerDocument:n}=e,i=n?n.body:e;let r=(0,o.BWF)({initial:e,root:i,previous:t});for(;null!==r&&e.contains(r);)r=(0,o.BWF)({initial:r,root:i,previous:t});null==r||r.focus()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(u.Lp),i.Y36(u.KG),i.Y36(o.a31,2),i.Y36(p.t),i.Y36(c.Pw),i.Y36(i.SBq),i.Y36(s.O4),i.Y36(r.m9),i.Y36(c.Au),i.Y36(m.vY),i.Y36(g.E,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-dropdown"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(i.uIk("data-appearance",e.options.appearance),i.d8E("@tuiDropdownAnimation",e.animation))},features:[i._Bn([o.a31,u.KG,(0,s.ei)("dropdown"),(0,s.Wk)("dropdown",p.t),l.CV])],decls:5,vars:4,consts:[["tuiActiveZone","","tuiOverscroll","all",1,"t-scroll",3,"tuiHoveredChange"],["activeZone","tuiActiveZone"],["tabindex","0",3,"focus"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-scrollbar",0,1),i.NdJ("tuiHoveredChange",(function(t){return e.onHoveredChange(t)})),i.TgZ(2,"div",2),i.NdJ("focus",(function(){return e.onTopFocus()})),i.qZA(),i.YNc(3,C,2,1,"div",3),i.TgZ(4,"div",2),i.NdJ("focus",(function(){return e.onBottomFocus()})),i.qZA(),i.qZA()),2&t){const t=i.MAs(1);i.xp6(3),i.Q6J("polymorpheusOutlet",e.directive.content)("polymorpheusOutletContext",i.VKq(2,w,t))}},directives:[f.I,v.e,b.W,y.c,_.Li],styles:['[_nghost-%COMP%]{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}.ng-animating[_nghost-%COMP%]{pointer-events:none}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}[data-mode=onDark][_nghost-%COMP%]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll[_ngcontent-%COMP%]{flex-grow:1;max-width:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}'],data:{animation:[a.i9]}}),t})()},82335:(t,e,n)=>{n.d(e,{t:()=>g});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(2116),l=n(89570),u=n(79765),c=n(43219),d=n(46782),h=n(6008),p=n(95880);class g{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 u.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,c.p)(0),(0,d.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,a.qK)(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngAfterViewInit(){this.open&&this.toggle(this.open.tuiDropdownOpen)}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.update(!0)):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,null===(n=this.open)||void 0===n||n.update(!1))}}g.ɵfac=function(t){return new(t||g)(r.Y36(o.a31,2),r.Y36(r.SBq),r.Y36(h.W),r.Y36(r.gxx),r.Y36(o.ae2),r.Y36(p.o,8))},g.ɵdir=r.lG2({type:g,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[r._Bn([o.a31,(0,s.Ic)(g),(0,s.Fe)(g)]),r.TTD]}),(0,i.gn)([o.UMq],g.prototype,"position",null)},6008:(t,e,n)=>{n.d(e,{W:()=>o});var i=n(42600),r=n(40870);const o=(0,i.N1V)((()=>r.n))},12174:(t,e,n)=>{n.d(e,{td:()=>i.t,E$:()=>g.E,dp:()=>l,oH:()=>m.o,fx:()=>f.fx}),n(40870);var i=n(82335),r=n(42600),o=n(49229),s=n(89570),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[s.wq,r.Ah6,r.eoI,o.Jy,r.VE3]]}),t})();n(6008);var u=n(97582),c=n(59890),d=n(30126),h=n(79765);class p extends c.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.activeZone=t,this.isIOS=e,this.isTouch=n,this.stream$=new h.xQ,this.currentRect=r.Jy9,this.longTapTimeout=NaN,this.type="dropdown"}get userSelect(){return this.isTouch?"none":null}onContextMenu(t,e){this.currentRect=(0,r.dDE)(t,e),this.stream$.next(!0)}closeDropdown(){this.stream$.next(!1),this.currentRect=r.Jy9}onTouchMove(t,e){this.isIOS&&this.isTouch&&this.currentRect!==r.Jy9&&Math.hypot(t-this.currentRect.x,e-this.currentRect.y)>15&&this.onTouchEnd()}onTouchStart(t,e){this.isIOS&&this.isTouch&&this.currentRect===r.Jy9&&(this.currentRect=(0,r.dDE)(t,e),this.longTapTimeout=setTimeout((()=>{this.stream$.next(!0)}),700))}onTouchEnd(){this.isIOS&&this.isTouch&&clearTimeout(this.longTapTimeout)}getClientRect(){return this.currentRect}}p.ɵfac=function(t){return new(t||p)(a.Y36(r.eJF),a.Y36(r.FAH),a.Y36(r.CyX))},p.ɵdir=a.lG2({type:p,selectors:[["","tuiDropdown","","tuiDropdownContext",""]],hostVars:6,hostBindings:function(t,e){1&t&&a.NdJ("contextmenu.prevent.stop",(function(t){return e.onContextMenu(t.clientX,t.clientY)}))("click.silent",(function(t){return e.closeDropdown(t.target)}),!1,a.evT)("contextmenu.capture.silent",(function(t){return e.closeDropdown(t.target)}),!1,a.evT)("keydown.esc",(function(t){return e.closeDropdown(t.currentTarget)}),!1,a.evT)("touchmove.silent.passive",(function(t){return e.onTouchMove(t.touches[0].clientX,t.touches[0].clientY)}))("touchstart.silent.passive",(function(t){return e.onTouchStart(t.touches[0].clientX,t.touches[0].clientY)}))("touchend.silent.passive",(function(){return e.onTouchEnd()}))("touchcancel.silent.passive",(function(){return e.onTouchEnd()})),2&t&&a.Udp("user-select",e.userSelect)("-webkit-touch-callout",e.userSelect)("-webkit-user-select",e.userSelect)},features:[a._Bn([r.eJF,(0,c.UK)(p),(0,c.Ic)(p)]),a.qOj]}),(0,u.gn)([(0,d.uX)((function(t){return!this.activeZone.contains(t)}))],p.prototype,"closeDropdown",null),n(80475);var g=n(16843),m=(n(36702),n(30416),n(95880)),f=n(16331);n(62541),n(80017),n(15837),n(2116)},44099:(t,e,n)=>{n.d(e,{$:()=>b});var i=n(97582),r=n(12057),o=n(74788),s=n(42600),a=n(59890),l=n(74235),u=n(25917),c=n(66682),d=n(46797),h=n(43190),p=n(88002),g=n(28984),m=n(39761),f=n(87519),v=n(13653);class b extends a.kk{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.zone=t,this.doc=e,this.el=n,this.id$=new l.t(1),this.stream$=this.id$.pipe((0,s.Xdy)((()=>(0,s.mLY)(this.doc,"keydown",{capture:!0})),s.PcC),(0,h.w)((()=>this.focused?(0,u.of)(!1):(0,c.T)((0,s.mLY)(this.doc,"keyup"),(0,s.mLY)(this.element,"blur")).pipe((0,p.U)((()=>this.focused))))),(0,g.D)((t=>t?(0,d.H)(1e3):(0,u.of)(null))),(0,m.O)(!1),(0,f.x)(),(0,v.T)(1),(0,s.Yry)(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return(0,s.V8W)(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}b.ɵfac=function(t){return new(t||b)(o.Y36(o.R0b),o.Y36(r.K0),o.Y36(o.SBq))},b.ɵdir=o.lG2({type:b,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[o._Bn([(0,a.UK)(b)]),o.qOj,o.TTD]}),(0,i.gn)([s.UMq],b.prototype,"element",null)},10406:(t,e,n)=>{n.d(e,{x:()=>s});var i=n(42600),r=n(59890),o=n(74788);let s=(()=>{class t extends r.FP{constructor(t,e,n){super(t,e,n),this.type="hint"}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.a31,2),o.Y36(r.kk),o.Y36(r.c2))},t.ɵdir=o.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],features:[o._Bn([i.a31]),o.qOj]}),t})()},63790:(t,e,n)=>{n.d(e,{t:()=>b});var i=n(74788),r=n(42600),o=n(59890),s=n(2116),a=n(79765),l=n(66682),u=n(25917),c=n(43190),d=n(87874),h=n(46782),p=n(79196),g=n(45435),m=n(88002),f=n(68307),v=n(64387);let b=(()=>{class t extends o.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 a.xQ,this.stream$=(0,l.T)(this.toggle$.pipe((0,c.w)((t=>(0,u.of)(t).pipe((0,d.g)(t?0:this.hideDelay)))),(0,h.R)(this.hovered$),(0,p.r)()),this.hovered$.pipe((0,c.w)((t=>(0,u.of)(t).pipe((0,d.g)(t?this.showDelay:this.hideDelay)))),(0,h.R)(this.toggle$),(0,p.r)())).pipe((0,g.h)((()=>this.enabled)),(0,m.U)((t=>t&&!(0,s.mn)(this.el.nativeElement))),(0,f.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)(i.Y36(r.gsq),i.Y36(v.H3),i.Y36(i.SBq))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[i._Bn([(0,o.UK)(t),r.gsq]),i.qOj]}),t})()},20708:(t,e,n)=>{n.d(e,{Z:()=>a});var i=n(59890),r=n(26215),o=n(63790),s=n(74788);let a=(()=>{class t extends i.kk{constructor(t){super((t=>this.stream$.subscribe(t))),this.stream$=new r.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)(s.Y36(o.t))},t.ɵdir=s.lG2({type:t,selectors:[["","tuiHint","","tuiHintManual",""]],inputs:{tuiHintManual:"tuiHintManual"},features:[s._Bn([(0,i.UK)(t)]),s.qOj,s.TTD]}),t})()},64387:(t,e,n)=>{n.d(e,{H3:()=>o,bZ:()=>s});var i=n(74788),r=n(42600);n(2116);const o=(0,r.JN4)({direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"});let s=(()=>{class t extends r.QJb{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)(i.Y36(o,4))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},29907:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(42600),r=n(59890),o=n(63790),s=n(74788);let a=(()=>{class t extends o.t{constructor(){super(...arguments),this.currentRect=i.Jy9}onMove({clientX:t,clientY:e}){this.currentRect=(0,i.dDE)(t,e)}getClientRect(){return this.currentRect}}return t.ɵfac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.ɵdir=s.lG2({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,e){1&t&&s.NdJ("mousemove.silent",(function(t){return e.onMove(t)}))},features:[s._Bn([(0,r.Ic)(t),(0,r.UK)(t)]),s.qOj]}),t})()},51928:(t,e,n)=>{n.d(e,{D:()=>d});var i=n(97582),r=n(42600),o=n(59890),s=n(50035),a=n(15837),l=n(13938),u=n(64387),c=n(74788);class d extends o.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.directive=n,this.accessors=i,this.points=s.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 o=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:r.Jy9,a=o.left+o.width/2,l=o.top+o.height/2;if(this.points["top-left"][0]=o.top-e-8,this.points["top-left"][1]=a-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=a-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=a-22,this.points["bottom-left"][0]=o.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]=l-e+22,this.points["left-top"][1]=o.left-t-8,this.points.left[0]=l-e/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=l-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]=o.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 u=s.Fw.find((n=>this.checkPosition(this.points[n],t,e)));return this.points[u||this.fallback]}get accessor(){return(0,o.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{n.d(e,{j:()=>y});var i=n(97582),r=n(74788),o=n(42600),s=n(59890),a=n(31837),l=n(19149),u=n(48874),c=n(15837),d=n(2116),h=n(89570),p=n(88002),g=n(46782),m=n(13938),f=n(63790),v=n(29907);function b(t,e){if(1&t&&r._UZ(0,"span",1),2&t){const t=e.polymorpheusOutlet;r.Q6J("innerHTML",t,r.oJD)}}class y{constructor(t,e,n,i,r,o,s,a,l,u,c,d){var h;this.animation=i,this.pointer=r,this.accessor=o,this.el=s,this.polymorpheus=a,this.hover=l,this.mode=u,this.visualViewportService=c,this.viewport=d,this.appearance=this.polymorpheus.$implicit.appearance||(null===(h=this.mode)||void 0===h?void 0:h.mode),e.pipe((0,p.U)((t=>this.visualViewportService.correct(t))),(0,g.R)(n)).subscribe((([t,e])=>{this.update(t,e)})),t.pipe((0,g.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)||(0,d.mn)(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(t,e){const{height:n,width:i}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,s=this.accessor.getClientRect(),a=this.viewport.getClientRect();if(s===o.Jy9)return;const l=(0,o.Kiv)(e,4,a.width-i-4),[u,c]=this.visualViewportService.correct([s.top+s.height/2-t,s.left+s.width/2-l]);r.top=(0,o.O9r)(t),r.left=(0,o.O9r)(l),r.setProperty("--top",(0,o.O9r)((0,o.Kiv)(u,.5,n-1))),r.setProperty("--left",(0,o.O9r)((0,o.Kiv)(c,.5,i-1)))}}y.ɵfac=function(t){return new(t||y)(r.Y36(o.gsq),r.Y36(u.KG),r.Y36(o.a31,2),r.Y36(c.Pw),r.Y36(v.q,8),r.Y36(s.O4),r.Y36(r.SBq),r.Y36(h.yf),r.Y36(f.t),r.Y36(l.w,8),r.Y36(u.Lp),r.Y36(c.EO))},y.ɵcmp=r.Xpm({type:y,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([o.a31,u.KG,o.gsq,(0,s.ei)("hint"),(0,s.Wk)("hint",m.D)])],ngContentSelectors:["*"],decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(r.F$t(),r.Hsn(0),r.YNc(1,b,1,1,"span",0)),2&t&&(r.xp6(1),r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context))},directives:[h.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:[a.QF]},changeDetection:0}),(0,i.gn)([o.UMq],y.prototype,"update",null)},13938:(t,e,n)=>{n.d(e,{D:()=>c});var i=n(74788),r=n(42600),o=n(59890),s=n(48874),a=n(89570),l=n(58318),u=n(64387);let c=(()=>{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)(i.Y36(i.SBq),i.Y36(a.Al),i.Y36(s.BN),i.Y36(u.H3),i.Y36(r.eJF,8))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[i._Bn([(0,o.Ic)(t),(0,o.Fe)(t),{provide:a.Al,deps:[l.y,i.gxx],useClass:a.Al}]),i.TTD]}),t})()},58318:(t,e,n)=>{n.d(e,{y:()=>o});var i=n(42600),r=n(79236);const o=(0,i.N1V)((()=>r.j))},25715:(t,e,n)=>{n.d(e,{H3:()=>l.H3,t6:()=>a.t,go:()=>s,bZ:()=>l.bZ}),n(79236),n(13938);var i=n(12057),r=n(89570),o=n(74788);let s=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[i.ez,r.wq]]}),t})();n(58318),n(44099),n(10406),n(42600),n(59890);var a=n(63790),l=(n(20708),n(64387));n(29907),n(51928)},29883:(t,e,n)=>{n.d(e,{Y0:()=>l.Y0,H3:()=>r.H3,Ym:()=>l.Ym,kI:()=>l.kI,Cs:()=>l.Cs,td:()=>i.td,dp:()=>i.dp,oH:()=>i.oH,t6:()=>r.t6,go:()=>r.go,bZ:()=>r.bZ,c8:()=>o.c,wt:()=>s.w,zw:()=>s.z,ec:()=>a.e,cn:()=>l.cn,WU:()=>u.W,fx:()=>i.fx});var i=n(12174),r=n(25715),o=n(74415),s=n(19149);n(15837);var a=n(81617),l=n(20735),u=n(21064)},74415:(t,e,n)=>{n.d(e,{c:()=>r}),n(93604);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})()},93604:(t,e,n)=>{n.d(e,{j:()=>s});var i=n(74788),r=n(24751),o=n(15837);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})()},19149:(t,e,n)=>{n.d(e,{w:()=>i.w,z:()=>o});var i=n(47999),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=r.oAB({type:t}),t.ɵinj=r.cJS({}),t})()},47999:(t,e,n)=>{n.d(e,{w:()=>o});var i=n(42600),r=n(74788);let o=(()=>{class t extends i.QJb{constructor(){super(...arguments),this.mode=null}}return t.ɵfac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[r.qOj]}),t})()},81617:(t,e,n)=>{n.d(e,{e:()=>r}),n(78273);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})()},78273:(t,e,n)=>{n.d(e,{M:()=>l});var i=n(74788),r=n(42600),o=n(50035),s=n(46797),a=n(46782);let l=(()=>{class t{constructor(t,e){this.el=t,this.destroy$=e}set tuiScrollIntoView(t){t&&(0,s.H)(0).pipe((0,a.R)(this.destroy$)).subscribe((()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(o.fe,{bubbles:!0,detail:this.el.nativeElement}))}))}}return t.ɵfac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(r.a31,2))},t.ɵdir=i.lG2({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i._Bn([r.a31])]}),t})()},20735:(t,e,n)=>{n.d(e,{Y0:()=>O,Ym:()=>s.Y,z1:()=>r,kI:()=>x.k,Cs:()=>M,cn:()=>l});var i=n(42600);const r=(0,i.JN4)({iconCleaner:"tuiIconClose",hintOnDisabled:!1});var o=n(47307),s=n(44530),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({}),t})();var u=n(15837),c=n(66682),d=n(29856),h=n(98640);const p=new d.y(h.Z);var g=n(46782);class m{constructor(t,e,n,i,r,o,s,a,l,u,c,d,h){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=u,this.prefixDirective=c,this.postfixDirective=d,this.fillerDirective=h}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}}var f=n(63578),v=n(59557),b=n(60644),y=n(61183),_=n(99036),C=n(38190),w=n(40330),x=n(28986);const M=new a.OlP("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),O=[i.a31,{provide:M,deps:[a.sBO,i.a31,r,u.jt,o.x,s.Y,f.U,b.Z,y.G,_.r,x.k,w.x,C.f,v.s],useFactory:(t,e,n,r,...o)=>{const s=(0,c.T)(...o.map((({change$:t})=>t||p))).pipe((0,i.NAr)(t),(0,g.R)(e));return s.subscribe(),new m(s,n,r,...o)}}]},47307:(t,e,n)=>{n.d(e,{x:()=>o,q:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.appearance=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},44530:(t,e,n)=>{n.d(e,{Y:()=>o,b:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.cleaner=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},63578:(t,e,n)=>{n.d(e,{U:()=>o,B:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},59557:(t,e,n)=>{n.d(e,{s:()=>o,k:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.filler=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},61183:(t,e,n)=>{n.d(e,{G:()=>o,a:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},60644:(t,e,n)=>{n.d(e,{Z:()=>o,A:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},99036:(t,e,n)=>{n.d(e,{r:()=>o,x:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.labelOutside=!1}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},38190:(t,e,n)=>{n.d(e,{f:()=>o,T:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.postfix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},40330:(t,e,n)=>{n.d(e,{x:()=>o,A:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.prefix=""}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},28986:(t,e,n)=>{n.d(e,{k:()=>o,s:()=>s});var i=n(74788),r=n(42600);const o=(0,r.N1V)((()=>new s));let s=(()=>{class t extends r.QJb{constructor(){super(...arguments),this.size="l"}}return t.ɵfac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.ɵdir=i.lG2({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[i._Bn([{provide:o,useExisting:(0,i.Gpc)((()=>t))}]),i.qOj]}),t})()},21064:(t,e,n)=>{n.d(e,{W:()=>r}),n(42);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})()},42:(t,e,n)=>{n.d(e,{o:()=>a});var i=n(27907),r=n(73784),o=n(15837),s=n(74788);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?i.z.Disabled:this.readOnly?i.z.Readonly:this.active?i.z.Active:this.hover?i.z.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)(s.Y36(o.Au))},t.ɵdir=s.lG2({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,e){1&t&&s.NdJ("$.data-mode.attr",(function(){return e.mode$})),2&t&&(s.uIk("data-appearance",e.appearance)("data-state",e.interactiveState),s.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:[s._Bn([r.CV])]}),t})()},92444:(t,e,n)=>{n.d(e,{N:()=>i});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))()},27907:(t,e,n)=>{n.d(e,{z:()=>i});var i=(()=>(function(t){t.Active="active",t.Disabled="disabled",t.Hover="hover",t.Readonly="readonly"}(i||(i={})),i))()},5938:(t,e,n)=>{n.d(e,{q:()=>i});var i=(()=>(function(t){t.End="end",t.Single="single",t.Start="start"}(i||(i={})),i))()},43232:(t,e,n)=>{n.d(e,{D1Q:()=>i.D1,CV2:()=>ft.CV,Y0:()=>Ot.Y0,GcO:()=>a.Gc,dxT:()=>a.dx,PwD:()=>a.Pw,Y2g:()=>vt.Y2,U0F:()=>a.U0,Gs9:()=>a.Gs,Ccr:()=>a.Cc,N1S:()=>a.N1,zE9:()=>At.zE,hW1:()=>At.hW,AJd:()=>At.AJ,Auc:()=>a.Au,R3j:()=>At.R3,HOy:()=>a.HO,TKC:()=>a.TK,hmb:()=>a.hm,iSh:()=>a.iS,YmJ:()=>Ot.Ym,S0o:()=>a.S0,kId:()=>Ot.kI,CsI:()=>Ot.Cs,sEt:()=>a.sE,GK_:()=>P,J9F:()=>_,NmR:()=>Et.N,fNO:()=>O,qiE:()=>D.q,gXS:()=>L.g,pcV:()=>F,upG:()=>lt,ROA:()=>at,kkl:()=>i.kk,tdC:()=>Ot.td,dpK:()=>Ot.dp,Shu:()=>ut,ijq:()=>ct,TGm:()=>T.T,n6B:()=>dt,goS:()=>Ot.go,bZA:()=>Ot.bZ,o1K:()=>pt.o,jhF:()=>mt,z3N:()=>It.z,jzK:()=>I,dSp:()=>w,c86:()=>Ot.c8,wtG:()=>Ot.wt,zw7:()=>Ot.zw,$7p:()=>A.$,HiG:()=>S,vKW:()=>N.v,fBj:()=>bt,ycg:()=>yt.y,KWI:()=>Mt,qD5:()=>Dt.q,O4x:()=>i.O4,WwM:()=>Pt,OkA:()=>zt.Ok,ecP:()=>Ot.ec,IB$:()=>E.IB,Jyu:()=>E.Jy,EIu:()=>x.EI,cnw:()=>Ot.cn,jfl:()=>Tt,QA7:()=>wt,WUl:()=>Ot.WU,RBi:()=>a.RB,oEG:()=>a.oE,UKU:()=>i.UK,P7F:()=>a.P7,Ic9:()=>i.Ic,cpA:()=>a.cp,ckU:()=>a.ck,O0j:()=>k.O0,fxH:()=>Ot.fx,QFo:()=>r.QF,lx_:()=>q.lx,LfO:()=>q.Lf,ic8:()=>q.ic,DII:()=>q.DI,R9V:()=>q.R9,GwG:()=>r.Gw,X9R:()=>r.X9,KV6:()=>Nt});var i=n(59890),r=n(31837),o=n(74788),s=n(42600),a=n(15837),l=n(89570),u=n(46797),c=n(22759),d=n(46782),h=n(72361);const p=(0,s.N1V)((()=>(0,o.f3M)(s.fLQ)?"1rem 1rem 0 auto":"2rem 3rem 0 auto"));var g=n(48236),m=n(12057);function f(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}function v(t,e){if(1&t&&(o.TgZ(0,"label",4),o.YNc(1,f,2,1,"ng-container",5),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function b(t,e){if(1&t&&o._UZ(0,"div",6),2&t){const t=e.polymorpheusOutlet;o.Q6J("innerHTML",t,o.oJD)}}let y=(()=>{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,u.H)((0,s.dtH)(this.autoClose)?this.autoClose:3e3).pipe((0,d.R)((0,c.R)(this.el.nativeElement,"mouseenter")),(0,h.a)((()=>(0,c.R)(this.el.nativeElement,"mouseleave"))),(0,d.R)(this.destroy$)).subscribe((()=>this.close()))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(o.SBq),o.Y36(s.a31,2),o.Y36(p),o.Y36(a.Pw),o.Y36(l.yf))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:5,hostBindings:function(t,e){2&t&&(o.d8E("@tuiFadeIn",e.options)("@tuiSlideIn",e.animation)("@tuiHeightCollapse",e.animation),o.Udp("margin",e.position))},features:[o._Bn([s.a31])],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&&(o.TgZ(0,"tui-notification",0),o.NdJ("close",(function(){return e.close()})),o.YNc(1,v,2,2,"label",1),o.TgZ(2,"div",2),o.YNc(3,b,1,1,"div",3),o.qZA(),o.qZA()),2&t&&(o.Q6J("hasIcon",e.item.hasIcon)("hideClose",!e.item.hasCloseButton)("icon",e.item.icon)("status",e.item.status),o.xp6(1),o.Q6J("ngIf",e.item.label),o.xp6(2),o.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.item))},directives:[g.L,m.O5,l.Li],styles:["[_nghost-%COMP%]{display:block;box-shadow:var(--tui-shadow-dropdown);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;word-break:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[r.QF,r.Gw,r.eu]},changeDetection:0}),t})(),_=(()=>{class t extends s.d56{constructor(t,e){super(e),this.defaultOptions=t,this.component=new l.Al(y)}}return t.ɵfac=function(e){return new(e||t)(o.LFG(a.Ln),o.LFG(s.llV))},t.ɵprov=o.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var C=n(18289);n(57634);let w=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq]]}),t})();n(34474);var x=n(26637),M=n(21064);let O=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,M.W,x.EI,w]]}),t})();var k=n(21142);let S=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI,O,l.wq]]}),t})(),P=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({providers:[(0,s.XHb)(_)],imports:[[m.ez,l.wq,S]]}),t})();n(414),n(23761),n(99766);var T=n(77488);n(89910),n(95191);var A=n(78831);n(65566),n(46109),n(81617);var E=n(49229);n(3395),n(73460);let I=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI]]}),t})();n(10259);var D=n(22545),L=n(65266);let F=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,x.EI,l.wq]]}),t})();var N=n(91283),z=n(95639),R=n(25917),B=n(79765),H=n(66682),V=n(43190),Y=n(88002),j=n(45435),Z=n(59193);const $=(0,s.JN4)(Z.E),U=(0,s.JN4)({size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""});var G=n(62579),q=n(2116),J=n(29856),Q=n(15257);let W=(()=>{class t extends J.y{constructor(t,e,n){super((t=>(0,H.T)(this.esc$,this.mousedown$).subscribe(t))),this.win=t,this.doc=e,this.el=n,this.esc$=(0,s.mLY)(this.doc,"keydown").pipe((0,j.h)((t=>{const e=(0,s.mAU)(t);return"Escape"===t.key&&!t.defaultPrevented&&(this.element.contains(e)||this.isOutside(e))}))),this.mousedown$=(0,s.mLY)(this.doc,"mousedown").pipe((0,j.h)((t=>(0,q.ic)(this.win)-t.clientX>17&&this.isOutside((0,s.mAU)(t)))),(0,V.w)((()=>(0,s.mLY)(this.doc,"mouseup").pipe((0,Q.q)(1),(0,Y.U)(s.mAU),(0,j.h)((t=>this.isOutside(t)))))))}get element(){return this.el.nativeElement}isOutside(t){return(0,s.veZ)(t)&&(!(0,s.PPV)(this.element,t)||t===this.element)}}return t.ɵfac=function(e){return new(e||t)(o.LFG(G.m9),o.LFG(m.K0),o.LFG(o.SBq))},t.ɵprov=o.Yz7({token:t,factory:t.ɵfac}),t})();var K=n(30528);function X(t,e){if(1&t&&(o.ynx(0),o._uU(1),o.BQk()),2&t){const t=e.polymorpheusOutlet;o.xp6(1),o.hij(" ",t," ")}}function tt(t,e){if(1&t&&(o.TgZ(0,"header",6),o.YNc(1,X,2,1,"ng-container",3),o.qZA()),2&t){const t=o.oxw();o.xp6(1),o.Q6J("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function et(t,e){if(1&t){const t=o.EpF();o.ynx(0),o._UZ(1,"div",7),o.TgZ(2,"div",8),o.TgZ(3,"button",9),o.NdJ("click",(function(){return o.CHM(t),o.oxw().context.$implicit.complete()})),o._uU(4),o.qZA(),o.qZA(),o.BQk()}if(2&t){const t=e.polymorpheusOutlet,n=o.oxw();let i;o.xp6(1),o.Q6J("innerHTML",t,o.oJD),o.xp6(3),o.hij(" ",(null==(i=n.context.data)?null:i.button)||"OK"," ")}}function nt(t,e){if(1&t){const t=o.EpF();o.TgZ(0,"div",10),o.TgZ(1,"button",11),o.NdJ("click",(function(){return o.CHM(t),o.oxw().close$.next()}))("mousedown.prevent.silent",(function(){return 0})),o.ALo(2,"async"),o.qZA(),o.qZA()}if(2&t){const t=o.oxw();o.xp6(1),o.Q6J("appearance",t.fullscreen?"secondary":"")("icon",t.icons.close)("title",o.lcZ(2,3,t.closeWord$))}}const it=new Error("Required dialog was dismissed");function rt(t){return(0,z.b)(t)?t:(0,R.of)(t)}let ot=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this.duration=t,this.isMobile=e,this.context=n,this.closeWord$=a,this.icons=l,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new B.xQ,(0,H.T)(this.close$.pipe((0,V.w)((()=>rt(n.closeable)))),r.pipe((0,V.w)((()=>rt(n.dismissible)))),o.pipe((0,Y.U)(s.YeN))).pipe((0,j.h)(Boolean),(0,d.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(it):this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(o.Y36(a.dx),o.Y36(s.fLQ),o.Y36(l.yf),o.Y36(s.a31,2),o.Y36(W),o.Y36($),o.Y36(a.U0),o.Y36(a.Gs))},t.ɵcmp=o.Xpm({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(t,e){2&t&&(o.uIk("data-appearance",e.context.appearance)("data-size",e.size),o.d8E("@tuiSlideInTop",e.slideInTop)("@tuiFadeIn",e.slideInTop),o.ekj("_centered",e.header))},features:[o._Bn([s.a31,W])],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&&(o.YNc(0,tt,2,2,"header",0),o.TgZ(1,"div",1),o._UZ(2,"h2",2),o.TgZ(3,"section"),o.YNc(4,et,5,2,"ng-container",3),o.qZA(),o.qZA(),o._UZ(5,"div",4),o.YNc(6,nt,3,5,"div",5)),2&t&&(o.Q6J("ngIf",e.header),o.xp6(2),o.Q6J("id",e.context.id)("textContent",e.context.label),o.xp6(2),o.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),o.xp6(2),o.Q6J("ngIf",e.context.closeable))},directives:[m.O5,l.Li,C.v,K.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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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%]{min-width:100vw;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;z-index:1;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:[r.X9,r.QF]}}),t})();const st=new l.Al(ot);let at=(()=>{class t extends s.d56{constructor(){super(...arguments),this.component=st,this.defaultOptions=Object.assign(Object.assign({},(0,o.f3M)(U)),{data:void 0})}}return t.ɵfac=function(){let e;return function(n){return(e||(e=o.n5z(t)))(n||t)}}(),t.ɵprov=o.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),lt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({providers:[(0,s.QaK)(at)],imports:[[l.wq,O,m.ez,s.Q7V]]}),t})();n(24956);let ut=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq]]}),t})();n(2793);let ct=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,w]]}),t})();n(20690);let dt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez]]}),t})();n(53620);let ht=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,s.Ah6]]}),t})();n(55863),n(93529);var pt=n(98778),gt=n(12174);let mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,l.wq,s.WDk,s.lTc,s.Ah6,gt.dp]]}),t})();var ft=n(73784),vt=n(38586);n(87605);let bt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[x.EI,M.W,l.wq]]}),t})();var yt=n(75526),_t=(n(19042),n(24751)),Ct=(n(63360),n(25715));let wt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,M.W,x.EI,Ct.go,l.wq]]}),t})();var xt=n(74415);let Mt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,_t.u5,l.wq,xt.c,s.udY,M.W,x.EI,wt,s.gIU]]}),t})();var Ot=n(29883);n(52846),n(57971),n(6226),n(84651);let kt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,s.WDk]]}),t})();var St=n(30126);let Pt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({imports:[[m.ez,St.X1,s.mLu,kt,ht,s.FiZ,s.F_5,s.eI3]]}),t})();n(75830);let Tt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=o.oAB({type:t}),t.ɵinj=o.cJS({}),t})();var At=n(50035),Et=n(92444),It=n(27907),Dt=n(5938),Lt=n(34022),Ft=n(87519);function Nt(t,e){return(0,Lt.z)((0,Y.U)(t),(0,Ft.x)(),(0,s.AoQ)(e))}var zt=n(48874)},3395:(t,e,n)=>{n.d(e,{d:()=>h});var i=n(74788),r=n(42600),o=n(10259),s=n(12057),a=n(73460),l=n(63973),u=n(78831);function c(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.value.formattedYear," ")}}function d(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",3),i.NdJ("click",(function(){return i.CHM(t),i.oxw().onYearClick()})),i._uU(1),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("tuiFocusable",!1),i.xp6(1),i.hij(" ",t.value.formattedYear," ")}}let h=(()=>{class t{constructor(){this.value=r.qld.currentLocal(),this.min=r.nNo,this.max=r.OyN,this.valueChange=new i.vpe,this.yearClick=new i.vpe}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:r.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:r.OyN}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){const{computedMin:t,computedMax:e}=this;return t.year===e.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(t){const e=this.value.append(t),{computedMin:n,computedMax:i}=this;n.monthSameOrAfter(e)?this.updateValue(n):this.updateValue(i.monthSameOrBefore(e)?i:e)}updateValue(t){this.value.monthSame(t)||(this.value=t,this.valueChange.emit(t))}}return t.ɵfac=function(e){return new(e||t)},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],[4,"ngIf","ngIfElse"],["button",""],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"tuiFocusable","click"]],template:function(t,e){if(1&t&&(i.TgZ(0,"tui-primitive-spin-button",0),i.NdJ("leftClick",(function(){return e.onPrevMonthClick()}))("rightClick",(function(){return e.onNextMonthClick()})),i._uU(1),i.ALo(2,"async"),i.ALo(3,"tuiMonth"),i.YNc(4,c,2,1,"ng-container",1),i.YNc(5,d,2,2,"ng-template",null,2,i.W1O),i.qZA()),2&t){const t=i.MAs(6);i.Q6J("focusable",!1)("leftDisabled",e.prevMonthDisabled)("rightDisabled",e.nextMonthDisabled),i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,e.value))," "),i.xp6(3),i.Q6J("ngIf",e.oneYear)("ngIfElse",t)}},directives:[o.a,s.O5,a.V,l.t],pipes:[s.Ov,u.$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})()},84651:(t,e,n)=>{n.d(e,{M:()=>h});var i=n(12057),r=n(74788),o=n(42600),s=n(48874),a=n(46782);function l(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 u(t,e){if(1&t&&(r.O4$(),r.ynx(0),r.YNc(1,l,1,1,"defs",3),r.BQk()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngForOf",t.items)}}function c(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 d(t,e){if(1&t&&(r.O4$(),r.YNc(0,c,2,1,"defs",5)),2&t){const t=r.oxw();r.Q6J("ngForOf",t.items)}}let h=(()=>{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,a.R)(this.destroy$)).subscribe((t=>{this.items=t.values(),this.cdr.detectChanges()}))}}return t.ɵfac=function(e){return new(e||t)(r.Y36(s.K5),r.Y36(r.sBO),r.Y36(o.a31,2),r.Y36(r.Lbi))},t.ɵcmp=r.Xpm({type:t,selectors:[["tui-svg-defs-host"]],features:[r._Bn([o.a31])],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,u,2,1,"ng-container",1),r.YNc(2,d,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})()},99766:(t,e,n)=>{n.d(e,{h:()=>a});var i=n(42600),r=n(15837);const o=({month:t,rowIndex:e,colIndex:n,firstDayOfWeek:r})=>{let o=e*i.NAy+n-((t,e)=>{const n=new Date(t.year,t.month,1).getDay();return n>=e?n-e:i.NAy-(e-n)})(t,r)+1;return o>t.daysCount&&(o-=t.daysCount,t=t.append({month:1})),o<=0&&(o=(t=t.append({month:-1})).daysCount+o),new i.TU1(t.year,t.month,o)};var s=n(74788);let a=(()=>{class t{constructor(t){this.firstDayOfWeek=t,this.currentMonth=null,this.currentSheet=[]}transform(t,e=!1){var n;if(null===(n=this.currentMonth)||void 0===n?void 0:n.monthSame(t))return this.currentSheet;const r=[];for(let n=0;n<6;n++){const s=[];for(let r=0;re.yeare.year>n.year||e.month>n.month;if(!a(i)||e){if(l(i)&&!e)break;s.push(i)}}r.push(s)}return this.currentSheet=r.filter((t=>t.length)),this.currentMonth=t,this.currentSheet}}return t.ɵfac=function(e){return new(e||t)(s.Y36(r.Sy,16))},t.ɵpipe=s.Yjl({name:"tuiCalendarSheet",type:t,pure:!0}),t})()},77488:(t,e,n)=>{n.d(e,{T:()=>a});var i=n(26637),r=n(50035),o=n(19633),s=n(74788);let a=(()=>{class t{constructor(t){this.svgOptions=t,this.staticPath=this.svgOptions.path("tuiIcon").replace("tuiIcon.svg#tuiIcon","").replace(`tuiIcon.svg${r.uJ}#tuiIcon`,"")}transform(t){if(!t)return null;switch(t){case o.Xi.BL:case o.Xi.BQ:case o.Xi.CW:case o.Xi.GF:case o.Xi.GP:case o.Xi.MF:case o.Xi.MQ:case o.Xi.NC:case o.Xi.RE:case o.Xi.YT:return`${this.staticPath}${o.Xi.FR}.png`;case o.Xi.SX:return`${this.staticPath}${o.Xi.NL}.png`;default:return`${this.staticPath}${t}.png`}}}return t.ɵfac=function(e){return new(e||t)(s.Y36(i.$E,16))},t.ɵpipe=s.Yjl({name:"tuiFlag",type:t,pure:!0}),t})()},89910:(t,e,n)=>{n(48874)},78831:(t,e,n)=>{n.d(e,{$:()=>s});var i=n(15837),r=n(88002),o=n(74788);let s=(()=>{class t{constructor(t){this.months$=t}transform({month:t}){return this.months$.pipe((0,r.U)((e=>e[t])))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.$R,16))},t.ɵpipe=o.Yjl({name:"tuiMonth",type:t,pure:!0}),t})()},65566:(t,e,n)=>{n.d(e,{q:()=>a});var i=n(15837),r=n(88002),o=n(74788);function s(t){const e=t.length-1;return[t[e],...t.slice(0,e)]}let a=(()=>{class t{constructor(t){this.firstDayOfWeekIndex=t}transform(t){return t.pipe((0,r.U)(s),(0,r.U)((t=>[...t.slice(this.firstDayOfWeekIndex),...t.slice(0,this.firstDayOfWeekIndex)])))}}return t.ɵfac=function(e){return new(e||t)(o.Y36(i.Sy,16))},t.ɵpipe=o.Yjl({name:"tuiOrderWeekDays",type:t,pure:!0}),t})()},73784:(t,e,n)=>{n.d(e,{CV:()=>u});var i=n(74788),r=n(15837);r.rL,new i.tp0,r.rL,i.SBq;var o=n(19149),s=n(25917),a=n(39761),l=n(88002);const 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}};n(42600)},48874:(t,e,n)=>{n.d(e,{zE:()=>c,BN:()=>h,KG:()=>f,Ok:()=>w,K5:()=>O,Lp:()=>k});var i=n(74788),r=n(42600),o=n(15837),s=n(29856),a=n(88002),l=n(87519),u=n(47349);let c=(()=>{class t extends s.y{constructor(t,e,n){super((t=>this.stream$.subscribe(t))),this.media=t,this.ngZone=e,this.size$=n,this.sorted=Object.values(this.media).sort(((t,e)=>t-e)),this.invert=Object.keys(this.media).reduce(((t,e)=>Object.assign(Object.assign({},t),{[this.media[e]]:e})),{}),this.stream$=this.size$.pipe((0,a.U)((({width:t})=>this.sorted.find((e=>e>t)))),(0,a.U)((t=>this.invert[t||this.sorted[this.sorted.length-1]])),(0,l.x)(),(0,r.Yry)(this.ngZone),(0,u.d)({bufferSize:1,refCount:!0}))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(o.J_),i.LFG(i.R0b),i.LFG(r.fMG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();var d=n(26215);let h=(()=>{class t extends d.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})();var p=n(62579),g=n(59890),m=n(68939);let f=(()=>{class t extends s.y{constructor(t,e,n,i){super((o=>e.pipe((0,a.U)((()=>t.nativeElement.getBoundingClientRect())),(0,a.U)((t=>i.getPosition(t))),(0,r.fL9)(n),(0,m.x)((()=>i.getPosition(r.Jy9)))).subscribe(o)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(p.L1),i.LFG(i.R0b),i.LFG(g.uG))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var v=n(34016),b=n(66682),y=n(46797),_=n(59193),C=n(46782);let w=(()=>{class t extends s.y{constructor(t,e,n,i){const o=t?(0,b.T)((0,y.H)(0),n).pipe((0,a.U)((()=>t.isActive)),(0,l.x)(),(0,r.Yry)(e),(0,C.R)(i)):_.E;super((t=>o.subscribe(t)))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(v.Od,8),i.LFG(i.R0b),i.LFG(p.L1),i.LFG(r.a31,2))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac}),t})();var x=n(91211),M=n(18147);let O=(()=>{class t{constructor(t,e,n){this.tuiSanitizer=t,this.sanitizer=e,this.originals={},this.items$=new d.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,M.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(o.hm,8),i.LFG(x.H7),i.LFG(o.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(p.m9),i.LFG(r.jFN))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})()},15837:(t,e,n)=>{n.d(e,{Gc:()=>a,dx:()=>l,Pw:()=>u,U0:()=>_,Gs:()=>d,Cc:()=>h,N1:()=>g,rJ:()=>f,PL:()=>w,xp:()=>O,Sy:()=>v,It:()=>S,ki:()=>T,AA:()=>k,rL:()=>N,sf:()=>z,J_:()=>F,Au:()=>R,$R:()=>y,PH:()=>C,Ln:()=>V,HO:()=>j,IQ:()=>$,TK:()=>s,hm:()=>q,iS:()=>K,P:()=>M,oC:()=>X,U4:()=>x,u_:()=>tt,V5:()=>nt,jt:()=>rt,S0:()=>ot,r2:()=>at,sE:()=>lt,EO:()=>ut,RB:()=>p,oE:()=>m,P7:()=>U,cp:()=>st,ck:()=>ct});var i=n(74788),r=n(42600),o=n(12057);const s=(0,r.N1V)((()=>{var t,e,n;return null!==(n=null===(e=null===(t=(0,i.f3M)(o.K0).defaultView)||void 0===t?void 0:t.matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&void 0!==n&&n})),a=300,l=(0,r.N1V)((()=>(0,i.f3M)(s)?0:a)),u=(0,r.N1V)((()=>({value:"",params:{duration:(0,i.f3M)(l)}}))),c=((0,r.N1V)((()=>(0,i.X6Q)())),{check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"}),d=(0,r.JN4)(c),h=new i.OlP("[TUI_DATA_LIST_ACCESSOR]");function p(t){return{provide:h,useExisting:t}}const g=new i.OlP("[TUI_DATA_LIST_HOST]");function m(t){return{provide:g,useExisting:t}}const f=(0,r.JN4)((t=>t.isWeekend?"weekend":"weekday")),v=(new i.OlP("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),new i.OlP("[TUI_ELEMENT_REF]"),(0,r.JN4)(r.Lrk.Monday));var b=n(19633);const y=(0,r.N1V)((0,b.vv)("months")),_=(0,r.N1V)((0,b.vv)("close")),C=(0,r.N1V)((0,b.vv)("nothingFoundMessage")),w=(0,r.N1V)((0,b.vv)("defaultErrorMessage")),x=(0,r.N1V)((0,b.vv)("spinTexts")),M=(0,r.N1V)((0,b.vv)("shortWeekDays")),O="assets/taiga-ui/icons",k=(0,r.JN4)(O),S=(0,r.JN4)({});var P=n(2116);const T=(0,r.N1V)((()=>(0,P.ht)((0,i.f3M)(k))));var A=n(62579),E=n(9945),I=n(39761),D=n(88002),L=n(87519);const F=(0,r.JN4)({mobile:768,desktopSmall:1024,desktopLarge:1280}),N=(0,r.N1V)((()=>{const t=(0,i.f3M)(A.m9),e=(0,i.f3M)(F);return(0,r.mLY)(t,"resize").pipe((0,E.B)(),(0,I.O)(null),(0,D.U)((()=>(0,P.Je)(t,e))),(0,L.x)(),(0,r.Yry)((0,i.f3M)(i.R0b)))})),z=new i.OlP("[TUI_LEGACY_MASK]"),R=new i.OlP("[TUI_MODE]"),B={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},H={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:t})=>B[t],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},V=(0,r.JN4)(H);var Y=n(50035);const j=(0,r.JN4)(Y.Jl);var Z=n(25917);(0,r.JN4)((0,Z.of)(Object.assign(Object.assign({},Y.Jl),{decimalLimit:NaN})));const $=new i.OlP("[TUI_OPTION_CONTENT]");function U(t){return{provide:$,useValue:t}}const G=t=>{const e=t.length-1;return[t[e],...t.slice(0,e)]},q=((0,r.N1V)((()=>{const t=(0,i.f3M)(v);return(0,i.f3M)(M).pipe((0,D.U)(G),(0,D.U)((e=>[...e.slice(t),...e.slice(0,t)])))})),new i.OlP("[TUI_SANITIZER]"));var J=n(66682),Q=n(43190),W=n(46782);const K=(0,r.N1V)((()=>{const t=(0,i.f3M)(o.K0);return(0,J.T)((0,r.mLY)(t,"selectionchange"),(0,r.mLY)(t,"mouseup"),(0,r.mLY)(t,"mousedown").pipe((0,Q.w)((()=>(0,r.mLY)(t,"mousemove").pipe((0,W.R)((0,r.mLY)(t,"mouseup")))))),(0,r.mLY)(t,"keydown"),(0,r.mLY)(t,"keyup")).pipe((0,E.B)())})),X=(0,r.JN4)({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),tt=(0,r.JN4)(r.NJB);var et=n(54487);const nt=(0,r.JN4)(et.y);var it=n(92444);const rt=(0,r.JN4)(it.N.Textfield),ot=new i.OlP("[TUI_TEXTFIELD_HOST]");function st(t){return{provide:ot,useExisting:t}}const at=(0,r.JN4)("Taiga"),lt=new i.OlP("[TUI_VALUE_ACCESSOR]"),ut=(0,r.N1V)((()=>{const t=(0,i.f3M)(A.m9);return{type:"viewport",getClientRect:()=>({top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight})}}));function ct(t){return{provide:ut,useExisting:t}}},18147:(t,e,n)=>{function i(t){return!(!t||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||i(t.parentElement))}function r({document:t,innerWidth:e}){return Math.max(t.documentElement.clientWidth||0,e||0)}n.d(e,{qK:()=>i,ic:()=>r,DI:()=>s,NK:()=>c});var o=n(42600);function s(t){const e=t.cloneRange(),{startContainer:n,startOffset:i,endContainer:r,endOffset:s}=e,{ownerDocument:a}=n;if(!a)return e;const l=a.createTreeWalker(a.body,NodeFilter.SHOW_TEXT,o.LwS);l.currentNode=n;do{const t=l.currentNode,r=t.textContent||"",s=t===n?r.slice(0,Math.max(0,i+1)):r,a=Math.max(s.lastIndexOf(" "),s.lastIndexOf(o.f$6),s.lastIndexOf(o.tUj))+1;if(e.setStart(t,0),a){e.setStart(t,a);break}}while(l.previousNode());l.currentNode=r;do{const t=l.currentNode,n=t.textContent||"",i=t===r?n.slice(s+1):n,a=[i.indexOf(" "),i.indexOf(o.f$6),i.indexOf(o.tUj)].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-i.length);break}}while(l.nextNode());return e}const a='width="',l='height="',u="")));if(!(null==i?void 0:i.includes(a))||!i.includes(l))return`${n.replace(u,``;const r=i.indexOf(a),o=i.indexOf(l),s=r+a.length,c=o+l.length,d=i.slice(s,i.indexOf('"',s)),h=i.slice(c,i.indexOf('"',c));if(!h||!d||d.includes("%")||h.includes("%")||d.includes("em")||h.includes("em"))return n.replace(u,`${n}`}},95191:(t,e,n)=>{n.d(e,{lx:()=>s,Lf:()=>o});var i=n(42600),r=n(50035);function o(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.dtH)(e)?n.slice(0,Math.max(0,e)):n}function s(t,e={}){const{decimalLimit:n,decimalSeparator:s,thousandSeparator:a,zeroPadding:l,rounding:u}=Object.assign(Object.assign({},r.Jl),e),c=Number.isFinite(n)?(0,i.h0X)({value:t,precision:n,method:u}):t,d=String(Math.floor(Math.abs(c)));let h=o(c,n);if(Number.isFinite(n))if(l){const t=Math.max(n-h.length,0);h=`${h}${"0".repeat(t)}`}else h=h.replace(/0*$/,"");const p=d.length%3;let g=(t<0?i.fv1:"")+d.charAt(0);for(let t=1;t3&&(g+=a),g+=d.charAt(t);return h?g+s+h:g}},2116:(t,e,n)=>{n.d(e,{qK:()=>i.qK,lx:()=>r.lx,Lf:()=>r.Lf,ic:()=>i.ic,DI:()=>i.DI,ht:()=>o.ht,Je:()=>s,mn:()=>o.mn,lp:()=>o.lp,R9:()=>o.R9});var i=n(18147),r=n(95191);n(42600),n(50035);var o=n(1585);function s(t,{mobile:e}){return(0,i.ic)(t){n.d(e,{_X:()=>o,ht:()=>a,kL:()=>l,mn:()=>c,jL:()=>d,lp:()=>h,R9:()=>g});const i=1.5,r=2.5;function o(t,e=!1,n=!1,o=!1,s="m"){const a="s"===s?0:.25;let l=0;return t&&(l+=i+a),e&&(l+=i+a),n&&(l+=i+a),o&&(l+=r+a),l}var s=n(50035);function a(t){const e=t.endsWith("/")?t:`${t}/`;return t=>t.startsWith("tuiIcon")?`${e}${t}.svg${s.uJ}#${t}`:(0,s.oA)(t)}function l(t){return 1===t.length||s.Nq.includes(t)}var u=n(42600);function c(t,e="tui-hints-host"){var n;return!!(null===(n=(0,u.PU1)(t))||void 0===n?void 0:n.some((t=>!t.closest(e))))}function d(t){const e=t.trim();return e.startsWith("<")&&e.endsWith(">")}function h(t,e){return(n,i)=>{const r=n||Object.assign({},i||e);return Object.keys(t).forEach((e=>{r[e]=t[e]})),r}}const p={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function g(t,e="s"){return p[t]>p[e]}},19633:(t,e,n)=>{n.d(e,{Xi:()=>i,vv:()=>P});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))();const r={months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],close:"关闭",nothingFoundMessage:"什么都没找到",defaultErrorMessage:"无效值",spinTexts:["前","后"],shortWeekDays:["周一","周二","周三","周四","周五","周六","周日"],countries:{[i.AD]:"安道尔",[i.AE]:"阿拉伯联合酋长国",[i.AF]:"阿富汗",[i.AG]:"安提瓜和巴布达",[i.AI]:"安圭拉",[i.AL]:"阿尔巴尼亚",[i.AM]:"亚美尼亚",[i.AO]:"安哥拉",[i.AR]:"阿根廷",[i.AT]:"奥地利",[i.AU]:"澳大利亚",[i.AW]:"阿鲁巴",[i.AZ]:"阿塞拜疆",[i.BA]:"波斯尼亚和黑塞哥维那",[i.BB]:"巴巴多斯",[i.BD]:"孟加拉国",[i.BE]:"比利时",[i.BF]:"布基纳法索",[i.BG]:"保加利亚",[i.BH]:"巴林",[i.BI]:"布隆迪",[i.BJ]:"贝宁",[i.BL]:"圣巴泰勒米岛",[i.BM]:"百慕大",[i.BN]:"文莱达鲁萨兰国",[i.BO]:"玻利维亚",[i.BQ]:"荷属加勒比区",[i.BR]:"巴西",[i.BS]:"巴哈马",[i.BT]:"不丹",[i.BW]:"博茨瓦纳",[i.BY]:"白罗斯",[i.BZ]:"伯利兹",[i.CA]:"加拿大",[i.CD]:"刚果民主共和國",[i.CF]:"中非共和国",[i.CG]:"刚果(布拉柴维尔)",[i.CH]:"瑞士",[i.CI]:"科特迪瓦",[i.CL]:"智利",[i.CM]:"喀麦隆",[i.CN]:"中国",[i.CO]:"哥伦比亚",[i.CR]:"哥斯达黎加",[i.CU]:"古巴",[i.CV]:"佛得角",[i.CW]:"库拉索岛",[i.CY]:"塞浦路斯",[i.CZ]:"捷克共和国",[i.DE]:"德国",[i.DJ]:"吉布提",[i.DK]:"丹麦",[i.DM]:"多米尼克",[i.DO]:"多米尼加共和国",[i.DZ]:"阿尔及利亚",[i.EC]:"厄瓜多尔",[i.EE]:"爱沙尼亚",[i.EG]:"埃及",[i.ER]:"厄立特里亚",[i.ES]:"西班牙",[i.ET]:"埃塞俄比亚",[i.FI]:"芬兰",[i.FJ]:"斐济",[i.FK]:"福克兰群岛",[i.FM]:"密克罗尼西亚联邦",[i.FR]:"法国",[i.GA]:"加蓬",[i.GB]:"英国",[i.GD]:"格林纳达",[i.GE]:"圭亚那",[i.GF]:"格鲁吉亚",[i.GH]:"加纳",[i.GI]:"直布罗陀",[i.GL]:"格陵兰",[i.GM]:"冈比亚",[i.GN]:"瓜德罗普岛",[i.GP]:"几内亚",[i.GQ]:"赤道几内亚",[i.GR]:"希腊",[i.GT]:"危地马拉",[i.GW]:"几内亚比绍",[i.GY]:"圭亚那",[i.HK]:"中国香港特别行政区",[i.HN]:"洪都拉斯",[i.HR]:"克罗地亚",[i.HT]:"海地",[i.HU]:"匈牙利",[i.ID]:"印度尼西亚",[i.IE]:"爱尔兰",[i.IL]:"以色列",[i.IN]:"印度",[i.IQ]:"伊拉克",[i.IR]:"伊朗",[i.IS]:"冰岛",[i.IT]:"意大利",[i.JM]:"牙买加",[i.JO]:"约旦",[i.JP]:"日本",[i.KE]:"肯尼亚",[i.KG]:"吉尔吉斯斯坦",[i.KH]:"柬埔寨",[i.KM]:"科摩罗",[i.KN]:"圣基茨和尼维斯",[i.KP]:"朝鲜",[i.KR]:"韩国",[i.KW]:"科威特",[i.KY]:"开曼群岛",[i.KZ]:"哈萨克斯坦",[i.LA]:"老挝",[i.LB]:"黎巴嫩",[i.LC]:"圣卢西亚",[i.LI]:"列支敦士登",[i.LK]:"斯里兰卡",[i.LR]:"利比里亚",[i.LS]:"莱索托",[i.LT]:"立陶宛",[i.LU]:"卢森堡",[i.LV]:"拉脱维亚",[i.LY]:"利比亚",[i.MA]:"摩洛哥",[i.MC]:"摩纳哥",[i.MD]:"摩尔多瓦",[i.ME]:"圣马丁",[i.MF]:"黑山",[i.MG]:"马达加斯加",[i.MK]:"北马其顿共和国",[i.ML]:"马里",[i.MM]:"缅甸",[i.MN]:"蒙古",[i.MO]:"马提尼克岛",[i.MQ]:"中国.澳门",[i.MR]:"毛里塔尼亚",[i.MS]:"蒙特塞拉特",[i.MT]:"马耳他",[i.MU]:"毛里求斯",[i.MV]:"马尔代夫",[i.MW]:"马拉维",[i.MX]:"墨西哥",[i.MY]:"马来西亚",[i.MZ]:"莫桑比克",[i.NA]:"纳米比亚",[i.NC]:"新喀里多尼亞",[i.NE]:"尼日尔",[i.NG]:"尼日利亚",[i.NI]:"尼加拉瓜",[i.NL]:"荷兰",[i.NO]:"挪威",[i.NP]:"尼泊尔",[i.NZ]:"新西兰",[i.OM]:"阿曼",[i.PA]:"巴拿马",[i.PE]:"秘鲁",[i.PF]:"法属波利尼西亚(大溪地)",[i.PG]:"巴布亚新几内亚",[i.PH]:"菲律宾",[i.PK]:"巴基斯坦",[i.PL]:"波兰",[i.PT]:"葡萄牙",[i.PW]:"帕劳",[i.PY]:"巴拉圭",[i.QA]:"会议",[i.RE]:"卡塔尔",[i.RO]:"罗马尼亚",[i.RS]:"塞尔维亚",[i.RU]:"俄罗斯",[i.RW]:"卢旺达",[i.SA]:"沙特阿拉伯",[i.SB]:"所罗门群岛",[i.SC]:"塞舌尔",[i.SD]:"苏丹",[i.SE]:"瑞典",[i.SG]:"新加坡",[i.SH]:"圣赫勒拿",[i.SI]:"斯洛文尼亚",[i.SK]:"斯洛伐克",[i.SL]:"塞拉利昂",[i.SM]:"圣马力诺",[i.SN]:"塞内加尔",[i.SO]:"索马里",[i.SR]:"苏里南",[i.ST]:"圣多美和普林西比",[i.SV]:"萨尔瓦多",[i.SX]:"圣马丁",[i.SY]:"阿拉伯叙利亚共和国",[i.SZ]:"斯威士兰",[i.TC]:"特克斯和凯科斯群岛",[i.TD]:"乍得",[i.TG]:"多哥",[i.TH]:"泰国",[i.TJ]:"塔吉克斯坦",[i.TL]:"东帝汶",[i.TM]:"土库曼斯坦",[i.TN]:"突尼斯",[i.TO]:"汤加",[i.TR]:"土耳其",[i.TT]:"特立尼达和多巴哥",[i.TW]:"台湾",[i.TZ]:"坦桑尼亚",[i.UA]:"乌克兰",[i.UG]:"乌干达",[i.US]:"美国",[i.UY]:"乌拉圭",[i.UZ]:"乌兹别克斯坦",[i.VC]:"圣文森特和格林纳丁斯",[i.VE]:"委内瑞拉",[i.VG]:"英属维尔京群岛",[i.VN]:"越南",[i.VU]:"瓦努阿图",[i.WS]:"萨摩亚",[i.XK]:"科索沃",[i.YE]:"也门",[i.YT]:"马约特岛",[i.ZA]:"南非",[i.ZM]:"赞比亚",[i.ZW]:"津巴布韦"}},o=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"chinese"},r),{cancel:"撤消",done:"完成",more:"更多",otherDate:"其他日期...",showAll:"显示所有",hide:"隐藏",mobileCalendarTexts:["选择日期","选择范围","選擇日期"],range:["从","至"],countTexts:["加","减"],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:["显示密码","隐藏密码"],copyTexts:["复制","已复制"],shortCalendarMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],pagination:["上一页","下一页"],fileTexts:{loadingError:"加载错误",preview:"预览",remove:"清除"},inputFileTexts:{defaultLabelSingle:"或拖动 它 这里",defaultLabelMultiple:"或拖动 它们 这里",defaultLinkSingle:"选择一个文件",defaultLinkMultiple:"选择多个文件",maxSizeRejectionReason:"文件超出大小 ",formatRejectionReason:"文件格式错误",drop:"把文件放在这里",dropMultiple:"把多个文件放在这里"},multiSelectTexts:{all:"全选",none:"选择无"},prompt:{yes:"是",no:"不"}}),{showHideText:"显示/隐藏",paginationTexts:{pages:"页面",linesPerPage:"每页行数",of:"于"}}),{cardNumber:["号码","信用卡号码"],cardExpiry:["有效期","信用卡有效期"]}),{colorSelectorModeNames:["纯色","渐变色"],toolbarTools:{undo:"撤消",redo:"重做",font:"字体",fontStyle:"字体样式",fontSize:"字体大小",bold:"加粗",italic:"斜体",underline:"下划线",strikeThrough:"删除线",justify:"对齐",justifyLeft:"左对齐",justifyCenter:"中心对齐",justifyRight:"右对齐",justifyFull:"两端对齐",list:"列表",indent:"缩进",outdent:"减小缩进",unorderedList:"无序列表",orderedList:"有序列表",quote:"引用",foreColor:"颜色",backColor:"背景颜色",hiliteColor:"高亮颜色",clear:"清除",link:"链接",attach:"附加文件",tex:"插入 TeX",code:"代码",image:"插入图片",insertHorizontalRule:"插入水平线",superscript:"上标",subscript:"下标",insertTable:"插入表格",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"合并单元格",splitCells:"拆分单元格",rowsColumnsManaging:"管理行和列",cellColor:"单元格颜色",setDetails:"详细信息",removeDetails:"删除详细信息"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["在前面插入列","在后面插入列"],["在前面插入行","在后面插入行"],["删除列","删除行"]],editorCodeOptions:["文中代码","代码块"],editorFontOptions:{small:"小的",large:"大的",normal:"普通的",title:"标题",subtitle:"副标题"}}),{previewTexts:{rotate:"旋转"},zoomTexts:{zoomOut:"缩小",zoomIn:"放大",reset:"重置"}}),{months:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],close:"Sluiten",nothingFoundMessage:"Niets gevonden",defaultErrorMessage:"Ongeldige waarde",spinTexts:["Vorige","Volgende"],shortWeekDays:["Maa","Din","Woe","Don","Vri","Zat","Zon"],countries:{[i.AD]:"Andorra",[i.AE]:"Verenigde Arabische Emiraten",[i.AF]:"Afghanistan",[i.AG]:"Antigua en Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albanië",[i.AM]:"Armenië",[i.AO]:"Angola",[i.AR]:"Argentinië",[i.AT]:"Oostenrijk",[i.AU]:"Australië",[i.AW]:"Aruba",[i.AZ]:"Azerbeidzjan",[i.BA]:"Bosnië en Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"België",[i.BF]:"Burkina Faso",[i.BG]:"Bulgarije",[i.BH]:"Bahrein",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Sankt Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius en Saba",[i.BR]:"Brazilië",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Wit-Rusland",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Centraal-Afrikaanse Republiek",[i.CG]:"Congo-Brazzaville",[i.CH]:"Zwitserland",[i.CI]:"Ivoorkust",[i.CL]:"Chili",[i.CM]:"Kameroen",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Kaapverdië",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Tsjechië",[i.DE]:"Duitsland",[i.DJ]:"Djibouti",[i.DK]:"Denemarken",[i.DM]:"Dominica",[i.DO]:"Dominicaanse Republiek",[i.DZ]:"Algerije",[i.EC]:"Ecuador",[i.EE]:"Estland",[i.EG]:"Egypte",[i.ER]:"Eritrea",[i.ES]:"Spanje",[i.ET]:"Ethiopië",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Eilanden",[i.FM]:"V.S. van Micronesië",[i.FR]:"Frankrijk",[i.GA]:"Gabon",[i.GB]:"Verenigd Koningkrijk",[i.GD]:"Grenada",[i.GE]:"Georgië",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadeloupe",[i.GQ]:"Equatoriaal-Guinea",[i.GR]:"Griekenland",[i.GT]:"Guatemala",[i.GW]:"Guinee-Bissau",[i.GY]:"Guyana",[i.HK]:"Hongkong",[i.HN]:"Honduras",[i.HR]:"Kroatië",[i.HT]:"Haïti",[i.HU]:"Hongarije",[i.ID]:"Indonesië",[i.IE]:"Ierland",[i.IL]:"Israël",[i.IN]:"India",[i.IQ]:"Irak",[i.IR]:"Iran",[i.IS]:"IJsland",[i.IT]:"Italië",[i.JM]:"Jamaica",[i.JO]:"Jordanië",[i.JP]:"Japan",[i.KE]:"Kenia",[i.KG]:"Kirgizië",[i.KH]:"Cambodja",[i.KM]:"Comoren",[i.KN]:"Saint Kitts en Nevis",[i.KP]:"Democratische Volksrepubliek Korea",[i.KR]:"Republiek Korea",[i.KW]:"Koeweit",[i.KY]:"Kaaiman Eilanden",[i.KZ]:"Kazachstan",[i.LA]:"Laos",[i.LB]:"Libanon",[i.LC]:"Sint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litouwen",[i.LU]:"Luxemburg",[i.LV]:"Letland",[i.LY]:"Libië",[i.MA]:"Marokko",[i.MC]:"Monaco",[i.MD]:"Moldavië",[i.ME]:"Montenegro",[i.MF]:"Sankt Martin",[i.MG]:"Madagascar",[i.MK]:"Rep. van Noord-Macedonië",[i.ML]:"Mali",[i.MM]:"Birma (Myanmar)",[i.MN]:"Mongolië",[i.MO]:"Macau",[i.MQ]:"Martinique",[i.MR]:"Mauritanië",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Maleisië",[i.MZ]:"Mozambique",[i.NA]:"Namibië",[i.NC]:"Nieuw-Caledonië",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Nederland",[i.NO]:"Noorwegen",[i.NP]:"Nepal",[i.NZ]:"Nieuw-Zeeland",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Frans Polynesië (Tahiti)",[i.PG]:"Papoea-Nieuw-Guinea",[i.PH]:"Filippijnen",[i.PK]:"Pakistan",[i.PL]:"Polen",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Besprechung",[i.RO]:"Roemenië",[i.RS]:"Serbia",[i.RU]:"Servië",[i.RW]:"Rwanda",[i.SA]:"Saoedi-Arabië",[i.SB]:"Salomonseilanden",[i.SC]:"Seychellen",[i.SD]:"Soedan",[i.SE]:"Zweden",[i.SG]:"Singapore",[i.SH]:"Sint-Helena, Ascension en Tristan da Cunha",[i.SI]:"Slovenië",[i.SK]:"Slowakije",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalië",[i.SR]:"Suriname",[i.ST]:"Sao Tomé en Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Arabische Rep. Syrië",[i.SZ]:"Swaziland",[i.TC]:"Turks- en Caicoseilanden",[i.TD]:"Tsjaad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tadzjikistan",[i.TL]:"Oost Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunesië",[i.TO]:"Tonga",[i.TR]:"Turkije",[i.TT]:"Trinidad en Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Oekraïne",[i.UG]:"Oeganda",[i.US]:"Verenigde Staten",[i.UY]:"Uruguay",[i.UZ]:"Oezbekistan",[i.VC]:"Saint Vincent en de Grenadines",[i.VE]:"Venezuela",[i.VG]:"Britse Maagdeneilanden",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Jemen",[i.YT]:"Mayotte",[i.ZA]:"Zuid-Afrika",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),s=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"dutch"},o),{cancel:"Annuleren",done:"Klaar",more:"Meer",otherDate:"Andere datum ...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Kies een dag","Kies bereik","Kies dagen"],range:["van","tot"],countTexts:["Plus","Min"],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:["Toon wachtwoord","Wachtwoord verbergen"],copyTexts:["Kopieer","Gekopieerd"],shortCalendarMonths:["Jan","Feb","Maa","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],pagination:["Vorige pagina","Volgende pagina"],fileTexts:{loadingError:"Error bij het laden",preview:"Voorbeeld",remove:"Verwijder"},inputFileTexts:{defaultLabelSingle:"of zet het hier",defaultLabelMultiple:"of zet ze hier",defaultLinkSingle:"Kies een bestand",defaultLinkMultiple:"Kies bestanden",maxSizeRejectionReason:"Bestandsgrootte overschreden ",formatRejectionReason:"Verkeerd bestandsformaat",drop:"Zet hier bestand neer",dropMultiple:"Zet hier bestanden neer"},multiSelectTexts:{all:"Selecteer alles",none:"Selecteer geen"},prompt:{yes:"Ja",no:"Ingen"}}),{showHideText:"Toon/Verberg",paginationTexts:{pages:"Pagina's",linesPerPage:"Lijnen per pagina",of:"van"}}),{cardNumber:["Nummer","Kaartnummer"],cardExpiry:["Vervaldatum","Vervaldatum Kaart"]}),{colorSelectorModeNames:["Effen kleur","Kleurverloop"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Lettertype",fontStyle:"Tekenstijl",fontSize:"Punten",bold:"Vet",italic:"Cursief",underline:"Onderstrepen",strikeThrough:"Doorhalen",justify:"Uitlijning",justifyLeft:"Uitlijning links",justifyCenter:"Uitlijning midden",justifyRight:"Uitlijning rechts",justifyFull:"Uitlijning uitvullen",list:"Lijst",indent:"Inspringen",outdent:"Uitspringen",unorderedList:"Ongesorteerde lijst",orderedList:"Gesorteerde lijst",quote:"Citeren",foreColor:"Kleur",backColor:"Achtergrondkleur",hiliteColor:"Tekstmarkeringskleur",clear:"Wis",link:"Koppeling",attach:"Bestand toevoegen",tex:"TeX toevoegen",code:"Code",image:"Afbeelding toevoegen",insertHorizontalRule:"Horizontale lijn toevoegen",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"}}),{[i.AD]:"Andorra",[i.AE]:"United Arab Emirates",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia and Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius and Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Central African Republic",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Czech Republic",[i.DE]:"Germany",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Dominican Republic",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egypt",[i.ER]:"Eritrea",[i.ES]:"Spain",[i.ET]:"Ethiopia",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Islands",[i.FM]:"F.S. of Micronesia",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Japan",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Cambodia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts and Nevis",[i.KP]:"Korean PDR",[i.KR]:"Rep. Korea",[i.KW]:"Kuwait",[i.KY]:"Cayman Islands",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Rep. of North Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Netherlands",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Saudi Arabia",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome and Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syrian Arab Republic",[i.SZ]:"Swaziland",[i.TC]:"Turks and Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"East Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turkey",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"USA",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent and the Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.ZA]:"South Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}),a={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:s},l=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},a),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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 larger than ",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"}}),u={months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],close:"Fermer",nothingFoundMessage:"Aucun résultat",defaultErrorMessage:"Valeur non valide",spinTexts:["Précédent","Suivant"],shortWeekDays:["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],countries:{[i.AD]:"Andorre",[i.AE]:"Émirats arabes unis",[i.AF]:"Afghanistan",[i.AG]:"Antigua et Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albanie",[i.AM]:"Arménie",[i.AO]:"Angola",[i.AR]:"Argentine",[i.AT]:"Autriche",[i.AU]:"Australie",[i.AW]:"Aruba",[i.AZ]:"Azerbaïdjan",[i.BA]:"Bosnie-Herzégovine",[i.BB]:"Barbade",[i.BD]:"Bangladesh",[i.BE]:"Belgique",[i.BF]:"Burkina Faso",[i.BG]:"Bulgarie",[i.BH]:"Bahrein",[i.BI]:"Burundi",[i.BJ]:"Bénin",[i.BL]:"Saint-Barthélemy",[i.BM]:"Bermudes",[i.BN]:"Brunéi Darussalam",[i.BO]:"Bolivie",[i.BQ]:"Bonaire, Saint-Eustache et Saba",[i.BR]:"Brésil",[i.BS]:"Bahamas",[i.BT]:"Bhoutan",[i.BW]:"Botswana",[i.BY]:"Bélarus",[i.BZ]:"Bélize",[i.CA]:"Canada",[i.CD]:"République Démocratique du Congo (RDC)",[i.CF]:"République centrafricaine",[i.CG]:"Congo Brazzaville",[i.CH]:"Suisse",[i.CI]:"Côte d'Ivoire",[i.CL]:"Chili",[i.CM]:"Cameroun",[i.CN]:"Chine",[i.CO]:"Colombie",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cap-Vert",[i.CW]:"Curaçao",[i.CY]:"Chypre",[i.CZ]:"République Tchèque",[i.DE]:"Allemagne",[i.DJ]:"Djibouti",[i.DK]:"Danemark",[i.DM]:"Dominique",[i.DO]:"République Dominicaine",[i.DZ]:"Algérie",[i.EC]:"Équateur",[i.EE]:"Estonie",[i.EG]:"Égypte",[i.ER]:"Érythrée",[i.ES]:"Espagne",[i.ET]:"Éthiopie",[i.FI]:"Finlande",[i.FJ]:"Fidji",[i.FK]:"Iles Malouines/Falkland",[i.FM]:"États fédérés de Micronésie",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"Royaume-Uni",[i.GD]:"Grenade",[i.GE]:"Géorgie",[i.GF]:"Guyane",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenland",[i.GM]:"Gambie",[i.GN]:"Guinée",[i.GP]:"Guadeloupe",[i.GQ]:"Guinée équatoriale",[i.GR]:"Grèce",[i.GT]:"Guatemala",[i.GW]:"Guinée-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatie",[i.HT]:"Haïti",[i.HU]:"Hongrie",[i.ID]:"Indonesia",[i.IE]:"Irlande",[i.IL]:"Israël",[i.IN]:"Inde",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Islande",[i.IT]:"Italie",[i.JM]:"Jamaïque",[i.JO]:"Jordanie",[i.JP]:"Japon",[i.KE]:"Kenya",[i.KG]:"Kirghizistan",[i.KH]:"Cambodge",[i.KM]:"Comores",[i.KN]:"Saint-Kitts-et-Nevis",[i.KP]:"Corée du Nord",[i.KR]:"Corée du Sud",[i.KW]:"Koweït",[i.KY]:"Iles Caïmans",[i.KZ]:"Kazakhstan",[i.LA]:"Lao",[i.LB]:"Liban",[i.LC]:"Sainte-Lucie",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Libéria",[i.LS]:"Lesotho",[i.LT]:"Lituanie",[i.LU]:"Luxembourg",[i.LV]:"Lettonie",[i.LY]:"Libye",[i.MA]:"Maroc",[i.MC]:"Monaco",[i.MD]:"Moldavie",[i.ME]:"Monténégro",[i.MF]:"Saint-Martin",[i.MG]:"Madagascar",[i.MK]:"Macédoine",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolie",[i.MO]:"Macao",[i.MQ]:"Martinique",[i.MR]:"Mauritanie",[i.MS]:"Montserrat",[i.MT]:"Malte",[i.MU]:"Maurice",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexique",[i.MY]:"Malaisie",[i.MZ]:"Mozambique",[i.NA]:"Namibie",[i.NC]:"Nouvelle-Calédonie",[i.NE]:"Niger",[i.NG]:"Nigéria",[i.NI]:"Nicaragua",[i.NL]:"Pays-Bas",[i.NO]:"Norvège",[i.NP]:"Népal",[i.NZ]:"Nouvelle-Zélande",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Pérou",[i.PF]:"Polynésie française",[i.PG]:"Papouasie-Nouvelle-Guinée",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Pologne",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"La Réunion",[i.RO]:"Roumanie",[i.RS]:"Serbie",[i.RU]:"Russie",[i.RW]:"Rwanda",[i.SA]:"Arabie Saoudite",[i.SB]:"Iles Salomon",[i.SC]:"Seychelles",[i.SD]:"Soudan",[i.SE]:"Suède",[i.SG]:"Singapour",[i.SH]:"Sainte-Hélène",[i.SI]:"Slovénie",[i.SK]:"Slovaquie",[i.SL]:"Sierra Leone",[i.SM]:"Saint-Marin",[i.SN]:"Sénégal",[i.SO]:"Somalie",[i.SR]:"Suriname",[i.ST]:"Sao Tomé-et-Principe",[i.SV]:"El Salvador",[i.SX]:"Saint-Martin",[i.SY]:"République arabe syrienne",[i.SZ]:"Swaziland",[i.TC]:"Iles Turks-et-Caïcos",[i.TD]:"Tchad",[i.TG]:"Togo",[i.TH]:"Thaïlande",[i.TJ]:"Tadjikistan",[i.TL]:"Timor-Leste",[i.TM]:"Turkménistan",[i.TN]:"Tunisie",[i.TO]:"Tonga",[i.TR]:"Turquie",[i.TT]:"Trinité-et-Tobago",[i.TW]:"Taïwan",[i.TZ]:"Tanzanie",[i.UA]:"Ukraine",[i.UG]:"Ouganda",[i.US]:"États-Unis d'Amérique",[i.UY]:"Uruguay",[i.UZ]:"Ouzbékistan",[i.VC]:"Saint-Vincent-et-les-Grenadines",[i.VE]:"Venezuela",[i.VG]:"Iles vierges britanniques",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yémen",[i.YT]:"Mayotte",[i.ZA]:"Afrique du Sud",[i.ZM]:"Zambie",[i.ZW]:"Zimbabwe"}},c=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"french"},u),{cancel:"Annuler",done:"Terminé",more:"Plus",otherDate:"Autre date...",showAll:"Tout afficher",hide:"Cacher",mobileCalendarTexts:["Choisir un jour","Choisir un intervalle","Choisissez des jours"],range:["De","À"],countTexts:["Plus","Moins"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"jj.mm.aaaa",MDY:"mm.jj.aaaa",YMD:"aaaa.mm.jj"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Afficher le mot de passe","Cacher le mot de passe"],copyTexts:["Copier","Copié"],shortCalendarMonths:["Janv","Fév","Mar","Avr","Mai","Jun","Jui","Aoû","Sep","Oct","Nov","Déc"],pagination:["Page précédente","Page suivante"],fileTexts:{loadingError:"Erreur de chargement",preview:"Aperçu",remove:"Supprimer"},inputFileTexts:{defaultLabelSingle:"ou déposez-le ici",defaultLabelMultiple:"ou déposez-les ici",defaultLinkSingle:"Sélectionnez un fichier",defaultLinkMultiple:"Sélectionnez des fichiers",maxSizeRejectionReason:"Le fichier est trop volumineux",formatRejectionReason:"Format de fichier incorrect",drop:"Déposez le fichier ici",dropMultiple:"Déposez les fichiers ici"},multiSelectTexts:{all:"Tout sélectionner",none:"Ne rien sélectionner"},prompt:{yes:"Oui",no:"Non"}}),{showHideText:"Afficher/Cacher",paginationTexts:{pages:"Pages",linesPerPage:"Lignes par page",of:"de"}}),{cardNumber:["Number","Numéro de carte"],cardExpiry:["Expiry",'Date d"Expiration de la carte']}),{colorSelectorModeNames:["Couleur unie","Dégradé de couleur"],toolbarTools:{undo:"Annuler",redo:"Rétablir",font:"Police",fontStyle:"Style de police",fontSize:"Taille de police",bold:"Gras",italic:"Italique",underline:"Souligner",strikeThrough:"Barrer",justify:"Justifier",justifyLeft:"Aligner à gauche",justifyCenter:"Centrer",justifyRight:"Justifier à droite",justifyFull:"Justifier",list:"Liste",indent:"Indenter",outdent:"Réduire le retrait",unorderedList:"Liste à puces",orderedList:"Liste numérotée",quote:"Citation",foreColor:"Couleur de texte",backColor:"Couleur de fond",hiliteColor:"Couleur de mise en évidence",clear:"Effacer",link:"Lien",attach:"Joindre un fichier",tex:"Insérer TeX",code:"Code",image:"Insérer une image",insertHorizontalRule:"Insérer une règle horizontale",superscript:"Exposant",subscript:"Indice",insertTable:"Insérer une table",insertGroup:"Insérer un groupe",hiliteGroup:"Hilite group",removeGroup:"Supprimer le groupe",insertAnchor:"Insérer une ancre",mergeCells:"Fusionner les cellules",splitCells:"Diviser les cellules",rowsColumnsManaging:"Gestion des lignes et des colonnes",cellColor:"Couleur de la cellule",setDetails:"Accordéon",removeDetails:"Supprimer l'accordéon"},editorEditLink:{urlExample:"exemple.com",anchorExample:"ancre"},editorTableCommands:[["Insérer une colonne avant","Insérer une colonne après"],["Insérer une ligne avant","Insérer une ligne après"],["Supprimer la colonne","Supprimer la ligne"]],editorCodeOptions:["Code dans le texte","Bloc de code"],editorFontOptions:{small:"Petite",large:"Grande",normal:"Normale",title:"Titre",subtitle:"Sous-titre"}}),{previewTexts:{rotate:"Faire pivoter"},zoomTexts:{zoomOut:"Zoomer",zoomIn:"Dézoomer",reset:"Réinitialiser"}}),{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],close:"Schließen",nothingFoundMessage:"Keine Ergebnisse",defaultErrorMessage:"Wert ist ungültig",spinTexts:["Zurück","Weiter"],shortWeekDays:["Mo","Di","Mi","Do","Fr","Sa","So"],countries:s}),d=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"german"},c),{cancel:"Abbrechen",done:"Fertig",more:"Mehr",otherDate:"Anderes Datum...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Tag auswählen","Zeitraum auswählen","Wählen Sie Tage"],range:["von","bis"],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:["Passwort anzeigen","Passwort ausblenden"],copyTexts:["Kopieren","Kopiert"],shortCalendarMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],pagination:["Vorherige Seite","Nächste Seite"],fileTexts:{loadingError:"Fehler beim Laden",preview:"Vorschau",remove:"Entfernen"},inputFileTexts:{defaultLabelSingle:"oder einzelne Datei hier ablegen",defaultLabelMultiple:"oder mehrere Dateien hier ablegen",defaultLinkSingle:"Datei auswählen",defaultLinkMultiple:"Dateien auswählen",maxSizeRejectionReason:"Die Dateigröße überschreitet die maximal zulässige Größe von ",formatRejectionReason:"Ungültiges Dateiformat",drop:"Datei hier ablegen",dropMultiple:"Dateien hier ablegen"},multiSelectTexts:{all:"Alles auswählen",none:"Keine auswählen"},prompt:{yes:"Ja",no:"Nein"}}),{showHideText:"Anzeigen/Ausblenden",paginationTexts:{pages:"Seiten",linesPerPage:"Zeilen pro Seite",of:"von"}}),{cardNumber:["Nummer","Kartennummer"],cardExpiry:["Gültig bis","Ablaufdatum Karte"]}),{colorSelectorModeNames:["Farbe","Verlauf"],toolbarTools:{undo:"Rückgängig machen",redo:"Wiederholen",font:"Schriftart",fontStyle:"Schriftstil",fontSize:"Schriftgröße",bold:"Fett",italic:"Kursiv",underline:"Unterstrichen",strikeThrough:"Durchgestrichen",justify:"Blocksatz",justifyLeft:"Blocksatz links",justifyCenter:"Blocksatz mittig",justifyRight:"Blocksatz rechts",justifyFull:"Blocksatz",list:"Liste",indent:"Einrücken",outdent:"Ausrücken",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",quote:"Blockquote",foreColor:"Farbe",backColor:"Hintergrundfarbe",hiliteColor:"Hilite-Farbe",clear:"Löschen",link:"Link",attach:"Datei anhängen",tex:"TeX einfügen",code:"Quelltext",image:"Bild einfügen",insertHorizontalRule:"Horizontale Linie einfügen",superscript:"Hochgestellt",subscript:"Tiefgestellt",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:"Rotieren"},zoomTexts:{zoomOut:"Verkleinern",zoomIn:"Vergrößern",reset:"Zurücksetzen"}}),{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],close:"Chiudi",nothingFoundMessage:"Non abbiamo trovato nulla",defaultErrorMessage:"Il valore non è valido",spinTexts:["Precedente","Prossimo"],shortWeekDays:["Lun","Mar","Mer","Gio","Ven","Sab","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emirati Arabi Uniti",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia Erzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgio",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Saint Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius e Saba",[i.BR]:"Brasile",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Bielorussia",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Repubblica Democratica del Congo",[i.CF]:"Repubblica Centroafricana",[i.CG]:"Repubblica del Congo",[i.CH]:"Svizzera",[i.CI]:"Costa d'Avorio",[i.CL]:"Cile",[i.CM]:"Camerun",[i.CN]:"Cina",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Capo Verde",[i.CW]:"Curaçao",[i.CY]:"Cipro",[i.CZ]:"Repubblica Ceca",[i.DE]:"Germania",[i.DJ]:"Gibuti",[i.DK]:"Danimarca",[i.DM]:"Dominica",[i.DO]:"Repubblica Dominicana",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egitto",[i.ER]:"Eritrea",[i.ES]:"Spagna",[i.ET]:"Etiopia",[i.FI]:"Finlandia",[i.FJ]:"Fiji",[i.FK]:"Isole Falkland",[i.FM]:"Stati Federali della Micronesia",[i.FR]:"Francia",[i.GA]:"Gabon",[i.GB]:"Regno Unito",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibilterra",[i.GL]:"Groenlandia",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadalupa",[i.GQ]:"Guinea Equatoriale",[i.GR]:"Grecia",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croazia",[i.HT]:"Haiti",[i.HU]:"Ungheria",[i.ID]:"Indonesia",[i.IE]:"Eire",[i.IL]:"Israele",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Islanda",[i.IT]:"Italia",[i.JM]:"Giamaica",[i.JO]:"Giordania",[i.JP]:"Giappone",[i.KE]:"Kenya",[i.KG]:"Kirghizistan",[i.KH]:"Cambogia",[i.KM]:"Comore",[i.KN]:"Saint Kitts e Nevis",[i.KP]:"Corea del Nord",[i.KR]:"Corea del Sud",[i.KW]:"Kuwait",[i.KY]:"Isole Cayman",[i.KZ]:"Kazakhistan",[i.LA]:"Laos",[i.LB]:"Libano",[i.LC]:"Santa Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lituania",[i.LU]:"Lussemburgo",[i.LV]:"Lettonia",[i.LY]:"Libia",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"San Martino",[i.MG]:"Madagascar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Maurizius",[i.MV]:"Maldive",[i.MW]:"Malawi",[i.MX]:"Messico",[i.MY]:"Malesia",[i.MZ]:"Mozambico",[i.NA]:"Namibia",[i.NC]:"Nuova Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Paesi Bassi",[i.NO]:"Norvegia",[i.NP]:"Nepal",[i.NZ]:"Nuova Zelanda",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Perù",[i.PF]:"Polinesia Francese",[i.PG]:"Papua Nuova Guinea",[i.PH]:"Filippine",[i.PK]:"Pakistan",[i.PL]:"Polonia",[i.PT]:"Portogallo",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Riunione",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Federazione Russa",[i.RW]:"Ruanda",[i.SA]:"Arabia Saudita",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Svezia",[i.SG]:"Singapore",[i.SH]:"Sant'Elena",[i.SI]:"Slovenia",[i.SK]:"Slovacchia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome e Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Siria",[i.SZ]:"Swaziland",[i.TC]:"Isole Turks e Caicos",[i.TD]:"Ciad",[i.TG]:"Togo",[i.TH]:"Tailandia",[i.TJ]:"Tagikistan",[i.TL]:"Timor Est",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turchia",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ucraina",[i.UG]:"Uganda",[i.US]:"Stati Uniti d'America",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent e Grenadine",[i.VE]:"Venezuela",[i.VG]:"Isole Vergini Britanniche",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.YT]:"Mayotta",[i.ZA]:"Sud Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),h=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"italian"},d),{cancel:"Annulla",done:"Fatto",more:"Di più",otherDate:"Altra data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Scegli giorno","Scegli intervallo","Scegli i giorni"],range:["da","a"],countTexts:["Più","Meno"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"gg.mm.aaaa",MDY:"mm.gg.aaaa",YMD:"aaaa.mm.gg"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Mostra password","Nascondi password"],copyTexts:["Copia","Copiato"],shortCalendarMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],pagination:["Pagina precedente","Pagina successiva"],fileTexts:{loadingError:"Caricamento errore",preview:"Anteprima",remove:"Rimuovi"},inputFileTexts:{defaultLabelSingle:"o trascinalo qui",defaultLabelMultiple:"o trascinali qui",defaultLinkSingle:"Scegliere il file",defaultLinkMultiple:"Scegliere i file",maxSizeRejectionReason:"Il file supera le dimensioni ",formatRejectionReason:"Formato file errato",drop:"Trascina il file qui",dropMultiple:"Trascina i file qui"},multiSelectTexts:{all:"Seleziona tutto",none:"Seleziona nessuno"},prompt:{yes:"Sì",no:"No"}}),{showHideText:"Mostra/Nascondi",paginationTexts:{pages:"Pagine",linesPerPage:"Righe per pagina",of:"di"}}),{cardNumber:["Numero","Numero carta"],cardExpiry:["Scade il","Valida fino al"]}),{colorSelectorModeNames:["Tinta unita","Gradiente"],toolbarTools:{undo:"Annulla",redo:"Rifai",font:"Font",fontStyle:"Stile font",fontSize:"Dimensione font",bold:"Grassetto",italic:"Corsivo",underline:"Sottolineato",strikeThrough:"Barrato",justify:"Giustifica",justifyLeft:"Allinea a sinistra",justifyCenter:"Allinea al centro",justifyRight:"Allinea a destra",justifyFull:"Giustifica pieno",list:"Lista",indent:"Rientro",outdent:"Elimina rientro",unorderedList:"Lista non ordinata",orderedList:"Lista ordinata",quote:"Virgolette",foreColor:"Colore",backColor:"Colore sfondo",hiliteColor:"Evidenziazione del testo",clear:"Pulisci",link:"Link",attach:"Allega file",tex:"Inserisci TeX",code:"Codice",image:"Inserisci image",insertHorizontalRule:"Inserisci riga orizzontale",superscript:"Apice",subscript:"Pedice",insertTable:"Inserisci tabella",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Unisci celle",splitCells:"Dividi celle",rowsColumnsManaging:"Gestione righe e colonne",cellColor:"Colore cella",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Inserisci colonna prima","Inserisci colonna dopo"],["Inserisci riga prima","Inserisci riga dopo"],["Cancella colonna","Cancella riga"]],editorCodeOptions:["Codice nel testo","Codice nel blocco"],editorFontOptions:{small:"Small",normal:"Normale",large:"Large",title:"Titolo",subtitle:"Sottotitolo"}}),{previewTexts:{rotate:"Ruota"},zoomTexts:{zoomOut:"Rimpicciolisci",zoomIn:"Ingrandisci",reset:"Ripristina"}}),{months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],close:"Жабық",nothingFoundMessage:"Ештеңе табылмады",defaultErrorMessage:"Мән жарамсыз",spinTexts:["Алдыңғы","Келесі"],shortWeekDays:["Дүй","Ссе","Сәр","Бсе","Жұм","Сб","Жек"],countries:{[i.AD]:"Andorra",[i.AE]:"United Arab Emirates",[i.AF]:"Afghanistan",[i.AG]:"Antigua and Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia and Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius and Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Dem. Rep. Congo (Kinshasa)",[i.CF]:"Central African Republic",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Czech Republic",[i.DE]:"Germany",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Dominican Republic",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egypt",[i.ER]:"Eritrea",[i.ES]:"Spain",[i.ET]:"Ethiopia",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Falkland Islands",[i.FM]:"F.S. of Micronesia",[i.FR]:"France",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Japan",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Cambodia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts and Nevis",[i.KP]:"Korean PDR",[i.KR]:"Rep. Korea",[i.KW]:"Kuwait",[i.KY]:"Cayman Islands",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Morocco",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Rep. of North Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Netherlands",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Saudi Arabia",[i.SB]:"Solomon Islands",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome and Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syrian Arab Republic",[i.SZ]:"Swaziland",[i.TC]:"Turks and Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"East Timor",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turkey",[i.TT]:"Trinidad and Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"USA",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent and the Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.ZA]:"South Africa",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),p=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"kazakh"},h),{cancel:"Болдырмау",done:"Дайын",more:"Көбірек",otherDate:"Басқа күн...",showAll:"Барлығын көрсету",hide:"Жасыру",mobileCalendarTexts:["Күнді таңдаңыз","Аралықты таңдаңыз","Күндерді таңдаңыз"],range:["бастап","дейін"],countTexts:["Плюс","Минус"],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:["Құпия сөзді көрсету","Құпия сөзді жасыру"],copyTexts:["Көшіру","Көшірілген"],shortCalendarMonths:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],pagination:["Алдыңғы бет","Келесі бет"],fileTexts:{loadingError:"Жүктеп салу сәтсіз аяқталды",preview:"Алдын ала қарау",remove:"Жою"},inputFileTexts:{defaultLabelSingle:"немесе тастаңыз ол мұнда",defaultLabelMultiple:"немесе тастаңыз олар мұнда",defaultLinkSingle:"Файлды таңдаңыз",defaultLinkMultiple:"Файлдарды таңдаңыз",maxSizeRejectionReason:"Файл тым үлкен",formatRejectionReason:"Қате файл түрі",drop:"Файлды осы жерге тастаңыз",dropMultiple:"Файлдарды осы жерге тастаңыз"},multiSelectTexts:{all:"Барлығын таңдаңыз",none:"Ешбіреуін таңдау"},prompt:{yes:"Иә",no:"Жоқ"}}),{showHideText:"Көрсету/Жасыру",paginationTexts:{pages:"Беттер",linesPerPage:"Әр беттегі жолдар",of:"ның"}}),{cardNumber:["Сан","Карточка нөмірі"],cardExpiry:["Мерзімі бітеді","Арқылы жарамды"]}),{colorSelectorModeNames:["Бірыңғай түс","Градиент"],toolbarTools:{undo:"Болдырмау",redo:"Қайталау",font:"Қаріп",fontStyle:"Қаріп стилі",fontSize:"Қаріп өлшемі",bold:"Қалың",italic:"Курсив",underline:"Астын сызу",strikeThrough:"Соғу",justify:"Ақтау",justifyLeft:"Сол жаққа ақтаңыз",justifyCenter:"Орталықты негіздеу",justifyRight:"Дұрыс негіздеу",justifyFull:"Толық негіздеу",list:"Тізім",indent:"Шегініс",outdent:"Ашық",unorderedList:"Реттелмеген тізім",orderedList:"Реттелген тізім",quote:"Дәйексөз",foreColor:"Түс",backColor:"Фон түсі",hiliteColor:"Түсті бөлектеу",clear:"Таза",link:"Сілтеме",attach:"Файлды тіркеңіз",tex:"TeX енгізіңіз",code:"Код",image:"Суретті енгізу",insertHorizontalRule:"Көлденең ережені енгізіңіз",superscript:"Жоғарғы сызба",subscript:"Жазу",insertTable:"Кестені енгізу",insertGroup:"Топты енгізу",hiliteGroup:"Хилит тобы",removeGroup:"Топты жою",insertAnchor:"Анкерді салыңыз",mergeCells:"Ұяшықтарды біріктіру",splitCells:"Бөлінген жасушалар",rowsColumnsManaging:"Жолдар мен бағандарды басқару",cellColor:"Жасуша түсі",setDetails:"Егжей",removeDetails:"Мәліметтерді жою"},editorEditLink:{urlExample:"example.com",anchorExample:"Якорь"},editorTableCommands:[["Алдында бағанды енгізу","Бағананы кейін енгізіңіз"],["Алдында жолды енгізіңіз","Жолды кейін енгізіңіз"],["Бағанды жою","Жолды жою"]],editorCodeOptions:["Мәтіндегі код","Блоктағы код"],editorFontOptions:{small:"Кішкентай",large:"Үлкен",normal:"Қалыпты",title:"Тақырып",subtitle:"Субтитр"}}),{previewTexts:{rotate:"Айналдыру"},zoomTexts:{zoomOut:"Кішірейту",zoomIn:"Үлкейту",reset:"Қалпына келтіру"}}),{months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"],close:"Tutup",nothingFoundMessage:"Tiada apa-apa Dijumpai",defaultErrorMessage:"Nilai tidak sah",spinTexts:["Sebelum","Selepas"],shortWeekDays:["Isn","Sel","Rab","Kha","Jum","Sab","Ahd"],countries:{[i.AD]:"Andorra",[i.AE]:"Emiriah Arab Bersatu",[i.AF]:"Afghanistan",[i.AG]:"Antigua dan Barbuda",[i.BL]:"Saint Barthélemy",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia dan Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Belgium",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.GF]:"Guyana",[i.BM]:"Bermuda",[i.BN]:"Brunei Darussalam",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius dan Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Kanada",[i.CD]:"Rep. Dem. Congo (Kinshasa)",[i.CF]:"Republik Afrika Tengah",[i.CG]:"Congo (Brazzaville)",[i.CH]:"Switzerland",[i.CI]:"Ivory Coast (Côte d'Ivoire)",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Cyprus",[i.CZ]:"Republik Czech",[i.DE]:"Jerman",[i.DJ]:"Djibouti",[i.DK]:"Denmark",[i.DM]:"Dominica",[i.DO]:"Republik Dominican",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Mesir",[i.ER]:"Eritrea",[i.ES]:"Sepanyol",[i.ET]:"Habsyah (Ethiopia)",[i.FI]:"Finland",[i.FJ]:"Fiji",[i.FK]:"Kepulauan Falkland",[i.FM]:"Persekutuan Mikronesia",[i.FR]:"Perancis",[i.GA]:"Gabon",[i.GB]:"United Kingdom",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GP]:"Guadeloupe",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.MF]:"Saint-Martin",[i.GQ]:"Equatorial Guinea",[i.GR]:"Greece",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Itali",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Jepun",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Kemboja",[i.KM]:"Comoros",[i.KN]:"Saint Kitts dan Nevis",[i.KP]:"Korea Utara",[i.KR]:"Korea Selatan",[i.KW]:"Kuwait",[i.KY]:"kepulauan Cayman",[i.KZ]:"Kazakhstan",[i.LA]:"Laos",[i.LB]:"Lubnan",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lithuania",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Maghribi",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MQ]:"Martinique",[i.MG]:"Madagascar",[i.MK]:"Republik Macedonia",[i.ML]:"Mali",[i.MM]:"Burma (Myanmar)",[i.MN]:"Mongolia",[i.MO]:"Macau",[i.RE]:"Réunion",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"New Caledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Belanda",[i.NO]:"Norway",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"French Polynesia (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Filipina",[i.PK]:"Pakistan",[i.PL]:"Poland",[i.PT]:"Portugal",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.YT]:"Mayotte",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Russia",[i.RW]:"Rwanda",[i.SA]:"Arab Saudi",[i.SB]:"Kepulauan Solomon",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Sweden",[i.SG]:"Singapura",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome dan Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Republik Arab Syria",[i.SZ]:"Swaziland",[i.TC]:"Turki dan Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thailand",[i.TJ]:"Tajikistan",[i.TL]:"Timor Timur",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Turki",[i.TT]:"Trinidad dan Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraine",[i.UG]:"Uganda",[i.US]:"Amerika Syarikat",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent dan Grenadines",[i.VE]:"Venezuela",[i.VG]:"British Virgin Islands",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yaman",[i.ZA]:"Afrika Selatan",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),g=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"malay"},p),{cancel:"Batal",done:"selesai",more:"Lebih",otherDate:"Tarikh lain...",showAll:"Tunjukkan semua",hide:"Sembunyi",mobileCalendarTexts:["Pilih hari","Pilih julat","Pilih hari"],range:["dari","ke"],countTexts:["Tambah","Tolak"],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:["Tunjukkan kata laluan","Sembunyikan kata laluan"],copyTexts:["Salin","Disalin"],shortCalendarMonths:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],pagination:["Halaman sebelumnya","Halaman seterusnya"],fileTexts:{loadingError:"Muatnaik gagal",preview:"Pratonton",remove:"Alih keluar"},inputFileTexts:{defaultLabelSingle:"atau lepaskan di sini",defaultLabelMultiple:"atau lepaskan mereka di sini",defaultLinkSingle:"Pilih sebuah fail",defaultLinkMultiple:"Pilih fail",maxSizeRejectionReason:"Fail terlalu besar",formatRejectionReason:"Jenis fail salah",drop:"Lepaskan fail di sini",dropMultiple:"Lepaskan fail di sini"},multiSelectTexts:{all:"Pilih semua",none:"pilih tiada"},prompt:{yes:"Ya",no:"tidak"}}),{showHideText:"Tunjuk/Sembunyi",paginationTexts:{pages:"Halaman",linesPerPage:"Baris setiap halaman",of:"dari"}}),{cardNumber:["Nombor","Nombor kad"],cardExpiry:["Tamat tempoh","Sah sehingga"]}),{colorSelectorModeNames:["Warna padu","Kecerunan"],toolbarTools:{undo:"Buat asal",redo:"Buat semula",font:"Huruf",fontStyle:"Gaya huruf",fontSize:"Saiz huruf",bold:"Tebal",italic:"Condong",underline:"Garis bawah",strikeThrough:"Tembus",justify:"Kelarasan",justifyLeft:"Kelarasan kiri",justifyCenter:"Kelarasan tengah",justifyRight:"Kelarasan kanan",justifyFull:"Kelarasan penuh",list:"Senarai",indent:"Inden",outdent:"Outden",unorderedList:"Senarai tidak teratur",orderedList:"Senarai teratur",quote:"petikan",foreColor:"Warna",backColor:"Warna latar belakang",hiliteColor:"Sorotan warna",clear:"Kosongkan",link:"Pautan",attach:"Lampirkan fail",tex:"Masukkan TeX",code:"Kod",image:"Masukkan gambar",insertHorizontalRule:"Masukkan peraturan mendatar",superscript:"Superskrip",subscript:"Subskrip",insertTable:"Masukkan jadual",insertGroup:"Masukkan kumpulan",hiliteGroup:"Sorotan kumpulan",removeGroup:"Buang kumpulan",insertAnchor:"Masukkan sauh",mergeCells:"Cantumkan sel",splitCells:"Pisahkan sel",rowsColumnsManaging:"Menguruskan baris dan lajur",cellColor:"Warna sel",setDetails:"Butiran",removeDetails:"Buang butiran"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Masukkan lajur sebelum","Masukkan lajur selepas"],["Masukkan baris sebelum","Masukkan baris selepas"],["Padam lajur","Padam baris"]],editorCodeOptions:["Kod dalam teks","Kod dalam blok"],editorFontOptions:{small:"Kecil",large:"Besar",normal:"Biasa",title:"Tajuk",subtitle:"Sarikata"}}),{previewTexts:{rotate:"Putar"},zoomTexts:{zoomOut:"Zum keluar",zoomIn:"Zum masuk",reset:"Set semula"}}),{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],close:"Zamknij",nothingFoundMessage:"Nic nie znaleziono",defaultErrorMessage:"Nieprawidłowa wartość",spinTexts:["Poprzedni","Następny"],shortWeekDays:["Pon","Wt","Śr","Czw","Pt","Sob","Nie"],countries:{[i.AD]:"Andora",[i.AE]:"Zjednoczone Emiraty Arabskie",[i.AF]:"Afganistan",[i.AG]:"Antigua i Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentyna",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbejdżan",[i.BA]:"Bośnia i Hercegowina",[i.BB]:"Barbados",[i.BD]:"Bangladesz",[i.BE]:"Belgia",[i.BF]:"Burkina Faso",[i.BG]:"Bułgaria",[i.BH]:"Bahrajn",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Święty Barthélemy",[i.BM]:"Bermudy",[i.BN]:"Brunei",[i.BO]:"Boliwia",[i.BQ]:"Bonaire, Sint Eustatius i Saba",[i.BR]:"Brazylia",[i.BS]:"Bahamy",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Białoruś",[i.BZ]:"Belize",[i.CA]:"Kanada",[i.CD]:"Demokratyczna Republika Konga",[i.CF]:"Republika Środkowoafrykańska",[i.CG]:"Kongo",[i.CH]:"Szwajcaria",[i.CI]:"Wybrzeże Kości Słoniowej",[i.CL]:"Chile",[i.CM]:"Kamerun",[i.CN]:"Chiny",[i.CO]:"Kolumbia",[i.CR]:"Kostaryka",[i.CU]:"Kuba",[i.CV]:"Republika Zielonego Przylądka",[i.CW]:"Curaçao",[i.CY]:"Cypr",[i.CZ]:"Czechy",[i.DE]:"Niemcy",[i.DJ]:"Dżibuti ",[i.DK]:"Dania",[i.DM]:"Dominika",[i.DO]:"Dominikana",[i.DZ]:"Algieria",[i.EC]:"Ekwador",[i.EE]:"Estonia",[i.EG]:"Egipt",[i.ER]:"Erytrea",[i.ES]:"Hiszpania",[i.ET]:"Etiopia",[i.FI]:"Finlandia",[i.FJ]:"Fidżi",[i.FK]:"Falklandy",[i.FM]:"Mikronezja",[i.FR]:"Francja",[i.GA]:"Gabon",[i.GB]:"Wielka Brytania",[i.GD]:"Grenada",[i.GE]:"Gruzja",[i.GF]:"Gujana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Grenlandia",[i.GM]:"Gambia",[i.GN]:"Gwinea",[i.GP]:"Gwadelupa",[i.GQ]:"Gwinea Równikowa",[i.GR]:"Grecja",[i.GT]:"Gwatemala",[i.GW]:"Gwinea Bissau",[i.GY]:"Gujana",[i.HK]:"Hongkong",[i.HN]:"Honduras",[i.HR]:"Chorwacja",[i.HT]:"Haiti",[i.HU]:"Węgry",[i.ID]:"Indonezja",[i.IE]:"Irlandia",[i.IL]:"Izrael",[i.IN]:"Indie",[i.IQ]:"Irak",[i.IR]:"Iran",[i.IS]:"Islandia",[i.IT]:"Włochy",[i.JM]:"Jamajka",[i.JO]:"Jordania",[i.JP]:"Japonia",[i.KE]:"Kenia",[i.KG]:"Kirgistan",[i.KH]:"Kambodża",[i.KM]:"Komory",[i.KN]:"Saint Kitts i Nevis",[i.KP]:"Korea Północna",[i.KR]:"Korea Południowa",[i.KW]:"Kuwejt",[i.KY]:"Kajmany",[i.KZ]:"Kazachstan",[i.LA]:"Laos",[i.LB]:"Liban",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litwa",[i.LU]:"Luksemburg",[i.LV]:"Łotwa",[i.LY]:"Libia",[i.MA]:"Maroko",[i.MC]:"Monako",[i.MD]:"Mołdawia",[i.ME]:"Czarnogóra",[i.MF]:"Święty Marcin",[i.MG]:"Madagaskar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Mjanma (Birma)",[i.MN]:"Mongolia",[i.MO]:"Makau",[i.MQ]:"Martynika",[i.MR]:"Mauretania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Malediwy",[i.MW]:"Malawi",[i.MX]:"Meksyk",[i.MY]:"Malezja",[i.MZ]:"Mozambik",[i.NA]:"Namibia",[i.NC]:"Nowa Kaledonia",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nikaragua",[i.NL]:"Holandia",[i.NO]:"Norwegia",[i.NP]:"Nepal",[i.NZ]:"Nowa Zelandia",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Polinezja Francuska",[i.PG]:"Papua-Nowa Gwinea",[i.PH]:"Filipiny",[i.PK]:"Pakistan",[i.PL]:"Polska",[i.PT]:"Portugalia",[i.PW]:"Palau",[i.PY]:"Paragwaj",[i.QA]:"Katar",[i.RE]:"Posiedzenie",[i.RO]:"Rumunia",[i.RS]:"Serbia",[i.RU]:"Rosja",[i.RW]:"Rwanda",[i.SA]:"Arabia Saudyjska",[i.SB]:"Wyspy Salomona",[i.SC]:"Seszele",[i.SD]:"Sudan",[i.SE]:"Szwecja",[i.SG]:"Singapur",[i.SH]:"Wyspa Świętej Heleny",[i.SI]:"Słowenia",[i.SK]:"Słowacja",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Surinam",[i.ST]:"Wyspy Świętego Tomasza i Książęca",[i.SV]:"Salwador",[i.SX]:"Sint Maarten",[i.SY]:"Syria",[i.SZ]:"Eswatini",[i.TC]:"Turks i Caicos",[i.TD]:"Czad",[i.TG]:"Togo",[i.TH]:"Tajlandia",[i.TJ]:"Tadżykistan",[i.TL]:"Timor Wschodni",[i.TM]:"Turkmenistan",[i.TN]:"Tunezja",[i.TO]:"Tonga",[i.TR]:"Turcja",[i.TT]:"Trynidad i Tobago",[i.TW]:"Tajwan",[i.TZ]:"Tanzania",[i.UA]:"Ukraina",[i.UG]:"Uganda",[i.US]:"Stany Zjednoczone",[i.UY]:"Urugwaj",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent i Grenadyny",[i.VE]:"Wenezuela",[i.VG]:"Brytyjskie Wyspy Dziewicze",[i.VN]:"Wietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Jemen",[i.YT]:"Majotta",[i.ZA]:"Republika Południowej Afryki",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}}),m=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"polish"},g),{cancel:"Anuluj",done:"Gotowe",more:"Więcej",otherDate:"Inna data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Wybierz dzień","Wybierz zakres","Wybierz dni"],range:["od","do"],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.rrrr",MDY:"mm.dd.rrrr",YMD:"rrrr.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Pokaż hasło","Ukryj hasło"],copyTexts:["Kopiuj","Skopiowano"],shortCalendarMonths:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],pagination:["Poprzednia strona","Następna strona"],fileTexts:{loadingError:"Błąd ładowania",preview:"Podgląd",remove:"Usuń"},inputFileTexts:{defaultLabelSingle:"lub przeciągnij tutaj",defaultLabelMultiple:"lub przeciągnij tutaj",defaultLinkSingle:"Wybierz plik",defaultLinkMultiple:"Wybierz pliki",maxSizeRejectionReason:"Plik przekracza rozmiar ",formatRejectionReason:"Nieprawidłowy format pliku",drop:"Przeciągnij plik tutaj",dropMultiple:"Przeciągnij pliki tutaj"},multiSelectTexts:{all:"Zaznacz wszystko",none:"Nie zaznaczaj"},prompt:{yes:"Tak",no:"Nie"}}),{showHideText:"Pokaż/Ukryj",paginationTexts:{pages:"Strony",linesPerPage:"Wierszy na stronę",of:"z"}}),{cardNumber:["Numer","Numer karty"],cardExpiry:["Wygasa","Data ważności"]}),{colorSelectorModeNames:["Kolor","Gradient"],toolbarTools:{undo:"Cofnij",redo:"Ponów",font:"Czcionka",fontStyle:"Styl czcionki",fontSize:"Rozmiar czcionki",bold:"Pogrubienie",italic:"Kursywa",underline:"Podkreślenie",strikeThrough:"Przekreślenie",justify:"Wyrównanie",justifyLeft:"Wyrównanie do lewej",justifyCenter:"Wyrównanie do środka",justifyRight:"Wyrównanie do prawej",justifyFull:"Justowanie",list:"Lista",indent:"Zwiększ wcięcie",outdent:"Zmniejsz wcięcie",unorderedList:"Lista punktowana",orderedList:"Lista numerowana",quote:"Cytat",foreColor:"Kolor tekstu",backColor:"Kolor tła",hiliteColor:"Kolor zaznaczenia",clear:"Wyczyść",link:"Link",attach:"Załącz plik",tex:"Wstaw wzór",code:"Kod",image:"Wstaw ilustrację",insertHorizontalRule:"Wstaw separator",superscript:"Indeks górny",subscript:"Indeks dolny",insertTable:"Wstaw tabelę",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Scal komórki",splitCells:"Podziel komórki",rowsColumnsManaging:"Zarządzaj wierszami i kolumnami",cellColor:"Kolor komórki",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Wstaw kolumnę przed","Wstaw kolumnę po"],["Wstaw wiersz przed","Wstaw wiersz po"],["Usuń kolumnę","Usuń wiersz"]],editorCodeOptions:["Kod w tekście","Kod w bloku"],editorFontOptions:{small:"Small",normal:"Normalny",large:"Large",title:"Tytuł",subtitle:"Podtytuł"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],close:"Fechar",nothingFoundMessage:"Nada encontrado",defaultErrorMessage:"Valor é inválido",spinTexts:["Anterior","Próximo"],shortWeekDays:["Seg","Ter","Qua","Qui","Sex","Sáb","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emirados Árabes Unidos",[i.AF]:"Afeganistão",[i.AG]:"Antígua e Barbuda",[i.AI]:"Anguila",[i.AL]:"Albânia",[i.AM]:"Armênia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Áustria",[i.AU]:"Austrália",[i.AW]:"Aruba",[i.AZ]:"Azerbaijão",[i.BA]:"Bósnia e Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bélgica",[i.BF]:"Burkina Faso",[i.BG]:"Bulgária",[i.BH]:"Bahréin",[i.BI]:"Burundi",[i.BJ]:"Benín",[i.BL]:"São Bartolomeu",[i.BM]:"Bermudas",[i.BN]:"Brunéi",[i.BO]:"Bolívia",[i.BQ]:"Bonaire, Santo Eustáquio e Saba",[i.BR]:"Brasil",[i.BS]:"Bahamas",[i.BT]:"Butão",[i.BW]:"Botsuana",[i.BY]:"Bielorrusia",[i.BZ]:"Belice",[i.CA]:"Canadá",[i.CD]:"República Democrática do Congo",[i.CF]:"República Centro-Africana",[i.CG]:"Congo",[i.CH]:"Suiça",[i.CI]:"Costa do Marfim",[i.CL]:"Chile",[i.CM]:"Camarões",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cabo Verde",[i.CW]:"Curaçau",[i.CY]:"Chipre",[i.CZ]:"República Checa",[i.DE]:"Alemanha",[i.DJ]:"Yibuti",[i.DK]:"Dinamarca",[i.DM]:"Dominica",[i.DO]:"República Dominicana",[i.DZ]:"Algeria",[i.EC]:"Equador",[i.EE]:"Estônia",[i.EG]:"Egito",[i.ER]:"Eritreia",[i.ES]:"Espanha",[i.ET]:"Etiópia",[i.FI]:"Finlândia",[i.FJ]:"Fiyi",[i.FK]:"Ilhas Malvinas",[i.FM]:"Micronesia",[i.FR]:"França",[i.GA]:"Gabão",[i.GB]:"Reino Unido",[i.GD]:"Granada",[i.GE]:"Georgia",[i.GF]:"Guiana",[i.GH]:"Gana",[i.GI]:"Gibraltar",[i.GL]:"Groenlândia",[i.GM]:"Gambia",[i.GN]:"Guiné",[i.GP]:"Guadalupe",[i.GQ]:"Guiné Equatorial",[i.GR]:"Grécia",[i.GT]:"Guatemala",[i.GW]:"Guiné-Bisssau",[i.GY]:"Guiana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croácia",[i.HT]:"Haiti",[i.HU]:"Hungría",[i.ID]:"Indonésia",[i.IE]:"Irlanda",[i.IL]:"Israel",[i.IN]:"Índia",[i.IQ]:"Iraque",[i.IR]:"Irã",[i.IS]:"Islândia",[i.IT]:"Itália",[i.JM]:"Jamaica",[i.JO]:"Jordania",[i.JP]:"Japão",[i.KE]:"Kenia",[i.KG]:"Quiirguistão",[i.KH]:"Camboja",[i.KM]:"Comoros",[i.KN]:"São Cristóvão e Nevis",[i.KP]:"Coreia do Norte",[i.KR]:"Coreia do Sul",[i.KW]:"Kuwait",[i.KY]:"Ilhas Cayman",[i.KZ]:"Kazaquistão",[i.LA]:"Laos",[i.LB]:"Líbano",[i.LC]:"Santa Lucía",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Libéria",[i.LS]:"Lesotho",[i.LT]:"Lituânia",[i.LU]:"Luxemburgo",[i.LV]:"Letônia",[i.LY]:"Líbia",[i.MA]:"Marrocos",[i.MC]:"Mônaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"São Martinho",[i.MG]:"Madagascar",[i.MK]:"Macedônia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongólia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritânia",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauricio",[i.MV]:"Maldivas",[i.MW]:"Malawi",[i.MX]:"México",[i.MY]:"Malasia",[i.MZ]:"Moçambique",[i.NA]:"Namibia",[i.NC]:"Nova Caledónia",[i.NE]:"Níger",[i.NG]:"Nigéria",[i.NI]:"Nicarágua",[i.NL]:"Países Baixos",[i.NO]:"Noruega",[i.NP]:"Nepal",[i.NZ]:"Nova Zelandia",[i.OM]:"Omã",[i.PA]:"Panamá",[i.PE]:"Peru",[i.PF]:"Polinesia Francesa",[i.PG]:"Papua-Nova Guiné",[i.PH]:"Filipinas",[i.PK]:"Paquistão",[i.PL]:"Polônia",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguai",[i.QA]:"Catar",[i.RE]:"A reunião",[i.RO]:"Romênia",[i.RS]:"Sérbia",[i.RU]:"Rússia",[i.RW]:"Ruanda",[i.SA]:"Arábia Saudita",[i.SB]:"Ilhas Salomão",[i.SC]:"Seychelles",[i.SD]:"Sudão",[i.SE]:"Suécia",[i.SG]:"Singapura",[i.SH]:"Santa Eena",[i.SI]:"Eslovênia",[i.SK]:"Eslováquia",[i.SL]:"Serra Leoa",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somália",[i.SR]:"Suriname",[i.ST]:"Santo Tomé e Príncipe",[i.SV]:"El Salvador",[i.SX]:"São Martinho",[i.SY]:"Síria",[i.SZ]:"Essuatíni",[i.TC]:"Ilhas Turcas e Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Tailândia",[i.TJ]:"Tajiquistão",[i.TL]:"Timor Oriental",[i.TM]:"Turkmenistán",[i.TN]:"T´únez",[i.TO]:"Tonga",[i.TR]:"Turquia",[i.TT]:"Trinidad e Tobago",[i.TW]:"Taiwan",[i.TZ]:"Tanzânia",[i.UA]:"Ucrânia",[i.UG]:"Uganda",[i.US]:"Estados Unidos",[i.UY]:"Uruguai",[i.UZ]:"Uzbequistão",[i.VC]:"São Vicente e Granadinas",[i.VE]:"Venezuela",[i.VG]:"Ilhas Virgens Británicas",[i.VN]:"Vietnã",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemén",[i.YT]:"Maiote",[i.ZA]:"África do Sul",[i.ZM]:"Zâmbia",[i.ZW]:"Zimbabwe"}}),f=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"portuguese"},m),{cancel:"Cancelar",done:"Concluir",more:"Mais",otherDate:"Outra data...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Escolha o dia","Escolha o intervalo","Escolha os dias"],range:["de","para"],countTexts:["Mais","Menos"],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:["Mostrar senha","Esconder senha"],copyTexts:["Copiar","Copiado"],shortCalendarMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],pagination:["Página anterior","Próxima página"],fileTexts:{loadingError:"Erro ao carregar",preview:"Preview",remove:"Remover"},inputFileTexts:{defaultLabelSingle:"ou arraste ele aqui",defaultLabelMultiple:"ou arraste eles aqui",defaultLinkSingle:"Escolha um arquivo",defaultLinkMultiple:"Escolha os arquivos",maxSizeRejectionReason:"Arquivo ultrapassa o tamanho ",formatRejectionReason:"Formato do arquivo inválido",drop:"Solte o arquivo aqui",dropMultiple:"Solte os arquivos aqui"},multiSelectTexts:{all:"Selecionar tudo",none:"Selecione nenhum"},prompt:{yes:"Sim",no:"Não"}}),{showHideText:"Mostrar/Esconder",paginationTexts:{pages:"Páginas",linesPerPage:"Linhas por página",of:"de"}}),{cardNumber:["Número","Número do Cartão"],cardExpiry:["Validade","Validade do Cartão"]}),{colorSelectorModeNames:["Cor sólida","Gradiente"],toolbarTools:{undo:"Desfazer",redo:"Refazer",font:"Fonte",fontStyle:"Estilo da Fonte",fontSize:"Tamanho da Fonte",bold:"Negrito",italic:"Itálico",underline:"Sublinhado",strikeThrough:"Riscado",justify:"Justificado",justifyLeft:"Justificado à esquerda",justifyCenter:"Justificado ao centro",justifyRight:"Justificado à direita",justifyFull:"Totalmente justificado",list:"Lista",indent:"Recuo interno",outdent:"Recuo externo",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",quote:"Frase",foreColor:"Cor",backColor:"Cor de fundo",hiliteColor:"Cor destaque",clear:"Limpar",link:"Link",attach:"Anexar arquivo",tex:"Inserir TeX",code:"Código",image:"Inserir imagem",insertHorizontalRule:"Inserir regra horizontal",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],close:"Закрыть",nothingFoundMessage:"Ничего не найдено",defaultErrorMessage:"Поле заполнено неверно",spinTexts:["Предыдущий","Следующий"],shortWeekDays:["ПН","ВТ","СР","ЧТ","ПТ","СБ","ВС"],countries:{[i.AD]:"Андорра",[i.AE]:"Объединенные Арабские Эмираты",[i.AF]:"Афганистан",[i.AG]:"Антигуа и Барбуда",[i.AI]:"Ангилья",[i.AL]:"Албания",[i.AM]:"Армения",[i.AO]:"Ангола",[i.AR]:"Аргентина",[i.AT]:"Австрия",[i.AU]:"Австралия",[i.AW]:"Аруба",[i.AZ]:"Азербайджан",[i.BA]:"Босния и Герцеговина",[i.BB]:"Барбадос",[i.BD]:"Бангладеш",[i.BE]:"Бельгия",[i.BF]:"Буркина Фасо",[i.BG]:"Болгария",[i.BH]:"Бахрейн",[i.BI]:"Бурунди",[i.BJ]:"Бенин",[i.BL]:"Сен-Бартельми",[i.BM]:"Бермудские острова",[i.BN]:"Бруней-Даруссалам",[i.BO]:"Боливия",[i.BQ]:"Бонайре, Синт-Эстатиус и Саба",[i.BR]:"Бразилия",[i.BS]:"Багамские Острова",[i.BT]:"Бутан",[i.BW]:"Ботсвана",[i.BY]:"Беларусь (Белоруссия)",[i.BZ]:"Белиз",[i.CA]:"Канада",[i.CD]:"Дем. Респ. Конго (Киншаса)",[i.CF]:"Центральноафриканская Республика",[i.CG]:"Конго (Браззавиль)",[i.CH]:"Швейцария",[i.CI]:"Кот-д’Ивуар",[i.CL]:"Чили",[i.CM]:"Камерун",[i.CN]:"Китайская Н.Р.",[i.CO]:"Колумбия",[i.CR]:"Коста-Рика",[i.CU]:"Куба",[i.CV]:"Кабо-Верде",[i.CW]:"Кюрасао",[i.CY]:"Кипр",[i.CZ]:"Чехия",[i.DE]:"Германия",[i.DJ]:"Джибути",[i.DK]:"Дания",[i.DM]:"Доминика",[i.DO]:"Доминиканская Республика",[i.DZ]:"Алжир",[i.EC]:"Эквадор ",[i.EE]:"Эстония ",[i.EG]:"Египет",[i.ER]:"Эритрея",[i.ES]:"Испания",[i.ET]:"Эфиопия",[i.FI]:"Финляндия",[i.FJ]:"Фиджи",[i.FK]:"Фолклендские острова",[i.FM]:"Ф.Ш. Микронезии",[i.FR]:"Франция",[i.GA]:"Габон",[i.GB]:"Великобритания",[i.GD]:"Гренада",[i.GE]:"Грузия",[i.GF]:"Гайана",[i.GH]:"Гана",[i.GI]:"Гибралтар",[i.GL]:"Гренландия",[i.GM]:"Гамбия",[i.GN]:"Гвинея",[i.GP]:"Гваделупа",[i.GQ]:"Экваториальная Гвинея",[i.GR]:"Греция",[i.GT]:"Гватемала",[i.GW]:"Гвинея-Бисау",[i.GY]:"Гайана",[i.HK]:"Гонконг",[i.HN]:"Гондурас",[i.HR]:"Хорватия",[i.HT]:"Гаити",[i.HU]:"Венгрия",[i.ID]:"Индонезия ",[i.IE]:"Ирландия",[i.IL]:"Израиль",[i.IN]:"Индия",[i.IQ]:"Ирак",[i.IR]:"Иран",[i.IS]:"Исландия",[i.IT]:"Италия",[i.JM]:"Ямайка",[i.JO]:"Иордания",[i.JP]:"Япония ",[i.KE]:"Кения",[i.KG]:"Киргизия",[i.KH]:"Камбоджа",[i.KM]:"Коморы",[i.KN]:"Сент-Китс и Невис",[i.KP]:"Корейская НДР",[i.KR]:"Респ. Корея",[i.KW]:"Кувейт",[i.KY]:"Каймановы острова",[i.KZ]:"Казахстан",[i.LA]:"Лаос",[i.LB]:"Ливан ",[i.LC]:"Сент-Люсия",[i.LI]:"Лихтенштейн",[i.LK]:"Шри-Ланка",[i.LR]:"Либерия",[i.LS]:"Лесото",[i.LT]:"Литва",[i.LU]:"Люксембург",[i.LV]:"Латвия",[i.LY]:"Ливия",[i.MA]:"Марокко",[i.MC]:"Монако",[i.MD]:"Молдова",[i.ME]:"Черногория",[i.MF]:"Сен-Мартен",[i.MG]:"Мадагаскар",[i.MK]:"Респ. Северная Македония",[i.ML]:"Мали",[i.MM]:"Бирма (Мьянма)",[i.MN]:"Монголия",[i.MO]:"Макао",[i.MQ]:"Мартиника",[i.MR]:"Мавритания",[i.MS]:"Монтсеррат",[i.MT]:"Мальта",[i.MU]:"Маврикий",[i.MV]:"Мальдивские острова",[i.MW]:"Малави",[i.MX]:"Мексика",[i.MY]:"Малайзия",[i.MZ]:"Мозамбик",[i.NA]:"Намибия",[i.NC]:"Новая Каледония",[i.NE]:"Нигер",[i.NG]:"Нигерия",[i.NI]:"Никарагуа",[i.NL]:"Нидерланды",[i.NO]:"Норвегия",[i.NP]:"Непал",[i.NZ]:"Новая Зеландия",[i.OM]:"Оман",[i.PA]:"Панама",[i.PE]:"Перу",[i.PF]:"Французская Полинезия (Таити)",[i.PG]:"Папуа-Новая Гвинея",[i.PH]:"Филиппины",[i.PK]:"Пакистан",[i.PL]:"Польша",[i.PT]:"Португалия",[i.PW]:"Палау",[i.PY]:"Парагвай",[i.QA]:"Катар",[i.RE]:"Реюньон",[i.RO]:"Румыния",[i.RS]:"Сербия",[i.RU]:"Россия",[i.RW]:"Руанда",[i.SA]:"Саудовская Аравия ",[i.SB]:"Соломоновы Острова ",[i.SC]:"Сейшелы",[i.SD]:"Судан",[i.SE]:"Швеция",[i.SG]:"Сингапур",[i.SH]:"Остров Святой Елены",[i.SI]:"Словения",[i.SK]:"Словакия",[i.SL]:"Сьерра-Леоне",[i.SM]:"Сан-Марино",[i.SN]:"Сенегал",[i.SO]:"Сомали",[i.SR]:"Суринам ",[i.ST]:"Сан-Томе и Принсипи",[i.SV]:"Сальвадор",[i.SX]:"Синт-Мартен",[i.SY]:"Сирийская арабская республика",[i.SZ]:"Свазиленд",[i.TC]:"Тёркс и Кайкос",[i.TD]:"Чад",[i.TG]:"Того",[i.TH]:"Таиланд ",[i.TJ]:"Таджикистан",[i.TL]:"Восточный Тимор",[i.TM]:"Туркменистан",[i.TN]:"Тунис",[i.TO]:"Тонга",[i.TR]:"Турция",[i.TT]:"Тринидад и Тобаго",[i.TW]:"Тайвань",[i.TZ]:"Танзания",[i.UA]:"Украина",[i.UG]:"Уганда",[i.US]:"США",[i.UY]:"Уругвай",[i.UZ]:"Узбекистан",[i.VC]:"Сент-Винсент и Гренадины",[i.VE]:"Венесуэла",[i.VG]:"Британские Виргинские острова",[i.VN]:"Вьетнам",[i.VU]:"Вануату ",[i.WS]:"Самоа",[i.YE]:"Йемен ",[i.YT]:"Майотта",[i.ZA]:"Южно-Африканская Респ.",[i.ZM]:"Замбия",[i.ZW]:"Зимбабве",[i.XK]:"Косово"}}),v=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"russian"},f),{cancel:"Отменить",done:"Готово",more:"Еще",otherDate:"Другая дата...",showAll:"Показать все",hide:"Скрыть",mobileCalendarTexts:["Выберите день","Выберите период","Выбрать дни"],range:["от","до"],countTexts:["Плюс","Минус"],time:{"HH:MM":"ЧЧ:ММ","HH:MM:SS":"ЧЧ:ММ:СС","HH:MM:SS.MSS":"ЧЧ:ММ:СС.МСС"},dateTexts:{DMY:"дд.мм.гггг",MDY:"мм.дд.гггг",YMD:"гггг.мм.дд"},digitalInformationUnits:["Б","КиБ","МиБ"],passwordTexts:["Показать пароль","Скрыть пароль"],copyTexts:["Копировать","Скопировано"],shortCalendarMonths:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Нояб","Дек"],pagination:["Предыдущая страница","Следующая страница"],fileTexts:{loadingError:"Ошибка загрузки",preview:"Предварительный просмотр",remove:"Удалить"},inputFileTexts:{defaultLabelSingle:"или перетащите его сюда",defaultLabelMultiple:"или перетащите их сюда",defaultLinkSingle:"Выберите файл",defaultLinkMultiple:"Выберите файлы",maxSizeRejectionReason:"Файл превышает объем ",formatRejectionReason:"Неверный формат файла",drop:"Поместите файл сюда",dropMultiple:"Поместите файлы сюда"},multiSelectTexts:{all:"Выбрать все",none:"Снять выбор"},prompt:{yes:"Да",no:"Нет"}}),{cardNumber:["Номер","Номер карты"],cardExpiry:["Срок","Срок действия"]}),{showHideText:"Показать/Скрыть",paginationTexts:{pages:"Страниц",linesPerPage:"Строк на страницу",of:"из"}}),{colorSelectorModeNames:["Сплошной цвет","Градиент"],toolbarTools:{undo:"Отменить",redo:"Повторить",font:"Шрифт",fontStyle:"Стиль шрифта",fontSize:"Размер шрифта",bold:"Полужирный",italic:"Курсив",underline:"Подчеркнутый",strikeThrough:"Зачеркнутый",justify:"Выравнивание",justifyLeft:"Выровнять текст по левому краю",justifyCenter:"Выровнять текст по центру",justifyRight:"Выровнять текст по правому краю",justifyFull:"Выровнять по ширине",list:"Списки",indent:"Увеличить отступ",outdent:"Уменьшить отступ",unorderedList:"Маркированный список",orderedList:"Нумерованный список",quote:"Цитата",foreColor:"Цвет: Текст",hiliteColor:"Цвет выделения",backColor:"Цвет фона",clear:"Сбросить форматирование",link:"Ссылка",attach:"Вставить файл",tex:"Вставить формулу",code:"Code",image:"Вставить изображение",insertHorizontalRule:"Разделитель",superscript:"Надстрочный",subscript:"Подстрочный",insertTable:"Добавить таблицу",insertGroup:"Добавить группу",hiliteGroup:"Покрасить группу",removeGroup:"Удалить группу",insertAnchor:"Добавить якорь",mergeCells:"Объединить ячейки",splitCells:"Разъединить ячейки",rowsColumnsManaging:"Управление строками и столбцами",cellColor:"Цвет ячейки",setDetails:"Аккордеон",removeDetails:"Удалить аккордеон"},editorEditLink:{urlExample:"example.com",anchorExample:"якорь"},editorTableCommands:[["Добавить столбец слева","Добавить столбец справа"],["Добавить строку сверху","Добавить строку снизу"],["Удалить столбец","Удалить строку"]],editorCodeOptions:["Код","Код в блоке"],editorFontOptions:{small:"Мелкий",normal:"Обычный",large:"Крупный",title:"Заголовок",subtitle:"Подзаголовок"}}),{previewTexts:{rotate:"Повернуть"},zoomTexts:{zoomIn:"Увеличить масштаб",zoomOut:"Уменьшить масштаб",reset:"Сбросить масштаб"}}),{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],close:"Cerrar",nothingFoundMessage:"Nada encontrado",defaultErrorMessage:"El valor es inválido",spinTexts:["Previo","Siguiente"],shortWeekDays:["Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],countries:{[i.AD]:"Andorra",[i.AE]:"Emiratos Árabes Unidos",[i.AF]:"Afganistán",[i.AG]:"Antigua y Barbuda",[i.AI]:"Anguila",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Austria",[i.AU]:"Australia",[i.AW]:"Aruba",[i.AZ]:"Azerbaiyán",[i.BA]:"Bosnia y Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bélgica",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahréin",[i.BI]:"Burundi",[i.BJ]:"Benín",[i.BL]:"San Bartolomé",[i.BM]:"Bermudas",[i.BN]:"Brunéi",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, San Eustaquio y Saba",[i.BR]:"Brasil",[i.BS]:"Bahamas",[i.BT]:"Bután",[i.BW]:"Botsuana",[i.BY]:"Bielorrusia",[i.BZ]:"Belice",[i.CA]:"Canadá",[i.CD]:"República Democrática del Congo",[i.CF]:"República Centro-Africana",[i.CG]:"Congo",[i.CH]:"Suiza",[i.CI]:"Costa de Marfil",[i.CL]:"Chile",[i.CM]:"Camerún",[i.CN]:"China",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cabo Verde",[i.CW]:"Curazao",[i.CY]:"Chipre",[i.CZ]:"República Checa",[i.DE]:"Alemania",[i.DJ]:"Yibuti",[i.DK]:"Dinamarca",[i.DM]:"Dominica",[i.DO]:"República Dominicana",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Egipto",[i.ER]:"Eritrea",[i.ES]:"España",[i.ET]:"Etiopía",[i.FI]:"Finlandia",[i.FJ]:"Fiyi",[i.FK]:"Islas Malvinas",[i.FM]:"Micronesia",[i.FR]:"Francia",[i.GA]:"Gabón",[i.GB]:"Reino Unido",[i.GD]:"Granada",[i.GE]:"Georgia",[i.GF]:"Guayana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Groenlandia",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadalupe",[i.GQ]:"Guinea Ecuatorial",[i.GR]:"Grecia",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bisáu",[i.GY]:"Guyana",[i.HK]:"Hong Kong",[i.HN]:"Honduras",[i.HR]:"Croacia",[i.HT]:"Haití",[i.HU]:"Hungría",[i.ID]:"Indonesia",[i.IE]:"Irlanda",[i.IL]:"Israel",[i.IN]:"India",[i.IQ]:"Irak",[i.IR]:"Irán",[i.IS]:"Islandia",[i.IT]:"Italia",[i.JM]:"Jamaica",[i.JO]:"Jordania",[i.JP]:"Japón",[i.KE]:"Kenia",[i.KG]:"Kirguistán",[i.KH]:"Camboya",[i.KM]:"Comoros",[i.KN]:"San Cristóbal y Nieves",[i.KP]:"Corea del Norte",[i.KR]:"Corea del Sur",[i.KW]:"Kuwait",[i.KY]:"Islas Caimán",[i.KZ]:"Kazajstán",[i.LA]:"Laos",[i.LB]:"Líbano",[i.LC]:"Santa Lucía",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Lituania",[i.LU]:"Luxemburgo",[i.LV]:"Letonia",[i.LY]:"Libia",[i.MA]:"Marruecos",[i.MC]:"M´ónaco",[i.MD]:"Moldavia",[i.ME]:"Montenegro",[i.MF]:"San Martín",[i.MG]:"Madagascar",[i.MK]:"Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mongolia",[i.MO]:"Macao",[i.MQ]:"Martinica",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauricio",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"México",[i.MY]:"Malasia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"Nueva Caledonia",[i.NE]:"Níger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Países Bajos",[i.NO]:"Noruega",[i.NP]:"Nepal",[i.NZ]:"Nueva Zelanda",[i.OM]:"Omán",[i.PA]:"Panamá",[i.PE]:"Perú",[i.PF]:"Polinesia Francesa",[i.PG]:"Papúa Nueva Guínea",[i.PH]:"Filipinas",[i.PK]:"Pakistán",[i.PL]:"Polonia",[i.PT]:"Portugal",[i.PW]:"Palaos",[i.PY]:"Paraguay",[i.QA]:"Catar",[i.RE]:"Reunión",[i.RO]:"Rumania",[i.RS]:"Serbia",[i.RU]:"Rusia",[i.RW]:"Ruanda",[i.SA]:"Arabia Saudita",[i.SB]:"Islas Salomón",[i.SC]:"Seychelles",[i.SD]:"Sudán",[i.SE]:"Suecia",[i.SG]:"Singapur",[i.SH]:"Santa Elena",[i.SI]:"Eslovenia",[i.SK]:"Eslovaquia",[i.SL]:"Sierra Leona",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Surinam",[i.ST]:"Santo Tomé y Príncipe",[i.SV]:"El Salvador",[i.SX]:"San Martín",[i.SY]:"Siria",[i.SZ]:"Suazilandia",[i.TC]:"Islas Turcas y Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Tailandia",[i.TJ]:"Tayikistán",[i.TL]:"Timor Oriental",[i.TM]:"Turkmenistán",[i.TN]:"T´únez",[i.TO]:"Tonga",[i.TR]:"Turquía",[i.TT]:"Trinidad y Tobago",[i.TW]:"Taiwán",[i.TZ]:"Tanzania",[i.UA]:"Ucrania",[i.UG]:"Uganda",[i.US]:"Estados Unidos",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistán",[i.VC]:"San Vicente y las Granadinas",[i.VE]:"Venezuela",[i.VG]:"Islas Vírgenes Británicas",[i.VN]:"Vietnam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemén",[i.YT]:"Mayotte",[i.ZA]:"Sudáfrica",[i.ZM]:"Zambia",[i.ZW]:"Zimbabue"}}),b=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"spanish"},v),{cancel:"Cancelar",done:"Hecho",more:"Más",otherDate:"Otra fecha...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Seleccione el día","Seleccione un rango","Elige días"],range:["desde","hasta"],countTexts:["Más","Menos"],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:["Mostrar contraseña","Ocultar contraseña"],copyTexts:["Copiar","Copiado"],shortCalendarMonths:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],pagination:["Página anterior","Página siguiente"],fileTexts:{loadingError:"Error de carga",preview:"Previsualizar",remove:"Remover"},inputFileTexts:{defaultLabelSingle:"o arrástrelo aquí",defaultLabelMultiple:"o arrástrelos aquí",defaultLinkSingle:"Seleccione un archivo",defaultLinkMultiple:"Seleccione archivos",maxSizeRejectionReason:"Archivo demasiado grande ",formatRejectionReason:"Formato de archivo inválido",drop:"Suelte el archivo aquí",dropMultiple:"Suelte los archivos aquí"},multiSelectTexts:{all:"Seleccionar todo",none:"Seleccionar ninguno"},prompt:{yes:"Sí",no:"No"}}),{showHideText:"Mostrar/Ocultar",paginationTexts:{pages:"Páginas",linesPerPage:"Lineas por página",of:"de"}}),{cardNumber:["Número","Número de la tarjeta"],cardExpiry:["Expira","Fecha de expiración"]}),{colorSelectorModeNames:["Color sólido","Gradiente"],toolbarTools:{undo:"Deshacer",redo:"Rehacer",font:"Fuente",fontStyle:"Estilo de la fuente",fontSize:"Tamaño de la fuente",bold:"Negrita",italic:"Cursiva",underline:"Subrayado",strikeThrough:"Tachado",justify:"Justificar",justifyLeft:"Alinear a izquierda",justifyCenter:"Centrar",justifyRight:"Alinear a derecha",justifyFull:"Justificar",list:"Listar",indent:"Sangría",outdent:"Sin sangría",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",quote:"Cita",foreColor:"Color",backColor:"Color de fondo",hiliteColor:"Color de resaltado",clear:"Limpiar",link:"Enlace",attach:"Adjuntar archivo",tex:"Insertar texto",code:"Código",image:"Insertar imagen",insertHorizontalRule:"Insertar regla horizontal",superscript:"Superíndice",subscript:"Subíndice",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],close:"Kapat",nothingFoundMessage:"Kayıt Bulunamadı",defaultErrorMessage:"Değer hatalı",spinTexts:["Geri","İleri"],shortWeekDays:["Ptsi","Salı","Çrş","Prş","Cma","Ctsi","Pzr"],countries:s}),y=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"turkish"},b),{cancel:"İptal Et",done:"Tamam",more:"Daha Fazla",otherDate:"Farklı bir tarih...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Gün seç","Aralık seç","Günleri seçin"],range:["dan","a"],countTexts:["Artı","Eksi"],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:["Göster","Gizle"],copyTexts:["Kopyala","Kopyalandı"],shortCalendarMonths:["Ock","Şbt","Mart","Nsn","Mays","Hzrn","Tmmz","Ağu","Eyl","Ekm","Kas","Aral"],pagination:["Önceki","Sonraki"],fileTexts:{loadingError:"Yükleme Hatası",preview:"Öz İzleme",remove:"Kaldır"},inputFileTexts:{defaultLabelSingle:"veya buraya sürükleyin",defaultLabelMultiple:"veya buraya sürükleyin",defaultLinkSingle:"Dosya seç",defaultLinkMultiple:"Dosyaları seç",maxSizeRejectionReason:"Dosya boyutu fazla ",formatRejectionReason:"Dosya formatı yanlış",drop:"Dosyayı buraya bırakın",dropMultiple:"Dosyaları buraya bırakın"},multiSelectTexts:{all:"Hepsini seç",none:"Hiçbirini Seçme"},prompt:{yes:"Evet",no:"Hayır"}}),{showHideText:"Göster/Hizle",paginationTexts:{pages:"Sayfa",linesPerPage:"Görüntülenen",of:"toplam"}}),{cardNumber:["Kart No","Kart Numarası"],cardExpiry:["SKT","Son Kullanma"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Geri al",redo:"İleri Al",font:"Yazı Tipi",fontStyle:"Yazı stili",fontSize:"Yatı Boyutu",bold:"Kalın",italic:"İtalik",underline:"Altı Çizi",strikeThrough:"Üstü Çizili",justify:"Hizala",justifyLeft:"Sola yasla",justifyCenter:"Ortala",justifyRight:"Sağa yasla",justifyFull:"Doldur",list:"Liste",indent:"Girinti",outdent:"Çıkıntı",unorderedList:"Noktalı liste",orderedList:"Numerik liste",quote:"Alıntı",foreColor:"Renk",backColor:"Arka plan rengi",hiliteColor:"hiliteColor",clear:"Formatı Temizle",link:"Link",attach:"Dosya Ekle",tex:"TeX Ekle",code:"Kod",image:"Resim Ekle",insertHorizontalRule:"Satır Ekle",superscript:"Üst Simge",subscript:"Alt Simge",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],close:"Закрити",nothingFoundMessage:"Нічого не знайдено",defaultErrorMessage:"Поле заповнено невірно",spinTexts:["Попередній","Наступний"],shortWeekDays:["ПН","ВТ","СР","ЧТ","ПТ","СБ","НД"],countries:s}),_=(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"ukrainian"},y),{cancel:"Скасувати",done:"Готово",more:"Ще",otherDate:"Інша дата ...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Виберіть день","Виберіть період","Виберіть дні"],range:["від","до"],countTexts:["Плюс","Мінус"],time:{"HH:MM":"ГГ:ХХ","HH:MM:SS":"ГГ:ХХ:СС","HH:MM:SS.MSS":"ГГ:ХХ:СС.МСС"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["Б","КБ","МБ"],passwordTexts:["Показати пароль","Приховати пароль"],copyTexts:["Копіювати","Скопійовано"],shortCalendarMonths:["Січ","Лют","Бер","Квіт","Трав","Черв","Лип","Серп","Верес","Жовт","Лист","Груд"],pagination:["Попередня сторінка","Наступна сторінка"],fileTexts:{loadingError:"Помилка завантаження",preview:"Попередній перегляд",remove:"Видалити"},inputFileTexts:{defaultLabelSingle:"та перенесіть його сюди",defaultLabelMultiple:"та перенесіть їx сюди",defaultLinkSingle:"Виберіть файл",defaultLinkMultiple:"Виберіть файли",maxSizeRejectionReason:"Файл перевищує розмір ",formatRejectionReason:"Невірний формат файлу",drop:"Помістіть файл сюди",dropMultiple:"Помістіть файли сюди"},multiSelectTexts:{all:"Вибрати все",none:"Не вибирати"},prompt:{yes:"Так",no:"Немає"}}),{cardNumber:["Номер","Номер карти"],cardExpiry:["Термін","Термін дії"]}),{showHideText:"Показати/Приховати",paginationTexts:{pages:"Сторінок",linesPerPage:"Рядків на сторінку",of:"з"}}),{colorSelectorModeNames:["Суцільний колір","Градієнт"],toolbarTools:{undo:"Скасувати",redo:"Повторити",font:"Шрифт",fontStyle:"Стиль шрифту",fontSize:"Розмір шрифту",bold:"Жирний",italic:"Курсив",underline:"Підкреслений",strikeThrough:"Закреслений",justify:"Вирівнювання",justifyLeft:"Вирівняти текст за лівим краєм",justifyCenter:"Вирівняти текст по центру",justifyRight:"Вирівняти текст за правим краєм",justifyFull:"Вирівняти за шириною",list:"Списки",indent:"Збільшити відступ",outdent:"Зменшити відступ",unorderedList:"Маркований список",orderedList:"Нумерований список",quote:"Цитата",foreColor:"Колір: Текст",hiliteColor:"Колір виділення",backColor:"Колір фону",clear:"Скинути форматування",link:"Посилання",attach:"Вставити файл",tex:"Вставити формулу",code:"Code",image:"Вставити зображення",insertHorizontalRule:"Розділювач",superscript:"Надрядковий",subscript:"Підрядковий",insertTable:"Insert table",hiliteGroup:"Hilite group",insertGroup:"Insert 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",normal:"Normal",large:"Large",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}}),{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],close:"Đóng",nothingFoundMessage:"Không tìm thấy",defaultErrorMessage:"Giá trị không hợp lệ",spinTexts:["Trước","Sau"],shortWeekDays:["T2","T3","T4","T5","T6","T7","CN"],countries:{[i.AD]:"Andorra",[i.AE]:"Các tiểu Vương quốc Ả Rập Thống nhất",[i.AF]:"Afghanistan",[i.AG]:"Antigua và Barbuda",[i.AI]:"Anguilla",[i.AL]:"Albania",[i.AM]:"Armenia",[i.AO]:"Angola",[i.AR]:"Argentina",[i.AT]:"Áo",[i.AU]:"Úc",[i.AW]:"Aruba",[i.AZ]:"Azerbaijan",[i.BA]:"Bosnia và Herzegovina",[i.BB]:"Barbados",[i.BD]:"Bangladesh",[i.BE]:"Bỉ",[i.BF]:"Burkina Faso",[i.BG]:"Bulgaria",[i.BH]:"Bahrain",[i.BI]:"Burundi",[i.BJ]:"Benin",[i.BL]:"Saint Barthélemy",[i.BM]:"Bermuda",[i.BN]:"Brunei",[i.BO]:"Bolivia",[i.BQ]:"Bonaire, Sint Eustatius và Saba",[i.BR]:"Brazil",[i.BS]:"Bahamas",[i.BT]:"Bhutan",[i.BW]:"Botswana",[i.BY]:"Belarus",[i.BZ]:"Belize",[i.CA]:"Canada",[i.CD]:"Cộng hoà dân chủ Congo",[i.CF]:"Cộng hoà Trung Phi",[i.CG]:"Cộng hoà Congo",[i.CH]:"Thụy Sĩ",[i.CI]:"Bờ Biển Ngà",[i.CL]:"Chile",[i.CM]:"Cameroon",[i.CN]:"Trung Quốc",[i.CO]:"Colombia",[i.CR]:"Costa Rica",[i.CU]:"Cuba",[i.CV]:"Cape Verde",[i.CW]:"Curaçao",[i.CY]:"Síp",[i.CZ]:"Cộng hòa Séc",[i.DE]:"Đức",[i.DJ]:"Djibouti",[i.DK]:"Đan Mạch",[i.DM]:"Dominica",[i.DO]:"Cộng hoà Dominica",[i.DZ]:"Algeria",[i.EC]:"Ecuador",[i.EE]:"Estonia",[i.EG]:"Ai Cập",[i.ER]:"Eritrea",[i.ES]:"Tây Ban Nha",[i.ET]:"Ethiopia",[i.FI]:"Phần Lan",[i.FJ]:"Fiji",[i.FK]:"Quần đảo Falkland",[i.FM]:"Liên bang Micronesia",[i.FR]:"Pháp",[i.GA]:"Gabon",[i.GB]:"Vương quốc Anh",[i.GD]:"Grenada",[i.GE]:"Georgia",[i.GF]:"Guyana",[i.GH]:"Ghana",[i.GI]:"Gibraltar",[i.GL]:"Greenland",[i.GM]:"Gambia",[i.GN]:"Guinea",[i.GP]:"Guadeloupe",[i.GQ]:"Guinea Xích đạo",[i.GR]:"Hy Lạp",[i.GT]:"Guatemala",[i.GW]:"Guinea-Bissau",[i.GY]:"Guyana",[i.HK]:"Hồng Kông",[i.HN]:"Honduras",[i.HR]:"Croatia",[i.HT]:"Haiti",[i.HU]:"Hungary",[i.ID]:"Indonesia",[i.IE]:"Ireland",[i.IL]:"Israel",[i.IN]:"Ấn Độ",[i.IQ]:"Iraq",[i.IR]:"Iran",[i.IS]:"Iceland",[i.IT]:"Italy",[i.JM]:"Jamaica",[i.JO]:"Jordan",[i.JP]:"Nhật Bản",[i.KE]:"Kenya",[i.KG]:"Kyrgyzstan",[i.KH]:"Campuchia",[i.KM]:"Comoros",[i.KN]:"Saint Kitts và Nevis",[i.KP]:"Triều Tiên",[i.KR]:"Hàn Quốc",[i.KW]:"Kuwait",[i.KY]:"Quần đảo Cayman",[i.KZ]:"Kazakhstan",[i.LA]:"Lào",[i.LB]:"Lebanon",[i.LC]:"Saint Lucia",[i.LI]:"Liechtenstein",[i.LK]:"Sri Lanka",[i.LR]:"Liberia",[i.LS]:"Lesotho",[i.LT]:"Litva",[i.LU]:"Luxembourg",[i.LV]:"Latvia",[i.LY]:"Libya",[i.MA]:"Ma Rốc",[i.MC]:"Monaco",[i.MD]:"Moldova",[i.ME]:"Montenegro",[i.MF]:"Saint Martin",[i.MG]:"Madagascar",[i.MK]:"Bắc Macedonia",[i.ML]:"Mali",[i.MM]:"Myanmar",[i.MN]:"Mông Cổ",[i.MO]:"Ma Cao",[i.MQ]:"Martinique",[i.MR]:"Mauritania",[i.MS]:"Montserrat",[i.MT]:"Malta",[i.MU]:"Mauritius",[i.MV]:"Maldives",[i.MW]:"Malawi",[i.MX]:"Mexico",[i.MY]:"Malaysia",[i.MZ]:"Mozambique",[i.NA]:"Namibia",[i.NC]:"Nouvelle-Calédonie",[i.NE]:"Niger",[i.NG]:"Nigeria",[i.NI]:"Nicaragua",[i.NL]:"Hà Lan",[i.NO]:"Na Uy",[i.NP]:"Nepal",[i.NZ]:"New Zealand",[i.OM]:"Oman",[i.PA]:"Panama",[i.PE]:"Peru",[i.PF]:"Polynesia thuộc Pháp (Tahiti)",[i.PG]:"Papua New Guinea",[i.PH]:"Philippines",[i.PK]:"Pakistan",[i.PL]:"Ba Lan",[i.PT]:"Bồ Đào Nha",[i.PW]:"Palau",[i.PY]:"Paraguay",[i.QA]:"Qatar",[i.RE]:"Réunion",[i.RO]:"Romania",[i.RS]:"Serbia",[i.RU]:"Nga",[i.RW]:"Rwanda",[i.SA]:"Ả Rập Xê-út",[i.SB]:"Quần đảo Solomon",[i.SC]:"Seychelles",[i.SD]:"Sudan",[i.SE]:"Thụy Điển",[i.SG]:"Singapore",[i.SH]:"Saint Helena",[i.SI]:"Slovenia",[i.SK]:"Slovakia",[i.SL]:"Sierra Leone",[i.SM]:"San Marino",[i.SN]:"Senegal",[i.SO]:"Somalia",[i.SR]:"Suriname",[i.ST]:"Sao Tome và Principe",[i.SV]:"El Salvador",[i.SX]:"Sint Maarten",[i.SY]:"Syria",[i.SZ]:"Swaziland",[i.TC]:"Turks và Caicos",[i.TD]:"Chad",[i.TG]:"Togo",[i.TH]:"Thái Lan",[i.TJ]:"Tajikistan",[i.TL]:"Timor-Leste",[i.TM]:"Turkmenistan",[i.TN]:"Tunisia",[i.TO]:"Tonga",[i.TR]:"Thổ Nhĩ Kỳ",[i.TT]:"Trinidad và Tobago",[i.TW]:"Đài Loan",[i.TZ]:"Tanzania",[i.UA]:"Ukraina",[i.UG]:"Uganda",[i.US]:"Hoa Kỳ",[i.UY]:"Uruguay",[i.UZ]:"Uzbekistan",[i.VC]:"Saint Vincent và Grenadines",[i.VE]:"Venezuela",[i.VG]:"Quần đảo Virgin thuộc Anh",[i.VN]:"Việt Nam",[i.VU]:"Vanuatu",[i.WS]:"Samoa",[i.XK]:"Kosovo",[i.YE]:"Yemen",[i.YT]:"Mayotte",[i.ZA]:"Nam Phi",[i.ZM]:"Zambia",[i.ZW]:"Zimbabwe"}});Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"vietnamese"},_),{cancel:"Hủy bỏ",done:"Hoàn thành",more:"Thêm",otherDate:"Ngày khác...",showAll:"Hiển thị tất cả",hide:"Ẩn",mobileCalendarTexts:["Chọn ngày","Chọn phạm vi","Chọn ngày"],range:["từ","đến"],countTexts:["Cộng","Trừ"],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:["Hiện mật khẩu","Ẩn mật khẩu"],copyTexts:["Sao chép","Đã sao chép"],shortCalendarMonths:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],pagination:["Trang trước","Trang sau"],fileTexts:{loadingError:"Lỗi tải",preview:"Xem trước",remove:"Gỡ bỏ"},inputFileTexts:{defaultLabelSingle:"hoặc kéo nó vào đây",defaultLabelMultiple:"hoặc kéo nó vào đây",defaultLinkSingle:"Chọn một tệp",defaultLinkMultiple:"Chọn nhiều tệp",maxSizeRejectionReason:"Tệp vượt quá kích thước ",formatRejectionReason:"Tệp sai định dạng",drop:"Thả tệp tại đây",dropMultiple:"Thả nhiều tệp tại đây"},multiSelectTexts:{all:"Chọn tất cả",none:"Không chọn"},prompt:{yes:"Đúng",no:"Không"}}),{showHideText:"Hiện/Ẩn",paginationTexts:{pages:"Tổng số trang",linesPerPage:"Số dòng mỗi trang",of:"trên"}}),{cardNumber:["Số thẻ","Số thẻ"],cardExpiry:["Hết hạn","Ngày hết hạn"]}),{colorSelectorModeNames:["Màu thuần","Màu chuyển sắc"],toolbarTools:{undo:"Hoàn tác",redo:"Làm lại",font:"Phông chữ",fontStyle:"Kiểu chữ",fontSize:"Cỡ chữ",bold:"In đậm",italic:"In nghiêng",underline:"Gạch chân",strikeThrough:"Gạch ngang",justify:"Canh lề",justifyLeft:"Canh trái",justifyCenter:"Canh giữa",justifyRight:"Canh phải",justifyFull:"Canh đều",list:"Danh sách",indent:"Thụt vào",outdent:"Thụt ra",unorderedList:"Danh sách không đánh số",orderedList:"Danh sách được đánh số",quote:"Trích dẫn",foreColor:"Màu",backColor:"Màu nền",hiliteColor:"Màu đánh dấu",clear:"Xóa",link:"Liên kết",attach:"Tệp đính kèm",tex:"Chèn TeX",code:"Đoạn mã",image:"Chèn hình",insertHorizontalRule:"Chèn thước ngang",superscript:"Chỉ số trên",subscript:"Chỉ số dưới",insertTable:"Chèn bảng",hiliteGroup:"Hilite group",insertGroup:"Chèn nhóm",removeGroup:"Xóa nhóm",insertAnchor:"Chèn mỏ neo",mergeCells:"Hợp nhất ô",splitCells:"Tách ô",rowsColumnsManaging:"Quản lý hàng và cột",cellColor:"Màu ô",setDetails:"Chi tiết",removeDetails:"Hủy chi tiết"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Chèn cột trước","Chèn cột sau"],["Chèn hàng trước","Chèn hàng sau"],["Xóa cột","Xóa hàng"]],editorCodeOptions:["Mã trong dòng","Mã trong khối"],editorFontOptions:{small:"Nhỏ",normal:"Thường",large:"Lớn",title:"Tiêu đề",subtitle:"Phụ đề"}}),{previewTexts:{rotate:"Xoay"},zoomTexts:{zoomOut:"Thu nhỏ",zoomIn:"Phóng to",reset:"Đặt lại"}});var C=n(74788),w=n(25917);const x=new C.OlP("[TUI_DEFAULT_LANGUAGE]",{factory:()=>l}),M=new C.OlP("[TUI_LANGUAGE]",{factory:()=>(0,w.of)((0,C.f3M)(x))});new C.OlP("[TUI_LANGUAGE_LOADER]"),new C.OlP("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var O=n(95639),k=n(43190),S=n(88002);function P(t){return()=>(0,C.f3M)(M).pipe((0,k.w)((t=>(0,O.b)(t)?t:(0,w.of)(t))),(0,S.U)((e=>e[t])))}},2046:(t,e,n)=>{n.d(e,{s:()=>a});var i=n(74788),r=n(42600),o=n(43232),s=n(41035);let a=(()=>{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(o.S0o),i.Y36(r.M$T),i.Y36(i.SBq),i.Y36(r.llV),i.Y36(s.Ys))},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(o.gXS,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})()},25466:(t,e,n)=>{n.d(e,{d:()=>o});var i=n(74788),r=n(89570);let o=(()=>{class t extends r.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})()},25535:(t,e,n)=>{n.d(e,{K:()=>k});var i=n(74788),r=n(42600),o=n(43232),s=n(30991),a=n(25466);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=i.lG2({type:t,selectors:[["","tuiAccordionItemContent","",5,"ng-template"]]}),t})();var u=n(63973),c=n(28347),d=n(35928),h=n(12057),p=n(2793),g=n(9975),m=n(89570),f=n(77825);const v=["focusableElement"];function b(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 y(t,e){if(1&t&&(i.ynx(0),i.YNc(1,b,1,3,"tui-svg",8),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.options.iconLarge)}}function _(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 C(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,_,2,1,"ng-container",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("polymorpheusOutlet",t.lazyContent)}}function w(t,e){if(1&t&&i.YNc(0,C,2,1,"div",10),2&t){const t=i.oxw();i.Q6J("ngIf",t.lazyContent)}}function x(t,e){1&t&&(i.TgZ(0,"div",13),i.Hsn(1,1),i.qZA())}const M=["*",[["","tuiAccordionItemContent",""]]],O=["*","[tuiAccordionItemContent]"];let k=(()=>{class t extends r.XnQ{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,r.V8W)(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(o.Auc),i.Y36(s._j))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-accordion-item"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,l,5),i.Suo(n,a.d,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(v,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,r.FTc)(t),o.CV2]),i.qOj],ngContentSelectors:O,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(M),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,y,2,1,"ng-container",4),i.qZA(),i.TgZ(6,"tui-expand",5),i.YNc(7,w,1,1,"ng-template",6),i.YNc(8,x,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:[u.t,c.U,d.q,h.O5,p.S,g.I,m.Li,f.P],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;text-decoration:none;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}.t-wrapper[_ngcontent-%COMP%]:hover:not([data-mode]) > .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-base-02)}.t-wrapper[_ngcontent-%COMP%]:hover[data-mode=onDark] > .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}.t-wrapper[_ngcontent-%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})()},21260:(t,e,n)=>{n.d(e,{o:()=>f});var i=n(42600),r=n(66682),o=n(54487),s=n(59328),a=n(88002),l=n(45435),u=n(43190),c=n(46782),d=n(25535),h=n(74788),p=n(20690);const g=[[["tui-accordion-item"]]],m=["tui-accordion-item"];let f=(()=>{class t{constructor(t){this.destroy$=t,this.closeOthers=!0,this.rounded=!0,this.accordionItems=i.Mmc}ngAfterContentInit(){const{accordionItems:t}=this,e=(0,i.llR)(t),n=e.pipe((0,s.G)(),(0,a.U)((([t,e])=>e.find((e=>!t.includes(e)&&e.open)))),(0,l.h)(i.PcC));(0,r.T)(e.pipe((0,u.w)((t=>(0,r.T)(...t.map((t=>t.openChange.pipe((0,l.h)(o.y),(0,a.U)((()=>t))))))))),n).pipe((0,l.h)((()=>this.closeOthers)),(0,c.R)(this.destroy$)).subscribe((e=>{t.forEach((t=>{e!==t&&t.close()}))}))}}return t.ɵfac=function(e){return new(e||t)(h.Y36(i.a31,2))},t.ɵcmp=h.Xpm({type:t,selectors:[["tui-accordion"]],contentQueries:function(t,e,n){if(1&t&&h.Suo(n,d.K,4),2&t){let t;h.iGM(t=h.CRH())&&(e.accordionItems=t)}},inputs:{closeOthers:"closeOthers",rounded:"rounded"},features:[h._Bn([i.a31])],ngContentSelectors:m,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&&(h.F$t(g),h.TgZ(0,"div",0),h.Hsn(1),h.qZA()),2&t&&h.Q6J("collapsed",!0)("rounded",e.rounded)},directives:[p.g],styles:["[_nghost-%COMP%]{display:block}.t-group[_ngcontent-%COMP%]{display:flex}"],changeDetection:0}),t})()},30991:(t,e,n)=>{n.d(e,{SX:()=>p,Ii:()=>f,_j:()=>s,Mt:()=>g});var i=n(43232),r=n(89570),o=n(42600);const s=(0,o.JN4)({iconSmall:"tuiIconChevronDown",iconLarge:"tuiIconChevronDownLarge"});var a=n(74788),l=n(12057),u=n(77825);function c(t,e){if(1&t&&a._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet;a.Q6J("src",t)}}function d(t,e){1&t&&a.GkF(0)}let h=(()=>{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,i.R9V)(this.textfieldSize.size)?this.options.iconLarge:this.options.iconSmall}}return t.ɵfac=function(e){return new(e||t)(a.Y36(i.o1K),a.Y36(i.kId),a.Y36(s))},t.ɵcmp=a.Xpm({type:t,selectors:[["tui-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&a.ekj("_rotated",e.rotated)},decls:3,vars:4,consts:[[3,"src",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"src"]],template:function(t,e){1&t&&(a.YNc(0,c,1,1,"tui-svg",0),a.YNc(1,d,1,0,"ng-container",1),a.ALo(2,"async")),2&t&&(a.Q6J("polymorpheusOutlet",e.arrowIcon),a.xp6(1),a.Q6J("ngIf",a.lcZ(2,2,e.dropdown.openChange)))},directives:[r.Li,l.O5,u.P],pipes:[l.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 p=new r.Al(h);let g=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[l.ez,i.EIu,r.wq]]}),t})();const m={interactive:p,disabled:p},f=(0,o.JN4)(m)},38039:(t,e,n)=>{n.d(e,{g:()=>a});var i=n(42600),r=n(43232),o=n(74788);const s=["*"];let a=(()=>{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,i.dtH)(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,i.dtH)(e)&&e>99?"99+":(0,i.PcC)(this.value)?String(this.value):""}get isEmpty(){return!this.value&&0!==this.value}titleText({offsetWidth:t,scrollWidth:e}){return t{n.d(e,{p:()=>c});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(64201),l=n(72444);const u=["*"];let c=(()=>{class t extends o.F9l{constructor(t,e,n,i){super(t,e),this.mode$=n,this.options=i,this.size=this.options.size}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.checkbox)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}onFocused(t){this.updateFocused(t)}onModelChange(t){this.value=t}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(s.Auc),i.Y36(s.Y2g))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(t,e){if(1&t&&i.Gf(a.f,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,o.FTc)(t),(0,o.wBO)(t),s.CV2]),i.qOj],ngContentSelectors:u,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:[l.f,r.JJ,r.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})()},72444:(t,e,n)=>{n.d(e,{f:()=>p});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(87605),l=n(10035),u=n(63973),c=n(28347),d=n(35928);const h=["focusableElement"];let p=(()=>{class t extends o.F9l{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,o.V8W)(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(r.a5,10),i.Y36(s.Y2g),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-checkbox"]],viewQuery:function(t,e){if(1&t&&i.Gf(h,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,o.FTc)(t),(0,o.wBO)(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:[a.r,l.t,u.t,c.U,d.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-width: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})()},64201:(t,e,n)=>{n.d(e,{f:()=>i.f,x:()=>l});var i=n(72444),r=n(12057),o=n(42600),s=n(43232),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.S1R,o.udY,o.Fqk,o.ceN,s.fBj]]}),t})()},55891:(t,e,n)=>{n.d(e,{e:()=>v});var i=n(43232),r=n(41035),o=n(97462),s=n(74788),a=n(12057),l=n(22545),u=n(91283),c=n(44766),d=n(89570),h=n(57634);function p(t,e){if(1&t&&(s.ynx(0),s._uU(1),s.BQk()),2&t){const t=e.polymorpheusOutlet;s.xp6(1),s.hij(" ",t," ")}}function g(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",4,5),s.NdJ("click",(function(){const e=s.CHM(t).$implicit;return s.oxw(2).itemClick.emit(e)})),s.TgZ(2,"span",6),s.YNc(3,p,2,1,"ng-container",7),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.MAs(1),i=s.oxw(2);s.Q6J("disabled",i.disabledItemHandler(t))("value",t),s.xp6(3),s.Q6J("polymorpheusOutlet",i.itemContent)("polymorpheusOutletContext",i.getContext(t,n))}}function m(t,e){if(1&t&&(s.TgZ(0,"tui-data-list",2),s.YNc(1,g,4,4,"button",3),s.qZA()),2&t){const t=s.oxw();s.Q6J("emptyContent",t.emptyContent)("size",t.size),s.xp6(1),s.Q6J("ngForOf",t.items)}}function f(t,e){1&t&&s._UZ(0,"tui-loader",8)}let v=(()=>{class t extends o.z{constructor(t,e){super(t,(null==e?void 0:e.size)||"m"),this.items=[]}}return t.ɵfac=function(e){return new(e||t)(s.Y36(r.Ys),s.Y36(i.CsI,8))},t.ɵcmp=s.Xpm({type:t,selectors:[["tui-data-list-wrapper",3,"labels",""]],inputs:{items:"items"},features:[s._Bn([(0,i.RBi)(t),i.Y0]),s.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","click",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value","click"],["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&&(s.YNc(0,m,2,3,"tui-data-list",0),s.YNc(1,f,1,0,"ng-template",null,1,s.W1O)),2&t){const t=s.MAs(2);s.Q6J("ngIf",e.items)("ngIfElse",t)}},directives:[a.O5,l.q,a.sg,u.v,c.U,d.Li,h.k],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0}),t})()},97462:(t,e,n)=>{n.d(e,{z:()=>s});var i=n(74788),r=n(42600),o=n(43232);let s=(()=>{class t{constructor(t,e){this.itemsHandlers=t,this.defaultSize=e,this.optionsQuery=r.Mmc,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=this.defaultSize,this.itemClick=new i.vpe,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:e}){return{$implicit:t,active:(0,r.V8W)(e)}}getOptions(t=!1){return this.optionsQuery.filter((({disabled:e})=>t||!e)).map((({value:t})=>t)).filter(r.PcC)}}return t.ɵfac=function(t){i.$Z()},t.ɵdir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(o.vKW,5),2&t){let t;i.iGM(t=i.CRH())&&(e.optionsQuery=t)}},inputs:{disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"},outputs:{itemClick:"itemClick"}}),t})()},36866:(t,e,n)=>{n.d(e,{l:()=>m});var i=n(74788),r=n(24751),o=n(42600),s=n(59912),a=n(12057),l=n(93604),u=n(63973),c=n(28347);const d=["native"],h=["text"];function p(t,e){1&t&&(i.TgZ(0,"span",5),i.Hsn(1),i.qZA())}const g=["*"];let m=(()=>{class t extends o.M$T{constructor(t,e){super(t,e),this.maxLength=null,this.indent=-1}get nativeFocusableElement(){return this.native?this.native.nativeElement:null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get hasValue(){return""!==this.value}onValueChange(t){this.text&&(this.text.nativeElement.textContent=t,this.text.nativeElement.style.textIndent="",this.value=t)}onFocused(t){this.updateFocused(t)}onScroll(){var t;const e=(null===(t=this.native)||void 0===t?void 0:t.nativeElement.scrollLeft)||0;this.indent=-1-e}getFallbackValue(){return""}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input-inline"]],viewQuery:function(t,e){if(1&t&&(i.Gf(d,5),i.Gf(h,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.native=t.first),i.iGM(t=i.CRH())&&(e.text=t.first)}},inputs:{maxLength:"maxLength"},features:[i._Bn([s.E2,(0,o.FTc)(t)]),i.qOj],ngContentSelectors:g,decls:5,vars:10,consts:[[1,"t-before",3,"textContent"],["text",""],["automation-id","tui-input-inline__placeholder","class","t-placeholder",4,"ngIf"],["automation-id","tui-input-inline__native","tuiMaskAccessor","","type","text",1,"t-native",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange","scroll","tuiFocusedChange"],["native",""],["automation-id","tui-input-inline__placeholder",1,"t-placeholder"]],template:function(t,e){1&t&&(i.F$t(),i._UZ(0,"span",0,1),i.YNc(2,p,2,0,"span",2),i.TgZ(3,"input",3,4),i.NdJ("ngModelChange",(function(t){return e.onValueChange(t)}))("scroll",(function(){return e.onScroll()}))("tuiFocusedChange",(function(t){return e.onFocused(t)})),i.qZA()),2&t&&(i.Udp("text-indent",e.indent,"px"),i.Q6J("textContent",e.value),i.xp6(2),i.Q6J("ngIf",!e.hasValue),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly)("tuiFocusable",e.focusable),i.uIk("maxLength",e.maxLength))},directives:[a.O5,l.j,r.Fj,r.JJ,r.On,u.t,c.U],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;overflow:hidden;white-space:nowrap;box-sizing:border-box}.t-before[_ngcontent-%COMP%]{display:block;padding-right:.02em;margin-left:1px;white-space:pre}.t-placeholder[_ngcontent-%COMP%]{display:inline-block;min-width:1px}.t-native[_ngcontent-%COMP%]{position:absolute;top:0;left:0;background-color:transparent;padding:inherit;font:inherit;-webkit-text-fill-color:transparent;box-sizing:border-box;width:100%;height:100%;border-width:0;text-align:inherit;letter-spacing:inherit;text-indent:inherit;text-transform:inherit;outline:none}"],changeDetection:0}),t})()},71753:(t,e,n)=>{n.d(e,{q:()=>k});var i=n(97582),r=n(74788),o=n(24751),s=n(72878),a=n(42600),l=n(43232),u=n(89570),c=n(92482),d=n(75526),h=n(19042),p=n(38190),g=n(40330),m=n(4642),f=n(45642),v=n(12057),b=n(18289);function y(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 _(t,e){if(1&t&&(r.TgZ(0,"div",6),r.YNc(1,y,2,1,"ng-container",7),r.qZA()),2&t){r.oxw();const t=r.MAs(9);r.xp6(1),r.Q6J("polymorpheusOutlet",t)}}function C(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 w(t,e){1&t&&r.GkF(0)}function x(t,e){1&t&&r.Hsn(0,2)}const M=["*",[["input"]],[["tuiContent"]]],O=new r.OlP("");class k extends a.F9l{constructor(t,e,n,i,r,o,s,l){super(t,e,n),this.options=i,this.numberFormat=r,this.isIOS=o,this.textfieldSize=s,this.controller=l,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=a.Mmc}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,l.LfO)(t,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=i.length),this.computedPrefix+(0,l.lx_)(t,Object.assign(Object.assign({},this.numberFormat),{decimalLimit:n})).replace(a.fv1,a.emD)+this.computedPostfix}get isNativeValueNotFinished(){const t=this.nativeNumberValue;return t<0?t>this.computedMax:t[l.length,t.length-u.length]))]})}}k.ɵfac=function(t){return new(t||k)(r.Y36(o.a5,10),r.Y36(r.sBO),r.Y36(O,8),r.Y36(c.vy),r.Y36(l.HOy),r.Y36(a.FAH),r.Y36(l.kId),r.Y36(l.CsI))},k.ɵcmp=r.Xpm({type:k,selectors:[["tui-input-number"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,u.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.polymorpheusValueContent=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(l.ycg,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,a.FTc)(k),(0,a.wBO)(k),l.Y0]),r.qOj],ngContentSelectors:["*","input","tuiContent"],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(M),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,_,2,1,"div",2),r.qZA(),r.YNc(5,C,5,8,"section",3),r.YNc(6,w,1,0,"ng-container",4),r.ALo(7,"async"),r.YNc(8,x,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:[d.y,h.B,p.T,g.A,m.n,f.ro,v.O5,u.Li,b.v],pipes:[v.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)([a.UMq],k.prototype,"computeMin",null),(0,i.gn)([a.UMq],k.prototype,"computeMax",null),(0,i.gn)([a.UMq],k.prototype,"calculateMask",null)},21032:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{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,i.cpA)(t)]),r.qOj]}),t})()},92482:(t,e,n)=>{n.d(e,{vy:()=>o});var i=n(42600);const r={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0,decimal:"not-zero",precision:2},o=(0,i.JN4)(r)},38642:(t,e,n)=>{n.d(e,{K:()=>g});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(59912),l=n(98778),u=n(55788),c=n(75526),d=n(19042);const h=["*",[["input"]]],p=["*","input"];let g=(()=>{class t extends o.M$T{constructor(t,e,n,i){super(t,e,i),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,o.V8W)(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(s.kId),i.Y36(o.FXc,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-input"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,s.gXS,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(s.o1K,5),i.Gf(s.ycg,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([a.E2,(0,o.FTc)(t),(0,s.oEG)(t),(0,o.wBO)(t)],[a.yn]),i.qOj],ngContentSelectors:p,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(h),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:[l.o,u.e,c.y,d.B],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})()},55770:(t,e,n)=>{n.d(e,{w:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{onValueChange(t){this.host.onValueChange(t)}}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"]],features:[r._Bn([(0,i.cpA)(t)]),r.qOj]}),t})()},68039:(t,e,n)=>{n.d(e,{_:()=>p});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(4812),l=n(12057),u=n(42),c=n(63084);function d(t,e){1&t&&i.GkF(0)}const h=["*"];let p=(()=>{class t extends o.F9l{constructor(t,e,n){super(t,e),this.modeDirective=n,this.identityMatcher=o.bgn,this.contentAlign="right",this.size="l",this.hideRadio=!1,this.pseudoDisabled=!1}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.radio)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e: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?s.NmR.Primary:s.NmR.Secondary:this.checked?s.NmR.WhiteblockActive:s.NmR.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(r.a5,10),i.Y36(i.sBO),i.Y36(s.wtG,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio-block"]],viewQuery:function(t,e){if(1&t&&i.Gf(a._M,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,o.FTc)(t),(0,o.wBO)(t)]),i.qOj],ngContentSelectors:h,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,d,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:[l.O5,u.o,c._,r.JJ,r.On],pipes:[l.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=xs][_nghost-%COMP%]{font:var(--tui-font-text-xs)}[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-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-right:.5rem}[data-align=right][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:0 0 0 1rem}[data-align=right][data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-left:.5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:not(._focused):after{border-width:1px}[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=xs][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-xs) / 2 - .5rem) .25rem;transform:scale(.75)}[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=xs][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-xs)}[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})()},4812:(t,e,n)=>{n.d(e,{_M:()=>i._,FE:()=>l});var i=n(63084),r=n(12057),o=n(42600),s=n(43232),a=n(74788);let l=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=a.oAB({type:t}),t.ɵinj=a.cJS({imports:[[r.ez,o.S1R,o.udY,o.Fqk,o.ceN,s.WUl]]}),t})();n(48806)},63084:(t,e,n)=>{n.d(e,{_:()=>m});var i=n(74788),r=n(24751),o=n(42600);const s=["*"];let a=(()=>{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:s,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),t})();var l=n(48806),u=n(42),c=n(10035),d=n(63973),h=n(28347),p=n(35928);const g=["focusableElement"];let m=(()=>{class t extends o.F9l{constructor(t,e,n,i){super(t,e),this.options=n,this.radioGroup=i,this.identityMatcher=o.bgn,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,o.V8W)(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(r.a5,10),i.Y36(i.sBO),i.Y36(l.nh),i.Y36(a,8))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-radio"]],viewQuery:function(t,e){if(1&t&&i.Gf(g,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,o.FTc)(t),(0,o.wBO)(t)]),i.qOj],decls:4,vars:13,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],[1,"t-mark"],["type","radio",1,"t-native",3,"disabled","id","tuiChecked","tuiFocusable","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i._UZ(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.ekj("t-mark_visible",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:[u.o,c.t,d.t,h.U,p.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%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;background-color:currentColor;border-radius:100%;transform:scale(0)}.t-mark_visible[_ngcontent-%COMP%]{transform:scale(1)}[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-width: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}"],changeDetection:0}),t})()},48806:(t,e,n)=>{n.d(e,{nh:()=>s});var i=n(42600),r=n(43232);const o={size:"m",appearances:{unchecked:r.NmR.Outline,checked:r.NmR.Primary}},s=(0,i.JN4)(o)},81476:(t,e,n)=>{n.d(e,{Q4:()=>_,TA:()=>y,Ig:()=>C});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(89570),l=n(79765),u=n(66682),c=n(59193),d=n(39761),h=n(88002),p=n(87519),g=n(12057),m=n(77825),f=n(78273);function v(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 b(t,e){1&t&&i._UZ(0,"span",4)}let y=(()=>{class t{constructor(t,e,n,i,r,s,a,g){this.icons=t,this.context=e,this.host=n,this.el=i,this.option=r,this.dataList=s,this.control=a,this.abstractControl=g,this.changeDetection$=new l.xQ,this.selected$=(0,u.T)(this.changeDetection$,this.control.valueChanges||c.E,(0,o.mLY)(this.el.nativeElement,"animationstart")).pipe((0,d.O)(null),(0,h.U)((()=>this.selected)),(0,p.x)())}get matcher(){return this.host.identityMatcher||o.bgn}ngOnInit(){Promise.resolve().then((()=>{var t,e;(0,o.PcC)(this.option.value)&&!this.option.disabled&&(null===(e=(t=this.host).checkOption)||void 0===e||e.call(t,this.option.value))}))}ngDoCheck(){this.changeDetection$.next()}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,o.PcC)(this.option.value)&&(0,o.PcC)(this.value)&&this.matcher(this.value,this.option.value)}}return t.ɵfac=function(e){return new(e||t)(i.Y36(s.Gs9),i.Y36(a.yf),i.Y36(s.N1S),i.Y36(i.SBq),i.Y36(s.vKW),i.Y36(s.qiE,8),i.Y36(r.a5),i.Y36(o.M$T,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,v,1,2,"tui-svg",1),i.ALo(2,"async"),i.YNc(3,b,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:[g.tP,g.O5,m.P,f.M],pipes:[g.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.75rem}'],changeDetection:0}),t})();const _=new a.Al(y);let C=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({imports:[[g.ez,s.EIu,s.ecP]]}),t})()},1065:(t,e,n)=>{n.d(e,{u:()=>E});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(2046),l=n(30991),u=n(81476),c=n(59912),d=n(41035),h=n(77128),p=n(98778),g=n(55788),m=n(75526),f=n(19042),v=n(60644),b=n(12057),y=n(89570),_=n(42);function C(t,e){1&t&&i.Hsn(0,2,["*ngIf","isMobile"])}function w(t,e){if(1&t&&i.YNc(0,C,1,0,"ng-content",6),2&t){const t=i.oxw();i.Q6J("ngIf",t.isMobile)}}function x(t,e){1&t&&i.GkF(0,7)}function M(t,e){if(1&t&&i._UZ(0,"div",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("textContent",t)}}const O=function(t,e){return{$implicit:t,active:e}};function k(t,e){if(1&t&&(i.TgZ(0,"div",8),i.YNc(1,M,1,1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",i.WLB(2,O,t.value,t.computedFocused))}}function S(t,e){1&t&&i.GkF(0)}function P(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,S,1,0,"ng-container",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.arrow)}}const T=["*",[["input"]],[["select"]]],A=["*","input","select"];let E=(()=>{class t extends o.F9l{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(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(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||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(r.a5,10),i.Y36(i.sBO),i.Y36(s.YmJ),i.Y36(s.kId),i.Y36(l.Ii),i.Y36(d.Ys),i.Y36(h.l),i.Y36(o.fLQ))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,a.s,7),i.Suo(n,s.gXS,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(s.ycg,5),i.Gf(s.o1K,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,o.FTc)(t),(0,o.wBO)(t),(0,s.oEG)(t),(0,s.P7F)(u.Q4)],[c.yn]),i.qOj],ngContentSelectors:A,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(T),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,w,1,1,"ng-template",null,2,i.W1O),i.YNc(6,x,1,0,"ng-container",3),i.YNc(7,k,2,5,"div",4),i.qZA(),i.YNc(8,P,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:[p.o,g.e,m.y,f.B,v.A,b.tP,b.O5,y.Li,_.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})()},75747:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(43232),r=n(74788);let o=(()=>{class t extends i.D1Q{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=r.n5z(t)))(n||t)}}(),t.ɵdir=r.lG2({type:t,selectors:[["tui-select"]],features:[r._Bn([(0,i.cpA)(t)]),r.qOj]}),t})()},77128:(t,e,n)=>{n.d(e,{l:()=>i});const i=(0,n(42600).JN4)({valueContent:""})},41699:(t,e,n)=>{n.d(e,{t:()=>l});var i=n(74788),r=n(24751),o=n(42600),s=n(82191),a=n(5657);let l=(()=>{class t extends o.M$T{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,o.V8W)(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=(0,s.hm)(this.slider.valuePercentage,this.keySteps)}writeValue(t){if(null===t)return;const e=(0,o.Kiv)(t,this.min,this.max);this.slider.value=this.transformToNativeValue(e)}getFallbackValue(){return 0}transformToNativeValue(t){const{min:e,max:n}=this.slider;return(0,s.ox)(t,this.keySteps)*(n-e)/100+e}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36((0,i.Gpc)((()=>a.i))))},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})()},52707:(t,e,n)=>{n.d(e,{Z:()=>d});var i=n(24751),r=(n(42600),n(5657)),o=n(74788),s=n(12057);const a=["tuiSliderThumbLabel",""];function l(t,e){1&t&&o.GkF(0)}const u=["*",[["input","type","range"]]],c=["*","input[type=range]"];let d=(()=>{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.valueRatio)||0}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=o.Xpm({type:t,selectors:[["","tuiSliderThumbLabel",""]],contentQueries:function(t,e,n){if(1&t&&(o.Suo(n,r.i,5),o.Suo(n,i.a5,5)),2&t){let t;o.iGM(t=o.CRH())&&(e.slider=t.first),o.iGM(t=o.CRH())&&(e.control=t.first)}},attrs:a,ngContentSelectors:c,decls:5,vars:8,consts:[[4,"ngIf"],[1,"t-ghost"]],template:function(t,e){1&t&&(o.F$t(u),o.YNc(0,l,1,0,"ng-container",0),o.ALo(1,"async"),o.TgZ(2,"div",1),o.Hsn(3),o.qZA(),o.Hsn(4,1)),2&t&&(o.Q6J("ngIf",o.lcZ(1,6,null==e.control?null:e.control.valueChanges)),o.xp6(2),o.Udp("--tui-slider-thumb-ratio",e.ratio)("left",e.ghostLeft,"px"),o.uIk("data-size",e.size))},directives:[s.O5],pipes:[s.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:.75rem;height:.75rem;transform:translate(calc(var(--tui-slider-thumb-ratio) * -.75rem))}"],changeDetection:0}),t})()},5657:(t,e,n)=>{n.d(e,{i:()=>d});var i=n(97582),r=n(74788),o=n(24751),s=n(62579),a=n(42600),l=n(15257),u=n(41699),c=n(76508);class d{constructor(t,e,n,i,r,s){var u;this.control=t,this.options=n,this.el=i,this.userAgent=r,this.injector=s,this.size=this.options.size,this.segments=1,t instanceof o.On&&(null===(u=t.valueChanges)||void 0===u||u.pipe((0,a.NAr)(e),(0,l.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 o.On?e.viewModel:Number(t.nativeElement.value)||0}set value(t){this.el.nativeElement.value=`${t}`}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get valuePercentage(){return 100*this.valueRatio}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return(0,a.xz3)(a.FSK,this.userAgent)}get hasKeySteps(){return Boolean(this.injector.get(u.t,null))}}d.ɵfac=function(t){return new(t||d)(r.Y36(o.a5,10),r.Y36(r.sBO),r.Y36(c.NN),r.Y36(r.SBq),r.Y36(s.yZ),r.Y36(r.zs3))},d.ɵcmp=r.Xpm({type:d,selectors:[["input","type","range","tuiSlider",""]],hostVars:11,hostBindings:function(t,e){1&t&&r.NdJ("input",(function(){return 0})),2&t&&(r.uIk("data-size",e.size),r.Udp("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-ratio",e.valueRatio)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),r.ekj("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:["type","range","tuiSlider",""],decls:0,vars:0,template:function(t,e){},styles:['[_nghost-%COMP%]{position:relative;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}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_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 .5rem,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,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),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 .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[_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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}: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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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,i.gn)([a.UMq],d.prototype,"hasKeySteps",null)},76508:(t,e,n)=>{n.d(e,{NN:()=>o,OF:()=>s});var i=n(42600);const r={size:"m",trackColor:"var(--tui-base-03)"},o=(0,i.JN4)(r);function s(t){return(0,i.vKU)(o,t,r)}},94824:(t,e,n)=>{n.d(e,{y:()=>p});var i=n(74788),r=n(34016),o=n(42600),s=n(43232),a=n(41035),l=n(9203),u=n(12057);const c=["tuiTab",""];function d(t,e){1&t&&i.GkF(0)}const h=["*"];let p=(()=>{class t{constructor(t,e,n,i,r){this.routerLinkActive=t,this.el=e,this.mode$=n,this.event$=i,this.margin=r}get isActive(){return!!this.routerLinkActive&&this.routerLinkActive.isActive}ngOnDestroy(){(0,o.V8W)(this.el.nativeElement)&&this.el.nativeElement.blur()}}return t.ɵfac=function(e){return new(e||t)(i.Y36(r.Od,8),i.Y36(i.SBq),i.Y36(s.Auc),i.Y36(l.dJ),i.Y36(a.WO))},t.ɵcmp=i.Xpm({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],hostVars:6,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("_active",e.isActive))},features:[i._Bn(l.pF)],attrs:c,ngContentSelectors:h,decls:4,vars:3,consts:[[4,"ngIf"],[1,"t-highlight"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,d,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:[u.O5],pipes:[u.Ov],styles:['._underline[_nghost-%COMP%]:hover:not(._active), ._underline [_nghost-%COMP%]:hover:not(._active){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;text-decoration:none;position:relative;display:flex;flex-shrink:0;height:100%;box-sizing:border-box;justify-content:space-between;line-height:1.5rem;align-items:center;white-space:nowrap;cursor:pointer;outline: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][_nghost-%COMP%]:focus-visible .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][_nghost-%COMP%]:focus-visible .t-highlight[_ngcontent-%COMP%]{background:var(--tui-text-01);color:#fff}[_nghost-%COMP%]:focus-visible .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})()},9203:(t,e,n)=>{n.d(e,{dJ:()=>p,pF:()=>g});var i=n(74788),r=n(34016),o=n(23764),s=n(42600),a=n(43232),l=n(59193),u=n(66682),c=n(54487),d=n(45435),h=n(88002);const p=new i.OlP("[TUI_TAB_EVENT]"),g=[s.a31,s.kuj,a.OkA,{provide:p,deps:[i.SBq,a.OkA,[new i.FiY,o.IM],[new i.FiY,r.Od]],useFactory:({nativeElement:t},e,n,i)=>{const r=i&&n?n.pipe((0,d.h)((()=>i.isActive))):l.E;return(0,u.T)(r,e.pipe((0,d.h)(c.y)),t.matches("button")?(0,s.mLY)(t,"click"):l.E).pipe((0,h.U)((()=>t.dispatchEvent(new CustomEvent("tui-tab-activate",{bubbles:!0})))))}},a.CV2]},25276:(t,e,n)=>{n.d(e,{W:()=>A});var i=n(74788),r=n(42600),o=n(30991),s=n(41035),a=n(88002),l=n(45435),u=n(94824),c=n(51360),d=n(5025),h=n(12057),p=n(1618),g=n(81057),m=n(98778),f=n(63973),v=n(89570),b=n(77825),y=n(58154);function _(t,e){1&t&&i.GkF(0)}function C(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function w(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 x(t,e){if(1&t&&(i.ynx(0),i.YNc(1,C,1,1,"ng-container",10),i.YNc(2,w,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 M(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 O(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 k(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function S(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,k,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 P(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,S,2,1,"div",16),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngForOf",t.items)}}function T(t,e){if(1&t&&i._UZ(0,"tui-underline",19),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}let A=(()=>{class t{constructor(t,e,n,o,s,a,l){this.options=t,this.margin=e,this.refresh$=n,this.el=o,this.cdr=s,this.moreWord$=a,this.arrowOptions=l,this.maxIndex=1/0,this.underline=this.options.underline,this.itemsLimit=this.options.itemsLimit,this.activeItemIndexChange=new i.vpe,this.items=r.Mmc,this.activeItemIndex=0,this.open=!1}set itemIndex(t){this.activeItemIndex=t,this.maxIndex=this.getMaxIndex()}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){var t;const{tabs:e}=this,n=(0,r.Kiv)(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,a.U)((()=>this.getMaxIndex())),(0,l.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,r.veZ)(t.target)&&(0,r.V8W)(t.target)&&this.focusMore()}onArrowLeft(){const{tabs:t}=this;let e=t.length-2;for(;e>=0;){if(t[e].focus(),(0,r.V8W)(t[e]))return;e--}}onWrapperArrow(t,e,n){const i=t.target,o=(0,r.BWF)({initial:i,root:e,previous:n});o&&o.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:o}=this.options,{clientWidth:s}=this.el.nativeElement,a=t[e]?t[e].scrollWidth:0,l=Math.max(t[t.length-1].scrollWidth,o);let u=t.length-2,c=t.reduce(((t,{scrollWidth:e})=>t+e),0)+u*n-t[t.length-1].scrollWidth;if(c<=s)return 1/0;for(;u;)if(c-=t[u].scrollWidth+n,u--,c+(i&&e>u?a+n:0)+l+n+(0,r.HWE)(this.maxIndex===u-1){n.d(e,{l:()=>g,N:()=>m});var i=n(12057),r=n(74788),o=n(23764),s=n(42600),a=n(43232),l=n(66682),u=n(68307),c=n(45435),d=n(54395),h=n(39761),p=n(46782);const g=new r.OlP("[TUI_TABS_REFRESH]"),m=[s.tll,s.a31,o.IM,(0,a.fxH)({align:"right"}),{provide:o.k2,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:g,deps:[s.tll,o.IM,s.a31,i.K0,r.SBq,r.sBO],useFactory:(t,e,n,{body:i},{nativeElement:r},o)=>(0,l.T)(t,e.pipe((0,u.b)((()=>o.detectChanges())))).pipe((0,c.h)((()=>i.contains(r))),(0,d.b)(0),(0,h.O)(null),(0,p.R)(n))}]},81057:(t,e,n)=>{n.d(e,{p:()=>o});var i=n(74788),r=n(42600);let o=(()=>{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,r.VRr)(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})()},51360:(t,e,n)=>{n.d(e,{bH:()=>i});const i=(0,n(42600).JN4)({underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0})},1618:(t,e,n)=>{n.d(e,{H:()=>m});var i=n(97582),r=n(74788),o=n(23764),s=n(42600),a=n(45435),l=n(94824),u=n(81057),c=n(51360),d=n(12057),h=n(58154);function p(t,e){1&t&&r.GkF(0)}function g(t,e){if(1&t&&r._UZ(0,"tui-underline",2),2&t){const t=r.oxw();r.Q6J("element",t.activeElement)}}class m{constructor(t,e,n,i,r){this.options=t,this.el=e,this.tabs=n,this.children=s.Mmc,this.underline=this.options.underline,r.pipe((0,a.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)}}m.ɵfac=function(t){return new(t||m)(r.Y36(c.bH),r.Y36(r.SBq),r.Y36(u.p),r.Y36(r.sBO),r.Y36(s.tll))},m.ɵcmp=r.Xpm({type:m,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,l.y,4),2&t){let t;r.iGM(t=r.CRH())&&(e.children=t)}},hostVars:2,hostBindings:function(t,e){1&t&&r.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&&r.ekj("_underline",e.underline)},inputs:{underline:"underline"},features:[r._Bn([s.a31,s.tll,o.IM,{provide:o.k2,useValue:{childList:!0}}])],ngContentSelectors:["*"],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&&(r.F$t(),r.YNc(0,p,1,0,"ng-container",0),r.ALo(1,"async"),r.Hsn(2),r.YNc(3,g,1,1,"tui-underline",1)),2&t&&(r.Q6J("ngIf",r.lcZ(1,2,e.children.changes)),r.xp6(3),r.Q6J("ngIf",e.underline))},directives:[d.O5,h.B],pipes:[d.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:relative;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;isolation:isolate}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-underline[_ngcontent-%COMP%]{z-index:-1}"],changeDetection:0}),(0,i.gn)([s.UMq],m.prototype,"scrollTo",null)},58154:(t,e,n)=>{n.d(e,{B:()=>g});var i=n(74788),r=n(62579),o=n(42600),s=n(43232),a=n(30126),l=n(74235),u=n(25917),c=n(43190),d=n(88002),h=n(9945),p=n(54395);let g=(()=>{class t{constructor({nativeElement:t},e,n,i){this.zone=e,this.animationFrame$=n,this.mode$=i,this.el$=new l.t(1),this.refresh$=this.el$.pipe((0,c.w)((t=>t?this.animationFrame$.pipe((0,d.U)((()=>t)),(0,o.fL9)(this.zone)):(0,u.of)(null))),(0,h.B)()),this.transition$=(0,a.Gt)(this.el$.pipe((0,d.U)((t=>t&&"all")),(0,p.b)(50))),this.transform$=(0,a.Gt)(this.refresh$.pipe((0,d.U)((t=>t?`translate3d(${t.offsetLeft}px, 0, 0)`:null)))),this.width$=(0,a.Gt)(this.refresh$.pipe((0,d.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(r.L1),i.Y36(s.Auc))},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([s.CV2])],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{transition-property:none;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;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})()},50830:(t,e,n)=>{n.d(e,{G:()=>b});var i=n(74788),r=n(43232),o=n(37654),s=n(90691),a=n(12057),l=n(89570),u=n(57634),c=n(77825),d=n(24751);const h=["input"];function p(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 g(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,p,2,1,"ng-container",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.leftContent)}}function m(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 f(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.stop.prevent.silent",(function(){return 0})),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("src",t.icons.close)}}function v(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)}}let b=(()=>{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?(0,o.s)(this.value):null}get canRemove(){return this.removable&&!this.disabled&&!this.showLoader}get displayText(){return null===this.editedText?this.value:this.editedText}get loaderSize(){return(0,r.R9V)(this.size)?"s":"xs"}edit(t){this.canEdit&&(t.preventDefault(),this.editing=!0,this.editedText=this.value)}remove(t){this.canRemove&&(t.preventDefault(),t.stopPropagation(),this.edited.emit(""))}onInput(t){const e=t.split(this.separator);e.length>1?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(r.Auc),i.Y36(s.nu),i.Y36(r.Gs9))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(t,e){if(1&t&&i.Gf(h,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([r.CV2])],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.stop.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.stop.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,g,2,1,"div",1),i._UZ(2,"span",2),i.YNc(3,m,1,2,"tui-loader",3),i.YNc(4,f,1,1,"tui-svg",4),i.qZA(),i.YNc(5,v,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:[a.O5,l.Li,u.k,c.P,d.Fj,d.JJ,d.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-width: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})()},90691:(t,e,n)=>{n.d(e,{nu:()=>i});const i=(0,n(42600).JN4)({size:"m",status:"default",autoColor:!1})},31338:(t,e,n)=>{n.d(e,{p:()=>O});var i=n(74788),r=n(24751),o=n(42600),s=n(43232),a=n(66895),l=n(42),u=n(12057),c=n(10035),d=n(63973),h=n(28347),p=n(35928),g=n(57634),m=n(89570),f=n(77825);const v=["focusableElement"];function b(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 y(t,e){if(1&t&&i._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}const _=function(t){return{$implicit:t}};function C(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,y,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,_,t.size))}}function w(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",12),2&t){const t=e.polymorpheusOutlet;i.Q6J("src",t)}}function M(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,x,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,_,t.size))}}let O=(()=>{class t extends o.M$T{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(){var t,e;return null!==(e=null===(t=this.focusableElement)||void 0===t?void 0:t.nativeElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(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(){var t,e;return null!==(e=null===(t=this.modeDirective)||void 0===t?void 0:t.mode)&&void 0!==e?e: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(s.wtG,8),i.Y36(a.oO))},t.ɵcmp=i.Xpm({type:t,selectors:[["tui-toggle"]],viewQuery:function(t,e){if(1&t&&i.Gf(v,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,o.FTc)(t),(0,o.wBO)(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,b,1,3,"tui-loader",2),i.YNc(3,C,2,4,"span",3),i._UZ(4,"div",4),i.YNc(5,w,1,3,"tui-loader",2),i.YNc(6,M,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:[l.o,u.O5,c.t,d.t,h.U,p.q,g.k,m.Li,f.P],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-width: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)}.t-loader[_ngcontent-%COMP%]{min-width:auto}[_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})()},66895:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(42600),r=n(43232);const o={icons:{toggleOff:({$implicit:t})=>"m"===t?"tuiIconToggleOff":"tuiIconToggleOffLarge",toggleOn:({$implicit:t})=>"m"===t?"tuiIconToggleOn":"tuiIconToggleOnLarge"},appearances:{checked:r.NmR.Primary,unchecked:r.NmR.Secondary},singleColor:!1,showIcons:!1,size:"m"},s=(0,i.JN4)(o)},2181:(t,e,n)=>{n.d(e,{JC:()=>r,m2:()=>o,EP:()=>u,bM:()=>c,ux:()=>i,bF:()=>l});const i={DMY:"dd/mm/yyyy",MDY:"mm/dd/yyyy",YMD:"yyyy/mm/dd"},r=", ",o=/\([#]+\)|[#\- ]/g;var s=n(42600),a=n(43232);s.kUW,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,s.fv1,a.hW1,a.hW1,s.fv1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1,a.hW1;const l=7,u=(t,e,n,i)=>{if(!(null==e?void 0:e.isSingleDay)||!n)return t;const r=(0,s.yj2)(Object.entries(n).map((([t,e])=>[t,-e]))),o=e.from.append(i?r:n).append({day:i?1:-1});return i?o.dayBefore(t)?t:o:t&&o.dayAfter(t)?t:o},c={HH:23,MM:59,SS:59,MS:999}},4642:(t,e,n)=>{n.d(e,{n:()=>o});var i=n(59912),r=n(74788);let o=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=r.lG2({type:t,selectors:[["","tuiValueAccessor",""]],features:[r._Bn([i.E2])]}),t})()},6667:(t,e,n)=>{n.d(e,{_jk:()=>h._j,s3J:()=>nt.s3,UVe:()=>nt.UV,ueO:()=>nt.ue,iKB:()=>u,fT6:()=>et,sxu:()=>Jt,zXW:()=>re,YuV:()=>Ni,z$l:()=>ki,QfL:()=>Ne,_Hh:()=>en,ydP:()=>ro,zk$:()=>d,nJ7:()=>mo,Jyo:()=>fo,c2K:()=>Or,$$e:()=>Oo,d38:()=>Zn,YMv:()=>Fo,SCC:()=>tt});var i=n(2046),r=(n(21260),n(12057)),o=n(42600),s=n(43232),a=n(89570),l=n(74788);let u=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Fqk,o.ceN,o.udY,a.wq,s.EIu,s.n6B,s.ijq]]}),t})();n(25535);var c=n(77825);let d=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,s.EIu]]}),t})();var h=n(30991),p=n(97582),g=n(37654);const m=(0,o.JN4)({size:"m",autoColor:!1,rounded:!1});var f=n(29856),v=n(9945),b=n(62579);const y=new l.OlP("Root element for IntersectionObserver"),_="0px 0px 0px 0px",C=new l.OlP("rootMargin for IntersectionObserver",{providedIn:"root",factory:()=>_});function w(t){return t||_}const x=new l.OlP("threshold for IntersectionObserver",{providedIn:"root",factory:()=>0});function M(t){return(null==t?void 0:t.split(",").map(parseFloat))||0}const O="undefined"!=typeof IntersectionObserver?IntersectionObserver:class{constructor(){this.root=null,this.rootMargin="",this.thresholds=[]}observe(){}unobserve(){}disconnect(){}takeRecords(){return[]}};let k=(()=>{class t extends O{constructor(t,e,n){super((t=>{this.callbacks.forEach(((e,n)=>{const i=t.filter((({target:t})=>t===n));return i.length&&e(i,this)}))}),{root:t&&t.nativeElement,rootMargin:w(e),threshold:M(n)}),this.callbacks=new Map}observe(t,e=(()=>{})){super.observe(t),this.callbacks.set(t,e)}unobserve(t){super.unobserve(t),this.callbacks.delete(t)}ngOnDestroy(){this.disconnect()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(y,8),l.$8M("waIntersectionRootMargin"),l.$8M("waIntersectionThreshold"))},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionObserver",""]],exportAs:["IntersectionObserver"],features:[l.qOj]}),t})(),S=(()=>{class t extends f.y{constructor({nativeElement:t},e){return super((n=>(e.observe(t,(t=>{n.next(t)})),()=>{e.unobserve(t)}))),this.pipe((0,v.B)())}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(k))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})(),P=(()=>{class t{constructor(t){this.waIntersectionObservee=t}}return t.ɵfac=function(e){return new(e||t)(l.Y36(S))},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionObservee",""]],outputs:{waIntersectionObservee:"waIntersectionObservee"},features:[l._Bn([S])]}),t})(),T=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵdir=l.lG2({type:t,selectors:[["","waIntersectionRoot",""]],features:[l._Bn([{provide:y,useExisting:l.SBq}])]}),t})();const A=new l.OlP("Intersection Observer API support",{providedIn:"root",factory:()=>!!(0,l.f3M)(b.m9).IntersectionObserver});let E=(()=>{class t extends f.y{constructor({nativeElement:t},e,n,i,r){return super((o=>{if(!e)return void o.error("IntersectionObserver is not supported in your browser");const s=new IntersectionObserver((t=>{o.next(t)}),{root:null==r?void 0:r.nativeElement,rootMargin:n,threshold:i});return s.observe(t),()=>{s.disconnect()}})),this.pipe((0,v.B)())}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(A),l.LFG(C),l.LFG(x),l.LFG(y,8))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})();var I=n(25917),D=n(79765),L=n(43190),F=n(45435),N=n(88002),z=n(5304),R=n(15257),B=n(46782);let H=(()=>{class t extends f.y{constructor(t,e,n){super((i=>this.src$.pipe((0,L.w)((e=>n.pipe((0,F.h)((([{isIntersecting:t}])=>t)),(0,N.U)((()=>e)),(0,z.K)((()=>(0,I.of)(e))),(0,o.NAr)(t),(0,R.q)(1)))),(0,B.R)(e)).subscribe(i))),this.src$=new D.xQ}next(t){this.src$.next(t)}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.sBO),l.LFG(o.a31,2),l.LFG(E))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})(),V=(()=>{class t{constructor(t,e){this.src$=t,this.el=e,this.animation="tuiSkeletonVibe ease-in-out 1s infinite alternate",this.background="var(--tui-clear-hover)",this.src=null,this.supported||this.src$.subscribe((t=>{this.src=t}))}set srcSetter(t){this.src=this.supported?t:null,this.src$.next(t)}get supported(){return"loading"in this.el.nativeElement}onLoad(){this.background="",this.animation=""}}return t.ɵfac=function(e){return new(e||t)(l.Y36(H),l.Y36(l.SBq))},t.ɵdir=l.lG2({type:t,selectors:[["img","loading","lazy"]],hostVars:5,hostBindings:function(t,e){1&t&&l.NdJ("load",(function(){return e.onLoad()})),2&t&&(l.uIk("src",e.src,l.LSH),l.Udp("animation",e.animation)("background",e.background))},inputs:{srcSetter:["src","srcSetter"]},features:[l._Bn([H,E,o.a31])]}),t})();function Y(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"img",3),l.NdJ("error",(function(){return l.CHM(t),l.oxw().onError()})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("src",t.avatarUrl||"",l.LSH),l.uIk("alt",t.text)}}function j(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.fallback)}}function Z(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.stringAvatar)}}class ${constructor(t){this.options=t,this.size=this.options.size,this.text="",this.fallback=null,this.autoColor=this.options.autoColor,this.rounded=this.options.rounded,this.avatarUrl=null,this.isUrlValid=!1}set avatarUrlSetter(t){this.avatarUrl=t,this.isUrlValid=!!t&&!this.iconAvatar}get bgColor(){return this.autoColor?(0,g.s)(this.text):""}get hasAvatar(){return null!==this.avatarUrl&&this.isUrlValid}get iconAvatar(){var t;return(0,o.Ajw)(this.avatarUrl)&&!!(null===(t=this.avatarUrl)||void 0===t?void 0:t.startsWith("tuiIcon"))}get useFallback(){return!(!this.fallback||!this.avatarUrl||this.isUrlValid||this.text.length)}get computedText(){return this.hasAvatar||this.iconAvatar||""===this.text?"":this.getSlicedText(this.text,this.size)}get stringAvatar(){return this.iconAvatar?String(this.avatarUrl):""}onError(){this.isUrlValid=!1}getSlicedText(t,e){const n=t.split(" ");return n.length>1&&(0,s.R9V)(e)?n[0].slice(0,1)+n[1].slice(0,1):n[0].slice(0,1)}}$.ɵfac=function(t){return new(t||$)(l.Y36(m))},$.ɵcmp=l.Xpm({type:$,selectors:[["tui-avatar"]],hostVars:7,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.size),l.Udp("background",e.bgColor),l.ekj("_rounded",e.rounded)("_has-avatar",e.hasAvatar))},inputs:{size:"size",avatarUrlSetter:["avatarUrl","avatarUrlSetter"],text:"text",fallback:"fallback",autoColor:"autoColor",rounded:"rounded"},decls:5,vars:4,consts:[["loading","lazy","class","t-image",3,"src","error",4,"ngIf"],["class","t-icon",3,"src",4,"ngIf"],[1,"t-text"],["loading","lazy",1,"t-image",3,"src","error"],[1,"t-icon",3,"src"]],template:function(t,e){1&t&&(l.YNc(0,Y,1,2,"img",0),l.YNc(1,j,1,1,"tui-svg",1),l.YNc(2,Z,1,1,"tui-svg",1),l.TgZ(3,"span",2),l._uU(4),l.qZA()),2&t&&(l.Q6J("ngIf",e.isUrlValid),l.xp6(1),l.Q6J("ngIf",e.useFallback),l.xp6(1),l.Q6J("ngIf",e.stringAvatar),l.xp6(2),l.Oqu(e.computedText))},directives:[r.O5,V,c.P],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-shrink:0;border-radius:var(--tui-radius-m);color:var(--tui-secondary-active);text-align:center;text-transform:uppercase;justify-content:center;align-items:center;background:var(--tui-avatar-background, currentColor);-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}[data-size=xs][_nghost-%COMP%]{font:var(--tui-font-text-s);width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-m);width:2rem;height:2rem}[data-size=m][_nghost-%COMP%]{font:var(--tui-font-text-l);width:3rem;height:3rem}[data-size=l][_nghost-%COMP%]{font:var(--tui-font-heading-5);width:4rem;height:4rem;border-radius:var(--tui-radius-xl)}[data-size=xl][_nghost-%COMP%]{font:var(--tui-font-heading-3);width:6rem;height:6rem;border-radius:var(--tui-radius-xl)}[data-size=xxl][_nghost-%COMP%]{font:var(--tui-font-heading-1);width:9rem;height:9rem;border-radius:var(--tui-radius-l)}[new][data-size=xxs][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}[new][data-size=xxs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.58)}[new][data-size=xs][_nghost-%COMP%]{width:2rem;height:2rem;border-radius:var(--tui-radius-s)}[new][data-size=xs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.83)}[new][data-size=s][_nghost-%COMP%]{width:2.5rem;height:2.5rem;border-radius:calc(1.5 * var(--tui-radius-s))}[new][data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1)}[new][data-size=m][_nghost-%COMP%]{width:3rem;height:3rem;border-radius:calc(2 * var(--tui-radius-s))}[new][data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.17)}[new][data-size=l][_nghost-%COMP%]{width:4rem;height:4rem;border-radius:calc(2 * var(--tui-radius-s))}[new][data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.67)}[new][data-size=xl][_nghost-%COMP%]{width:6rem;height:6rem;border-radius:calc(3 * var(--tui-radius-s))}[new][data-size=xl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(2.33)}[new][data-size=xxl][_nghost-%COMP%]{width:8rem;height:8rem;border-radius:calc(4 * var(--tui-radius-s))}[new][data-size=xxl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(3.33)}._has-avatar[_nghost-%COMP%]{background-color:transparent}._rounded[_nghost-%COMP%]{border-radius:100%!important} .tui-avatar-stack{display:flex;width:-webkit-min-content;width:min-content}.tui-avatar-stack[data-size=xs][_nghost-%COMP%], .tui-avatar-stack [data-size=xs][_nghost-%COMP%]{margin-right:-.625rem;box-shadow:0 0 0 1px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=s][_nghost-%COMP%], .tui-avatar-stack [data-size=s][_nghost-%COMP%]{margin-right:-.875rem;box-shadow:0 0 0 1px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=m][_nghost-%COMP%], .tui-avatar-stack [data-size=m][_nghost-%COMP%]{margin-right:-1.25rem;box-shadow:0 0 0 2px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=l][_nghost-%COMP%], .tui-avatar-stack [data-size=l][_nghost-%COMP%]{margin-right:-1.625rem;box-shadow:0 0 0 2px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=xl][_nghost-%COMP%], .tui-avatar-stack [data-size=xl][_nghost-%COMP%]{margin-right:-2.25rem;box-shadow:0 0 0 3px var(--tui-avatar-border, var(--tui-base-01))}.tui-avatar-stack[data-size=xxl][_nghost-%COMP%], .tui-avatar-stack [data-size=xxl][_nghost-%COMP%]{margin-right:-3.375rem;box-shadow:0 0 0 3px var(--tui-avatar-border, var(--tui-base-01))}.t-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.t-text[_ngcontent-%COMP%]{color:var(--tui-avatar-color, var(--tui-text-01))}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-avatar-color, var(--tui-text-01))}[data-size=xs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(.5)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(1.6)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(2)}[data-size=xl][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:scale(3.2)}"],changeDetection:0}),(0,p.gn)([o.UMq],$.prototype,"getSlicedText",null);var U=n(66682),G=n(59193),q=n(68307),J=n(47349),Q=n(54395);class W{constructor(t){this.destroy$=t,this.dropdowns=o.Mmc,this.els=o.Mmc}ngAfterViewInit(){this.right$.pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.tryToFocus(t)})),(0,U.T)(this.immediate$,this.debounce$).pipe((0,L.w)((t=>{this.dropdowns.forEach(((e,n)=>{e.toggle(n===t)}));const e=this.els.get(t),n=this.dropdowns.get(t);if(!e||!(null==n?void 0:n.dropdownBoxRef))return G.E;const{nativeElement:i}=n.dropdownBoxRef.location,r=(0,o.mLY)(i,"mouseenter").pipe((0,R.q)(1)),s=(0,U.T)((0,o.mLY)(e.nativeElement,"keydown"),(0,o.mLY)(i,"keydown")).pipe((0,F.h)((({key:t})=>"Escape"===t)));return(0,U.T)(r,s).pipe((0,q.b)((t=>{n.dropdownBoxRef&&t.stopPropagation(),e.nativeElement.focus(),n.toggle("offsetX"in t)})))})),(0,B.R)(this.destroy$)).subscribe()}get elements$(){return(0,o.llR)(this.els).pipe((0,N.U)((t=>t.map((({nativeElement:t})=>t)))),(0,J.d)({bufferSize:1,refCount:!0}))}get right$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,o.mLY)(t,"keydown").pipe((0,F.h)((({key:t})=>"ArrowRight"===t)),(0,o.mp3)(),(0,N.U)((()=>e)))))))))}get immediate$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,o.mLY)(t,"click").pipe((0,N.U)((()=>e)))))))))}get debounce$(){return this.elements$.pipe((0,L.w)((t=>(0,U.T)(...t.map(((t,e)=>(0,U.T)((0,o.mLY)(t,"focus"),(0,o.mLY)(t,"blur")).pipe((0,F.h)((({relatedTarget:t})=>this.notInDropdown(t,e))),(0,N.U)((({type:t})=>"focus"===t?e:NaN)))))))),(0,Q.b)(300))}notInDropdown(t,e){var n,i;return!(null===(i=null===(n=this.dropdowns.get(e))||void 0===n?void 0:n.dropdownBoxRef)||void 0===i?void 0:i.location.nativeElement.contains(t))}tryToFocus(t){var e,n;const i=null===(n=null===(e=this.dropdowns.get(t))||void 0===e?void 0:e.dropdownBoxRef)||void 0===n?void 0:n.location.nativeElement;if(!i)return;const r=(0,o.BWF)({initial:i,root:i}),s=(0,o.BWF)({initial:r||i,root:i});s&&s.focus()}}W.ɵfac=function(t){return new(t||W)(l.Y36(o.a31,2))},W.ɵdir=l.lG2({type:W,selectors:[["tui-data-list","tuiDataListDropdownManager",""]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,s.tdC,5),l.Suo(n,s.tdC,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.dropdowns=t),l.iGM(t=l.CRH())&&(e.els=t)}},features:[l._Bn([o.a31])]}),(0,p.gn)([o.UMq],W.prototype,"elements$",null),(0,p.gn)([o.UMq],W.prototype,"right$",null),(0,p.gn)([o.UMq],W.prototype,"immediate$",null),(0,p.gn)([o.UMq],W.prototype,"debounce$",null),n(42775);var K=n(25219),X=n(4642);let tt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})();n(38039);let et=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();(0,o.JN4)({icon:"tuiIconChevronRight",size:"m",mode:"onLight"});var nt=n(41035),it=n(96281),rt=n(46109),ot=n(10259),st=n(73460),at=n(63973),lt=n(42486),ut=n(11108),ct=n(9092);function dt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-scrollbar",2),l.TgZ(1,"tui-primitive-year-picker",3),l.NdJ("yearClick",(function(e){return l.CHM(t),l.oxw().onPickerYearClick(e)})),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("initialItem",t.year)("max",t.computedMax)("min",t.computedMin)("value",t.value)}}function ht(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",9),l.NdJ("click",(function(){const e=l.CHM(t).tuiLet;return l.oxw(3).onItemClick(e)}))("tuiHoveredChange",(function(e){const n=l.CHM(t).tuiLet;return l.oxw(3).onItemHovered(e,n)}))("tuiPressedChange",(function(e){const n=l.CHM(t).tuiLet;return l.oxw(3).onItemHovered(e,n)})),l.TgZ(1,"div",10),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw().$implicit,i=l.oxw(2);l.ekj("t-cell_interval",i.isItemInsideRange(t))("t-cell_today",i.isItemToday(t)),l.uIk("data-range",i.getItemRange(t))("data-state",i.getItemState(t)),l.xp6(2),l.Oqu(n)}}function pt(t,e){if(1&t&&(l.ynx(0),l.YNc(1,ht,3,7,"div",8),l.BQk()),2&t){const t=e.index,n=l.oxw(2);l.xp6(1),l.Q6J("tuiLet",n.getTuiMonth(t,n.year.year))}}function gt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-spin-button",4),l.NdJ("leftClick",(function(){return l.CHM(t),l.oxw().onPreviousYear()}))("rightClick",(function(){return l.CHM(t),l.oxw().onNextYear()})),l.TgZ(1,"button",5),l.NdJ("click",(function(){return l.CHM(t),l.oxw().onYearClick()})),l._uU(2),l.qZA(),l.qZA(),l.TgZ(3,"div",6),l.YNc(4,pt,2,1,"ng-container",7),l.ALo(5,"async"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("focusable",!1)("leftDisabled",t.previousYearDisabled)("rightDisabled",t.nextYearDisabled),l.xp6(1),l.Q6J("tuiFocusable",!1),l.xp6(1),l.hij(" ",t.year.formattedYear," "),l.xp6(2),l.Q6J("ngForOf",l.lcZ(5,6,t.months$))}}const mt=o.TU1.currentLocal();class ft{constructor(t){this.months$=t,this.value=null,this.year=mt,this.disabledItemHandler=o.IyD,this.min=o.nNo,this.max=o.OyN,this.monthClick=new l.vpe,this.hoveredItemChange=new l.vpe,this.yearChange=new l.vpe,this.isYearPickerShown=!1,this.hoveredItem=null,this.pressedItem=null}get isSingle(){return null!==this.value&&(this.value instanceof o.qld||this.value.isSingleMonth)}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}get previousYearDisabled(){return this.year.yearSameOrBefore(this.computedMin)}get nextYearDisabled(){return this.year.yearSameOrAfter(this.computedMax)}getItemState(t){const{disabledItemHandlerWithMinMax:e,pressedItem:n,hoveredItem:i}=this;return e(t)?s.z3N.Disabled:(null==n?void 0:n.monthSame(t))?s.z3N.Active:(null==i?void 0:i.monthSame(t))?s.z3N.Hover:null}getItemRange(t){const{value:e,hoveredItem:n}=this;if(null===e)return null;if(e instanceof o.qld)return e.monthSame(t)?s.qD5.Single:null;const i=e.from.monthSame(t)&&!e.isSingleMonth,r=(null==n?void 0:n.monthAfter(e.from))&&e.from.monthSame(t)&&e.isSingleMonth,a=(null==n?void 0:n.monthSame(t))&&(null==n?void 0:n.monthBefore(e.from))&&e.isSingleMonth;if(i||r||a)return s.qD5.Start;const l=e.to.monthSame(t)&&!e.isSingleMonth,u=e.to.monthSame(t)&&(null==n?void 0:n.monthBefore(e.to))&&e.isSingleMonth,c=(null==n?void 0:n.monthSame(t))&&(null==n?void 0:n.monthAfter(e.from))&&e.isSingleMonth;return l||u||c?s.qD5.End:e.isSingleMonth&&e.from.monthSame(t)?s.qD5.Single:null}getTuiMonth(t,e){return new o.qld(e,t)}isItemToday(t){return mt.monthSame(t)}isItemInsideRange(t){const{value:e,hoveredItem:n}=this;if(null===e||e instanceof o.qld)return!1;if(!e.isSingleMonth)return e.from.monthSameOrBefore(t)&&e.to.monthAfter(t);if(null===n)return!1;const i=o.dtp.sort(e.from,n);return i.from.monthSameOrBefore(t)&&i.to.monthAfter(t)}onPickerYearClick(t){this.isYearPickerShown=!1,this.year.yearSame(t)||this.updateActiveYear(t)}onItemClick(t){this.disabledItemHandlerWithMinMax(t)||this.monthClick.emit(t)}onYearClick(){this.isYearPickerShown=!0}onNextYear(){this.updateActiveYear(this.year.append({year:1}))}onPreviousYear(){this.updateActiveYear(this.year.append({year:-1}))}onItemHovered(t,e){this.updateHoveredItem(t?e:null)}onItemPressed(t,e){this.updatePressedItem(t?e:null)}calculateDisabledItemHandlerWithMinMax(t,e,n,i){return r=>r.monthBefore(n)||r.monthAfter(i)||t(r,{value:e})}get disabledItemHandlerWithMinMax(){return this.calculateDisabledItemHandlerWithMinMax(this.disabledItemHandler,this.value,this.computedMin,this.computedMax)}updateHoveredItem(t){(0,o.J$k)(this.hoveredItem,t,((t,e)=>t.monthSame(e)))||(this.hoveredItem=t,this.hoveredItemChange.emit(t))}updatePressedItem(t){this.pressedItem=t}updateActiveYear(t){this.year=t,this.yearChange.emit(t)}}ft.ɵfac=function(t){return new(t||ft)(l.Y36(nt.qE))},ft.ɵcmp=l.Xpm({type:ft,selectors:[["tui-calendar-month"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_single",e.isSingle)},inputs:{value:"value",year:"year",disabledItemHandler:"disabledItemHandler",min:"min",max:"max"},outputs:{monthClick:"monthClick",hoveredItemChange:"hoveredItemChange",yearChange:"yearChange"},decls:3,vars:2,consts:[["class","t-scrollbar",4,"ngIf","ngIfElse"],["monthSelect",""],[1,"t-scrollbar"],[3,"initialItem","max","min","value","yearClick"],[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],["automation-id","tui-calendar-month__active-year","tuiLink","","type","button",3,"tuiFocusable","click"],[1,"t-row"],[4,"ngFor","ngForOf"],["class","t-cell",3,"t-cell_interval","t-cell_today","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],[1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(t,e){if(1&t&&(l.YNc(0,dt,2,4,"tui-scrollbar",0),l.YNc(1,gt,6,8,"ng-template",null,1,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",e.isYearPickerShown)("ngIfElse",t)}},directives:[r.O5,it.I,rt.T,ot.a,st.V,at.t,r.sg,lt.L,ut.c,ct.n],pipes:[r.Ov],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{display:block;height:13.625rem;width:15.75rem;padding:1.125rem;box-sizing:content-box}.t-row[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:1.4375rem}.t-cell[_ngcontent-%COMP%]:nth-child(n + 5){margin-top:1.75rem}.t-cell_interval[_ngcontent-%COMP%]:nth-child(4n):before{right:0}.t-scrollbar[_ngcontent-%COMP%]{height:inherit;width:inherit}'],changeDetection:0}),(0,p.gn)([o.UMq],ft.prototype,"calculateDisabledItemHandlerWithMinMax",null);var vt=n(2181),bt=n(414),yt=n(2579);let _t=(()=>{class t{constructor(t,e,n){this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.defaultViewedMonthFirst=o.qld.currentLocal(),this.defaultViewedMonthSecond=o.qld.currentLocal().append({month:1}),this.min=o.nNo,this.max=o.OyN,this.value=null,this.dayClick=new l.vpe,this.hoveredItem=null,this.userViewedMonthFirst=this.defaultViewedMonthFirst,this.userViewedMonthSecond=this.defaultViewedMonthSecond,this.monthOffset=(t,e)=>t.append({month:e}),t&&t.pipe((0,o.NAr)(e),(0,B.R)(n)).subscribe((t=>{this.value=t,this.updateViewedMonths()}))}get cappedUserViewedMonthSecond(){return this.userViewedMonthSecond.monthBefore(this.max)?this.userViewedMonthSecond:this.max}get cappedUserViewedMonthFirst(){return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)?this.userViewedMonthFirst:this.userViewedMonthSecond}ngOnInit(){this.setInitialMonths()}onSectionFirstViewedMonth(t){this.userViewedMonthFirst=t,this.userViewedMonthSecond=this.userViewedMonthFirst.append({month:1})}onSectionSecondViewedMonth(t){this.userViewedMonthSecond=t,this.userViewedMonthFirst=this.userViewedMonthSecond.append({month:-1})}onDayClick(t){this.dayClick.emit(t)}setInitialMonths(){this.value||(this.userViewedMonthSecond=this.updatedViewedMonthSecond(this.defaultViewedMonthSecond),this.userViewedMonthFirst=this.updatedViewedMonthFirst(this.defaultViewedMonthFirst))}updatedViewedMonthSecond(t){return t.monthSameOrAfter(this.max)?this.max:t.monthBefore(this.min)?this.min.append({month:1}):t}updatedViewedMonthFirst(t){return t.monthSameOrAfter(this.userViewedMonthSecond)?this.userViewedMonthSecond.append({month:-1}):t.monthSameOrBefore(this.min)?this.min:t}updateViewedMonths(){this.userViewedMonthFirst=null===this.value?this.defaultViewedMonthFirst:this.value.from,this.userViewedMonthSecond=this.userViewedMonthFirst.append({month:1})}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.s3,8),l.Y36(l.sBO),l.Y36(o.a31,2))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-primitive-calendar-range"]],inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonthFirst:"defaultViewedMonthFirst",defaultViewedMonthSecond:"defaultViewedMonthSecond",min:"min",max:"max",value:"value"},outputs:{dayClick:"dayClick"},features:[l._Bn([o.a31])],decls:5,vars:30,consts:[[3,"disabledItemHandler","markerHandler","max","maxViewedMonth","min","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange"],[1,"t-border",3,"disabledItemHandler","markerHandler","max","min","minViewedMonth","month","showAdjacent","value","hoveredItem","hoveredItemChange","dayClick","monthChange"]],template:function(t,e){1&t&&(l.TgZ(0,"tui-calendar",0),l.NdJ("hoveredItemChange",(function(t){return e.hoveredItem=t}))("dayClick",(function(t){return e.onDayClick(t)}))("monthChange",(function(t){return e.onSectionFirstViewedMonth(t)})),l.ALo(1,"tuiMapper"),l.qZA(),l.TgZ(2,"tui-calendar",1),l.NdJ("hoveredItemChange",(function(t){return e.hoveredItem=t}))("dayClick",(function(t){return e.onDayClick(t)}))("monthChange",(function(t){return e.onSectionSecondViewedMonth(t)})),l.ALo(3,"tuiMapper"),l.ALo(4,"tuiMapper"),l.qZA()),2&t&&(l.Q6J("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.max)("maxViewedMonth",l.Dn7(1,18,e.cappedUserViewedMonthSecond,e.monthOffset,-1))("min",e.min)("month",e.userViewedMonthFirst)("showAdjacent",!1)("value",e.value)("hoveredItem",e.hoveredItem),l.xp6(2),l.Q6J("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.max)("min",e.min)("minViewedMonth",l.Dn7(3,22,e.cappedUserViewedMonthFirst,e.monthOffset,1))("month",e.userViewedMonthSecond.monthSameOrBefore(e.min)?l.Dn7(4,26,e.min,e.monthOffset,1):e.userViewedMonthSecond)("showAdjacent",!1)("value",e.value)("hoveredItem",e.hoveredItem))},directives:[bt.a],pipes:[yt.c],styles:["[_nghost-%COMP%]{display:flex}.t-border[_ngcontent-%COMP%]{border-left:1px solid var(--tui-base-03)}"],changeDetection:0}),t})();var Ct=n(30251),wt=n(22545),xt=n(91283);const Mt=function(t,e,n,i){return[t,e,n,i,!1]},Ot=function(t,e,n,i){return[t,e,n,i,!0]};function kt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-calendar-range",2),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)})),l.ALo(1,"tuiMapper"),l.ALo(2,"tuiMapper"),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("defaultViewedMonthFirst",t.defaultViewedMonth)("disabledItemHandler",t.calculatedDisabledItemHandler)("markerHandler",t.markerHandler)("max",l.G7q(1,6,l.l5B(18,Mt,t.computedMax,t.maxLengthMapper,t.value,t.maxLength)))("min",l.G7q(2,12,l.l5B(23,Ot,t.computedMin,t.maxLengthMapper,t.value,t.maxLength)))("value",t.value)}}function St(t,e){if(1&t&&l._UZ(0,"tui-svg",9),2&t){const t=l.oxw(3);l.Q6J("src",t.icons.check)}}function Pt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",7),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)}))("keydown.enter.prevent",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)}))("keydown.space.prevent",(function(){const e=l.CHM(t).$implicit;return l.oxw(2).onItemSelect(e)})),l._uU(1),l.YNc(2,St,1,1,"tui-svg",8),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2);l.uIk("aria-checked",n.isItemActive(t)),l.xp6(1),l.hij(" ",t," "),l.xp6(1),l.Q6J("ngIf",n.isItemActive(t))}}const Tt=function(t,e,n,i,r,o){return[t,e,n,i,r,o]};function At(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"tui-calendar",4),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)})),l.ALo(2,"tuiMapper"),l.ALo(3,"tuiMapper"),l.qZA(),l.TgZ(4,"tui-data-list",5),l.YNc(5,Pt,3,3,"button",6),l.ALo(6,"tuiMapper"),l.ALo(7,"async"),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(1),l.Q6J("disabledItemHandler",t.calculatedDisabledItemHandler)("markerHandler",t.markerHandler)("max",l.G7q(2,7,l.l5B(28,Mt,t.computedMax,t.maxLengthMapper,t.value,t.maxLength)))("min",l.G7q(3,13,l.l5B(33,Ot,t.computedMin,t.maxLengthMapper,t.value,t.maxLength)))("month",t.computedMonth)("value",t.value),l.xp6(4),l.Q6J("ngForOf",l.G7q(6,19,l.HTZ(38,Tt,t.items,t.mapper,t.min,t.max,t.minLength,l.lcZ(7,26,t.otherDateText$))))}}class Et{constructor(t,e,n,i,r){this.otherDateText$=i,this.icons=r,this.defaultViewedMonth=o.qld.currentLocal(),this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.items=[],this.min=o.nNo,this.max=o.OyN,this.minLength=null,this.maxLength=null,this.value=null,this.valueChange=new l.vpe,this.previousValue=null,this.maxLengthMapper=vt.EP,this.mapper=(t,e,n,i,r="")=>[...t.filter((t=>(null===i||t.range.from.append(i).daySameOrBefore(t.range.to))&&(null===e||t.range.to.daySameOrAfter(e))&&(null===n||t.range.from.daySameOrBefore(n)))),r],t&&t.pipe((0,o.NAr)(e),(0,B.R)(n)).subscribe((t=>{this.value=t}))}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}onEsc(t){var e;"Escape"===t.key&&(null===(e=this.value)||void 0===e?void 0:e.isSingleDay)&&(t.stopPropagation(),this.value=this.previousValue)}get calculatedDisabledItemHandler(){return this.calculateDisabledItemHandler(this.disabledItemHandler,this.value,this.minLength)}get computedMonth(){return this.value?this.value.to:this.defaultViewedMonth}isItemActive(t){const{activePeriod:e}=this;return(0,o.Ajw)(t)&&null===e||e===t}onRangeChange(t){this.updateValue(t)}onDayClick(t){const{value:e}=this;this.previousValue=e,null!==e&&e.isSingleDay?this.updateValue(o.VRe.sort(e.from,t)):this.value=new o.VRe(t,t)}onItemSelect(t){"string"==typeof t?null!==this.activePeriod&&this.updateValue(null):this.updateValue(t.range.dayLimit(this.min,this.max))}updateValue(t){this.value=t,this.valueChange.emit(t)}get activePeriod(){return this.items.find((t=>(0,o.J$k)(this.value,t.range,((t,e)=>t.from.daySame(e.from.dayLimit(this.min,this.max))&&t.to.daySame(e.to.dayLimit(this.min,this.max))))))||null}calculateDisabledItemHandler(t,e,n){return i=>{if(!(null==e?void 0:e.isSingleDay)||!n)return t(i);const r=(0,o.yj2)(Object.entries(n).map((([t,e])=>[t,-e]))),s=e.from.append(r).append({day:1}),a=e.from.append(n).append({day:-1});return s.dayBefore(i)&&a.dayAfter(i)||t(i)}}}Et.ɵfac=function(t){return new(t||Et)(l.Y36(nt.s3,8),l.Y36(l.sBO),l.Y36(o.a31,2),l.Y36(nt.q5),l.Y36(s.Gs9))},Et.ɵcmp=l.Xpm({type:Et,selectors:[["tui-calendar-range"]],hostBindings:function(t,e){1&t&&l.NdJ("keydown.capture",(function(t){return e.onEsc(t)}),!1,l.evT)},inputs:{defaultViewedMonth:"defaultViewedMonth",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength",value:"value"},outputs:{valueChange:"valueChange"},features:[l._Bn([o.a31])],decls:3,vars:2,consts:[["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"defaultViewedMonthFirst","disabledItemHandler","markerHandler","max","min","value","dayClick",4,"ngIf","ngIfElse"],["presets",""],["automation-id","tui-calendar-range__calendars","tuiPreventDefault","mousedown",3,"defaultViewedMonthFirst","disabledItemHandler","markerHandler","max","min","value","dayClick"],[1,"t-wrapper"],["automation-id","tui-calendar-range__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick"],["automation-id","tui-calendar-range__menu","role","menu",1,"t-menu"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","","tuiPreventDefault","mousedown",3,"click","keydown.enter.prevent","keydown.space.prevent",4,"ngFor","ngForOf"],["automation-id","tui-calendar-range__menu__item","role","menuitemradio","tuiOption","","tuiPreventDefault","mousedown",3,"click","keydown.enter.prevent","keydown.space.prevent"],["automation-id","tui-calendar-range__checkmark","class","t-checkmark",3,"src",4,"ngIf"],["automation-id","tui-calendar-range__checkmark",1,"t-checkmark",3,"src"]],template:function(t,e){if(1&t&&(l.YNc(0,kt,3,28,"tui-primitive-calendar-range",0),l.YNc(1,At,8,45,"ng-template",null,1,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",!e.items.length)("ngIfElse",t)}},directives:[r.O5,_t,Ct.A,bt.a,wt.q,r.sg,xt.v,c.P],pipes:[yt.c,r.Ov],styles:["[_nghost-%COMP%]{display:block}.t-wrapper[_ngcontent-%COMP%]{display:flex}.t-menu[_ngcontent-%COMP%]{width:11rem;border-left:1px solid var(--tui-base-03)}.t-checkmark[_ngcontent-%COMP%]{margin-left:auto;width:1rem;height:1rem}"],changeDetection:0}),(0,p.gn)([o.UMq],Et.prototype,"calculateDisabledItemHandler",null);var It=n(43219);let Dt=(()=>{class t{constructor(t){this.el=t,this.tuiCarouselScroll=(0,o.mLY)(this.el.nativeElement,"wheel").pipe((0,F.h)((({deltaX:t})=>Math.abs(t)>20)),(0,It.p)(500),(0,N.U)((({deltaX:t})=>Math.sign(t))),(0,q.b)((()=>{this.el.nativeElement.scrollLeft=10})))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiCarouselScroll",""]],outputs:{tuiCarouselScroll:"tuiCarouselScroll"}}),t})();var Lt=n(26215),Ft=n(9112),Nt=n(33637),zt=n(26561);function Rt(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}let Bt=(()=>{class t extends f.y{constructor(t,e){super((t=>this.output$.subscribe(t))),this.el=t,this.visible$=e,this.duration$=new Lt.X(0),this.running$=(0,U.T)((0,o.mLY)(this.el.nativeElement,"mouseenter").pipe((0,N.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"touchstart").pipe((0,N.U)(o.IyD)),(0,o.mLY)(this.el.nativeElement,"touchend").pipe((0,N.U)(o.YeN)),(0,o.mLY)(this.el.nativeElement,"mouseleave").pipe((0,N.U)(o.YeN)),this.visible$),this.output$=(0,Ft.aj)([this.duration$,this.running$]).pipe((0,o.Xdy)((([t])=>function(t=0,e=Nt.P){return(!(0,zt.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Nt.P),new f.y((n=>(n.add(e.schedule(Rt,t,{subscriber:n,counter:0,period:t})),n)))}(t)),(t=>t.every(Boolean))))}set duration(t){this.duration$.next(t)}set index(t){this.duration$.next(this.duration$.value)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(b.de))},t.ɵdir=l.lG2({type:t,selectors:[["tui-carousel"]],inputs:{duration:"duration",index:"index"},features:[l.qOj]}),t})(),Ht=(()=>{class t{constructor(t){this.tuiCarouselAutoscroll=t}}return t.ɵfac=function(e){return new(e||t)(l.Y36(Bt))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiCarouselAutoscroll",""]],outputs:{tuiCarouselAutoscroll:"tuiCarouselAutoscroll"}}),t})();var Vt=n(11123),Yt=n(69919);function jt(t,e){1&t&&l.GkF(0)}function Zt(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"fieldset",5),l.NdJ("waIntersectionObservee",(function(e){const n=l.CHM(t).index;return l.oxw().onIntersection(e[0],n)})),l.GkF(1,6),l.qZA()}if(2&t){const t=e.$implicit,n=e.index,i=l.oxw();l.Q6J("disabled",i.isDisabled(n))("ngStyle",i.getStyle(i.itemsCount)),l.xp6(1),l.Q6J("ngTemplateOutlet",t)}}class $t{constructor(t,e,n){this.cdr=t,this.el=e,this.isMobile=n,this.translate=0,this.draggable=!1,this.itemsCount=1,this.index=0,this.indexChange=new l.vpe,this.items=o.Mmc,this.transitioned=!0}get transform(){return`translateX(${100*(this.transitioned?this.computedTranslate:this.translate)}%)`}onTransitioned(t){this.transitioned=t,t||(this.translate=this.computedTranslate)}getStyle(t){const e=100/t+"%";return{flexBasis:e,minWidth:e,maxWidth:e}}next(){this.items&&this.index===this.items.length-this.itemsCount||this.updateIndex(this.index+1)}prev(){this.updateIndex(this.index-1)}isDisabled(t){return tthis.index+this.itemsCount}onIntersection({intersectionRatio:t},e){t&&1!==t&&!this.transitioned&&this.updateIndex(e-Math.floor(this.itemsCount/2))}onScroll(t){this.isMobile||this.updateIndex(this.index+t)}onPan(t){if(!this.computedDraggable)return;const{clientWidth:e}=this.el.nativeElement,n=1-this.items.length/this.itemsCount;this.translate=(0,o.Kiv)(t/e+this.translate,n,0)}onSwipe(t){"left"===t?this.next():"right"===t&&this.prev()}onAutoscroll(){this.updateIndex(this.index===this.items.length-1?0:this.index+1)}get computedTranslate(){return-this.index/this.itemsCount}get computedDraggable(){return this.isMobile||this.draggable}updateIndex(t){this.index=(0,o.Kiv)(t,0,this.items.length-1),this.indexChange.emit(this.index),this.cdr.markForCheck()}}$t.ɵfac=function(t){return new(t||$t)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(o.fLQ))},$t.ɵcmp=l.Xpm({type:$t,selectors:[["tui-carousel"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,o.wt3,4,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.items=t)}},hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("touchstart",(function(){return e.onTransitioned(!1)}))("touchend",(function(){return e.onTransitioned(!0)}))("mousedown",(function(){return e.onTransitioned(!1)}))("mouseup.silent",(function(){return e.onTransitioned(!0)}),!1,l.evT),2&t&&l.ekj("_draggable",e.draggable)("_transitioned",e.transitioned)},inputs:{draggable:"draggable",itemsCount:"itemsCount",index:"index"},outputs:{indexChange:"indexChange"},decls:6,vars:6,consts:[[4,"ngIf"],[1,"t-scroller",3,"tuiCarouselScroll"],["waIntersectionObserver","","waIntersectionRoot","","waIntersectionRootMargin","100px 1000000px 100px -51%","waIntersectionThreshold","0,1",1,"t-wrapper"],[1,"t-items",3,"tuiCarouselAutoscroll","tuiPan","tuiSwipe"],["class","t-item",3,"disabled","ngStyle","waIntersectionObservee",4,"ngFor","ngForOf"],[1,"t-item",3,"disabled","ngStyle","waIntersectionObservee"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l.YNc(0,jt,1,0,"ng-container",0),l.ALo(1,"async"),l.TgZ(2,"div",1),l.NdJ("tuiCarouselScroll",(function(t){return e.onScroll(t)})),l.TgZ(3,"div",2),l.TgZ(4,"div",3),l.NdJ("tuiCarouselAutoscroll",(function(){return e.onAutoscroll()}))("tuiPan",(function(t){return e.onPan(t[0])}))("tuiSwipe",(function(t){return e.onSwipe(t.direction)})),l.YNc(5,Zt,2,3,"fieldset",4),l.qZA(),l.qZA(),l.qZA()),2&t&&(l.Q6J("ngIf",l.lcZ(1,4,e.items.changes)),l.xp6(4),l.Udp("transform",e.transform),l.xp6(1),l.Q6J("ngForOf",e.items))},directives:[r.O5,Dt,k,T,Ht,Vt.g,Yt.W,r.sg,r.PC,P,r.tP],pipes:[r.Ov],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden}._draggable[_nghost-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none}._draggable[_nghost-%COMP%]:hover{cursor:grab}._draggable[_nghost-%COMP%]:active{cursor:grabbing}.t-items[_ngcontent-%COMP%]{display:flex}._transitioned[_nghost-%COMP%] .t-items[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;padding:var(--tui-carousel-padding, 0 1.25rem);flex:1;min-width:100%;max-width:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;left:0;right:0;min-width:100%;overflow:hidden}.t-scroller[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none}.t-scroller[_ngcontent-%COMP%]::-webkit-scrollbar, .t-scroller[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.t-scroller[_ngcontent-%COMP%]:before, .t-scroller[_ngcontent-%COMP%]:after{content:"";display:block;min-width:1rem}'],changeDetection:0}),(0,p.gn)([o.UMq],$t.prototype,"getStyle",null);var Ut=n(64201),Gt=n(42);n(72444),n(59517);var qt=n(24751);let Jt=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,Ut.x]]}),t})();var Qt=n(81476),Wt=n(59912),Kt=n(98778),Xt=n(55788),te=n(75526),ee=n(19042),ne=n(60644);n(97462);var ie=n(57634);n(55891);let re=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,o.U1Q,s.pcV,s.dSp]]}),t})();var oe=n(30126),se=n(23764),ae=n(32917),le=n(87519);let ue=(()=>{class t{constructor(t,e,n){this.el=t,this.resize$=e,this.mutation$=n,this.tuiElasticContainer=(0,U.T)(this.resize$,this.mutation$).pipe((0,Q.b)(0),(0,N.U)((()=>this.el.nativeElement.clientHeight-1)),(0,le.x)())}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(ae.ax),l.Y36(se.IM))},t.ɵdir=l.lG2({type:t,selectors:[["","tuiElasticContainer",""]],outputs:{tuiElasticContainer:"tuiElasticContainer"},features:[l._Bn([ae.ax,se.IM,{provide:se.k2,useValue:{childList:!0,characterData:!0,subtree:!0}}])]}),t})();class ce{constructor(){this.height=NaN,this.transitions=0}onAnimation(t,e){this.transitions+=e}}ce.ɵfac=function(t){return new(t||ce)},ce.ɵcmp=l.Xpm({type:ce,selectors:[["tui-elastic-container"]],hostVars:4,hostBindings:function(t,e){2&t&&(l.Udp("height",e.height,"px"),l.ekj("_transitioning",e.transitions))},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"t-wrapper",3,"transitioncancel.silent","transitionend.silent","transitionstart.silent","tuiElasticContainer"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0),l.NdJ("transitioncancel.silent",(function(t){return e.onAnimation(t.propertyName,-1)}))("transitionend.silent",(function(t){return e.onAnimation(t.propertyName,-1)}))("transitionstart.silent",(function(t){return e.onAnimation(t.propertyName,1)}))("tuiElasticContainer",(function(t){return e.height=t})),l.Hsn(1),l.qZA())},directives:[ue],styles:["[_nghost-%COMP%]{transition-property:height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;overflow:hidden}._transitioning[_nghost-%COMP%]{height:auto!important}.t-wrapper[_ngcontent-%COMP%]{padding-top:1px;margin-top:-1px}"],changeDetection:0}),(0,p.gn)([(0,oe.uX)((t=>"height"===t))],ce.prototype,"onAnimation",null);var de=n(91211),he=n(82191);const pe={formatSize:he.z,icons:{normal:({$implicit:t})=>"l"===t?"tuiIconFileLarge":"tuiIconCheckCircleLarge",error:"tuiIconAlertCircleLarge",deleted:"tuiIconTrashLarge"}},ge=(0,o.JN4)(pe);var me=n(35928),fe=n(18289);function ve(t,e){if(1&t&&l.GkF(0,4),2&t){l.oxw();const t=l.MAs(4);l.Q6J("ngTemplateOutlet",t)}}function be(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"a",5),l.NdJ("tuiFocusVisibleChange",(function(e){return l.CHM(t),l.oxw().onFocusVisible(e)})),l.GkF(1,4),l.qZA()}if(2&t){const t=l.oxw(),e=l.MAs(4);l.Q6J("href",t.src,l.LSH),l.xp6(1),l.Q6J("ngTemplateOutlet",e)}}function ye(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function _e(t,e){if(1&t&&(l.TgZ(0,"div",15),l._uU(1),l.qZA()),2&t){const t=e.ngIf;l.xp6(1),l.hij(" ",t," ")}}function Ce(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function we(t,e){if(1&t&&(l.TgZ(0,"div",16),l.YNc(1,Ce,2,1,"ng-container",7),l.qZA()),2&t){const t=e.ngIf;l.xp6(1),l.Q6J("polymorpheusOutlet",t)}}function xe(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",18),l.NdJ("click.prevent",(function(){return l.CHM(t),l.oxw(3).onRemoveClick()})),l.qZA()}if(2&t){const t=e.ngIf,n=l.oxw(3);l.Q6J("icon",n.icons.close)("title",t.remove)}}function Me(t,e){if(1&t&&(l.ynx(0),l.YNc(1,xe,1,2,"button",17),l.ALo(2,"async"),l.BQk()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngIf",l.lcZ(2,1,t.fileTexts$))}}function Oe(t,e){if(1&t&&(l.TgZ(0,"div",6),l.YNc(1,ye,2,1,"ng-container",7),l.qZA(),l.TgZ(2,"div",8),l.TgZ(3,"div",9),l.TgZ(4,"div",10),l._uU(5),l.qZA(),l.TgZ(6,"div",11),l._uU(7),l.qZA(),l.YNc(8,_e,2,1,"div",12),l.ALo(9,"async"),l.qZA(),l.YNc(10,we,2,1,"div",13),l.ALo(11,"async"),l.Hsn(12),l.qZA(),l.YNc(13,Me,3,3,"ng-container",14)),2&t){const t=l.oxw(),e=l.MAs(6);l.ekj("t-preview_big",t.isBig),l.xp6(1),l.Q6J("polymorpheusOutlet",t.leftContent||e),l.xp6(4),l.hij(" ",t.name," "),l.xp6(2),l.hij(" ",t.type," "),l.xp6(1),l.Q6J("ngIf",t.showSize&&l.lcZ(9,8,t.fileSize$)),l.xp6(2),l.Q6J("ngIf",l.lcZ(11,10,t.content$)),l.xp6(3),l.Q6J("ngIf",t.allowDelete)}}function ke(t,e){if(1&t&&l._UZ(0,"img",22),2&t){const t=l.oxw(2);l.Q6J("src",t.preview,l.LSH)}}function Se(t,e){if(1&t&&l._UZ(0,"tui-loader",24),2&t){const t=l.oxw(3);l.Q6J("inheritColor",t.isBig)}}function Pe(t,e){if(1&t&&l.YNc(0,Se,1,1,"tui-loader",23),2&t){l.oxw();const t=l.MAs(4),e=l.oxw();l.Q6J("ngIf",e.isLoading)("ngIfElse",t)}}function Te(t,e){if(1&t&&l._UZ(0,"tui-svg",26),2&t){const t=e.polymorpheusOutlet,n=l.oxw(3);l.ekj("t-icon_blank",n.isBig||n.isDeleted)("t-icon_error",n.isError),l.Q6J("src",t)}}const Ae=function(t){return{$implicit:t}};function Ee(t,e){if(1&t&&l.YNc(0,Te,1,5,"tui-svg",25),2&t){const t=l.oxw(2);l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,Ae,t.size))}}function Ie(t,e){if(1&t&&(l.YNc(0,ke,1,1,"img",19),l.YNc(1,Pe,1,2,"ng-template",null,20,l.W1O),l.YNc(3,Ee,1,4,"ng-template",null,21,l.W1O)),2&t){const t=l.MAs(2),e=l.oxw();l.Q6J("ngIf",e.preview)("ngIfElse",t)}}class De{constructor(t,e,n,i,r){this.sanitizer=t,this.icons=e,this.fileTexts$=n,this.options=i,this.units$=r,this.file={name:""},this.state="normal",this.size="m",this.showDelete=!0,this.showSize=!0,this.removed=new l.vpe,this.focused=!1}get preview(){return this.isBig?this.createPreview(this.file,this.sanitizer):""}get isBig(){return"l"===this.size}get isLoading(){return"loading"===this.state}get isError(){return"error"===this.state}get isDeleted(){return"deleted"===this.state}get allowDelete(){return this.showDelete&&(0,o.fwO)(this.removed)}get icon(){return"loading"===this.state?"":this.options.icons[this.state]}get src(){return this.file.src||""}get name(){return this.getName(this.file)}get type(){return this.getType(this.file)}get content$(){return this.calculateContent$(this.state,this.file,this.fileTexts$)}get fileSize$(){return this.calculateFileSize$(this.file,this.units$)}onRemoveClick(){this.removed.emit()}onFocusVisible(t){this.focused=t}calculateContent$(t,e,n){return"error"!==t||e.content?(0,I.of)(this.file.content||""):n.pipe((0,N.U)((t=>t.loadingError)))}calculateFileSize$(t,e){return e.pipe((0,N.U)((e=>this.options.formatSize(e,t.size))))}createPreview(t,e){return t.src?t.src:t instanceof File&&t.type&&t.type.startsWith("image/")?e.bypassSecurityTrustUrl(URL.createObjectURL(t)):""}getName(t){return t.name.split(".").slice(0,-1).join(".")}getType(t){return`.${t.name.split(".").pop()}`||""}}De.ɵfac=function(t){return new(t||De)(l.Y36(de.H7),l.Y36(s.Gs9),l.Y36(nt.qk),l.Y36(ge),l.Y36(nt.rV))},De.ɵcmp=l.Xpm({type:De,selectors:[["tui-file"]],hostVars:5,hostBindings:function(t,e){2&t&&(l.uIk("data-delete",e.showDelete),l.ekj("_focused",e.focused)("_link",e.src))},inputs:{file:"file",state:"state",size:"size",showDelete:"showDelete",showSize:"showSize",leftContent:"leftContent"},outputs:{removed:"removed"},ngContentSelectors:["*"],decls:7,vars:2,consts:[[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],["withLink",""],["fileInfoTemplate",""],["defaultLeftContent",""],[3,"ngTemplateOutlet"],["rel","noreferrer noopener","target","_blank",1,"t-link",3,"href","tuiFocusVisibleChange"],[1,"t-preview"],[4,"polymorpheusOutlet"],[1,"t-wrapper"],[1,"t-text"],["automation-id","tui-file__name",1,"t-name"],["automation-id","tui-file__type",1,"t-type"],["automation-id","tui-file__size","class","t-size",4,"ngIf"],["automation-id","tui-file__content","class","t-content",4,"ngIf"],[4,"ngIf"],["automation-id","tui-file__size",1,"t-size"],["automation-id","tui-file__content",1,"t-content"],["appearance","icon","automation-id","tui-file__remove","size","xs","tuiIconButton","","tuiPreventDefault","mousedown","type","button","class","t-remove",3,"icon","title","click.prevent",4,"ngIf"],["appearance","icon","automation-id","tui-file__remove","size","xs","tuiIconButton","","tuiPreventDefault","mousedown","type","button",1,"t-remove",3,"icon","title","click.prevent"],["alt","file preview","automation-id","tui-file__preview","class","t-image",3,"src",4,"ngIf","ngIfElse"],["loader",""],["svg",""],["alt","file preview","automation-id","tui-file__preview",1,"t-image",3,"src"],["automation-id","tui-file__loader","class","t-loader",3,"inheritColor",4,"ngIf","ngIfElse"],["automation-id","tui-file__loader",1,"t-loader",3,"inheritColor"],["automation-id","tui-file__icon","class","t-icon",3,"t-icon_blank","t-icon_error","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-file__icon",1,"t-icon",3,"src"]],template:function(t,e){if(1&t&&(l.F$t(),l.YNc(0,ve,1,1,"ng-container",0),l.YNc(1,be,2,2,"ng-template",null,1,l.W1O),l.YNc(3,Oe,14,12,"ng-template",null,2,l.W1O),l.YNc(5,Ie,5,2,"ng-template",null,3,l.W1O)),2&t){const t=l.MAs(2);l.Q6J("ngIf",!e.src)("ngIfElse",t)}},directives:[r.O5,r.tP,me.q,a.Li,fe.v,Ct.A,ie.k,c.P],pipes:[r.Ov],styles:['[_nghost-%COMP%]{position:relative;display:flex;align-items:center;font:var(--tui-font-text-m);background:var(--tui-base-01);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}[data-delete=always][_nghost-%COMP%] .t-remove[_ngcontent-%COMP%]{opacity:1}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[_nghost-%COMP%]:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}[_nghost-%COMP%]:hover .t-remove[_ngcontent-%COMP%]{opacity:1}._focused[_nghost-%COMP%]{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.t-link[_ngcontent-%COMP%]{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:none;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.t-link[_ngcontent-%COMP%]:hover{background-color:var(--tui-base-02)}.t-preview[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:var(--tui-base-06)}.t-preview_big[_ngcontent-%COMP%]{width:4rem;height:4rem;margin-right:1rem}.t-preview_big[_ngcontent-%COMP%]:before{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background:var(--tui-base-08);opacity:.08}.t-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;color:var(--tui-success-fill);margin:auto}.t-icon_blank[_ngcontent-%COMP%]{color:var(--tui-base-06)}.t-icon_error[_ngcontent-%COMP%]{color:var(--tui-error-fill)}.t-remove[_ngcontent-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem}.t-remove[_ngcontent-%COMP%]:focus{opacity:1}.t-remove[_ngcontent-%COMP%]:focus-visible{box-shadow:inset 0 0 0 2px var(--tui-focus)}@media (hover: hover) and (pointer: fine){.t-remove[_ngcontent-%COMP%]{opacity:0}}.t-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.t-text[_ngcontent-%COMP%]{display:flex}.t-size[_ngcontent-%COMP%]{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.t-type[_ngcontent-%COMP%]{flex-shrink:0}.t-name[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-error-fill)}'],changeDetection:0}),(0,p.gn)([o.UMq],De.prototype,"calculateContent$",null),(0,p.gn)([o.UMq],De.prototype,"calculateFileSize$",null),(0,p.gn)([o.UMq],De.prototype,"createPreview",null),(0,p.gn)([o.UMq],De.prototype,"getName",null),(0,p.gn)([o.UMq],De.prototype,"getType",null);var Le=n(20690),Fe=n(2793);n(47999),n(38642),n(55770);let Ne=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Ah6,s.KWI,s.jhF]]}),t})();var ze=n(46797),Re=n(39761);const Be=(0,o.JN4)({successMessage:"",messageDirection:"bottom-left",messageAppearance:"",icon:({$implicit:t})=>"s"===t?"tuiIconCopy":"tuiIconCopyLarge"});var He=n(13938),Ve=n(10406),Ye=n(63790),je=n(51928);function Ze(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",4),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).copy()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2),i=l.MAs(6);l.Q6J("disabled",!n.value)("src",t)("tuiHint",i)("tuiHintAppearance",n.messageAppearance)("tuiHintDirection",n.messageDirection)}}const $e=function(t){return{$implicit:t}};function Ue(t,e){if(1&t&&l.YNc(0,Ze,1,5,"tui-svg",3),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,$e,t.size))}}function Ge(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function qe(t,e){if(1&t&&(l.YNc(0,Ge,2,1,"ng-container",5),l.ALo(1,"async")),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",l.lcZ(1,1,t.hintText$))}}const Je=["*",[["input"]]];class Qe extends o.M$T{constructor(t,e,n,i,r,o){super(t,e),this.doc=n,this.copyTexts$=i,this.options=r,this.textfieldSize=o,this.copy$=new D.xQ,this.successMessage=this.options.successMessage,this.messageDirection=this.options.messageDirection,this.messageAppearance=this.options.messageAppearance}get size(){return this.textfieldSize.size}get hintText$(){return this.copyTexts$.pipe((0,L.w)((t=>this.copy$.pipe((0,L.w)((()=>(0,U.T)((0,I.of)(this.successMessage||t[1]),(0,ze.H)(3e3).pipe((0,N.U)((()=>t[0])))))),(0,Re.O)(t[0])))))}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get icon(){return this.options.icon}onValueChange(t){this.value=t}onFocused(t){this.updateFocused(t)}copy(){var t;(null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&(this.textfield.nativeFocusableElement.select(),this.doc.execCommand("copy"),this.copy$.next())}getFallbackValue(){return""}}Qe.ɵfac=function(t){return new(t||Qe)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(r.K0),l.Y36(nt.UV),l.Y36(Be),l.Y36(s.kId))},Qe.ɵcmp=l.Xpm({type:Qe,selectors:[["tui-input-copy"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{successMessage:"successMessage",messageDirection:"messageDirection",messageAppearance:"messageAppearance"},features:[l._Bn([Wt.E2,(0,o.FTc)(Qe),(0,o.wBO)(Qe)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:10,consts:[[1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","valueChange","focusedChange"],["iconContent",""],["hint",""],["appearance","icon","automation-id","tui-copy__icon","tuiWrapper","","class","t-icon",3,"disabled","src","tuiHint","tuiHintAppearance","tuiHintDirection","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-copy__icon","tuiWrapper","",1,"t-icon",3,"disabled","src","tuiHint","tuiHintAppearance","tuiHintDirection","click"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t&&(l.F$t(Je),l.TgZ(0,"tui-primitive-textfield",0),l.NdJ("valueChange",(function(t){return e.value=t}))("focusedChange",(function(t){return e.onFocused(t)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(3,Ue,1,4,"ng-template",null,1,l.W1O),l.YNc(5,qe,2,3,"ng-template",null,2,l.W1O)),2&t){const t=l.MAs(4);l.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.disabled?"":t)("value",e.value)}},directives:[te.y,ee.B,ne.A,a.Li,c.P,Gt.o,He.D,Ve.x,Ye.t,je.D],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon[_ngcontent-%COMP%]{position:relative;cursor:pointer;pointer-events:auto;color:var(--tui-base-06)}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],Qe.prototype,"hintText$",null);var We=n(72878),Ke=n(71753),Xe=n(21032),tn=n(45642);let en=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,tn.U5,s.KWI,s.cnw,tt,a.wq,s.fNO]]}),t})();n(92482);const nn={icons:{up:"tuiIconPlus",down:"tuiIconMinus"},appearance:"textfield",hideButtons:!1,min:0,max:Number.MAX_SAFE_INTEGER,step:1,postfix:""};(0,o.JN4)(nn);var rn=n(59557);let on=(()=>{class t{constructor(t,e){this.host=t,this.dateFormat=e}get value(){return this.host.value.length===o.ekI?o.TU1.normalizeParse(this.host.value,this.dateFormat).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(t){this.host.onValueChange(t?o.TU1.normalizeParse(t,"YMD").toString(this.dateFormat):"")}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o),l.Y36(o.P_B))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("change",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("input.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&l.Ikx("tabIndex",-1)("value",e.value)("max",e.max)("min",e.min)}}),t})();function sn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-textfield",5),l.NdJ("focusedChange",(function(e){return l.CHM(t),l.oxw().onFocused(e)}))("valueChange",(function(e){return l.CHM(t),l.oxw().onValueChange(e)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw(),i=l.MAs(4);l.Q6J("disabled",n.computedDisabled)("focusable",n.computedFocusable)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedFiller(t||""))("tuiTextfieldIcon",n.calendarIcon&&i)("value",n.computedValue)}}function an(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",8),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).onIconClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function ln(t,e){1&t&&l._UZ(0,"input",9)}const un=function(t){return{$implicit:t}};function cn(t,e){if(1&t&&(l.YNc(0,an,1,3,"tui-svg",6),l.YNc(1,ln,1,0,"input",7)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(3,un,t.size)),l.xp6(1),l.Q6J("ngIf",t.isMobile&&t.nativePicker)}}function dn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",12),l.TgZ(1,"button",13),l.NdJ("click",(function(){l.CHM(t);const e=l.oxw(2);return e.onDayClick(e.items[0].day)})),l._uU(2),l.qZA(),l.qZA()}if(2&t){const t=l.oxw(2);l.xp6(2),l.hij(" ",t.items[0]," ")}}function hn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar",10),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)}))("monthChange",(function(e){return l.CHM(t),l.oxw().onMonthChange(e)})),l.qZA(),l.YNc(1,dn,3,1,"div",11)}if(2&t){const t=l.oxw();l.Q6J("disabledItemHandler",t.disabledItemHandler)("markerHandler",t.markerHandler)("max",t.computedMax)("min",t.computedMin)("month",t.computedActiveYearMonth)("value",t.value),l.xp6(1),l.Q6J("ngIf",1===t.items.length)}}const pn=["*",[["input"]]];class gn extends o.F9l{constructor(t,e,n,i,r,a,l,u,c,d,h,p){super(t,e,d),this.injector=n,this.isMobile=i,this.dialogs=r,this.mobileCalendar=a,this.dateFormat=l,this.dateSeparator=u,this.dateTexts$=c,this.valueTransformer=d,this.options=h,this.textfieldSize=p,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.items=[],this.defaultActiveYearMonth=o.qld.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator))))}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:this.options.min}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:this.options.max}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get computedMobile(){return this.isMobile&&(!!this.mobileCalendar||this.nativePicker)}get nativePicker(){return this.options.nativePicker}get calendarIcon(){return this.options.icon}get computedValue(){const{value:t,nativeValue:e,activeItem:n}=this;return n?String(n):t?t.toString(this.dateFormat,this.dateSeparator):e}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||(0,o.hVF)(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?K.A_:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){const{value:t}=this;return t&&this.items.find((e=>e.day.daySame(t)))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(t){return this.activeItem?"":t}onMobileClick(){this.onIconClick()}onIconClick(){this.computedMobile&&this.mobileCalendar&&this.dialogs.open(new a.Al(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.value=t}))}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),t||this.onOpenChange(!0),this.value=t.length!==o.ekI?null:o.TU1.normalizeParse(t,this.dateFormat)}onDayClick(t){this.value=t,this.open=!1}onMonthChange(t){this.month=t}onOpenChange(t){this.open=t}onFocused(t){this.updateFocused(t)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}valueIdenticalComparator(t,e){return(0,o.J$k)(t,e,((t,e)=>t.daySame(e)))}computeMaskOptions(t,e,n,i){return(0,We.tr)({separator:e,mode:vt.ux[t],min:n.toLocalNativeDate(),max:i.toLocalNativeDate()})}}gn.ɵfac=function(t){return new(t||gn)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.zs3),l.Y36(o.fLQ),l.Y36(s.ROA),l.Y36(nt.vk,8),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.zf),l.Y36(nt.HF,8),l.Y36(nt.WB),l.Y36(s.kId))},gn.ɵcmp=l.Xpm({type:gn,selectors:[["tui-input-date"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[l._Bn([(0,o.FTc)(gn),(0,o.wBO)(gn),(0,nt._V)(nt.HF)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:7,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange",4,"tuiLet"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick","monthChange"],["tuiPreventDefault","mousedown","class","t-button",4,"ngIf"],["tuiPreventDefault","mousedown",1,"t-button"],["tuiLink","","type","button",3,"click"]],template:function(t,e){if(1&t&&(l.F$t(pn),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)})),l.YNc(1,sn,3,11,"tui-primitive-textfield",1),l.ALo(2,"async"),l.YNc(3,cn,2,5,"ng-template",null,2,l.W1O),l.YNc(5,hn,2,7,"ng-template",3,4,l.W1O),l.qZA()),2&t){const t=l.MAs(6);l.Q6J("canOpen",e.canOpen)("content",t)("open",e.open&&e.canOpen),l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,5,e.filler$)),l.xp6(4),l.Q6J("polymorpheus",e.type)}},directives:[Kt.o,lt.L,a.GL,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,a.Li,r.O5,c.P,Gt.o,on,bt.a,Ct.A,st.V],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;text-align:center}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),(0,p.gn)([o.UMq],gn.prototype,"computeMaskOptions",null);const mn=(0,o.JN4)({separator:",",uniqueTags:!0,tagStatus:"primary"});var fn=n(50830),vn=n(63360);const bn=["focusableElement"],yn=["tagsContainer"],_n=["cleaner"],Cn=["errorIcon"],wn=["tag"];function xn(t,e){1&t&&l.GkF(0)}function Mn(t,e){if(1&t&&l._UZ(0,"tui-svg",21),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}const On=function(t){return{$implicit:t}};function kn(t,e){if(1&t&&(l.TgZ(0,"div",19),l.YNc(1,Mn,1,1,"tui-svg",20),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.iconLeft)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function Sn(t,e){if(1&t&&(l.TgZ(0,"div",22),l.Hsn(1,2),l.qZA()),2&t){const t=l.oxw();l.ekj("t-placeholder_raised",t.placeholderRaised)}}function Pn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-tag",24,25),l.NdJ("edited",(function(e){const n=l.CHM(t).index;return l.oxw(2).onTagEdited(e,n)}))("keydown.arrowLeft.prevent",(function(){const e=l.CHM(t).index;return l.oxw(2).onTagKeyDownArrowLeft(e)}))("keydown.arrowRight.prevent",(function(){const e=l.CHM(t).index;return l.oxw(2).onTagKeyDownArrowRight(e)})),l.ALo(2,"async"),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2);l.Q6J("disabled",n.computedDisabled||n.disabledItemHandler(t))("editable",n.editable&&!n.readOnly)("hoverable",!n.readOnly)("leftContent",n.getLeftContent(t))("maxLength",n.maxLength)("removable",!n.readOnly&&n.removable)("separator",n.separator)("size",n.controller.size)("status",l.lcZ(2,11,n.status$))("tuiFocusable",!1)("value",t.toString())}}function Tn(t,e){if(1&t&&(l.ynx(0),l.YNc(1,Pn,3,13,"tui-tag",23),l.BQk()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngForOf",t.value)("ngForTrackBy",t.trackByFn)}}function An(t,e){if(1&t&&l._UZ(0,"span",27),2&t){const t=e.$implicit,n=l.oxw(2);l.ekj("t-text_comma",n.computedFocused&&!n.inputHidden)("t-text_disabled",n.disabledItemHandler(t))("t-text_error",!n.tagValidator(t)),l.Q6J("textContent",t)}}function En(t,e){if(1&t&&l.YNc(0,An,1,7,"span",26),2&t){const t=l.oxw();l.Q6J("ngForOf",t.value)}}function In(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",32,33),l.NdJ("click.stop",(function(){return l.CHM(t),l.oxw(3).onCleanerClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Dn(t,e){if(1&t&&(l.ynx(0),l.YNc(1,In,2,1,"tui-svg",31),l.BQk()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.iconCleaner)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function Ln(t,e){if(1&t&&l._UZ(0,"tui-tooltip",34),2&t){const t=l.oxw(2);l.Q6J("content",null==t.hintOptions?null:t.hintOptions.content)("describeId",t.id)}}function Fn(t,e){if(1&t&&l._UZ(0,"tui-svg",21),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Nn(t,e){if(1&t&&(l.TgZ(0,"div",35),l.YNc(1,Fn,1,1,"tui-svg",20),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(2,On,t.size))}}function zn(t,e){if(1&t&&(l.TgZ(0,"div",28),l.YNc(1,Dn,2,4,"ng-container",0),l.YNc(2,Ln,1,2,"tui-tooltip",29),l.YNc(3,Nn,2,4,"div",30),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("ngIf",t.hasCleaner),l.xp6(1),l.Q6J("ngIf",t.showHint),l.xp6(1),l.Q6J("ngIf",t.icon)}}function Rn(t,e){if(1&t&&l._UZ(0,"tui-svg",36),2&t){const t=l.oxw();l.Q6J("src",t.icons.error)}}const Bn=[[["tuiContent"]],[["select"]],"*"],Hn=["tuiContent","select","*"],Vn={s:1.25,m:1.5,l:2},Yn={s:1,m:1.25,l:1.25};let jn=(()=>{class t extends o.m6v{constructor(t,e,n,i,r,s,a,u,c){super(t,e),this.el=n,this.modeDirective=i,this.mode$=r,this.hintOptions=s,this.controller=a,this.options=u,this.icons=c,this.tags=o.Mmc,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=o.YeN,this.expandable=!0,this.rows=1/0,this.inputHidden=!1,this.uniqueTags=this.options.uniqueTags,this.maxLength=null,this.placeholder="",this.removable=!0,this.disabledItemHandler=o.IyD,this.searchChange=new l.vpe,this.status$=this.mode$.pipe((0,N.U)((()=>this.status))),this.open=!1}set pseudoFocusedSetter(t){t||this.focused||this.scrollTo(0),this.pseudoFocus=t}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){var t;return(0,o.zb4)(this.el.nativeElement)||!!(null===(t=this.hostedDropdown)||void 0===t?void 0:t.focused)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get labelOutside(){const{size:t,labelOutside:e}=this.controller;return"s"===t||e}get iconLeft(){return this.controller.iconLeft}get icon(){return this.controller.icon}get iconCleaner(){return this.controller.options.iconCleaner}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&this.interactive}get hasNativeValue(){return!!this.search}get hasValue(){return!!this.value.length||this.hasNativeValue}get hasPlaceholder(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)}get placeholderRaised(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)}get hasExampleText(){var t;return!!(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)&&this.computedFocused&&!this.hasValue&&!this.readOnly}get hasRightIcons(){var t;return this.hasCleaner||!!this.icon||!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&!this.computedDisabled}get showHint(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&(this.controller.options.hintOnDisabled||!this.computedDisabled)}get status(){var t;return(null===(t=this.modeDirective)||void 0===t?void 0:t.mode)?"default":this.options.tagStatus}get canOpen(){return this.interactive&&!!this.datalist}get computeMaxHeight(){return this.expandable?this.rows*this.lineHeight:null}onFocusInOut(){this.cdr.detectChanges()}detectRetargetFromLabel(t){(0,o.UPZ)(t)&&t.stopImmediatePropagation()}getLeftContent(t){return!this.tagValidator(t)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){this.updateSearch(""),this.clear(),this.focusInput()}onActiveZone(t){this.open=!1,this.addTag(),this.updateFocused(t),t||this.computedFocused||this.scrollTo(0)}onMouseDown(t){var e;const n=(0,o.mAU)(t);!this.focusableElement||n===this.focusableElement.nativeElement||!(0,o.veZ)(t.target)||(null===(e=this.cleanerSvg)||void 0===e?void 0:e.nativeElement.contains(t.target))||this.tagsContainer&&n!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(n)||(t.preventDefault(),this.focusInput())}onFieldKeyDownBackspace(t){this.labelOutside||this.hasNativeValue||!this.value.length?this.onFieldKeyDownArrowLeft(t):this.deleteLastEnabledItem()}onFieldKeyDownArrowLeft(t){this.labelOutside&&!this.hasNativeValue&&this.value.length&&(t.preventDefault(),this.tags.last.nativeElement.focus())}onFieldKeyDownEnter(){this.addTag(),this.scrollTo()}onTagKeyDownArrowLeft(t){t>0&&this.onScrollKeyDown(t,-1)}onTagKeyDownArrowRight(t){t===this.value.length-1?this.focusInput():this.onScrollKeyDown(t,1)}onTagEdited(t,e){this.focusInput(""===t),this.value=this.filterValue(this.value.map(((n,i)=>i!==e?n:t.split(this.separator).map((t=>t.trim())).filter(Boolean))).reduce(((t,e)=>t.concat(e)),[]))}handleOption(t){this.focusInput(),this.updateSearch(""),this.value=this.filterValue(this.value.concat(t)),this.open=!1,this.scrollTo()}onInput(t){const e=t.split(this.separator),n=e.map((t=>this.clippedValue(t.trim()))).filter(((t,e,{length:n})=>t.length>0&&e!==n-1)).filter((t=>!this.disabledItemHandler(t)));e.length>1?(this.updateSearch(this.clippedValue(e[e.length-1].trim())),this.value=this.filterValue([...this.value,...n])):this.updateSearch(this.clippedValue(t)),this.open=this.hasNativeValue}onPaste(t){const e=(0,o.Nnc)(t);this.onInput(e||"")}onDrop({dataTransfer:t}){t&&this.onInput(t.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(t,e){return e.toString()}scrollTo(t){var e;void 0===t&&(t=null===(e=this.scrollBar)||void 0===e?void 0:e.nativeElement.scrollWidth),(0,ze.H)(0).pipe((0,B.R)(this.destroy$)).subscribe((()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=t||0)}))}filterValue(t){const e=new Set;return t.reverse().filter((t=>!this.uniqueTags||t&&!e.has(t)&&e.add(t))).reverse()}onScrollKeyDown(t,e){const n=this.tags.find(((n,i)=>i===t+e));n&&this.scrollBar&&(n.nativeElement.focus(),e*this.scrollBar.nativeElement.clientWidth-e*n.nativeElement.offsetLeft-n.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=e*n.nativeElement.clientWidth))}updateSearch(t){this.focusableElement&&(this.focusableElement.nativeElement.value=t),this.search=t,this.searchChange.emit(t)}addTag(){var t,e;const n=null!==(e=null===(t=this.search)||void 0===t?void 0:t.trim())&&void 0!==e?e:"";n&&!this.disabledItemHandler(n)&&(this.updateSearch(""),this.value=this.filterValue(this.value.concat(n)))}deleteLastEnabledItem(){for(let t=this.value.length-1;t>=0;t--)if(!this.disabledItemHandler(this.value[t])){this.value=(0,o.WX)(this.value,t);break}}focusInput(t=!1){var e;null===(e=this.nativeFocusableElement)||void 0===e||e.focus({preventScroll:t})}clippedValue(t){return t.slice(0,this.maxLength||t.length)}get lineHeight(){return this.labelOutside?Vn[this.controller.size]+.25:Yn[this.controller.size]}}return t.ɵfac=function(e){return new(e||t)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(s.wtG,8),l.Y36(s.Auc),l.Y36(s.bZA,8),l.Y36(s.CsI),l.Y36(mn),l.Y36(s.Gs9))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-input-tag"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.gXS,5,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(bn,5),l.Gf(yn,5),l.Gf(_n,5,l.SBq),l.Gf(s.IB$,5,l.SBq),l.Gf(Cn,5),l.Gf(wn,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.hostedDropdown=t.first),l.iGM(t=l.CRH())&&(e.focusableElement=t.first),l.iGM(t=l.CRH())&&(e.tagsContainer=t.first),l.iGM(t=l.CRH())&&(e.cleanerSvg=t.first),l.iGM(t=l.CRH())&&(e.scrollBar=t.first),l.iGM(t=l.CRH())&&(e.errorIconTemplate=t.first),l.iGM(t=l.CRH())&&(e.tags=t)}},hostVars:7,hostBindings:function(t,e){1&t&&l.NdJ("focusin.capture.silent",(function(){return e.onFocusInOut()}))("focusout.capture.silent",(function(){return e.onFocusInOut()})),2&t&&(l.uIk("data-size",e.size),l.ekj("_expandable",e.expandable)("_label-outside",e.labelOutside)("_icon-left",e.iconLeft))},inputs:{separator:"separator",search:"search",editable:"editable",tagValidator:"tagValidator",expandable:"expandable",rows:"rows",inputHidden:"inputHidden",uniqueTags:"uniqueTags",maxLength:"maxLength",placeholder:"placeholder",removable:"removable",disabledItemHandler:"disabledItemHandler",pseudoFocusedSetter:["pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(t),(0,o.wBO)(t),(0,s.oEG)(t),s.Y0,s.CV2],[Wt.yn]),l.qOj],ngContentSelectors:Hn,decls:25,vars:34,consts:[[4,"ngIf"],[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiWrapper","",3,"appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon t-icon-wrapper",4,"ngIf"],[1,"t-wrapper"],[1,"t-absolute-wrapper"],["automation-id","tui-input-tag__placeholder","class","t-placeholder",3,"t-placeholder_raised",4,"ngIf"],[1,"t-scrollbar",3,"hidden"],[1,"t-tags"],[4,"ngIf","ngIfElse"],["text",""],[1,"t-input-wrapper"],[1,"t-ghost"],["automation-id","tui-input-tag__native","type","text",1,"t-native",3,"disabled","id","ngModel","placeholder","readOnly","tuiFocusable","drop.prevent","keydown.arrowLeft","keydown.backspace","keydown.enter.prevent","ngModelChange","paste.prevent"],["focusableElement",""],[1,"t-value-content"],["class","t-icons t-icon-wrapper",4,"ngIf"],["errorIcon",""],[1,"t-icon","t-icon_left","t-textfield-icon","t-icon-wrapper"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-input-tag__placeholder",1,"t-placeholder"],["automation-id","tui-input-tag__tag","class","t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent",4,"ngFor","ngForOf","ngForTrackBy"],["automation-id","tui-input-tag__tag",1,"t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent"],["tag",""],["class","t-text",3,"t-text_comma","t-text_disabled","t-text_error","textContent",4,"ngFor","ngForOf"],[1,"t-text",3,"textContent"],[1,"t-icons","t-icon-wrapper"],["automation-id","tui-input-tag__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","","class","t-cleaner",3,"src","click.stop",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","",1,"t-cleaner",3,"src","click.stop"],["cleaner",""],["automation-id","tui-input-tag__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"],[1,"t-error-icon",3,"src"]],template:function(t,e){if(1&t&&(l.F$t(Bn),l.YNc(0,xn,1,0,"ng-container",0),l.ALo(1,"async"),l.TgZ(2,"tui-hosted-dropdown",1),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(3,"div",2),l.NdJ("click.prevent.silent",(function(t){return e.detectRetargetFromLabel(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),l.TgZ(4,"div",3),l.YNc(5,kn,2,4,"div",4),l.TgZ(6,"div",5),l.TgZ(7,"div",6),l.YNc(8,Sn,2,2,"div",7),l.qZA(),l.TgZ(9,"tui-scrollbar",8),l.TgZ(10,"div",9),l.YNc(11,Tn,2,2,"ng-container",10),l.YNc(12,En,1,1,"ng-template",null,11,l.W1O),l.TgZ(14,"div",12),l.TgZ(15,"div",13),l._uU(16),l.qZA(),l.TgZ(17,"input",14,15),l.NdJ("drop.prevent",(function(t){return e.onDrop(t)}))("keydown.arrowLeft",(function(t){return e.onFieldKeyDownArrowLeft(t)}))("keydown.backspace",(function(t){return e.onFieldKeyDownBackspace(t)}))("keydown.enter.prevent",(function(){return e.onFieldKeyDownEnter()}))("ngModelChange",(function(t){return e.onInput(t)}))("paste.prevent",(function(t){return e.onPaste(t)})),l.qZA(),l.qZA(),l.qZA(),l.TgZ(19,"div",16),l.Hsn(20),l.qZA(),l.qZA(),l.qZA(),l.Hsn(21,1),l.YNc(22,zn,4,3,"div",17),l.qZA(),l.YNc(23,Rn,1,1,"ng-template",null,18,l.W1O),l.qZA(),l.qZA()),2&t){const t=l.MAs(13);let n;l.Q6J("ngIf",l.lcZ(1,32,null==e.hintOptions?null:e.hintOptions.change$)),l.xp6(2),l.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),l.xp6(2),l.Q6J("ngIf",e.iconLeft),l.xp6(3),l.Q6J("ngIf",e.hasPlaceholder),l.xp6(1),l.Udp("max-height",e.computeMaxHeight,"rem"),l.Q6J("hidden",!e.expandable),l.xp6(1),l.ekj("t-tags_empty",(!e.focused||e.inputHidden)&&!(null!=e.value&&e.value.length)&&!(null!=e.search&&null!=(n=e.search.trim())&&n.length)),l.xp6(1),l.Q6J("ngIf",e.labelOutside)("ngIfElse",t),l.xp6(3),l.ekj("t-input-wrapper_collapsed",e.computedDisabled||e.readOnly||e.inputHidden),l.xp6(2),l.Oqu(e.search),l.xp6(1),l.ekj("t-native_hidden",e.inputHidden),l.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.search)("placeholder",e.placeholder)("readOnly",e.readOnly||e.inputHidden)("tuiFocusable",e.computedFocusable),l.uIk("maxLength",e.maxLength),l.xp6(5),l.Q6J("ngIf",e.hasRightIcons)}},directives:[r.O5,Kt.o,Xt.e,Gt.o,it.I,qt.Fj,qt.JJ,qt.On,at.t,a.Li,c.P,r.sg,fn.G,vn.w],pipes:[r.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-width: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-style:solid;border-color: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=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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{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%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-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)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.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)}.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}[_nghost-%COMP%]{cursor:text}._expandable[_nghost-%COMP%]{height:auto;max-height:none}._disabled[_nghost-%COMP%]{pointer-events:none}._readonly[_nghost-%COMP%]{cursor:default}[data-size=m][_nghost-%COMP%]{line-height:1rem}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}[_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%], ._label-outside._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{margin:0}[data-size=s]._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:.25rem;margin-inline-start:.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1rem solid transparent}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1.25rem solid transparent}.t-tags[_ngcontent-%COMP%]{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable[_ngcontent-%COMP%]{overflow:hidden}.t-tags_empty[_ngcontent-%COMP%]{height:0}._expandable[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{flex-wrap:wrap;white-space:normal;overflow:hidden}._readonly[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{pointer-events:none}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{align-items:flex-start}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}[data-size=s][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-absolute-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}[data-size=m][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag[_ngcontent-%COMP%]{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text[_ngcontent-%COMP%]:after{content:",\\a0"}.t-text_disabled[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-text_error[_ngcontent-%COMP%]{color:var(--tui-negative)}.t-text[_ngcontent-%COMP%]:not(.t-text_comma):last-of-type:after{content:""}[_nghost-%COMP%]:not(._expandable) .t-text[_ngcontent-%COMP%]{white-space:nowrap}.t-input-wrapper[_ngcontent-%COMP%], .t-value-content[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;max-width:100%}[data-size=s][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:1.5rem}[data-size=m][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=m][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}[data-size=l][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-s) + 2 * .125rem)}[_nghost-%COMP%]:not(._label-outside) .t-input-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._label-outside) .t-value-content[_ngcontent-%COMP%]{min-height:1rem}.t-input-wrapper_collapsed[_ngcontent-%COMP%]{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content[_ngcontent-%COMP%]:empty{display:none}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}[_nghost-%COMP%]:not(._expandable) .t-ghost[_ngcontent-%COMP%]{min-width:2rem}.t-native[_ngcontent-%COMP%]{margin:0;border-width: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%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.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}.t-native_hidden[_ngcontent-%COMP%]{opacity:0;text-indent:-10em}.t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03-night)}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:-moz-read-only)::placeholder{opacity:1}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:read-only)::placeholder{opacity:1}.t-error-icon[_ngcontent-%COMP%]{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}'],changeDetection:0}),t})(),Zn=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,s.EIu,s.dSp,a.wq]]}),t})();function $n(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}n(90691);const Un=function(t){return{$implicit:t}};function Gn(t,e){if(1&t&&(l.TgZ(0,"div",6),l.YNc(1,$n,2,1,"ng-container",7),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",l.VKq(2,Un,t.value))}}function qn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-primitive-textfield",4),l.NdJ("valueChange",(function(e){return l.CHM(t),l.oxw().onValueChange(e)})),l.Hsn(1),l.Hsn(2,1,["ngProjectAs","input",5,["input"]]),l.YNc(3,Gn,2,4,"div",5),l.qZA()}if(2&t){const t=e.tuiLet,n=l.oxw(),i=l.MAs(4);l.Q6J("disabled",n.computedDisabled)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.innerPseudoFocused)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedRangeFiller(t||""))("tuiTextfieldIcon",n.calendarIcon&&i)("value",n.computedValue),l.xp6(3),l.Q6J("ngIf",n.showValueTemplate)}}function Jn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-svg",9),l.NdJ("click",(function(){return l.CHM(t),l.oxw(2).onIconClick()})),l.qZA()}if(2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function Qn(t,e){if(1&t&&l.YNc(0,Jn,1,3,"tui-svg",8),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(2,Un,t.size))}}function Wn(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar-range",10),l.NdJ("valueChange",(function(e){return l.CHM(t),l.oxw().onRangeChange(e)})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("defaultViewedMonth",t.defaultViewedMonth)("disabledItemHandler",t.disabledItemHandler)("items",t.items)("markerHandler",t.markerHandler)("max",t.computedMax)("maxLength",t.maxLength)("min",t.computedMin)("minLength",t.minLength)("value",t.value)}}const Kn=["*",[["input"]]];class Xn extends o.F9l{constructor(t,e,n,i,r,a,l,u,c,d,h,p){super(t,e,d),this.injector=n,this.isMobile=i,this.dialogs=r,this.mobileCalendar=a,this.dateFormat=l,this.dateSeparator=u,this.dateTexts$=c,this.valueTransformer=d,this.options=h,this.textfieldSize=p,this.disabledItemHandler=o.IyD,this.markerHandler=s.zE9,this.defaultViewedMonth=o.qld.currentLocal(),this.items=[],this.min=this.options.min,this.max=this.options.max,this.minLength=null,this.maxLength=null,this.open=!1,this.maxLengthMapper=vt.EP,this.dateFiller$=this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator))))}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:o.nNo}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:o.OyN}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get computedMobile(){return this.isMobile&&!!this.mobileCalendar}get calendarIcon(){return this.options.icon}get canOpen(){return this.interactive&&!this.computedMobile}get computedExampleText(){var t,e;return this.items.length&&(null===(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||void 0===e?void 0:e.placeholder)||""}get computedMask(){var t,e;const n=(null===(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||void 0===e?void 0:e.value)!==this.computedValue;return this.activePeriod||n?K.A_:this.calculateMask(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax,this.minLength,this.maxLength)}get activePeriod(){return this.items.find((t=>(0,o.J$k)(this.value,t.range,((t,e)=>t.from.daySame(e.from.dayLimit(this.min,this.max))&&t.to.daySame(e.to.dayLimit(this.min,this.max))))))||null}get computedValue(){const{value:t,nativeValue:e,activePeriod:n}=this;return n?String(n):t?t.getFormattedDayRange(this.dateFormat,this.dateSeparator):e}get showValueTemplate(){return(0,o.PcC)(this.value)&&!this.focused}get computedContent(){var t;return(null===(t=this.activePeriod)||void 0===t?void 0:t.content)||this.computedValue}get innerPseudoFocused(){return!1!==this.pseudoFocus&&(!(!this.open&&!this.computedFocused)||null)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}onClick(){this.isMobile||this.toggle()}getComputedRangeFiller(t){return this.activePeriod?"":this.getDateRangeFiller(t)}onIconClick(){this.computedMobile&&this.mobileCalendar&&this.dialogs.open(new a.Al(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{min:this.maxLengthMapper(this.computedMin,this.value,this.maxLength,!0),max:this.maxLengthMapper(this.computedMax,this.value,this.maxLength,!1),disabledItemHandler:this.disabledItemHandler}}).pipe((0,B.R)(this.destroy$)).subscribe((t=>{this.value=t}))}onOpenChange(t){this.open=t}onValueChange(t){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),t||this.onOpenChange(!0),this.value=t.length===o.FZu?o.VRe.normalizeParse(t,this.dateFormat):null}onRangeChange(t){this.toggle(),this.focusInput(),t||(this.nativeValue=""),this.value=t}onItemSelect(t){this.toggle(),this.focusInput(),"string"==typeof t?null!==this.activePeriod&&(this.value=null,this.nativeValue=""):this.value=t.range.dayLimit(this.min,this.max)}onActiveZone(t){this.updateFocused(t),t||this.itemSelected||this.nativeValue.length!==o.ekI&&this.nativeValue.length!==o.ekI+o.mHA.length||(this.value=o.VRe.normalizeParse(this.nativeValue,this.dateFormat))}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}valueIdenticalComparator(t,e){return(0,o.J$k)(t,e,((t,e)=>t.daySame(e)))}calculateMask(t,e,n,i,r,o){return(0,We.n9)({separator:e,mode:vt.ux[t],min:n.toLocalNativeDate(),max:i.toLocalNativeDate(),minLength:r||{},maxLength:o||{}})}get itemSelected(){return-1!==this.items.findIndex((t=>String(t)===this.nativeValue))}toggle(){this.open=!this.open}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}getDateRangeFiller(t){return`${t}${o.mHA}${t}`}}Xn.ɵfac=function(t){return new(t||Xn)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.zs3),l.Y36(o.fLQ),l.Y36(s.ROA),l.Y36(nt.vk,8),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.zf),l.Y36(nt.LD,8),l.Y36(nt.WB),l.Y36(s.kId))},Xn.ɵcmp=l.Xpm({type:Xn,selectors:[["tui-input-date-range"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",defaultViewedMonth:"defaultViewedMonth",items:"items",min:"min",max:"max",minLength:"minLength",maxLength:"maxLength"},features:[l._Bn([(0,o.FTc)(Xn),(0,o.wBO)(Xn),(0,nt._V)(nt.LD)]),l.qOj],ngContentSelectors:["*","input"],decls:7,vars:6,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","","class","t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange",4,"tuiLet"],["iconContent",""],["dropdown",""],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","valueChange"],["ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],[3,"defaultViewedMonth","disabledItemHandler","items","markerHandler","max","maxLength","min","minLength","value","valueChange"]],template:function(t,e){if(1&t&&(l.F$t(Kn),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.YNc(1,qn,4,12,"tui-primitive-textfield",1),l.ALo(2,"async"),l.YNc(3,Qn,1,4,"ng-template",null,2,l.W1O),l.YNc(5,Wn,1,9,"ng-template",null,3,l.W1O),l.qZA()),2&t){const t=l.MAs(6);l.Q6J("canOpen",e.canOpen)("content",t)("open",e.open&&e.canOpen),l.xp6(1),l.Q6J("tuiLet",l.lcZ(2,4,e.dateFiller$))}},directives:[Kt.o,Xt.e,lt.L,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,r.O5,a.Li,c.P,Gt.o,Et],pipes:[r.Ov],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}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}"],changeDetection:0}),(0,p.gn)([o.UMq],Xn.prototype,"calculateMask",null);let ti=(()=>{class t{constructor(t){this.host=t}get value(){var t,e;return this.host.rawValue[0]&&this.host.rawValue[1]?`${null===(t=this.host.rawValue[0])||void 0===t?void 0:t.toString("YMD","-")}T${null===(e=this.host.rawValue[1])||void 0===e?void 0:e.toString("HH:MM")}`:""}onChange(t){if(!t)return void this.host.writeValue([null,null]);const e=new Date(t),n=o.TU1.fromLocalNativeDate(e),i=o.qDo.fromLocalNativeDate(e);this.host.writeValue([n,i])}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiDateTime",""]],hostAttrs:["type","datetime-local"],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("change.stop",(function(t){return e.onChange(t.target.value)}))("input.stop",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&l.Ikx("tabIndex",-1)("value",e.value)}}),t})();function ei(t,e){if(1&t&&l._UZ(0,"tui-svg",7),2&t){const t=e.polymorpheusOutlet,n=l.oxw(2);l.ekj("t-icon",!n.computedDisabled),l.Q6J("src",t)}}function ni(t,e){1&t&&l._UZ(0,"input",8)}const ii=function(t){return{$implicit:t}};function ri(t,e){if(1&t&&(l.YNc(0,ei,1,3,"tui-svg",5),l.YNc(1,ni,1,0,"input",6)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.calendarIcon)("polymorpheusOutletContext",l.VKq(3,ii,t.size)),l.xp6(1),l.Q6J("ngIf",t.showNativePicker)}}function oi(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-calendar",9),l.NdJ("dayClick",(function(e){return l.CHM(t),l.oxw().onDayClick(e)}))("monthChange",(function(e){return l.CHM(t),l.oxw().onMonthChange(e)})),l.qZA()}if(2&t){const t=l.oxw();l.Q6J("disabledItemHandler",t.disabledItemHandler)("max",t.calendarMaxDay)("min",t.calendarMinDay)("month",t.computedActiveYearMonth)("value",t.calendarValue)}}const si=["*",[["input"]]];class ai extends o.M$T{constructor(t,e,n,i,r,s,a,l,u,c,d){super(t,e,a),this.dateFormat=n,this.dateSeparator=i,this.timeTexts$=r,this.dateTexts$=s,this.valueTransformer=a,this.options=l,this.isMobile=u,this.isIos=c,this.textfieldSize=d,this.month=null,this.timeMode$=new Lt.X("HH:MM"),this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=o.IyD,this.defaultActiveYearMonth=o.qld.currentLocal(),this.open=!1,this.filler$=(0,Ft.aj)([this.dateTexts$.pipe((0,N.U)((t=>(0,o.YlY)(t[this.dateFormat],this.dateSeparator)))),this.timeTexts$,this.timeMode$]).pipe((0,N.U)((([t,e,n])=>this.getDateTimeString(t,e[n]))))}set timeMode(t){this.timeMode$.next(t)}get timeMode(){return this.timeMode$.value}get size(){return this.textfieldSize.size}get computedMin(){return this.toTuiDay(this.min,this.options.min)}get computedMax(){return this.toTuiDay(this.max,this.options.max)}get fillerLength(){return o.ekI+vt.JC.length+this.timeMode.length}get maskOptions(){return this.calculateMask(this.computedMin,this.computedMax,this.timeMode,this.dateFormat,this.dateSeparator)}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get calendarIcon(){return this.options.icon}get nativePicker(){return this.options.nativePicker&&this.isMobile}get showNativePicker(){return this.nativePicker&&"HH:MM"===this.timeMode}get computedValue(){const{value:t,nativeValue:e,timeMode:n}=this,[i,r]=t,s=e.length>o.ekI;return!i||!r&&s?e:this.getDateTimeString(i,r,n)}get calendarValue(){return this.value[0]}get calendarMinDay(){const t=this.computedMin;return Array.isArray(t)?t[0]:t}get calendarMaxDay(){const t=this.computedMax;return Array.isArray(t)?t[0]:t}get computedActiveYearMonth(){const{computedMin:t,computedMax:e}=this;return this.month||this.value[0]||(0,o.hVF)(this.defaultActiveYearMonth,Array.isArray(t)?t[0]:t,Array.isArray(e)?e[0]:e)}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}onClick(){this.open=!this.open}onValueChange(t){if(t||this.onOpenChange(!0),t.length{this.nativeValue=this.trimTrailingSeparator(this.nativeValue)})),null===this.value[0]||null!==this.value[1]||this.nativeValue.length<=this.fillerLength+vt.JC.length||"HH:MM"===this.timeMode)return;const[,e]=this.nativeValue.split(vt.JC);if(!e)return;const n=o.qDo.fromString(e);this.value=[this.value[0],n]}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=this.value&&(this.value[0]||this.value[1])?this.computedValue:""}getFallbackValue(){return[null,null]}valueIdenticalComparator(t,e){return(0,o.J$k)(t[0],e[0],((t,e)=>t.daySame(e)))&&(0,o.J$k)(t[1],e[1],((t,e)=>String(t)===String(e)))}calculateMask(t,e,n,i,r){return(0,We.H$)({timeMode:n,dateSeparator:r,dateMode:vt.ux[i],min:this.toNativeDate(t),max:this.toNativeDate(e)})}getDateTimeString(t,e,n="HH:MM"){const i=t instanceof o.TU1?t.toString(this.dateFormat,this.dateSeparator):t,r=e instanceof o.qDo?e.toString(n):e||"";return r?`${i}${vt.JC}${r}`:i}updateNativeValue(t){const e=this.nativeValue.split(vt.JC)[1]||"";this.nativeValue=this.getDateTimeString(t,e)}clampTime(t,e){const{computedMin:n,computedMax:i}=this,r=t.toAbsoluteMilliseconds(),s=Array.isArray(n)&&e.daySame(this.calendarMinDay)?n[1].toAbsoluteMilliseconds():-1/0,a=Array.isArray(i)&&e.daySame(this.calendarMaxDay)?i[1].toAbsoluteMilliseconds():1/0;return o.qDo.fromAbsoluteMilliseconds((0,o.Kiv)(r,s,a))}trimTrailingSeparator(t){return t.replace(new RegExp(`(\\${this.dateSeparator}|${vt.JC}|\\.)$`),"")}toNativeDate(t){if(!Array.isArray(t))return t.toLocalNativeDate();const[{year:e,month:n,day:i},{hours:r,minutes:o,seconds:s,ms:a}]=t;return new Date(e,n,i,r,o,s,a)}toTuiDay(t,e){if(!t)return e;if(!Array.isArray(t))return t;const[n,i]=t;return n?i?[n,i]:n:e}}ai.ɵfac=function(t){return new(t||ai)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.P_B),l.Y36(o.q_$),l.Y36(nt.Yq),l.Y36(nt.zf),l.Y36(nt.Mu,8),l.Y36(nt.WB),l.Y36(o.fLQ),l.Y36(o.FAH),l.Y36(s.kId))},ai.ɵcmp=l.Xpm({type:ai,selectors:[["tui-input-date-time"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",defaultActiveYearMonth:"defaultActiveYearMonth",timeMode:"timeMode"},features:[l._Bn([(0,o.FTc)(ai),(0,o.wBO)(ai),(0,nt._V)(nt.Mu)]),l.qOj],ngContentSelectors:["*","input"],decls:9,vars:16,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["automation-id","tui-input-date-time__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["appearance","icon","tuiWrapper","",3,"t-icon","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDateTime","","class","t-native-input",4,"ngIf"],["appearance","icon","tuiWrapper","",3,"src"],["tuiDateTime","",1,"t-native-input"],["automation-id","tui-input-date-time__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","max","min","month","value","dayClick","monthChange"]],template:function(t,e){if(1&t&&(l.F$t(si),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.onOpenChange(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("focusedChange",(function(t){return e.onFocused(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.ALo(2,"async"),l.Hsn(3),l.Hsn(4,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(5,ri,2,5,"ng-template",null,2,l.W1O),l.YNc(7,oi,1,5,"ng-template",3,4,l.W1O),l.qZA()),2&t){const t=l.MAs(6),n=l.MAs(8);l.Q6J("canOpen",e.interactive&&!e.showNativePicker)("content",n)("open",e.open&&e.interactive),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",l.lcZ(2,14,e.filler$)||"")("tuiTextfieldIcon",e.calendarIcon&&t)("value",e.computedValue),l.xp6(6),l.Q6J("polymorpheus",e.type)}},directives:[Kt.o,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,a.GL,a.Li,r.O5,c.P,Gt.o,ti,bt.a,Ct.A],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-icon[_ngcontent-%COMP%]{pointer-events:auto}.t-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-native-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),(0,p.gn)([o.UMq],ai.prototype,"calculateMask",null),(0,p.gn)([o.UMq],ai.prototype,"getDateTimeString",null);var li=n(24112);const ui=(0,o.JN4)({capture:null,accepts:"",multiple:!1,size:"m",maxFileSize:31457280});let ci=(()=>{class t{constructor(t,e,n,i){this.host=t,this.el=e,this.idService=n,this.options=i}get tabIndex(){return this.host.focusable?0:-1}get id(){return this.el.nativeElement.id||this.idService.generate()}get accept(){var t;return null!==(t=this.el.nativeElement.accept)&&void 0!==t?t:this.options.accepts}get multiple(){var t;return null!==(t=this.el.nativeElement.multiple)&&void 0!==t?t:this.options.multiple}get capture(){var t;return null!==(t=this.el.nativeElement.getAttribute("capture"))&&void 0!==t?t:this.options.capture}get input(){return this.el.nativeElement}}return t.ɵfac=function(e){return new(e||t)(l.Y36((0,l.Gpc)((()=>Oi))),l.Y36(l.SBq),l.Y36(o.llV),l.Y36(ui))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiInputFiles",""]],hostAttrs:["type","file",1,"t-native"],hostVars:5,hostBindings:function(t,e){2&t&&(l.Ikx("tabIndex",e.tabIndex)("id",e.id)("accept",e.accept)("multiple",e.multiple),l.uIk("capture",e.capture))}}),t})();var di=n(48992);let hi=(()=>{class t{constructor(t,e){this.inputFileTexts$=t,this.units$=e}transform(t){return(0,Ft.aj)([this.inputFileTexts$,this.units$]).pipe((0,N.U)((([{maxSizeRejectionReason:e},n])=>`${e}${(0,he.z)(n,t)}`)))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.BV,16),l.Y36(nt.rV,16))},t.ɵpipe=l.Yjl({name:"tuiMaxSizeRejectionError",type:t,pure:!0}),t})();const pi=["input"],gi=["formatRejection"],mi=["maxSizeRejection"];function fi(t,e){1&t&&l.GkF(0)}function vi(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function bi(t,e){if(1&t&&l._UZ(0,"span",10),2&t){const t=e.polymorpheusOutlet;l.Q6J("textContent",t)}}function yi(t,e){if(1&t&&(l.TgZ(0,"div"),l.TgZ(1,"a",7),l.YNc(2,vi,2,1,"ng-container",8),l.ALo(3,"async"),l.qZA(),l.YNc(4,bi,1,1,"span",9),l.ALo(5,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("polymorpheusOutlet",l.lcZ(3,2,t.computedLink$)),l.xp6(2),l.Q6J("polymorpheusOutlet",l.lcZ(5,4,t.computedLabel$))}}function _i(t,e){if(1&t&&(l.ynx(0),l.Hsn(1),l._UZ(2,"input",11,12),l.BQk()),2&t){const t=l.oxw();l.xp6(2),l.Q6J("accept",t.accept)("id",t.id)("multiple",t.multiple)("tuiFocusable",t.focusable)}}function Ci(t,e){if(1&t&&(l._uU(0),l.ALo(1,"async")),2&t){const t=l.oxw();let e;l.hij(" ",(null==(e=l.lcZ(1,1,t.inputFileTexts$))?null:e.formatRejectionReason)||"","\n")}}function wi(t,e){if(1&t&&(l._uU(0),l.ALo(1,"async"),l.ALo(2,"tuiMaxSizeRejectionError")),2&t){const t=l.oxw();l.hij(" ",l.lcZ(1,1,l.lcZ(2,3,t.maxFileSize)),"\n")}}const xi=[[["input"]]],Mi=function(t){return{$implicit:t}};class Oi extends o.F9l{constructor(t,e,n,i,r){super(t,e),this.isMobile=n,this.inputFileTexts$=i,this.options=r,this.dataTransfer=null,this.accept=this.options.accepts,this.multiple=this.options.multiple,this.size=this.options.size,this.maxFileSize=this.options.maxFileSize,this.reject=new l.vpe}get computedMultiple(){var t,e;return null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.multiple)&&void 0!==e?e:this.multiple}get computedAccept(){var t,e;return null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.accept)&&void 0!==e?e:this.accept}get nativeFocusableElement(){var t;return(null===(t=this.input)||void 0===t?void 0:t.nativeElement)||null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get computedPseudoHovered(){var t;return null!==(t=this.pseudoHover)&&void 0!==t?t:this.fileDragged||null}get computedLink$(){return this.computeLink$(this.fileDragged,this.computedMultiple,this.link)}get computedLabel$(){return this.computeLabel$(this.isMobile,this.fileDragged,this.computedMultiple,this.label)}get fileDragged(){var t;return!!(null===(t=this.dataTransfer)||void 0===t?void 0:t.types.includes("Files"))}get arrayValue(){return this.getValueArray(this.value)}onFocused(t){this.updateFocused(t)}onFilesSelected(){var t,e,n;const i=null!==(e=null===(t=this.nativeInput)||void 0===t?void 0:t.input)&&void 0!==e?e:null===(n=this.input)||void 0===n?void 0:n.nativeElement;i&&(this.processSelectedFiles(i.files),i.value="")}onDropped(t){this.processSelectedFiles(t.files)}onDragOver(t){this.dataTransfer=t}removeFile(t){this.value=this.computedMultiple?this.arrayValue.filter((e=>e!==t)):null}computeLink$(t,e,n){return t?(0,I.of)(""):this.inputFileTexts$.pipe((0,N.U)((t=>e&&!n?t.defaultLinkMultiple:n||t.defaultLinkSingle)))}computeLabel$(t,e,n,i){return t?(0,I.of)(""):e?this.inputFileTexts$.pipe((0,N.U)((t=>n?t.dropMultiple:t.drop))):this.inputFileTexts$.pipe((0,N.U)((t=>n&&!i?t.defaultLabelMultiple:i||t.defaultLabelSingle)))}getValueArray(t){return t?Array.isArray(t)?t:[t]:o.LZ8}processSelectedFiles(t){if(!(null==t?void 0:t.length))return;const e={formatRejection:this.formatRejection,maxSizeRejection:this.maxSizeRejection},n=this.computedMultiple?Array.from(t):[t[0]],i=n.filter((t=>t.size>this.maxFileSize)),r=n.filter((t=>!this.isFormatAcceptable(t)&&!i.includes(t))),o=n.filter((t=>!i.includes(t)&&!r.includes(t)));(i.length||r.length)&&this.rejectFiles([...i.map((t=>({name:t.name,type:t.type,size:t.size,content:e.maxSizeRejection}))),...r.map((t=>({name:t.name,type:t.type,size:t.size,content:e.formatRejection})))]),this.value=this.computedMultiple?[...this.arrayValue,...o]:o[0]||null}isFormatAcceptable(t){if(!this.computedAccept)return!0;const e=`.${(t.name.split(".").pop()||"").toLowerCase()}`;return(0,li.w)(this.computedAccept).some((n=>n===e||n===t.type||"*"===n.split("/")[1]&&t.type.split("/")[0]===n.split("/")[0]))}rejectFiles(t){this.reject.emit(this.computedMultiple?t:t[0])}}Oi.ɵfac=function(t){return new(t||Oi)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.fLQ),l.Y36(nt.BV),l.Y36(ui))},Oi.ɵcmp=l.Xpm({type:Oi,selectors:[["tui-input-files"]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,ci,5),l.Suo(n,l.Rgc,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.nativeInput=t.first),l.iGM(t=l.CRH())&&(e.template=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(pi,5),l.Gf(gi,5),l.Gf(mi,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.input=t.first),l.iGM(t=l.CRH())&&(e.formatRejection=t.first),l.iGM(t=l.CRH())&&(e.maxSizeRejection=t.first)}},hostBindings:function(t,e){1&t&&l.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))("change",(function(){return e.onFilesSelected()}))},inputs:{link:"link",label:"label",accept:"accept",multiple:"multiple",size:"size",maxFileSize:"maxFileSize"},outputs:{reject:"reject"},features:[l._Bn([s.CV2,(0,o.FTc)(Oi)]),l.qOj],ngContentSelectors:pi,decls:10,vars:12,consts:[["appearance","input-file","tuiWrapper","",1,"t-wrapper",3,"active","disabled","focus","hover"],["automation-id","tui-input-file__label",1,"t-label",3,"mousedown.prevent.silent","tuiDroppableDragOverChange","tuiDroppableDropped"],[1,"t-description"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["formatRejection",""],["maxSizeRejection",""],["tuiLink",""],[4,"polymorpheusOutlet"],[3,"textContent",4,"polymorpheusOutlet"],[3,"textContent"],["title","","type","file",1,"t-native",3,"accept","id","multiple","tuiFocusable"],["input",""]],template:function(t,e){1&t&&(l.F$t(xi),l.TgZ(0,"div",0),l.TgZ(1,"label",1),l.NdJ("mousedown.prevent.silent",(function(){return 0}))("tuiDroppableDragOverChange",(function(t){return e.onDragOver(t)}))("tuiDroppableDropped",(function(t){return e.onDropped(t)})),l.TgZ(2,"div",2),l.YNc(3,fi,1,0,"ng-container",3),l.YNc(4,yi,6,6,"div",4),l.qZA(),l.YNc(5,_i,4,4,"ng-container",4),l.qZA(),l.qZA(),l.YNc(6,Ci,2,3,"ng-template",null,5,l.W1O),l.YNc(8,wi,3,5,"ng-template",null,6,l.W1O)),2&t&&(l.ekj("_mobile",e.isMobile),l.Q6J("active",e.pseudoActive)("disabled",e.computedDisabled)("focus",e.computedFocused)("hover",e.pseudoHover||e.fileDragged||null),l.xp6(3),l.Q6J("ngTemplateOutlet",e.template||null)("ngTemplateOutletContext",l.VKq(10,Mi,e.fileDragged)),l.xp6(1),l.Q6J("ngIf",!e.template),l.xp6(1),l.Q6J("ngIf",!e.readOnly&&!e.computedDisabled))},directives:[Gt.o,di._,r.tP,r.O5,st.V,a.Li,at.t],pipes:[r.Ov,hi],styles:['tui-input-files{display:block;min-height:var(--tui-height-l);border-radius:var(--tui-radius-m);font:var(--tui-font-text-m)}tui-input-files .t-native{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}tui-input-files .t-native::-webkit-file-upload-button{display:none}tui-input-files .t-native+.t-native{display:none}tui-input-files .t-label{width:100%;min-height:inherit;text-align:center}tui-input-files .t-description{display:flex;justify-content:center;align-items:center;height:100%;min-height:inherit;padding:1rem 0;box-sizing:border-box}[tuiWrapper][data-appearance=input-file]{background:transparent;word-wrap:break-word;color:var(--tui-text-02);min-height:inherit;border-radius:inherit;padding:0 .5rem;box-sizing:border-box}[tuiWrapper][data-appearance=input-file]:after{border:1px dashed;color:var(--tui-link)}[tuiWrapper][data-appearance=input-file]._mobile:after{border:1px solid}[tuiWrapper][data-appearance=input-file]:disabled:disabled:after,[tuiWrapper][data-appearance=input-file][data-state=disabled][data-state=disabled]:after{color:var(--tui-text-03)}:focus-visible:not([data-focused="false"])>[tuiWrapper][data-appearance=input-file]:after,[data-focused=true]>[tuiWrapper][data-appearance=input-file]:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file]:focus-visible:focus-visible:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file]._focused._focused:after{border-style:solid;border-width:2px;color:var(--tui-focus)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after{color:var(--tui-text-01-night)}:focus-visible:not([data-focused="false"])>[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after,[data-focused=true]>[tuiWrapper][data-appearance=input-file][data-mode=onDark]:after{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:focus-visible:focus-visible:after{color:var(--tui-text-01-night)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]._focused._focused:after{color:var(--tui-text-01-night)}@media (hover: hover){[tuiWrapper][data-appearance=input-file][data-mode=onDark]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=hover]{background:var(--tui-clear-inverse-hover)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=hover]:after{color:var(--tui-text-03-night)}}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active],[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:hover{background:var(--tui-clear-inverse-active)}[tuiWrapper][data-appearance=input-file][data-mode=onDark]:active:not(._no-active):after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:after,[tuiWrapper][data-appearance=input-file][data-mode=onDark][data-state=active]:hover:after{color:var(--tui-text-03-night)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]{color:var(--tui-text-01)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:after{color:var(--tui-text-01)}@media (hover: hover){[tuiWrapper][data-appearance=input-file][data-mode=onLight]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=hover]{background:var(--tui-clear-hover)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=hover]:after{color:var(--tui-text-03)}}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active],[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:hover{background:var(--tui-clear-active)}[tuiWrapper][data-appearance=input-file][data-mode=onLight]:active:not(._no-active):after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:after,[tuiWrapper][data-appearance=input-file][data-mode=onLight][data-state=active]:hover:after{color:var(--tui-text-03)}@media (hover: hover){[tuiWrapper][data-appearance=input-file]:hover:not(._no-hover),[tuiWrapper][data-appearance=input-file][data-state=hover]{background:var(--tui-secondary)}[tuiWrapper][data-appearance=input-file]:hover:not(._no-hover):after,[tuiWrapper][data-appearance=input-file][data-state=hover]:after{color:var(--tui-link-hover)}}[tuiWrapper][data-appearance=input-file]:active:not(._no-active),[tuiWrapper][data-appearance=input-file][data-state=active],[tuiWrapper][data-appearance=input-file][data-state=active]:hover{background:var(--tui-secondary-hover)}\n'],encapsulation:2,changeDetection:0}),(0,p.gn)([o.UMq],Oi.prototype,"computeLink$",null),(0,p.gn)([o.UMq],Oi.prototype,"computeLabel$",null),(0,p.gn)([o.UMq],Oi.prototype,"getValueArray",null),n(36866);let ki=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,o.udY,o.Fqk,s.c86]]}),t})();(0,o.JN4)({icons:{hide:({$implicit:t})=>"s"===t?"tuiIconEyeOff":"tuiIconEyeOffLarge",show:({$implicit:t})=>"s"===t?"tuiIconEye":"tuiIconEyeLarge"}});const Si=(0,o.JN4)({phoneMaskAfterCountryCode:"### ###-##-##",allowText:!1,countryCode:"+7"}),Pi=t=>t.replace(/\D/g,"").length;function Ti(t,e){const n=(t+e).replace(/[^#\d]+/g,"").length,i=e=>"+7"===t?e.replace(/^(\+?7?\s?8?)\s?/,""):e.replace(new RegExp(`^(\\+?${t.replace("+","")}?)\\s?`),"");return({elementState:t,data:e})=>{const{value:r,selection:o}=t;return{elementState:{selection:o,value:Pi(r)>n?i(r):r},data:Pi(e)>=n?i(e):e}}}var Ai=n(44530);const Ei=["*",[["input"]]];function Ii(t){return Number.isNaN(parseInt(t.replace(s.AJd,""),10))}class Di extends o.M$T{constructor(t,e,n,i,r){super(t,e),this.textfieldCleaner=n,this.options=i,this.textfieldSize=r,this.phoneMaskAfterCountryCode=this.options.phoneMaskAfterCountryCode,this.allowText=this.options.allowText,this.search="",this.searchChange=new l.vpe,this.countryCode=this.options.countryCode,this.open=!1}set countryCodeSetter(t){const e=this.countryCode;this.countryCode=t,this.updateValueWithNewCountryCode(e,t)}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){return(0,o.V8W)(this.nativeFocusableElement)||!!this.dropdown&&this.dropdown.focused}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||(0,K.CV)(this.value,this.maskOptions)}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}get inputMode(){return this.allowText?"text":"numeric"}get canOpen(){return this.interactive&&!!this.datalist}get canClean(){return this.nativeValue!==this.nonRemovablePrefix&&this.textfieldCleaner.cleaner}get maskOptions(){return this.calculateMask(this.countryCode,this.phoneMaskAfterCountryCode,this.nonRemovablePrefix,this.allowText)}onActiveZone(t){return this.updateFocused(t),!t||this.nativeValue||this.readOnly||this.allowText?this.nativeValue===this.nonRemovablePrefix||this.isTextValue?(this.updateSearch(""),void(this.nativeValue="")):void(t||this.allowText||!this.nativeFocusableElement||(this.nativeValue=this.nativeValue.replace(/\D$/,""))):(this.updateSearch(this.nonRemovablePrefix),void(this.nativeValue=this.nonRemovablePrefix))}onValueChange(t){const e=Ii(t)?t:t.replace(s.AJd,"").slice(0,this.maxPhoneLength);this.updateSearch(e),this.value=e===this.countryCode||Ii(e)?"":e,this.open=!0,this.value||this.allowText||(this.nativeValue=this.nonRemovablePrefix)}handleOption(t){this.focusInput(),this.value=t,this.nativeValue=(0,K.CV)(this.value,this.maskOptions),this.updateSearch(""),this.open=!1}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(t){super.writeValue(t),this.nativeValue=(0,K.CV)(t||"",this.maskOptions),this.updateSearch("")}getFallbackValue(){return""}get nonRemovablePrefix(){return`${this.countryCode} `}get maxPhoneLength(){return this.countryCode.length+this.phoneMaskAfterCountryCode.replace(/[^#]+/g,"").length}get isTextValue(){return!!this.search&&Ii(this.search)}calculateMask(t,e,n,i){const r=function(t,e){return[...t.split("")," ",...e.replace(/[^#\- ()]+/g,"").split("").map((t=>"#"===t?/\d/:t))]}(t,e),o=[Ti(t,e)];return i?{mask:({value:t})=>Ii(t)&&"+"!==t?K.A_.mask:r,preprocessors:o}:{mask:r,preprocessors:o,postprocessors:[(0,We.jX)(n)],plugins:[(0,We.nQ)(((t,[e,i])=>[e===i?n.length:0,t.length]))]}}focusInput(){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:!0})}updateSearch(t){this.search!==t&&(this.search=t,this.searchChange.emit(t))}updateValueWithNewCountryCode(t,e){this.isTextValue||(this.value=this.value.replace(t,e),this.nativeValue=(0,K.CV)(this.value,this.maskOptions))}}Di.ɵfac=function(t){return new(t||Di)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(s.YmJ),l.Y36(Si),l.Y36(s.kId))},Di.ɵcmp=l.Xpm({type:Di,selectors:[["tui-input-phone"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.gXS,5,l.Rgc),2&t){let t;l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(s.ycg,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.dropdown=t.first),l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{countryCodeSetter:["countryCode","countryCodeSetter"],phoneMaskAfterCountryCode:"phoneMaskAfterCountryCode",allowText:"allowText",search:"search"},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(Di),(0,o.wBO)(Di),(0,s.oEG)(Di)],[Wt.yn]),l.qOj],ngContentSelectors:["*","input"],decls:4,vars:13,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldCleaner","value","valueChange"]],template:function(t,e){1&t&&(l.F$t(Ei),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("valueChange",(function(t){return e.nativeValue=t}))("valueChange",(function(t){return e.onValueChange(t)})),l.Hsn(2),l.Hsn(3,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.qZA()),2&t&&(l.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldCleaner",e.canClean)("value",e.nativeValue))},directives:[Kt.o,Xt.e,te.y,ee.B,X.n,tn.ro,Ai.b],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}),(0,p.gn)([o.UMq],Di.prototype,"calculateMask",null);let Li=(()=>{class t extends s.D1Q{get value(){return this.host.nativeValue}onValueChange(t){this.host.onValueChange(t)}process(t){this.input=t}ngDoCheck(){this.input&&(this.input.type="tel",this.input.inputMode=this.host.inputMode)}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵdir=l.lG2({type:t,selectors:[["tui-input-phone"]],features:[l._Bn([(0,s.cpA)(t)]),l.qOj]}),t})();var Fi=n(19633);let Ni=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})();n(18569),(0,p.gn)([o.UMq],class{get query(){return this.accessor.nativeFocusableElement&&this.accessor.nativeFocusableElement.value||""}filter(t,e,n,i){return t?(0,he.fR)(t)?this.filterFlat(t,e,n,i):this.filter2d(t,e,n,i):null}filterFlat(t,e,n,i){const r=this.getMatch(t,n,i);return(0,o.PcC)(r)&&!this.multiSelect?t:t.filter((t=>e(t,i,n)))}filter2d(t,e,n,i){const r=t.find((t=>(0,o.PcC)(this.getMatch(t,n,i))));return(0,o.PcC)(r)&&!this.multiSelect?t:t.map((t=>this.filterFlat(t,e,n,i)))}getMatch(t,e,n){return t.find((t=>e(t).toLocaleLowerCase()===n.toLocaleLowerCase()))}}.prototype,"filter",null);class zi{constructor(t,e){this.item=t,this.stringify=e}toString(){return this.stringify(this.item)}}const Ri=(0,o.JN4)({expandable:!0,valueContent:""});let Bi=(()=>{class t extends i.s{constructor(){super(...arguments),this.selectedMapper=(t,e)=>e.includes(t)}get stringify(){return this.host.stringify}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵdir=l.lG2({type:t,features:[l.qOj]}),t})();function Hi(t,e){1&t&&l.Hsn(0,1,["*ngIf","isMobile"])}function Vi(t,e){if(1&t&&l.YNc(0,Hi,1,0,"ng-content",7),2&t){const t=l.oxw();l.Q6J("ngIf",t.isMobile)}}function Yi(t,e){1&t&&l.GkF(0,8)}function ji(t,e){if(1&t&&(l.TgZ(0,"span",11),l._uU(1),l.qZA()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}const Zi=function(t){return{$implicit:t}};function $i(t,e){if(1&t&&(l.TgZ(0,"div",9),l.YNc(1,ji,2,1,"span",10),l.qZA()),2&t){const t=l.oxw(),e=l.MAs(2);l.ekj("t-content_fullsize",e.labelOutside),l.xp6(1),l.Q6J("polymorpheusOutlet",t.valueContent)("polymorpheusOutletContext",l.VKq(4,Zi,t.value))}}function Ui(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function Gi(t,e){if(1&t&&(l.TgZ(0,"div",12),l.YNc(1,Ui,2,1,"ng-container",13),l.qZA()),2&t){const t=l.oxw();l.ekj("t-arrow_native-dropdown",t.nativeDropdownMode),l.xp6(1),l.Q6J("polymorpheusOutlet",t.arrow)}}const qi=["*",[["select"]]];class Ji extends o.m6v{constructor(t,e,n,i,r,s,a){super(t,e),this.arrowMode=n,this.itemsHandlers=i,this.options=r,this.controller=s,this.isMobile=a,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.expandable=this.options.expandable,this.search="",this.placeholder="",this.editable=!0,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.valueContent=this.options.valueContent,this.tagValidator=o.YeN,this.rows=1/0,this.searchChange=new l.vpe,this.open=!1,this.valueMapper=(t,e,n)=>n?o.LZ8:t.map((t=>new zi(t,e))),this.disabledItemHandlerWrapper=t=>e=>(0,o.Ajw)(e)||t(e.item)}get size(){return this.controller.size}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.input)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){var t,e;return!!(null===(t=this.input)||void 0===t?void 0:t.focused)||!!(null===(e=this.hostedDropdown)||void 0===e?void 0:e.focused)}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile&&!this.editable}get computedValue(){return this.computedGroup?o.LZ8:this.value}get searchOrSpace(){return this.computedGroup?" ":this.searchString}get searchString(){return null===this.search?"":this.search}get computedGroup(){return!!this.valueContent&&this.value.length>0&&(!this.focused||!this.editable)}getStringifier(t){return({$implicit:e})=>t(e)}onSpace(t){var e;this.editable||t.preventDefault(),this.readOnly||null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!0)}handleOption(t){const{value:e,identityMatcher:n}=this,i=e.findIndex((e=>n(e,t)));this.value=-1===i?[...e,t]:e.filter(((t,e)=>e!==i)),this.updateSearch(null)}onEnter(t){const{value:e}=this,n=this.accessor?this.accessor.getOptions():[];1===n.length&&(t.preventDefault(),this.value=(0,o.jp1)(e,n[0]),this.updateSearch(null))}onClick({nativeFocusableElement:t}){var e;this.interactive&&t&&(0,o.V8W)(t)&&(null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!this.open))}onInput(t){this.value=t.map((({item:t})=>t))}onValueChange(t){this.value=t}onSearch(t){var e;""!==t&&(null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!0)),this.updateSearch(t)}onActiveZone(t){this.updateFocused(t)}setDisabledState(){var t;super.setDisabledState(),null===(t=this.hostedDropdown)||void 0===t||t.updateOpen(!1)}updateSearch(t){this.search!==t&&(this.search=t,this.searchChange.emit(t))}}Ji.ɵfac=function(t){return new(t||Ji)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(h.Ii),l.Y36(nt.Ys),l.Y36(Ri),l.Y36(s.CsI),l.Y36(o.fLQ))},Ji.ɵcmp=l.Xpm({type:Ji,selectors:[["tui-multi-select"]],contentQueries:function(t,e,n){if(1&t&&(l.Suo(n,s.Ccr,5),l.Suo(n,Bi,7),l.Suo(n,s.gXS,5,l.Rgc)),2&t){let t;l.iGM(t=l.CRH())&&(e.accessor=t.first),l.iGM(t=l.CRH())&&(e.nativeSelect=t.first),l.iGM(t=l.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(l.Gf(s.o1K,5),l.Gf(jn,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.hostedDropdown=t.first),l.iGM(t=l.CRH())&&(e.input=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.size),l.ekj("_editable",e.editable))},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",expandable:"expandable",search:"search",placeholder:"placeholder",editable:"editable",disabledItemHandler:"disabledItemHandler",valueContent:"valueContent",tagValidator:"tagValidator",rows:"rows"},outputs:{searchChange:"searchChange"},features:[l._Bn([(0,o.FTc)(Ji),(0,o.wBO)(Ji),(0,s.oEG)(Ji),s.Y0],[Wt.yn]),l.qOj],ngContentSelectors:["*","select"],decls:13,vars:32,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-multi-select__input",1,"t-input",3,"disabled","disabledItemHandler","editable","expandable","inputHidden","nativeId","ngModel","placeholder","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","removable","rows","search","tagValidator","tuiTextfieldIcon","click.prevent","keydown.enter","keydown.space","ngModelChange","searchChange"],["inputTag",""],["select",""],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["ngProjectAs","tuiContent","class","t-content",5,["tuiContent"],3,"t-content_fullsize",4,"ngIf"],["icon",""],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-content"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"],["appearance","icon","automation-id","tui-multi-select__arrow","tuiPreventDefault","mousedown","tuiWrapper","",1,"t-arrow"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t){const t=l.EpF();l.F$t(qi),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("openChange",(function(t){return e.open=t}))("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-input-tag",1,2),l.NdJ("click.prevent",(function(){l.CHM(t);const n=l.MAs(2);return e.onClick(n)}))("keydown.enter",(function(t){return e.onEnter(t)}))("keydown.space",(function(t){return e.onSpace(t)}))("ngModelChange",(function(t){return e.onInput(t)}))("searchChange",(function(t){return e.onSearch(t)})),l.ALo(3,"tuiMapper"),l.ALo(4,"tuiMapper"),l.ALo(5,"tuiMapper"),l.Hsn(6),l.YNc(7,Vi,1,1,"ng-template",null,3,l.W1O),l.YNc(9,Yi,1,0,"ng-container",4),l.YNc(10,$i,2,6,"div",5),l.qZA(),l.YNc(11,Gi,2,3,"ng-template",null,6,l.W1O),l.qZA()}if(2&t){const t=l.MAs(8),n=l.MAs(12);l.Q6J("canOpen",e.interactive&&!e.nativeDropdownMode)("content",e.datalist||"")("open",e.open),l.xp6(1),l.Q6J("disabled",e.disabled)("disabledItemHandler",l.xi3(3,22,e.disabledItemHandler,e.disabledItemHandlerWrapper))("editable",!1)("expandable",e.expandable)("inputHidden",!e.editable)("nativeId",e.nativeId)("ngModel",l.Dn7(4,25,e.computedValue,e.valueMapper,e.stringify))("placeholder",e.placeholder)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("removable",!e.nativeDropdownMode)("rows",e.rows)("search",e.searchOrSpace)("tagValidator",l.xi3(5,29,e.tagValidator,e.disabledItemHandlerWrapper))("tuiTextfieldIcon",e.arrow?n:""),l.xp6(8),l.Q6J("ngTemplateOutlet",t),l.xp6(1),l.Q6J("ngIf",e.computedGroup)}},directives:[Kt.o,Xt.e,jn,qt.JJ,qt.On,ne.A,r.tP,r.O5,a.Li,Ct.A,Gt.o],pipes:[yt.c],styles:["[_nghost-%COMP%]{position:relative;display:block;border-radius:var(--tui-radius-m)}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-input[_ngcontent-%COMP%]{border-radius:inherit}[_nghost-%COMP%]:not(._editable):not(._readonly) .t-input[_ngcontent-%COMP%]{cursor:pointer}.t-content[_ngcontent-%COMP%]{display:flex;align-items:center;pointer-events:none;box-sizing:border-box}.t-primitive[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-arrow[_ngcontent-%COMP%]{pointer-events:auto;cursor:pointer}.t-arrow_native-dropdown[_ngcontent-%COMP%]{pointer-events:none}"],changeDetection:0}),(0,p.gn)([o.UMq],Ji.prototype,"getStringifier",null);class Qi{constructor(t){this.component=t}transform(t){const{value:e,identityMatcher:n}=this.component;return t?(0,he.fR)(t)?this.filter(t,e,n):this.filter2d(t,e,n):null}filter2d(t,e,n){return t.map((t=>this.filter(t,e,n)))}filter(t,e,n){return t.filter((t=>e.every((e=>!n(e,t)))))}}Qi.ɵfac=function(t){return new(t||Qi)(l.Y36(Ji,16))},Qi.ɵpipe=l.Yjl({name:"tuiHideSelected",type:Qi,pure:!1}),(0,p.gn)([o.UMq],Qi.prototype,"filter2d",null),(0,p.gn)([o.UMq],Qi.prototype,"filter",null);var Wi=n(87605);let Ki=(()=>{class t extends Qt.TA{get size(){var t;return"l"===this.option.size||"l"===(null===(t=this.dataList)||void 0===t?void 0:t.size)&&!this.option.size?"l":"m"}get selected(){const{value:t}=this.option;return(0,o.PcC)(t)&&(0,o.PcC)(this.value)&&this.value.some((e=>this.matcher(e,t)))}}return t.ɵfac=function(){let e;return function(n){return(e||(e=l.n5z(t)))(n||t)}}(),t.ɵcmp=l.Xpm({type:t,selectors:[["tui-multi-select-option"]],features:[l.qOj],decls:3,vars:5,consts:[[1,"t-checkbox",3,"size","value"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(l._UZ(0,"tui-primitive-checkbox",0),l.ALo(1,"async"),l.GkF(2,1)),2&t&&(l.Q6J("size",e.size)("value",l.lcZ(1,3,e.selected$)),l.xp6(2),l.Q6J("ngTemplateOutlet",e.context.$implicit))},directives:[Wi.r,r.tP],pipes:[r.Ov],styles:["@keyframes retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;overflow:hidden;animation:retrigger 1s}.t-checkbox[_ngcontent-%COMP%]{margin-right:.75rem}"],changeDetection:0}),t})();function Xi(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",4),l.NdJ("click",(function(){l.CHM(t);const e=l.oxw().tuiLet;return l.oxw().onClick(e)})),l.ALo(1,"async"),l._uU(2),l.ALo(3,"async"),l.qZA()}if(2&t){const t=l.oxw().tuiLet,e=l.oxw();let n;l.Q6J("disabled",!!l.lcZ(1,2,e.disabled$)),l.xp6(2),l.hij(" ",null==(n=l.lcZ(3,4,e.multiSelectTexts$))?null:n[t?"none":"all"]," ")}}function tr(t,e){if(1&t&&(l.TgZ(0,"span",1),l.TgZ(1,"span",2),l._uU(2),l.qZA(),l.YNc(3,Xi,4,6,"button",3),l.ALo(4,"async"),l.qZA()),2&t){const t=l.oxw();l.xp6(2),l.Oqu(t.label),l.xp6(1),l.Q6J("ngIf",t.label&&!l.lcZ(4,2,t.empty$))}}class er{constructor(t,e,n){this.multiSelectTexts$=t,this.host=e,this.control=n,this.options=o.Mmc,this.label=""}get size(){var t;return(null===(t=this.options.first)||void 0===t?void 0:t.size)||"m"}get empty$(){return(0,o.llR)(this.options).pipe((0,N.U)((({length:t})=>!t)))}get disabled$(){return(0,o.llR)(this.options).pipe((0,N.U)((t=>t.every((({disabled:t})=>t)))))}get value$(){return(0,Ft.aj)([this.items$,this.valueChanges$]).pipe((0,N.U)((([t,e])=>{let n=!1;for(let i=0;ithis.matcher(e,t[i])));if(!r&&n||r&&!n&&i)return null;n=r}return n})))}onClick(t){if(!this.control.control)return;const e=this.control.value||[],{values:n}=this,i=e.filter((t=>n.every((e=>!this.matcher(t,e)))));this.control.control.setValue(t?i:[...i,...n])}get values(){return this.filter((0,o.gDA)(this.options))}get matcher(){return this.host.identityMatcher||o.bgn}get items$(){return(0,o.llR)(this.options).pipe((0,N.U)((t=>t.map((({value:t})=>t)).filter(o.PcC))))}get valueChanges$(){return(0,o.EKY)(this.control).pipe((0,N.U)((t=>t||[])))}filter(t){return t.map((({value:t})=>t)).filter(o.PcC)}}er.ɵfac=function(t){return new(t||er)(l.Y36(nt.E6),l.Y36(s.N1S),l.Y36(qt.a5))},er.ɵcmp=l.Xpm({type:er,selectors:[["tui-opt-group","tuiMultiSelectGroup",""]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,s.vKW,4),2&t){let t;l.iGM(t=l.CRH())&&(e.options=t)}},hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_label",e.label)},inputs:{label:"label"},attrs:["tuiMultiSelectGroup",""],ngContentSelectors:["*"],decls:3,vars:3,consts:[["class","t-wrapper",4,"tuiLet"],[1,"t-wrapper"],[1,"t-label"],["tuiLink","","type","button","class","t-button",3,"disabled","click",4,"ngIf"],["tuiLink","","type","button",1,"t-button",3,"disabled","click"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,tr,5,4,"span",0),l.ALo(1,"async"),l.Hsn(2)),2&t&&l.Q6J("tuiLet",l.lcZ(1,1,e.value$))},directives:[lt.L,r.O5,st.V],pipes:[r.Ov],styles:["._label[_nghost-%COMP%]:before{display:none}[_nghost-%COMP%]:not(:first-of-type) .t-label[_ngcontent-%COMP%]:not(:empty){padding-top:1.25rem}[_nghost-%COMP%]:not(:first-of-type) .t-button[_ngcontent-%COMP%]{margin-top:1.25rem}.t-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.t-label[_ngcontent-%COMP%]:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}.t-button[_ngcontent-%COMP%]{margin:.75rem 1rem 0 auto}"],changeDetection:0}),(0,p.gn)([o.UMq],er.prototype,"empty$",null),(0,p.gn)([o.UMq],er.prototype,"disabled$",null),(0,p.gn)([o.UMq],er.prototype,"value$",null),(0,p.gn)([o.UMq],er.prototype,"items$",null),(0,p.gn)([o.UMq],er.prototype,"valueChanges$",null),(0,p.gn)([o.UMq],er.prototype,"filter",null),new a.Al(Ki);let nr=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({}),t})(),ir=(()=>{class t{constructor(t){this.countriesMasks=t}transform(t,e){return e.find((e=>{if(e===Fi.Xi.RU&&/^[78]/.test(t)&&/^(?!880[1-9 ])/.test(t)&&t.length+1===(0,he.fn)(this.countriesMasks,Fi.Xi.RU)||t.startsWith((0,he.zm)(this.countriesMasks,e).replace(o.kUW,""))&&t.length+1===(0,he.fn)(this.countriesMasks,e))switch(e){case Fi.Xi.RU:return(0,he.u7)(t);case Fi.Xi.KZ:return!(0,he.u7)(t);default:return!0}return!1}))}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.iN,16))},t.ɵpipe=l.Yjl({name:"tuiToCountryCode",type:t,pure:!0}),t})(),rr=(()=>{class t{transform(t){return new o.F4U(t)}}return t.ɵfac=function(e){return new(e||t)},t.ɵpipe=l.Yjl({name:"tuiToYear",type:t,pure:!0}),t})();const or={countries:[],countryIsoCode:Fi.Xi.RU},sr=(0,o.JN4)(or);var ar=n(64387),lr=n(38190),ur=n(40330),cr=n(63578),dr=n(99036),hr=n(52846),pr=n(77488);function gr(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",10),l.NdJ("click",(function(){const e=l.CHM(t).$implicit;return l.oxw(3).onItemClick(e)})),l._UZ(1,"img",11),l.ALo(2,"tuiFlag"),l.TgZ(3,"span",12),l._uU(4),l.qZA(),l.TgZ(5,"span",13),l._uU(6),l.ALo(7,"tuiMapper"),l.qZA(),l.qZA()}if(2&t){const t=e.$implicit,n=l.oxw(2).ngIf,i=l.oxw();l.xp6(1),l.Q6J("src",l.lcZ(2,3,t),l.LSH),l.xp6(3),l.hij(" ",n[t]," "),l.xp6(2),l.hij(" ",l.xi3(7,5,t,i.isoToCountryCodeMapper)," ")}}function mr(t,e){if(1&t&&(l.TgZ(0,"tui-data-list"),l.YNc(1,gr,8,8,"button",9),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("ngForOf",t.countries)}}function fr(t,e){if(1&t&&(l._UZ(0,"img",14),l.ALo(1,"tuiFlag")),2&t){const t=l.oxw().ngIf,e=l.oxw();l.Q6J("alt",t[e.countryIsoCode])("src",l.lcZ(1,2,e.countryIsoCode),l.LSH)}}function vr(t,e){1&t&&l.GkF(0)}function br(t,e){if(1&t&&(l.TgZ(0,"div",15),l.YNc(1,vr,1,0,"ng-container",16),l.qZA()),2&t){const t=l.oxw(2);l.xp6(1),l.Q6J("polymorpheusOutlet",t.arrow)}}function yr(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"tui-hosted-dropdown",1),l.NdJ("openChange",(function(e){return l.CHM(t),l.oxw().open=e}))("tuiActiveZoneChange",(function(e){return l.CHM(t),l.oxw().onActiveZone(e)})),l.TgZ(1,"div",2),l._UZ(2,"tui-primitive-textfield",3),l.TgZ(3,"tui-input-phone",4),l.NdJ("ngModelChange",(function(e){return l.CHM(t),l.oxw().value=e})),l.Hsn(4),l._UZ(5,"input",5),l.qZA(),l.qZA(),l.YNc(6,mr,2,1,"ng-template",null,6,l.W1O),l.YNc(8,fr,2,4,"ng-template",null,7,l.W1O),l.YNc(10,br,2,1,"ng-template",null,8,l.W1O),l.qZA()}if(2&t){const t=l.MAs(7),e=l.MAs(9),n=l.MAs(11),i=l.oxw();l.Q6J("canOpen",!i.readOnly)("content",t)("open",i.open),l.xp6(2),l.Q6J("disabled",i.disabled)("editable",!1)("focusable",i.focusable)("pseudoFocus",i.open||null)("readOnly",i.readOnly)("tuiTextfieldCustomContent",e)("tuiTextfieldIcon",n)("tuiTextfieldLabelOutside",!0),l.xp6(1),l.Q6J("countryCode",i.inputPhoneCountryCode)("disabled",i.disabled)("focusable",i.focusable)("phoneMaskAfterCountryCode",i.phoneMaskAfterCountryCode)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("pseudoInvalid",i.computedInvalid)("readOnly",i.readOnly)("ngModel",i.value)}}class _r extends o.M$T{constructor(t,e,n,i,r,o,s,a){super(t,e),this.countriesNames$=n,this.countriesMasks=i,this.options=r,this.flagPipe=o,this.extractCountryCodePipe=s,this.textfieldSize=a,this.countries=this.options.countries,this.countryIsoCodeChange=new l.vpe,this.countryIsoCode=this.options.countryIsoCode,this.open=!1,this.arrow=h.SX,this.isoToCountryCodeMapper=t=>(0,he.zm)(this.countriesMasks,t)}set isoCode(t){var e;this.countryIsoCode!==t&&(null===(e=this.inputPhoneComponent)||void 0===e||e.writeValue(this.value),this.countryIsoCode=t)}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.inputPhoneComponent&&!this.computedDisabled?this.inputPhoneComponent.nativeFocusableElement:null}get focused(){return!!this.primitiveTextfield&&this.primitiveTextfield.focused||!!this.inputPhoneComponent&&this.inputPhoneComponent.focused}get inputPhoneCountryCode(){return(0,he.zm)(this.countriesMasks,this.countryIsoCode)}get phoneMaskAfterCountryCode(){const t=this.inputPhoneCountryCode;return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode],t)}get countryFlagPath(){return this.getFlagPath(this.countryIsoCode)}onPaste(t){let e=function(t){var e;return"dataTransfer"in t?(null===(e=t.dataTransfer)||void 0===e?void 0:e.getData("text/plain"))||"":(0,o.Nnc)(t)}(t).replace(s.R3j,"");const n=this.extractCountryCodePipe.transform(e,this.countries);n?(n===Fi.Xi.RU&&(e=e.replace(/^8/,"7")),this.updateCountryIsoCode(n),this.value=`${o.kUW}${e}`):this.value=`${this.inputPhoneCountryCode}${e}`.replace(s.AJd,"").slice(0,(0,he.fn)(this.countriesMasks,this.countryIsoCode))}getFlagPath(t){return this.flagPipe.transform(t)}onItemClick(t){this.open=!1,this.updateCountryIsoCode(t),this.cdr.detectChanges();const e=(0,he.fn)(this.countriesMasks,t);this.value.length>e&&(this.value=this.value.slice(0,e)),this.nativeFocusableElement&&this.nativeFocusableElement.focus()}setDisabledState(){super.setDisabledState(),this.close()}isoToCountryCode(t){return(0,he.zm)(this.countriesMasks,t)}onModelChange(t){this.value=t}onActiveZone(t){this.updateFocused(t)}getFallbackValue(){return""}calculateMaskAfterCountryCode(t,e){return t.replace(e,"").trim()}close(){this.open=!1}updateCountryIsoCode(t){this.countryIsoCode=t,this.countryIsoCodeChange.emit(t)}}_r.ɵfac=function(t){return new(t||_r)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.Hw),l.Y36(nt.iN),l.Y36(sr),l.Y36(s.TGm),l.Y36(ir),l.Y36(s.kId))},_r.ɵcmp=l.Xpm({type:_r,selectors:[["tui-input-phone-international"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Di,5),l.Gf(s.ycg,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.inputPhoneComponent=t.first),l.iGM(t=l.CRH())&&(e.primitiveTextfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("paste.capture.prevent.stop",(function(t){return e.onPaste(t)}))("drop.capture.prevent.stop",(function(t){return e.onPaste(t)})),2&t&&l.uIk("data-size",e.size)},inputs:{isoCode:["countryIsoCode","isoCode"],countries:"countries"},outputs:{countryIsoCodeChange:"countryIsoCodeChange"},features:[l._Bn([(0,o.FTc)(_r),(0,o.wBO)(_r),s.TGm,ir],[Wt.yn]),l.qOj],ngContentSelectors:["*"],decls:2,vars:3,consts:[["class","t-hosted-dropdown",3,"canOpen","content","open","openChange","tuiActiveZoneChange",4,"ngIf"],[1,"t-hosted-dropdown",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiGroup",""],["tuiHintContent","","tuiTextfieldPostfix","","tuiTextfieldPrefix","",1,"t-country-select","tui-group__auto-width-item",3,"disabled","editable","focusable","pseudoFocus","readOnly","tuiTextfieldCustomContent","tuiTextfieldIcon","tuiTextfieldLabelOutside"],[1,"t-input-phone","tui-group__auto-width-item",3,"countryCode","disabled","focusable","phoneMaskAfterCountryCode","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","ngModel","ngModelChange"],["autocomplete","new-password","tuiTextfield",""],["dropdown",""],["countryValueContent",""],["icon",""],["tuiOption","",3,"click",4,"ngFor","ngForOf"],["tuiOption","",3,"click"],["alt","",1,"t-country-item-flag",3,"src"],[1,"t-country-item-name"],[1,"t-country-item-code"],[1,"t-flag",3,"alt","src"],["appearance","icon","tuiWrapper",""],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,yr,12,20,"tui-hosted-dropdown",0),l.ALo(1,"async")),2&t&&l.Q6J("ngIf",l.lcZ(1,1,e.countriesNames$))},directives:[r.O5,Kt.o,Xt.e,Le.g,te.y,ee.B,ar.bZ,lr.T,ur.A,cr.B,ne.A,dr.x,Di,Li,qt.JJ,qt.On,hr.M,wt.q,r.sg,xt.v,Gt.o,a.Li],pipes:[r.Ov,pr.T,yt.c],styles:["[_nghost-%COMP%]{display:block}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted-dropdown[_ngcontent-%COMP%]{display:block}.t-country-select[_ngcontent-%COMP%]{width:5.625rem}.t-country-select[_ngcontent-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}.t-country-select._readonly[_ngcontent-%COMP%] input{cursor:default}.t-country-select[data-size=m][_ngcontent-%COMP%]{width:5.5rem}.t-country-select[data-size=s][_ngcontent-%COMP%]{width:2rem}.t-country-select[data-size=s][_ngcontent-%COMP%] .t-flag[_ngcontent-%COMP%]{margin-left:-1rem}.t-arrow-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;pointer-events:auto}._readonly[_nghost-%COMP%] .t-arrow-icon[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-arrow-icon[_ngcontent-%COMP%]{pointer-events:none}.t-arrow-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-input-phone[_ngcontent-%COMP%]{flex:1}.t-flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem;margin-left:-.5rem}.t-country-item-flag[_ngcontent-%COMP%]{width:1.75rem;height:1.25rem}.t-country-item-name[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:auto}.t-country-item-code[_ngcontent-%COMP%]{color:var(--tui-text-02);margin-right:.25rem}"],changeDetection:0}),(0,p.gn)([o.UMq],_r.prototype,"calculateMaskAfterCountryCode",null);var Cr=n(41699);const wr=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"]);let xr=(()=>{class t{constructor(t,e,n){this.readonly=!0;const i=(0,o.mLY)(t.nativeElement,"touchstart",{passive:!1}),r=(0,o.mLY)(e,"touchmove",{passive:!1}),s=(0,o.mLY)(e,"touchend",{passive:!0}),a=(0,U.T)(i.pipe((0,q.b)((t=>this.preventEvent(t))),(0,N.U)(o.YeN)),s.pipe((0,N.U)(o.IyD)));(0,Ft.aj)([r,a]).pipe((0,F.h)((([t,e])=>e)),(0,B.R)(n)).subscribe((([t])=>this.preventEvent(t)))}preventEvent(t){t.cancelable&&(0,o.LzW)(this.readonly)&&t.preventDefault()}preventKeyboardInteraction(t){wr.has(t.key)&&this.preventEvent(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36(r.K0),l.Y36(o.a31,2))},t.ɵdir=l.lG2({type:t,selectors:[["input","tuiSlider","","readonly",""]],hostBindings:function(t,e){1&t&&l.NdJ("mousedown",(function(t){return e.preventEvent(t)}))("keydown",(function(t){return e.preventKeyboardInteraction(t)}))},inputs:{readonly:"readonly"},features:[l._Bn([o.a31])]}),t})();n(52707);var Mr=n(5657);let Or=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();var kr=n(76508);class Sr extends o.M$T{constructor(t,e,n){super(t,e),this.el=n,this.min=0,this.max=100,this.step=1,this.size="m",this.segments=1,this.keySteps=null,this.slidersRefs=o.Mmc,this.lastActiveThumb="right"}get nativeFocusableElement(){const[t,e]=this.slidersRefs;return!this.computedDisabled&&this.focusable&&t&&e?100===this.right?e.nativeElement:t.nativeElement:null}get focused(){return(0,o.zb4)(this.el.nativeElement)}get fractionStep(){return this.step/(this.max-this.min)}get computedKeySteps(){return this.computePureKeySteps(this.keySteps,this.min,this.max)}get segmentWidthRatio(){return 1/this.segments}get left(){return this.getPercentageFromValue(this.value[0])}get right(){return 100-this.getPercentageFromValue(this.value[1])}onFocused(t){this.updateFocused(t)}changeByStep(t,e){const[n,i]=this.slidersRefs,r=n.nativeElement,o=i.nativeElement,s=e===this.el.nativeElement?"right"===this.lastActiveThumb:e===o,a=s?o:r,l=s?this.value[1]:this.value[0],u=this.getPercentageFromValue(l)/100+t*this.fractionStep;this.processValue(this.getValueFromFraction(u),s),a&&a.focus()}processValue(t,e){e?this.updateEnd(t):this.updateStart(t),this.lastActiveThumb=e?"right":"left"}getValueFromFraction(t){const e=(0,o.Kiv)((0,o.Mz4)(t,this.fractionStep),0,1);return(0,he.hm)(100*e,this.computedKeySteps)}getPercentageFromValue(t){return(0,he.ox)(t,this.computedKeySteps)}getFallbackValue(){return[0,0]}computePureKeySteps(t,e,n){return t||[[0,e],[100,n]]}updateStart(t){this.value=[Math.min(t,this.value[1]),this.value[1]]}updateEnd(t){this.value=[this.value[0],Math.max(t,this.value[0])]}}Sr.ɵfac=function(t){return new(t||Sr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(l.SBq))},Sr.ɵcmp=l.Xpm({type:Sr,selectors:[["tui-range"]],viewQuery:function(t,e){if(1&t&&l.Gf(Mr.i,5,l.SBq),2&t){let t;l.iGM(t=l.CRH())&&(e.slidersRefs=t)}},hostVars:7,hostBindings:function(t,e){1&t&&l.NdJ("focusin",(function(){return e.onFocused(!0)}))("focusout",(function(){return e.onFocused(!1)}))("keydown.arrowUp.prevent",(function(t){return e.changeByStep(1,t.target)}))("keydown.arrowRight.prevent",(function(t){return e.changeByStep(1,t.target)}))("keydown.arrowLeft.prevent",(function(t){return e.changeByStep(-1,t.target)}))("keydown.arrowDown.prevent",(function(t){return e.changeByStep(-1,t.target)})),2&t&&(l.uIk("tabindex",-1)("aria-disabled",e.computedDisabled)("data-size",e.size),l.Udp("--left",e.left,"%")("--right",e.right,"%"))},inputs:{min:"min",max:"max",step:"step",size:"size",segments:"segments",keySteps:"keySteps"},features:[l.qOj],decls:3,vars:18,consts:[[1,"t-track"],["automation-id","tui-range__left","readonly","","step","any","tuiSlider","","type","range",1,"t-thumb",3,"disabled","keySteps","max","min","ngModel","size","tuiFocusable"],["automation-id","tui-range__right","readonly","","step","any","tuiSlider","","type","range",1,"t-thumb",3,"disabled","keySteps","max","min","ngModel","size","tuiFocusable"]],template:function(t,e){1&t&&(l.TgZ(0,"div",0),l._UZ(1,"input",1),l._UZ(2,"input",2),l.qZA()),2&t&&(l.Udp("--bg-size-ratio",1-e.segmentWidthRatio)("--segment-width",100*e.segmentWidthRatio,"%"),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("keySteps",e.computedKeySteps)("max",e.max)("min",e.min)("ngModel",e.value[0])("size",e.size)("tuiFocusable",e.focusable),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("keySteps",e.computedKeySteps)("max",e.max)("min",e.min)("ngModel",e.value[1])("size",e.size)("tuiFocusable",e.focusable))},directives:[xr,Cr.t,Mr.i,qt.eT,qt.Fj,qt.JJ,qt.On,at.t],styles:['[_nghost-%COMP%]{position:relative;display:block;height:.125rem;border-radius:var(--tui-radius-m);background:var(--tui-base-03);cursor:pointer;outline:none;margin:.4375rem 0;touch-action:pan-x}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:after{content:"";position:absolute;top:-.4375rem;bottom:-.4375rem;width:100%}._disabled[_nghost-%COMP%]{opacity:var(--tui-disabled-opacity);cursor:auto}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]{position:relative;margin:0 .25rem;height:100%}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:var(--left);right:var(--right);height:100%;background:var(--tui-primary);margin:0 calc(-.5rem / 2 - 1px)}[data-size=s][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";left:.125rem;right:.375rem;background-image:repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]{position:relative;margin:0 .375rem;height:100%}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:var(--left);right:var(--right);height:100%;background:var(--tui-primary);margin:0 calc(-.75rem / 2 - 1px)}[data-size=m][_nghost-%COMP%] .t-track[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;bottom:0;right:0;content:"";left:.25rem;right:.5rem;background-image:repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}.t-thumb[_ngcontent-%COMP%]{pointer-events:none;position:absolute;top:.0625rem;left:0;right:0;z-index:1;transform:translateY(-50%);margin:0}.t-thumb[_ngcontent-%COMP%]::-webkit-slider-thumb{pointer-events:all}.t-thumb[_ngcontent-%COMP%]::-moz-range-thumb{pointer-events:all}input[type=range].t-thumb[_ngcontent-%COMP%]::-webkit-slider-runnable-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-moz-range-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-moz-range-progress{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-ms-track{background:transparent}input[type=range].t-thumb[_ngcontent-%COMP%]::-ms-fill-lower{background:transparent}.t-thumb[_ngcontent-%COMP%]:last-of-type{--tui-slider-thumb-transform: translateX(50%) translateX(1px)}.t-thumb[_ngcontent-%COMP%]:first-of-type{--tui-slider-thumb-transform: translateX(-50%) translateX(-1px)}._disabled[_nghost-%COMP%] .t-thumb[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),(0,p.gn)([o.UMq],Sr.prototype,"computePureKeySteps",null);var Pr=n(79196);let Tr=(()=>{class t{constructor(t,e,n,i){let r;this.doc=t,this.el=e,this.range=n,this.pointerDown$=(0,U.T)((0,o.mLY)(this.el.nativeElement,"touchstart",{passive:!0}).pipe((0,F.h)((({touches:t})=>1===t.length)),(0,N.U)((({touches:t})=>t[0]))),(0,o.mLY)(this.el.nativeElement,"mousedown",{passive:!0})),this.pointerMove$=(0,U.T)((0,o.mLY)(this.doc,"touchmove").pipe((0,F.h)((({touches:t})=>1===t.length)),(0,N.U)((({touches:t})=>t[0]))),(0,o.mLY)(this.doc,"mousemove")),this.pointerUp$=(0,U.T)((0,o.mLY)(this.doc,"touchend",{passive:!0}),(0,o.mLY)(this.doc,"mouseup",{passive:!0})),this.activeThumbChange=new l.vpe,this.pointerDown$.pipe((0,q.b)((({clientX:t,target:n})=>{r=this.detectActiveThumb(t,n),this.activeThumbChange.emit(r),this.range.focusable&&e.nativeElement.focus()})),(0,L.w)((t=>this.pointerMove$.pipe((0,Re.O)(t)))),(0,N.U)((({clientX:t})=>this.getFractionFromEvents(t))),(0,B.R)(this.pointerUp$),(0,Pr.r)(),(0,B.R)(i)).subscribe((t=>{const e=this.range.getValueFromFraction(t);this.range.processValue(e,"right"===r)}))}getFractionFromEvents(t){const e=this.el.nativeElement.getBoundingClientRect(),n=t-e.left,i=e.width;return(0,o.Kiv)((0,o.FGw)(n/i,vt.bF),0,1)}detectActiveThumb(t,e){const[n,i]=this.range.slidersRefs;switch(e){case n.nativeElement:return"left";case i.nativeElement:return"right";default:return this.findNearestActiveThumb(t)}}findNearestActiveThumb(t){const e=this.getFractionFromEvents(t),n=100*e-this.range.left,i=100*e-100+this.range.right;return Math.abs(n)>Math.abs(i)||i>0||0===this.range.left&&100===this.range.right?"right":"left"}}return t.ɵfac=function(e){return new(e||t)(l.Y36(r.K0),l.Y36(l.SBq),l.Y36(Sr),l.Y36(o.a31,2))},t.ɵdir=l.lG2({type:t,selectors:[["tui-range"]],outputs:{activeThumbChange:"activeThumbChange"},features:[l._Bn([o.a31])]}),t})();var Ar=n(47307);function Er(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}const Ir=function(t){return{$implicit:t}};function Dr(t,e){if(1&t&&(l.TgZ(0,"div",5),l.YNc(1,Er,2,1,"ng-container",6),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.leftValueContent)("polymorpheusOutletContext",l.VKq(2,Ir,t.value[0]))}}function Lr(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function Fr(t,e){if(1&t&&(l.TgZ(0,"div",5),l.YNc(1,Lr,2,1,"ng-container",6),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.rightValueContent)("polymorpheusOutletContext",l.VKq(2,Ir,t.value[1]))}}class Nr extends o.M$T{constructor(t,e,n,i,r){super(t,e),this.isMobile=n,this.el=i,this.controller=r,this.inputNumberRefs=o.Mmc,this.rangeRef=null,this.min=0,this.max=100,this.quantum=1,this.steps=0,this.segments=1,this.keySteps=null,this.pluralize=null,this.leftTextfieldValue=this.safeCurrentValue[0],this.rightTextfieldValue=this.safeCurrentValue[1],this.lastActiveSide="left"}get leftFocusableElement(){var t;return(null===(t=this.inputNumberRefs.first)||void 0===t?void 0:t.nativeFocusableElement)||null}get rightFocusableElement(){var t;return(null===(t=this.inputNumberRefs.last)||void 0===t?void 0:t.nativeFocusableElement)||null}get nativeFocusableElement(){return this.disabled?null:this.leftFocusableElement||this.rightFocusableElement}get focused(){return(0,o.zb4)(this.el.nativeElement)}get appearance(){return this.controller.appearance}get showLeftValueContent(){var t;return Boolean(this.leftValueContent&&!(0,o.V8W)(this.leftFocusableElement)&&!((null===(t=this.rangeRef)||void 0===t?void 0:t.focused)&&"left"===this.lastActiveSide))}get showRightValueContent(){var t;return Boolean(this.rightValueContent&&!(0,o.V8W)(this.rightFocusableElement)&&!((null===(t=this.rangeRef)||void 0===t?void 0:t.focused)&&"right"===this.lastActiveSide))}get precision(){return(0,s.LfO)(this.quantum).length}get decimal(){return this.precision?"not-zero":"never"}get computedSteps(){return this.steps||(this.max-this.min)/this.quantum}get step(){return(this.max-this.min)/this.computedSteps}computeKeySteps(t,e,n){return t||[[0,e],[100,n]]}onActiveZone(t){this.updateFocused(t)}onTextInputFocused(t){t||this.updateTextfieldValues(this.value)}changeByStep(t,[e,n]){if(this.readOnly)return;t.preventDefault();const i=this.valueGuard([this.value[0]+e*this.step,this.value[1]+n*this.step]);i[0]===this.value[0]&&i[1]===this.value[1]||this.onExternalValueUpdate(i)}onInputLeft(t){this.safelyUpdateValue([null!=t?t:this.safeCurrentValue[0],this.value[1]])}onInputRight(t){this.safelyUpdateValue([this.value[0],null!=t?t:this.safeCurrentValue[1]])}onExternalValueUpdate(t){this.safelyUpdateValue(t),this.updateTextfieldValues(this.value)}focusToTextInput(){const t="left"===this.lastActiveSide?this.leftFocusableElement:this.rightFocusableElement;!this.isMobile&&t&&t.focus()}onActiveThumbChange(t){this.lastActiveSide=t}writeValue(t){super.writeValue(t),this.updateTextfieldValues(this.value)}getFallbackValue(){return[0,0]}safelyUpdateValue(t){this.value=this.valueGuard(t)}valueGuard([t,e]){const n=this.calibrate(t),i=this.calibrate(e);return[Math.min(n,this.value[1]),Math.max(i,this.value[0])]}calibrate(t){const e=(0,o.FGw)(Math.round(t/this.quantum)*this.quantum,vt.bF);return(0,o.Kiv)(e,this.min,this.max)}updateTextfieldValues([t,e]){this.leftTextfieldValue=t,this.rightTextfieldValue=e}}function zr(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}Nr.ɵfac=function(t){return new(t||Nr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(o.fLQ),l.Y36(l.SBq),l.Y36(s.CsI))},Nr.ɵcmp=l.Xpm({type:Nr,selectors:[["tui-input-range"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Sr,5),l.Gf(Ke.q,5)),2&t){let t;l.iGM(t=l.CRH())&&(e.rangeRef=t.first),l.iGM(t=l.CRH())&&(e.inputNumberRefs=t)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.controller.size),l.ekj("_label-outside",e.controller.labelOutside))},inputs:{min:"min",max:"max",quantum:"quantum",steps:"steps",segments:"segments",keySteps:"keySteps",leftValueContent:"leftValueContent",rightValueContent:"rightValueContent",pluralize:"pluralize"},features:[l._Bn([(0,o.FTc)(Nr),(0,o.wBO)(Nr),s.Y0]),l.qOj],ngContentSelectors:["*"],decls:9,vars:38,consts:[["tuiWrapper","",1,"t-wrapper",3,"appearance","disabled","focus","hover","invalid","readOnly","tuiActiveZoneChange"],["automation-id","tui-input-range__left-input","tuiTextfieldAppearance","none",1,"t-left",3,"decimal","disabled","max","min","precision","readOnly","tuiTextfieldPostfix","ngModel","ngModelChange","focusedChange","keydown.arrowDown","keydown.arrowUp"],["ngProjectAs","tuiContent",5,["tuiContent"],4,"ngIf"],["automation-id","tui-input-range__right-input","tuiTextfieldAppearance","none",1,"t-right",3,"decimal","disabled","max","min","precision","readOnly","tuiTextfieldPostfix","ngModel","ngModelChange","focusedChange","keydown.arrowDown","keydown.arrowUp"],[1,"t-range",3,"disabled","focusable","keySteps","max","min","ngModel","segments","step","activeThumbChange","ngModelChange","tuiPressedChange"],["ngProjectAs","tuiContent",5,["tuiContent"]],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0),l.NdJ("tuiActiveZoneChange",(function(t){return e.onActiveZone(t)})),l.TgZ(1,"tui-input-number",1),l.NdJ("ngModelChange",(function(t){return e.leftTextfieldValue=t}))("focusedChange",(function(t){return e.onTextInputFocused(t)}))("keydown.arrowDown",(function(t){return e.changeByStep(t,[-1,0])}))("keydown.arrowUp",(function(t){return e.changeByStep(t,[1,0])}))("ngModelChange",(function(t){return e.onInputLeft(t)})),l.ALo(2,"i18nPlural"),l.Hsn(3),l.YNc(4,Dr,2,4,"div",2),l.qZA(),l.TgZ(5,"tui-input-number",3),l.NdJ("ngModelChange",(function(t){return e.rightTextfieldValue=t}))("focusedChange",(function(t){return e.onTextInputFocused(t)}))("keydown.arrowDown",(function(t){return e.changeByStep(t,[0,-1])}))("keydown.arrowUp",(function(t){return e.changeByStep(t,[0,1])}))("ngModelChange",(function(t){return e.onInputRight(t)})),l.ALo(6,"i18nPlural"),l.YNc(7,Fr,2,4,"div",2),l.qZA(),l.TgZ(8,"tui-range",4),l.NdJ("activeThumbChange",(function(t){return e.onActiveThumbChange(t)}))("ngModelChange",(function(t){return e.onExternalValueUpdate(t)}))("tuiPressedChange",(function(){return e.focusToTextInput()})),l.qZA(),l.qZA()),2&t&&(l.Q6J("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),l.xp6(1),l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.value[1])("min",e.min)("precision",e.precision)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.pluralize&&!e.showLeftValueContent?l.xi3(2,32,e.value[0],e.pluralize):"")("ngModel",e.leftTextfieldValue),l.xp6(3),l.Q6J("ngIf",e.showLeftValueContent),l.xp6(1),l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.max)("min",e.value[0])("precision",e.precision)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.pluralize&&!e.showRightValueContent?l.xi3(6,35,e.value[1],e.pluralize):"")("ngModel",e.rightTextfieldValue),l.xp6(2),l.Q6J("ngIf",e.showRightValueContent),l.xp6(1),l.Q6J("disabled",e.readOnly||e.disabled)("focusable",!1)("keySteps",e.computeKeySteps(e.keySteps,e.min,e.max))("max",e.max)("min",e.min)("ngModel",e.value)("segments",e.segments)("step",e.step))},directives:[Gt.o,Xt.e,Ke.q,Xe.g,Ar.q,lr.T,qt.JJ,qt.On,r.O5,Sr,Tr,ct.n,a.Li],pipes:[r.Gx],styles:[".t-wrapper[_ngcontent-%COMP%]{position:relative}.t-left[_ngcontent-%COMP%]{width:100%}.t-right[_ngcontent-%COMP%]{position:absolute;right:0;top:0;display:flex;width:50%;height:100%;text-align:right}[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m)}.t-range[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;z-index:1;margin:-.125rem 0 0;background:transparent}"],changeDetection:0}),(0,p.gn)([o.UMq],Nr.prototype,"computeKeySteps",null);const Rr=function(t){return{$implicit:t}};function Br(t,e){if(1&t&&(l.TgZ(0,"div",3),l.YNc(1,zr,2,1,"ng-container",4),l.qZA()),2&t){const t=l.oxw();l.xp6(1),l.Q6J("polymorpheusOutlet",t.valueContent)("polymorpheusOutletContext",l.VKq(2,Rr,t.value))}}class Hr extends o.M$T{constructor(t,e,n){super(t,e),this.controller=n,this.min=0,this.max=100,this.quantum=1,this.steps=0,this.segments=1,this.keySteps=null,this.textfieldPrefix="",this.textfieldPostfix="",this.textfieldValue=this.safeCurrentValue}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get nativeFocusableElement(){var t;return!(null===(t=this.inputNumberRef)||void 0===t?void 0:t.nativeFocusableElement)||this.computedDisabled?null:this.inputNumberRef.nativeFocusableElement}get focused(){var t;return(0,o.V8W)(this.nativeFocusableElement)||(0,o.V8W)((null===(t=this.sliderRef)||void 0===t?void 0:t.nativeElement)||null)}get computedSteps(){return this.steps||(this.max-this.min)/this.quantum}get precision(){return(0,s.LfO)(this.quantum).length}get decimal(){return this.precision?"not-zero":"never"}get showValueContent(){return Boolean(this.valueContent&&!this.focused)}get step(){return(this.max-this.min)/this.computedSteps}computeKeySteps(t,e,n){return t||[[0,e],[100,n]]}focusTextInput(){var t;const e=null===(t=this.inputNumberRef)||void 0===t?void 0:t.nativeFocusableElement;e&&e.focus()}safelyUpdateValue(t){this.value=this.valueGuard(null!=t?t:this.safeCurrentValue)}onVerticalArrowKeyDown(t){if(this.readOnly||!this.step)return;const e=this.value+t*this.step;e!==this.value&&(this.safelyUpdateValue(e),this.textfieldValue=this.value)}onSliderChange(t){this.safelyUpdateValue(t),this.textfieldValue=this.value}onFocused(t){const{value:e,textfieldValue:n}=this;t||n===e||(this.textfieldValue=e),this.updateFocused(t)}writeValue(t){super.writeValue(t),this.textfieldValue=this.value}getFallbackValue(){return 0}valueGuard(t){const e=(0,o.FGw)(Math.round(t/this.quantum)*this.quantum,vt.bF);return(0,o.Kiv)(e,this.min,this.max)}}Hr.ɵfac=function(t){return new(t||Hr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(s.CsI))},Hr.ɵcmp=l.Xpm({type:Hr,selectors:[["tui-input-slider"]],viewQuery:function(t,e){if(1&t&&(l.Gf(Ke.q,5),l.Gf(Mr.i,5,l.SBq)),2&t){let t;l.iGM(t=l.CRH())&&(e.inputNumberRef=t.first),l.iGM(t=l.CRH())&&(e.sliderRef=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(l.uIk("data-size",e.controller.size),l.ekj("_label-outside",e.controller.labelOutside))},inputs:{min:"min",max:"max",quantum:"quantum",steps:"steps",segments:"segments",keySteps:"keySteps",valueContent:"valueContent",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"]},features:[l._Bn([(0,o.FTc)(Hr),(0,o.wBO)(Hr),(0,kr.OF)({trackColor:"transparent"}),s.Y0]),l.qOj],ngContentSelectors:["*"],decls:4,vars:20,consts:[[3,"decimal","disabled","max","min","precision","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","tuiTextfieldPostfix","tuiTextfieldPrefix","ngModel","ngModelChange","focusedChange","keydown.arrowDown.prevent","keydown.arrowUp.prevent"],["automation-id","tui-input-slider__value-content","ngProjectAs","tuiContent",5,["tuiContent"],4,"ngIf"],["tuiSlider","","type","range",3,"disabled","keySteps","max","ngModel","segments","tuiFocusable","click","ngModelChange"],["automation-id","tui-input-slider__value-content","ngProjectAs","tuiContent",5,["tuiContent"]],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"tui-input-number",0),l.NdJ("ngModelChange",(function(t){return e.textfieldValue=t}))("focusedChange",(function(t){return e.onFocused(t)}))("keydown.arrowDown.prevent",(function(){return e.onVerticalArrowKeyDown(-1)}))("keydown.arrowUp.prevent",(function(){return e.onVerticalArrowKeyDown(1)}))("ngModelChange",(function(t){return e.safelyUpdateValue(t)})),l.Hsn(1),l.YNc(2,Br,2,4,"div",1),l.qZA(),l.TgZ(3,"input",2),l.NdJ("click",(function(){return e.focusTextInput()}))("ngModelChange",(function(t){return e.onSliderChange(t)})),l.qZA()),2&t&&(l.Q6J("decimal",e.decimal)("disabled",e.computedDisabled)("max",e.max)("min",e.min)("precision",e.precision)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.pseudoInvalid)("readOnly",e.readOnly)("tuiTextfieldPostfix",e.showValueContent?"":e.postfix)("tuiTextfieldPrefix",e.showValueContent?"":e.prefix)("ngModel",e.textfieldValue),l.xp6(2),l.Q6J("ngIf",e.showValueContent),l.xp6(1),l.Q6J("disabled",e.readOnly||e.computedDisabled)("keySteps",e.computeKeySteps(e.keySteps,e.min,e.max))("max",e.computedSteps)("ngModel",e.value)("segments",e.segments)("tuiFocusable",!1))},directives:[Ke.q,Xe.g,lr.T,ur.A,qt.JJ,qt.On,r.O5,Cr.t,Mr.i,qt.eT,qt.Fj,at.t,a.Li],styles:["[_nghost-%COMP%]{position:relative;display:block;height:-webkit-max-content;height:max-content;isolation:isolate}input[type=range][_ngcontent-%COMP%]{position:absolute;top:100%;left:calc(var(--tui-radius-m) / 2);right:0;width:calc(100% - calc(var(--tui-radius-m) / 2));box-sizing:border-box;height:1rem;margin:-.5625rem 0 0;border-top-left-radius:0;border-bottom-left-radius:calc(var(--tui-radius-m) * 5) calc(var(--tui-radius-m) * 1.5)}"],changeDetection:0}),(0,p.gn)([o.UMq],Hr.prototype,"computeKeySteps",null);const Vr={icon:({$implicit:t})=>"s"===t?"tuiIconClock":"tuiIconClockLarge",mode:"HH:MM",postfix:"",maxValues:vt.bM,itemSize:"m",nativePicker:!1},Yr=(0,o.JN4)(Vr),jr=["tuiTime",""];function Zr(t,e){if(1&t&&l._UZ(0,"option",3),2&t){const t=e.$implicit;l.s9C("value",t)}}function $r(t,e){if(1&t&&(l.TgZ(0,"datalist",1),l.YNc(1,Zr,1,1,"option",2),l.qZA()),2&t){const t=l.oxw();l.Q6J("id",t.autoIdString),l.xp6(1),l.Q6J("ngForOf",t.items)}}let Ur=(()=>{class t{constructor(t,e){this.host=t,this.autoIdString=e.generate()}get items(){return this.host.items.map((t=>t.toString(this.host.mode)))}get value(){return this.host.value.length===this.host.mode.length?this.host.value:""}get step(){switch(this.host.mode){case"HH:MM:SS":return 1;case"HH:MM:SS.MSS":return.001;default:return 60}}onChange(t){this.host.onValueChange(t)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.S0o),l.Y36(o.llV))},t.ɵcmp=l.Xpm({type:t,selectors:[["input","tuiTime",""]],hostAttrs:["type","time"],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("change.stop",(function(t){return e.onChange(t.target.value)}))("click.stop.silent",(function(){return 0}))("mousedown.stop.silent",(function(){return 0})),2&t&&(l.Ikx("tabIndex",-1)("value",e.value)("step",e.step),l.uIk("list",e.autoIdString))},attrs:jr,decls:1,vars:1,consts:[[3,"id",4,"ngIf"],[3,"id"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&l.YNc(0,$r,2,2,"datalist",0),2&t&&l.Q6J("ngIf",e.items.length)},directives:[r.O5,r.sg],styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}"],changeDetection:0}),t})();function Gr(t,e){if(1&t&&(l.TgZ(0,"button",7),l._uU(1),l.qZA()),2&t){const t=e.$implicit,n=l.oxw(2);l.Q6J("disabled",n.disabledItemHandler(t))("value",t),l.xp6(1),l.hij(" ",t," ")}}function qr(t,e){if(1&t&&(l.TgZ(0,"tui-data-list",5),l.YNc(1,Gr,2,3,"button",6),l.qZA()),2&t){const t=l.oxw();l.Q6J("size",t.itemSize),l.xp6(1),l.Q6J("ngForOf",t.filtered)}}function Jr(t,e){if(1&t&&l._UZ(0,"tui-svg",10),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t)}}function Qr(t,e){1&t&&l._UZ(0,"input",11)}const Wr=function(t){return{$implicit:t}};function Kr(t,e){if(1&t&&(l.YNc(0,Jr,1,1,"tui-svg",8),l.YNc(1,Qr,1,0,"input",9)),2&t){const t=l.oxw();l.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",l.VKq(3,Wr,t.size)),l.xp6(1),l.Q6J("ngIf",t.showNativePicker)}}class Xr extends o.F9l{constructor(t,e,n,i,r,s,a){super(t,e),this.timeTexts$=n,this.options=i,this.isMobile=r,this.isIos=s,this.textfieldSize=a,this.disabledItemHandler=o.IyD,this.items=[],this.itemSize=this.options.itemSize,this.strict=!1,this.mode=this.options.mode,this.postfix=this.options.postfix,this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){var t,e;return null!==(e=null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)&&void 0!==e?e:null}get focused(){return(0,o.V8W)(this.nativeFocusableElement)}get canOpen(){return this.interactive&&!!this.filtered.length}get filtered(){return this.filter(this.items,this.mode,this.computedSearch)}get showNativePicker(){return this.nativePicker&&(!this.isIos||"HH:MM"===this.mode&&!this.items.length)}get nativeDatalist(){return this.nativePicker&&!this.isIos}get maskOptions(){return this.calculateMask(this.mode)}get computedValue(){return this.value?this.value.toString(this.mode):this.nativeValue}get computedSearch(){return this.computedValue.length!==this.mode.length?this.computedValue:""}get innerPseudoFocused(){return!1!==this.pseudoFocus&&(!!(this.open&&this.canOpen||this.computedFocused)||null)}get icon(){return this.options.icon}get nativeValue(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.value)||""}set nativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}getFiller$(t){return this.timeTexts$.pipe((0,N.U)((e=>e[t])))}onClick(){this.open=!this.open}onValueChange(t){this.open=!!this.items.length,this.control&&this.control.updateValueAndValidity({emitEvent:!1});const e=this.getMatch(t);if(void 0!==e)return void(this.value=e);if(t.length!==this.mode.length)return void(this.value=null);const n=o.qDo.fromString(t);this.value=this.strict?this.findNearestTimeFromItems(n):n}onFocused(t){this.updateFocused(t),t||null!==this.value||""===this.nativeValue||"HH:MM"===this.mode||(this.value=o.qDo.fromString(this.nativeValue),(0,ze.H)(0).pipe((0,B.R)(this.destroy$)).subscribe((()=>{(this.nativeValue.endsWith(".")||this.nativeValue.endsWith(":"))&&(this.nativeValue=this.nativeValue.slice(0,-1))})))}onArrowUp(t){this.items.length||this.processArrow(t,1)}onArrowDown(t){this.items.length||this.processArrow(t,-1)}handleOption(t){this.focusInput(),this.value=t}onOpen(t){this.open=t}writeValue(t){super.writeValue(t),this.nativeValue=t?this.computedValue:""}get nativePicker(){return!!this.options.nativePicker&&this.isMobile}calculateMask(t){const{HH:e,MM:n,SS:i,MS:r}=this.options.maxValues;return(0,We.rC)({mode:t,timeSegmentMaxValues:{hours:e,minutes:n,seconds:i,milliseconds:r}})}filter(t,e,n){return t.filter((t=>t.toString(e).includes(n)))}findNearestTimeFromItems(t){return this.items.reduce(((e,n)=>Math.abs(n.valueOf()-t.valueOf())(0,o.zyr)(e,t)))}close(){this.open=!1}processArrow(t,e){const{target:n}=t;if(this.readOnly||!(0,o.veZ)(n)||!(0,o.LsU)(n))return;const i=n.selectionStart||0;this.shiftTime(this.calculateShift(i,e)),n.setSelectionRange(i,i),t.preventDefault()}calculateShift(t,e){return t<=2?{hours:e}:t<=5?{minutes:e}:t<=8?{seconds:e}:{ms:e}}shiftTime(t){if(null===this.value)return;const e=this.value.shift(t);this.nativeValue=e.toString(this.mode),this.value=e}focusInput(t=!1){this.nativeFocusableElement&&(this.nativeFocusableElement.focus({preventScroll:t}),this.close())}}function to(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"tui-scrollbar",4),l.TgZ(2,"tui-primitive-year-picker",5),l.NdJ("mousedown.prevent.silent",(function(){return 0}))("yearClick",(function(e){return l.CHM(t),l.oxw().onYearClick(e)})),l.ALo(3,"tuiToYear"),l.ALo(4,"tuiToYear"),l.ALo(5,"tuiToYear"),l.ALo(6,"tuiToYear"),l.qZA(),l.qZA(),l.qZA()}if(2&t){const t=l.oxw();l.xp6(2),l.Q6J("disabledItemHandler",t.disabledItemHandler)("initialItem",l.lcZ(3,5,t.value||t.initialItem))("max",l.lcZ(4,7,t.computedMax))("min",l.lcZ(5,9,t.computedMin))("value",null===t.value?null:l.lcZ(6,11,t.value))}}Xr.ɵfac=function(t){return new(t||Xr)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.Yq),l.Y36(Yr),l.Y36(o.fLQ),l.Y36(o.FAH),l.Y36(s.kId))},Xr.ɵcmp=l.Xpm({type:Xr,selectors:[["tui-input-time"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.onClick()})),2&t&&l.uIk("data-size",e.size)},inputs:{disabledItemHandler:"disabledItemHandler",items:"items",itemSize:"itemSize",strict:"strict",mode:"mode",postfix:"postfix"},features:[l._Bn([(0,o.FTc)(Xr),(0,o.wBO)(Xr),(0,s.oEG)(Xr),(0,s.P7F)(Qt.Q4)],[Wt.yn]),l.qOj],ngContentSelectors:["*"],decls:9,vars:18,consts:[[1,"t-wrapper",3,"canOpen","content","open","focusedChange","openChange"],["tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","postfix","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","keydown.arrowDown","keydown.arrowUp","valueChange"],["inputmode","numeric","tuiTextfield",""],["dropdownContent",""],["iconContent",""],["automation-id","tui-input-time__dropdown",3,"size"],["automation-id","tui-input-time__item","tuiOption","",3,"disabled","value",4,"ngFor","ngForOf"],["automation-id","tui-input-time__item","tuiOption","",3,"disabled","value"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiTime","",4,"ngIf"],["appearance","icon","tuiWrapper","",3,"src"],["tuiTime",""]],template:function(t,e){if(1&t&&(l.F$t(),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("focusedChange",(function(t){return e.onFocused(t)}))("openChange",(function(t){return e.onOpen(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("keydown.arrowDown",(function(t){return e.onArrowDown(t)}))("keydown.arrowUp",(function(t){return e.onArrowUp(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.ALo(2,"async"),l.Hsn(3),l._UZ(4,"input",2),l.qZA(),l.qZA(),l.YNc(5,qr,2,2,"ng-template",null,3,l.W1O),l.YNc(7,Kr,2,5,"ng-template",null,4,l.W1O)),2&t){const t=l.MAs(6),n=l.MAs(8);l.Q6J("canOpen",e.canOpen&&!e.nativeDatalist)("content",t)("open",e.canOpen&&e.open),l.xp6(1),l.Q6J("disabled",e.disabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.maskOptions)("nativeId",e.nativeId)("postfix",e.postfix)("pseudoActive",e.pseudoActive)("pseudoFocus",e.innerPseudoFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldFiller",l.lcZ(2,16,e.getFiller$(e.mode))||"")("tuiTextfieldIcon",n)("value",e.computedValue)}},directives:[Kt.o,te.y,ee.B,X.n,tn.ro,rn.k,ne.A,hr.M,wt.q,r.sg,xt.v,a.Li,r.O5,c.P,Gt.o,Ur],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],Xr.prototype,"getFiller$",null),(0,p.gn)([o.UMq],Xr.prototype,"calculateMask",null),(0,p.gn)([o.UMq],Xr.prototype,"filter",null);const eo=["*",[["input"]]],no=/^\d{0,4}$/;class io extends o.F9l{constructor(t,e,n,i){super(t,e),this.options=n,this.textfieldSize=i,this.min=this.options.min.year,this.max=this.options.max.year,this.disabledItemHandler=o.IyD,this.open=!1,this.nativeValue="",this.initialItem=(new Date).getFullYear()}get size(){return this.textfieldSize.size}get computedMin(){var t;return null!==(t=this.min)&&void 0!==t?t:this.options.min.year}get computedMax(){var t;return null!==(t=this.max)&&void 0!==t?t:this.options.max.year}get nativeFocusableElement(){var t;return(null===(t=this.textfield)||void 0===t?void 0:t.nativeFocusableElement)||null}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get calendarIcon(){return this.options.icon}getMaskOptions(t,e){return Object.assign(Object.assign({},(0,We.f8)({min:t,max:e,thousandSeparator:""})),{mask:no})}onValueChange(t){this.value=t?Number(t):null}onYearClick({year:t}){this.value=t,this.updateNativeValue(t),this.onOpenChange(!1)}onFocused(t){this.updateFocused(t)}onOpenChange(t){this.open=t}toggle(){this.open=!this.open}writeValue(t){super.writeValue(t),this.updateNativeValue(t)}updateNativeValue(t){this.nativeValue=(null==t?void 0:t.toString())||""}}io.ɵfac=function(t){return new(t||io)(l.Y36(qt.a5,10),l.Y36(l.sBO),l.Y36(nt.WB),l.Y36(s.kId))},io.ɵcmp=l.Xpm({type:io,selectors:[["tui-input-year"]],viewQuery:function(t,e){if(1&t&&l.Gf(s.ycg,5),2&t){let t;l.iGM(t=l.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&l.uIk("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},features:[l._Bn([(0,o.FTc)(io),(0,o.wBO)(io)]),l.qOj],ngContentSelectors:["*","input"],decls:6,vars:12,consts:[[1,"t-hosted",3,"canOpen","content","open","click","openChange"],[1,"t-textfield",3,"disabled","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","valueChange","focusedChange"],["dropdown",""],[1,"t-container"],[1,"t-scrollbar"],[3,"disabledItemHandler","initialItem","max","min","value","mousedown.prevent.silent","yearClick"]],template:function(t,e){if(1&t&&(l.F$t(eo),l.TgZ(0,"tui-hosted-dropdown",0),l.NdJ("click",(function(){return e.toggle()}))("openChange",(function(t){return e.onOpenChange(t)})),l.TgZ(1,"tui-primitive-textfield",1),l.NdJ("valueChange",(function(t){return e.nativeValue=t}))("focusedChange",(function(t){return e.onFocused(t)}))("valueChange",(function(t){return e.onValueChange(t)})),l.Hsn(2),l.Hsn(3,1,["ngProjectAs","input",5,["input"]]),l.qZA(),l.YNc(4,to,7,13,"ng-template",null,2,l.W1O),l.qZA()),2&t){const t=l.MAs(5);l.Q6J("canOpen",e.interactive)("content",t)("open",e.open&&e.interactive),l.xp6(1),l.Q6J("disabled",e.computedDisabled)("invalid",e.computedInvalid)("maskito",e.getMaskOptions(e.computedMin,e.computedMax))("nativeId",e.nativeId)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.calendarIcon)("value",e.nativeValue)}},directives:[Kt.o,te.y,ee.B,tn.ro,ne.A,it.I,rt.T],pipes:[rr],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-container[_ngcontent-%COMP%]{width:15.75rem;padding:1rem 1.125rem}.t-scrollbar[_ngcontent-%COMP%]{max-height:18.25rem;width:16.875rem}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),(0,p.gn)([o.UMq],io.prototype,"getMaskOptions",null);let ro=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez]]}),t})();function oo(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t," ")}}function so(t,e){if(1&t&&l._UZ(0,"iframe",7),2&t){const t=e.polymorpheusOutlet;l.Q6J("src",t,l.uOi)}}(0,o.JN4)({showHint:!0}),n(53874),n(29577),n(46648);let ao=(()=>{class t{constructor(t,e,n,i){this.animation=t,this.closeWord$=e,this.icons=n,this.context=i}onKeyDownEsc(){this.context.$implicit.complete()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.PwD),l.Y36(s.U0F),l.Y36(s.Gs9),l.Y36(a.yf))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-pdf-viewer"]],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("keydown.esc",(function(){return e.onKeyDownEsc()}),!1,l.evT),2&t&&l.d8E("@tuiFadeIn",e.animation)("@tuiSlideInTop",e.animation)},decls:9,vars:9,consts:[[1,"t-header"],["automation-id","tui-pdf-viewer__label",1,"t-title"],[1,"t-actions"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[1,"t-content"],["title","pdf","class","t-iframe",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["title","pdf",1,"t-iframe",3,"src"]],template:function(t,e){1&t&&(l.TgZ(0,"header",0),l.TgZ(1,"h2",1),l._uU(2),l.qZA(),l.TgZ(3,"div",2),l.YNc(4,oo,2,1,"ng-container",3),l.qZA(),l.TgZ(5,"button",4),l.NdJ("click",(function(){return e.context.$implicit.complete()})),l.ALo(6,"async"),l.qZA(),l.qZA(),l.TgZ(7,"section",5),l.YNc(8,so,1,1,"iframe",6),l.qZA()),2&t&&(l.xp6(2),l.hij(" ",e.context.label," "),l.xp6(2),l.Q6J("polymorpheusOutlet",e.context.actions)("polymorpheusOutletContext",e.context),l.xp6(1),l.Q6J("icon",e.icons.close)("title",l.lcZ(6,7,e.closeWord$)),l.xp6(3),l.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context))},directives:[a.Li,fe.v],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;box-sizing:border-box;color:var(--tui-text-01-night);background:#333639}.t-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:4rem;padding:0 1rem 0 1.5625rem;box-shadow:inset 0 -1px #535659}.t-title[_ngcontent-%COMP%]{margin:0;font:var(--tui-font-text-m);white-space:nowrap;text-overflow:ellipsis;padding-right:.3125rem;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;margin-left:auto}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-left:.75rem;color:var(--tui-text-01-night);background:rgba(255,255,255,.32)}.t-close[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.4)}.t-content[_ngcontent-%COMP%]{height:calc(100% - 4rem);overflow:hidden}.t-iframe[_ngcontent-%COMP%]{width:100%;height:100%}"],data:{animation:[s.X9R,s.QFo]},changeDetection:0}),t})();(0,o.JN4)({label:"",actions:""}),new a.Al(ao);class lo{constructor(t,e,n){this.el=t,this.resize$=e,this.userAgent=n,this.isOldBrowsers=(0,o.xz3)(o.FSK,this.userAgent),this.colors$=new Lt.X([])}set colors(t){this.colors$.next(t)}get calcSegments$(){return(0,Ft.aj)([this.colors$,this.resize$.pipe((0,N.U)((()=>this.el.nativeElement.offsetWidth)),(0,le.x)())]).pipe((0,N.U)((([t,e])=>this.isOldBrowsers?t[0]:function(t,e){const n=Math.ceil(e/t.length);return`linear-gradient(to right ${t.reduce(((t,e,i)=>`${t}, ${e} ${i*n}px ${(i+1)*n}px`),"")})`}(t,e))))}}lo.ɵfac=function(t){return new(t||lo)(l.Y36(l.SBq),l.Y36(o.tll),l.Y36(b.yZ))},lo.ɵdir=l.lG2({type:lo,selectors:[["progress","tuiProgressBar","","tuiProgressColorSegments",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("$.style.--tui-progress-color",(function(){return 0})),2&t&&l.Ikx("$.style.--tui-progress-color",e.calcSegments$)},inputs:{colors:["tuiProgressColorSegments","colors"]},features:[l._Bn([o.a31,o.tll])]}),(0,p.gn)([o.UMq],lo.prototype,"calcSegments$",null);var uo=n(30528);function co(t,e){if(1&t&&l._UZ(0,"div",2),2&t){const t=e.polymorpheusOutlet;l.Q6J("innerHTML",t,l.oJD)}}function ho(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"div",3),l.TgZ(1,"button",4),l.NdJ("click",(function(){return l.CHM(t),l.oxw().context.completeWith(!1)})),l._uU(2),l.qZA(),l.TgZ(3,"button",5),l.NdJ("click",(function(){return l.CHM(t),l.oxw().context.completeWith(!0)})),l._uU(4),l.qZA(),l.qZA()}if(2&t){const t=e.ngIf,n=l.oxw();l.xp6(1),l.Q6J("appearance",n.appearance),l.xp6(1),l.hij(" ",(null==n.context.data?null:n.context.data.no)||t.no," "),l.xp6(2),l.hij(" ",(null==n.context.data?null:n.context.data.yes)||t.yes," ")}}let po=(()=>{class t{constructor(t,e,n){this.words$=t,this.context=e,this.isMobile=n}get appearance(){return this.isMobile?s.NmR.Secondary:s.NmR.Flat}}return t.ɵfac=function(e){return new(e||t)(l.Y36(nt.JF),l.Y36(a.yf),l.Y36(o.fLQ))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-prompt"]],decls:3,vars:4,consts:[["class","t-content",3,"innerHTML",4,"polymorpheusOutlet"],["class","t-buttons",4,"ngIf"],[1,"t-content",3,"innerHTML"],[1,"t-buttons"],["size","m","tuiButton","","type","button",1,"t-button",3,"appearance","click"],["size","m","tuiAutoFocus","","tuiButton","","type","button",1,"t-button",3,"click"]],template:function(t,e){1&t&&(l.YNc(0,co,1,1,"div",0),l.YNc(1,ho,5,3,"div",1),l.ALo(2,"async")),2&t&&(l.Q6J("polymorpheusOutlet",null==e.context.data?null:e.context.data.content),l.xp6(1),l.Q6J("ngIf",l.lcZ(2,2,e.words$)))},directives:[a.Li,r.O5,fe.v,uo.k],pipes:[r.Ov],styles:[".t-content[_ngcontent-%COMP%]:not(:empty){margin-bottom:.875rem}.t-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;margin:.375rem -.375rem -.375rem}.t-button[_ngcontent-%COMP%]{margin:.375rem;white-space:nowrap}tui-root._mobile[_nghost-%COMP%] .t-button[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-button[_ngcontent-%COMP%]{flex:1}"],changeDetection:0}),t})();new a.Al(po),n(89910),(0,o.JN4)({heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]});var go=n(4812);n(68039);let mo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,qt.u5,go.FE,s.WUl]]}),t})();n(63084),(0,o.JN4)({min:0,max:5,iconNormal:"tuiIconStarLarge",iconFilled:"tuiIconStarLarge"}),n(1065),n(75747);let fo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,o.Ah6,s.KWI,s.jhF,Qt.Ig,h.Mt,s.WUl,s.cnw,re,s.pcV,nr]]}),t})();n(77128);var vo=n(54487),bo=n(87874);function yo(t,e){1&t&&l.GkF(0)}class _o{constructor(t,e,n,i,r,s){this.cdr=t,this.el=e,this.scrollService=n,this.duration=r,this.destroy$=s,this.steps=o.Mmc,this.orientation="horizontal",this.activeItemIndexChange=new l.vpe,this.activeItemIndex=0,i.subscribe((()=>this.scrollIntoView(this.activeItemIndex)))}set activeIndex(t){this.activeItemIndex=t,this.scrollIntoView(t)}get changes$(){return(0,o.llR)(this.steps).pipe((0,bo.g)(0))}onHorizontal(t,e){"horizontal"===this.orientation&&t.target&&(t.preventDefault(),this.moveFocus(t.target,e))}onVertical(t,e){"vertical"===this.orientation&&t.target&&(t.preventDefault(),this.moveFocus(t.target,e))}indexOf(t){return(0,o.gDA)(this.steps).findIndex((({nativeElement:e})=>e===t))}isActive(t){return t===this.activeItemIndex}activate(t){this.activeItemIndex!==t&&(this.activeItemIndex=t,this.activeItemIndexChange.emit(t),this.cdr.markForCheck(),this.scrollIntoView(t))}getNativeElements(t){return t.map((({nativeElement:t})=>t))}moveFocus(t,e){if(!(0,o.veZ)(t))return;const n=this.getNativeElements(this.steps),i=n.findIndex((e=>e===t));(0,o.VRr)(i,n,e)}scrollIntoView(t){const e=this.getNativeElements(this.steps)[t];if(!e)return;const{nativeElement:n}=this.el,{clientHeight:i,clientWidth:r,offsetTop:o,offsetLeft:s}=n,{offsetHeight:a,offsetWidth:l,offsetTop:u,offsetLeft:c}=e,d=u-o-i/2+a/2,h=c-s-r/2+l/2;this.scrollService.scroll$(n,Math.max(0,d),Math.max(0,h),this.duration/3).pipe((0,B.R)(this.destroy$)).subscribe()}}_o.ɵfac=function(t){return new(t||_o)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(o.FYW),l.Y36(o.tll),l.Y36(s.dxT),l.Y36(o.a31,2))},_o.ɵcmp=l.Xpm({type:_o,selectors:[["tui-stepper"],["nav","tuiStepper",""]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,Mo,4,l.SBq),2&t){let t;l.iGM(t=l.CRH())&&(e.steps=t)}},hostVars:1,hostBindings:function(t,e){1&t&&l.NdJ("keydown.arrowRight",(function(t){return e.onHorizontal(t,1)}))("keydown.arrowLeft",(function(t){return e.onHorizontal(t,-1)}))("keydown.arrowDown",(function(t){return e.onVertical(t,1)}))("keydown.arrowUp",(function(t){return e.onVertical(t,-1)})),2&t&&l.uIk("data-orientation",e.orientation)},inputs:{orientation:"orientation",activeIndex:["activeItemIndex","activeIndex"]},outputs:{activeItemIndexChange:"activeItemIndexChange"},features:[l._Bn([o.tll,o.a31])],ngContentSelectors:["*"],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,yo,1,0,"ng-container",0),l.ALo(1,"async"),l.Hsn(2)),2&t&&l.Q6J("ngIf",l.lcZ(1,1,e.changes$))},directives:[r.O5],pipes:[r.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:smooth;display:flex;overflow:auto;counter-reset:steps}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{display:none}tui-root._reduced-motion [_nghost-%COMP%]{scroll-behavior:auto}[data-orientation=vertical][_nghost-%COMP%]{flex-direction:column}"],changeDetection:0}),(0,p.gn)([o.UMq],_o.prototype,"changes$",null),(0,p.gn)([o.UMq],_o.prototype,"getNativeElements",null);const Co=["tuiStep",""];function wo(t,e){if(1&t&&l._UZ(0,"tui-svg",4),2&t){const t=l.oxw();l.Q6J("src",t.icon)}}const xo=["*"];let Mo=(()=>{class t{constructor(t,e,n,i,r){this.stepper=n,this.el=i,this.icons=r,this.stepState="normal",this.icon="",this.focusVisible=!1,e.pipe((0,F.h)(vo.y)).subscribe((()=>{this.activate()})),t.subscribe((t=>{this.focusVisible=t}))}get isActive(){return this.stepper.isActive(this.index)}get isVertical(){return"vertical"===this.stepper.orientation}get tabIndex(){return this.isActive?0:-1}get index(){return this.stepper.indexOf(this.el.nativeElement)}activate(){this.stepper.activate(this.index)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(o.kuj),l.Y36(s.OkA),l.Y36(_o),l.Y36(l.SBq),l.Y36(s.Gs9))},t.ɵcmp=l.Xpm({type:t,selectors:[["button","tuiStep",""],["a","tuiStep","",3,"routerLink",""],["a","tuiStep","","routerLink","","routerLinkActive",""]],hostAttrs:["type","button"],hostVars:8,hostBindings:function(t,e){1&t&&l.NdJ("click",(function(){return e.activate()})),2&t&&(l.Ikx("tabIndex",e.tabIndex),l.uIk("data-state",e.stepState),l.ekj("_focus-visible",e.focusVisible)("_active",e.isActive)("_vertical",e.isVertical))},inputs:{stepState:"stepState",icon:"icon"},features:[l._Bn([o.a31,s.OkA,o.kuj])],attrs:Co,ngContentSelectors:xo,decls:5,vars:3,consts:[["class","t-marker t-marker_custom",3,"src",4,"ngIf"],[1,"t-marker","t-marker_error",3,"src"],[1,"t-marker","t-marker_pass",3,"src"],[1,"t-marker","t-marker_index"],[1,"t-marker","t-marker_custom",3,"src"]],template:function(t,e){1&t&&(l.F$t(),l.YNc(0,wo,1,1,"tui-svg",0),l._UZ(1,"tui-svg",1),l._UZ(2,"tui-svg",2),l._UZ(3,"div",3),l.Hsn(4)),2&t&&(l.Q6J("ngIf",e.icon),l.xp6(1),l.Q6J("src",e.icons.error),l.xp6(1),l.Q6J("src",e.icons.check))},directives:[r.O5,c.P],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;flex-shrink:0;color:var(--tui-link);margin-right:1.5rem;outline:none;cursor:pointer;counter-increment:steps}[_nghost-%COMP%]:disabled{pointer-events:none;color:var(--tui-base-07)}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:not(:last-of-type)._vertical{margin-bottom:1.25rem}._active[_nghost-%COMP%], ._active[_nghost-%COMP%]:hover{color:var(--tui-text-01);cursor:default}._focus-visible[_nghost-%COMP%]:before{content:"";position:absolute;left:2.75rem;right:0;top:50%;height:1.5rem;margin-top:-.75rem;background:var(--tui-selection)}.t-marker[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:2rem;height:2rem;border-radius:100%;margin-right:.75rem;flex-shrink:0;align-items:center;justify-content:center;background:var(--tui-secondary);color:var(--tui-link)}[_nghost-%COMP%]:disabled .t-marker[_ngcontent-%COMP%]{background:var(--tui-base-03);color:var(--tui-base-07)}.t-marker_index[_ngcontent-%COMP%]:before{content:counter(steps)}[_nghost-%COMP%]:hover .t-marker_index[_ngcontent-%COMP%]{color:var(--tui-link-hover);background:var(--tui-secondary-hover)}._active[_nghost-%COMP%] .t-marker_index[_ngcontent-%COMP%]{color:var(--tui-primary-text);background:var(--tui-primary)}[_nghost-%COMP%]:not([data-state="normal"]):not(._active) .t-marker_index[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._active) .t-marker_custom[_ngcontent-%COMP%] ~ .t-marker_index[_ngcontent-%COMP%]{display:none}.t-marker_error[_ngcontent-%COMP%]{background:var(--tui-error-bg);color:var(--tui-error-fill)}[_nghost-%COMP%]:hover .t-marker_error[_ngcontent-%COMP%]{background:var(--tui-error-bg-hover);color:var(--tui-error-fill)}[_nghost-%COMP%]:not([data-state="error"]) .t-marker_error[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_error[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:not([data-state="pass"]) .t-marker_pass[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_pass[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:not([data-state="normal"]) .t-marker_custom[_ngcontent-%COMP%], ._active[_nghost-%COMP%] .t-marker_custom[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]:hover .t-marker_custom[_ngcontent-%COMP%]{color:var(--tui-link-hover);background:var(--tui-secondary-hover)}'],changeDetection:0}),t})();n(94824),n(9203),n(81057);let Oo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,a.wq,s.jhF,s.EIu,o.udY,o.HOV]]}),t})();n(51360),n(1618),n(25276),n(5025),n(58154);var ko=n(59178),So=n(28984);const Po=["*"];let To=(()=>{class t{constructor(t){this.el=t,this.el$=new D.xQ,this.debounce=0,this.orderChange=this.el$.pipe((0,So.D)((()=>(0,ze.H)(this.debounce))),(0,F.h)(this.filter.bind(this)),(0,N.U)((t=>this.reorder(t)))),this.element=null,this.order$=new Lt.X(new Map)}set order(t){this.order$.next(t)}get order(){return this.order$.value}rearrange(t){this.el$.next(t)}filter(t){return!!this.element&&!!t&&this.element!==t}reorder(t){var e,n;const i=Array.from(this.el.nativeElement.children),r=i.indexOf(this.element||t),o=i.indexOf(t),s=this.order.size?new Map(this.order):new Map(i.map(((t,e)=>[e,e]))),a=null!==(e=s.get(r))&&void 0!==e?e:r,l=null!==(n=s.get(o))&&void 0!==n?n:o;return s.set(r,l),s.set(o,a),this.order$.next(s),s}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tiles"]],hostVars:2,hostBindings:function(t,e){1&t&&l.NdJ("pointerleave.silent",(function(){return e.rearrange()})),2&t&&l.ekj("_dragged",e.element)},inputs:{debounce:"debounce",order:"order"},outputs:{orderChange:"orderChange"},features:[l._Bn([o.a31,o.tll,se.IM,{provide:se.k2,useValue:{childList:!0}}])],ngContentSelectors:Po,decls:1,vars:0,template:function(t,e){1&t&&(l.F$t(),l.Hsn(0))},styles:["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"],encapsulation:2,changeDetection:0}),t})(),Ao=(()=>{class t{constructor(t,e,n,i){this.el=t,this.tiles=e,this.resize$=n,this.mutation$=i,this.sub=new ko.w,this.offset$=new Lt.X([NaN,NaN]),this.position$=(0,Ft.aj)([this.offset$.pipe((0,le.x)(o.Hh6)),this.resize$.pipe((0,Re.O)(null)),this.mutation$.pipe((0,Re.O)(null)),this.tiles.order$.pipe((0,Q.b)(0))]).pipe((0,N.U)((([t])=>t)))}init(t){this.sub.add(this.position$.subscribe((e=>{this.setPosition(t,e),this.setRect(t,e)})))}setOffset(t){this.offset$.next(t)}ngOnDestroy(){this.sub.unsubscribe()}getRect([t,e]){return{top:Number.isNaN(e)?this.el.nativeElement.offsetTop:e,left:Number.isNaN(t)?this.el.nativeElement.offsetLeft:t,width:this.el.nativeElement.clientWidth,height:this.el.nativeElement.clientHeight,right:NaN,bottom:NaN}}setRect({style:t},e){const{top:n,left:i,width:r,height:s}=this.getRect(e);t.top=(0,o.O9r)(n),t.left=(0,o.O9r)(i),t.width=(0,o.O9r)(r),t.height=(0,o.O9r)(s)}setPosition(t,[e]){if(!Number.isNaN(e))return void t.style.setProperty("position","fixed");const{style:n}=t,i=t.getBoundingClientRect(),r=this.el.nativeElement.getBoundingClientRect();n.removeProperty("position"),n.top=(0,o.O9r)(i.top-r.top+this.el.nativeElement.offsetTop),n.left=(0,o.O9r)(i.left-r.left+this.el.nativeElement.offsetLeft)}}return t.ɵfac=function(e){return new(e||t)(l.LFG(l.SBq),l.LFG(To),l.LFG(o.tll),l.LFG(se.IM))},t.ɵprov=l.Yz7({token:t,factory:t.ɵfac}),t})();const Eo=["wrapper"],Io=["*"];let Do=(()=>{class t{constructor(t,e,n){this.service=t,this.el=e,this.tiles=n,this.width=1,this.height=1,this.dragged=!1}get column(){return`span var(--tui-width, ${this.width})`}get row(){return`span var(--tui-height, ${this.height})`}get element(){return this.el.nativeElement}onEnter(){this.tiles.rearrange(this.element)}onDrag(t){const e=!Number.isNaN(t[0]);this.dragged=this.dragged||e,this.tiles.element=e?this.element:null,this.service.setOffset(t)}onTransitionEnd(){this.dragged=!1}ngAfterViewInit(){this.wrapper&&this.service.init(this.wrapper.nativeElement)}ngOnDestroy(){this.tiles.element===this.element&&(this.tiles.element=null)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(Ao),l.Y36(l.SBq),l.Y36(To))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tile"]],viewQuery:function(t,e){if(1&t&&l.Gf(Eo,5),2&t){let t;l.iGM(t=l.CRH())&&(e.wrapper=t.first)}},hostVars:6,hostBindings:function(t,e){1&t&&l.NdJ("pointerenter",(function(){return e.onEnter()})),2&t&&(l.Udp("grid-column",e.column)("grid-row",e.row),l.ekj("_dragged",e.dragged))},inputs:{width:"width",height:"height"},features:[l._Bn([Ao])],ngContentSelectors:Io,decls:3,vars:0,consts:[[1,"t-wrapper",3,"transitionend.self"],["wrapper",""]],template:function(t,e){1&t&&(l.F$t(),l.TgZ(0,"div",0,1),l.NdJ("transitionend.self",(function(){return e.onTransitionEnd()})),l.Hsn(2),l.qZA())},encapsulation:2,changeDetection:0}),t})();class Lo{constructor(t){this.tile=t,this.x=NaN,this.y=NaN}onStart(t){const e=(0,o.mAU)(t),{x:n,y:i,pointerId:r}=t;(0,o.veZ)(e)&&e.releasePointerCapture(r),this.onPointer(n,i)}onPointer(t=NaN,e=NaN){const{left:n,top:i}=this.tile.element.getBoundingClientRect();this.x=t-n,this.y=e-i,this.tile.onDrag([NaN,NaN])}onMove(t,e){this.tile.onDrag([t-this.x,e-this.y])}}Lo.ɵfac=function(t){return new(t||Lo)(l.Y36(Do))},Lo.ɵdir=l.lG2({type:Lo,selectors:[["","tuiTileHandle",""]],hostVars:4,hostBindings:function(t,e){1&t&&l.NdJ("pointerdown.silent",(function(t){return e.onStart(t)}))("pointerup.silent",(function(){return e.onPointer()}),!1,l.evT)("pointermove.silent",(function(t){return e.onMove(t.x,t.y)}),!1,l.evT),2&t&&l.Udp("touch-action","none")("user-select","none")}}),(0,p.gn)([(0,oe.uX)((function(t=NaN){return!Number.isNaN(t)||!Number.isNaN(this.x)}))],Lo.prototype,"onPointer",null),(0,p.gn)([(0,oe.uX)((function(){return!Number.isNaN(this.x)}))],Lo.prototype,"onMove",null),n(31338);let Fo=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=l.oAB({type:t}),t.ɵinj=l.cJS({imports:[[r.ez,o.Fqk,o.udY,o.fzP,o.ceN,o.S1R,s.WUl,s.EIu,s.dSp,a.wq]]}),t})();function No(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",2),l.NdJ("click",(function(){return l.CHM(t),l.oxw().onClick()})),l.qZA()}if(2&t){const t=l.oxw();l.ekj("t-button_expanded",t.isExpanded),l.Q6J("icon",t.icons.more)}}n(66895);let zo=(()=>{class t{constructor(t,e,n){this.icons=t,this.context=e,this.controller=n}get isExpanded(){return this.context.$implicit.isExpanded}get isExpandable(){return this.context.$implicit.isExpandable&&this.controller!==Bo}onClick(){this.controller.toggle(this.context.$implicit)}}return t.ɵfac=function(e){return new(e||t)(l.Y36(s.Gs9),l.Y36(a.yf),l.Y36((0,l.Gpc)((()=>Ho))))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tree-item-content"]],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_expandable",e.isExpandable)},decls:2,vars:2,consts:[["appearance","flat","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-button",3,"t-button_expanded","icon","click",4,"ngIf"],[3,"ngTemplateOutlet"],["appearance","flat","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-button",3,"icon","click"]],template:function(t,e){1&t&&(l.YNc(0,No,1,3,"button",0),l.GkF(1,1)),2&t&&(l.Q6J("ngIf",e.isExpandable),l.xp6(1),l.Q6J("ngTemplateOutlet",e.context.template))},directives:[r.O5,r.tP,fe.v],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] tui-tree-item._expandable[_nghost-%COMP%]:not(._expandable), tui-tree-item._expandable [_nghost-%COMP%]:not(._expandable){padding-left:2rem}.t-button[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-right:.5rem}.t-button_expanded[_ngcontent-%COMP%]{transform:rotate(90deg)}"],changeDetection:0}),t})();const Ro=new a.Al(zo),Bo={isExpanded:o.YeN,toggle:o.iDf},Ho=(new l.OlP("[TUI_TREE_ACCESSOR]"),(0,o.JN4)(Bo)),Vo=new l.OlP("[TUI_TREE_NODE]"),Yo=((0,o.JN4)({}),new l.OlP("[TUI_TREE_START]"),new l.OlP("[TUI_TREE_LOADER]"),(0,o.JN4)(Ro)),jo=(0,o.JN4)(-1),Zo=[{provide:jo,deps:[[new l.tp0,jo]],useFactory:t=>++t},{provide:Vo,useExisting:(0,l.Gpc)((()=>Ko))}];function $o(t,e){1&t&&l.Hsn(0)}function Uo(t,e){if(1&t&&(l.ynx(0),l._uU(1),l.BQk()),2&t){const t=e.polymorpheusOutlet;l.xp6(1),l.hij(" ",t,"\n")}}function Go(t,e){if(1&t&&(l.TgZ(0,"tui-expand",4),l.ALo(1,"async"),l.TgZ(2,"div"),l.Hsn(3,1),l.Hsn(4,2),l.qZA(),l.qZA()),2&t){const t=l.oxw();l.Q6J("expanded",l.lcZ(1,1,t.expanded$))}}function qo(t,e){1&t&&l.GkF(0)}const Jo=["*",[["tui-tree-item"]],[["tui-tree"]]],Qo=function(t,e){return{$implicit:t,template:e}},Wo=["*","tui-tree-item","tui-tree"];let Ko=(()=>{class t{constructor(t,e,n,i){this.el=t,this.controller=e,this.level=n,this.content=i,this.nested=o.Mmc,this.change$=new D.xQ,this.expanded$=this.change$.pipe((0,Re.O)(null),(0,N.U)((()=>this.isExpanded))),this.attached$=this.change$.pipe((0,N.U)((()=>this.el.nativeElement.isConnected)),(0,le.x)())}get isExpandable(){return!!this.nested.length}get isExpanded(){return this.controller.isExpanded(this)}ngDoCheck(){this.checkChanges()}checkChanges(){this.change$.next()}}return t.ɵfac=function(e){return new(e||t)(l.Y36(l.SBq),l.Y36((0,l.Gpc)((()=>Ho))),l.Y36((0,l.Gpc)((()=>jo))),l.Y36((0,l.Gpc)((()=>Yo))))},t.ɵcmp=l.Xpm({type:t,selectors:[["tui-tree-item"]],contentQueries:function(t,e,n){if(1&t&&l.Suo(n,Vo,4),2&t){let t;l.iGM(t=l.CRH())&&(e.nested=t)}},hostAttrs:["role","treeitem"],hostVars:2,hostBindings:function(t,e){2&t&&l.ekj("_expandable",e.isExpandable)},features:[l._Bn(Zo)],ngContentSelectors:Wo,decls:6,vars:9,consts:[["template",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["role","group","class","t-children",3,"expanded",4,"ngIf"],[4,"ngIf"],["role","group",1,"t-children",3,"expanded"]],template:function(t,e){if(1&t&&(l.F$t(Jo),l.YNc(0,$o,1,0,"ng-template",null,0,l.W1O),l.YNc(2,Uo,2,1,"ng-container",1),l.YNc(3,Go,5,3,"tui-expand",2),l.YNc(4,qo,1,0,"ng-container",3),l.ALo(5,"async")),2&t){const t=l.MAs(1);l.xp6(2),l.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",l.WLB(6,Qo,e,t)),l.xp6(1),l.Q6J("ngIf",e.isExpandable),l.xp6(1),l.Q6J("ngIf",l.lcZ(5,4,e.attached$))}},directives:[a.Li,r.O5,Fe.S],pipes:[r.Ov],styles:["[_nghost-%COMP%]{display:block}.t-children[_ngcontent-%COMP%]{position:relative;margin-left:var(--tui-tree-item-indent, 1.5rem)}"],changeDetection:0}),t})()},18569:(t,e,n)=>{n.d(e,{A:()=>g});var i=n(97582),r=n(24751),o=n(42600),s=n(41035),a=n(25917),l=n(95639),u=n(88002),c=n(74788);const d={};function h(t,e){return t.pipe((0,u.U)((t=>new o.T8v(t||"",e))))}function p(t,e){return(0,a.of)(new o.T8v(t||"",e))}class g{constructor(t,e,n,i){this.parent=t,this.self=e,this.container=n,this.validationErrors=i,this.order=[],this.self&&!this.self.valueAccessor&&(this.self.valueAccessor=this)}transform(t){return this.order=t,this.computedError}get computedError(){return this.invalid&&this.touched&&this.error||(0,a.of)(null)}registerOnChange(){}registerOnTouched(){}setDisabledState(){}writeValue(){}get error(){const{errorId:t}=this;if(!t)return null;const e=this.controlErrors[t],n=this.validationErrors[t];return this.getError(e,n)}get invalid(){var t;return!!(null===(t=this.control)||void 0===t?void 0:t.invalid)}get touched(){var t;return!!(null===(t=this.control)||void 0===t?void 0:t.touched)}get control(){var t,e,n;return(null===(t=this.self)||void 0===t?void 0:t.control)||(null===(e=this.parent)||void 0===e?void 0:e.control)||(null===(n=this.container)||void 0===n?void 0:n.control)}get errorId(){return this.getErrorId(this.order,this.controlErrors)}get controlErrors(){var t;return(null===(t=this.control)||void 0===t?void 0:t.errors)||d}getErrorId(t,e){const n=null==t?void 0:t.find((t=>e[t])),i=Object.keys(e)[0];return n||i||""}getError(t,e){if(t instanceof o.T8v)return(0,a.of)(t);if(void 0===e&&(0,o.Ajw)(t))return(0,a.of)(new o.T8v(t));if((0,l.b)(e))return h(e,t);if(e instanceof Function){const n=e(t);return(0,l.b)(n)?h(n,t):p(n,t)}return p(e,t)}}g.ɵfac=function(t){return new(t||g)(c.Y36(r.a5,28),c.Y36(r.a5,26),c.Y36(r.gN,24),c.Y36(s.Z4,16))},g.ɵpipe=c.Yjl({name:"tuiFieldError",type:g,pure:!1}),(0,i.gn)([o.UMq],g.prototype,"getErrorId",null),(0,i.gn)([o.UMq],g.prototype,"getError",null)},59912:(t,e,n)=>{n.d(e,{yn:()=>o,E2:()=>u});var i=n(43232),r=n(41035);n(25917),n(88002),r.RZ,i.$7p;const o=(0,i.fxH)({limitWidth:"fixed",align:"right"});var s=n(74788),a=n(24751),l=n(54487);const u={provide:i.sEt,deps:[[new s.FiY,new s.PiD,a.JU]],useFactory:l.y}},41035:(t,e,n)=>{n.d(e,{s3:()=>s,qE:()=>C,UV:()=>_,Hw:()=>O,iN:()=>c,LD:()=>h,zf:()=>b,Mu:()=>p,HF:()=>d,rV:()=>y,qk:()=>w,WB:()=>S,BV:()=>x,Ys:()=>T,vk:()=>A,RZ:()=>E,ue:()=>m,E6:()=>M,q5:()=>f,JF:()=>g,WO:()=>I,Yq:()=>v,Z4:()=>D,_V:()=>a});var i=n(74788),r=n(24751),o=n(82191);const s=new i.OlP("[TUI_CALENDAR_DATE_STREAM]");function a(t){return{provide:s,deps:[[new i.FiY,new i.PiD,r.a5],[new i.FiY,t]],useFactory:o.pi}}var l=n(42600),u=n(19633);const c=(0,l.JN4)({[u.Xi.AD]:"+376###-###",[u.Xi.AE]:"+971-##-###-####",[u.Xi.AF]:"+93##-###-####",[u.Xi.AG]:"+1(268) ###-####",[u.Xi.AI]:"+1(264) ###-####",[u.Xi.AL]:"+355(###) ###-###",[u.Xi.AM]:"+374##-###-###",[u.Xi.AO]:"+244(###) ###-###",[u.Xi.AR]:"+54(###) ####-####",[u.Xi.AT]:"+43(###) ###-####",[u.Xi.AU]:"+61#-####-####",[u.Xi.AW]:"+297###-####",[u.Xi.AZ]:"+994##-###-##-##",[u.Xi.BA]:"+387 ###-####-##",[u.Xi.BB]:"+1(246) ###-####",[u.Xi.BD]:"+880##-###-###",[u.Xi.BE]:"+32(###) ###-###",[u.Xi.BF]:"+226##-##-####",[u.Xi.BG]:"+359(###) ###-###",[u.Xi.BH]:"+973####-####",[u.Xi.BI]:"+257##-##-####",[u.Xi.BJ]:"+229##-##-####",[u.Xi.BL]:"+590 ## ## ## ## ##",[u.Xi.BM]:"+1(441) ###-####",[u.Xi.BN]:"+673###-####",[u.Xi.BO]:"+591#-###-####",[u.Xi.BQ]:"+599-###-####",[u.Xi.BR]:"+55(##) ####-#####",[u.Xi.BS]:"+1(242) ###-####",[u.Xi.BT]:"+975#-###-###",[u.Xi.BW]:"+267##-###-###",[u.Xi.BY]:"+375(##) ###-##-##",[u.Xi.BZ]:"+501###-####",[u.Xi.CA]:"+1(###) ###-####",[u.Xi.CD]:"+243(###) ###-###",[u.Xi.CF]:"+236-##-##-####",[u.Xi.CG]:"+242##-###-####",[u.Xi.CH]:"+41##-###-####",[u.Xi.CI]:"+225##-##-###-###",[u.Xi.CL]:"+56#-####-####",[u.Xi.CM]:"+237#####-####",[u.Xi.CN]:"+86(###) ####-####",[u.Xi.CO]:"+57(###) ###-####",[u.Xi.CR]:"+506####-####",[u.Xi.CU]:"+53#-###-####",[u.Xi.CV]:"+238(###) ##-##",[u.Xi.CW]:"+5999-###-####",[u.Xi.CY]:"+357##-###-###",[u.Xi.CZ]:"+420(###) ###-###",[u.Xi.DE]:"+49(###) ###-###-##",[u.Xi.DJ]:"+253##-##-##-##",[u.Xi.DK]:"+45##-##-##-##",[u.Xi.DM]:"+1(767) ###-####",[u.Xi.DO]:"+1(###) ###-####",[u.Xi.DZ]:"+213##-###-####",[u.Xi.EC]:"+593##-###-####",[u.Xi.EE]:"+372####-####",[u.Xi.EG]:"+20(###) ###-####",[u.Xi.ER]:"+291#-###-###",[u.Xi.ES]:"+34(###) ###-###",[u.Xi.ET]:"+251##-###-####",[u.Xi.FI]:"+358(###) ###-##-##",[u.Xi.FJ]:"+679##-#####",[u.Xi.FK]:"+500#####",[u.Xi.FM]:"+691###-####",[u.Xi.FR]:"+33 ## ## ## ## ##",[u.Xi.GA]:"+241##-##-##-##",[u.Xi.GB]:"+44##-####-####",[u.Xi.GD]:"+1(473) ###-####",[u.Xi.GE]:"+995(###) ###-###",[u.Xi.GF]:"+594 ## ## ## ## ##",[u.Xi.GH]:"+233(###) ###-###",[u.Xi.GI]:"+350###-#####",[u.Xi.GL]:"+299##-##-##",[u.Xi.GM]:"+220(###) ##-##",[u.Xi.GN]:"+224##-###-###",[u.Xi.GP]:"+590 ## ## ## ## ##",[u.Xi.GQ]:"+240##-###-####",[u.Xi.GR]:"+30(###) ###-####",[u.Xi.GT]:"+502#-###-####",[u.Xi.GW]:"+245#-######",[u.Xi.GY]:"+592###-####",[u.Xi.HK]:"+852####-####",[u.Xi.HN]:"+504####-####",[u.Xi.HR]:"+385##-###-####",[u.Xi.HT]:"+509##-##-####",[u.Xi.HU]:"+36(###) ###-###",[u.Xi.ID]:"+62(###) ###-##-###",[u.Xi.IE]:"+353(###) ###-###",[u.Xi.IL]:"+972##-###-####",[u.Xi.IN]:"+91(####) ###-###",[u.Xi.IQ]:"+964(###) ###-####",[u.Xi.IR]:"+98(###) ###-####",[u.Xi.IS]:"+354###-####",[u.Xi.IT]:"+39(###) ####-###",[u.Xi.JM]:"+1(876) ###-####",[u.Xi.JO]:"+962#-####-####",[u.Xi.JP]:"+81-##-####-####",[u.Xi.KE]:"+254###-######",[u.Xi.KG]:"+996(###) ###-###",[u.Xi.KH]:"+855##-###-###",[u.Xi.KM]:"+269##-#####",[u.Xi.KN]:"+1(869) ###-####",[u.Xi.KP]:"+850####-#############",[u.Xi.KR]:"+82##-###-####",[u.Xi.KW]:"+965####-####",[u.Xi.KY]:"+1(345) ###-####",[u.Xi.KZ]:"+7(###) ###-##-##",[u.Xi.LA]:"+856##-##-###-###",[u.Xi.LB]:"+961##-###-###",[u.Xi.LC]:"+1(758) ###-####",[u.Xi.LI]:"+423(###) ###-####",[u.Xi.LK]:"+94##-###-####",[u.Xi.LR]:"+231##-###-###",[u.Xi.LS]:"+266#-###-####",[u.Xi.LT]:"+370(###) ##-###",[u.Xi.LU]:"+352(###) ###-###",[u.Xi.LV]:"+371##-###-###",[u.Xi.LY]:"+218##-###-####",[u.Xi.MA]:"+212##-####-###",[u.Xi.MC]:"+377###-###-###",[u.Xi.MD]:"+373####-####",[u.Xi.ME]:"+382##-###-###",[u.Xi.MF]:"+590 ## ## ## ## ##",[u.Xi.MG]:"+261##-##-#####",[u.Xi.MK]:"+389##-###-###",[u.Xi.ML]:"+223##-##-####",[u.Xi.MM]:"+95##-###-###",[u.Xi.MN]:"+976##-##-####",[u.Xi.MO]:"+853####-####",[u.Xi.MQ]:"+596 ## ## ## ## ##",[u.Xi.MR]:"+222##-##-####",[u.Xi.MS]:"+1(664) ###-####",[u.Xi.MT]:"+356####-####",[u.Xi.MU]:"+230####-####",[u.Xi.MV]:"+960###-####",[u.Xi.MW]:"+265#-####-####",[u.Xi.MX]:"+52(###) ###-####",[u.Xi.MY]:"+60(###) ###-###",[u.Xi.MZ]:"+258##-###-###",[u.Xi.NA]:"+264##-###-####",[u.Xi.NC]:"+687 ### ###",[u.Xi.NE]:"+227##-##-####",[u.Xi.NG]:"+234(###) ###-####",[u.Xi.NI]:"+505####-####",[u.Xi.NL]:"+31##-###-####",[u.Xi.NO]:"+47(###) ##-###",[u.Xi.NP]:"+977##-###-###",[u.Xi.NZ]:"+64(###) ###-####",[u.Xi.OM]:"+968##-###-###",[u.Xi.PA]:"+507###-####",[u.Xi.PE]:"+51(###) ###-###",[u.Xi.PF]:"+689 ## ## ## ##",[u.Xi.PG]:"+675(###) ##-###",[u.Xi.PH]:"+63(###) ###-####",[u.Xi.PK]:"+92(###) ###-####",[u.Xi.PL]:"+48(###) ###-###",[u.Xi.PT]:"+351##-###-####",[u.Xi.PW]:"+680###-####",[u.Xi.PY]:"+595(###) ###-###",[u.Xi.QA]:"+974####-####",[u.Xi.RE]:"+262 ## ## ## ## ##",[u.Xi.RO]:"+40##-###-####",[u.Xi.RS]:"+381##-###-####",[u.Xi.RU]:"+7### ###-##-##",[u.Xi.RW]:"+250(###) ###-###",[u.Xi.SA]:"+966#-####-####",[u.Xi.SB]:"+677###-####",[u.Xi.SC]:"+248#-###-###",[u.Xi.SD]:"+249##-###-####",[u.Xi.SE]:"+46##-###-####",[u.Xi.SG]:"+65####-####",[u.Xi.SH]:"+290####",[u.Xi.SI]:"+386##-###-###",[u.Xi.SK]:"+421(###) ###-###",[u.Xi.SL]:"+232##-######",[u.Xi.SM]:"+378####-######",[u.Xi.SN]:"+221##-###-####",[u.Xi.SO]:"+252##-###-###",[u.Xi.SR]:"+597###-####",[u.Xi.ST]:"+239##-#####",[u.Xi.SV]:"+503##-##-####",[u.Xi.SX]:"+1(721) ###-####",[u.Xi.SY]:"+963##-####-###",[u.Xi.SZ]:"+268##-##-####",[u.Xi.TC]:"+1(649) ###-####",[u.Xi.TD]:"+235##-##-##-##",[u.Xi.TG]:"+228##-###-###",[u.Xi.TH]:"+66##-###-####",[u.Xi.TJ]:"+992##-###-####",[u.Xi.TL]:"+670###-#####",[u.Xi.TM]:"+993#-###-####",[u.Xi.TN]:"+216##-###-###",[u.Xi.TO]:"+676#####",[u.Xi.TR]:"+90(###) ###-####",[u.Xi.TT]:"+1(868) ###-####",[u.Xi.TW]:"+886#-####-####",[u.Xi.TZ]:"+255##-###-####",[u.Xi.UA]:"+380(##) ###-##-##",[u.Xi.UG]:"+256(###) ###-###",[u.Xi.US]:"+1(###) ###-####",[u.Xi.UY]:"+598#-###-##-##",[u.Xi.UZ]:"+998##-###-####",[u.Xi.VC]:"+1(784) ###-####",[u.Xi.VE]:"+58(###) ###-####",[u.Xi.VG]:"+1(284)###-####",[u.Xi.VN]:"+84(###) ####-###",[u.Xi.VU]:"+678##-#####",[u.Xi.WS]:"+685##-####",[u.Xi.XK]:"+383##-###-###",[u.Xi.YE]:"+967###-###-###",[u.Xi.YT]:"+262 ## ## ## ## ##",[u.Xi.ZA]:"+27##-###-####",[u.Xi.ZM]:"+260##-###-####",[u.Xi.ZW]:"+263#-######"}),d=new i.OlP("[TUI_DATE_VALUE_TRANSFORMER]"),h=new i.OlP("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),p=new i.OlP("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),g=(0,l.N1V)((0,u.vv)("prompt")),m=((0,l.N1V)((0,u.vv)("cancel")),(0,l.N1V)((0,u.vv)("done")),(0,l.N1V)((0,u.vv)("more"))),f=((0,l.N1V)((0,u.vv)("hide")),(0,l.N1V)((0,u.vv)("showAll")),(0,l.N1V)((0,u.vv)("otherDate"))),v=((0,l.N1V)((0,u.vv)("mobileCalendarTexts")),(0,l.N1V)((0,u.vv)("range")),(0,l.N1V)((0,u.vv)("countTexts")),(0,l.N1V)((0,u.vv)("time"))),b=(0,l.N1V)((0,u.vv)("dateTexts")),y=(0,l.N1V)((0,u.vv)("digitalInformationUnits")),_=(0,l.N1V)((0,u.vv)("copyTexts")),C=((0,l.N1V)((0,u.vv)("passwordTexts")),(0,l.N1V)((0,u.vv)("shortCalendarMonths"))),w=(0,l.N1V)((0,u.vv)("fileTexts")),x=((0,l.N1V)((0,u.vv)("pagination")),(0,l.N1V)((0,u.vv)("inputFileTexts"))),M=(0,l.N1V)((0,u.vv)("multiSelectTexts")),O=(0,l.N1V)((0,u.vv)("countries")),k={icon:({$implicit:t})=>"s"===t?"tuiIconCalendar":"tuiIconCalendarLarge",min:l.nNo,max:l.OyN,nativePicker:!1},S=(0,l.JN4)(k),P={stringify:l.yZp,identityMatcher:l.bgn,disabledItemHandler:l.IyD},T=(0,l.JN4)(P),A=new i.OlP("[TUI_MOBILE_CALENDAR]"),E=new i.OlP("[TUI_MONTH_FORMATTER]"),I=(0,l.JN4)(24),D=(0,l.JN4)({})},24112:(t,e,n)=>{n.d(e,{z:()=>s,w:()=>a});var i=n(42600);const r=1024,o=1024*r;function s(t,e){return void 0===e?null:et.trim()))}},37654:(t,e,n)=>{function i(t){if(""===t)return"";let e=0;for(let n=0;ni})},82191:(t,e,n)=>{n.d(e,{pi:()=>d,z:()=>i.z,fn:()=>h,fR:()=>l,zm:()=>p,ox:()=>a.ox,u7:()=>g,hm:()=>a.hm});var i=n(24112),r=n(42600),o=n(2181),s=n(43232);new Array(2).fill(s.hW1),new Array(4).fill(s.hW1);var a=n(29577);function l(t){return!Array.isArray(t[0])}var u=n(25917),c=n(88002);function d(t,e){return t?(0,r.EKY)(t).pipe((0,c.U)((t=>e?e.fromControlValue(t):t))):(0,u.of)(null)}function h(t,e){return t[e].replace(/[()\- ]/g,"").length}function p(t,e){return t[e].replace(o.m2,"")}function g(t){const e=Number(t.slice(1,4));return e<600||e>799}},29577:(t,e,n)=>{n.d(e,{ox:()=>a,hm:()=>s});var i=n(42600),r=n(2181);function o(t,e){const n=t.findIndex(((t,n)=>n&&e(t)));return[t[n-1]||t[0],t[n]||t[t.length-1]]}function s(t,e){const[[n,s],[a,l]]=o(e,(([e,n])=>t<=e)),u=(t-n)/(a-n)*(l-s)+s;return(0,i.FGw)(u,r.bF)}function a(t,e){const[[n,i],[r,s]]=o(e,(([e,n])=>t<=n));return(r-n)*((t-i)/(s-i)||0)+n}},69153: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=69153,t.exports=e},95381:(t,e,n)=>{n.d(e,{Z:()=>pn});var i={};n.r(i),n.d(i,{decode:()=>u,encode:()=>h,format:()=>p,parse:()=>k});var r={};n.r(r),n.d(r,{Any:()=>S,Cc:()=>P,Cf:()=>T,P:()=>A,S:()=>E,Z:()=>I});var o={};n.r(o),n.d(o,{arrayReplaceAt:()=>et,assign:()=>tt,escapeHtml:()=>pt,escapeRE:()=>mt,fromCodePoint:()=>it,has:()=>X,isMdAsciiPunct:()=>yt,isPunctChar:()=>bt,isSpace:()=>ft,isString:()=>W,isValidEntityCode:()=>nt,isWhiteSpace:()=>vt,lib:()=>Ct,normalizeReference:()=>_t,unescapeAll:()=>lt,unescapeMd:()=>at});var s={};n.r(s),n.d(s,{parseLinkDestination:()=>xt,parseLinkLabel:()=>wt,parseLinkTitle:()=>Mt});const a={};function l(t,e){"string"!=typeof e&&(e=l.defaultChars);const n=function(t){let e=a[t];if(e)return e;e=a[t]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);e.push(n)}for(let n=0;n=55296&&t<=57343?"���":String.fromCharCode(t),i+=6;continue}}if(240==(248&o)&&i+91114111?e+="����":(t-=65536,e+=String.fromCharCode(55296+(t>>10),56320+(1023&t))),i+=9;continue}}e+="�"}}return e}))}l.defaultChars=";/?:@&=+$,#",l.componentChars="";const u=l,c={};function d(t,e,n){"string"!=typeof e&&(n=e,e=d.defaultChars),void 0===n&&(n=!0);const i=function(t){let e=c[t];if(e)return e;e=c[t]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&e+1=56320&&n<=57343){r+=encodeURIComponent(t[e]+t[e+1]),e++;continue}}r+="%EF%BF%BD"}else r+=encodeURIComponent(t[e])}return r}d.defaultChars=";/?:@&=+$,-_.!~*'()#",d.componentChars="-_.!~*'()";const h=d;function p(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function g(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const m=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,v=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,b=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),y=["'"].concat(b),_=["%","/","?",";","#"].concat(y),C=["/","?","#"],w=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};g.prototype.parse=function(t,e){let n,i,r,o=t;if(o=o.trim(),!e&&1===t.split("#").length){const t=v.exec(o);if(t)return this.pathname=t[1],t[2]&&(this.search=t[2]),this}let s=m.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(e||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r="//"===o.substr(0,2),!r||s&&M[s]||(o=o.substr(2),this.slashes=!0)),!M[s]&&(r||s&&!O[s])){let t,e,n=-1;for(let t=0;t127?i+="x":i+=n[t];if(!i.match(w)){const i=t.slice(0,e),r=t.slice(e+1),s=n.match(x);s&&(i.push(s[1]),r.unshift(s[2])),r.length&&(o=r.join(".")+o),this.hostname=i.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");-1!==a&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),O[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},g.prototype.parseHost=function(t){let e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};const k=function(t,e){if(t&&t instanceof g)return t;const n=new g;return n.parse(t,e),n},S=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,P=/[\0-\x1F\x7F-\x9F]/,T=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,A=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,E=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,I=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,D=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((t=>t.charCodeAt(0)))),L=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((t=>t.charCodeAt(0))));var F;const N=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),z=null!==(F=String.fromCodePoint)&&void 0!==F?F:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t),e};var R=(()=>(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"}(R||(R={})),R))(),B=(()=>(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(B||(B={})),B))();function H(t){return t>=R.ZERO&&t<=R.NINE}var V=(()=>(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(V||(V={})),V))(),Y=(()=>{return(t=Y||(Y={}))[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute",Y;var t})();class j{constructor(t,e,n){this.decodeTree=t,this.emitCodePoint=e,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Y.Strict}startEntity(t){this.decodeMode=t,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,e){switch(this.state){case V.EntityStart:return t.charCodeAt(e)===R.NUM?(this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=V.NamedEntity,this.stateNamedEntity(t,e));case V.NumericStart:return this.stateNumericStart(t,e);case V.NumericDecimal:return this.stateNumericDecimal(t,e);case V.NumericHex:return this.stateNumericHex(t,e);case V.NamedEntity:return this.stateNamedEntity(t,e)}}stateNumericStart(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===R.LOWER_X?(this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=V.NumericDecimal,this.stateNumericDecimal(t,e))}addToNumericResult(t,e,n,i){if(e!==n){const r=n-e;this.result=this.result*Math.pow(i,r)+parseInt(t.substr(e,r),i),this.consumed+=r}}stateNumericHex(t,e){const n=e;for(;e=R.UPPER_A&&i<=R.UPPER_F||i>=R.LOWER_A&&i<=R.LOWER_F)))return this.addToNumericResult(t,n,e,16),this.emitNumericEntity(r,3);e+=1}var i;return this.addToNumericResult(t,n,e,16),-1}stateNumericDecimal(t,e){const n=e;for(;e=55296&&t<=57343||t>1114111?65533:null!==(e=N.get(t))&&void 0!==e?e:t}(this.result),this.consumed),this.errors&&(t!==R.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,e){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&B.VALUE_LENGTH)>>14;for(;e=R.UPPER_A&&t<=R.UPPER_Z||t>=R.LOWER_A&&t<=R.LOWER_Z||H(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&B.VALUE_LENGTH)>>14,0!==r){if(s===R.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var o;return-1}emitNotTerminatedNamedEntity(){var t;const{result:e,decodeTree:n}=this,i=(n[e]&B.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,i,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,e,n){const{decodeTree:i}=this;return this.emitCodePoint(1===e?i[t]&~B.VALUE_LENGTH:i[t+1],n),3===e&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case V.NamedEntity:return 0===this.result||this.decodeMode===Y.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}}function Z(t){let e="";const n=new j(t,(t=>e+=z(t)));return function(t,i){let r=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(r,o),n.startEntity(i);const s=n.write(t,o+1);if(s<0){r=o+n.end();break}r=o+s,o=0===s?r+1:r}const s=e+t.slice(r);return e="",s}}function $(t,e,n,i){const r=(e&B.BRANCH_LENGTH)>>7,o=e&B.JUMP_TABLE;if(0===r)return 0!==o&&i===o?n:-1;if(o){const e=i-o;return e<0||e>=r?-1:t[n+e]-1}let s=n,a=s+r-1;for(;s<=a;){const e=s+a>>>1,n=t[e];if(ni))return t[e+r];a=e-1}}return-1}const U=Z(D);function G(t,e=Y.Legacy){return U(t,e)}function q(t){for(let e=1;e'"]/g,J),Q(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Q(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));const K=Object.prototype.hasOwnProperty;function X(t,e){return K.call(t,e)}function tt(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function et(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function nt(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||!(65535&~t&&65534!=(65535&t))||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function it(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const rt=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ot=new RegExp(rt.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),st=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function at(t){return t.indexOf("\\")<0?t:t.replace(rt,"$1")}function lt(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(ot,(function(t,e,n){return e||function(t,e){if(35===e.charCodeAt(0)&&st.test(e)){const n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return nt(n)?it(n):t}const n=G(t);return n!==t?n:t}(t,n)}))}const ut=/[&<>"]/,ct=/[&<>"]/g,dt={"&":"&","<":"<",">":">",'"':"""};function ht(t){return dt[t]}function pt(t){return ut.test(t)?t.replace(ct,ht):t}const gt=/[.?*+^$[\]\\(){}|-]/g;function mt(t){return t.replace(gt,"\\$&")}function ft(t){switch(t){case 9:case 32:return!0}return!1}function vt(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function bt(t){return A.test(t)}function yt(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function _t(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const Ct={mdurl:i,ucmicro:r};function wt(t,e,n){let i,r,o,s;const a=t.posMax,l=t.pos;for(t.pos=e+1,i=1;t.pos32))return o;if(41===i){if(0===s)break;s--}r++}return e===r||0!==s||(o.str=lt(t.slice(e,r)),o.pos=r,o.ok=!0),o}function Mt(t,e,n){let i,r,o=0,s=e;const a={ok:!1,pos:0,lines:0,str:""};if(s>=n)return a;if(r=t.charCodeAt(s),34!==r&&39!==r&&40!==r)return a;for(s++,40===r&&(r=41);s"+pt(o.content)+""},Ot.code_block=function(t,e,n,i,r){const o=t[e];return""+pt(t[e].content)+"\n"},Ot.fence=function(t,e,n,i,r){const o=t[e],s=o.info?lt(o.info).trim():"";let a,l="",u="";if(s){const t=s.split(/(\s+)/g);l=t[0],u=t.slice(2).join("")}if(a=n.highlight&&n.highlight(o.content,l,u)||pt(o.content),0===a.indexOf("${a}\n`}return`
    ${a}
    \n`},Ot.image=function(t,e,n,i,r){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,i),r.renderToken(t,e,n)},Ot.hardbreak=function(t,e,n){return n.xhtmlOut?"
    \n":"
    \n"},Ot.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"
    \n":"
    \n":"\n"},Ot.text=function(t,e){return pt(t[e].content)},Ot.html_block=function(t,e){return t[e].content},Ot.html_inline=function(t,e){return t[e].content},kt.prototype.renderAttrs=function(t){let e,n,i;if(!t.attrs)return"";for(i="",e=0,n=t.attrs.length;e\n":">",r},kt.prototype.renderInline=function(t,e,n){let i="";const r=this.rules;for(let o=0,s=t.length;o=0&&(n=this.attrs[e][1]),n},At.prototype.attrJoin=function(t,e){const n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e};const Et=At;function It(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}It.prototype.Token=Et;const Dt=It,Lt=/\r\n?|\n/g,Ft=/\0/g;function Nt(t){return/^<\/a\s*>/i.test(t)}const zt=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Rt=/\((c|tm|r)\)/i,Bt=/\((c|tm|r)\)/gi,Ht={c:"©",r:"®",tm:"™"};function Vt(t,e){return Ht[e.toLowerCase()]}function Yt(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];"text"!==i.type||e||(i.content=i.content.replace(Bt,Vt)),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}function jt(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];"text"!==i.type||e||zt.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===i.type&&"auto"===i.info&&e--,"link_close"===i.type&&"auto"===i.info&&e++}}const Zt=/['"]/,$t=/['"]/g;function Ut(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function Gt(t,e){let n;const i=[];for(let r=0;r=0&&!(i[n].level<=s);n--);if(i.length=n+1,"text"!==o.type)continue;let a=o.content,l=0,u=a.length;t:for(;l=0)g=a.charCodeAt(c.index-1);else for(n=r-1;n>=0&&"softbreak"!==t[n].type&&"hardbreak"!==t[n].type;n--)if(t[n].content){g=t[n].content.charCodeAt(t[n].content.length-1);break}let m=32;if(l=48&&g<=57&&(h=d=!1),d&&h&&(d=f,h=v),d||h){if(h)for(n=i.length-1;n>=0;n--){let d=i[n];if(i[n].level=0;s--){const a=r[s];if("link_close"!==a.type){if("html_inline"===a.type&&(n=a.content,/^\s]/i.test(n)&&o>0&&o--,Nt(a.content)&&o++),!(o>0)&&"text"===a.type&&t.md.linkify.test(a.content)){const n=a.content;let o=t.md.linkify.match(n);const l=[];let u=a.level,c=0;o.length>0&&0===o[0].index&&s>0&&"text_special"===r[s-1].type&&(o=o.slice(1));for(let e=0;ec){const e=new t.Token("text","",0);e.content=n.slice(c,a),e.level=u,l.push(e)}const d=new t.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const h=new t.Token("text","",0);h.content=s,h.level=u,l.push(h);const p=new t.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=o[e].lastIndex}if(c=0;e--)"inline"===t.tokens[e].type&&(Rt.test(t.tokens[e].content)&&Yt(t.tokens[e].children),zt.test(t.tokens[e].content)&&jt(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&Zt.test(t.tokens[e].content)&&Gt(t.tokens[e].children,t)}],["text_join",function(t){let e,n;const i=t.tokens,r=i.length;for(let t=0;t0&&this.level++,this.tokens.push(i),i},Wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Wt.prototype.skipEmptyLines=function(t){for(let e=this.lineMax;te;)if(!ft(this.src.charCodeAt(--t)))return t+1;return t},Wt.prototype.skipChars=function(t,e){for(let n=this.src.length;tn;)if(e!==this.src.charCodeAt(--t))return t+1;return t},Wt.prototype.getLines=function(t,e,n,i){if(t>=e)return"";const r=new Array(e-t);for(let o=0,s=t;sn?new Array(t-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return r.join("")},Wt.prototype.Token=Et;const Kt=Wt;function Xt(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(n,i)}function te(t){const e=[],n=t.length;let i=0,r=t.charCodeAt(i),o=!1,s=0,a="";for(;i=i)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=i)return-1;if(o=t.src.charCodeAt(r++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(r-n>=10)return-1}return r`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",re="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",oe=new RegExp("^(?:"+ie+"|"+re+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),se=new RegExp("^(?:"+ie+"|"+re+")"),ae=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(se.source+"\\s*$"),/^$/,!1]],le=[["table",function(t,e,n,i){if(e+2>n)return!1;let r=e+1;if(t.sCount[r]=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;const s=t.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s)return!1;if(o>=t.eMarks[r])return!1;const a=t.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a&&!ft(a))return!1;if(45===s&&ft(a))return!1;for(;o=4)return!1;u=te(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(i)return!0;const h=t.parentType;t.parentType="table";const p=t.md.block.ruler.getRules("blockquote"),g=[e,0];t.push("table_open","table",1).map=g,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e=4)break;u=te(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),r===e+2&&(t.push("tbody_open","tbody",1).map=m=[e+2,0]),t.push("tr_open","tr",1).map=[r,r+1];for(let e=0;e=4))break;i++,r=i}t.line=r;const o=t.push("code_block","code",0);return o.content=t.getLines(e,r,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}],["fence",function(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(r+3>o)return!1;const s=t.src.charCodeAt(r);if(126!==s&&96!==s)return!1;let a=r;r=t.skipChars(r,s);let l=r-a;if(l<3)return!1;const u=t.src.slice(a,r),c=t.src.slice(r,o);if(96===s&&c.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let d=e,h=!1;for(;d++,!(d>=n||(r=a=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],r=4||(r=t.skipChars(r,s),r-a=4)return!1;if(62!==t.src.charCodeAt(r))return!1;if(i)return!0;const a=[],l=[],u=[],c=[],d=t.md.block.ruler.getRules("blockquote"),h=t.parentType;t.parentType="blockquote";let p,g=!1;for(p=e;p=o)break;if(62===t.src.charCodeAt(r++)&&!e){let e,n,i=t.sCount[p]+1;32===t.src.charCodeAt(r)?(r++,i++,n=!1,e=!0):9===t.src.charCodeAt(r)?(e=!0,(t.bsCount[p]+i)%4==3?(r++,i++,n=!1):n=!0):e=!1;let s=i;for(a.push(t.bMarks[p]),t.bMarks[p]=r;r=o,l.push(t.bsCount[p]),t.bsCount[p]=t.sCount[p]+1+(e?1:0),u.push(t.sCount[p]),t.sCount[p]=s-i,c.push(t.tShift[p]),t.tShift[p]=r-t.bMarks[p];continue}if(g)break;let i=!1;for(let e=0,r=d.length;e";const v=[e,0];f.map=v,t.md.block.tokenize(t,e,p),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=s,t.parentType=h,v[1]=t.line;for(let n=0;n=4)return!1;let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;o=4)return!1;if(t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]=t.blkIndent&&(p=!0),(h=ne(t,l))>=0){if(c=!0,s=t.bMarks[l]+t.tShift[l],d=Number(t.src.slice(s,h-1)),p&&1!==d)return!1}else{if(!((h=ee(t,l))>=0))return!1;c=!1}if(p&&t.skipSpaces(h)>=t.eMarks[l])return!1;if(i)return!0;const g=t.src.charCodeAt(h-1),m=t.tokens.length;c?(a=t.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=t.push("bullet_list_open","ul",1);const f=[l,0];a.map=f,a.markup=String.fromCharCode(g);let v=!1;const b=t.md.block.ruler.getRules("list"),y=t.parentType;for(t.parentType="list";l=r?1:i-e,p>4&&(p=1);const m=e+p;a=t.push("list_item_open","li",1),a.markup=String.fromCharCode(g);const f=[l,0];a.map=f,c&&(a.info=t.src.slice(s,h-1));const y=t.tight,_=t.tShift[l],C=t.sCount[l],w=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=m,t.tight=!0,t.tShift[l]=d-t.bMarks[l],t.sCount[l]=i,d>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),t.tight&&!v||(u=!1),v=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=w,t.tShift[l]=_,t.sCount[l]=C,t.tight=y,a=t.push("list_item_close","li",-1),a.markup=String.fromCharCode(g),l=t.line,f[1]=l,l>=n)break;if(t.sCount[l]=4)break;let x=!1;for(let e=0,i=b.length;e=4)return!1;if(91!==t.src.charCodeAt(o))return!1;for(;++o3)continue;if(t.sCount[a]<0)continue;let e=!1;for(let n=0,i=u.length;n=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(r))return!1;let s=t.src.slice(r,o),a=0;for(;a=4)return!1;let s=t.src.charCodeAt(r);if(35!==s||r>=o)return!1;let a=1;for(s=t.src.charCodeAt(++r);35===s&&r6||rr&&ft(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const u=t.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[e,t.line];const c=t.push("inline","",0);return c.content=t.src.slice(r,o).trim(),c.map=[e,t.line],c.children=[],t.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,n){const i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const r=t.parentType;t.parentType="paragraph";let o,s=0,a=e+1;for(;a3)continue;if(t.sCount[a]>=t.blkIndent){let e=t.bMarks[a]+t.tShift[a];const n=t.eMarks[a];if(e=n))){s=61===o?1:2;break}}if(t.sCount[a]<0)continue;let e=!1;for(let r=0,o=i.length;r3)continue;if(t.sCount[o]<0)continue;let e=!1;for(let r=0,s=i.length;r=n))&&!(t.sCount[s]=o){t.line=n;break}const e=t.line;let l=!1;for(let o=0;o=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),s=t.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i},de.prototype.scanDelims=function(t,e){let n,i,r=!0,o=!0;const s=this.posMax,a=this.src.charCodeAt(t),l=t>0?this.src.charCodeAt(t-1):32;let u=t;for(;u?@[]^_`{|}~-".split("").forEach((function(t){me[t.charCodeAt(0)]=1}));const ve={tokenize:function(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e)return!1;if(126!==i)return!1;const r=t.scanDelims(t.pos,!0);let o=r.length;const s=String.fromCharCode(i);if(o<2)return!1;let a;o%2&&(a=t.push("text","",0),a.content=s,o--);for(let e=0;e=0;n--){const i=e[n];if(95!==i.marker&&42!==i.marker)continue;if(-1===i.end)continue;const r=e[i.end],o=n>0&&e[n-1].end===i.end+1&&e[n-1].marker===i.marker&&e[n-1].token===i.token-1&&e[i.end+1].token===r.token+1,s=String.fromCharCode(i.marker),a=t.tokens[i.token];a.type=o?"strong_open":"em_open",a.tag=o?"strong":"em",a.nesting=1,a.markup=o?s+s:s,a.content="";const l=t.tokens[r.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?s+s:s,l.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[i.end+1].token].content="",n--)}}const ye={tokenize:function(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e)return!1;if(95!==i&&42!==i)return!1;const r=t.scanDelims(t.pos,42===i);for(let e=0;e\x00-\x20]*)$/,we=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xe=/^&([a-z][a-z0-9]{1,31});/i;function Me(t){const e={},n=t.length;if(!n)return;let i=0,r=-2;const o=[];for(let s=0;sa;l-=o[l]+1){const e=t[l];if(e.marker===n.marker&&e.open&&e.end<0){let i=!1;if((e.close||n.open)&&(e.length+n.length)%3==0&&(e.length%3==0&&n.length%3==0||(i=!0)),!i){const i=l>0&&!t[l-1].open?o[l-1]+1:0;o[s]=s-l+i,o[l]=i,n.open=!1,e.end=s,e.close=!1,u=-1,r=-2;break}}}-1!==u&&(e[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}const Oe=[["text",function(t,e){let n=t.pos;for(;n0)return!1;const n=t.pos;if(n+3>t.posMax)return!1;if(58!==t.src.charCodeAt(n))return!1;if(47!==t.src.charCodeAt(n+1))return!1;if(47!==t.src.charCodeAt(n+2))return!1;const i=t.pending.match(ge);if(!i)return!1;const r=i[1],o=t.md.linkify.matchAtStart(t.src.slice(n-r.length));if(!o)return!1;let s=o.url;if(s.length<=r.length)return!1;s=s.replace(/\*+$/,"");const a=t.md.normalizeLink(s);if(!t.md.validateLink(a))return!1;if(!e){t.pending=t.pending.slice(0,-r.length);const e=t.push("link_open","a",1);e.attrs=[["href",a]],e.markup="linkify",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(s);const n=t.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return t.pos+=s.length-r.length,!0}],["newline",function(t,e){let n=t.pos;if(10!==t.src.charCodeAt(n))return!1;const i=t.pending.length-1,r=t.posMax;if(!e)if(i>=0&&32===t.pending.charCodeAt(i))if(i>=1&&32===t.pending.charCodeAt(i-1)){let e=i-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n=i)return!1;let r=t.src.charCodeAt(n);if(10===r){for(e||t.push("hardbreak","br",0),n++;n=55296&&r<=56319&&n+1=56320&&e<=57343&&(o+=t.src[n+1],n++)}const s="\\"+o;if(!e){const e=t.push("text_special","",0);r<256&&0!==me[r]?e.content=o:e.content=s,e.markup=s,e.info="escape"}return t.pos=n+1,!0}],["backticks",function(t,e){let n=t.pos;if(96!==t.src.charCodeAt(n))return!1;const i=n;n++;const r=t.posMax;for(;n=d)return!1;if(l=g,r=t.md.helpers.parseLinkDestination(t.src,g,t.posMax),r.ok){for(s=t.md.normalizeLink(r.str),t.md.validateLink(s)?g=r.pos:s="",l=g;g=d||41!==t.src.charCodeAt(g))&&(u=!0),g++}if(u){if(void 0===t.env.references)return!1;if(g=0?i=t.src.slice(l,g++):g=p+1):g=p+1,i||(i=t.src.slice(h,p)),o=t.env.references[_t(i)],!o)return t.pos=c,!1;s=o.href,a=o.title}if(!e){t.pos=h,t.posMax=p;const e=[["href",s]];t.push("link_open","a",1).attrs=e,a&&e.push(["title",a]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=g,t.posMax=d,!0}],["image",function(t,e){let n,i,r,o,s,a,l,u,c="";const d=t.pos,h=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;const p=t.pos+2,g=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(g<0)return!1;if(o=g+1,o=h)return!1;for(u=o,a=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),a.ok&&(c=t.md.normalizeLink(a.str),t.md.validateLink(c)?o=a.pos:c=""),u=o;o=h||41!==t.src.charCodeAt(o))return t.pos=d,!1;o++}else{if(void 0===t.env.references)return!1;if(o=0?r=t.src.slice(u,o++):o=g+1):o=g+1,r||(r=t.src.slice(p,g)),s=t.env.references[_t(r)],!s)return t.pos=d,!1;c=s.href,l=s.title}if(!e){i=t.src.slice(p,g);const e=[];t.md.inline.parse(i,t.md,t.env,e);const n=t.push("image","img",0),r=[["src",c],["alt",""]];n.attrs=r,n.children=e,n.content=i,l&&r.push(["title",l])}return t.pos=o,t.posMax=h,!0}],["autolink",function(t,e){let n=t.pos;if(60!==t.src.charCodeAt(n))return!1;const i=t.pos,r=t.posMax;for(;;){if(++n>=r)return!1;const e=t.src.charCodeAt(n);if(60===e)return!1;if(62===e)break}const o=t.src.slice(i+1,n);if(Ce.test(o)){const n=t.md.normalizeLink(o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);const i=t.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return t.pos+=o.length+2,!0}if(_e.test(o)){const n=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto",t.push("text","",0).content=t.md.normalizeLinkText(o);const i=t.push("link_close","a",-1);i.markup="autolink",i.info="auto"}return t.pos+=o.length+2,!0}return!1}],["html_inline",function(t,e){if(!t.md.options.html)return!1;const n=t.posMax,i=t.pos;if(60!==t.src.charCodeAt(i)||i+2>=n)return!1;const r=t.src.charCodeAt(i+1);if(33!==r&&63!==r&&47!==r&&!function(t){const e=32|t;return e>=97&&e<=122}(r))return!1;const o=t.src.slice(i).match(oe);if(!o)return!1;if(!e){const e=t.push("html_inline","",0);e.content=o[0],s=e.content,/^\s]/i.test(s)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(e.content)&&t.linkLevel--}var s;return t.pos+=o[0].length,!0}],["entity",function(t,e){const n=t.pos,i=t.posMax;if(38!==t.src.charCodeAt(n))return!1;if(n+1>=i)return!1;if(35===t.src.charCodeAt(n+1)){const i=t.src.slice(n).match(we);if(i){if(!e){const e="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),n=t.push("text_special","",0);n.content=nt(e)?it(e):it(65533),n.markup=i[0],n.info="entity"}return t.pos+=i[0].length,!0}}else{const i=t.src.slice(n).match(xe);if(i){const n=G(i[0]);if(n!==i[0]){if(!e){const e=t.push("text_special","",0);e.content=n,e.markup=i[0],e.info="entity"}return t.pos+=i[0].length,!0}}}return!1}]],ke=[["balance_pairs",function(t){const e=t.tokens_meta,n=t.tokens_meta.length;Me(t.delimiters);for(let t=0;t0&&i++,"text"===r[e].type&&e+1=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;s||t.pos++,o[e]=t.pos},Se.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,i=t.posMax,r=t.md.options.maxNesting;for(;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Se.prototype.parse=function(t,e,n,i){const r=new this.State(t,e,n,i);this.tokenize(r);const o=this.ruler2.getRules(""),s=o.length;for(let t=0;t=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},Fe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ne="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ze(t){const e=t.re=function(t){const e={};return t=t||{},e.src_Any=S.source,e.src_Cc=P.source,e.src_Z=I.source,e.src_P=A.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}(t.__opts__),n=t.__tlds__.slice();function i(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||n.push(Fe),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");const r=[];function o(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){const n=t.__schemas__[e];if(null===n)return;const i={validate:null,link:null};if(t.__compiled__[e]=i,"[object Object]"===Ae(n))return"[object RegExp]"!==Ae(n.validate)?Ee(n.validate)?i.validate=n.validate:o(e,n):i.validate=function(t){return function(e,n){const i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}(n.validate),void(Ee(n.normalize)?i.normalize=n.normalize:n.normalize?o(e,n):i.normalize=function(t,e){e.normalize(t)});"[object String]"!==Ae(n)?o(e,n):r.push(e)})),r.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};const s=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(Ie).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function Re(t,e){const n=t.__index__,i=t.__last_index__,r=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function Be(t,e){const n=new Re(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function He(t,e){if(!(this instanceof He))return new He(t,e);var n;e||(n=t,Object.keys(n||{}).reduce((function(t,e){return t||De.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=Te({},De,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Te({},Le,t),this.__compiled__={},this.__tlds__=Ne,this.__tlds_replaced__=!1,this.re={},ze(this)}He.prototype.add=function(t,e){return this.__schemas__[t]=e,ze(this),this},He.prototype.set=function(t){return this.__opts__=Te(this.__opts__,t),this},He.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,n,i,r,o,s,a,l,u;if(this.re.schema_test.test(t))for(a=this.re.schema_search,a.lastIndex=0;null!==(e=a.exec(t));)if(r=this.testSchemaAt(t,e[2],a.lastIndex),r){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=t.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(i=t.match(this.re.email_fuzzy))&&(o=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0},He.prototype.pretest=function(t){return this.re.pretest.test(t)},He.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},He.prototype.match=function(t){const e=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(Be(this,n)),n=this.__last_index__);let i=n?t.slice(n):t;for(;this.test(i);)e.push(Be(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return e.length?e:null},He.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const n=this.testSchemaAt(t,e[2],e[0].length);return n?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+n,Be(this,0)):null},He.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,n){return t!==n[e-1]})).reverse(),ze(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ze(this),this)},He.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},He.prototype.onCompile=function(){};const Ve=He,Ye=2147483647,je=36,Ze=/^xn--/,$e=/[^\0-\x7F]/,Ue=/[\x2E\u3002\uFF0E\uFF61]/g,Ge={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},qe=Math.floor,Je=String.fromCharCode;function Qe(t){throw new RangeError(Ge[t])}function We(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]);const r=function(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}((t=t.replace(Ue,".")).split("."),e).join(".");return i+r}function Ke(t){const e=[];let n=0;const i=t.length;for(;n=55296&&r<=56319&&n>1,t+=qe(t/e);t>455;i+=je)t=qe(t/35);return qe(i+36*t/(t+38))},en=function(t){const e=[],n=t.length;let i=0,r=128,o=72,s=t.lastIndexOf("-");s<0&&(s=0);for(let n=0;n=128&&Qe("not-basic"),e.push(t.charCodeAt(n));for(let l=s>0?s+1:0;l=n&&Qe("invalid-input");const s=(a=t.charCodeAt(l++))>=48&&a<58?a-48+26:a>=65&&a<91?a-65:a>=97&&a<123?a-97:je;s>=je&&Qe("invalid-input"),s>qe((Ye-i)/e)&&Qe("overflow"),i+=s*e;const u=r<=o?1:r>=o+26?26:r-o;if(sqe(Ye/c)&&Qe("overflow"),e*=c}const u=e.length+1;o=tn(i-s,u,0==s),qe(i/u)>Ye-r&&Qe("overflow"),r+=qe(i/u),i%=u,e.splice(i++,0,r)}var a;return String.fromCodePoint(...e)},nn=function(t){const e=[],n=(t=Ke(t)).length;let i=128,r=0,o=72;for(const n of t)n<128&&e.push(Je(n));const s=e.length;let a=s;for(s&&e.push("-");a=i&&eqe((Ye-r)/l)&&Qe("overflow"),r+=(n-i)*l,i=n;for(const n of t)if(nYe&&Qe("overflow"),n===i){let t=r;for(let n=je;;n+=je){const i=n<=o?1:n>=o+26?26:n-o;if(tString.fromCodePoint(...t)},decode:en,encode:nn,toASCII:function(t){return We(t,(function(t){return $e.test(t)?"xn--"+nn(t):t}))},toUnicode:function(t){return We(t,(function(t){return Ze.test(t)?en(t.slice(4).toLowerCase()):t}))}},on={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},sn=/^(vbscript|javascript|file|data):/,an=/^data:image\/(gif|png|jpeg|webp);/;function ln(t){const e=t.trim().toLowerCase();return!sn.test(e)||an.test(e)}const un=["http:","https:","mailto:"];function cn(t){const e=k(t,!0);if(e.hostname&&(!e.protocol||un.indexOf(e.protocol)>=0))try{e.hostname=rn.toASCII(e.hostname)}catch(t){}return h(p(e))}function dn(t){const e=k(t,!0);if(e.hostname&&(!e.protocol||un.indexOf(e.protocol)>=0))try{e.hostname=rn.toUnicode(e.hostname)}catch(t){}return u(p(e),u.defaultChars+"%")}function hn(t,e){if(!(this instanceof hn))return new hn(t,e);e||W(t)||(e=t||{},t="default"),this.inline=new Pe,this.block=new ce,this.core=new Qt,this.renderer=new St,this.linkify=new Ve,this.validateLink=ln,this.normalizeLink=cn,this.normalizeLinkText=dn,this.utils=o,this.helpers=tt({},s),this.options={},this.configure(t),e&&this.set(e)}hn.prototype.set=function(t){return tt(this.options,t),this},hn.prototype.configure=function(t){const e=this;if(W(t)){const e=t;if(!(t=on[e]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)})),this},hn.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));const i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},hn.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));const i=t.filter((function(t){return n.indexOf(t)<0}));if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},hn.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},hn.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},hn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},hn.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},hn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const pn=hn},28699:(t,e,n)=>{n.d(e,{y$:()=>w,_l:()=>x});var i=n(74788),r=n(26215),o=n(59193),s=n(40205),a=n(21571),l=n(97968),u=n(42569),c=n(45435),d=n(88002),h=n(15257),p=n(43190),g=n(68307),m=n(5304),f=n(12057),v=n(91211);const b=new i.OlP("HIGHLIGHT_OPTIONS");let y=(()=>{class t{constructor(t,e,n){var i;this.doc=t,this._options=n,this._ready=new r.X(null),this.ready=this._ready.asObservable().pipe((0,c.h)((t=>!!t)),(0,d.U)((t=>t)),(0,h.q)(1)),(0,f.NF)(e)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe((0,p.w)((e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe((0,g.b)((()=>this._ready.next(e))))):(this._ready.next(e),o.E))),(0,m.K)((t=>(console.error("[HLJS] ",t),o.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,s._)((()=>"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,s._)((()=>"The highlighting languages were imported they are not needed!"));if(this._options.coreLibraryLoader&&!this._options.languages)return(0,s._)((()=>"The highlighting languages were not imported!"));if(!this._options.coreLibraryLoader&&this._options.languages)return(0,s._)((()=>"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,p.w)((t=>this._loadLanguages(t))))}return(0,s._)((()=>"Highlight.js library was not imported!"))}_loadLanguages(t){const e=Object.entries(this._options.languages).map((([e,n])=>_(n()).pipe((0,g.b)((n=>t.registerLanguage(e,n))))));return(0,a.$R)(...e).pipe((0,d.U)((()=>t)))}loadCoreLibrary(){return _(this._options.coreLibraryLoader())}loadFullLibrary(){return _(this._options.fullLibraryLoader())}loadLineNumbers(){return _(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(f.K0),i.LFG(i.Lbi),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})();const _=t=>(0,l.D)(t).pipe((0,c.h)((t=>!!t&&!!t.default)),(0,d.U)((t=>t.default)));let C=(()=>{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,d.U)((i=>i.highlight(t,{language:e,ignoreIllegals:n}))))}highlightAuto(t,e){return this._loader.ready.pipe((0,d.U)((n=>n.highlightAuto(t,e))))}highlightElement(t){return this._loader.ready.pipe((0,d.U)((e=>e.highlightElement(t))))}highlightAll(){return this._loader.ready.pipe((0,d.U)((t=>t.highlightAll())))}configure(t){return this._loader.ready.pipe((0,d.U)((e=>e.configure(t))))}registerLanguage(t,e){return this._loader.ready.pipe((0,g.b)((n=>n.registerLanguage(t,e))))}unregisterLanguage(t){return this._loader.ready.pipe((0,g.b)((e=>e.unregisterLanguage(t))))}registerAliases(t,{languageName:e}){return this._loader.ready.pipe((0,g.b)((n=>n.registerAliases(t,{languageName:e}))))}listLanguages(){return this._loader.ready.pipe((0,d.U)((t=>t.listLanguages())))}getLanguage(t){return this._loader.ready.pipe((0,d.U)((e=>e.getLanguage(t))))}safeMode(){return this._loader.ready.pipe((0,d.U)((t=>t.safeMode())))}debugMode(){return this._loader.ready.pipe((0,d.U)((t=>t.debugMode())))}lineNumbersBlock(t){return this._loader.ready.pipe((0,c.h)((t=>!!t.lineNumbersBlock)),(0,g.b)((e=>e.lineNumbersBlock(t))))}}return t.ɵfac=function(e){return new(e||t)(i.LFG(y),i.LFG(b,8))},t.ɵprov=i.Yz7({token:t,factory:t.ɵfac,providedIn:"root"}),t})(),w=(()=>{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(),u.Z.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){u.Z.schedule((()=>this._nativeElement.textContent=t))}setInnerHTML(t){u.Z.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(C),i.Y36(v.H7),i.Y36(b,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})(),x=(()=>{class t{}return t.ɵfac=function(e){return new(e||t)},t.ɵmod=i.oAB({type:t}),t.ɵinj=i.cJS({}),t})()},97582:(t,e,n)=>{function i(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=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function o(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))}n.d(e,{_T:()=>i,gn:()=>r,mG:()=>o}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},t=>{t(t.s=2005)}]); \ No newline at end of file diff --git a/runtime.998c7a2b09670d248318.js b/runtime.998c7a2b09670d248318.js deleted file mode 100644 index fe5c30b08..000000000 --- a/runtime.998c7a2b09670d248318.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e,a,d,c,f,b,t={},r={};function o(e){var a=r[e];if(void 0!==a)return a.exports;var d=r[e]={exports:{}};return t[e].call(d.exports,d,d.exports,o),d.exports}o.m=t,e=[],o.O=(a,d,c,f)=>{if(!d){var b=1/0;for(i=0;i=f)&&Object.keys(o.O).every((e=>o.O[e](d[r])))?d.splice(r--,1):(t=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[d,c,f]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var f=Object.create(null);o.r(f);var b={};a=a||[null,d({}),d([]),d(d)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=d(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,o.d(f,b),f},o.d=(e,a)=>{for(var d in a)o.o(a,d)&&!o.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,d)=>(o.f[d](e,a),a)),[])),o.u=e=>(8592===e?"common":e)+"."+{52:"2402ce50a8fbac9370d0",122:"53e1b3be69041587d8fb",250:"b733e8bc8f558384c7da",295:"50782b763e4483ebdb17",456:"3188e78a70d9a5063003",517:"6231d14d37d840138773",585:"f21a56891ad1bdaf7927",668:"ad450f953726cd39c291",740:"60a9341a19d1f96ceeed",760:"fd2daf2a3e6d2bed9933",961:"1629b86fd96b50ff619d",965:"75d5ee88f7e15b324615",1023:"3ff29f1dbcd2282c2dc8",1089:"1b81507df0103b4678ec",1091:"1216d8fae44b0464d7e1",1197:"0fe787db14568ca3e7d7",1239:"b3bc537cbb088de44ec9",1318:"d46bbea74ffeb9638375",1320:"53a606393e6dcbe6c955",1374:"c8ec5183b1573c38e151",1397:"72e0609ac6cca0ade9b0",1407:"dc4fec35e94b9a27fa91",1447:"f4f1a32af49b39d39934",1556:"0466e8eba97511558467",1628:"be36d415c9418639748e",1646:"4849b6218956185b71d2",1685:"f6c490484faa767fba72",1720:"88c2278e5861261f9182",1837:"18f8a363d72f05e49f2a",1919:"aa9c30fc15c8df4d135a",1947:"8ed4437b9d8f6024bcdf",1975:"98fac8b6ee2dffb1bedb",2163:"9b43cf1dce62136fb55a",2180:"0d7db9f62b57c6f80b61",2206:"ccce8846b12bba153eb5",2280:"5d34e171dc8c55e078d5",2291:"4af2bcbadc519f3bec12",2504:"88a437fc5c551f83f6ac",2520:"c707f476af2349f20893",2590:"bfe7b4cc291626f5a95f",2609:"84f928e79e6625e6b9f1",2785:"b638f2d17e3b352275de",2797:"7a8b62c7e626678d4445",2809:"a89014ec96bec62bff27",2889:"f6b598326d0bb9b476c9",2948:"2ae9422b2d1c55b4cb20",2954:"cfd993d5bfabc022e821",3065:"dab5b2a9edaa4c4d4aea",3243:"f365a7616779de04307c",3270:"cf6d551500932d4d35f1",3336:"c5553ce871f24e245b80",3346:"634f8103a381ac1f44ca",3505:"a6a1c7cdf977dd098d3c",3625:"1a6bfc909c9d1016cafa",3705:"7cbda165d6e4faeb7aca",3725:"059ab9340c9df2333572",3732:"bde7f1296bd59d541533",3851:"c3a64ee7ce8c32294645",3878:"25a4f56963938f54bae2",3979:"e5964390b826d2991cae",4254:"33398fd5b02735c564f4",4334:"b4f0a8e36216a9e14cfe",4401:"648e12ffc0528d04cb98",4417:"d5e2d3497fa2c699af2d",4430:"8df640fbe922392b885f",4529:"039175a263b1d46c0fa4",4661:"f295b953e55fda4c00fe",4941:"bafa519b52caacf26479",4992:"1166dac4ce958ec6b5e6",5034:"96b00ba3932deba2f1fb",5110:"2f12d9405f6ae0955dde",5183:"16dd9d5f4f15b7caa52f",5213:"0d57d21a153912eef091",5227:"9496cbf66e50740fd473",5255:"edb24a0699207c4bf99a",5445:"243ea18744dcab12196e",5468:"d6cdb31583e83ad8ae8c",5496:"875499bddc862172efba",5499:"1c11445aa18eaae08167",5501:"7b7821935e81baf526f7",5557:"86dcba00e525a9adedca",5625:"ef24fca4af71b7a75bd6",5659:"42ef8dec7e4554c263db",5681:"d70cb80d5fe10a538cd7",5776:"4ec082ca459a070b5acf",5833:"0a7665132d1510262835",5901:"4aa3cb8df1e3672a6582",5935:"9027a38acdac49de4b85",5988:"29475e73518bea708428",5991:"e4492ffcfa116a1f4742",6014:"0a1cf2b5d8a232b4a8c6",6036:"dc719cc87abaf1cf6816",6042:"f546c4eb39a8e5c0aad1",6158:"c3c34de6f2f3ca946a5a",6233:"b008b2c2277c0b892c6c",6240:"ce6cb48e7752276f5ffc",6416:"787306864446cace320d",6504:"939850b31d46bdbefdfd",6510:"a24f73253841f80793bf",6530:"b0ce6d5d5d44938cf6d6",6549:"637eb42da74c2e3b3707",6612:"d2e0d63de73a95139120",6633:"abc6a91ed20a60c1a1a1",6847:"9ab2113227ec56dbb752",6921:"f3c2cd64190051588304",6949:"4078bb4fb37f2a72cb29",6969:"63e163069fbed394aaaa",7013:"3f868693a4be5f2e2dcd",7090:"024f8993ad763edbb9f4",7133:"b53bcc0adbfd736dc5dc",7145:"9a5e65852ff12571b6bd",7147:"94e777a5b9fd43c3c2ae",7170:"1175cb3f95ebf5d6cc6f",7195:"aaac9005caa42fa4f475",7207:"8486c9269624016d2269",7289:"f2fa42ec8df416a51afc",7305:"4cc1abba95b286f3e3c7",7398:"25408298719e402872b2",7410:"8138708cda6d84bd3f40",7573:"74754d39bc0e793b4a76",7681:"6efab7d97ca30c9a4f2a",7703:"392f2d7d45404d1ae7ae",7726:"5374fda1bb30c604464e",7751:"9a78a0f09fcbbf92d672",7802:"33f05eab7265edc1fa72",7880:"d20181c1bb669b6180ca",7904:"620879bfced1134b5b8d",7932:"ffca7fc2b02c8bfcfa20",7966:"a40b96e8b79ae4dcbe03",7976:"58478b695a391cb72175",7991:"d05f825e2d6fa5c80e87",8033:"05ce73d2071bfa6e46d0",8078:"c4aea44b9340f3822770",8199:"4b235721d9c02d4e741b",8229:"a486e5d101ef89c0923b",8275:"e3c06ee3915ab25adff6",8430:"a3bf3a975cf99e805e6b",8490:"f368ca2b90f62004d408",8499:"9a9531d0a35047ba1e7d",8500:"a3c159e758973f5ffec9",8537:"2a1b1a65bde18056c703",8592:"0181c0cdf25bf5403f6c",8606:"0f21d0a620d9bce03cff",8645:"527991cde05c7de42050",8669:"66a53d12839d04af0736",8681:"f9ed48ecc9373ea2cc19",8712:"494a027de6d38ee9e44e",8760:"dd3603ab640439fef834",8785:"7885b511b8b242ee4b42",8817:"ae6ac19f3b02852665b8",8840:"9a7dc9a64ba5f276d522",8841:"2d6a7a41c3c4b2fc430c",8876:"a38321abd950c4a6424f",8889:"68c42da83da3833c3a92",8929:"7655052a06d4688ebf1d",8932:"670c51b15d55e2fa42ae",8934:"4770400a01b854104ab1",8954:"ddec6eb9e78fe0fe5846",9019:"920a7e6d9c330317fd8a",9095:"466c4d34d2c3783a72bf",9155:"0632315e9df336d8ed22",9241:"b1878c03ab50c1671b21",9284:"a569e2a5b348212320a2",9289:"78b416e270fb1116ef1f",9345:"9672d17f7e294aede21a",9478:"6e5d52d22b17acb7d104",9507:"2a174f4d47d5d912c065",9544:"4059665b329d5a5661e0",9624:"0ba3a24bca8a727cd16e",9638:"676db5c1f9c701b73842",9668:"ea572dc532465e38f2a3",9746:"d768110bd4ef5de36856",9762:"7c5a9eb9685080fc06e3",9869:"686535a71408a042a24f",9889:"8d5bbe938a3151c44776",9918:"76599a584cd5be55c50b"}[e]+".js",o.miniCssF=e=>"styles.dfc022b7d18da510fb91.css",o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},f="tui-editor:",o.l=(e,a,d,b)=>{if(c[e])c[e].push(a);else{var t,r;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var f=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(d))),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),r&&document.head.appendChild(t)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.tu=e=>(void 0===b&&(b={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(b=trustedTypes.createPolicy("angular#bundler",b))),b.createScriptURL(e)),o.p="",(()=>{var e={3666:0};o.f.j=(a,d)=>{var c=o.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(3666!=a){var f=new Promise(((d,f)=>c=e[a]=[d,f]));d.push(c[2]=f);var b=o.p+o.u(a),t=new Error;o.l(b,(d=>{if(o.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var f=d&&("load"===d.type?"missing":d.type),b=d&&d.target&&d.target.src;t.message="Loading chunk "+a+" failed.\n("+f+": "+b+")",t.name="ChunkLoadError",t.type=f,t.request=b,c[1](t)}}),"chunk-"+a,a)}else e[a]=0},o.O.j=a=>0===e[a];var a=(a,d)=>{var c,f,[b,t,r]=d,n=0;for(c in t)o.o(t,c)&&(o.m[c]=t[c]);if(r)var i=r(o);for(a&&a(d);n{var e,a,d,f,c,b,t={},r={};function o(e){var a=r[e];if(void 0!==a)return a.exports;var d=r[e]={exports:{}};return t[e].call(d.exports,d,d.exports,o),d.exports}o.m=t,e=[],o.O=(a,d,f,c)=>{if(!d){var b=1/0;for(i=0;i=c)&&Object.keys(o.O).every((e=>o.O[e](d[r])))?d.splice(r--,1):(t=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[d,f,c]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var c=Object.create(null);o.r(c);var b={};a=a||[null,d({}),d([]),d(d)];for(var t=2&f&&e;"object"==typeof t&&!~a.indexOf(t);t=d(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,o.d(c,b),c},o.d=(e,a)=>{for(var d in a)o.o(a,d)&&!o.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,d)=>(o.f[d](e,a),a)),[])),o.u=e=>(8592===e?"common":e)+"."+{52:"2402ce50a8fbac9370d0",122:"53e1b3be69041587d8fb",250:"b733e8bc8f558384c7da",295:"50782b763e4483ebdb17",456:"3188e78a70d9a5063003",517:"926aa590f7c16b93cdc9",585:"f21a56891ad1bdaf7927",668:"eaead91a8682809a7d29",740:"60a9341a19d1f96ceeed",760:"2228b3436883a77a0991",961:"1629b86fd96b50ff619d",965:"8513642794aefbab15bd",1023:"3ff29f1dbcd2282c2dc8",1089:"1b81507df0103b4678ec",1091:"1216d8fae44b0464d7e1",1197:"0fe787db14568ca3e7d7",1239:"b3bc537cbb088de44ec9",1318:"d62e20db5d6bfa7ed59a",1320:"087934738fb79ba17c67",1374:"c8ec5183b1573c38e151",1397:"72e0609ac6cca0ade9b0",1407:"dc4fec35e94b9a27fa91",1447:"f4f1a32af49b39d39934",1556:"0466e8eba97511558467",1628:"be36d415c9418639748e",1646:"4849b6218956185b71d2",1685:"f6c490484faa767fba72",1720:"88c2278e5861261f9182",1837:"18f8a363d72f05e49f2a",1919:"aa9c30fc15c8df4d135a",1947:"8ed4437b9d8f6024bcdf",1975:"190f33887501dd87155c",2163:"9b43cf1dce62136fb55a",2180:"0d7db9f62b57c6f80b61",2206:"ccce8846b12bba153eb5",2280:"5d34e171dc8c55e078d5",2291:"4c6604f104cfe2b206d5",2504:"88a437fc5c551f83f6ac",2520:"76a3b82edb39860d812d",2590:"bfe7b4cc291626f5a95f",2609:"84f928e79e6625e6b9f1",2785:"b638f2d17e3b352275de",2797:"7a8b62c7e626678d4445",2809:"a89014ec96bec62bff27",2889:"f6b598326d0bb9b476c9",2948:"2ae9422b2d1c55b4cb20",2954:"cfd993d5bfabc022e821",3065:"dab5b2a9edaa4c4d4aea",3243:"f365a7616779de04307c",3270:"cf6d551500932d4d35f1",3336:"c5553ce871f24e245b80",3346:"634f8103a381ac1f44ca",3505:"a6a1c7cdf977dd098d3c",3625:"1a6bfc909c9d1016cafa",3705:"7cbda165d6e4faeb7aca",3725:"059ab9340c9df2333572",3732:"bde7f1296bd59d541533",3851:"c3a64ee7ce8c32294645",3878:"25a4f56963938f54bae2",3979:"e5964390b826d2991cae",4203:"c3b915272f2acbeb30ae",4254:"33398fd5b02735c564f4",4334:"b4f0a8e36216a9e14cfe",4401:"648e12ffc0528d04cb98",4417:"d5e2d3497fa2c699af2d",4430:"8df640fbe922392b885f",4529:"039175a263b1d46c0fa4",4661:"f295b953e55fda4c00fe",4941:"bafa519b52caacf26479",4992:"1166dac4ce958ec6b5e6",5034:"96b00ba3932deba2f1fb",5110:"2f12d9405f6ae0955dde",5183:"16dd9d5f4f15b7caa52f",5213:"0d57d21a153912eef091",5224:"883c53a9868a36ee9982",5227:"9496cbf66e50740fd473",5255:"edb24a0699207c4bf99a",5445:"243ea18744dcab12196e",5468:"d6cdb31583e83ad8ae8c",5496:"875499bddc862172efba",5499:"1c11445aa18eaae08167",5501:"7b7821935e81baf526f7",5557:"86dcba00e525a9adedca",5625:"ef24fca4af71b7a75bd6",5659:"42ef8dec7e4554c263db",5681:"d70cb80d5fe10a538cd7",5776:"4ec082ca459a070b5acf",5833:"a3ff5b4cabc69f6592bb",5901:"4aa3cb8df1e3672a6582",5935:"9027a38acdac49de4b85",5988:"29475e73518bea708428",5991:"e4492ffcfa116a1f4742",6014:"0a1cf2b5d8a232b4a8c6",6036:"dc719cc87abaf1cf6816",6042:"f546c4eb39a8e5c0aad1",6158:"c3c34de6f2f3ca946a5a",6233:"96bdbb5daac631583891",6240:"ce6cb48e7752276f5ffc",6416:"787306864446cace320d",6504:"939850b31d46bdbefdfd",6510:"a24f73253841f80793bf",6512:"ea617fcaa751151e5ec9",6530:"b0ce6d5d5d44938cf6d6",6549:"637eb42da74c2e3b3707",6612:"d2e0d63de73a95139120",6633:"abc6a91ed20a60c1a1a1",6847:"9ab2113227ec56dbb752",6921:"f3c2cd64190051588304",6949:"4078bb4fb37f2a72cb29",6969:"63e163069fbed394aaaa",7013:"3f868693a4be5f2e2dcd",7090:"024f8993ad763edbb9f4",7133:"b53bcc0adbfd736dc5dc",7145:"9a5e65852ff12571b6bd",7147:"94e777a5b9fd43c3c2ae",7170:"1175cb3f95ebf5d6cc6f",7195:"8887a1c2fff5dae78378",7207:"8486c9269624016d2269",7289:"f2fa42ec8df416a51afc",7305:"4cc1abba95b286f3e3c7",7398:"25408298719e402872b2",7410:"8138708cda6d84bd3f40",7573:"4af416412bfaab3f33ff",7681:"6efab7d97ca30c9a4f2a",7703:"392f2d7d45404d1ae7ae",7726:"5374fda1bb30c604464e",7751:"9a78a0f09fcbbf92d672",7802:"33f05eab7265edc1fa72",7880:"d20181c1bb669b6180ca",7904:"620879bfced1134b5b8d",7932:"71b25f6a631cfad30444",7966:"a40b96e8b79ae4dcbe03",7976:"58478b695a391cb72175",7991:"d05f825e2d6fa5c80e87",8033:"6904fac6e80c5e56834d",8078:"c4aea44b9340f3822770",8199:"4b235721d9c02d4e741b",8229:"a486e5d101ef89c0923b",8275:"e3c06ee3915ab25adff6",8430:"a3bf3a975cf99e805e6b",8490:"f6500ba7e93662185b4f",8499:"9a9531d0a35047ba1e7d",8500:"a3c159e758973f5ffec9",8537:"2a1b1a65bde18056c703",8592:"0181c0cdf25bf5403f6c",8606:"0f21d0a620d9bce03cff",8645:"527991cde05c7de42050",8669:"905d89a2883b92d10ffa",8681:"f9ed48ecc9373ea2cc19",8712:"494a027de6d38ee9e44e",8760:"dd3603ab640439fef834",8785:"7885b511b8b242ee4b42",8817:"ae6ac19f3b02852665b8",8840:"9a7dc9a64ba5f276d522",8841:"fa42f0636fd977c2a5bc",8876:"a38321abd950c4a6424f",8889:"68c42da83da3833c3a92",8929:"7655052a06d4688ebf1d",8932:"670c51b15d55e2fa42ae",8934:"4770400a01b854104ab1",8954:"ddec6eb9e78fe0fe5846",9019:"920a7e6d9c330317fd8a",9095:"466c4d34d2c3783a72bf",9155:"0632315e9df336d8ed22",9241:"b1878c03ab50c1671b21",9284:"a569e2a5b348212320a2",9289:"78b416e270fb1116ef1f",9345:"9672d17f7e294aede21a",9478:"6e5d52d22b17acb7d104",9507:"2a174f4d47d5d912c065",9544:"4059665b329d5a5661e0",9624:"0ba3a24bca8a727cd16e",9638:"676db5c1f9c701b73842",9668:"ea572dc532465e38f2a3",9746:"d768110bd4ef5de36856",9762:"65ce81239ac8ef121bd7",9869:"686535a71408a042a24f",9889:"8d5bbe938a3151c44776",9918:"76599a584cd5be55c50b"}[e]+".js",o.miniCssF=e=>"styles.dfc022b7d18da510fb91.css",o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},c="tui-editor:",o.l=(e,a,d,b)=>{if(f[e])f[e].push(a);else{var t,r;if(void 0!==d)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var c=f[e];if(delete f[e],t.parentNode&&t.parentNode.removeChild(t),c&&c.forEach((e=>e(d))),a)return a(d)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),r&&document.head.appendChild(t)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.tu=e=>(void 0===b&&(b={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(b=trustedTypes.createPolicy("angular#bundler",b))),b.createScriptURL(e)),o.p="",(()=>{var e={3666:0};o.f.j=(a,d)=>{var f=o.o(e,a)?e[a]:void 0;if(0!==f)if(f)d.push(f[2]);else if(3666!=a){var c=new Promise(((d,c)=>f=e[a]=[d,c]));d.push(f[2]=c);var b=o.p+o.u(a),t=new Error;o.l(b,(d=>{if(o.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var c=d&&("load"===d.type?"missing":d.type),b=d&&d.target&&d.target.src;t.message="Loading chunk "+a+" failed.\n("+c+": "+b+")",t.name="ChunkLoadError",t.type=c,t.request=b,f[1](t)}}),"chunk-"+a,a)}else e[a]=0},o.O.j=a=>0===e[a];var a=(a,d)=>{var f,c,[b,t,r]=d,n=0;for(f in t)o.o(t,f)&&(o.m[f]=t[f]);if(r)var i=r(o);for(a&&a(d);n