-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-LJRBPGSW.js
More file actions
62 lines (62 loc) · 121 KB
/
chunk-LJRBPGSW.js
File metadata and controls
62 lines (62 loc) · 121 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import{B as Si,D as rt,E as Ft,F as Dt,G as Ri,H as Ti,J as Mt,L as Pt,p as Ii,w as Ot,x as O,z as ot}from"./chunk-JYBRZQRP.js";import{$ as Et,$a as Tt,Aa as Rt,Bb as Ai,C as pi,D as fi,Da as F,E as Ct,Ea as N,Fa as V,Ga as me,H as M,Ha as _e,Hb as st,I as $,J as Fe,Ja as Le,Jb as Oi,K as De,Ka as Z,L as k,La as Y,M as Ge,Ma as vi,N as Me,Na as bi,Nb as Fi,O as ae,Ob as Di,P as le,Qa as ki,Qb as Mi,Ra as wi,S as qe,Sa as xi,T as W,U as X,Ua as ee,V as ie,Va as Ci,W as pe,Wa as Ne,X as gi,Z as mi,_ as _i,a as D,aa as fe,b as re,ca as R,d as In,da as P,db as Ce,e as Sn,ea as ge,eb as Ee,f as ue,ga as At,h as Q,hb as ce,ia as Pe,ka as yi,kb as Ei,la as H,lb as it,ma as j,n as xt,na as ne,nb as he,oa as Qe,qa as It,qb as nt,ra as J,sb as de,ta as Je,u as di,v as ui,va as T,wa as et,xa as tt,za as St,zb as Ae}from"./chunk-UJIEDWPF.js";var rn=In((xr,ft)=>{"use strict";var Xn=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var y=function(s){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,i={},n={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function l(c){return c instanceof o?new o(c.type,l(c.content),c.alias):Array.isArray(c)?c.map(l):c.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++t}),l.__id},clone:function l(c,p){p=p||{};var f,g;switch(n.util.type(c)){case"Object":if(g=n.util.objId(c),p[g])return p[g];f={},p[g]=f;for(var v in c)c.hasOwnProperty(v)&&(f[v]=l(c[v],p));return f;case"Array":return g=n.util.objId(c),p[g]?p[g]:(f=[],p[g]=f,c.forEach(function(C,b){f[b]=l(C,p)}),f);default:return c}},getLanguage:function(l){for(;l;){var c=e.exec(l.className);if(c)return c[1].toLowerCase();l=l.parentElement}return"none"},setLanguage:function(l,c){l.className=l.className.replace(RegExp(e,"gi"),""),l.classList.add("language-"+c)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(f){var l=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(f.stack)||[])[1];if(l){var c=document.getElementsByTagName("script");for(var p in c)if(c[p].src==l)return c[p]}return null}},isActive:function(l,c,p){for(var f="no-"+c;l;){var g=l.classList;if(g.contains(c))return!0;if(g.contains(f))return!1;l=l.parentElement}return!!p}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(l,c){var p=n.util.clone(n.languages[l]);for(var f in c)p[f]=c[f];return p},insertBefore:function(l,c,p,f){f=f||n.languages;var g=f[l],v={};for(var C in g)if(g.hasOwnProperty(C)){if(C==c)for(var b in p)p.hasOwnProperty(b)&&(v[b]=p[b]);p.hasOwnProperty(C)||(v[C]=g[C])}var I=f[l];return f[l]=v,n.languages.DFS(n.languages,function(S,se){se===I&&S!=l&&(this[S]=v)}),v},DFS:function l(c,p,f,g){g=g||{};var v=n.util.objId;for(var C in c)if(c.hasOwnProperty(C)){p.call(c,C,c[C],f||C);var b=c[C],I=n.util.type(b);I==="Object"&&!g[v(b)]?(g[v(b)]=!0,l(b,p,null,g)):I==="Array"&&!g[v(b)]&&(g[v(b)]=!0,l(b,p,C,g))}}},plugins:{},highlightAll:function(l,c){n.highlightAllUnder(document,l,c)},highlightAllUnder:function(l,c,p){var f={callback:p,container:l,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",f),f.elements=Array.prototype.slice.apply(f.container.querySelectorAll(f.selector)),n.hooks.run("before-all-elements-highlight",f);for(var g=0,v;v=f.elements[g++];)n.highlightElement(v,c===!0,f.callback)},highlightElement:function(l,c,p){var f=n.util.getLanguage(l),g=n.languages[f];n.util.setLanguage(l,f);var v=l.parentElement;v&&v.nodeName.toLowerCase()==="pre"&&n.util.setLanguage(v,f);var C=l.textContent,b={element:l,language:f,grammar:g,code:C};function I(se){b.highlightedCode=se,n.hooks.run("before-insert",b),b.element.innerHTML=b.highlightedCode,n.hooks.run("after-highlight",b),n.hooks.run("complete",b),p&&p.call(b.element)}if(n.hooks.run("before-sanity-check",b),v=b.element.parentElement,v&&v.nodeName.toLowerCase()==="pre"&&!v.hasAttribute("tabindex")&&v.setAttribute("tabindex","0"),!b.code){n.hooks.run("complete",b),p&&p.call(b.element);return}if(n.hooks.run("before-highlight",b),!b.grammar){I(n.util.encode(b.code));return}if(c&&s.Worker){var S=new Worker(n.filename);S.onmessage=function(se){I(se.data)},S.postMessage(JSON.stringify({language:b.language,code:b.code,immediateClose:!0}))}else I(n.highlight(b.code,b.grammar,b.language))},highlight:function(l,c,p){var f={code:l,grammar:c,language:p};if(n.hooks.run("before-tokenize",f),!f.grammar)throw new Error('The language "'+f.language+'" has no grammar.');return f.tokens=n.tokenize(f.code,f.grammar),n.hooks.run("after-tokenize",f),o.stringify(n.util.encode(f.tokens),f.language)},tokenize:function(l,c){var p=c.rest;if(p){for(var f in p)c[f]=p[f];delete c.rest}var g=new h;return d(g,g.head,l),a(l,g,c,g.head,0),_(g)},hooks:{all:{},add:function(l,c){var p=n.hooks.all;p[l]=p[l]||[],p[l].push(c)},run:function(l,c){var p=n.hooks.all[l];if(!(!p||!p.length))for(var f=0,g;g=p[f++];)g(c)}},Token:o};s.Prism=n;function o(l,c,p,f){this.type=l,this.content=c,this.alias=p,this.length=(f||"").length|0}o.stringify=function l(c,p){if(typeof c=="string")return c;if(Array.isArray(c)){var f="";return c.forEach(function(I){f+=l(I,p)}),f}var g={type:c.type,content:l(c.content,p),tag:"span",classes:["token",c.type],attributes:{},language:p},v=c.alias;v&&(Array.isArray(v)?Array.prototype.push.apply(g.classes,v):g.classes.push(v)),n.hooks.run("wrap",g);var C="";for(var b in g.attributes)C+=" "+b+'="'+(g.attributes[b]||"").replace(/"/g,""")+'"';return"<"+g.tag+' class="'+g.classes.join(" ")+'"'+C+">"+g.content+"</"+g.tag+">"};function r(l,c,p,f){l.lastIndex=c;var g=l.exec(p);if(g&&f&&g[1]){var v=g[1].length;g.index+=v,g[0]=g[0].slice(v)}return g}function a(l,c,p,f,g,v){for(var C in p)if(!(!p.hasOwnProperty(C)||!p[C])){var b=p[C];b=Array.isArray(b)?b:[b];for(var I=0;I<b.length;++I){if(v&&v.cause==C+","+I)return;var S=b[I],se=S.inside,ai=!!S.lookbehind,li=!!S.greedy,xn=S.alias;if(li&&!S.pattern.global){var Cn=S.pattern.toString().match(/[imsuy]*$/)[0];S.pattern=RegExp(S.pattern.source,Cn+"g")}for(var ci=S.pattern||S,B=f.next,q=g;B!==c.tail&&!(v&&q>=v.reach);q+=B.value.length,B=B.next){var xe=B.value;if(c.length>l.length)return;if(!(xe instanceof o)){var We=1,U;if(li){if(U=r(ci,q,l,ai),!U||U.index>=l.length)break;var Xe=U.index,En=U.index+U[0].length,oe=q;for(oe+=B.value.length;Xe>=oe;)B=B.next,oe+=B.value.length;if(oe-=B.value.length,q=oe,B.value instanceof o)continue;for(var Oe=B;Oe!==c.tail&&(oe<En||typeof Oe.value=="string");Oe=Oe.next)We++,oe+=Oe.value.length;We--,xe=l.slice(q,oe),U.index-=q}else if(U=r(ci,0,xe,ai),!U)continue;var Xe=U.index,Ze=U[0],bt=xe.slice(0,Xe),hi=xe.slice(Xe+Ze.length),kt=q+xe.length;v&&kt>v.reach&&(v.reach=kt);var Ke=B.prev;bt&&(Ke=d(c,Ke,bt),q+=bt.length),u(c,Ke,We);var An=new o(C,se?n.tokenize(Ze,se):Ze,xn,Ze);if(B=d(c,Ke,An),hi&&d(c,B,hi),We>1){var wt={cause:C+","+I,reach:kt};a(l,c,p,B.prev,q,wt),v&&wt.reach>v.reach&&(v.reach=wt.reach)}}}}}}function h(){var l={value:null,prev:null,next:null},c={value:null,prev:l,next:null};l.next=c,this.head=l,this.tail=c,this.length=0}function d(l,c,p){var f=c.next,g={value:p,prev:c,next:f};return c.next=g,f.prev=g,l.length++,g}function u(l,c,p){for(var f=c.next,g=0;g<p&&f!==l.tail;g++)f=f.next;c.next=f,f.prev=c,l.length-=g}function _(l){for(var c=[],p=l.head.next;p!==l.tail;)c.push(p.value),p=p.next;return c}if(!s.document)return s.addEventListener&&(n.disableWorkerMessageHandler||s.addEventListener("message",function(l){var c=JSON.parse(l.data),p=c.language,f=c.code,g=c.immediateClose;s.postMessage(n.highlight(f,n.languages[p],p)),g&&s.close()},!1)),n;var w=n.util.currentScript();w&&(n.filename=w.src,w.hasAttribute("data-manual")&&(n.manual=!0));function m(){n.manual||n.highlightAll()}if(!n.manual){var x=document.readyState;x==="loading"||x==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return n}(Xn);typeof ft<"u"&&ft.exports&&(ft.exports=y);typeof global<"u"&&(global.Prism=y);y.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};y.languages.markup.tag.inside["attr-value"].inside.entity=y.languages.markup.entity;y.languages.markup.doctype.inside["internal-subset"].inside=y.languages.markup;y.hooks.add("wrap",function(s){s.type==="entity"&&(s.attributes.title=s.content.replace(/&/,"&"))});Object.defineProperty(y.languages.markup.tag,"addInlined",{value:function(e,t){var i={};i["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:y.languages[t]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};n["language-"+t]={pattern:/[\s\S]+/,inside:y.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},y.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(y.languages.markup.tag,"addAttribute",{value:function(s,e){y.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+s+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:y.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});y.languages.html=y.languages.markup;y.languages.mathml=y.languages.markup;y.languages.svg=y.languages.markup;y.languages.xml=y.languages.extend("markup",{});y.languages.ssml=y.languages.xml;y.languages.atom=y.languages.xml;y.languages.rss=y.languages.xml;(function(s){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var t=s.languages.markup;t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))})(y);y.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};y.languages.javascript=y.languages.extend("clike",{"class-name":[y.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});y.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;y.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:y.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:y.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:y.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:y.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:y.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});y.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:y.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});y.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});y.languages.markup&&(y.languages.markup.tag.addInlined("script","javascript"),y.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));y.languages.js=y.languages.javascript;(function(){if(typeof y>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var s="Loading\u2026",e=function(w,m){return"\u2716 Error "+w+" while fetching file: "+m},t="\u2716 Error: File does not exist or is empty",i={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o="loading",r="loaded",a="failed",h="pre[data-src]:not(["+n+'="'+r+'"]):not(['+n+'="'+o+'"])';function d(w,m,x){var l=new XMLHttpRequest;l.open("GET",w,!0),l.onreadystatechange=function(){l.readyState==4&&(l.status<400&&l.responseText?m(l.responseText):l.status>=400?x(e(l.status,l.statusText)):x(t))},l.send(null)}function u(w){var m=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(m){var x=Number(m[1]),l=m[2],c=m[3];return l?c?[x,Number(c)]:[x,void 0]:[x,x]}}y.hooks.add("before-highlightall",function(w){w.selector+=", "+h}),y.hooks.add("before-sanity-check",function(w){var m=w.element;if(m.matches(h)){w.code="",m.setAttribute(n,o);var x=m.appendChild(document.createElement("CODE"));x.textContent=s;var l=m.getAttribute("data-src"),c=w.language;if(c==="none"){var p=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=i[p]||p}y.util.setLanguage(x,c),y.util.setLanguage(m,c);var f=y.plugins.autoloader;f&&f.loadLanguages(c),d(l,function(g){m.setAttribute(n,r);var v=u(m.getAttribute("data-range"));if(v){var C=g.split(/\r\n?|\n/g),b=v[0],I=v[1]==null?C.length:v[1];b<0&&(b+=C.length),b=Math.max(0,Math.min(b-1,C.length)),I<0&&(I+=C.length),I=Math.max(0,Math.min(I,C.length)),g=C.slice(b,I).join(`
`),m.hasAttribute("data-start")||m.setAttribute("data-start",String(b+1))}x.textContent=g,y.highlightElement(x)},function(g){m.setAttribute(n,a),x.textContent=g})}}),y.plugins.fileHighlight={highlight:function(m){for(var x=(m||document).querySelectorAll(h),l=0,c;c=x[l++];)y.highlightElement(c)}};var _=!1;y.fileHighlight=function(){_||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),_=!0),y.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var Lt=class{_document;_textarea;constructor(e,t){this._document=t;let i=this._textarea=this._document.createElement("textarea"),n=i.style;n.position="fixed",n.top=n.opacity="0",n.left="-999em",i.setAttribute("aria-hidden","true"),i.value=e,i.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(i)}copy(){let e=this._textarea,t=!1;try{if(e){let i=this._document.activeElement;e.select(),e.setSelectionRange(0,e.value.length),t=this._document.execCommand("copy"),i&&i.focus()}}catch{}return t}destroy(){let e=this._textarea;e&&(e.remove(),this._textarea=void 0)}},Rn=(()=>{class s{_document=k(he);constructor(){}copy(t){let i=this.beginCopy(t),n=i.copy();return i.destroy(),n}beginCopy(t){return new Lt(t,this._document)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Tn=new Fe("CDK_COPY_TO_CLIPBOARD_CONFIG"),at=(()=>{class s{_clipboard=k(Rn);_ngZone=k(ie);text="";attempts=1;copied=new X;_pending=new Set;_destroyed;_currentTimeout;constructor(){let t=k(Tn,{optional:!0});t&&t.attempts!=null&&(this.attempts=t.attempts)}copy(t=this.attempts){if(t>1){let i=t,n=this._clipboard.beginCopy(this.text);this._pending.add(n);let o=()=>{let r=n.copy();!r&&--i&&!this._destroyed?this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(o,1)):(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(r))};o()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}static \u0275fac=function(i){return new(i||s)};static \u0275dir=ne({type:s,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(i,n){i&1&&Z("click",function(){return n.copy()})},inputs:{text:[0,"cdkCopyToClipboard","text"],attempts:[0,"cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return s})(),Pi=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=j({type:s});static \u0275inj=$({})}return s})();var ye=class{constructor(e,t,i,n,o,r){this.type=e,this.id=t,this.leave=i,this.overlay=n,this.nelContent=o,this.nelOptions=r,this.height=48,this.top=0,this.componentInstance=null}close(){this.componentInstance.state="done"}};var Nt=class{},Ni=(()=>{class s{constructor(t,i){this.vcRef=t,this.templateRef=i,this.context=new Nt,this.stringTemplate=null,this.stringTemplateContext=null}updateView(){if(this.clear(),!this.stringTemplate)return;let t=this.stringTemplate instanceof ge,i=t?this.stringTemplate:this.templateRef;this.vcRef.createEmbeddedView(i,t?this.stringTemplateContext:this.context)}clear(){this.vcRef.clear()}ngOnChanges(t){this.updateView()}ngOnDestroy(){this.clear()}static{this.\u0275fac=function(i){return new(i||s)(P(Pe),P(ge))}}static{this.\u0275dir=ne({type:s,selectors:[["","stringTemplate",""]],inputs:{stringTemplate:"stringTemplate",stringTemplateContext:"stringTemplateContext"},standalone:!1,features:[Me]})}}return s})();var Dn=["messageEle"];function Mn(s,e){if(s&1&&(me(0),ee(1),_e()),s&2){let t=Y();R(),Ci(t.content)}}function Pn(s,e){if(s&1){let t=Le();F(0,"div",5),Z("click",function(){ae(t);let n=Y();return le(n.close())}),N()}}var Bi=(()=>{class s{constructor(t){this.messageRef=t,this.id=0,this.top=36,this.showClose=!1,this.duration=3e3,this.center=!1,this.state="start"}ngOnDestroy(){this.timer&&clearTimeout(this.timer)}ngOnInit(){this.type=this.messageRef.type,this.id=this.messageRef.id,this.top=this.messageRef.top,this.content=this.messageRef.nelContent,this.overlay=this.messageRef.overlay,this.messageRef.nelOptions&&(this.messageRef.nelOptions.showClose&&(this.showClose=this.messageRef.nelOptions.showClose),this.messageRef.nelOptions.duration!==void 0&&(this.duration=this.messageRef.nelOptions.duration),this.messageRef.nelOptions.center&&(this.center=this.messageRef.nelOptions.center),this.messageRef.nelOptions.onClose&&(this.onClose=this.messageRef.nelOptions.onClose)),this.initTimer()}ngAfterViewInit(){this.messageRef.height=this.messageEle.nativeElement.offsetHeight}initTimer(){this.duration>0&&(this.timer=setTimeout(()=>{this.state="done"},this.duration))}onAnimationStart(t){t.toState==="done"&&(clearTimeout(this.timer),this.messageRef.leave.next(this.id))}onAnimationDone(t){t.toState==="done"&&(this.overlay.dispose(),this.onClose&&this.onClose())}mouseenter(){this.timer&&clearTimeout(this.timer)}mouseleave(){this.initTimer()}close(){this.timer&&clearTimeout(this.timer),this.state="done"}static{this.\u0275fac=function(i){return new(i||s)(P(ye))}}static{this.\u0275cmp=H({type:s,selectors:[["nel-message"]],viewQuery:function(i,n){if(i&1&&ki(Dn,5),i&2){let o;wi(o=xi())&&(n.messageEle=o.first)}},standalone:!1,decls:6,vars:13,consts:[["messageEle",""],["role","alert",3,"mouseenter","mouseleave"],[1,"el-message__content"],[4,"stringTemplate"],["class","el-message__closeBtn el-icon-close",3,"click",4,"ngIf"],[1,"el-message__closeBtn","el-icon-close",3,"click"]],template:function(i,n){if(i&1){let o=Le();F(0,"div",1,0),Z("@messageMotion.start",function(a){return ae(o),le(n.onAnimationStart(a))})("@messageMotion.done",function(a){return ae(o),le(n.onAnimationDone(a))})("mouseenter",function(){return ae(o),le(n.mouseenter())})("mouseleave",function(){return ae(o),le(n.mouseleave())}),V(2,"i"),F(3,"p",2),J(4,Mn,2,1,"ng-container",3),N(),J(5,Pn,1,0,"div",4),N()}i&2&&(Rt("el-message el-message--",n.type,""),et("top",n.top+"px"),tt("is-center",n.center),T("@messageMotion",n.state),R(2),Rt("el-message__icon el-icon-",n.type,""),R(2),T("stringTemplate",n.content),R(),T("ngIf",n.showClose))},dependencies:[de,Ni],encapsulation:2,data:{animation:[Ii]}})}}return s})();var Be=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},$e=class extends Be{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(e,t,i,n,o){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=o}},je=class extends Be{templateRef;viewContainerRef;context;injector;constructor(e,t,i,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},$t=class extends Be{element;constructor(e){super(),this.element=e instanceof pe?e.nativeElement:e}},jt=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof $e)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof je)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof $t)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var lt=class extends jt{outletElement;_appRef;_defaultInjector;_document;constructor(e,t,i,n,o){super(),this.outletElement=e,this._appRef=i,this._defaultInjector=n,this._document=o}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,n=i.get(yi,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:n,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else t=it(e.component,{elementInjector:e.injector||this._defaultInjector||W.NULL,environmentInjector:this._appRef.injector,projectableNodes:e.projectableNodes||void 0}),this._appRef.attachView(t.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(t.hostView),t.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(n=>this.outletElement.appendChild(n)),i.detectChanges(),this.setDisposeFn(()=>{let n=t.indexOf(i);n!==-1&&t.remove(n)}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var ji=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=j({type:s});static \u0275inj=$({})}return s})(),$i=class{_parentInjector;_customTokens;constructor(e,t){this._parentInjector=e,this._customTokens=t}get(e,t){let i=this._customTokens.get(e);return typeof i<"u"?i:this._parentInjector.get(e,t)}};var ct=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=j({type:s})}static{this.\u0275inj=$({})}}return s})();var ht=new WeakMap,zt=(()=>{class s{_appRef;_injector=k(W);_environmentInjector=k(Ge);load(t){let i=this._appRef=this._appRef||this._injector.get(Je),n=ht.get(i);n||(n={loaders:new Set,refs:[]},ht.set(i,n),i.onDestroy(()=>{ht.get(i)?.refs.forEach(o=>o.destroy()),ht.delete(i)})),n.loaders.has(t)||(n.loaders.add(t),n.refs.push(it(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function zi(s,...e){return e.length?e.some(t=>s[t]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}function wo(s){return s.buttons===0||s.detail===0}function xo(s){let e=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Ht={},Hi=(()=>{class s{_appId=k(gi);getId(t){return this._appId!=="ng"&&(t+=this._appId),Ht.hasOwnProperty(t)||(Ht[t]=0),`${t}${Ht[t]++}`}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Vi=Si(),Vt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,t){this._viewportRuler=e,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=O(-this._previousScrollPosition.left),e.style.top=O(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,n=t.style,o=i.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Vi&&(i.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Vi&&(i.scrollBehavior=o,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};var Yt=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,n){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=n}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(ui(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},dt=class{enable(){}disable(){}attach(){}};function Ut(s,e){return e.some(t=>{let i=s.bottom<t.top,n=s.top>t.bottom,o=s.right<t.left,r=s.left>t.right;return i||n||o||r})}function Yi(s,e){return e.some(t=>{let i=s.top<t.top,n=s.bottom>t.bottom,o=s.left<t.left,r=s.right>t.right;return i||n||o||r})}var Wt=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,n){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=n}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:n}=this._viewportRuler.getViewportSize();Ut(t,[{width:i,height:n,bottom:n,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Nn=(()=>{class s{_scrollDispatcher=k(Ti);_viewportRuler=k(Mt);_ngZone=k(ie);_document=k(he);constructor(){}noop=()=>new dt;close=t=>new Yt(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new Vt(this._viewportRuler,this._document);reposition=t=>new Wt(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ut=class{positionStrategy;scrollStrategy=new dt;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i])}}};var Xt=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}};var qi=(()=>{class s{_attachedOverlays=[];_document=k(he);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Bn=(()=>{class s extends qi{_ngZone=k(ie);_renderer=k(At).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let i=this._attachedOverlays;for(let n=i.length-1;n>-1;n--)if(i[n]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[n]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(n){return(t||(t=qe(s)))(n||s)}})();static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),$n=(()=>{class s extends qi{_platform=k(ot);_ngZone=k(ie,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(t){if(super.add(t),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=t=>{this._pointerDownEventTarget=rt(t)};_clickListener=t=>{let i=rt(t),n=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let r=o.length-1;r>-1;r--){let a=o[r];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Ui(a.overlayElement,i)||Ui(a.overlayElement,n))break;let h=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(t)):h.next(t)}};static \u0275fac=(()=>{let t;return function(n){return(t||(t=qe(s)))(n||s)}})();static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Ui(s,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===s)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Qi=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=H({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return s})(),Ji=(()=>{class s{_platform=k(ot);_containerElement;_document=k(he);_styleLoader=k(zt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Ft()){let n=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;o<n.length;o++)n[o].remove()}let i=this._document.createElement("div");i.classList.add(t),Ft()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(Qi)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Zt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropElement=null;_backdropTimeout;_backdropClick=new Q;_attachments=new Q;_detachments=new Q;_positionStrategy;_scrollStrategy;_locationChanges=ue.EMPTY;_cleanupBackdropClick;_cleanupBackdropTransitionEnd;_previousHostParent;_keydownEvents=new Q;_outsidePointerEvents=new Q;_renders=new Q;_afterRenderRef;_afterNextRenderRef;constructor(e,t,i,n,o,r,a,h,d,u=!1,_,w){this._portalOutlet=e,this._host=t,this._pane=i,this._config=n,this._ngZone=o,this._keyboardDispatcher=r,this._document=a,this._location=h,this._outsideClickDispatcher=d,this._animationsDisabled=u,this._injector=_,this._renderer=w,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Ei(()=>_i(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Et(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=D(D({},this._config),e),this._updateElementSize()}setDirection(e){this._config=re(D({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=O(this._config.width),e.height=O(this._config.height),e.minWidth=O(this._config.minWidth),e.minHeight=O(this._config.minHeight),e.maxWidth=O(this._config.maxWidth),e.maxHeight=O(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._cleanupBackdropClick?.(),this._cleanupBackdropClick=this._renderer.listen(this._backdropElement,"click",t=>this._backdropClick.next(t)),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{this._cleanupBackdropTransitionEnd?.(),this._cleanupBackdropTransitionEnd=this._renderer.listen(e,"transitionend",t=>{this._disposeBackdrop(t.target)})}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,t,i){let n=Ot(t||[]).filter(o=>!!o);n.length&&(i?e.classList.add(...n):e.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(pi(di(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){this._cleanupBackdropClick?.(),this._cleanupBackdropTransitionEnd?.(),e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Wi="cdk-overlay-connected-position-bounding-box",jn=/([A-Za-z%]+)$/,Kt=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Q;_resizeSubscription=ue.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,n,o){this._viewportRuler=t,this._document=i,this._platform=n,this._overlayContainer=o,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Wi),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,n=this._containerRect,o=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(e,n,a),d=this._getOverlayPoint(h,t,a),u=this._getOverlayFit(d,t,i,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(u,d,i)){o.push({position:a,origin:h,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleArea<u.visibleArea)&&(r={overlayFit:u,overlayPoint:d,originPoint:h,position:a,overlayRect:t})}if(o.length){let a=null,h=-1;for(let d of o){let u=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);u>h&&(h=u,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ve(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Wi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let n;if(i.originX=="center")n=e.left+e.width/2;else{let r=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;n=i.originX=="start"?r:a}t.left<0&&(n-=t.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,t.top<0&&(o-=t.top),{x:n,y:o}}_getOverlayPoint(e,t,i){let n;i.overlayX=="center"?n=-t.width/2:i.overlayX==="start"?n=this._isRtl()?-t.width:0:n=this._isRtl()?0:-t.width;let o;return i.overlayY=="center"?o=-t.height/2:o=i.overlayY=="top"?0:-t.height,{x:e.x+n,y:e.y+o}}_getOverlayFit(e,t,i,n){let o=Zi(t),{x:r,y:a}=e,h=this._getOffset(n,"x"),d=this._getOffset(n,"y");h&&(r+=h),d&&(a+=d);let u=0-r,_=r+o.width-i.width,w=0-a,m=a+o.height-i.height,x=this._subtractOverflows(o.width,u,_),l=this._subtractOverflows(o.height,w,m),c=x*l;return{visibleArea:c,isCompletelyWithinViewport:o.width*o.height===c,fitsInViewportVertically:l===o.height,fitsInViewportHorizontally:x==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let n=i.bottom-t.y,o=i.right-t.x,r=Xi(this._overlayRef.getConfig().minHeight),a=Xi(this._overlayRef.getConfig().minWidth),h=e.fitsInViewportVertically||r!=null&&r<=n,d=e.fitsInViewportHorizontally||a!=null&&a<=o;return h&&d}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let n=Zi(t),o=this._viewportRect,r=Math.max(e.x+n.width-o.width,0),a=Math.max(e.y+n.height-o.height,0),h=Math.max(o.top-i.top-e.y,0),d=Math.max(o.left-i.left-e.x,0),u=0,_=0;return n.width<=o.width?u=d||-r:u=e.x<this._viewportMargin?o.left-i.left-e.x:0,n.height<=o.height?_=h||-a:_=e.y<this._viewportMargin?o.top-i.top-e.y:0,this._previousPushAmount={x:u,y:_},{x:e.x+u,y:e.y+_}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!zn(this._lastScrollVisibility,i)){let n=new Xt(e,i);this._positionChanges.next(n)}this._lastScrollVisibility=i}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,n=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let o=0;o<t.length;o++)t[o].style.transformOrigin=`${i} ${n}`}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,n=this._isRtl(),o,r,a;if(t.overlayY==="top")r=e.y,o=i.height-r+this._viewportMargin;else if(t.overlayY==="bottom")a=i.height-e.y+this._viewportMargin*2,o=i.height-a+this._viewportMargin;else{let m=Math.min(i.bottom-e.y+i.top,e.y),x=this._lastBoundingBoxSize.height;o=m*2,r=e.y-m,o>x&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-x/2)}let h=t.overlayX==="start"&&!n||t.overlayX==="end"&&n,d=t.overlayX==="end"&&!n||t.overlayX==="start"&&n,u,_,w;if(d)w=i.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(h)_=e.x,u=i.right-e.x;else{let m=Math.min(i.right-e.x+i.left,e.x),x=this._lastBoundingBoxSize.width;u=m*2,_=e.x-m,u>x&&!this._isInitialRender&&!this._growAfterOpen&&(_=e.x-x/2)}return{top:r,left:_,bottom:a,right:w,width:u,height:o}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;n.height=O(i.height),n.top=O(i.top),n.bottom=O(i.bottom),n.width=O(i.width),n.left=O(i.left),n.right=O(i.right),t.overlayX==="center"?n.alignItems="center":n.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?n.justifyContent="center":n.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=O(o)),r&&(n.maxWidth=O(r))}this._lastBoundingBoxSize=i,ve(this._boundingBox.style,n)}_resetBoundingBoxStyles(){ve(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ve(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let i={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){let u=this._viewportRuler.getViewportScrollPosition();ve(i,this._getExactOverlayY(t,e,u)),ve(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",h=this._getOffset(t,"x"),d=this._getOffset(t,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=O(r.maxHeight):o&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=O(r.maxWidth):o&&(i.maxWidth="")),ve(this._pane.style,i)}_getExactOverlayY(e,t,i){let n={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;n.bottom=`${r-(o.y+this._overlayRect.height)}px`}else n.top=O(o.y);return n}_getExactOverlayX(e,t,i){let n={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let r;if(this._isRtl()?r=e.overlayX==="end"?"left":"right":r=e.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(o.x+this._overlayRect.width)}px`}else n.left=O(o.x);return n}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Yi(e,i),isOriginOutsideView:Ut(e,i),isOverlayClipped:Yi(t,i),isOverlayOutsideView:Ut(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,n)=>i-Math.max(n,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Ot(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof pe)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}};function ve(s,e){for(let t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);return s}function Xi(s){if(typeof s!="number"&&s!=null){let[e,t]=s.split(jn);return!t||t==="px"?parseFloat(e):null}return s||null}function Zi(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}function zn(s,e){return s===e?!0:s.isOriginClipped===e.isOriginClipped&&s.isOriginOutsideView===e.isOriginOutsideView&&s.isOverlayClipped===e.isOverlayClipped&&s.isOverlayOutsideView===e.isOverlayOutsideView}var Ki="cdk-global-overlay-wrapper",Gt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Ki),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:r,maxHeight:a}=i,h=(n==="100%"||n==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,_=this._xOffset,w=this._overlayRef.getConfig().direction==="rtl",m="",x="",l="";h?l="flex-start":u==="center"?(l="center",w?x=_:m=_):w?u==="left"||u==="end"?(l="flex-end",m=_):(u==="right"||u==="start")&&(l="flex-start",x=_):u==="left"||u==="start"?(l="flex-start",m=_):(u==="right"||u==="end")&&(l="flex-end",x=_),e.position=this._cssPosition,e.marginLeft=h?"0":m,e.marginTop=d?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=h?"0":x,t.justifyContent=l,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(Ki),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Hn=(()=>{class s{_viewportRuler=k(Mt);_document=k(he);_platform=k(ot);_overlayContainer=k(Ji);constructor(){}global(){return new Gt}flexibleConnectedTo(t){return new Kt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ie=(()=>{class s{scrollStrategies=k(Nn);_overlayContainer=k(Ji);_positionBuilder=k(Hn);_keyboardDispatcher=k(Bn);_injector=k(W);_ngZone=k(ie);_document=k(he);_directionality=k(Dt);_location=k(nt);_outsideClickDispatcher=k($n);_animationsModuleType=k(mi,{optional:!0});_idGenerator=k(Hi);_renderer=k(At).createRenderer(null,null);_appRef;_styleLoader=k(zt);constructor(){}create(t){this._styleLoader.load(Qi);let i=this._createHostElement(),n=this._createPaneElement(i),o=this._createPortalOutlet(n),r=new ut(t);return r.direction=r.direction||this._directionality.value,new Zt(o,i,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ge),this._renderer)}position(){return this._positionBuilder}_createPaneElement(t){let i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Je)),new lt(t,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Vn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],en=new Fe("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let s=k(Ie);return()=>s.scrollStrategies.reposition()}}),Gi=(()=>{class s{elementRef=k(pe);constructor(){}static \u0275fac=function(i){return new(i||s)};static \u0275dir=ne({type:s,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return s})(),Wo=(()=>{class s{_overlay=k(Ie);_dir=k(Dt,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=ue.EMPTY;_attachSubscription=ue.EMPTY;_detachSubscription=ue.EMPTY;_positionSubscription=ue.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=k(en);_disposeOnNavigation=!1;_ngZone=k(ie);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}backdropClick=new X;positionChange=new X;attach=new X;detach=new X;overlayKeydown=new X;overlayOutsideClick=new X;constructor(){let t=k(ge),i=k(Pe);this._templatePortal=new je(t,i),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Vn);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!zi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let n=this._getOriginElement(),o=rt(i);(!n||n!==o&&!n.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new ut({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Gi?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Gi?this.origin.elementRef.nativeElement:this.origin instanceof pe?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(fi(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||s)};static \u0275dir=ne({type:s,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",ce],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",ce],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ce],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ce],push:[2,"cdkConnectedOverlayPush","push",ce],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ce]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[It,Me]})}return s})();function Yn(s){return()=>s.scrollStrategies.reposition()}var Un={provide:en,deps:[Ie],useFactory:Yn},tn=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275mod=j({type:s});static \u0275inj=$({providers:[Ie,Un],imports:[Ri,ji,Pt,Pt]})}return s})();var pt=(()=>{class s{constructor(t,i){this.overlay=t,this.injector=i,this.messageId=0,this.leave=new Q,this.messageRefList=[],this._handlerLeave()}info(t,i){return this.show("info",t,i)}success(t,i){return this.show("success",t,i)}warning(t,i){return this.show("warning",t,i)}error(t,i){return this.show("error",t,i)}show(t,i,n){this.messageId++;let o=this.overlay.create(),r=new ye(t,this.messageId,this.leave,o,i,n),a=this.createInjector(r,this.injector),h=o.attach(new $e(Bi,null,a)),d=36;return this.messageRefList.forEach(u=>{d+=u.height+16}),this.messageRefList.push(r),r.top=d,r.componentInstance=h.instance,r}createInjector(t,i){return W.create({parent:i,providers:[{provide:ye,useValue:t}]})}_handlerLeave(){this.leave.subscribe(t=>{let i=this.messageRefList.findIndex(n=>n.id===t);if(i>-1){let n=this.messageRefList[i].height;if(i!==this.messageRefList.length-1)for(let o=i+1;o<this.messageRefList.length;o++)this.messageRefList[o].componentInstance.top-=n+16;this.messageRefList.splice(i,1)}})}static{this.\u0275fac=function(i){return new(i||s)(De(Ie),De(W))}}static{this.\u0275prov=M({token:s,factory:s.\u0275fac,providedIn:ct})}}return s})();var nn=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=j({type:s})}static{this.\u0275inj=$({imports:[Ae]})}}return s})();var sn=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=j({type:s})}static{this.\u0275inj=$({imports:[Ae,tn,nn,ct]})}}return s})();var Cr=Sn(rn());(function(s){s.languages.typescript=s.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),s.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete s.languages.typescript.parameter,delete s.languages.typescript["literal-property"];var e=s.languages.extend("typescript",{});delete e["class-name"],s.languages.typescript["class-name"].inside=e,s.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),s.languages.ts=s.languages.typescript})(Prism);(function(s){s.languages.angular=s.languages.extend("typescript",{}),s.languages.insertBefore("angular","string",{"template-string":{pattern:/template[\s]*:[\s]*`(?:\\[\s\S]|[^\\`])*`/,greedy:!0,inside:{html:{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:s.languages.html}}},"styles-string":{pattern:/styles[\s]*:[\s]*\[[\s]*`(?:\\[\s\S]|[^\\`])*`[\s]*\]/,greedy:!0,inside:{css:{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:s.languages.css}}}})})(Prism);var be=(()=>{class s{constructor(t){this.sanitizer=t}transform(t){let i=Prism.highlight(t,Prism.languages.angular,"angular");return this.sanitizer.bypassSecurityTrustHtml(i)}static{this.\u0275fac=function(i){return new(i||s)(P(st,16))}}static{this.\u0275pipe=Qe({name:"highlightAuto",type:s,pure:!0,standalone:!1})}}return s})();function Kn(s,e){if(s&1){let t=Le();me(0),F(1,"div",1)(2,"pre",2),V(3,"code",3),Ce(4,"highlightAuto"),N(),F(5,"i",4),Z("cdkCopyToClipboardCopied",function(n){ae(t);let o=Y();return le(o.copy(n))}),N()(),_e()}if(s&2){let t=Y();R(3),T("innerHTML",Ee(4,2,t.code),fe),R(2),T("cdkCopyToClipboard",t.code)}}var Ir=(()=>{class s{constructor(t){this.message=t}copy(t){t?this.message.success("\u590D\u5236\u6210\u529F"):this.message.error("\u590D\u5236\u5931\u8D25")}static{this.\u0275fac=function(i){return new(i||s)(P(pt))}}static{this.\u0275cmp=H({type:s,selectors:[["app-code"]],inputs:{code:"code"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"highlight"],[1,"language-ts"],[1,"hljs",3,"innerHTML"],[1,"el-icon-copy-document",3,"cdkCopyToClipboardCopied","cdkCopyToClipboard"]],template:function(i,n){i&1&&J(0,Kn,6,4,"ng-container",0),i&2&&T("ngIf",n.code)},dependencies:[de,at,be],styles:["pre[class*=language-][_ngcontent-%COMP%]{background:#f6f6f6}pre[class*=language-][_ngcontent-%COMP%]{margin:16px 0;padding:12px 20px;overflow:auto}.highlight[_ngcontent-%COMP%]{position:relative}i[_ngcontent-%COMP%]{position:absolute;top:12px;right:10px;font-size:24px;color:#b0bec5;cursor:pointer}i[_ngcontent-%COMP%]:hover{color:#6e6e6e}"]})}}return s})();function Jt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var we=Jt();function pn(s){we=s}var Ve={exec:()=>null};function A(s,e=""){let t=typeof s=="string"?s:s.source,i={replace:(n,o)=>{let r=typeof o=="string"?o:o.source;return r=r.replace(z.caret,"$1"),t=t.replace(n,r),i},getRegex:()=>new RegExp(t,e)};return i}var z={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:s=>new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}#`),htmlBeginRegex:s=>new RegExp(`^ {0,${Math.min(3,s-1)}}<(?:[a-z].*>|!--)`,"i")},Gn=/^(?:[ \t]*(?:\n|$))+/,qn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Qn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ue=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fn=/(?:[*+-]|\d{1,9}[.)])/,gn=A(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,fn).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/).getRegex(),ei=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,es=/^[^\n]+/,ti=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ts=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ti).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),is=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fn).getRegex(),_t="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",ii=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ns=A("^ {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",ii).replace("tag",_t).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),mn=A(ei).replace("hr",Ue).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",_t).getRegex(),ss=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",mn).getRegex(),ni={blockquote:ss,code:qn,def:ts,fences:Qn,heading:Jn,hr:Ue,html:ns,lheading:gn,list:is,newline:Gn,paragraph:mn,table:Ve,text:es},ln=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ue).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",_t).getRegex(),os=re(D({},ni),{table:ln,paragraph:A(ei).replace("hr",Ue).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ln).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",_t).getRegex()}),rs=re(D({},ni),{html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ii).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:Ve,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ei).replace("hr",Ue).replace("heading",` *#{1,6} *[^
]`).replace("lheading",gn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),as=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ls=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_n=/^( {2,}|\\)\n(?!\s*$)/,cs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yt=/[\p{P}\p{S}]/u,si=/[\s\p{P}\p{S}]/u,yn=/[^\s\p{P}\p{S}]/u,hs=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,si).getRegex(),ds=/(?!~)[\p{P}\p{S}]/u,us=/(?!~)[\s\p{P}\p{S}]/u,ps=/(?:[^\s\p{P}\p{S}]|~)/u,fs=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,gs=A(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,yt).getRegex(),vn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ms=A(vn,"gu").replace(/notPunctSpace/g,yn).replace(/punctSpace/g,si).replace(/punct/g,yt).getRegex(),_s=A(vn,"gu").replace(/notPunctSpace/g,ps).replace(/punctSpace/g,us).replace(/punct/g,ds).getRegex(),ys=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yn).replace(/punctSpace/g,si).replace(/punct/g,yt).getRegex(),vs=A(/\\(punct)/,"gu").replace(/punct/g,yt).getRegex(),bs=A(/^<(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(),ks=A(ii).replace("(?:-->|$)","-->").getRegex(),ws=A("^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",ks).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xs=A(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",mt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bn=A(/^!?\[(label)\]\[(ref)\]/).replace("label",mt).replace("ref",ti).getRegex(),kn=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",ti).getRegex(),Cs=A("reflink|nolink(?!\\()","g").replace("reflink",bn).replace("nolink",kn).getRegex(),oi={_backpedal:Ve,anyPunctuation:vs,autolink:bs,blockSkip:fs,br:_n,code:ls,del:Ve,emStrongLDelim:gs,emStrongRDelimAst:ms,emStrongRDelimUnd:ys,escape:as,link:xs,nolink:kn,punctuation:hs,reflink:bn,reflinkSearch:Cs,tag:ws,text:cs,url:Ve},Es=re(D({},oi),{link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",mt).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mt).getRegex()}),qt=re(D({},oi),{emStrongRDelimAst:_s,url:A(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),As=re(D({},qt),{br:A(_n).replace("{2,}","*").getRegex(),text:A(qt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),gt={normal:ni,gfm:os,pedantic:rs},ze={normal:oi,gfm:qt,breaks:As,pedantic:Es},Is={"&":"&","<":"<",">":">",'"':""","'":"'"},cn=s=>Is[s];function te(s,e){if(e){if(z.escapeTest.test(s))return s.replace(z.escapeReplace,cn)}else if(z.escapeTestNoEncode.test(s))return s.replace(z.escapeReplaceNoEncode,cn);return s}function hn(s){try{s=encodeURI(s).replace(z.percentDecode,"%")}catch{return null}return s}function dn(s,e){let t=s.replace(z.findPipe,(o,r,a)=>{let h=!1,d=r;for(;--d>=0&&a[d]==="\\";)h=!h;return h?"|":" |"}),i=t.split(z.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(z.slashPipe,"|");return i}function He(s,e,t){let i=s.length;if(i===0)return"";let n=0;for(;n<i&&(s.charAt(i-n-1)===e&&!t);)n++;return s.slice(0,i-n)}function Ss(s,e){if(s.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<s.length;i++)if(s[i]==="\\")i++;else if(s[i]===e[0])t++;else if(s[i]===e[1]&&(t--,t<0))return i;return-1}function un(s,e,t,i,n){let o=e.href,r=e.title||null,a=s[1].replace(n.other.outputLinkReplace,"$1");if(s[0].charAt(0)!=="!"){i.state.inLink=!0;let h={type:"link",raw:t,href:o,title:r,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,h}return{type:"image",raw:t,href:o,title:r,text:a}}function Rs(s,e,t){let i=s.match(t.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(`
`).map(o=>{let r=o.match(t.other.beginningSpace);if(r===null)return o;let[a]=r;return a.length>=n.length?o.slice(n.length):o}).join(`
`)}var Re=class{options;rules;lexer;constructor(e){this.options=e||we}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:He(i,`
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],n=Rs(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let n=He(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:He(t[0],`
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=He(t[0],`
`).split(`
`),n="",o="",r=[];for(;i.length>0;){let a=!1,h=[],d;for(d=0;d<i.length;d++)if(this.rules.other.blockquoteStart.test(i[d]))h.push(i[d]),a=!0;else if(!a)h.push(i[d]);else break;i=i.slice(d);let u=h.join(`
`),_=u.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
${u}`:u,o=o?`${o}
${_}`:_;let w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_,r,!0),this.lexer.state.top=w,i.length===0)break;let m=r.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let x=m,l=x.raw+`
`+i.join(`
`),c=this.blockquote(l);r[r.length-1]=c,n=n.substring(0,n.length-x.raw.length)+c.raw,o=o.substring(0,o.length-x.text.length)+c.text;break}else if(m?.type==="list"){let x=m,l=x.raw+`
`+i.join(`
`),c=this.list(l);r[r.length-1]=c,n=n.substring(0,n.length-m.raw.length)+c.raw,o=o.substring(0,o.length-x.raw.length)+c.raw,i=l.substring(r.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:n,tokens:r,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),n=i.length>1,o={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let r=this.rules.other.listItemRegex(i),a=!1;for(;e;){let d=!1,u="",_="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let w=t[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,f=>" ".repeat(3*f.length)),m=e.split(`
`,1)[0],x=!w.trim(),l=0;if(this.options.pedantic?(l=2,_=w.trimStart()):x?l=t[1].length+1:(l=t[2].search(this.rules.other.nonSpaceChar),l=l>4?1:l,_=w.slice(l),l+=t[1].length),x&&this.rules.other.blankLine.test(m)&&(u+=m+`
`,e=e.substring(m.length+1),d=!0),!d){let f=this.rules.other.nextBulletRegex(l),g=this.rules.other.hrRegex(l),v=this.rules.other.fencesBeginRegex(l),C=this.rules.other.headingBeginRegex(l),b=this.rules.other.htmlBeginRegex(l);for(;e;){let I=e.split(`
`,1)[0],S;if(m=I,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),S=m):S=m.replace(this.rules.other.tabCharGlobal," "),v.test(m)||C.test(m)||b.test(m)||f.test(m)||g.test(m))break;if(S.search(this.rules.other.nonSpaceChar)>=l||!m.trim())_+=`
`+S.slice(l);else{if(x||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||v.test(w)||C.test(w)||g.test(w))break;_+=`
`+m}!x&&!m.trim()&&(x=!0),u+=I+`
`,e=e.substring(I.length+1),w=S.slice(l)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(a=!0));let c=null,p;this.options.gfm&&(c=this.rules.other.listIsTask.exec(_),c&&(p=c[0]!=="[ ] ",_=_.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:u,task:!!c,checked:p,loose:!1,text:_,tokens:[]}),o.raw+=u}let h=o.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let d=0;d<o.items.length;d++)if(this.lexer.state.top=!1,o.items[d].tokens=this.lexer.blockTokens(o.items[d].text,[]),!o.loose){let u=o.items[d].tokens.filter(w=>w.type==="space"),_=u.length>0&&u.some(w=>this.rules.other.anyLine.test(w.raw));o.loose=_}if(o.loose)for(let d=0;d<o.items.length;d++)o.items[d].loose=!0;return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:n,title:o}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=dn(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of o)r.rows.push(dn(a,r.header.length).map((h,d)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:r.align[d]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=He(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{let r=Ss(t[2],"()");if(r>-1){let h=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,h).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(n);r&&(n=r[1],o=r[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),un(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[n.toLowerCase()];if(!o){let r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return un(i,o,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!i||this.rules.inline.punctuation.exec(i)){let r=[...n[0]].length-1,a,h,d=r,u=0,_=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_.lastIndex=0,t=t.slice(-1*e.length+r);(n=_.exec(t))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(h=[...a].length,n[3]||n[4]){d+=h;continue}else if((n[5]||n[6])&&r%3&&!((r+h)%3)){u+=h;continue}if(d-=h,d>0)continue;h=Math.min(h,h+d+u);let w=[...n[0]][0].length,m=e.slice(0,r+n.index+w+h);if(Math.min(r,h)%2){let l=m.slice(1,-1);return{type:"em",raw:m,text:l,tokens:this.lexer.inlineTokens(l)}}let x=m.slice(2,-2);return{type:"strong",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,n;return t[2]==="@"?(i=t[1],n="mailto:"+i):(i=t[1],n=i),{type:"link",raw:t[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,n;if(t[2]==="@")i=t[0],n="mailto:"+i;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(o!==t[0]);i=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},K=class s{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||we,this.options.tokenizer=this.options.tokenizer||new Re,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:z,block:gt.normal,inline:ze.normal};this.options.pedantic?(t.block=gt.pedantic,t.inline=ze.pedantic):this.options.gfm&&(t.block=gt.gfm,this.options.breaks?t.inline=ze.breaks:t.inline=ze.gfm),this.tokenizer.rules=t}static get rules(){return{block:gt,inline:ze}}static lex(e,t){return new s(t).lex(e)}static lexInline(e,t){return new s(t).inlineTokens(e)}lex(e){e=e.replace(z.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let i=this.inlineQueue[t];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],i=!1){for(this.options.pedantic&&(e=e.replace(z.tabCharGlobal," ").replace(z.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(r=>(n=r.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);n.raw.length===1&&r!==void 0?r.raw+=`
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=`
`+n.raw,r.text+=`
`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}let o=e;if(this.options.extensions?.startBlock){let r=1/0,a=e.slice(1),h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},a),typeof h=="number"&&h>=0&&(r=Math.min(r,h))}),r<1/0&&r>=0&&(o=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){let r=t.at(-1);i&&r?.type==="paragraph"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);r?.type==="text"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(e){let r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let i=e,n=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)a.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o=!1,r="";for(;e;){o||(r=""),o=!1;let a;if(this.options.extensions?.inline?.some(d=>(a=d.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let d=t.at(-1);a.type==="text"&&d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(e,i,r)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),t.push(a);continue}let h=e;if(this.options.extensions?.startInline){let d=1/0,u=e.slice(1),_;this.options.extensions.startInline.forEach(w=>{_=w.call({lexer:this},u),typeof _=="number"&&_>=0&&(d=Math.min(d,_))}),d<1/0&&d>=0&&(h=e.substring(0,d+1))}if(a=this.tokenizer.inlineText(h)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(r=a.raw.slice(-1)),o=!0;let d=t.at(-1);d?.type==="text"?(d.raw+=a.raw,d.text+=a.text):t.push(a);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return t}},Te=class{options;parser;constructor(e){this.options=e||we}space(e){return""}code({text:e,lang:t,escaped:i}){let n=(t||"").match(z.notSpaceStart)?.[0],o=e.replace(z.endingNewline,"")+`
`;return n?'<pre><code class="language-'+te(n)+'">'+(i?o:te(o,!0))+`</code></pre>
`:"<pre><code>"+(i?o:te(o,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){let t=e.ordered,i=e.start,n="";for(let a=0;a<e.items.length;a++){let h=e.items[a];n+=this.listitem(h)}let o=t?"ol":"ul",r=t&&i!==1?' start="'+i+'"':"";return"<"+o+r+`>
`+n+"</"+o+`>
`}listitem(e){let t="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+te(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",i="";for(let o=0;o<e.header.length;o++)i+=this.tablecell(e.header[o]);t+=this.tablerow({text:i});let n="";for(let o=0;o<e.rows.length;o++){let r=e.rows[o];i="";for(let a=0;a<r.length;a++)i+=this.tablecell(r[a]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${te(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let n=this.parser.parseInline(i),o=hn(e);if(o===null)return n;e=o;let r='<a href="'+e+'"';return t&&(r+=' title="'+te(t)+'"'),r+=">"+n+"</a>",r}image({href:e,title:t,text:i}){let n=hn(e);if(n===null)return te(i);e=n;let o=`<img src="${e}" alt="${i}"`;return t&&(o+=` title="${te(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:te(e.text)}},Ye=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},G=class s{options;renderer;textRenderer;constructor(e){this.options=e||we,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ye}static parse(e,t){return new s(t).parse(e)}static parseInline(e,t){return new s(t).parseInline(e)}parse(e,t=!0){let i="";for(let n=0;n<e.length;n++){let o=e[n];if(this.options.extensions?.renderers?.[o.type]){let a=o,h=this.options.extensions.renderers[a.type].call({parser:this},a);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){i+=h||"";continue}}let r=o;switch(r.type){case"space":{i+=this.renderer.space(r);continue}case"hr":{i+=this.renderer.hr(r);continue}case"heading":{i+=this.renderer.heading(r);continue}case"code":{i+=this.renderer.code(r);continue}case"table":{i+=this.renderer.table(r);continue}case"blockquote":{i+=this.renderer.blockquote(r);continue}case"list":{i+=this.renderer.list(r);continue}case"html":{i+=this.renderer.html(r);continue}case"paragraph":{i+=this.renderer.paragraph(r);continue}case"text":{let a=r,h=this.renderer.text(a);for(;n+1<e.length&&e[n+1].type==="text";)a=e[++n],h+=`
`+this.renderer.text(a);t?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;continue}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(e,t=this.renderer){let i="";for(let n=0;n<e.length;n++){let o=e[n];if(this.options.extensions?.renderers?.[o.type]){let a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=a||"";continue}}let r=o;switch(r.type){case"escape":{i+=t.text(r);break}case"html":{i+=t.html(r);break}case"link":{i+=t.link(r);break}case"image":{i+=t.image(r);break}case"strong":{i+=t.strong(r);break}case"em":{i+=t.em(r);break}case"codespan":{i+=t.codespan(r);break}case"br":{i+=t.br(r);break}case"del":{i+=t.del(r);break}case"text":{i+=t.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}},Se=class{options;block;constructor(e){this.options=e||we}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?K.lex:K.lexInline}provideParser(){return this.block?G.parse:G.parseInline}},Qt=class{defaults=Jt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=G;Renderer=Te;TextRenderer=Ye;Lexer=K;Tokenizer=Re;Hooks=Se;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let n of e)switch(i=i.concat(t.call(this,n)),n.type){case"table":{let o=n;for(let r of o.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of o.rows)for(let a of r)i=i.concat(this.walkTokens(a.tokens,t));break}case"list":{let o=n;i=i.concat(this.walkTokens(o.items,t));break}default:{let o=n;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(r=>{let a=o[r].flat(1/0);i=i.concat(this.walkTokens(a,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let n=D({},i);if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let r=t.renderers[o.name];r?t.renderers[o.name]=function(...a){let h=o.renderer.apply(this,a);return h===!1&&(h=r.apply(this,a)),h}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[o.level];r?r.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),i.renderer){let o=this.defaults.renderer||new Te(this.defaults);for(let r in i.renderer){if(!(r in o))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,h=i.renderer[a],d=o[a];o[a]=(...u)=>{let _=h.apply(o,u);return _===!1&&(_=d.apply(o,u)),_||""}}n.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new Re(this.defaults);for(let r in i.tokenizer){if(!(r in o))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,h=i.tokenizer[a],d=o[a];o[a]=(...u)=>{let _=h.apply(o,u);return _===!1&&(_=d.apply(o,u)),_}}n.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Se;for(let r in i.hooks){if(!(r in o))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,h=i.hooks[a],d=o[a];Se.passThroughHooks.has(r)?o[a]=u=>{if(this.defaults.async)return Promise.resolve(h.call(o,u)).then(w=>d.call(o,w));let _=h.call(o,u);return d.call(o,_)}:o[a]=(...u)=>{let _=h.apply(o,u);return _===!1&&(_=d.apply(o,u)),_}}n.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,r=i.walkTokens;n.walkTokens=function(a){let h=[];return h.push(r.call(this,a)),o&&(h=h.concat(o.call(this,a))),h}}this.defaults=D(D({},this.defaults),n)}),this}setOptions(e){return this.defaults=D(D({},this.defaults),e),this}lexer(e,t){return K.lex(e,t??this.defaults)}parser(e,t){return G.parse(e,t??this.defaults)}parseMarkdown(e){return(i,n)=>{let o=D({},n),r=D(D({},this.defaults),o),a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&o.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));r.hooks&&(r.hooks.options=r,r.hooks.block=e);let h=r.hooks?r.hooks.provideLexer():e?K.lex:K.lexInline,d=r.hooks?r.hooks.provideParser():e?G.parse:G.parseInline;if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(i):i).then(u=>h(u,r)).then(u=>r.hooks?r.hooks.processAllTokens(u):u).then(u=>r.walkTokens?Promise.all(this.walkTokens(u,r.walkTokens)).then(()=>u):u).then(u=>d(u,r)).then(u=>r.hooks?r.hooks.postprocess(u):u).catch(a);try{r.hooks&&(i=r.hooks.preprocess(i));let u=h(i,r);r.hooks&&(u=r.hooks.processAllTokens(u)),r.walkTokens&&this.walkTokens(u,r.walkTokens);let _=d(u,r);return r.hooks&&(_=r.hooks.postprocess(_)),_}catch(u){return a(u)}}}onError(e,t){return i=>{if(i.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+te(i.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(i);throw i}}},ke=new Qt;function E(s,e){return ke.parse(s,e)}E.options=E.setOptions=function(s){return ke.setOptions(s),E.defaults=ke.defaults,pn(E.defaults),E};E.getDefaults=Jt;E.defaults=we;E.use=function(...s){return ke.use(...s),E.defaults=ke.defaults,pn(E.defaults),E};E.walkTokens=function(s,e){return ke.walkTokens(s,e)};E.parseInline=ke.parseInline;E.Parser=G;E.parser=G.parse;E.Renderer=Te;E.TextRenderer=Ye;E.Lexer=K;E.lexer=K.lex;E.Tokenizer=Re;E.Hooks=Se;E.parse=E;var Rr=E.options,Tr=E.setOptions,Or=E.use,Fr=E.walkTokens,Dr=E.parseInline;var Mr=G.parse,Pr=K.lex;var ri=(()=>{class s{transform(t){return t&&t.length>0?E(t):t}static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275pipe=Qe({name:"marked",type:s,pure:!0,standalone:!1})}}return s})();var vt=(()=>{class s{constructor(t){this.http=t,this.codeMap=new Map,this.docMap=new Map}getCode(t){if(this.codeMap.has(t))return xt(this.codeMap.get(t));{let i=t.startsWith("components-")?t.split("components-")[1]:t;return this.http.get(`assets/codes/${i}`,{responseType:"text"}).pipe(Ct(n=>{this.codeMap.set(t,n)}))}}getDoc(t){if(this.docMap.has(t))return xt(this.docMap.get(t));{let i=t.startsWith("components-")?t.split("components-")[1]:t;return this.http.get(`assets/docs/${i}`,{responseType:"text"}).pipe(Ct(n=>{this.docMap.set(t,n)}))}}static{this.\u0275fac=function(i){return new(i||s)(De(Ai))}}static{this.\u0275prov=M({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Os=[[["","demo",""]]],Fs=["[demo]"];function Ds(s,e){s&1&&(F(0,"div",8),bi(1),N())}function Ms(s,e){if(s&1&&(F(0,"div",9),me(1),V(2,"div",10),_e(),N()),s&2){let t=Y();R(2),T("innerHTML",t.safeNotes,fe)}}function Ps(s,e){if(s&1&&(me(0),F(1,"div",11)(2,"pre"),ee(3," "),V(4,"code",12),Ce(5,"highlightAuto"),ee(6,`
`),N()(),_e()),s&2){let t=Y();R(4),T("innerHTML",Ee(5,1,t.code),fe)}}var Wr=(()=>{class s{constructor(t,i,n,o){this.location=t,this.sanitizer=i,this.message=n,this.appService=o,this.notes="",this.parentClass=class{},this.code="",this.classes="",this.hovering=!1,this.isExpanded=!1}showCode(){this.isExpanded=!this.isExpanded,this.isExpanded&&(this.hovering=!1)}ngOnInit(){this.safeNotes=this.sanitizer.bypassSecurityTrustHtml(this.notes);let t=this.location.path(),i=t.slice(t.lastIndexOf("/")+1);this.classes+=` demo-${i}`,this.codeUrl&&this.appService.getCode(this.codeUrl).subscribe(n=>{this.code=n})}copy(t){t?this.message.success("\u590D\u5236\u6210\u529F"):this.message.error("\u590D\u5236\u5931\u8D25")}static{this.\u0275fac=function(i){return new(i||s)(P(nt),P(st),P(pt),P(vt))}}static{this.\u0275cmp=H({type:s,selectors:[["app-demo"]],inputs:{codeUrl:"codeUrl",notes:"notes",parentClass:[0,"class","parentClass"]},standalone:!1,features:[Tt([be])],ngContentSelectors:Fs,decls:13,vars:13,consts:[[1,"demo-block","demo-box","demo-zh-CN",3,"mouseenter","mouseleave"],["class","source",4,"ngIf"],[1,"meta"],["class","description",4,"ngIf"],[4,"ngIf"],[1,"demo-block-control","is-fixed",3,"click"],[1,"control-button-container"],["type","button",1,"el-button","el-button--text","el-button--small","control-button","copy-button",3,"click","cdkCopyToClipboardCopied","cdkCopyToClipboard"],[1,"source"],[1,"description"],[3,"innerHTML"],[1,"highlight","language-angular"],[1,"language-typescript","hljs",3,"innerHTML"]],template:function(i,n){i&1&&(vi(Os),F(0,"div",0),Z("mouseenter",function(){return n.hovering=!0})("mouseleave",function(){return n.hovering=!1}),J(1,Ds,2,0,"div",1),F(2,"div",2),J(3,Ms,3,1,"div",3)(4,Ps,7,3,"ng-container",4),N(),F(5,"div",5),Z("click",function(){return n.showCode()}),V(6,"i"),F(7,"span"),ee(8),N(),F(9,"div",6)(10,"button",7),Z("click",function(r){return r.stopPropagation()})("cdkCopyToClipboardCopied",function(r){return n.copy(r)}),F(11,"span"),ee(12,"\u590D\u5236\u4EE3\u7801\u7247\u6BB5"),N()()()()()),i&2&&(St(n.classes),tt("hover",n.hovering),R(),T("ngIf",n.codeUrl),R(),et("height",n.isExpanded?"inherit":"0"),R(),T("ngIf",n.notes),R(),T("ngIf",n.codeUrl),R(2),St("el-icon-caret-"+(n.isExpanded?"top":"bottom")),R(2),Ne(" ",n.isExpanded?"\u9690\u85CF\u4EE3\u7801":"\u663E\u793A\u4EE3\u7801"," "),R(2),T("cdkCopyToClipboard",n.code))},dependencies:[de,at,be],styles:[`.demo-block{border:solid 1px #eaeefb;border-radius:4px;transition:.2s}.demo-block.hover{box-shadow:0 0 8px #e8edfa99,0 2px 4px #e8edfa80}.demo-block code{font-family:Menlo,Monaco,Consolas,Courier,monospace}.demo-block .demo-button{float:right}.demo-block .source{padding:24px}.demo-block .meta{background-color:#f5f7fa;border-top:1px solid #eaeefb;overflow:hidden;height:auto;transition:height .2s;display:flex;flex-direction:column}.demo-block .description{display:flex;padding:20px;box-sizing:border-box;border:1px solid #ebebeb;border-radius:3px;font-size:14px;line-height:22px;color:#666;word-break:break-word;margin:10px;background-color:#fff}.demo-block .description p{margin:0;line-height:26px}.demo-block .description code{color:#5e6d82;background-color:#e6effb;margin:0 4px;display:inline-block;padding:1px 5px;font-size:12px;border-radius:3px;height:18px;line-height:18px}.demo-block .description button{margin-top:10px}.demo-block [class*=language-]:before{font-family:var(--code-font-family)}.demo-block [class~=language-angular]:before{content:"angular"}.demo-block [class*=language-]:before{position:absolute;top:.4em;right:.8em;z-index:2;opacity:.6;font-size:12px;color:#3d3e40}.demo-block .highlight{position:relative;display:flex;flex-direction:column}.demo-block .highlight pre{display:flex;flex-direction:column;flex:1;margin:0}.demo-block .highlight code.hljs{margin:0;border:none;padding:20px 15px;border-radius:0}.demo-block .demo-block-control{border-top:solid 1px #eaeefb;height:44px;box-sizing:border-box;background-color:#fff;border-bottom-left-radius:4px;border-bottom-right-radius:4px;text-align:center;margin-top:-1px;color:#d3dce6;cursor:pointer;transition:.2s;position:relative}.demo-block .demo-block-control i{font-size:12px;line-height:44px;transition:.35s;transform:translate(-40px)}.demo-block .demo-block-control.is-fixed{position:sticky;bottom:0}.demo-block .demo-block-control>span{position:absolute;transform:translate(-30px);font-size:14px;line-height:44px;transition:.35s;overflow:hidden;display:inline-block}.demo-block .demo-block-control .control-button-container{line-height:40px;position:absolute;top:0;right:0;padding-left:5px;padding-right:25px}.demo-block .demo-block-control:hover{color:#20a0ff;background-color:#f9fafc}.demo-block .demo-block-control .text-slide-enter,.demo-block .demo-block-control .text-slide-leave-active{opacity:0;transform:translate(10px)}
`],encapsulation:2})}}return s})();var Kr=(()=>{class s{constructor(t){this.appService=t,this.docUrl="",this.doc=""}ngOnInit(){this.appService.getDoc(this.docUrl).subscribe(t=>{this.doc=t})}static{this.\u0275fac=function(i){return new(i||s)(P(vt))}}static{this.\u0275cmp=H({type:s,selectors:[["app-doc"]],inputs:{docUrl:"docUrl"},standalone:!1,decls:2,vars:3,consts:[[1,"marked",3,"innerHTML"]],template:function(i,n){i&1&&(V(0,"div",0),Ce(1,"marked")),i&2&&T("innerHTML",Ee(1,1,n.doc),fe)},dependencies:[ri],styles:[`.marked{font-size:14px;line-height:2}.marked h3{margin:55px 0 20px;font-weight:400;color:#1f2f3d;font-size:22px}.marked ul{margin:0;padding:0}.marked ul>li{margin-left:20px;padding-left:4px;list-style-type:circle}.marked code{margin:0 1px;padding:.2em .4em;background:#f2f4f5;border:1px solid #f0f0f0;border-radius:3px}
`],encapsulation:2})}}return s})();function Ls(s,e){if(s&1&&(F(0,"span",2),V(1,"i",3),ee(2),N()),s&2){let t=Y();T("routerLink","/"+t.type+t.leftLink.link),R(2),Ne(" ",t.leftLink.name,`
`)}}function Ns(s,e){if(s&1&&(F(0,"span",4),ee(1),V(2,"i",5),N()),s&2){let t=Y();T("routerLink","/"+t.type+t.rightLink.link),R(),Ne(" ",t.rightLink.name," ")}}var Jr=(()=>{class s{constructor(t){this.router=t,this.type="",this.routers=[],this.menuList=[],this.leftLink={link:null,name:""},this.rightLink={link:null,name:""}}ngOnInit(){let t=[];for(let i of this.routers)for(let n of i.menuList)t.push(n);this.menuList=t,this.changeLink(),this.router.events.subscribe(i=>{i instanceof Oi&&this.changeLink()})}changeLink(){let t=window.location.href;t=t.slice(t.indexOf("#")+2);let i=this.menuList.findIndex(n=>this.type+n.link===t);i>-1?i===0?(this.leftLink={link:null,name:""},this.rightLink=this.menuList[i+1]):i===this.menuList.length-1?(this.leftLink=this.menuList[i-1],this.rightLink={link:null,name:""}):(this.leftLink=this.menuList[i-1],this.rightLink=this.menuList[i+1]):(this.leftLink={link:null,name:""},this.rightLink={link:null,name:""})}static{this.\u0275fac=function(i){return new(i||s)(P(Fi))}}static{this.\u0275cmp=H({type:s,selectors:[["app-nav-bottom"]],hostAttrs:[1,"footer-nav"],inputs:{type:"type",routers:"routers"},standalone:!1,decls:2,vars:2,consts:[["class","footer-nav-link footer-nav-left",3,"routerLink",4,"ngIf"],["class","footer-nav-link footer-nav-right",3,"routerLink",4,"ngIf"],[1,"footer-nav-link","footer-nav-left",3,"routerLink"],[1,"el-icon-arrow-left"],[1,"footer-nav-link","footer-nav-right",3,"routerLink"],[1,"el-icon-arrow-right"]],template:function(i,n){i&1&&J(0,Ls,3,2,"span",0)(1,Ns,3,2,"span",1),i&2&&(T("ngIf",n.leftLink.link),R(),T("ngIf",n.rightLink.link))},dependencies:[de,Di],styles:[`app-nav-bottom{display:block}.footer-nav{padding:40px 0;color:#333;font-size:14px}.footer-nav i{transition:.3s;color:#999;vertical-align:baseline}.footer-nav:after{content:"";display:block;clear:both}.footer-nav-link{cursor:pointer;transition:.3s}.footer-nav-link:hover i,.footer-nav-link:hover{color:#409eff}.footer-nav-left{float:left;margin-left:-4px}.footer-nav-right{float:right;margin-right:-4px}
`],encapsulation:2})}}return s})();var ma=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=j({type:s})}static{this.\u0275inj=$({imports:[Ae,Mi,Pi,sn]})}}return s})();export{Ni as a,nn as b,$e as c,je as d,$i as e,zt as f,wo as g,xo as h,Hn as i,Ie as j,Wo as k,tn as l,pt as m,sn as n,Ir as o,vt as p,Wr as q,Kr as r,Jr as s,ma as t};