meeting_memory/webui/dist/assets/jsx-YFTIUZ3D.js

2 lines
2.9 KiB
JavaScript

import{g as x}from"./syntax-highlight-CQw1bBY6.js";function S(p,t){for(var u=0;u<t.length;u++){const s=t[u];if(typeof s!="string"&&!Array.isArray(s)){for(const g in s)if(g!=="default"&&!(g in p)){const c=Object.getOwnPropertyDescriptor(s,g);c&&Object.defineProperty(p,g,c.get?c:{enumerable:!0,get:()=>s[g]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var y=i;i.displayName="jsx";i.aliases=[];function i(p){(function(t){var u=t.util.clone(t.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,g=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(e,n){return e=e.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return g}).replace(/<SPREAD>/g,function(){return c}),RegExp(e,n)}c=f(c).source,t.languages.jsx=t.languages.extend("markup",u),t.languages.jsx.tag.pattern=f(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=u.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:f(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:f(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var l=function(e){return e?typeof e=="string"?e:typeof e.content=="string"?e.content:e.content.map(l).join(""):""},d=function(e){for(var n=[],r=0;r<e.length;r++){var a=e[r],j=!1;if(typeof a!="string"&&(a.type==="tag"&&a.content[0]&&a.content[0].type==="tag"?a.content[0].content[0].content==="</"?n.length>0&&n[n.length-1].tagName===l(a.content[0].content[1])&&n.pop():a.content[a.content.length-1].content==="/>"||n.push({tagName:l(a.content[0].content[1]),openedBraces:0}):n.length>0&&a.type==="punctuation"&&a.content==="{"?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&a.type==="punctuation"&&a.content==="}"?n[n.length-1].openedBraces--:j=!0),(j||typeof a=="string")&&n.length>0&&n[n.length-1].openedBraces===0){var o=l(a);r<e.length-1&&(typeof e[r+1]=="string"||e[r+1].type==="plain-text")&&(o+=l(e[r+1]),e.splice(r+1,1)),r>0&&(typeof e[r-1]=="string"||e[r-1].type==="plain-text")&&(o=l(e[r-1])+o,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",o,null,o)}a.content&&typeof a.content!="string"&&d(a.content)}};t.hooks.add("after-tokenize",function(e){e.language!=="jsx"&&e.language!=="tsx"||d(e.tokens)})})(p)}const v=x(y),A=S({__proto__:null,default:v},[y]);export{y as a,A as j};