@mxtommy/kip 3.10.4 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/README.md +21 -9
- package/package.json +1 -1
- package/public/3rdpartylicenses.txt +61 -61
- package/public/assets/help-docs/community.md +78 -0
- package/public/assets/help-docs/configuration.md +1 -1
- package/public/assets/help-docs/contact-us.md +58 -8
- package/public/assets/help-docs/dashboards.md +117 -42
- package/public/assets/help-docs/datainspector.md +1 -1
- package/public/assets/help-docs/datasets.md +1 -1
- package/public/assets/help-docs/embedwidget.md +1 -1
- package/public/assets/help-docs/grafana.md +1 -1
- package/public/assets/help-docs/influxdb.md +1 -1
- package/public/assets/help-docs/kiosk.md +17 -1
- package/public/assets/help-docs/menu.json +4 -3
- package/public/assets/help-docs/putcontrols.md +5 -5
- package/public/assets/help-docs/welcome.md +46 -23
- package/public/assets/help-docs/zones.md +1 -1
- package/public/assets/svg/icons.svg +26 -18
- package/public/{chunk-X5HFS54R.js → chunk-3LKIOGV7.js} +1 -1
- package/public/{chunk-FPMCI7XZ.js → chunk-65TR3CWM.js} +1 -1
- package/public/{chunk-G4B4D3XR.js → chunk-6MRJ4C55.js} +1 -1
- package/public/{chunk-KPOCVRYH.js → chunk-7S37JBY2.js} +1 -1
- package/public/chunk-A5CYPNMD.js +2 -0
- package/public/chunk-BSAAN2EI.js +2 -0
- package/public/{chunk-2MAVQD65.js → chunk-CDPHRRZR.js} +1 -1
- package/public/chunk-D4DROTBC.js +8 -0
- package/public/{chunk-PYBIMDD3.js → chunk-D4MWDRNW.js} +1 -1
- package/public/chunk-EPTIEPMQ.js +4 -0
- package/public/chunk-F5X5MWHG.js +0 -0
- package/public/{chunk-XE352AKG.js → chunk-I454VRMK.js} +1 -1
- package/public/chunk-IQG4DDQX.js +1 -0
- package/public/{chunk-VZ77T3BF.js → chunk-K5OOC3CF.js} +3 -3
- package/public/{chunk-IZAPOSYM.js → chunk-NOLKBYOV.js} +1 -1
- package/public/chunk-QOXZFV6P.js +47 -0
- package/public/{chunk-GMZROOAF.js → chunk-RMLGKVWE.js} +1 -1
- package/public/chunk-T6TC7KWG.js +1 -0
- package/public/{chunk-6NRGS3BZ.js → chunk-UHKP2PC3.js} +1 -1
- package/public/{chunk-I6UWIF55.js → chunk-UTCRLFYC.js} +1 -1
- package/public/{chunk-XFU5YJJP.js → chunk-VEJNBHWJ.js} +1 -1
- package/public/{chunk-F4VOQO2M.js → chunk-XLJT6YPP.js} +1 -1
- package/public/chunk-YCW2UBVQ.js +1 -0
- package/public/{chunk-ANRGX57I.js → chunk-YPUCOH35.js} +12 -12
- package/public/chunk-YVLZ2UAQ.js +2 -0
- package/public/{chunk-FFE275CO.js → chunk-Z5MCM3TT.js} +10 -10
- package/public/{chunk-EJ4JM3HG.js → chunk-ZEV6YXHP.js} +1 -1
- package/public/{chunk-TIXQ3FAF.js → chunk-ZPCYFQPB.js} +1 -1
- package/public/index.html +1 -1
- package/public/main-7TSLA2U5.js +5 -0
- package/public/chunk-66OJ5PZF.js +0 -2
- package/public/chunk-CS5U3NWY.js +0 -8
- package/public/chunk-GIZH6HIB.js +0 -2
- package/public/chunk-OX4U3HT6.js +0 -2
- package/public/chunk-TARCFDF4.js +0 -4
- package/public/chunk-Z4FDWG2W.js +0 -1
- package/public/main-ASCSBNAW.js +0 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Fe,d as Yt,i as Be,j as Qt,m as Wt,o as Gt,s as Kt}from"./chunk-
|
|
1
|
+
import{b as Fe,d as Yt,i as Be,j as Qt,m as Wt,o as Gt,s as Kt}from"./chunk-NOLKBYOV.js";import{$a as vt,Aa as Te,Ab as Q,Bb as W,Bd as Ht,C as at,E as D,F as lt,Fa as U,Fd as qt,Ga as Ce,Hb as G,Hd as Le,Ia as _t,Ja as le,Jb as It,Jc as I,K as ct,Ka as kt,Kb as Pt,Kc as Ot,L as ut,La as V,Lb as At,O as ht,Oa as z,Pa as Ee,Pd as Ne,Qa as ce,Qc as $t,Sa as xt,T as pt,Uc as zt,V as oe,Va as yt,Vd as Ut,W as j,Wa as C,Wd as Vt,X as ae,Xa as Ie,Xb as $e,Ya as wt,Yd as Xt,a as m,ab as X,b as T,bb as Mt,ca as dt,cb as St,cd as Lt,da as Se,dd as Nt,ea as y,f as Me,fa as M,fc as Dt,g as se,ga as g,hb as Rt,ib as Pe,ie as Zt,j as v,ja as H,jb as Ae,ka as q,kb as De,la as mt,lb as Y,mb as ue,md as ze,na as O,oa as Re,od as Ft,pc as K,q as B,rb as Tt,rc as J,sb as Ct,tb as Oe,ua as gt,ub as he,vb as L,w as ot,wa as $,wb as Z,xa as ft,xb as N,ya as bt,yb as pe,yd as Bt,zb as Et,zd as jt}from"./chunk-YPUCOH35.js";function Ue(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=Ue();function sn(r){A=r}var ne={exec:()=>null};function f(r,i=""){let n=typeof r=="string"?r:r.source,t={replace:(e,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(x.caret,"$1"),n=n.replace(e,s),t},getRegex:()=>new RegExp(n,i)};return t}var x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},Mn=/^(?:[ \t]*(?:\n|$))+/,Sn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ie=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ve=/(?:[*+-]|\d{1,9}[.)])/,on=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,an=f(on).replace(/bull/g,Ve).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cn=f(on).replace(/bull/g,Ve).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Xe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,En=/^[^\n]+/,Ye=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,In=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ye).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pn=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ve).getRegex(),be="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ze=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,An=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ze).replace("tag",be).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ln=f(Xe).replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",be).getRegex(),Dn=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ln).getRegex(),Qe={blockquote:Dn,code:Sn,def:In,fences:Rn,heading:Tn,hr:ie,html:An,lheading:an,list:Pn,newline:Mn,paragraph:ln,table:ne,text:En},Jt=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",be).getRegex(),On=T(m({},Qe),{lheading:Cn,table:Jt,paragraph:f(Xe).replace("hr",ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",be).getRegex()}),$n=T(m({},Qe),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ze).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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(Xe).replace("hr",ie).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",an).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),zn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ln=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,cn=/^( {2,}|\\)\n(?!\s*$)/,Nn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_e=/[\p{P}\p{S}]/u,We=/[\s\p{P}\p{S}]/u,un=/[^\s\p{P}\p{S}]/u,Fn=f(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,We).getRegex(),hn=/(?!~)[\p{P}\p{S}]/u,Bn=/(?!~)[\s\p{P}\p{S}]/u,jn=/(?:[^\s\p{P}\p{S}]|~)/u,Hn=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,pn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qn=f(pn,"u").replace(/punct/g,_e).getRegex(),Un=f(pn,"u").replace(/punct/g,hn).getRegex(),dn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Vn=f(dn,"gu").replace(/notPunctSpace/g,un).replace(/punctSpace/g,We).replace(/punct/g,_e).getRegex(),Xn=f(dn,"gu").replace(/notPunctSpace/g,jn).replace(/punctSpace/g,Bn).replace(/punct/g,hn).getRegex(),Yn=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,un).replace(/punctSpace/g,We).replace(/punct/g,_e).getRegex(),Zn=f(/\\(punct)/,"gu").replace(/punct/g,_e).getRegex(),Qn=f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),Wn=f(Ze).replace("(?:-->|$)","-->").getRegex(),Gn=f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ge=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,Kn=f(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ge).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),mn=f(/^!?\[(label)\]\[(ref)\]/).replace("label",ge).replace("ref",Ye).getRegex(),gn=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ye).getRegex(),Jn=f("reflink|nolink(?!\\()","g").replace("reflink",mn).replace("nolink",gn).getRegex(),Ge={_backpedal:ne,anyPunctuation:Zn,autolink:Qn,blockSkip:Hn,br:cn,code:Ln,del:ne,emStrongLDelim:qn,emStrongRDelimAst:Vn,emStrongRDelimUnd:Yn,escape:zn,link:Kn,nolink:gn,punctuation:Fn,reflink:mn,reflinkSearch:Jn,tag:Gn,text:Nn,url:ne},ei=T(m({},Ge),{link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",ge).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ge).getRegex()}),je=T(m({},Ge),{emStrongRDelimAst:Xn,emStrongLDelim:Un,url:f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ti=T(m({},je),{br:f(cn).replace("{2,}","*").getRegex(),text:f(je.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),de={normal:Qe,gfm:On,pedantic:$n},ee={normal:Ge,gfm:je,breaks:ti,pedantic:ei},ni={"&":"&","<":"<",">":">",'"':""","'":"'"},en=r=>ni[r];function w(r,i){if(i){if(x.escapeTest.test(r))return r.replace(x.escapeReplace,en)}else if(x.escapeTestNoEncode.test(r))return r.replace(x.escapeReplaceNoEncode,en);return r}function tn(r){try{r=encodeURI(r).replace(x.percentDecode,"%")}catch{return null}return r}function nn(r,i){let n=r.replace(x.findPipe,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),t=n.split(x.splitPipe),e=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),i)if(t.length>i)t.splice(i);else for(;t.length<i;)t.push("");for(;e<t.length;e++)t[e]=t[e].trim().replace(x.slashPipe,"|");return t}function te(r,i,n){let t=r.length;if(t===0)return"";let e=0;for(;e<t;){let o=r.charAt(t-e-1);if(o===i&&!n)e++;else if(o!==i&&n)e++;else break}return r.slice(0,t-e)}function ii(r,i){if(r.indexOf(i[1])===-1)return-1;let n=0;for(let t=0;t<r.length;t++)if(r[t]==="\\")t++;else if(r[t]===i[0])n++;else if(r[t]===i[1]&&(n--,n<0))return t;return n>0?-2:-1}function rn(r,i,n,t,e){let o=i.href,s=i.title||null,a=r[1].replace(e.other.outputLinkReplace,"$1");t.state.inLink=!0;let l={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:t.inlineTokens(a)};return t.state.inLink=!1,l}function ri(r,i,n){let t=r.match(n.other.indentCodeCompensation);if(t===null)return i;let e=t[1];return i.split(`
|
|
3
3
|
`).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=e.length?o.slice(e.length):o}).join(`
|
|
4
4
|
`)}var fe=class{options;rules;lexer;constructor(r){this.options=r||A}space(r){let i=this.rules.block.newline.exec(r);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(r){let i=this.rules.block.code.exec(r);if(i){let n=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?n:te(n,`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ab as te,Bb as ie,Fa as m,
|
|
1
|
+
import{Ab as te,Bb as ie,Fa as m,Hb as d,Hd as w,Kb as N,Mb as F,Oa as l,Pa as x,Pd as le,Vd as j,Wa as K,Wd as ce,Xb as oe,Yd as z,ab as A,bb as y,ca as G,cb as k,da as _,de as u,ea as I,ga as s,hb as v,ib as O,j as b,jb as R,kb as M,lb as q,mb as X,od as ne,pc as ae,pd as re,qa as Q,ra as $,rc as P,sb as V,tb as J,vb as D,wa as Z,wb as p,xb as c,yd as L,zb as ee,zd as se}from"./chunk-YPUCOH35.js";var de=(()=>{class i{_animationsDisabled=le();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=l({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,a){t&2&&d("mat-pseudo-checkbox-indeterminate",a.state==="indeterminate")("mat-pseudo-checkbox-checked",a.state==="checked")("mat-pseudo-checkbox-disabled",a.disabled)("mat-pseudo-checkbox-minimal",a.appearance==="minimal")("mat-pseudo-checkbox-full",a.appearance==="full")("_mat-animation-noopable",a._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,a){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})();var he=["*",[["mat-option"],["ng-container"]]],fe=["*","mat-option, ng-container"],ge=["text"],be=[[["mat-icon"]],"*"],_e=["mat-icon","*"];function xe(i,o){if(i&1&&M(0,"mat-pseudo-checkbox",1),i&2){let e=D();v("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function ye(i,o){if(i&1&&M(0,"mat-pseudo-checkbox",3),i&2){let e=D();v("disabled",e.disabled)}}function ke(i,o){if(i&1&&(O(0,"span",4),N(1),R()),i&2){let e=D();m(),F("(",e.group.label,")")}}var H=new I("MAT_OPTION_PARENT_COMPONENT"),Y=new I("MatOptgroup"),ve=(()=>{class i{label;disabled=!1;_labelId=s(L).getId("mat-optgroup-label-");_inert;constructor(){let e=s(H,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=l({type:i,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,a){t&2&&A("role",a._inert?null:"group")("aria-disabled",a._inert?null:a.disabled.toString())("aria-labelledby",a._inert?null:a._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",P]},exportAs:["matOptgroup"],features:[oe([{provide:Y,useExisting:i}])],ngContentSelectors:fe,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,a){t&1&&(p(he),q(0,"span",0)(1,"span",1),N(2),c(3),X()(),c(4,1)),t&2&&(d("mdc-list-item--disabled",a.disabled),V("id",a._labelId),m(2),F("",a.label," "))},styles:[`.mat-mdc-optgroup{color:var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font));line-height:var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-optgroup-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-optgroup-label-text-tracking, var(--mat-sys-title-small-tracking));font-weight:var(--mat-optgroup-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-optgroup-label{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;outline:none}.mat-mdc-optgroup-label.mdc-list-item--disabled{opacity:.38}.mat-mdc-optgroup-label .mdc-list-item__primary-text{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;white-space:normal;color:inherit}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return i})(),C=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},W=(()=>{class i{_element=s(Z);_changeDetectorRef=s(ae);_parent=s(H,{optional:!0});group=s(Y,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(L).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=$(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new K;_text;_stateChanges=new b;constructor(){let e=s(ne);e.load(ce),e.load(re),this._signalDisableRipple=!!this._parent&&Q(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!se(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new C(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=l({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&ee(ge,7),t&2){let n;te(n=ie())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&J("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(V("id",a.id),A("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),d("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",P]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:_e,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(p(be),y(0,xe,1,2,"mat-pseudo-checkbox",1),c(1),O(2,"span",2,0),c(4,1),R(),y(5,ye,1,1,"mat-pseudo-checkbox",3),y(6,ke,2,1,"span",4),M(7,"div",5)),t&2&&(k(a.multiple?0:-1),m(5),k(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),m(),k(a.group&&a.group._inert?6:-1),m(),v("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[de,j],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}
|
|
4
4
|
`],encapsulation:2,changeDetection:0})}return i})();function Me(i,o,e){if(e.length){let t=o.toArray(),a=e.toArray(),n=0;for(let r=0;r<i+1;r++)t[r].group&&t[r].group===a[n]&&n++;return n}return 0}function De(i,o,e,t){return i<e?i:i+o>e+t?Math.max(0,i-t+o):e}var U=class{applyChanges(o,e,t,a,n){o.forEachOperation((r,E,S)=>{let f,g;if(r.previousIndex==null){let T=t(r,E,S);f=e.createEmbeddedView(T.templateRef,T.context,T.index),g=u.INSERTED}else S==null?(e.remove(E),g=u.REMOVED):(f=e.get(E),e.move(f,S),g=u.MOVED);n&&n({context:f?.context,operation:g,record:r})})}detach(){}};var B=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new b;constructor(o=!1,e,t=!0,a){this._multiple=o,this._emitChanges=t,this.compareWith=a,e&&e.length&&(o?e.forEach(n=>this._markSelected(n)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);let e=this.selected,t=new Set(o.map(n=>this._getConcreteValue(n)));o.forEach(n=>this._markSelected(n)),e.filter(n=>!t.has(this._getConcreteValue(n,t))).forEach(n=>this._unmarkSelected(n));let a=this._hasQueuedChanges();return this._emitChangeEvent(),a}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();let e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){o.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(o,t))return t;return o}else return o}};var we=(()=>{class i{_listeners=[];notify(e,t){for(let a of this._listeners)a(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(t){return new(t||i)};static \u0275prov=G({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var me=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=x({type:i});static \u0275inj=_({imports:[w]})}return i})();var Ce=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=x({type:i});static \u0275inj=_({imports:[z,w,me,W]})}return i})();var Ee=["mat-internal-form-field",""],Se=["*"],bt=(()=>{class i{labelPosition;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=l({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,a){t&2&&d("mdc-form-field--align-end",a.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Ee,ngContentSelectors:Se,decls:1,vars:0,template:function(t,a){t&1&&(p(),c(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}
|
package/public/index.html
CHANGED
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
</app-root>
|
|
64
64
|
</div>
|
|
65
|
-
<link rel="modulepreload" href="chunk-
|
|
65
|
+
<link rel="modulepreload" href="chunk-QOXZFV6P.js"><link rel="modulepreload" href="chunk-D4DROTBC.js"><link rel="modulepreload" href="chunk-F5X5MWHG.js"><link rel="modulepreload" href="chunk-K5OOC3CF.js"><link rel="modulepreload" href="chunk-65TR3CWM.js"><link rel="modulepreload" href="chunk-CDPHRRZR.js"><link rel="modulepreload" href="chunk-IQG4DDQX.js"><link rel="modulepreload" href="chunk-EPTIEPMQ.js"><link rel="modulepreload" href="chunk-ZEV6YXHP.js"><link rel="modulepreload" href="chunk-I454VRMK.js"><script src="polyfills-KH22MU6U.js" type="module"></script><script src="main-7TSLA2U5.js" type="module"></script></body>
|
|
66
66
|
</html>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as k,b as te,c as Bi,d as un,e as Ee,f as bt,g as Ge,h as or,i as ar,j as Ct,l as sr,m as lr}from"./chunk-QOXZFV6P.js";import{a as Ti,b as er,c as kt}from"./chunk-D4DROTBC.js";import"./chunk-F5X5MWHG.js";import"./chunk-K5OOC3CF.js";import{f as Et}from"./chunk-65TR3CWM.js";import{a as mr,b as pr,c as hr,d as _r}from"./chunk-CDPHRRZR.js";import{a as cr}from"./chunk-IQG4DDQX.js";import{c as tr,f as nr,g as ir,h as rr}from"./chunk-EPTIEPMQ.js";import{b as gr,g as yr}from"./chunk-ZEV6YXHP.js";import{a as ur,b as dr,c as fr}from"./chunk-I454VRMK.js";import{c as Ji}from"./chunk-UTCRLFYC.js";import"./chunk-ZPCYFQPB.js";import{a as De,b as wt}from"./chunk-YCW2UBVQ.js";import{a as Zi}from"./chunk-6MRJ4C55.js";import{A as Yi,a as Ue,c as ke,d as Re,e as Fe,g as Le,m as Xi}from"./chunk-VEJNBHWJ.js";import{a as cn,b as ki,c as Ci,e as Ie,f as gt,h as ge,i as yt,j as ue}from"./chunk-A5CYPNMD.js";import{a as Qe,b as $i,c as ji,f as fn,j as Ui,k as Tt,n as Gi,o as Qi,p as Wi,s as mn}from"./chunk-NOLKBYOV.js";import{$c as Fi,Ab as tn,Bb as nn,Db as hi,Eb as _i,F as st,Fa as x,Fb as gi,Ga as li,Ha as ci,Hb as ht,Hc as Ei,Id as xe,Jd as ve,Kb as N,Lb as rn,Lc as Mi,Ma as ui,Mb as $e,Mc as Pi,Nc as Ni,Nd as At,O as ei,Oa as ee,Pb as on,Pc as je,Pd as dn,Qa as ut,Qb as an,Qc as Z,Rb as sn,Rc as Oi,Sa as di,Sc as Ii,Tc as Di,Ua as fi,V as ti,Vc as vt,X as ni,Xa as dt,Xc as xi,Xd as Hi,Ya as Jt,Yc as ye,Zd as Be,_a as mi,_c as Ri,_d as qi,a as Q,aa as P,ab as ft,ac as yi,ad as Li,ae as pe,b as Wn,bb as X,c as Xn,ca as H,cb as Y,cc as vi,d as Fo,db as pi,e as Yn,ea as Yt,f as Xt,fa as lt,fb as mt,fc as bi,ga as v,gb as pt,gc as _t,ha as ii,hb as me,hd as Vi,ib as S,j as Ae,ja as I,jb as T,ka as D,kb as ce,l as at,lc as Si,mc as wi,na as Te,oa as ct,oc as ln,pa as ri,pc as Ai,q as Zn,ra as oi,rb as K,rd as St,tb as F,va as ai,vb as V,w as Oe,wa as si,wd as Ki,x as Jn,yd as zi,za as Zt,zb as en}from"./chunk-YPUCOH35.js";var hn=Fo(Mt=>{(function(){"use strict";var o=function(){this.init()};o.prototype={init:function(){var i=this||t;return i._counter=1e3,i._html5AudioPool=[],i.html5PoolSize=10,i._codecs={},i._howls=[],i._muted=!1,i._volume=1,i._canPlayEvent="canplaythrough",i._navigator=typeof window<"u"&&window.navigator?window.navigator:null,i.masterGain=null,i.noAudio=!1,i.usingWebAudio=!0,i.autoSuspend=!0,i.ctx=null,i.autoUnlock=!0,i._setup(),i},volume:function(i){var a=this||t;if(i=parseFloat(i),a.ctx||_(),typeof i<"u"&&i>=0&&i<=1){if(a._volume=i,a._muted)return a;a.usingWebAudio&&a.masterGain.gain.setValueAtTime(i,t.ctx.currentTime);for(var c=0;c<a._howls.length;c++)if(!a._howls[c]._webAudio)for(var f=a._howls[c]._getSoundIds(),m=0;m<f.length;m++){var h=a._howls[c]._soundById(f[m]);h&&h._node&&(h._node.volume=h._volume*i)}return a}return a._volume},mute:function(i){var a=this||t;a.ctx||_(),a._muted=i,a.usingWebAudio&&a.masterGain.gain.setValueAtTime(i?0:a._volume,t.ctx.currentTime);for(var c=0;c<a._howls.length;c++)if(!a._howls[c]._webAudio)for(var f=a._howls[c]._getSoundIds(),m=0;m<f.length;m++){var h=a._howls[c]._soundById(f[m]);h&&h._node&&(h._node.muted=i?!0:h._muted)}return a},stop:function(){for(var i=this||t,a=0;a<i._howls.length;a++)i._howls[a].stop();return i},unload:function(){for(var i=this||t,a=i._howls.length-1;a>=0;a--)i._howls[a].unload();return i.usingWebAudio&&i.ctx&&typeof i.ctx.close<"u"&&(i.ctx.close(),i.ctx=null,_()),i},codecs:function(i){return(this||t)._codecs[i.replace(/^x-/,"")]},_setup:function(){var i=this||t;if(i.state=i.ctx&&i.ctx.state||"suspended",i._autoSuspend(),!i.usingWebAudio)if(typeof Audio<"u")try{var a=new Audio;typeof a.oncanplaythrough>"u"&&(i._canPlayEvent="canplay")}catch{i.noAudio=!0}else i.noAudio=!0;try{var a=new Audio;a.muted&&(i.noAudio=!0)}catch{}return i.noAudio||i._setupCodecs(),i},_setupCodecs:function(){var i=this||t,a=null;try{a=typeof Audio<"u"?new Audio:null}catch{return i}if(!a||typeof a.canPlayType!="function")return i;var c=a.canPlayType("audio/mpeg;").replace(/^no$/,""),f=i._navigator?i._navigator.userAgent:"",m=f.match(/OPR\/(\d+)/g),h=m&&parseInt(m[0].split("/")[1],10)<33,p=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,g=f.match(/Version\/(.*?) /),w=p&&g&&parseInt(g[1],10)<15;return i._codecs={mp3:!!(!h&&(c||a.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!c,opus:!!a.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(a.canPlayType('audio/wav; codecs="1"')||a.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!a.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!a.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(a.canPlayType("audio/x-m4b;")||a.canPlayType("audio/m4b;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(a.canPlayType("audio/x-mp4;")||a.canPlayType("audio/mp4;")||a.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&a.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!a.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(a.canPlayType("audio/x-flac;")||a.canPlayType("audio/flac;")).replace(/^no$/,"")},i},_unlockAudio:function(){var i=this||t;if(!(i._audioUnlocked||!i.ctx)){i._audioUnlocked=!1,i.autoUnlock=!1,!i._mobileUnloaded&&i.ctx.sampleRate!==44100&&(i._mobileUnloaded=!0,i.unload()),i._scratchBuffer=i.ctx.createBuffer(1,1,22050);var a=function(c){for(;i._html5AudioPool.length<i.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,i._releaseHtml5Audio(f)}catch{i.noAudio=!0;break}for(var m=0;m<i._howls.length;m++)if(!i._howls[m]._webAudio)for(var h=i._howls[m]._getSoundIds(),p=0;p<h.length;p++){var g=i._howls[m]._soundById(h[p]);g&&g._node&&!g._node._unlocked&&(g._node._unlocked=!0,g._node.load())}i._autoResume();var w=i.ctx.createBufferSource();w.buffer=i._scratchBuffer,w.connect(i.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof i.ctx.resume=="function"&&i.ctx.resume(),w.onended=function(){w.disconnect(0),i._audioUnlocked=!0,document.removeEventListener("touchstart",a,!0),document.removeEventListener("touchend",a,!0),document.removeEventListener("click",a,!0),document.removeEventListener("keydown",a,!0);for(var C=0;C<i._howls.length;C++)i._howls[C]._emit("unlock")}};return document.addEventListener("touchstart",a,!0),document.addEventListener("touchend",a,!0),document.addEventListener("click",a,!0),document.addEventListener("keydown",a,!0),i}},_obtainHtml5Audio:function(){var i=this||t;if(i._html5AudioPool.length)return i._html5AudioPool.pop();var a=new Audio().play();return a&&typeof Promise<"u"&&(a instanceof Promise||typeof a.then=="function")&&a.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(i){var a=this||t;return i._unlocked&&a._html5AudioPool.push(i),a},_autoSuspend:function(){var i=this;if(!(!i.autoSuspend||!i.ctx||typeof i.ctx.suspend>"u"||!t.usingWebAudio)){for(var a=0;a<i._howls.length;a++)if(i._howls[a]._webAudio){for(var c=0;c<i._howls[a]._sounds.length;c++)if(!i._howls[a]._sounds[c]._paused)return i}return i._suspendTimer&&clearTimeout(i._suspendTimer),i._suspendTimer=setTimeout(function(){if(i.autoSuspend){i._suspendTimer=null,i.state="suspending";var f=function(){i.state="suspended",i._resumeAfterSuspend&&(delete i._resumeAfterSuspend,i._autoResume())};i.ctx.suspend().then(f,f)}},3e4),i}},_autoResume:function(){var i=this;if(!(!i.ctx||typeof i.ctx.resume>"u"||!t.usingWebAudio))return i.state==="running"&&i.ctx.state!=="interrupted"&&i._suspendTimer?(clearTimeout(i._suspendTimer),i._suspendTimer=null):i.state==="suspended"||i.state==="running"&&i.ctx.state==="interrupted"?(i.ctx.resume().then(function(){i.state="running";for(var a=0;a<i._howls.length;a++)i._howls[a]._emit("resume")}),i._suspendTimer&&(clearTimeout(i._suspendTimer),i._suspendTimer=null)):i.state==="suspending"&&(i._resumeAfterSuspend=!0),i}};var t=new o,e=function(i){var a=this;if(!i.src||i.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}a.init(i)};e.prototype={init:function(i){var a=this;return t.ctx||_(),a._autoplay=i.autoplay||!1,a._format=typeof i.format!="string"?i.format:[i.format],a._html5=i.html5||!1,a._muted=i.mute||!1,a._loop=i.loop||!1,a._pool=i.pool||5,a._preload=typeof i.preload=="boolean"||i.preload==="metadata"?i.preload:!0,a._rate=i.rate||1,a._sprite=i.sprite||{},a._src=typeof i.src!="string"?i.src:[i.src],a._volume=i.volume!==void 0?i.volume:1,a._xhr={method:i.xhr&&i.xhr.method?i.xhr.method:"GET",headers:i.xhr&&i.xhr.headers?i.xhr.headers:null,withCredentials:i.xhr&&i.xhr.withCredentials?i.xhr.withCredentials:!1},a._duration=0,a._state="unloaded",a._sounds=[],a._endTimers={},a._queue=[],a._playLock=!1,a._onend=i.onend?[{fn:i.onend}]:[],a._onfade=i.onfade?[{fn:i.onfade}]:[],a._onload=i.onload?[{fn:i.onload}]:[],a._onloaderror=i.onloaderror?[{fn:i.onloaderror}]:[],a._onplayerror=i.onplayerror?[{fn:i.onplayerror}]:[],a._onpause=i.onpause?[{fn:i.onpause}]:[],a._onplay=i.onplay?[{fn:i.onplay}]:[],a._onstop=i.onstop?[{fn:i.onstop}]:[],a._onmute=i.onmute?[{fn:i.onmute}]:[],a._onvolume=i.onvolume?[{fn:i.onvolume}]:[],a._onrate=i.onrate?[{fn:i.onrate}]:[],a._onseek=i.onseek?[{fn:i.onseek}]:[],a._onunlock=i.onunlock?[{fn:i.onunlock}]:[],a._onresume=[],a._webAudio=t.usingWebAudio&&!a._html5,typeof t.ctx<"u"&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(a),a._autoplay&&a._queue.push({event:"play",action:function(){a.play()}}),a._preload&&a._preload!=="none"&&a.load(),a},load:function(){var i=this,a=null;if(t.noAudio){i._emit("loaderror",null,"No audio support.");return}typeof i._src=="string"&&(i._src=[i._src]);for(var c=0;c<i._src.length;c++){var f,m;if(i._format&&i._format[c])f=i._format[c];else{if(m=i._src[c],typeof m!="string"){i._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(m),f||(f=/\.([^.]+)$/.exec(m.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&t.codecs(f)){a=i._src[c];break}}if(!a){i._emit("loaderror",null,"No codec support for selected audio sources.");return}return i._src=a,i._state="loading",window.location.protocol==="https:"&&a.slice(0,5)==="http:"&&(i._html5=!0,i._webAudio=!1),new n(i),i._webAudio&&s(i),i},play:function(i,a){var c=this,f=null;if(typeof i=="number")f=i,i=null;else{if(typeof i=="string"&&c._state==="loaded"&&!c._sprite[i])return null;if(typeof i>"u"&&(i="__default",!c._playLock)){for(var m=0,h=0;h<c._sounds.length;h++)c._sounds[h]._paused&&!c._sounds[h]._ended&&(m++,f=c._sounds[h]._id);m===1?i=null:f=null}}var p=f?c._soundById(f):c._inactiveSound();if(!p)return null;if(f&&!i&&(i=p._sprite||"__default"),c._state!=="loaded"){p._sprite=i,p._ended=!1;var g=p._id;return c._queue.push({event:"play",action:function(){c.play(g)}}),g}if(f&&!p._paused)return a||c._loadQueue("play"),p._id;c._webAudio&&t._autoResume();var w=Math.max(0,p._seek>0?p._seek:c._sprite[i][0]/1e3),C=Math.max(0,(c._sprite[i][0]+c._sprite[i][1])/1e3-w),O=C*1e3/Math.abs(p._rate),U=c._sprite[i][0]/1e3,q=(c._sprite[i][0]+c._sprite[i][1])/1e3;p._sprite=i,p._ended=!1;var L=function(){p._paused=!1,p._seek=w,p._start=U,p._stop=q,p._loop=!!(p._loop||c._sprite[i][2])};if(w>=q){c._ended(p);return}var E=p._node;if(c._webAudio){var oe=function(){c._playLock=!1,L(),c._refreshBuffer(p);var se=p._muted||c._muted?0:p._volume;E.gain.setValueAtTime(se,t.ctx.currentTime),p._playStart=t.ctx.currentTime,typeof E.bufferSource.start>"u"?p._loop?E.bufferSource.noteGrainOn(0,w,86400):E.bufferSource.noteGrainOn(0,w,C):p._loop?E.bufferSource.start(0,w,86400):E.bufferSource.start(0,w,C),O!==1/0&&(c._endTimers[p._id]=setTimeout(c._ended.bind(c,p),O)),a||setTimeout(function(){c._emit("play",p._id),c._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?oe():(c._playLock=!0,c.once("resume",oe),c._clearTimer(p._id))}else{var fe=function(){E.currentTime=w,E.muted=p._muted||c._muted||t._muted||E.muted,E.volume=p._volume*t.volume(),E.playbackRate=p._rate;try{var se=E.play();if(se&&typeof Promise<"u"&&(se instanceof Promise||typeof se.then=="function")?(c._playLock=!0,L(),se.then(function(){c._playLock=!1,E._unlocked=!0,a?c._loadQueue():c._emit("play",p._id)}).catch(function(){c._playLock=!1,c._emit("playerror",p._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),p._ended=!0,p._paused=!0})):a||(c._playLock=!1,L(),c._emit("play",p._id)),E.playbackRate=p._rate,E.paused){c._emit("playerror",p._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}i!=="__default"||p._loop?c._endTimers[p._id]=setTimeout(c._ended.bind(c,p),O):(c._endTimers[p._id]=function(){c._ended(p),E.removeEventListener("ended",c._endTimers[p._id],!1)},E.addEventListener("ended",c._endTimers[p._id],!1))}catch(rt){c._emit("playerror",p._id,rt)}};E.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(E.src=c._src,E.load());var it=window&&window.ejecta||!E.readyState&&t._navigator.isCocoonJS;if(E.readyState>=3||it)fe();else{c._playLock=!0,c._state="loading";var ae=function(){c._state="loaded",fe(),E.removeEventListener(t._canPlayEvent,ae,!1)};E.addEventListener(t._canPlayEvent,ae,!1),c._clearTimer(p._id)}}return p._id},pause:function(i){var a=this;if(a._state!=="loaded"||a._playLock)return a._queue.push({event:"pause",action:function(){a.pause(i)}}),a;for(var c=a._getSoundIds(i),f=0;f<c.length;f++){a._clearTimer(c[f]);var m=a._soundById(c[f]);if(m&&!m._paused&&(m._seek=a.seek(c[f]),m._rateSeek=0,m._paused=!0,a._stopFade(c[f]),m._node))if(a._webAudio){if(!m._node.bufferSource)continue;typeof m._node.bufferSource.stop>"u"?m._node.bufferSource.noteOff(0):m._node.bufferSource.stop(0),a._cleanBuffer(m._node)}else(!isNaN(m._node.duration)||m._node.duration===1/0)&&m._node.pause();arguments[1]||a._emit("pause",m?m._id:null)}return a},stop:function(i,a){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"stop",action:function(){c.stop(i)}}),c;for(var f=c._getSoundIds(i),m=0;m<f.length;m++){c._clearTimer(f[m]);var h=c._soundById(f[m]);h&&(h._seek=h._start||0,h._rateSeek=0,h._paused=!0,h._ended=!0,c._stopFade(f[m]),h._node&&(c._webAudio?h._node.bufferSource&&(typeof h._node.bufferSource.stop>"u"?h._node.bufferSource.noteOff(0):h._node.bufferSource.stop(0),c._cleanBuffer(h._node)):(!isNaN(h._node.duration)||h._node.duration===1/0)&&(h._node.currentTime=h._start||0,h._node.pause(),h._node.duration===1/0&&c._clearSound(h._node))),a||c._emit("stop",h._id))}return c},mute:function(i,a){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"mute",action:function(){c.mute(i,a)}}),c;if(typeof a>"u")if(typeof i=="boolean")c._muted=i;else return c._muted;for(var f=c._getSoundIds(a),m=0;m<f.length;m++){var h=c._soundById(f[m]);h&&(h._muted=i,h._interval&&c._stopFade(h._id),c._webAudio&&h._node?h._node.gain.setValueAtTime(i?0:h._volume,t.ctx.currentTime):h._node&&(h._node.muted=t._muted?!0:i),c._emit("mute",h._id))}return c},volume:function(){var i=this,a=arguments,c,f;if(a.length===0)return i._volume;if(a.length===1||a.length===2&&typeof a[1]>"u"){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):c=parseFloat(a[0])}else a.length>=2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));var p;if(typeof c<"u"&&c>=0&&c<=1){if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,a)}}),i;typeof f>"u"&&(i._volume=c),f=i._getSoundIds(f);for(var g=0;g<f.length;g++)p=i._soundById(f[g]),p&&(p._volume=c,a[2]||i._stopFade(f[g]),i._webAudio&&p._node&&!p._muted?p._node.gain.setValueAtTime(c,t.ctx.currentTime):p._node&&!p._muted&&(p._node.volume=c*t.volume()),i._emit("volume",p._id))}else return p=f?i._soundById(f):i._sounds[0],p?p._volume:0;return i},fade:function(i,a,c,f){var m=this;if(m._state!=="loaded"||m._playLock)return m._queue.push({event:"fade",action:function(){m.fade(i,a,c,f)}}),m;i=Math.min(Math.max(0,parseFloat(i)),1),a=Math.min(Math.max(0,parseFloat(a)),1),c=parseFloat(c),m.volume(i,f);for(var h=m._getSoundIds(f),p=0;p<h.length;p++){var g=m._soundById(h[p]);if(g){if(f||m._stopFade(h[p]),m._webAudio&&!g._muted){var w=t.ctx.currentTime,C=w+c/1e3;g._volume=i,g._node.gain.setValueAtTime(i,w),g._node.gain.linearRampToValueAtTime(a,C)}m._startFadeInterval(g,i,a,c,h[p],typeof f>"u")}}return m},_startFadeInterval:function(i,a,c,f,m,h){var p=this,g=a,w=c-a,C=Math.abs(w/.01),O=Math.max(4,C>0?f/C:f),U=Date.now();i._fadeTo=c,i._interval=setInterval(function(){var q=(Date.now()-U)/f;U=Date.now(),g+=w*q,g=Math.round(g*100)/100,w<0?g=Math.max(c,g):g=Math.min(c,g),p._webAudio?i._volume=g:p.volume(g,i._id,!0),h&&(p._volume=g),(c<a&&g<=c||c>a&&g>=c)&&(clearInterval(i._interval),i._interval=null,i._fadeTo=null,p.volume(c,i._id),p._emit("fade",i._id))},O)},_stopFade:function(i){var a=this,c=a._soundById(i);return c&&c._interval&&(a._webAudio&&c._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(c._interval),c._interval=null,a.volume(c._fadeTo,i),c._fadeTo=null,a._emit("fade",i)),a},loop:function(){var i=this,a=arguments,c,f,m;if(a.length===0)return i._loop;if(a.length===1)if(typeof a[0]=="boolean")c=a[0],i._loop=c;else return m=i._soundById(parseInt(a[0],10)),m?m._loop:!1;else a.length===2&&(c=a[0],f=parseInt(a[1],10));for(var h=i._getSoundIds(f),p=0;p<h.length;p++)m=i._soundById(h[p]),m&&(m._loop=c,i._webAudio&&m._node&&m._node.bufferSource&&(m._node.bufferSource.loop=c,c&&(m._node.bufferSource.loopStart=m._start||0,m._node.bufferSource.loopEnd=m._stop,i.playing(h[p])&&(i.pause(h[p],!0),i.play(h[p],!0)))));return i},rate:function(){var i=this,a=arguments,c,f;if(a.length===0)f=i._sounds[0]._id;else if(a.length===1){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):c=parseFloat(a[0])}else a.length===2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));var p;if(typeof c=="number"){if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,a)}}),i;typeof f>"u"&&(i._rate=c),f=i._getSoundIds(f);for(var g=0;g<f.length;g++)if(p=i._soundById(f[g]),p){i.playing(f[g])&&(p._rateSeek=i.seek(f[g]),p._playStart=i._webAudio?t.ctx.currentTime:p._playStart),p._rate=c,i._webAudio&&p._node&&p._node.bufferSource?p._node.bufferSource.playbackRate.setValueAtTime(c,t.ctx.currentTime):p._node&&(p._node.playbackRate=c);var w=i.seek(f[g]),C=(i._sprite[p._sprite][0]+i._sprite[p._sprite][1])/1e3-w,O=C*1e3/Math.abs(p._rate);(i._endTimers[f[g]]||!p._paused)&&(i._clearTimer(f[g]),i._endTimers[f[g]]=setTimeout(i._ended.bind(i,p),O)),i._emit("rate",p._id)}}else return p=i._soundById(f),p?p._rate:i._rate;return i},seek:function(){var i=this,a=arguments,c,f;if(a.length===0)i._sounds.length&&(f=i._sounds[0]._id);else if(a.length===1){var m=i._getSoundIds(),h=m.indexOf(a[0]);h>=0?f=parseInt(a[0],10):i._sounds.length&&(f=i._sounds[0]._id,c=parseFloat(a[0]))}else a.length===2&&(c=parseFloat(a[0]),f=parseInt(a[1],10));if(typeof f>"u")return 0;if(typeof c=="number"&&(i._state!=="loaded"||i._playLock))return i._queue.push({event:"seek",action:function(){i.seek.apply(i,a)}}),i;var p=i._soundById(f);if(p)if(typeof c=="number"&&c>=0){var g=i.playing(f);g&&i.pause(f,!0),p._seek=c,p._ended=!1,i._clearTimer(f),!i._webAudio&&p._node&&!isNaN(p._node.duration)&&(p._node.currentTime=c);var w=function(){g&&i.play(f,!0),i._emit("seek",f)};if(g&&!i._webAudio){var C=function(){i._playLock?setTimeout(C,0):w()};setTimeout(C,0)}else w()}else if(i._webAudio){var O=i.playing(f)?t.ctx.currentTime-p._playStart:0,U=p._rateSeek?p._rateSeek-p._seek:0;return p._seek+(U+O*Math.abs(p._rate))}else return p._node.currentTime;return i},playing:function(i){var a=this;if(typeof i=="number"){var c=a._soundById(i);return c?!c._paused:!1}for(var f=0;f<a._sounds.length;f++)if(!a._sounds[f]._paused)return!0;return!1},duration:function(i){var a=this,c=a._duration,f=a._soundById(i);return f&&(c=a._sprite[f._sprite][1]/1e3),c},state:function(){return this._state},unload:function(){for(var i=this,a=i._sounds,c=0;c<a.length;c++)a[c]._paused||i.stop(a[c]._id),i._webAudio||(i._clearSound(a[c]._node),a[c]._node.removeEventListener("error",a[c]._errorFn,!1),a[c]._node.removeEventListener(t._canPlayEvent,a[c]._loadFn,!1),a[c]._node.removeEventListener("ended",a[c]._endFn,!1),t._releaseHtml5Audio(a[c]._node)),delete a[c]._node,i._clearTimer(a[c]._id);var f=t._howls.indexOf(i);f>=0&&t._howls.splice(f,1);var m=!0;for(c=0;c<t._howls.length;c++)if(t._howls[c]._src===i._src||i._src.indexOf(t._howls[c]._src)>=0){m=!1;break}return r&&m&&delete r[i._src],t.noAudio=!1,i._state="unloaded",i._sounds=[],i=null,null},on:function(i,a,c,f){var m=this,h=m["_on"+i];return typeof a=="function"&&h.push(f?{id:c,fn:a,once:f}:{id:c,fn:a}),m},off:function(i,a,c){var f=this,m=f["_on"+i],h=0;if(typeof a=="number"&&(c=a,a=null),a||c)for(h=0;h<m.length;h++){var p=c===m[h].id;if(a===m[h].fn&&p||!a&&p){m.splice(h,1);break}}else if(i)f["_on"+i]=[];else{var g=Object.keys(f);for(h=0;h<g.length;h++)g[h].indexOf("_on")===0&&Array.isArray(f[g[h]])&&(f[g[h]]=[])}return f},once:function(i,a,c){var f=this;return f.on(i,a,c,1),f},_emit:function(i,a,c){for(var f=this,m=f["_on"+i],h=m.length-1;h>=0;h--)(!m[h].id||m[h].id===a||i==="load")&&(setTimeout((function(p){p.call(this,a,c)}).bind(f,m[h].fn),0),m[h].once&&f.off(i,m[h].fn,m[h].id));return f._loadQueue(i),f},_loadQueue:function(i){var a=this;if(a._queue.length>0){var c=a._queue[0];c.event===i&&(a._queue.shift(),a._loadQueue()),i||c.action()}return a},_ended:function(i){var a=this,c=i._sprite;if(!a._webAudio&&i._node&&!i._node.paused&&!i._node.ended&&i._node.currentTime<i._stop)return setTimeout(a._ended.bind(a,i),100),a;var f=!!(i._loop||a._sprite[c][2]);if(a._emit("end",i._id),!a._webAudio&&f&&a.stop(i._id,!0).play(i._id),a._webAudio&&f){a._emit("play",i._id),i._seek=i._start||0,i._rateSeek=0,i._playStart=t.ctx.currentTime;var m=(i._stop-i._start)*1e3/Math.abs(i._rate);a._endTimers[i._id]=setTimeout(a._ended.bind(a,i),m)}return a._webAudio&&!f&&(i._paused=!0,i._ended=!0,i._seek=i._start||0,i._rateSeek=0,a._clearTimer(i._id),a._cleanBuffer(i._node),t._autoSuspend()),!a._webAudio&&!f&&a.stop(i._id,!0),a},_clearTimer:function(i){var a=this;if(a._endTimers[i]){if(typeof a._endTimers[i]!="function")clearTimeout(a._endTimers[i]);else{var c=a._soundById(i);c&&c._node&&c._node.removeEventListener("ended",a._endTimers[i],!1)}delete a._endTimers[i]}return a},_soundById:function(i){for(var a=this,c=0;c<a._sounds.length;c++)if(i===a._sounds[c]._id)return a._sounds[c];return null},_inactiveSound:function(){var i=this;i._drain();for(var a=0;a<i._sounds.length;a++)if(i._sounds[a]._ended)return i._sounds[a].reset();return new n(i)},_drain:function(){var i=this,a=i._pool,c=0,f=0;if(!(i._sounds.length<a)){for(f=0;f<i._sounds.length;f++)i._sounds[f]._ended&&c++;for(f=i._sounds.length-1;f>=0;f--){if(c<=a)return;i._sounds[f]._ended&&(i._webAudio&&i._sounds[f]._node&&i._sounds[f]._node.disconnect(0),i._sounds.splice(f,1),c--)}}},_getSoundIds:function(i){var a=this;if(typeof i>"u"){for(var c=[],f=0;f<a._sounds.length;f++)c.push(a._sounds[f]._id);return c}else return[i]},_refreshBuffer:function(i){var a=this;return i._node.bufferSource=t.ctx.createBufferSource(),i._node.bufferSource.buffer=r[a._src],i._panner?i._node.bufferSource.connect(i._panner):i._node.bufferSource.connect(i._node),i._node.bufferSource.loop=i._loop,i._loop&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop||0),i._node.bufferSource.playbackRate.setValueAtTime(i._rate,t.ctx.currentTime),a},_cleanBuffer:function(i){var a=this,c=t._navigator&&t._navigator.vendor.indexOf("Apple")>=0;if(!i.bufferSource)return a;if(t._scratchBuffer&&i.bufferSource&&(i.bufferSource.onended=null,i.bufferSource.disconnect(0),c))try{i.bufferSource.buffer=t._scratchBuffer}catch{}return i.bufferSource=null,a},_clearSound:function(i){var a=/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent);a||(i.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var n=function(i){this._parent=i,this.init()};n.prototype={init:function(){var i=this,a=i._parent;return i._muted=a._muted,i._loop=a._loop,i._volume=a._volume,i._rate=a._rate,i._seek=0,i._paused=!0,i._ended=!0,i._sprite="__default",i._id=++t._counter,a._sounds.push(i),i.create(),i},create:function(){var i=this,a=i._parent,c=t._muted||i._muted||i._parent._muted?0:i._volume;return a._webAudio?(i._node=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),i._node.gain.setValueAtTime(c,t.ctx.currentTime),i._node.paused=!0,i._node.connect(t.masterGain)):t.noAudio||(i._node=t._obtainHtml5Audio(),i._errorFn=i._errorListener.bind(i),i._node.addEventListener("error",i._errorFn,!1),i._loadFn=i._loadListener.bind(i),i._node.addEventListener(t._canPlayEvent,i._loadFn,!1),i._endFn=i._endListener.bind(i),i._node.addEventListener("ended",i._endFn,!1),i._node.src=a._src,i._node.preload=a._preload===!0?"auto":a._preload,i._node.volume=c*t.volume(),i._node.load()),i},reset:function(){var i=this,a=i._parent;return i._muted=a._muted,i._loop=a._loop,i._volume=a._volume,i._rate=a._rate,i._seek=0,i._rateSeek=0,i._paused=!0,i._ended=!0,i._sprite="__default",i._id=++t._counter,i},_errorListener:function(){var i=this;i._parent._emit("loaderror",i._id,i._node.error?i._node.error.code:0),i._node.removeEventListener("error",i._errorFn,!1)},_loadListener:function(){var i=this,a=i._parent;a._duration=Math.ceil(i._node.duration*10)/10,Object.keys(a._sprite).length===0&&(a._sprite={__default:[0,a._duration*1e3]}),a._state!=="loaded"&&(a._state="loaded",a._emit("load"),a._loadQueue()),i._node.removeEventListener(t._canPlayEvent,i._loadFn,!1)},_endListener:function(){var i=this,a=i._parent;a._duration===1/0&&(a._duration=Math.ceil(i._node.duration*10)/10,a._sprite.__default[1]===1/0&&(a._sprite.__default[1]=a._duration*1e3),a._ended(i)),i._node.removeEventListener("ended",i._endFn,!1)}};var r={},s=function(i){var a=i._src;if(r[a]){i._duration=r[a].duration,d(i);return}if(/^data:[^;]+;base64,/.test(a)){for(var c=atob(a.split(",")[1]),f=new Uint8Array(c.length),m=0;m<c.length;++m)f[m]=c.charCodeAt(m);u(f.buffer,i)}else{var h=new XMLHttpRequest;h.open(i._xhr.method,a,!0),h.withCredentials=i._xhr.withCredentials,h.responseType="arraybuffer",i._xhr.headers&&Object.keys(i._xhr.headers).forEach(function(p){h.setRequestHeader(p,i._xhr.headers[p])}),h.onload=function(){var p=(h.status+"")[0];if(p!=="0"&&p!=="2"&&p!=="3"){i._emit("loaderror",null,"Failed loading audio file with status: "+h.status+".");return}u(h.response,i)},h.onerror=function(){i._webAudio&&(i._html5=!0,i._webAudio=!1,i._sounds=[],delete r[a],i.load())},l(h)}},l=function(i){try{i.send()}catch{i.onerror()}},u=function(i,a){var c=function(){a._emit("loaderror",null,"Decoding audio data failed.")},f=function(m){m&&a._sounds.length>0?(r[a._src]=m,d(a,m)):c()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(i).then(f).catch(c):t.ctx.decodeAudioData(i,f,c)},d=function(i,a){a&&!i._duration&&(i._duration=a.duration),Object.keys(i._sprite).length===0&&(i._sprite={__default:[0,i._duration*1e3]}),i._state!=="loaded"&&(i._state="loaded",i._emit("load"),i._loadQueue())},_=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch{t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var i=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),a=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),c=a?parseInt(a[1],10):null;if(i&&c&&c<9){var f=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!f&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};typeof define=="function"&&define.amd&&define([],function(){return{Howler:t,Howl:e}}),typeof Mt<"u"&&(Mt.Howler=t,Mt.Howl=e),typeof global<"u"?(global.HowlerGlobal=o,global.Howler=t,global.Howl=e,global.Sound=n):typeof window<"u"&&(window.HowlerGlobal=o,window.Howler=t,window.Howl=e,window.Sound=n)})();(function(){"use strict";HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var e=this;if(!e.ctx||!e.ctx.listener)return e;for(var n=e._howls.length-1;n>=0;n--)e._howls[n].stereo(t);return e},HowlerGlobal.prototype.pos=function(t,e,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(e=typeof e!="number"?r._pos[1]:e,n=typeof n!="number"?r._pos[2]:n,typeof t=="number")r._pos=[t,e,n],typeof r.ctx.listener.positionX<"u"?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]);else return r._pos;return r},HowlerGlobal.prototype.orientation=function(t,e,n,r,s,l){var u=this;if(!u.ctx||!u.ctx.listener)return u;var d=u._orientation;if(e=typeof e!="number"?d[1]:e,n=typeof n!="number"?d[2]:n,r=typeof r!="number"?d[3]:r,s=typeof s!="number"?d[4]:s,l=typeof l!="number"?d[5]:l,typeof t=="number")u._orientation=[t,e,n,r,s,l],typeof u.ctx.listener.forwardX<"u"?(u.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(s,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(t,e,n,r,s,l);else return d;return u},Howl.prototype.init=(function(t){return function(e){var n=this;return n._orientation=e.orientation||[1,0,0],n._stereo=e.stereo||null,n._pos=e.pos||null,n._pannerAttr={coneInnerAngle:typeof e.coneInnerAngle<"u"?e.coneInnerAngle:360,coneOuterAngle:typeof e.coneOuterAngle<"u"?e.coneOuterAngle:360,coneOuterGain:typeof e.coneOuterGain<"u"?e.coneOuterGain:0,distanceModel:typeof e.distanceModel<"u"?e.distanceModel:"inverse",maxDistance:typeof e.maxDistance<"u"?e.maxDistance:1e4,panningModel:typeof e.panningModel<"u"?e.panningModel:"HRTF",refDistance:typeof e.refDistance<"u"?e.refDistance:1,rolloffFactor:typeof e.rolloffFactor<"u"?e.rolloffFactor:1},n._onstereo=e.onstereo?[{fn:e.onstereo}]:[],n._onpos=e.onpos?[{fn:e.onpos}]:[],n._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}})(Howl.prototype.init),Howl.prototype.stereo=function(t,e){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"stereo",action:function(){n.stereo(t,e)}}),n;var r=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof e>"u")if(typeof t=="number")n._stereo=t,n._pos=[t,0,0];else return n._stereo;for(var s=n._getSoundIds(e),l=0;l<s.length;l++){var u=n._soundById(s[l]);if(u)if(typeof t=="number")u._stereo=t,u._pos=[t,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&o(u,r),r==="spatial"?typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(t,0,0):u._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),n._emit("stereo",u._id);else return u._stereo}return n},Howl.prototype.pos=function(t,e,n,r){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"pos",action:function(){s.pos(t,e,n,r)}}),s;if(e=typeof e!="number"?0:e,n=typeof n!="number"?-.5:n,typeof r>"u")if(typeof t=="number")s._pos=[t,e,n];else return s._pos;for(var l=s._getSoundIds(r),u=0;u<l.length;u++){var d=s._soundById(l[u]);if(d)if(typeof t=="number")d._pos=[t,e,n],d._node&&((!d._panner||d._panner.pan)&&o(d,"spatial"),typeof d._panner.positionX<"u"?(d._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),d._panner.positionY.setValueAtTime(e,Howler.ctx.currentTime),d._panner.positionZ.setValueAtTime(n,Howler.ctx.currentTime)):d._panner.setPosition(t,e,n)),s._emit("pos",d._id);else return d._pos}return s},Howl.prototype.orientation=function(t,e,n,r){var s=this;if(!s._webAudio)return s;if(s._state!=="loaded")return s._queue.push({event:"orientation",action:function(){s.orientation(t,e,n,r)}}),s;if(e=typeof e!="number"?s._orientation[1]:e,n=typeof n!="number"?s._orientation[2]:n,typeof r>"u")if(typeof t=="number")s._orientation=[t,e,n];else return s._orientation;for(var l=s._getSoundIds(r),u=0;u<l.length;u++){var d=s._soundById(l[u]);if(d)if(typeof t=="number")d._orientation=[t,e,n],d._node&&(d._panner||(d._pos||(d._pos=s._pos||[0,0,-.5]),o(d,"spatial")),typeof d._panner.orientationX<"u"?(d._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),d._panner.orientationY.setValueAtTime(e,Howler.ctx.currentTime),d._panner.orientationZ.setValueAtTime(n,Howler.ctx.currentTime)):d._panner.setOrientation(t,e,n)),s._emit("orientation",d._id);else return d._orientation}return s},Howl.prototype.pannerAttr=function(){var t=this,e=arguments,n,r,s;if(!t._webAudio)return t;if(e.length===0)return t._pannerAttr;if(e.length===1)if(typeof e[0]=="object")n=e[0],typeof r>"u"&&(n.pannerAttr||(n.pannerAttr={coneInnerAngle:n.coneInnerAngle,coneOuterAngle:n.coneOuterAngle,coneOuterGain:n.coneOuterGain,distanceModel:n.distanceModel,maxDistance:n.maxDistance,refDistance:n.refDistance,rolloffFactor:n.rolloffFactor,panningModel:n.panningModel}),t._pannerAttr={coneInnerAngle:typeof n.pannerAttr.coneInnerAngle<"u"?n.pannerAttr.coneInnerAngle:t._coneInnerAngle,coneOuterAngle:typeof n.pannerAttr.coneOuterAngle<"u"?n.pannerAttr.coneOuterAngle:t._coneOuterAngle,coneOuterGain:typeof n.pannerAttr.coneOuterGain<"u"?n.pannerAttr.coneOuterGain:t._coneOuterGain,distanceModel:typeof n.pannerAttr.distanceModel<"u"?n.pannerAttr.distanceModel:t._distanceModel,maxDistance:typeof n.pannerAttr.maxDistance<"u"?n.pannerAttr.maxDistance:t._maxDistance,refDistance:typeof n.pannerAttr.refDistance<"u"?n.pannerAttr.refDistance:t._refDistance,rolloffFactor:typeof n.pannerAttr.rolloffFactor<"u"?n.pannerAttr.rolloffFactor:t._rolloffFactor,panningModel:typeof n.pannerAttr.panningModel<"u"?n.pannerAttr.panningModel:t._panningModel});else return s=t._soundById(parseInt(e[0],10)),s?s._pannerAttr:t._pannerAttr;else e.length===2&&(n=e[0],r=parseInt(e[1],10));for(var l=t._getSoundIds(r),u=0;u<l.length;u++)if(s=t._soundById(l[u]),s){var d=s._pannerAttr;d={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:d.coneInnerAngle,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:d.coneOuterAngle,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:d.coneOuterGain,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:d.distanceModel,maxDistance:typeof n.maxDistance<"u"?n.maxDistance:d.maxDistance,refDistance:typeof n.refDistance<"u"?n.refDistance:d.refDistance,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:d.rolloffFactor,panningModel:typeof n.panningModel<"u"?n.panningModel:d.panningModel};var _=s._panner;_||(s._pos||(s._pos=t._pos||[0,0,-.5]),o(s,"spatial"),_=s._panner),_.coneInnerAngle=d.coneInnerAngle,_.coneOuterAngle=d.coneOuterAngle,_.coneOuterGain=d.coneOuterGain,_.distanceModel=d.distanceModel,_.maxDistance=d.maxDistance,_.refDistance=d.refDistance,_.rolloffFactor=d.rolloffFactor,_.panningModel=d.panningModel}return t},Sound.prototype.init=(function(t){return function(){var e=this,n=e._parent;e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,t.call(this),e._stereo?n.stereo(e._stereo):e._pos&&n.pos(e._pos[0],e._pos[1],e._pos[2],e._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(t){return function(){var e=this,n=e._parent;return e._orientation=n._orientation,e._stereo=n._stereo,e._pos=n._pos,e._pannerAttr=n._pannerAttr,e._stereo?n.stereo(e._stereo):e._pos?n.pos(e._pos[0],e._pos[1],e._pos[2],e._id):e._panner&&(e._panner.disconnect(0),e._panner=void 0,n._refreshBuffer(e)),t.call(this)}})(Sound.prototype.reset);var o=function(t,e){e=e||"spatial",e==="spatial"?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,typeof t._panner.positionX<"u"?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),typeof t._panner.orientationX<"u"?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}})()});var pn=(o,t)=>{let e=v(ue),n=v(ye),r=e.getSplitShellEnabled(),s="/"+t.map(d=>d.path).join("/"),l=s.startsWith("/chartplotter"),u=s.startsWith("/dashboard");if(r&&u&&!l){let d=t.length>1?t[1].path:void 0;return n.createUrlTree(["chartplotter",d??""])}if(!r&&l){let d=t.length>1?t[1].path:void 0;return n.createUrlTree(["dashboard",d??""])}return!0};var vr=[{path:"dashboard/:id",component:lr,canMatch:[pn]},{path:"chartplotter/:id",loadComponent:()=>import("./chunk-T6TC7KWG.js").then(o=>o.SplitShellComponent),canMatch:[pn]},{path:"settings",loadComponent:()=>import("./chunk-YVLZ2UAQ.js").then(o=>o.SettingsComponent),title:"KIP - Settings"},{path:"options",loadComponent:()=>import("./chunk-Z5MCM3TT.js").then(o=>o.TabsComponent),title:"KIP - Options"},{path:"remote",loadComponent:()=>import("./chunk-BSAAN2EI.js").then(o=>o.RemoteControlComponent),title:"KIP - Remote Control"},{path:"help",loadComponent:()=>import("./chunk-UHKP2PC3.js").then(o=>o.AppHelpComponent),title:"KIP - Help"},{path:"data",loadComponent:()=>import("./chunk-7S37JBY2.js").then(o=>o.DataInspectorComponent),title:"KIP - Data Inspector"},{path:"login",loadComponent:()=>import("./chunk-3LKIOGV7.js").then(o=>o.WidgetLoginComponent),title:"Login"},{path:"**",redirectTo:"dashboard/0"}];var br={production:!0};var Nr=Yn(hn());function Vo(o,t){if(o&1){let e=K();S(0,"div",1)(1,"button",2),F("click",function(){I(e);let r=V();return D(r.action())}),N(2),T()()}if(o&2){let e=V();x(2),$e(" ",e.data.action," ")}}var Ko=["label"];function zo(o,t){}var Ho=Math.pow(2,31)-1,We=class{_overlayRef;instance;containerInstance;_afterDismissed=new Ae;_afterOpened=new Ae;_onAction=new Ae;_durationTimeoutId;_dismissedByAction=!1;constructor(t,e){this._overlayRef=e,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,Ho))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Sr=new Yt("MatSnackBarData"),Ve=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},qo=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return o})(),$o=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return o})(),jo=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275dir=ut({type:o,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return o})(),Uo=(()=>{class o{snackBarRef=v(We);data=v(Sr);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,r){n&1&&(S(0,"div",0),N(1),T(),X(2,Vo,3,1,"div",1)),n&2&&(x(),$e(" ",r.data.message,`
|
|
2
|
+
`),x(),Y(r.hasAction?2:-1))},dependencies:[Be,qo,$o,jo],styles:[`.mat-mdc-simple-snack-bar{display:flex}
|
|
3
|
+
`],encapsulation:2,changeDetection:0})}return o})(),_n="_mat-snack-bar-enter",gn="_mat-snack-bar-exit",Go=(()=>{class o extends ji{_ngZone=v(dt);_elementRef=v(si);_changeDetectorRef=v(Ai);_platform=v(Vi);_animationsDisabled=dn();snackBarConfig=v(Ve);_document=v(ct);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=v(Te);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new Ae;_onExit=new Ae;_onEnter=new Ae;_animationState="void";_live;_label;_role;_liveElementId=v(zi).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===gn?this._completeExit():e===_n&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Jt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_n)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(_n)},200)))}exit(){return this._destroyed?Zn(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Jt(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(gn)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(gn),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(l=>e.classList.add(l)):e.classList.add(n)),this._exposeToModals();let r=this._label.nativeElement,s="mdc-snackbar__label";r.classList.toggle(s,!r.querySelector(`.${s}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<n.length;r++){let s=n[r],l=s.getAttribute("aria-owns");this._trackedModals.add(s),l?l.indexOf(e)===-1&&s.setAttribute("aria-owns",l+" "+e):s.setAttribute("aria-owns",e)}}_clearFromModals(){this._trackedModals.forEach(e=>{let n=e.getAttribute("aria-owns");if(n){let r=n.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),r=e.querySelector("[aria-live]");if(n&&r){let s=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(s=document.activeElement),n.removeAttribute("aria-hidden"),r.appendChild(n),s?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,r){if(n&1&&(en(fn,7),en(Ko,7)),n&2){let s;tn(s=nn())&&(r._portalOutlet=s.first),tn(s=nn())&&(r._label=s.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,r){n&1&&F("animationend",function(l){return r.onAnimationEnd(l.animationName)})("animationcancel",function(l){return r.onAnimationEnd(l.animationName)}),n&2&&ht("mat-snack-bar-container-enter",r._animationState==="visible")("mat-snack-bar-container-exit",r._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!r._animationsDisabled)},features:[di],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(S(0,"div",1)(1,"div",2,0)(3,"div",3),fi(4,zo,0,0,"ng-template",4),T(),ce(5,"div"),T()()),n&2&&(x(5),ft("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[fn],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
|
|
4
|
+
`],encapsulation:2})}return o})();function Qo(){return new Ve}var Wo=new Yt("mat-snack-bar-default-options",{providedIn:"root",factory:Qo}),wr=(()=>{class o{_live=v(Ki);_injector=v(Te);_breakpointObserver=v(St);_parentSnackBar=v(o,{optional:!0,skipSelf:!0});_defaultConfig=v(Wo);_animationsDisabled=dn();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Uo;snackBarContainerComponent=Go;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",r){let s=Q(Q({},this._defaultConfig),r);return s.data={message:e,action:n},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let r=n&&n.viewContainerRef&&n.viewContainerRef.injector,s=Te.create({parent:r||this._injector,providers:[{provide:Ve,useValue:n}]}),l=new Qe(this.snackBarContainerComponent,n.viewContainerRef,s),u=e.attach(l);return u.instance.snackBarConfig=n,u.instance}_attach(e,n){let r=Q(Q(Q({},new Ve),this._defaultConfig),n),s=this._createOverlay(r),l=this._attachSnackBarContainer(s,r),u=new We(l,s);if(e instanceof li){let d=new $i(e,null,{$implicit:r.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{let d=this._createInjector(r,u),_=new Qe(e,void 0,d),i=l.attachComponentPortal(_);u.instance=i.instance}return this._breakpointObserver.observe(At.HandsetPortrait).pipe(ni(s.detachments())).subscribe(d=>{s.overlayElement.classList.toggle(this.handsetCssClass,d.matches)}),r.announcementMessage&&l._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(u,r),this._openedSnackBarRef=u,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new Ui;n.direction=e.direction;let r=Gi(this._injector),s=e.direction==="rtl",l=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!s||e.horizontalPosition==="end"&&s,u=!l&&e.horizontalPosition!=="center";return l?r.left("0"):u?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),n.positionStrategy=r,n.disableAnimations=this._animationsDisabled,Qi(this._injector,n)}_createInjector(e,n){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Te.create({parent:r||this._injector,providers:[{provide:We,useValue:n},{provide:Sr,useValue:e.data}]})}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ar=Yn(hn());var Xo={1e3:"notification",1001:"alert",1002:"warn",1003:"alarm",1004:"emergency"},be=(()=>{class o{settings=v(ue);data=v(Le);requests=v(or);static ALARM_SEVERITIES={normal:{sound:0,visual:0},nominal:{sound:0,visual:0},alert:{sound:1,visual:0},warn:{sound:2,visual:1},alarm:{sound:3,visual:2},emergency:{sound:4,visual:2}};_notificationSettingsSubscription=null;_notificationDataStreamSubscription=null;_notificationMetaStreamSubscription=null;_resetServiceSubscription=null;_notificationConfig;_notificationConfig$=new at(ki);_notifications=[];_notifications$=new at([]);_alarmsInfo$=new at({audioSev:0,visualSev:0,alarmCount:0,isMuted:!1});_players=new Map;_activeAlarmSoundtrack=null;_activeHowlId=null;_isHowlIdMuted=!1;_lastEmittedValue=null;constructor(){this._notificationSettingsSubscription=this.settings.getNotificationServiceConfigAsO().subscribe(e=>{this._notificationConfig=e,this.reset(),this._notificationConfig$.next(e),this._notificationConfig.disableNotifications&&!this._notificationDataStreamSubscription?.closed&&this.stopNotificationStream(),!this._notificationConfig.disableNotifications&&(this._notificationDataStreamSubscription===null||this._notificationDataStreamSubscription?.closed)&&this.startNotificationStream(),this._notificationConfig.sound.disableSound?this.playAlarm(1e3):this.updateNotificationsState()}),this._resetServiceSubscription=this.data.isResetService().subscribe(e=>{e&&this.reset()}),this.getPlayer(1e3)}startNotificationStream(){this._notificationDataStreamSubscription=this.data.getNotificationMsgObservable().subscribe(e=>this.processNotificationDeltaMsg(e)),this._notificationMetaStreamSubscription=this.data.getNotificationMetaObservable().subscribe(e=>this.processNotificationDeltaMeta(e))}stopNotificationStream(){this._notificationDataStreamSubscription?.unsubscribe(),this._notificationMetaStreamSubscription?.unsubscribe(),this.reset()}reset(){this._notificationConfig.disableNotifications&&(this._notifications=[],this._notifications$.next([])),this.updateNotificationsState()}observeNotifications(){return this._notifications$}addValue(e){this._notifications.push({path:e.path,value:e.value}),this.updateNotificationsState(),this._notifications$.next(this._notifications)}updateValue(e){let n=this._notifications.find(r=>r.path==e.path);n?(n.value=Q({},e.value),this.updateNotificationsState(),this._notifications$.next(this._notifications)):console.log("[Notification Service] Update path not found for: "+e.path)}deleteValue(e){let n=this._notifications.find(r=>r.path==e);n?(delete n.value,this.updateNotificationsState(),this._notifications$.next(this._notifications)):console.log("[Notification Service] Notification to delete not found for: "+e)}updateNotificationsState(){let e=0,n=0,r=0;for(let l of this._notifications){if(!l.value||!("method"in l.value)||l.value.method.length===0||l.value.state===ke.Normal&&!this._notificationConfig.devices.showNormalState||l.value.state===ke.Nominal&&!this._notificationConfig.devices.showNominalState)continue;r++;let{aSev:u,vSev:d}=this.getNotificationSeverity(l);e=Math.max(e,u),n=Math.max(n,d)}this._notificationConfig.sound.disableSound||this.playAlarm(1e3+e);let s={audioSev:e,visualSev:n,alarmCount:r,isMuted:this._isHowlIdMuted};Ue(s,this._lastEmittedValue)||(this._alarmsInfo$.next(s),this._lastEmittedValue=s)}processNotificationDeltaMsg(e){if(!e.path.startsWith("notifications.security"))if(e.value===null)this.deleteValue(e.path);else{let n=this._notifications.find(r=>r.path==e.path);n?(!n.value||n.value.state!==e.value.state||n.value.message!==e.value.message||!Ue(n.value.method,e.value.method))&&this.updateValue(e):this.addValue(e)}}processNotificationDeltaMeta(e){let n=this._notifications.find(r=>r.path==e.path);n?n.meta=e.meta:this._notifications.push({path:e.path,meta:e.meta}),this._notifications$.next(this._notifications)}getNotificationSeverity(e){let n=e.value.state,r=o.ALARM_SEVERITIES[n];if(!r)return console.log(`[Notification Service] Unknown Notification State
|
|
5
|
+
`+JSON.stringify(e)),{aSev:0,vSev:0};let s=r.sound,l=r.visual;return(!e.value.method.includes(Re.Sound)||this._notificationConfig.sound[`mute${n.charAt(0).toUpperCase()+n.slice(1)}`]||this._isHowlIdMuted)&&(s=0),e.value.method.includes(Re.Visual)||(l=0),{aSev:s,vSev:l}}setSkMethod(e,n){this.requests.putRequest(`${e}.method`,n,cn.create())}setSkState(e,n){this.requests.putRequest(`${e}.state`,n,cn.create())}observerNotificationsInfo(){return this._alarmsInfo$.pipe(Oe(e=>{let n=!1,r=!1;switch(e.visualSev){case 1:n=!0;break;case 2:r=!0;break}return Wn(Q({},e),{isWarn:n,isAlarmEmergency:r})}))}getPlayer(e){if(this._players.has(e))return this._players.get(e);let n=Xo[e];if(!n)return console.warn("[Notification Service] Unknown track id",e),this.getPlayer(1e3);let r=new Ar.Howl({src:[`assets/${n}.mp3`],autoplay:!1,preload:!0,loop:!0,onloaderror:(s,l)=>{console.log("[Notification Service] load error track:",e,l)},onplayerror:(s,l)=>{console.log("[Notification Service] play locked track:",e,l),r.once("unlock",()=>r.play())}});return this._players.set(e,r),r}mutePlayer(e){if(this._activeAlarmSoundtrack!=null&&this._activeAlarmSoundtrack!==1e3){let n=this._players.get(this._activeAlarmSoundtrack);n&&this._activeHowlId!=null&&n.mute(e,this._activeHowlId)}this._isHowlIdMuted=e,this.updateNotificationsState()}playAlarm(e){if(this._activeAlarmSoundtrack===e)return;if(this._activeAlarmSoundtrack!=null&&this._players.get(this._activeAlarmSoundtrack)?.stop(),e===1e3){this._activeAlarmSoundtrack=1e3,this._activeHowlId=null;return}let n=this.getPlayer(e);this._activeAlarmSoundtrack=e,this._activeHowlId=n.play(),n.mute(this._isHowlIdMuted,this._activeHowlId)}observeNotificationConfiguration(){return this._notificationConfig$.asObservable()}ngOnDestroy(){this._notificationSettingsSubscription?.unsubscribe(),this._resetServiceSubscription?.unsubscribe(),this._notificationDataStreamSubscription?.unsubscribe(),this._notificationMetaStreamSubscription?.unsubscribe(),this._notificationConfig$.complete(),this._notifications$.complete(),this._alarmsInfo$.complete();for(let e of this._players.values())try{e.unload()}catch{}this._players.clear()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Yo=(o,t)=>t.path;function Zo(o,t){o&1&&(S(0,"mat-icon"),N(1,"info"),T())}function Jo(o,t){o&1&&(S(0,"mat-icon"),N(1,"info"),T())}function ea(o,t){o&1&&(S(0,"mat-icon",3),N(1,"report"),T())}function ta(o,t){o&1&&(S(0,"mat-icon",4),N(1,"warning"),T())}function na(o,t){o&1&&(S(0,"mat-icon",5),N(1,"error"),T())}function ia(o,t){o&1&&(S(0,"mat-icon",6),N(1,"emergency_home"),T())}function ra(o,t){if(o&1){let e=K();S(0,"div",2),X(1,Zo,2,0,"mat-icon")(2,Jo,2,0,"mat-icon")(3,ea,2,0,"mat-icon",3)(4,ta,2,0,"mat-icon",4)(5,na,2,0,"mat-icon",5)(6,ia,2,0,"mat-icon",6),S(7,"div",7),N(8),T(),S(9,"div",8),N(10),yi(11,"slice"),T(),S(12,"div",9),N(13),T(),S(14,"button",10),F("click",function(){let r=I(e).$implicit,s=V();return D(s.silence(r.path))}),S(15,"mat-icon"),N(16,"music_off"),T()(),S(17,"button",11),F("click",function(){let r=I(e).$implicit,s=V();return D(s.clear(r.path))}),S(18,"mat-icon"),N(19,"published_with_changes"),T()()(),ce(20,"mat-divider",12)}if(o&2){let e,n=t.$implicit;x(),Y((e=n.value.state)==="nominal"?1:e==="normal"?2:e==="alert"?3:e==="warn"?4:e==="alarm"?5:e==="emergency"?6:-1),x(7),rn(n.value.state),x(2),$e(" ",vi(11,5,n.path,14)," "),x(3),rn(n.value.message),x(),me("disabled",!(n.value.method!=null&&n.value.method.includes("sound")))}}function oa(o,t){o&1&&(S(0,"mat-list-item",13)(1,"span",15),N(2,"Notifications Disabled"),T(),S(3,"span")(4,"i"),N(5,"*Enable notifications in Settings."),T()()())}function aa(o,t){o&1&&(S(0,"mat-list-item",14)(1,"i"),N(2,'"No Notification"'),T()())}function sa(o,t){if(o&1&&X(0,oa,6,0,"mat-list-item",13)(1,aa,3,0,"mat-list-item",14),o&2){let e=V();Y(e.notificationConfig().disableNotifications?0:1)}}function la(o,t){if(o&1){let e=K();S(0,"button",17),F("click",function(){I(e);let r=V(2);return D(r.mutePlayer(!r.isMuted))}),S(1,"span",18),N(2,"volume_up"),T(),N(3," Unmute Audio "),T()}}function ca(o,t){if(o&1){let e=K();S(0,"button",17),F("click",function(){I(e);let r=V(2);return D(r.mutePlayer(!r.isMuted))}),S(1,"span",18),N(2,"volume_off"),T(),N(3," Mute Audio "),T()}}function ua(o,t){if(o&1&&X(0,la,4,0,"button",16)(1,ca,4,0,"button",16),o&2){let e=V();Y(e.isMuted?0:1)}}var kr=(()=>{class o{_notificationsService=v(be);_notifications$=this._notificationsService.observeNotifications();notificationConfig=Z(this._notificationsService.observeNotificationConfiguration(),{requireSync:!0});menuNotifications=Z(Jn([this._notifications$,this._notificationsService.observeNotificationConfiguration()]).pipe(Oe(([e,n])=>{let r=[];return n.devices.showNormalState||r.push(ke.Normal),n.devices.showNominalState||r.push(ke.Nominal),e.filter(s=>s.value&&s.value.state&&!r.includes(s.value.state)).filter(s=>s.value&&s.value.method&&s.value.method.includes(Re.Visual))})),{requireSync:!0,equal:Ue});isMuted=!1;mutePlayer(e){this.isMuted=e,this._notificationsService.mutePlayer(e)}silence(e){this._notificationsService.setSkMethod(e,[Re.Visual])}clear(e){this._notificationsService.setSkState(e,ke.Normal)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["menu-notifications"]],decls:6,vars:2,consts:[[1,"menu-item-container"],[1,"actions-container","actions-bottom-container"],[1,"notification-container"],[1,"icon-alert-color"],[1,"icon-warn-color"],[1,"icon-alarm-color"],[1,"icon-emergency-color"],[1,"notification-title"],[1,"notification-path","scrollable-text"],[1,"notification-text"],["mat-icon-button","",1,"notification-action-btn",3,"click","disabled"],["mat-icon-button","",1,"notification-action-btn",3,"click"],[1,"notification-divider"],["lines","3","disabled","true",2,"text-align","center"],["disabled","true",2,"text-align","center"],["matListItemTitle",""],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button"],["mat-flat-button","","matTooltip","Temporally toggle all notification audio. To permanently disable/enable notification audio, use the configuration settings option",1,"action-button",3,"click"],[1,"material-icons"]],template:function(n,r){n&1&&(S(0,"mat-list",0),mt(1,ra,21,8,null,null,Yo,!1,sa,2,1),T(),S(4,"div",1),X(5,ua,2,1),T()),n&2&&(x(),pt(r.menuNotifications()),x(4),Y(r.notificationConfig().disableNotifications?-1:5))},dependencies:[rr,nr,ir,Zi,tr,pe,Be,Hi,Ct,fr,dr,ve,xe,Ei],styles:[".notification-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;padding:2px 10px 7px;scroll-behavior:smooth}mat-icon[_ngcontent-%COMP%]{margin-right:10px}.scrollable-text[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.scrollable-text[_ngcontent-%COMP%]:hover{overflow:auto;white-space:normal;word-wrap:break-word}.notification-title[_ngcontent-%COMP%]{text-transform:capitalize;font-size:var(--mat-sys-headline-small-size);width:calc(100% - 34px)}.notification-path[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-size);word-break:break-all;width:100%}.notification-text[_ngcontent-%COMP%]{font-size:var(--mat-sys-body-small-line-height);font-style:italic;width:100%;overflow:auto;white-space:normal;word-wrap:break-word}.notification-action-btn[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface-container)}.notification-btn-container[_ngcontent-%COMP%]{display:inline-block;width:50%;height:48px;text-align:center}.menu-item-container[_ngcontent-%COMP%]{width:230px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;height:calc(100% - 48px)}.notification-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:var(--mat-sys-surface-container)}.actions-container[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column}.actions-bottom-container[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;height:48px}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large))}.icon-alert-color[_ngcontent-%COMP%]{color:var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{color:var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{color:var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:transparent}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}.notification-divider[_ngcontent-%COMP%]{padding-top:10px}"],changeDetection:0})}return o})();var da=["badgeButton"],Cr=(()=>{class o{badgeButton=wi.required("badgeButton");_notifications=v(be);notificationsInfo=Z(this._notifications.observerNotificationsInfo());openNotificationMenu(){let e=new Event("openRightSidenav",{bubbles:!0,cancelable:!0});window.document.dispatchEvent(e)}onKeyDown(e){let n=e.key?.toLowerCase();(n==="enter"||n===" "||n==="spacebar")&&(e.preventDefault(),this.openNotificationMenu())}focus(){try{let e=this.badgeButton&&this.badgeButton(),n=e&&e.nativeElement;n&&typeof n.focus=="function"&&n.focus()}catch{}}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["notification-badge"]],viewQuery:function(n,r){n&1&&hi(r.badgeButton,da,5),n&2&&_i()},decls:5,vars:7,consts:[["badgeButton",""],["mat-fab","","role","button","aria-label","Open notifications",1,"layout-action-btn",3,"click","keydown"],["aria-hidden","false","matBadgeSize","large","matBadgePosition","after","matBadgeOverlap","true",1,"icon-alert-color",3,"matBadgeHidden","matBadge"]],template:function(n,r){if(n&1){let s=K();S(0,"div")(1,"button",1,0),F("click",function(){return I(s),D(r.openNotificationMenu())})("keydown",function(u){return I(s),D(r.onKeyDown(u))}),S(3,"mat-icon",2),N(4,"notifications "),T()()()}n&2&&(x(),ht("warn",r.notificationsInfo().isWarn)("alarm-emergency-blink",r.notificationsInfo().isAlarmEmergency),ft("aria-haspopup",!0),x(2),me("matBadgeHidden",!r.notificationsInfo().alarmCount)("matBadge",r.notificationsInfo().alarmCount))},dependencies:[pe,qi,ve,xe,Ct,ar],styles:["[_nghost-%COMP%]{display:block}.layout-action-btn[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary);background-color:var(--mat-sys-primary)}.icon-alert-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alert-color)}.icon-warn-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-warn-color)}.icon-alarm-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-alarm-color)}.icon-emergency-color[_ngcontent-%COMP%]{--mat-list-list-item-leading-icon-color: var(--kip-zone-emergency-color)}.alarm-emergency-blink[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking-emergency 1.5s infinite}@keyframes _ngcontent-%COMP%_blinking-emergency{0%{background-color:var(--kip-zone-alarm-color)}50%{background-color:var(--mat-sys-primary)}to{background-color:var(--kip-zone-alarm-color)}}.warn[_ngcontent-%COMP%]{color:var(--kip-zone-warn-color)}"]})}return o})();var Mr=(()=>{class o{overlayRef=null;overlay=v(Wi);injector=v(Te);open(){if(this.overlayRef)return;this.overlayRef=this.overlay.create({hasBackdrop:!1,panelClass:"notification-overlay-panel",positionStrategy:this.overlay.position().global().bottom("20px").left("20px"),scrollStrategy:this.overlay.scrollStrategies.reposition()});let e=new Qe(Cr,null,this.injector),n=this.overlayRef.attach(e);try{let r=n&&n.instance;if(r&&typeof r.focus=="function")r.focus();else{let s=this.overlayRef.overlayElement,l=s&&s.querySelector("button[mat-fab], .layout-action-btn");l&&typeof l.focus=="function"&&l.focus()}}catch{}}close(){try{this.overlayRef&&this.overlayRef.dispose()}catch(e){console.warn("[NotificationOverlayService] dispose failed",e)}finally{this.overlayRef=null}}toggle(e){e?this.open():this.close()}isOpen(){return!!this.overlayRef}ngOnDestroy(){try{this.overlayRef&&this.overlayRef.dispose()}catch{}finally{this.overlayRef=null}}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function fa(o,t){if(o&1){let e=K();S(0,"button",12),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("toggleFullScreen"))}),S(1,"span",10),N(2,"fullscreen"),T()()}}function ma(o,t){if(o&1){let e=K();S(0,"button",12),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("toggleFullScreen"))}),S(1,"span",10),N(2,"close_fullscreen"),T()()}}function pa(o,t){if(o&1&&X(0,fa,3,0,"button",11)(1,ma,3,0,"button",11),o&2){let e=V();Y(e.uiEvent.fullscreenStatus()?1:0)}}function ha(o,t){if(o&1){let e=K();S(0,"button",14),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("nightMode"))}),S(1,"span",10),N(2,"mode_night"),T()()}}function _a(o,t){if(o&1){let e=K();S(0,"button",14),F("click",function(){I(e);let r=V(2);return D(r.onActionItem("nightMode"))}),S(1,"span",10),N(2,"light_mode"),T()()}}function ga(o,t){if(o&1&&X(0,ha,3,0,"button",13)(1,_a,3,0,"button",13),o&2){let e=V();Y(e.app.isNightMode()?1:0)}}function ya(o,t){if(o&1){let e=K();S(0,"tile-large-icon",15,1),F("click",function(){let r=I(e).$index,s=V();return D(s.navigateToDashboard(r))}),T()}if(o&2){let e=t.$implicit;me("active",e.active)("svgIcon",e.svgIcon)("iconSize",e.iconSize)("label",e.label)}}var Pr=(()=>{class o{actionsSidenav=Si.required();_router=v(ye);uiEvent=v(kt);dashboard=v(De);app=v(wt);_settings=v(ue);isAutoNightMode=Z(this._settings.getAutoNightModeAsO(),{requireSync:!0});_initialDashboardMatch=(()=>{let n=this._router.parseUrl(this._router.url).root.children.primary,r=n?n.segments.map(s=>s.path):[];return r.length===0||r[0]==="dashboard"||r[0]==="chartplotter"})();isDashboardContext=Z(this._router.events.pipe(st(e=>e instanceof vt),ti(null),Oe(()=>{let n=this._router.parseUrl(this._router.url).root.children.primary,r=n?n.segments.map(s=>s.path):[];return r.length===0||r[0]==="dashboard"||r[0]==="chartplotter"}),ei()),{initialValue:this._initialDashboardMatch});menuItems=bi(()=>{let e=this.dashboard.dashboards(),n=this.dashboard.activeDashboard();return e.map((r,s)=>({id:Number(r.id),active:s===n,pinned:!1,svgIcon:r.icon||"dashboard-dashboard",iconSize:60,label:r.name||`Dashboard ${s+1}`}))});ngAfterViewInit(){this.uiEvent.addHotkeyListener((e,n)=>this.handleKeyDown(e,n),{ctrlKey:!0,shiftKey:!0,keys:["e","f","n"]})}ngOnDestroy(){this.uiEvent.removeHotkeyListener(this.handleKeyDown.bind(this))}handleKeyDown(e,n){switch(e){case"e":this.onActionItem("layout");break;case"f":this.onActionItem("toggleFullScreen");break;case"n":this.onActionItem("nightMode");break;default:break}}onActionItem(e){switch(this.actionsSidenav().close(),e){case"toggleFullScreen":this.uiEvent.toggleFullScreen();break;case"settings":this._router.navigate(["/settings"]);break;case"layout":this.dashboard.toggleStaticDashboard();break;case"nightMode":this.app.isNightMode.set(!this.app.isNightMode()),this.app.toggleDayNightMode();break;default:break}}navigateToDashboard(e){this.actionsSidenav().close(),this._router.navigate([`dashboard/${e}`])}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["menu-actions"]],inputs:{actionsSidenav:[1,"actionsSidenav"]},decls:14,vars:3,consts:[["tileContainer",""],["tile",""],[1,"actions-container"],[1,"actions-top-container"],["mat-flat-button","","tabindex","0",1,"action-button","home-btn",3,"click"],["height","24px","width","24px","svgIcon","kip","aria-hidden","false",1,"home-icon",2,"height","24px","width","24px"],[1,"menu-item-container"],["tabindex","0",3,"active","svgIcon","iconSize","label"],[1,"actions-bottom-container"],["mat-flat-button","",1,"action-button",2,"width","135px",3,"click","disabled"],[1,"material-icons"],["mat-flat-button","","tabindex","0",1,"action-button"],["mat-flat-button","","tabindex","0",1,"action-button",3,"click"],["mat-flat-button","",1,"action-button"],["mat-flat-button","",1,"action-button",3,"click"],["tabindex","0",3,"click","active","svgIcon","iconSize","label"]],template:function(n,r){if(n&1){let s=K();S(0,"div",2)(1,"div",3),X(2,pa,2,1),X(3,ga,2,1),S(4,"button",4),F("click",function(){return I(s),D(r.onActionItem("settings"))}),ce(5,"mat-icon",5),T()(),S(6,"div",6,0),mt(8,ya,2,4,"tile-large-icon",7,pi),T(),S(10,"div",8)(11,"button",9),F("click",function(){return I(s),D(r.onActionItem("layout"))}),S(12,"span",10),N(13,"lock_open"),T()()()()}n&2&&(x(2),Y(r.uiEvent.fullscreenSupported()?2:-1),x(),Y(r.isAutoNightMode()?-1:3),x(5),pt(r.menuItems()),x(3),me("disabled",!r.isDashboardContext()))},dependencies:[ve,xe,pe,Be,cr],styles:[".actions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:135px}.actions-top-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.actions-bottom-container[_ngcontent-%COMP%]{height:48px;width:100%}.action-button[_ngcontent-%COMP%]{border-radius:0;height:48px;flex:1 1 48px;min-height:0;overflow:hidden;border:1px solid var(--mat-sidenav-container-background-color, var(--mat-sys-surface))}.home-btn[_ngcontent-%COMP%]{--mat-icon-button-icon-size: 24px;--mat-button-filled-icon-offset: 0px;--mat-button-filled-icon-spacing: 0px;--mat-button-filled-label-text-size: 0px}.home-icon[_ngcontent-%COMP%] .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{font-size:0px}.full-size[_ngcontent-%COMP%]{width:135px}.menu-item-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;padding:3px 1px;gap:5px;width:135px;overflow-y:auto;scrollbar-width:none;overflow-x:hidden;scroll-behavior:smooth;flex:1 1 auto;min-height:0}"]})}return o})();var Or=(()=>{class o{_snackBar=v(wr);_deltaService=v(Fe);_connectionStateMachine=v(Ie);_app=v(wt);_dashboard=v(De);_notifications=v(be);_uiEvent=v(kt);_dialog=v(er);appSettingsService=v(ue);authenticationService=v(ge);_dataSet=v(Et);_responsive=v(St);_destroyRef=v(ri);_notificationOverlay=v(Mr);_router=v(ye);notificationHowl;_upgradeShown=!1;actionsSidenavOpened=ln(!1);notificationsSidenavOpened=ln(!1);notificationsInfo=Z(this._notifications.observerNotificationsInfo());isDashboardStatic=Z(this._dashboard.isDashboardStatic$);dashboardVisible=oi(!1);isPhonePortrait;scheduledOpen=null;OPEN_DELAY_MS=300;_swipeLeftHandler=e=>this.onSwipeLeft(e);_swipeRightHandler=e=>this.onSwipeRight(e);_hotkeyHandler=(e,n)=>this.handleKeyDown(e,n);constructor(){_t(()=>{!this._upgradeShown&&this.appSettingsService.configUpgrade()&&(this._upgradeShown=!0,this._dialog.openFrameDialog({title:"Upgrade Instructions",component:"upgrade-config"},!0).pipe(je(this._destroyRef)).subscribe())});try{this.dashboardVisible.set(this.isUrlDashboard(this._router.url))}catch{}this._router.events.pipe(st(e=>e instanceof vt),je(this._destroyRef)).subscribe(e=>{try{this.dashboardVisible.set(this.isUrlDashboard(e.urlAfterRedirects||e.url))}catch{}}),_t(()=>{let e=this.dashboardVisible()&&this.isDashboardStatic()&&this.notificationsInfo().alarmCount>0;if(this.notificationsSidenavOpened()){this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch{}return}if(e){if(this.scheduledOpen)return;this.scheduledOpen=window.setTimeout(()=>{this.scheduledOpen=null;try{this._notificationOverlay.open()}catch{}},this.OPEN_DELAY_MS)}else{this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null);try{this._notificationOverlay.close()}catch{}}}),_t(()=>{if(this.notificationsSidenavOpened())try{this._notificationOverlay.close()}catch{}}),this.isPhonePortrait=Z(this._responsive.observe(At.HandsetPortrait)),this._connectionStateMachine.status$.pipe(je(this._destroyRef)).subscribe(e=>this.displayConnectionsStatusNotification(e)),this._app.getSnackbarAppNotifications().pipe(je(this._destroyRef)).subscribe(e=>{this._snackBar.open(e.message,e.action,{duration:e.duration,verticalPosition:"top"}),!this.appSettingsService.getNotificationConfig().sound.disableSound&&!e.silent&&(this.notificationHowl||(this.notificationHowl=new Nr.Howl({src:["assets/notification.mp3"],preload:!0,volume:.3})),this.notificationHowl.stop(),this.notificationHowl.play())})}isUrlDashboard(e){if(!e)return!1;let n=e.split("?")[0].replace(/\/+$/,"");return n==="/dashboard"||/^\/dashboard(\/\d+)?$/.test(n)||n==="/"}ngOnInit(){this._uiEvent.addGestureListeners(this._swipeLeftHandler,this._swipeRightHandler)}ngAfterViewInit(){this._uiEvent.addHotkeyListener(this._hotkeyHandler,{ctrlKey:!0,keys:["arrowright","arrowleft"]})}handleKeyDown(e,n){switch(e){case"arrowright":this.onSwipeRight(n);break;case"arrowleft":this.onSwipeLeft(n);break;case"escape":this.backdropClicked();break}}escapeKeyPressed(e){e=e.toLowerCase(),e==="escape"&&this.backdropClicked()}displayConnectionsStatusNotification(e){let n=e.message;switch(e.operation){case 0:this._app.sendSnackbarNotification(n,5e3,!0);break;case 1:case 2:break;case 3:this._app.sendSnackbarNotification(n,3e3,!1,"");break;case 4:this._app.sendSnackbarNotification(n,3e3,!0,"");break;case 5:this._app.sendSnackbarNotification(n,0,!1);break;default:console.error("[AppComponent] Unknown operation code:",e.operation),this._app.sendSnackbarNotification(`Unknown connection status: ${e.state}`,0,!1)}}onSwipeRight(e){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(e.preventDefault(),this.isPhonePortrait().matches?(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.set(!0)):(this.actionsSidenavOpened.set(!1),this.notificationsSidenavOpened.update(n=>!n)))}backdropClicked(){this.notificationsSidenavOpened.update(e=>e?!e:!1),this.actionsSidenavOpened.update(e=>e?!e:!1)}onSwipeLeft(e){this._dashboard.isDashboardStatic()&&!this._uiEvent.isDragging()&&(e.preventDefault(),this.isPhonePortrait().matches?(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.set(!0)):(this.notificationsSidenavOpened.set(!1),this.actionsSidenavOpened.update(n=>!n)))}ngOnDestroy(){this._uiEvent.removeGestureListeners(this._swipeLeftHandler,this._swipeRightHandler),this._uiEvent.removeHotkeyListener(this._hotkeyHandler),this.notificationHowl?.unload(),this.notificationHowl=void 0,this.scheduledOpen&&(clearTimeout(this.scheduledOpen),this.scheduledOpen=null)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=ee({type:o,selectors:[["app-root"]],inputs:{actionsSidenavOpened:[1,"actionsSidenavOpened"],notificationsSidenavOpened:[1,"notificationsSidenavOpened"]},outputs:{actionsSidenavOpened:"actionsSidenavOpenedChange",notificationsSidenavOpened:"notificationsSidenavOpenedChange"},decls:8,vars:3,consts:[["actionsSidenav",""],["kipGestures","",1,"sidenav-container",3,"swipeleft","swiperight","backdropClick"],["mode","over","position","start","autoFocus","true","disableClose","",1,"sidenav-notifications",3,"openedChange","keydown","opened"],["mode","over","position","end","autoFocus","true","disableClose","",1,"sidenav-actions",3,"openedChange","keydown","opened"],[3,"actionsSidenav"],[1,"router-outlet-container"]],template:function(n,r){if(n&1){let s=K();S(0,"mat-sidenav-container",1),F("swipeleft",function(u){return I(s),D(r.onSwipeLeft(u))})("swiperight",function(u){return I(s),D(r.onSwipeRight(u))})("backdropClick",function(){return I(s),D(r.backdropClicked())}),S(1,"mat-sidenav",2),sn("openedChange",function(u){return I(s),an(r.notificationsSidenavOpened,u)||(r.notificationsSidenavOpened=u),D(u)}),F("keydown",function(u){return I(s),D(r.escapeKeyPressed(u.key))}),ce(2,"menu-notifications"),T(),S(3,"mat-sidenav",3,0),sn("openedChange",function(u){return I(s),an(r.actionsSidenavOpened,u)||(r.actionsSidenavOpened=u),D(u)}),F("keydown",function(u){return I(s),D(r.escapeKeyPressed(u.key))}),ce(5,"menu-actions",4),T(),S(6,"mat-sidenav-content"),ce(7,"router-outlet",5),T()()}if(n&2){let s=gi(4);x(),on("opened",r.notificationsSidenavOpened),x(2),on("opened",r.actionsSidenavOpened),x(2),me("actionsSidenav",s)}},dependencies:[kr,Pr,pe,yr,ve,Li,xi,_r,pr,hr,mr,Ti,mn],styles:[".sidenav-container[_ngcontent-%COMP%]{height:100%;width:100%}mat-sidenav-content[_ngcontent-%COMP%]{overflow-y:hidden;overflow-x:hidden}mat-sidenav.sidenav-notifications[_ngcontent-%COMP%]{width:230px;z-index:1200}mat-sidenav.sidenav-actions[_ngcontent-%COMP%]{width:135px;z-index:1200;overflow-x:hidden}"]})}return o})();function Ir(o){return new P(3e3,!1)}function va(){return new P(3100,!1)}function ba(){return new P(3101,!1)}function Sa(o){return new P(3001,!1)}function wa(o){return new P(3003,!1)}function Aa(o){return new P(3004,!1)}function xr(o,t){return new P(3005,!1)}function Rr(){return new P(3006,!1)}function Fr(){return new P(3007,!1)}function Lr(o,t){return new P(3008,!1)}function Br(o){return new P(3002,!1)}function Vr(o,t,e,n,r){return new P(3010,!1)}function Kr(){return new P(3011,!1)}function zr(){return new P(3012,!1)}function Hr(){return new P(3200,!1)}function qr(){return new P(3202,!1)}function $r(){return new P(3013,!1)}function jr(o){return new P(3014,!1)}function Ur(o){return new P(3015,!1)}function Gr(o){return new P(3016,!1)}function Qr(o,t){return new P(3404,!1)}function Ta(o){return new P(3502,!1)}function Wr(o){return new P(3503,!1)}function Xr(){return new P(3300,!1)}function Yr(o){return new P(3504,!1)}function Zr(o){return new P(3301,!1)}function Jr(o,t){return new P(3302,!1)}function eo(o){return new P(3303,!1)}function to(o,t){return new P(3400,!1)}function no(o){return new P(3401,!1)}function io(o){return new P(3402,!1)}function ro(o,t){return new P(3505,!1)}function he(o){switch(o.length){case 0:return new Ee;case 1:return o[0];default:return new bt(o)}}function Sn(o,t,e=new Map,n=new Map){let r=[],s=[],l=-1,u=null;if(t.forEach(d=>{let _=d.get("offset"),i=_==l,a=i&&u||new Map;d.forEach((c,f)=>{let m=f,h=c;if(f!=="offset")switch(m=o.normalizePropertyName(m,r),h){case Ge:h=e.get(f);break;case te:h=n.get(f);break;default:h=o.normalizeStyleValue(f,m,h,r);break}a.set(m,h)}),i||s.push(a),u=a,l=_}),r.length)throw Ta(r);return s}function Pt(o,t,e,n){switch(t){case"start":o.onStart(()=>n(e&&yn(e,"start",o)));break;case"done":o.onDone(()=>n(e&&yn(e,"done",o)));break;case"destroy":o.onDestroy(()=>n(e&&yn(e,"destroy",o)));break}}function yn(o,t,e){let n=e.totalTime,r=!!e.disabled,s=Nt(o.element,o.triggerName,o.fromState,o.toState,t||o.phaseName,n??o.totalTime,r),l=o._data;return l!=null&&(s._data=l),s}function Nt(o,t,e,n,r="",s=0,l){return{element:o,triggerName:t,fromState:e,toState:n,phaseName:r,totalTime:s,disabled:!!l}}function $(o,t,e){let n=o.get(t);return n||o.set(t,n=e),n}function wn(o){let t=o.indexOf(":"),e=o.substring(1,t),n=o.slice(t+1);return[e,n]}var Ea=typeof document>"u"?null:document.documentElement;function Ot(o){let t=o.parentNode||o.host||null;return t===Ea?null:t}function ka(o){return o.substring(1,6)=="ebkit"}var Ce=null,Dr=!1;function oo(o){Ce||(Ce=Ca()||{},Dr=Ce.style?"WebkitAppearance"in Ce.style:!1);let t=!0;return Ce.style&&!ka(o)&&(t=o in Ce.style,!t&&Dr&&(t="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Ce.style)),t}function Ca(){return typeof document<"u"?document.body:null}function An(o,t){for(;t;){if(t===o)return!0;t=Ot(t)}return!1}function Tn(o,t,e){if(e)return Array.from(o.querySelectorAll(t));let n=o.querySelector(t);return n?[n]:[]}var Ma=1e3,En="{{",Pa="}}",kn="ng-enter",It="ng-leave",Xe="ng-trigger",Ye=".ng-trigger",Cn="ng-animating",Dt=".ng-animating";function de(o){if(typeof o=="number")return o;let t=o.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:vn(parseFloat(t[1]),t[2])}function vn(o,t){switch(t){case"s":return o*Ma;default:return o}}function Ze(o,t,e){return o.hasOwnProperty("duration")?o:Oa(o,t,e)}var Na=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Oa(o,t,e){let n,r=0,s="";if(typeof o=="string"){let l=o.match(Na);if(l===null)return t.push(Ir(o)),{duration:0,delay:0,easing:""};n=vn(parseFloat(l[1]),l[2]);let u=l[3];u!=null&&(r=vn(parseFloat(u),l[4]));let d=l[5];d&&(s=d)}else n=o;if(!e){let l=!1,u=t.length;n<0&&(t.push(va()),l=!0),r<0&&(t.push(ba()),l=!0),l&&t.splice(u,0,Ir(o))}return{duration:n,delay:r,easing:s}}function ao(o){return o.length?o[0]instanceof Map?o:o.map(t=>new Map(Object.entries(t))):[]}function ie(o,t,e){t.forEach((n,r)=>{let s=xt(r);e&&!e.has(r)&&e.set(r,o.style[s]),o.style[s]=n})}function Se(o,t){t.forEach((e,n)=>{let r=xt(n);o.style[r]=""})}function Ke(o){return Array.isArray(o)?o.length==1?o[0]:Bi(o):o}function so(o,t,e){let n=t.params||{},r=Mn(o);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||e.push(Sa(s))})}var bn=new RegExp(`${En}\\s*(.+?)\\s*${Pa}`,"g");function Mn(o){let t=[];if(typeof o=="string"){let e;for(;e=bn.exec(o);)t.push(e[1]);bn.lastIndex=0}return t}function ze(o,t,e){let n=`${o}`,r=n.replace(bn,(s,l)=>{let u=t[l];return u==null&&(e.push(wa(l)),u=""),u.toString()});return r==n?o:r}var Ia=/-+([a-z0-9])/g;function xt(o){return o.replace(Ia,(...t)=>t[1].toUpperCase())}function lo(o,t){return o===0||t===0}function co(o,t,e){if(e.size&&t.length){let n=t[0],r=[];if(e.forEach((s,l)=>{n.has(l)||r.push(l),n.set(l,s)}),r.length)for(let s=1;s<t.length;s++){let l=t[s];r.forEach(u=>l.set(u,Rt(o,u)))}}return t}function j(o,t,e){switch(t.type){case k.Trigger:return o.visitTrigger(t,e);case k.State:return o.visitState(t,e);case k.Transition:return o.visitTransition(t,e);case k.Sequence:return o.visitSequence(t,e);case k.Group:return o.visitGroup(t,e);case k.Animate:return o.visitAnimate(t,e);case k.Keyframes:return o.visitKeyframes(t,e);case k.Style:return o.visitStyle(t,e);case k.Reference:return o.visitReference(t,e);case k.AnimateChild:return o.visitAnimateChild(t,e);case k.AnimateRef:return o.visitAnimateRef(t,e);case k.Query:return o.visitQuery(t,e);case k.Stagger:return o.visitStagger(t,e);default:throw Aa(t.type)}}function Rt(o,t){return window.getComputedStyle(o)[t]}var jn=(()=>{class o{validateStyleProperty(e){return oo(e)}containsElement(e,n){return An(e,n)}getParentElement(e){return Ot(e)}query(e,n,r){return Tn(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,s,l,u=[],d){return new Ee(r,s)}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})(),Pe=class{static NOOP=new jn},Ne=class{};var Da=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Kt=class extends Ne{normalizePropertyName(t,e){return xt(t)}normalizeStyleValue(t,e,n,r){let s="",l=n.toString().trim();if(Da.has(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&r.push(xr(t,n))}return l+s}};var zt="*";function xa(o,t){let e=[];return typeof o=="string"?o.split(/\s*,\s*/).forEach(n=>Ra(n,e,t)):e.push(o),e}function Ra(o,t,e){if(o[0]==":"){let d=Fa(o,e);if(typeof d=="function"){t.push(d);return}o=d}let n=o.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(Ur(o)),t;let r=n[1],s=n[2],l=n[3];t.push(uo(r,l));let u=r==zt&&l==zt;s[0]=="<"&&!u&&t.push(uo(l,r))}function Fa(o,t){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return t.push(Gr(o)),"* => *"}}var Ft=new Set(["true","1"]),Lt=new Set(["false","0"]);function uo(o,t){let e=Ft.has(o)||Lt.has(o),n=Ft.has(t)||Lt.has(t);return(r,s)=>{let l=o==zt||o==r,u=t==zt||t==s;return!l&&e&&typeof r=="boolean"&&(l=r?Ft.has(o):Lt.has(o)),!u&&n&&typeof s=="boolean"&&(u=s?Ft.has(t):Lt.has(t)),l&&u}}var So=":self",La=new RegExp(`s*${So}s*,?`,"g");function wo(o,t,e,n){return new xn(o).build(t,e,n)}var fo="",xn=class{_driver;constructor(t){this._driver=t}build(t,e,n){let r=new Rn(e);return this._resetContextStyleTimingState(r),j(this,Ke(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector=fo,t.collectedStyles=new Map,t.collectedStyles.set(fo,new Map),t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0,s=[],l=[];return t.name.charAt(0)=="@"&&e.errors.push(Rr()),t.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),u.type==k.State){let d=u,_=d.name;_.toString().split(/\s*,\s*/).forEach(i=>{d.name=i,s.push(this.visitState(d,e))}),d.name=_}else if(u.type==k.Transition){let d=this.visitTransition(u,e);n+=d.queryCount,r+=d.depCount,l.push(d)}else e.errors.push(Fr())}),{type:k.Trigger,name:t.name,states:s,transitions:l,queryCount:n,depCount:r,options:null}}visitState(t,e){let n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){let s=new Set,l=r||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(d=>{Mn(d).forEach(_=>{l.hasOwnProperty(_)||s.add(_)})})}),s.size&&e.errors.push(Lr(t.name,[...s.values()]))}return{type:k.State,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let n=j(this,Ke(t.animation),e),r=xa(t.expr,e.errors);return{type:k.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Me(t.options)}}visitSequence(t,e){return{type:k.Sequence,steps:t.steps.map(n=>j(this,n,e)),options:Me(t.options)}}visitGroup(t,e){let n=e.currentTime,r=0,s=t.steps.map(l=>{e.currentTime=n;let u=j(this,l,e);return r=Math.max(r,e.currentTime),u});return e.currentTime=r,{type:k.Group,steps:s,options:Me(t.options)}}visitAnimate(t,e){let n=za(t.timings,e.errors);e.currentAnimateTimings=n;let r,s=t.styles?t.styles:un({});if(s.type==k.Keyframes)r=this.visitKeyframes(s,e);else{let l=t.styles,u=!1;if(!l){u=!0;let _={};n.easing&&(_.easing=n.easing),l=un(_)}e.currentTime+=n.duration+n.delay;let d=this.visitStyle(l,e);d.isEmptyStep=u,r=d}return e.currentAnimateTimings=null,{type:k.Animate,timings:n,style:r,options:null}}visitStyle(t,e){let n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){let n=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let u of r)typeof u=="string"?u===te?n.push(u):e.errors.push(Br(u)):n.push(new Map(Object.entries(u)));let s=!1,l=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(l=u.get("easing"),u.delete("easing")),!s)){for(let d of u.values())if(d.toString().indexOf(En)>=0){s=!0;break}}}),{type:k.Style,styles:n,easing:l,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let n=e.currentAnimateTimings,r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(l=>{typeof l!="string"&&l.forEach((u,d)=>{let _=e.collectedStyles.get(e.currentQuerySelector),i=_.get(d),a=!0;i&&(s!=r&&s>=i.startTime&&r<=i.endTime&&(e.errors.push(Vr(d,i.startTime,i.endTime,s,r)),a=!1),s=i.startTime),a&&_.set(d,{startTime:s,endTime:r}),e.options&&so(u,e.options,e.errors)})})}visitKeyframes(t,e){let n={type:k.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Kr()),n;let r=1,s=0,l=[],u=!1,d=!1,_=0,i=t.steps.map(g=>{let w=this._makeStyleAst(g,e),C=w.offset!=null?w.offset:Ka(w.styles),O=0;return C!=null&&(s++,O=w.offset=C),d=d||O<0||O>1,u=u||O<_,_=O,l.push(O),w});d&&e.errors.push(zr()),u&&e.errors.push(Hr());let a=t.steps.length,c=0;s>0&&s<a?e.errors.push(qr()):s==0&&(c=r/(a-1));let f=a-1,m=e.currentTime,h=e.currentAnimateTimings,p=h.duration;return i.forEach((g,w)=>{let C=c>0?w==f?1:c*w:l[w],O=C*p;e.currentTime=m+h.delay+O,h.duration=O,this._validateStyleAst(g,e),g.offset=C,n.styles.push(g)}),n}visitReference(t,e){return{type:k.Reference,animation:j(this,Ke(t.animation),e),options:Me(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:k.AnimateChild,options:Me(t.options)}}visitAnimateRef(t,e){return{type:k.AnimateRef,animation:this.visitReference(t.animation,e),options:Me(t.options)}}visitQuery(t,e){let n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;let[s,l]=Ba(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,$(e.collectedStyles,e.currentQuerySelector,new Map);let u=j(this,Ke(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:k.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:u,originalSelector:t.selector,options:Me(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push($r());let n=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Ze(t.timings,e.errors,!0);return{type:k.Stagger,animation:j(this,Ke(t.animation),e),timings:n,options:null}}};function Ba(o){let t=!!o.split(/\s*,\s*/).find(e=>e==So);return t&&(o=o.replace(La,"")),o=o.replace(/@\*/g,Ye).replace(/@\w+/g,e=>Ye+"-"+e.slice(1)).replace(/:animating/g,Dt),[o,t]}function Va(o){return o?Q({},o):null}var Rn=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(t){this.errors=t}};function Ka(o){if(typeof o=="string")return null;let t=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}});else if(o instanceof Map&&o.has("offset")){let e=o;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function za(o,t){if(o.hasOwnProperty("duration"))return o;if(typeof o=="number"){let s=Ze(o,t).duration;return Pn(s,0,"")}let e=o;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Pn(0,0,"");return s.dynamic=!0,s.strValue=e,s}let r=Ze(e,t);return Pn(r.duration,r.delay,r.easing)}function Me(o){return o?(o=Q({},o),o.params&&(o.params=Va(o.params))):o={},o}function Pn(o,t,e){return{duration:o,delay:t,easing:e}}function Un(o,t,e,n,r,s,l=null,u=!1){return{type:1,element:o,keyframes:t,preStyleProps:e,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:l,subTimeline:u}}var et=class{_map=new Map;get(t){return this._map.get(t)||[]}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()}},Ha=1,qa=":enter",$a=new RegExp(qa,"g"),ja=":leave",Ua=new RegExp(ja,"g");function Ao(o,t,e,n,r,s=new Map,l=new Map,u,d,_=[]){return new Fn().buildKeyframes(o,t,e,n,r,s,l,u,d,_)}var Fn=class{buildKeyframes(t,e,n,r,s,l,u,d,_,i=[]){_=_||new et;let a=new Ln(t,e,_,r,s,i,[]);a.options=d;let c=d.delay?de(d.delay):0;a.currentTimeline.delayNextStep(c),a.currentTimeline.setStyles([l],null,a.errors,d),j(this,n,a);let f=a.timelines.filter(m=>m.containsAnimation());if(f.length&&u.size){let m;for(let h=f.length-1;h>=0;h--){let p=f[h];if(p.element===e){m=p;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([u],null,a.errors,d)}return f.length?f.map(m=>m.buildKeyframes()):[Un(e,[],[],[],0,c,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,l=this._visitSubInstructions(n,r,r.options);s!=l&&e.transformIntoNewTimeline(l)}e.previousNode=t}visitAnimateRef(t,e){let n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,n),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,n){for(let r of t){let s=r?.delay;if(s){let l=typeof s=="number"?s:de(ze(s,r?.params??{},e.errors));n.delayNextStep(l)}}}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime,l=n.duration!=null?de(n.duration):null,u=n.delay!=null?de(n.delay):null;return l!==0&&t.forEach(d=>{let _=e.appendInstructionToTimeline(d,l,u);s=Math.max(s,_.duration+_.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),j(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let n=e.subContextCount,r=e,s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==k.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ht);let l=de(s.delay);r.delayNextStep(l)}t.steps.length&&(t.steps.forEach(l=>j(this,l,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let n=[],r=e.currentTimeline.currentTime,s=t.options&&t.options.delay?de(t.options.delay):0;t.steps.forEach(l=>{let u=e.createSubContext(t.options);s&&u.delayNextStep(s),j(this,l,u),r=Math.max(r,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let n=t.strValue,r=e.params?ze(n,e.params,e.errors):n;return Ze(r,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let s=t.style;s.type==k.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,u=e.createSubContext().currentTimeline;u.easing=n.easing,t.styles.forEach(d=>{let _=d.offset||0;u.forwardTime(_*s),u.setStyles(d.styles,d.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){let n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?de(r.delay):0;s&&(e.previousNode.type===k.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ht);let l=n,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=u.length;let d=null;u.forEach((_,i)=>{e.currentQueryIndex=i;let a=e.createSubContext(t.options,_);s&&a.delayNextStep(s),_===e.element&&(d=a.currentTimeline),j(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe();let c=a.currentTimeline.currentTime;l=Math.max(l,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let n=e.parentContext,r=e.currentTimeline,s=t.timings,l=Math.abs(s.duration),u=l*(e.currentQueryTotal-1),d=l*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=n.currentStaggerTime;break}let i=e.currentTimeline;d&&i.delayNextStep(d);let a=i.currentTime;j(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-a+(r.startTime-n.currentTimeline.startTime)}},Ht={},Ln=class o{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ht;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,n,r,s,l,u,d){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=l,this.timelines=u,this.currentTimeline=d||new qt(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let n=t,r=this.options;n.duration!=null&&(r.duration=de(n.duration)),n.delay!=null&&(r.delay=de(n.delay));let s=n.params;if(s){let l=r.params;l||(l=this.options.params={}),Object.keys(s).forEach(u=>{(!e||!l.hasOwnProperty(u))&&(l[u]=ze(s[u],l,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let n=t.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return t}createSubContext(t=null,e,n){let r=e||this.element,s=new o(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){let r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(n??0)+t.delay,easing:""},s=new Bn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,l){let u=[];if(r&&u.push(this.element),t.length>0){t=t.replace($a,"."+this._enterClassName),t=t.replace(Ua,"."+this._leaveClassName);let d=n!=1,_=this._driver.query(this.element,t,d);n!==0&&(_=n<0?_.slice(_.length+n,_.length):_.slice(0,n)),u.push(..._)}return!s&&u.length==0&&l.push(jr(e)),u}},qt=class o{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),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.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new o(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=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ha,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||te),this._currentKeyframe.set(e,te);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&this._previousKeyframe.set("easing",e);let s=r&&r.params||{},l=Ga(t,this._globalTimelineStyles);for(let[u,d]of l){let _=ze(d,s,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??te),this._updateStyle(u,_)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((u,d)=>{let _=new Map([...this._backFill,...u]);_.forEach((i,a)=>{i===Ge?t.add(a):i===te&&e.add(a)}),n||_.set("offset",d/this.duration),r.push(_)});let s=[...t.values()],l=[...e.values()];if(n){let u=r[0],d=new Map(u);u.set("offset",0),d.set("offset",1),r=[u,d]}return Un(this.element,r,s,l,this.duration,this.startTime,this.easing,!1)}},Bn=class extends qt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,n,r,s,l,u=!1){super(t,e,l.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=u,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],l=n+e,u=e/l,d=new Map(t[0]);d.set("offset",0),s.push(d);let _=new Map(t[0]);_.set("offset",mo(u)),s.push(_);let i=t.length-1;for(let a=1;a<=i;a++){let c=new Map(t[a]),f=c.get("offset"),m=e+f*n;c.set("offset",mo(m/l)),s.push(c)}n=l,e=0,r="",t=s}return Un(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function mo(o,t=3){let e=Math.pow(10,t-1);return Math.round(o*e)/e}function Ga(o,t){let e=new Map,n;return o.forEach(r=>{if(r==="*"){n??=t.keys();for(let s of n)e.set(s,te)}else for(let[s,l]of r)e.set(s,l)}),e}function po(o,t,e,n,r,s,l,u,d,_,i,a,c){return{type:0,element:o,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:n,toStyles:l,timelines:u,queriedElements:d,preStyleProps:_,postStyleProps:i,totalTime:a,errors:c}}var Nn={},$t=class{_triggerName;ast;_stateStyles;constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return Qa(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){let r=this._stateStyles.get("*");return t!==void 0&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,n):new Map}build(t,e,n,r,s,l,u,d,_,i){let a=[],c=this.ast.options&&this.ast.options.params||Nn,f=u&&u.params||Nn,m=this.buildStyles(n,f,a),h=d&&d.params||Nn,p=this.buildStyles(r,h,a),g=new Set,w=new Map,C=new Map,O=r==="void",U={params:To(h,c),delay:this.ast.options?.delay},q=i?[]:Ao(t,e,this.ast.animation,s,l,m,p,U,_,a),L=0;return q.forEach(E=>{L=Math.max(E.duration+E.delay,L)}),a.length?po(e,this._triggerName,n,r,O,m,p,[],[],w,C,L,a):(q.forEach(E=>{let oe=E.element,fe=$(w,oe,new Set);E.preStyleProps.forEach(ae=>fe.add(ae));let it=$(C,oe,new Set);E.postStyleProps.forEach(ae=>it.add(ae)),oe!==e&&g.add(oe)}),po(e,this._triggerName,n,r,O,m,p,q,[...g.values()],w,C,L))}};function Qa(o,t,e,n,r){return o.some(s=>s(t,e,n,r))}function To(o,t){let e=Q({},t);return Object.entries(o).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var Vn=class{styles;defaultParams;normalizer;constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){let n=new Map,r=To(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((l,u)=>{l&&(l=ze(l,r,e));let d=this.normalizer.normalizePropertyName(u,e);l=this.normalizer.normalizeStyleValue(u,d,l,e),n.set(u,l)})}),n}};function Wa(o,t,e){return new Kn(o,t,e)}var Kn=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,e.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Vn(r.style,s,n))}),ho(this.states,"true","1"),ho(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new $t(t,r,this.states))}),this.fallbackTransition=Xa(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(l=>l.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}};function Xa(o,t,e){let n=[(l,u)=>!0],r={type:k.Sequence,steps:[],options:null},s={type:k.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new $t(o,s,t)}function ho(o,t,e){o.has(t)?o.has(e)||o.set(e,o.get(t)):o.has(e)&&o.set(t,o.get(e))}var Ya=new et,zn=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n}register(t,e){let n=[],r=[],s=wo(this._driver,e,n,r);if(n.length)throw Wr(n);this._animations.set(t,s)}_buildPlayer(t,e,n){let r=t.element,s=Sn(this._normalizer,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){let r=[],s=this._animations.get(t),l,u=new Map;if(s?(l=Ao(this._driver,e,s,kn,It,new Map,new Map,n,Ya,r),l.forEach(i=>{let a=$(u,i.element,new Map);i.postStyleProps.forEach(c=>a.set(c,null))})):(r.push(Xr()),l=[]),r.length)throw Yr(r);u.forEach((i,a)=>{i.forEach((c,f)=>{i.set(f,this._driver.computeStyle(a,f,te))})});let d=l.map(i=>{let a=u.get(i.element);return this._buildPlayer(i,new Map,a)}),_=he(d);return this._playersById.set(t,_),_.onDestroy(()=>this.destroy(t)),this.players.push(_),_}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw Zr(t);return e}listen(t,e,n,r){let s=Nt(e,"","","");return Pt(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if(n=="register"){this.register(t,r[0]);return}if(n=="create"){let l=r[0]||{};this.create(t,e,l);return}let s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t);break}}},_o="ng-animate-queued",Za=".ng-animate-queued",On="ng-animate-disabled",Ja=".ng-animate-disabled",es="ng-star-inserted",ts=".ng-star-inserted",ns=[],Eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},is={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},re="__ng_removed",tt=class{namespaceId;value;options;get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let n=t&&t.hasOwnProperty("value"),r=n?t.value:t;if(this.value=os(r),n){let s=t,{value:l}=s,u=Xn(s,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},Je="void",In=new tt(Je),Hn=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this._hostClassName="ng-tns-"+t,J(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.has(e))throw Jr(n,e);if(n==null||n.length==0)throw eo(e);if(!as(n))throw to(n,e);let s=$(this._elementListeners,t,[]),l={name:e,phase:n,callback:r};s.push(l);let u=$(this._engine.statesByElement,t,new Map);return u.has(e)||(J(t,Xe),J(t,Xe+"-"+e),u.set(e,In)),()=>{this._engine.afterFlush(()=>{let d=s.indexOf(l);d>=0&&s.splice(d,1),this._triggers.has(e)||u.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw no(t);return e}trigger(t,e,n,r=!0){let s=this._getTrigger(e),l=new nt(this.id,e,t),u=this._engine.statesByElement.get(t);u||(J(t,Xe),J(t,Xe+"-"+e),this._engine.statesByElement.set(t,u=new Map));let d=u.get(e),_=new tt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&d&&_.absorbOptions(d.options),u.set(e,_),d||(d=In),!(_.value===Je)&&d.value===_.value){if(!cs(d.params,_.params)){let h=[],p=s.matchStyles(d.value,d.params,h),g=s.matchStyles(_.value,_.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush(()=>{Se(t,p),ie(t,g)})}return}let c=$(this._engine.playersByElement,t,[]);c.forEach(h=>{h.namespaceId==this.id&&h.triggerName==e&&h.queued&&h.destroy()});let f=s.matchTransition(d.value,_.value,t,_.params),m=!1;if(!f){if(!r)return;f=s.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:d,toState:_,player:l,isFallbackTransition:m}),m||(J(t,_o),l.onStart(()=>{He(t,_o)})),l.onDone(()=>{let h=this.players.indexOf(l);h>=0&&this.players.splice(h,1);let p=this._engine.playersByElement.get(t);if(p){let g=p.indexOf(l);g>=0&&p.splice(g,1)}}),this.players.push(l),c.push(l),l}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let n=this._engine.driver.query(t,Ye,!0);n.forEach(r=>{if(r[re])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(l=>l.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,n,r){let s=this._engine.statesByElement.get(t),l=new Map;if(s){let u=[];if(s.forEach((d,_)=>{if(l.set(_,d.value),this._triggers.has(_)){let i=this.trigger(t,_,Je,r);i&&u.push(i)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&he(u).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){let r=new Set;e.forEach(s=>{let l=s.name;if(r.has(l))return;r.add(l);let d=this._triggers.get(l).fallbackTransition,_=n.get(l)||In,i=new tt(Je),a=new nt(this.id,l,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:l,transition:d,fromState:_,toState:i,player:a,isFallbackTransition:!0})})}}removeNode(t,e){let n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let l=t;for(;l=l.parentNode;)if(n.statesByElement.get(l)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{let s=t[re];(!s||s===Eo)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){J(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,l=this._elementListeners.get(s);l&&l.forEach(u=>{if(u.name==n.triggerName){let d=Nt(s,n.triggerName,n.fromState.value,n.toState.value);d._data=t,Pt(n.player,u.phase,d,u.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let s=n.transition.ast.depCount,l=r.transition.ast.depCount;return s==0||l==0?s-l:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},qn=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&t.push(n)})}),t}createNamespace(t,e){let n=new Hn(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){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let l=!1,u=this.driver.getParentElement(e);for(;u;){let d=r.get(u);if(d){let _=n.indexOf(d);n.splice(_+1,0,t),l=!0;break}u=this.driver.getParentElement(u)}l||n.unshift(t)}else n.push(t);return r.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 r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(t);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,n=this.statesByElement.get(t);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}}return e}trigger(t,e,n,r){if(Bt(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Bt(e))return;let s=e[re];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let l=this.collectedLeaveElements.indexOf(e);l>=0&&this.collectedLeaveElements.splice(l,1)}if(t){let l=this._fetchNamespace(t);l&&l.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),J(t,On)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),He(t,On))}removeNode(t,e,n){if(Bt(e)){let r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,n,r,s){this.collectedLeaveElements.push(e),e[re]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,n,r,s){return Bt(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ye,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Dt,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return he(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[re];if(e&&e.setForRemoval){if(t[re]=Eo,e.namespaceId){this.destroyInnerAnimations(t);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(On)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ja,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];J(r,es)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,t)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?he(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(t){throw io(t)}_flushAnimations(t,e){let n=new et,r=[],s=new Map,l=[],u=new Map,d=new Map,_=new Map,i=new Set;this.disabledNodes.forEach(y=>{i.add(y);let b=this.driver.query(y,Za,!0);for(let A=0;A<b.length;A++)i.add(b[A])});let a=this.bodyNode,c=Array.from(this.statesByElement.keys()),f=vo(c,this.collectedEnterElements),m=new Map,h=0;f.forEach((y,b)=>{let A=kn+h++;m.set(b,A),y.forEach(M=>J(M,A))});let p=[],g=new Set,w=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let b=this.collectedLeaveElements[y],A=b[re];A&&A.setForRemoval&&(p.push(b),g.add(b),A.hasAnimation?this.driver.query(b,ts,!0).forEach(M=>g.add(M)):w.add(b))}let C=new Map,O=vo(c,Array.from(g));O.forEach((y,b)=>{let A=It+h++;C.set(b,A),y.forEach(M=>J(M,A))}),t.push(()=>{f.forEach((y,b)=>{let A=m.get(b);y.forEach(M=>He(M,A))}),O.forEach((y,b)=>{let A=C.get(b);y.forEach(M=>He(M,A))}),p.forEach(y=>{this.processLeaveNode(y)})});let U=[],q=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(e).forEach(A=>{let M=A.player,B=A.element;if(U.push(M),this.collectedEnterElements.length){let z=B[re];if(z&&z.setForMove){if(z.previousTriggersValues&&z.previousTriggersValues.has(A.triggerName)){let we=z.previousTriggersValues.get(A.triggerName),W=this.statesByElement.get(A.element);if(W&&W.has(A.triggerName)){let ot=W.get(A.triggerName);ot.value=we,W.set(A.triggerName,ot)}}M.destroy();return}}let le=!a||!this.driver.containsElement(a,B),G=C.get(B),_e=m.get(B),R=this._buildInstruction(A,n,_e,G,le);if(R.errors&&R.errors.length){q.push(R);return}if(le){M.onStart(()=>Se(B,R.fromStyles)),M.onDestroy(()=>ie(B,R.toStyles)),r.push(M);return}if(A.isFallbackTransition){M.onStart(()=>Se(B,R.fromStyles)),M.onDestroy(()=>ie(B,R.toStyles)),r.push(M);return}let Qn=[];R.timelines.forEach(z=>{z.stretchStartingKeyframe=!0,this.disabledNodes.has(z.element)||Qn.push(z)}),R.timelines=Qn,n.append(B,R.timelines);let Ro={instruction:R,player:M,element:B};l.push(Ro),R.queriedElements.forEach(z=>$(u,z,[]).push(M)),R.preStyleProps.forEach((z,we)=>{if(z.size){let W=d.get(we);W||d.set(we,W=new Set),z.forEach((ot,Wt)=>W.add(Wt))}}),R.postStyleProps.forEach((z,we)=>{let W=_.get(we);W||_.set(we,W=new Set),z.forEach((ot,Wt)=>W.add(Wt))})});if(q.length){let y=[];q.forEach(b=>{y.push(ro(b.triggerName,b.errors))}),U.forEach(b=>b.destroy()),this.reportError(y)}let L=new Map,E=new Map;l.forEach(y=>{let b=y.element;n.has(b)&&(E.set(b,b),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,L))}),r.forEach(y=>{let b=y.element;this._getPreviousPlayers(b,!1,y.namespaceId,y.triggerName,null).forEach(M=>{$(L,b,[]).push(M),M.destroy()})});let oe=p.filter(y=>bo(y,d,_)),fe=new Map;yo(fe,this.driver,w,_,te).forEach(y=>{bo(y,d,_)&&oe.push(y)});let ae=new Map;f.forEach((y,b)=>{yo(ae,this.driver,new Set(y),d,Ge)}),oe.forEach(y=>{let b=fe.get(y),A=ae.get(y);fe.set(y,new Map([...b?.entries()??[],...A?.entries()??[]]))});let se=[],rt=[],Gn={};l.forEach(y=>{let{element:b,player:A,instruction:M}=y;if(n.has(b)){if(i.has(b)){A.onDestroy(()=>ie(b,M.toStyles)),A.disabled=!0,A.overrideTotalTime(M.totalTime),r.push(A);return}let B=Gn;if(E.size>1){let G=b,_e=[];for(;G=G.parentNode;){let R=E.get(G);if(R){B=R;break}_e.push(G)}_e.forEach(R=>E.set(R,B))}let le=this._buildAnimation(A.namespaceId,M,L,s,ae,fe);if(A.setRealPlayer(le),B===Gn)se.push(A);else{let G=this.playersByElement.get(B);G&&G.length&&(A.parentPlayer=he(G)),r.push(A)}}else Se(b,M.fromStyles),A.onDestroy(()=>ie(b,M.toStyles)),rt.push(A),i.has(b)&&r.push(A)}),rt.forEach(y=>{let b=s.get(y.element);if(b&&b.length){let A=he(b);y.setRealPlayer(A)}}),r.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<p.length;y++){let b=p[y],A=b[re];if(He(b,It),A&&A.hasAnimation)continue;let M=[];if(u.size){let le=u.get(b);le&&le.length&&M.push(...le);let G=this.driver.query(b,Dt,!0);for(let _e=0;_e<G.length;_e++){let R=u.get(G[_e]);R&&R.length&&M.push(...R)}}let B=M.filter(le=>!le.destroyed);B.length?ss(this,b,B):this.processLeaveNode(b)}return p.length=0,se.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let b=this.players.indexOf(y);this.players.splice(b,1)}),y.play()}),se}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let l=[];if(e){let u=this.playersByQueriedElement.get(t);u&&(l=u)}else{let u=this.playersByElement.get(t);if(u){let d=!s||s==Je;u.forEach(_=>{_.queued||!d&&_.triggerName!=r||l.push(_)})}}return(n||r)&&(l=l.filter(u=>!(n&&n!=u.namespaceId||r&&r!=u.triggerName))),l}_beforeAnimationBuild(t,e,n){let r=e.triggerName,s=e.element,l=e.isRemovalTransition?void 0:t,u=e.isRemovalTransition?void 0:r;for(let d of e.timelines){let _=d.element,i=_!==s,a=$(n,_,[]);this._getPreviousPlayers(_,i,l,u,e.toState).forEach(f=>{let m=f.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),f.destroy(),a.push(f)})}Se(s,e.fromStyles)}_buildAnimation(t,e,n,r,s,l){let u=e.triggerName,d=e.element,_=[],i=new Set,a=new Set,c=e.timelines.map(m=>{let h=m.element;i.add(h);let p=h[re];if(p&&p.removedBeforeQueried)return new Ee(m.duration,m.delay);let g=h!==d,w=ls((n.get(h)||ns).map(L=>L.getRealPlayer())).filter(L=>{let E=L;return E.element?E.element===h:!1}),C=s.get(h),O=l.get(h),U=Sn(this._normalizer,m.keyframes,C,O),q=this._buildPlayer(m,U,w);if(m.subTimeline&&r&&a.add(h),g){let L=new nt(t,u,h);L.setRealPlayer(q),_.push(L)}return q});_.forEach(m=>{$(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>rs(this.playersByQueriedElement,m.element,m))}),i.forEach(m=>J(m,Cn));let f=he(c);return f.onDestroy(()=>{i.forEach(m=>He(m,Cn)),ie(d,e.toStyles)}),a.forEach(m=>{$(r,m,[]).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 Ee(t.duration,t.delay)}},nt=class{namespaceId;triggerName;element;_player=new Ee;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>Pt(t,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){$(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?!1: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){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function rs(o,t,e){let n=o.get(t);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&o.delete(t)}return n}function os(o){return o??null}function Bt(o){return o&&o.nodeType===1}function as(o){return o=="start"||o=="done"}function go(o,t){let e=o.style.display;return o.style.display=t??"none",e}function yo(o,t,e,n,r){let s=[];e.forEach(d=>s.push(go(d)));let l=[];n.forEach((d,_)=>{let i=new Map;d.forEach(a=>{let c=t.computeStyle(_,a,r);i.set(a,c),(!c||c.length==0)&&(_[re]=is,l.push(_))}),o.set(_,i)});let u=0;return e.forEach(d=>go(d,s[u++])),l}function vo(o,t){let e=new Map;if(o.forEach(u=>e.set(u,[])),t.length==0)return e;let n=1,r=new Set(t),s=new Map;function l(u){if(!u)return n;let d=s.get(u);if(d)return d;let _=u.parentNode;return e.has(_)?d=_:r.has(_)?d=n:d=l(_),s.set(u,d),d}return t.forEach(u=>{let d=l(u);d!==n&&e.get(d).push(u)}),e}function J(o,t){o.classList?.add(t)}function He(o,t){o.classList?.remove(t)}function ss(o,t,e){he(e).onDone(()=>o.processLeaveNode(t))}function ls(o){let t=[];return ko(o,t),t}function ko(o,t){for(let e=0;e<o.length;e++){let n=o[e];n instanceof bt?ko(n.players,t):t.push(n)}}function cs(o,t){let e=Object.keys(o),n=Object.keys(t);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let s=e[r];if(!t.hasOwnProperty(s)||o[s]!==t[s])return!1}return!0}function bo(o,t,e){let n=e.get(o);if(!n)return!1;let r=t.get(o);return r?n.forEach(s=>r.add(s)):t.set(o,n),e.delete(o),!0}var qe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,n){this._driver=e,this._normalizer=n,this._transitionEngine=new qn(t.body,e,n),this._timelineEngine=new zn(t.body,e,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,n,r,s){let l=t+"-"+r,u=this._triggerCache[l];if(!u){let d=[],_=[],i=wo(this._driver,s,d,_);if(d.length)throw Qr(r,d);u=Wa(r,i,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(e,r,u)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n){this._transitionEngine.removeNode(t,e,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if(n.charAt(0)=="@"){let[s,l]=wn(n),u=r;this._timelineEngine.command(s,e,l,u)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if(n.charAt(0)=="@"){let[l,u]=wn(n);return this._timelineEngine.listen(l,e,u,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function us(o,t){let e=null,n=null;return Array.isArray(t)&&t.length?(e=Dn(t[0]),t.length>1&&(n=Dn(t[t.length-1]))):t instanceof Map&&(e=Dn(t)),e||n?new ds(o,e,n):null}var ds=(()=>{class o{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r;let s=o.initialStylesByElement.get(e);s||o.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ie(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ie(this._element,this._initialStyles),this._endStyles&&(ie(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(Se(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Se(this._element,this._endStyles),this._endStyles=null),ie(this._element,this._initialStyles),this._state=3)}}return o})();function Dn(o){let t=null;return o.forEach((e,n)=>{fs(n)&&(t=t||new Map,t.set(n,e))}),t}function fs(o){return o==="display"||o==="position"}var jt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,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;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(t,e,n){return t.animate(this._convertKeyframesToObject(e),n)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(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,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&t.set(r,this._finished?n:Rt(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ut=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return An(t,e)}getParentElement(t){return Ot(t)}query(t,e,n){return Tn(t,e,n)}computeStyle(t,e,n){return Rt(t,e)}animate(t,e,n,r,s,l=[]){let u=r==0?"both":"forwards",d={duration:n,delay:r,fill:u};s&&(d.easing=s);let _=new Map,i=l.filter(f=>f instanceof jt);lo(n,r)&&i.forEach(f=>{f.currentSnapshot.forEach((m,h)=>_.set(h,m))});let a=ao(e).map(f=>new Map(f));a=co(t,a,_);let c=us(t,a);return new jt(t,a,d,c)}};var Vt="@",Co="@.disabled",Gt=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(t,e,n,r){this.namespaceId=t,this.delegate=e,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}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,r=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,n){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}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,r){this.delegate.setAttribute(t,e,n,r)}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,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Vt&&e==Co?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n,r){return this.delegate.listen(t,e,n,r)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},$n=class extends Gt{factory;constructor(t,e,n,r,s){super(e,n,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Vt?e.charAt(1)=="."&&e==Co?(n=n===void 0?!0:!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.slice(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n,r){if(e.charAt(0)==Vt){let s=ms(t),l=e.slice(1),u="";return l.charAt(0)!=Vt&&([l,u]=ps(l)),this.engine.listen(this.namespaceId,s,l,u,d=>{let _=d._data||-1;this.factory.scheduleListenerCallback(_,n,d)})}return this.delegate.listen(t,e,n,r)}};function ms(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}function ps(o){let t=o.indexOf("."),e=o.substring(0,t),n=o.slice(t+1);return[e,n]}var Qt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,e.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(t,e){let r=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let _=this._rendererCache,i=_.get(r);if(!i){let a=()=>_.delete(r);i=new Gt("",r,this.engine,a),_.set(r,i)}return i}let s=e.id,l=e.id+"-"+this._currentId;this._currentId++,this.engine.register(l,t);let u=_=>{Array.isArray(_)?_.forEach(u):this.engine.registerTrigger(s,l,t,_.name,_)};return e.data.animation.forEach(u),new $n(this,l,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){if(t>=0&&t<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[l,u]=s;l(u)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var _s=(()=>{class o extends qe{constructor(e,n,r){super(e,n,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||o)(lt(ct),lt(Pe),lt(Ne))};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();function gs(){return new Kt}function ys(o,t,e){return new Qt(o,t,e)}var Mo=[{provide:Ne,useFactory:gs},{provide:qe,useClass:_s},{provide:ci,useFactory:ys,deps:[Oi,qe,dt]}],Gc=[{provide:Pe,useClass:jn},{provide:Zt,useValue:"NoopAnimations"},...Mo],vs=[{provide:Pe,useFactory:()=>new Ut},{provide:Zt,useFactory:()=>"BrowserAnimations"},...Mo];function Po(){return ui("NgEagerAnimations"),[...vs]}var No=11,Oo="connectionConfig",Io=(()=>{class o{config;isLoggedIn=null;loggedInSubscription=null;connection=v(gt);auth=v(ge);connectionStateMachine=v(Ie);router=v(ye);delta=v(Fe);data=v(Le);storage=v(yt);constructor(){this.loggedInSubscription=this.auth.isLoggedIn$.subscribe(e=>{this.isLoggedIn=e})}initNetworkServices(){return Xt(this,null,function*(){this.loadLocalStorageConfig(),this.preloadFonts();try{this.config?.signalKUrl!==void 0&&this.config.signalKUrl!==null&&(yield this.connection.initializeConnection({url:this.config.signalKUrl,new:!1},this.config.proxyEnabled,this.config.signalKSubscribeAll)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.config?.loginName&&this.config?.loginPassword&&(yield this.login()),this.isLoggedIn&&this.config?.useSharedConfig&&(this.storage.activeConfigFileVersion=No,this.storage.sharedConfigName=this.config.sharedConfigName,yield this.storage.getConfig("user",this.config.sharedConfigName,No,!0)),!this.isLoggedIn&&this.config?.signalKUrl&&this.config?.useSharedConfig&&this.router.navigate(["/login"])}catch(e){return e.status===0?console.warn("[AppInit Network Service] Initialization failed. Network error. Redirecting to settings page."):e.status===401?console.warn("[AppInit Network Service] Initialization failed. Unauthorized access. Redirecting to login page."):console.warn("[AppInit Network Service] Initialization failed. Error: ",JSON.stringify(e)),Promise.reject("[AppInit Network Service] Startup completed with connection issue.")}finally{console.log("[AppInit Network Service] Initialization completed"),this.connectionStateMachine.enableWebSocketMode(),this.connectionStateMachine.isHTTPConnected()&&(console.log("[AppInit Network Service] Starting WebSocket connection after initialization"),this.connectionStateMachine.startWebSocketConnection())}})}login(){return Xt(this,null,function*(){if(!this.isLoggedIn&&this.config.useSharedConfig&&this.config.loginName&&this.config.loginPassword)try{yield this.auth.login({usr:this.config.loginName,pwd:this.config.loginPassword})}catch(e){throw e.status===0?this.router.navigate(["/settings"]):e.status===401&&this.router.navigate(["/login"]),e}})}setLocalStorageConfig(){localStorage.setItem(Oo,JSON.stringify(this.config))}loadLocalStorageConfig(){this.config=JSON.parse(localStorage.getItem(Oo)),this.config?this.config.signalKUrl||(this.config.signalKUrl=window.location.origin,this.setLocalStorageConfig(),console.log(`[AppInit Network Service] Config found with no server URL. Setting Auto-Discovery URL: ${this.config.signalKUrl}`)):(this.config=Ci,this.config.signalKUrl=window.location.origin,console.log(`[AppInit Network Service] Connection Configuration not found. Creating configuration using Auto-Discovery URL: ${this.config.signalKUrl}`),this.setLocalStorageConfig()),this.config.configVersion==9&&(this.config.configVersion=10,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 9 to 10")),this.config.configVersion==10&&(this.config.configVersion=11,this.setLocalStorageConfig(),console.log("[AppInit Network Service] Upgrading Connection version from 10 to 11"))}preloadFonts(){let e=[{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2)",options:{weight:"300",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2)",options:{weight:"400",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2)",options:{weight:"500",style:"normal"}},{family:"Roboto",src:"url(./assets/google-fonts/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2)",options:{weight:"500",style:"normal"}}];for(let{family:n,src:r,options:s}of e){let l=new FontFace(n,r,s);l.load().then(()=>document.fonts.add(l)).catch(u=>console.log(`[AppInit Network Service] Error loading fonts: ${u}`))}}ngOnDestroy(){this.loggedInSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();var Do=(()=>{class o{auth=v(ge);authToken=null;authTokenSubscription=null;constructor(){this.authTokenSubscription=this.auth.authToken$.subscribe(e=>{this.authToken=e})}intercept(e,n){let r=e.clone();return this.authToken&&(r=e.clone({headers:e.headers.set("authorization","JWT "+this.authToken.token)})),n.handle(r)}ngOnDestroy(){this.authTokenSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();var xo=(()=>{class o extends Tt{_createContainer(){let e=document.createElement("div");e.classList.add("cdk-overlay-container"),(document.getElementById("app-filter-wrapper")||document.querySelector("app-root")||document.body).appendChild(e),this._containerElement=e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ai(o)))(r||o)}})();static \u0275prov=H({token:o,factory:o.\u0275fac})}return o})();br.production&&void 0;Ii(Or,{providers:[ii(Di),{provide:Mi,useClass:Do,multi:!0},{provide:Xi,useValue:{hasBackdrop:!0,disableClose:!1,autoFocus:"first-tabbable",delayFocusTrap:!0,backdropClass:"dialogBackdrop"}},{provide:Yi,useValue:{appearance:"outline",floatLabel:"always",subscriptSizing:"dynamic"}},{provide:ur,useValue:{showDelay:1500,hideDelay:0}},ge,Le,gt,Fe,Ie,Et,De,Ji,ue,be,sr,yt,gr(),Pi(Ni()),Ri(vr,Fi()),Po(),{provide:Tt,useClass:xo},mi(()=>new Io().initNetworkServices().then(()=>{}).catch(()=>{}))]});
|
package/public/chunk-66OJ5PZF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as ae,b as oe,c as se,d as ce}from"./chunk-2MAVQD65.js";import{e as ee,g as te,h as re,i as ie}from"./chunk-TARCFDF4.js";import{a as ne}from"./chunk-F4VOQO2M.js";import"./chunk-TIXQ3FAF.js";import"./chunk-G4B4D3XR.js";import{j as K}from"./chunk-GIZH6HIB.js";import{$d as X,Ab as V,Bb as z,Bc as G,Fa as o,Fb as F,Gb as v,Gd as q,Hb as y,Hd as Y,Id as Z,Jb as H,Jc as Q,Kb as u,Lb as U,Nc as R,Nd as J,Oa as h,Pa as A,Ua as W,ab as p,bb as $,cb as B,cc as j,da as P,db as L,ea as O,fb as k,ga as d,gb as M,hb as m,ib as n,ja as S,jb as a,ka as b,kb as g,la as w,ma as E,qb as f,ra as _,rb as T,rc as C,t as x,tb as I,vb as l,wa as D,zb as N}from"./chunk-ANRGX57I.js";var ge=["determinateSpinner"];function ue(r,s){if(r&1&&(w(),n(0,"svg",11),g(1,"circle",12),a()),r&2){let e=l();p("viewBox",e._viewBox()),o(),v("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),p("r",e._circleRadius())}}var _e=new O("mat-progress-spinner-default-options",{providedIn:"root",factory:he});function he(){return{diameter:le}}var le=100,fe=10,me=(()=>{class r{_elementRef=d(D);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(_e),i=J(),t=this._elementRef.nativeElement;this._noopAnimations=i==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=t.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&i==="reduced-motion"&&t.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=le;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-fe)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=h({type:r,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,t){if(i&1&&N(ge,5),i&2){let c;V(c=z())&&(t._determinateCircle=c.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,t){i&2&&(p("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",t.mode==="determinate"?t.value:null)("mode",t.mode),H("mat-"+t.color),v("width",t.diameter,"px")("height",t.diameter,"px")("--mat-progress-spinner-size",t.diameter+"px")("--mat-progress-spinner-active-indicator-width",t.diameter+"px"),y("_mat-animation-noopable",t._noopAnimations)("mdc-circular-progress--indeterminate",t.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",C],diameter:[2,"diameter","diameter",C],strokeWidth:[2,"strokeWidth","strokeWidth",C]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,t){if(i&1&&(W(0,ue,2,8,"ng-template",null,0,j),n(2,"div",2,1),w(),n(4,"svg",3),g(5,"circle",4),a()(),E(),n(6,"div",5)(7,"div",6)(8,"div",7),f(9,8),a(),n(10,"div",9),f(11,8),a(),n(12,"div",10),f(13,8),a()()()),i&2){let c=F(1);o(4),p("viewBox",t._viewBox()),o(),v("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeDashOffset(),"px")("stroke-width",t._circleStrokeWidth(),"%"),p("r",t._circleRadius()),o(4),m("ngTemplateOutlet",c),o(2),m("ngTemplateOutlet",c),o(2),m("ngTemplateOutlet",c)}},dependencies:[G],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return r})();var de=(()=>{class r{static \u0275fac=function(i){return new(i||r)};static \u0275mod=A({type:r});static \u0275inj=P({imports:[q]})}return r})();var ye=(r,s)=>s.id;function Ce(r,s){if(r&1){let e=T();n(0,"button",8),I("click",function(){let t=S(e).$implicit,c=l();return b(c.displayDashboards(t.displayId))}),u(1),a()}if(r&2){let e=s.$implicit,i=l();y("selected",i.selectedDisplayButtonId()===e.displayId),o(),U(e.displayName)}}function xe(r,s){r&1&&(n(0,"div",6),g(1,"mat-progress-spinner",9),a())}function Se(r,s){if(r&1){let e=T();n(0,"tile-large-icon",11,0),I("click",function(){let t=S(e).$index,c=l(2);return b(c.setActiveScreen(t))}),a()}if(r&2){let e=s.$implicit,i=s.$index,t=l(2);m("active",t.activeScreen.value()===i)("svgIcon",e.icon)("iconSize",72)("label",e.name)}}function be(r,s){if(r&1&&k(0,Se,2,4,"tile-large-icon",10,ye),r&2){let e=l();M(e.screens.value())}}function we(r,s){r&1&&(n(0,"div",7)(1,"mat-icon",12),u(2,"cast"),a(),n(3,"div",13)(4,"p"),u(5,"Select an available KIP instance in the menu."),a(),n(6,"p"),u(7,"To allow remote control of a dashboard, on that KIP device open Options \u2192 Display \u2192 Remote Control and enable it."),a()()())}var Ye=(()=>{class r{http=d(Q);_settings=d(K);HOST_URL=this._settings.signalkUrl.url;pageTitle="Remote Control";displayId=_(null);displays=_(null);screens=R(()=>{if(this.displayId())return`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}`});activeScreen=R(()=>{if(this.displayId())return`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}/activeScreen`});selectedDisplayButtonId=_(null);ngOnInit(){x(this.http.get(`${this.HOST_URL}/plugins/kip/displays`)).then(e=>{this.displays.set(e)})}displayDashboards(e){this.displayId.set(e),this.selectedDisplayButtonId.set(e)}setActiveScreen(e){x(this.http.put(`${this.HOST_URL}/plugins/kip/displays/${this.displayId()}/activeScreen`,{screenIdx:e})).then(i=>{i.statusCode!==200&&console.error(`Failed to set active screen: ${i.message}`)}),this.activeScreen.set(e)}static \u0275fac=function(i){return new(i||r)};static \u0275cmp=h({type:r,selectors:[["remote-control"]],decls:10,vars:2,consts:[["tile",""],[3,"pageTitle"],[1,"sidenav-remote-control-container"],["mode","side","opened",""],["mat-list-item","","tabindex","0",3,"selected"],[1,"sidenav-remote-control-content"],["aria-label","Loading screens",1,"loading-container"],["role","status","aria-live","polite",1,"empty-state-msg"],["mat-list-item","","tabindex","0",3,"click"],["mode","indeterminate","diameter","64","strokeWidth","5"],["tabindex","0",3,"active","svgIcon","iconSize","label"],["tabindex","0",3,"click","active","svgIcon","iconSize","label"],["aria-hidden","true","color","primary",1,"empty-state-icon"],[1,"copy"]],template:function(i,t){i&1&&(g(0,"page-header",1),n(1,"mat-sidenav-container",2)(2,"mat-sidenav",3)(3,"mat-action-list"),k(4,Ce,2,3,"button",4,L),a()(),n(6,"mat-sidenav-content",5),$(7,xe,2,0,"div",6)(8,be,2,0)(9,we,8,0,"div",7),a()()),i&2&&(m("pageTitle",t.pageTitle),o(4),M(t.displays()),o(3),B(t.screens.isLoading()?7:t.screens.hasValue()?8:9))},dependencies:[ne,ce,oe,se,ae,re,ee,te,X,de,me,ie,Z,Y],styles:[".sidenav-remote-control-container[_ngcontent-%COMP%]{height:calc(100% - 87px);width:calc(100% - 48px);margin:0 24px 24px;border:1px solid var(--mat-sys-outline-variant)}mat-sidenav[_ngcontent-%COMP%]{width:150px;--mat-sidenav-container-shape: square}.selected[_ngcontent-%COMP%]{background-color:var(--mat-sys-inverse-on-surface)}.loading-container[_ngcontent-%COMP%]{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}.sidenav-remote-control-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;height:100%;width:calc(100% - 150px);padding:5px;gap:5px;overflow-y:auto;scrollbar-width:none;overflow-x:hidden;scroll-behavior:smooth;flex:1 1 auto;min-height:0}tile-large-icon[_ngcontent-%COMP%]{width:190px}.empty-state-msg[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;height:100%;width:calc(100% - 150px);min-height:70vh;padding:2rem;text-align:center;color:var(--mat-sys-outline-variant);font-style:italic}.empty-state-icon[_ngcontent-%COMP%]{font-size:4rem;width:4rem;height:4rem;color:var(--mat-sys-outline-variant);margin-bottom:1rem}"]})}return r})();export{Ye as RemoteControlComponent};
|