@wangeditor-next/editor 5.7.4 → 5.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/src/config/interface.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/table-module/src/module/custom-types.d.ts +1 -0
- package/package.json +10 -9
- package/dist/core.js.map +0 -1
- package/dist/core.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/upload.js.map +0 -1
- package/dist/upload.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* @author Lea Verou <https://lea.verou.me>
|
|
18
18
|
* @namespace
|
|
19
19
|
* @public
|
|
20
|
-
*/e.exports&&(e.exports=t),void 0!==h&&(h.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.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"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){s.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(n,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(up)),up.exports),cp=g(lp);!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var dp;dp||(dp=1,function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.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]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var fp;fp||(fp=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var pp;pp||(pp=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var hp;hp||(hp=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var gp;gp||(gp=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var vp;vp||(vp=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=S+"|"+A,N=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,F]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:L(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:L(_,R)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var mp;mp||(mp=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}),t}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var yp=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function bp(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+bp(t)},0)}var Ep=function(e){var t,n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Fn.Text.isText(e))return null;var t=Ci.getParentNode(null,e);if(t&&"code"===Ci.getNodeType(t)){var n=Ci.getParentNode(null,t);if(n&&"pre"===Ci.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,f=void 0===l?"":l;if(!f)return s;var p=function(e,t){if(!t)return[];var n=cp.languages[t];return n?cp.tokenize(e.text,n):[]}(i,f),h=0;try{for(var g=c(p),v=g.next();!v.done;v=g.next()){var m=v.value,y=h+bp(m);"string"!=typeof m&&s.push(((r={})[m.type]=!0,r.anchor={path:a,offset:h},r.focus={path:a,offset:y},r)),h=y}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return s};var wp={type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var Cp=function(){function e(){this.title=Hs("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(e){var r=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(e);return n.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),n},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!Fn.Element.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Fn.Transforms.setNodes(e,n,{match:function(e){return Ci.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Ci.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Ci.getParentNode(e,t);return Fn.Element.isElement(n)?"pre"!==n.type?null:t:null},e}(),Dp={key:"codeSelectLang",factory:function(){return new Cp},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};qr&&(Ur.fn.attr=qr);var Ap={renderStyle:function(e,t){var n=e,r=t,o="";return yp.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token ".concat(o)),r},parseStyleHtml:function(e,t,n){var r=Ur(e);if(!Fn.Element.isElement(t))return t;if("code"!==Ci.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[Dp],elemsToHtml:[wp]};Ms("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list",lowerAlphaList:"Ordered list (a,b,c)"}}),Ms("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表",lowerAlphaList:"有序列表(a,b,c)"}});var Sp=new WeakMap;function xp(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o+=1){var i=n[o];Fn.Text.isText(i)&&(t=i)}return null==t?"":t.color||""}function Tp(e){var t=e.ordered,n=void 0!==t&&t,r=e.start;return n?"number"!=typeof r||Number.isNaN(r)?1:r:1}function Np(e){var t=e.orderType;return"a"===t||"A"===t||"i"===t||"I"===t?t:"1"}function Op(e,t){return e.ordered===t.ordered&&(!e.ordered||Np(e)===Np(t)&&Tp(e)===Tp(t))}function Bp(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=Ci.findPath(e,t);;){if(0===a.length||0===a[a.length-1])return null;a=Fn.Path.previous(a);var s=Fn.Editor.node(e,a);if(!s)return null;var u=d(s,1)[0],l=u.level,c=void 0===l?0:l;if(Ci.getNodeType(u)!==r)return null;if(c===i)return u}}var kp=new Set;function Fp(e){return(e||"").trim().replace(/\s+/g,"").toLowerCase()}var Ip=new Set(["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"].map(function(e){return Fp(e)}));function Pp(e){var t=Fp(e);return"w-e-list-color-".concat(function(e){var t,n,r=7;try{for(var o=c(e),i=o.next();!i.done;i=o.next())r=(31*r+(i.value.codePointAt(0)||0))%2147483647}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r.toString(36)}("color:".concat(t)))}function Rp(e,t){var n=Fp(t);return!!n&&(!!Ip.has(n)||!!function(e,t){for(var n,r=(null===(n=null==e?void 0:e.getConfig().styleClassTokens)||void 0===n?void 0:n.color)||[],o=Fp(t),i=0;i<r.length;i+=1)if(Fp(r[i])===o)return!0;return!1}(e,t))}var _p=[],Lp=null;function Mp(e){return e.ordered?"ol":"ul"}function jp(e,t,n){if("prev"===n&&0===t)return null;if("next"===n&&t===e.children.length-1)return null;var r="prev"===n?t-1:t+1,o=e.children[r];return Ci.checkNodeType(o,"list-item")?o:null}var Hp={type:"list-item",elemToHtml:function(e,t,n){var r="",o="",i=e,a=i.level,s=void 0===a?0:a,u=function(e){return e.ordered?"ol":"ul"}(i),l=function(e){var t=e.ordered;if(void 0===t||!t)return"<ul>";var n=[],r=Np(e),o=Tp(e);return"1"!==r&&n.push('type="'.concat(r,'"')),1!==o&&n.push('start="'.concat(o,'"')),0===n.length?"<ol>":"<ol ".concat(n.join(" "),">")}(i),c=Sp.get(e),d=c&&Array.isArray(c.children)?c:null,f=n&&Array.isArray(n.children)?n:null,p=function(t){return!!t&&t.children.indexOf(e)>=0},h=f||d;p(f)?h=f:p(d)&&(h=d);var g=n||c;if(null==h)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};Lp!==h&&(_p.length=0,Lp=h);var v=h.children.indexOf(e);if(v<0)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};var m=jp(h,v,"prev"),y=jp(h,v,"next"),b=!!y&&(y.level||0)>s;if(m){var E=m.level||0;if(s>E)for(A=0;A<s-E;A+=1)r+=l,_p.push(u);else if(s===E){if(!Op(m,i)){var w=_p.pop()||Mp(m);r+="</".concat(w,">").concat(l),_p.push(u)}}else{for(var C=E-s;C>0;){w=_p.pop()||Mp(m);r+="</".concat(w,"></li>"),C-=1}var D=function(e,t,n){for(var r=t-1;r>=0;r-=1){var o=e.children[r];if(Ci.checkNodeType(o,"list-item")&&(o.level||0)===n)return o}return null}(h,v,s);if(D&&!Op(D,i)){w=_p.pop()||Mp(D);r+="</".concat(w,">").concat(l),_p.push(u)}}}else{_p.length=0;for(var A=0;A<s+1;A+=1)r+=l,_p.push(u)}var S=xp(e),x=Rl(g),T="",N="",O="";if(S)if("class"===x){O=' data-w-e-color="'.concat(S,'"');var B=function(e,t){if(Rp(e,t))return"class";var n=_l(e),r="preserve-data";"fallback-inline"===n&&(r="inline"),"strict"===n&&(r="throw");var o="[wangeditor] Unsupported list color class token color=".concat(t,". policy=").concat(n),i="".concat(t,"|").concat(r);if(kp.has(i)||(kp.add(i),Ll(e,{type:"color",value:t,scene:"toHtml",fallback:r,message:o})),"throw"===r)throw new Error(o);return"inline"===r?"inline":"preserve-data"}(g,S);"class"===B?N=' class="'.concat(Pp(S),'"'):"inline"===B&&(T=' style="color:'.concat(S,'"'))}else T=' style="color:'.concat(S,'"');var k="<li".concat(N).concat(O).concat(T,">").concat(t).concat(b?"":"</li>");if(!y){for(;_p.length>0;){var F=_p.pop();if(!F)break;o+="</".concat(F,">"),_p.length>0&&(o+="</li>")}Lp=null}return{html:k,prefix:r,suffix:o}}},zp='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',$p=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Ci.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t,r=n.ordered,o=void 0!==r&&r;return o===this.ordered&&(!o||Np(n)===(this.orderType||"1"))},e.prototype.isDisabled=function(e){return null==e.selection||!!Ci.getSelectedElems(e).some(function(t){if(Fn.Editor.isVoid(e,t)&&Fn.Editor.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},e.prototype.exec=function(e,t){this.isActive(e)?Fn.Transforms.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0}):Fn.Transforms.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0,start:void 0,orderType:this.ordered?this.orderType:void 0})},e}(),Up=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!1,t.title=Hs("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return a(t,e),t}($p),Vp=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.orderType="a",t.title=Hs("listModule.lowerAlphaList"),t.iconSvg=zp,t}return a(t,e),t}($p),Wp=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.title=Hs("listModule.orderedList"),t.iconSvg=zp,t}return a(t,e),t}($p),Gp={key:"bulletedList",factory:function(){return new Up}},qp={key:"numberedList",factory:function(){return new Wp}},Kp={key:"numberedListLowerAlpha",factory:function(){return new Vp}};function Yp(e){return e.length?e[0].tagName.toLowerCase():""}fo&&(Ur.fn.append=fo),qr&&(Ur.fn.attr=qr),ho&&(Ur.fn.parent=ho);var Xp={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ur(e),o=[],i=[];t.forEach(function(e){Fn.Text.isText(e)||n.isInline(e)?o.push(e):Ci.checkNodeType(e,"list-item")&&i.push(e)}),0===o.length&&(i.length>0?o.push({text:""}):o.push({text:r.text().replace(/\s+/gm," ")}));var a=function(e){return"ol"===Yp(e.parent())}(r),u=function(e){for(var t=0,n=e.parent();n.length>0;){var r=Yp(n);"ul"!==r&&"ol"!==r||(t+=1),n=n.parent()}return Math.max(0,t-1)}(r),l=function(e){var t=e.parent();if("ol"===Yp(t)){var n=(t.attr("start")||"").trim();if(""!==n){var r=Number.parseInt(n,10);if(!Number.isNaN(r))return r}}}(r),c=function(e){var t=e.parent();if("ol"===Yp(t)){var n=(t.attr("type")||"").trim();return"1"===n||"a"===n||"A"===n||"i"===n||"I"===n?n:void 0}}(r),p=s(s(s({type:"list-item",ordered:a,level:u},void 0!==l?{start:l}:{}),void 0!==c?{orderType:c}:{}),{children:o});return 0===i.length?p:f([p],d(i),!1)}};var Zp={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function Jp(e){return Fn.Editor.nodes(e,{at:e.selection||void 0,match:function(t){return 1===Ci.findPath(e,t).length}})}function Qp(e,t){if(void 0===t&&(t=!1),e<=0)return String(e);for(var n=e,r="";n>0;){var o=(t?65:97)+(n-1)%26;r=String.fromCharCode(o)+r,n=Math.floor((n-1)/26)}return r}function eh(e,t){var n,r;if(void 0===t&&(t=!1),e<=0||e>=4e3)return String(e);var o=e,i="";try{for(var a=c([[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]]),s=a.next();!s.done;s=a.next())for(var u=d(s.value,2),l=u[0],f=u[1];o>=l;)i+=f,o-=l}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t?i:i.toLowerCase()}var th={type:"list-item",renderElem:function(e,t,n){Sp.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,s=void 0!==a&&a,u={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},l="";if(s){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,s=void 0!==a&&a,u=Tp(n),l=t,c=Ci.findPath(e,l);if(0===c[0])return u;for(;c[0]>0;){var d=Fn.Path.previous(c),f=Fn.Editor.node(e,d);if(null==f)break;var p=f[0],h=p.level,g=void 0===h?0:h,v=p.type,m=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(m!==s||!Op(p,n))break;u+=1}l=p,c=d}return u}(n,e);l=function(e,t){switch(t){case"a":return"".concat(Qp(e),".");case"A":return"".concat(Qp(e,!0),".");case"i":return"".concat(eh(e),".");case"I":return"".concat(eh(e,!0),".");default:return"".concat(e,".")}}(c,Np(e))}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return pl("div",{style:u},pl("span",{contentEditable:!1,style:{marginRight:"0.5em",color:xp(e)},"data-w-e-reserve":!0},l),pl("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},nh={renderElems:[th],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"list-item")},universal:!0}),1),n=t[0];return n?""!==n[0].children[0].text?o():void Fn.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(Fn.Range.isExpanded(r))t(n);else{var o=Ci.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)t(n);else{var a=o.level,s=void 0===a?0:a;if(s>0){var u=Bp(e,o,s-1);if(u){var l=u.ordered;Fn.Transforms.setNodes(i,{level:s-1,ordered:l,start:l?u.start:void 0,orderType:l?u.orderType:void 0})}else Fn.Transforms.setNodes(i,{level:s-1})}else Fn.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0})}else t(n)}else t(n)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(Fn.Range.isCollapsed(a)){var s=Ci.getSelectedNodeByType(i,"list-item");if(null==s)return void n();if(0===a.focus.offset){var u=s.level,l=void 0===u?0:u;return void Fn.Transforms.setNodes(i,{level:l+1})}}if(Fn.Range.isExpanded(a)){var f=0,p=!1;try{for(var h=c(Jp(i)),g=h.next();!g.done;g=h.next()){var v=d(g.value,1)[0];"list-item"===Ci.getNodeType(v)?f+=1:p=!0}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}if(p||f<=1)return void n();try{for(var m=c(Jp(i)),y=m.next();!y.done;y=m.next()){var b=d(y.value,2),E=(v=b[0],b[1]),w=v.level;l=void 0===w?0:w;Fn.Transforms.setNodes(i,{level:l+1},{at:E})}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=d(e,2),n=t[0],o=t[1],a=Ci.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Fn.Transforms.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[Gp,qp,Kp],elemsToHtml:[Hp],parseElemsHtml:[Zp,Xp]};Ms("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Ms("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var rh={type:"table",elemToHtml:function(e,t,n){var r=e,o=r.columnWidths,i=r.height,a=void 0===i?"auto":i,s=null==o?void 0:o.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),u=s?'<colgroup contentEditable="false">'.concat(s,"</colgroup>"):"",l=function(e){var t=e.width,n=void 0===t?"auto":t,r=e.columnWidths;if(n&&"auto"!==n)return n;var o=(void 0===r?[]:r).reduce(function(e,t){return Number.isFinite(t)?t<=0?e:e+t:e},0);return o>0?"".concat(o,"px"):"auto"}(r);if("class"===Rl(n)){var c=l?' width="'.concat(l,'"'):"",d=String(a||"").trim(),f=d&&"auto"!==d?' height="'.concat(d,'"'):"",p=d?' data-w-e-table-height="'.concat(d,'"'):"";return'<table class="w-e-table-layout-fixed"'.concat(c).concat(f).concat(p,">").concat(u,"<tbody>").concat(t,"</tbody></table>")}return'<table style="width: '.concat(l,";table-layout: fixed;height:").concat(a,'">').concat(u,"<tbody>").concat(t,"</tbody></table>")}},oh={type:"table-row",elemToHtml:function(e,t,n){var r=e.height;if("class"===Rl(n))return r?'<tr height="'.concat(r,'" data-w-e-row-height="').concat(r,'px">').concat(t,"</tr>"):"<tr>".concat(t,"</tr>");var o=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(o,">").concat(t,"</tr>")}},ih={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,s=n.isHeader,u=void 0!==s&&s,l=n.width,c=void 0===l?"auto":l,d=n.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},ah='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',sh={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function uh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=sh,o=t.map(function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!Fn.Editor.isEditor(e)&&Fn.Element.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function lh(e,t){for(var n=d(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=d(Fn.Node.common(e,r,o),2),u=s[0],l=s[1];return!!uh.apply(void 0,f([e],d(i),!1))(u,l)||!!Fn.Editor.above(e,{match:uh.apply(void 0,f([e],d(i),!1)),at:l})}function ch(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=c(function(e,t){var n,r,o,i,a,s,u,p,h,g,v,m,y,b,E,w,C,D;return void 0===t&&(t={}),l(this,function(l){switch(l.label){case 0:if(n=d(Fn.Editor.nodes(e,{match:uh(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=d(r,2),i=o[1],l.label=1;case 1:l.trys.push([1,6,7,8]),a=c(Fn.Editor.nodes(e,{match:uh(e,"table"),at:i})),s=a.next(),l.label=2;case 2:if(s.done)return[3,5];u=d(s.value,2),p=u[1],h=[];try{for(C=void 0,g=c(Fn.Editor.nodes(e,{match:uh(e,"tr"),at:p})),v=g.next();!v.done;v=g.next())m=d(v.value,2),y=m[1],h.push(f([],d(Fn.Editor.nodes(e,{match:uh(e,"th","td"),at:y})),!1))}catch(e){C={error:e}}finally{try{v&&!v.done&&(D=g.return)&&D.call(g)}finally{if(C)throw C.error}}return[4,h];case 3:l.sent(),l.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return b=l.sent(),E={error:b},[3,8];case 7:try{s&&!s.done&&(w=a.return)&&w.call(a)}finally{if(E)throw E.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],p=0,h=0;h<s.length;h+=1)s[h]&&(p=Math.max(p,s[h].length));for(h=0;h<s.length;h+=1)if(u[h]||(u[h]=[]),s[h])for(var g=0;g<s[h].length;g+=1)if(s[h][g]&&s[h][g][0]){for(var v=d(s[h][g],1)[0],m=v.rowSpan,y=void 0===m?1:m,b=v.colSpan,E=void 0===b?1:b,w=g;u[h]&&u[h][w];)w+=1;for(var C=0;C<E;C+=1)for(var D=0;D<y;D+=1){var A=h+D,S=w+C;u[A]||(u[A]=[]),u[A][S]||(u[A][S]=[s[h][g],{rtl:C+1,ltr:E-C,ttb:D+1,btt:y-D}])}}o.push.apply(o,f([],d(u),!1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var dh=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function fh(e){return e.length?e[0].tagName.toLowerCase():""}function ph(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}function hh(e){return 0===e.length?"":e[0].outerHTML}fo&&Ur.fn&&(Ur.fn.append=fo),Jr&&Ur.fn&&(Ur.fn.on=Jr),Do&&Ur.fn&&(Ur.fn.focus=Do),qr&&Ur.fn&&(Ur.fn.attr=qr),Zr&&Ur.fn&&(Ur.fn.val=Zr),uo&&Ur.fn&&(Ur.fn.html=uo),Xr&&Ur.fn&&(Ur.fn.dataset=Xr),Vr&&Ur.fn&&(Ur.fn.addClass=Vr),Wr&&Ur.fn&&(Ur.fn.removeClass=Wr),mo&&Ur.fn&&(Ur.fn.children=mo),ao&&Ur.fn&&(Ur.fn.each=ao),vo&&Ur.fn&&(Ur.fn.find=vo),Yr&&Ur.fn&&(Ur.fn.data=Yr),ro&&Ur.fn&&(Ur.fn.hide=ro),oo&&Ur.fn&&(Ur.fn.show=oo);var gh=new WeakMap,vh=new WeakMap,mh=function(){function e(){this.title=Hs("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:Hs("tableModule.borderStyle.none")},{value:"solid",label:Hs("tableModule.borderStyle.solid")},{value:"dotted",label:Hs("tableModule.borderStyle.dotted")},{value:"dashed",label:Hs("tableModule.borderStyle.dashed")},{value:"double",label:Hs("tableModule.borderStyle.double")},{value:"groove",label:Hs("tableModule.borderStyle.groove")},{value:"ridge",label:Hs("tableModule.borderStyle.ridge")},{value:"inset",label:Hs("tableModule.borderStyle.inset")},{value:"outset",label:Hs("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Hs("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:Hs("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:Hs("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:Hs("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==Ci.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return d(Fn.Editor.nodes(e,{match:uh(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.getModalContentNode(e);if(!n)return null;var r=d(n,2),o=r[0],i=r[1],a=Ur('<div>\n <label class="babel-container">\n <span>'.concat(Hs("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(Hs("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(Hs("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(Hs("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(Hs("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){Ur(e).val(o[Ur(e).attr("name")])});var s=function(e,t){t?Ur(".color-group-block",e).css("background-color",t).empty():Ur(".color-group-block",e).css("background-color","").html(ah)};return a.find(".color-group").each(function(n){var r=Ur('[type="hidden"]',n).val()||"";s(n,r);var o=Ur(n);o.on("click",function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:r,callback:function(e){Ur('[type="hidden"]',n).val(e||""),s(n,e),i.hide()}}),o.append(i),o.data("panel",i))})}),a.find("button").on("click",function(){var n=Array.from(a.find("[name]")).reduce(function(e,t){return e[Ur(t).attr("name")]=Ur(t).val(),e},{}),r=gh.get(e);"cell"===t.menu&&(null==r?void 0:r.length)?r.forEach(function(t){t.forEach(function(t){Fn.Transforms.setNodes(e,n,{at:t[0][1]})})}):Fn.Transforms.setNodes(e,n,{at:i}),setTimeout(function(){e.focus()})}),a[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=Ur('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=Ur(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=Ur('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=Ur('<li data-value="'.concat(e,'"></li>'));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=Hs("tableModule.color.default")),"bgColor"===n&&(s=Hs("tableModule.color.clear"));var u=Ur('\n <li data-value="" class="clear">\n '.concat(ah,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=Ur('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),yh=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.title=Hs("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t.menu="cell",t}return a(t,e),t.prototype.getModalContentNode=function(e){return d(Fn.Editor.nodes(e,{match:uh(e,"td")}),1)[0]},t}(mh),bh=function(){function e(){this.title=Hs("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Ci.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)Fn.Transforms.removeNodes(e,{mode:"highest"});else if(null!=Ci.getParentNode(e,a)){var u=ch(e),l=0;e:for(var p=0;p<u.length;p+=1)for(var h=0;h<u[p].length;h+=1){var g=d(u[p][h],1),v=d(g[0],2)[1];if(Fn.Path.equals(i,v)){l=h;break e}}Fn.Editor.withoutNormalizing(e,function(){for(var t,n,r=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=d(u[i][l],2),s=d(a[0],2)[1],p=a[1],h=p.rtl,g=p.ltr,v=p.ttb,m=p.btt,y=s.join(",");if(h>1||g>1||v>1||m>1){var b=i-(v-1),E=l-(h-1);if(b<0||b>=u.length||!u[b]||!u[b][E])continue;var w=d(u[b][E],1),C=d(w[0],2),D=C[0],A=C[1],S=A.join(",");if(!o.has(S)){o.add(S);var x=D.rowSpan,T=void 0===x?1:x,N=D.colSpan,O=void 0===N?1:N,B=Math.max(O-1,1);Fn.Transforms.setNodes(e,{rowSpan:T,colSpan:B},{at:A})}}else r.add(y)}var k=Array.from(r);k.sort(function(e,t){var n=e.split(",").map(Number),r=t.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var F=c(k),I=F.next();!I.done;I=F.next()){var P=I.value.split(",").map(Number);try{Fn.Editor.hasPath(e,P)&&Fn.Transforms.removeNodes(e,{at:P})}catch(e){console.warn("删除单元格失败:",P,e)}}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=F.return)&&n.call(F)}finally{if(t)throw t.error}}var R=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table")},universal:!0}),1),_=R[0];if(_){var L=d(_,2),M=L[0],j=L[1],H=M.columnWidths,z=f([],d(void 0===H?[]:H),!1);z.splice(l,1),Fn.Transforms.setNodes(e,{columnWidths:z},{at:j})}})}}},e}(),Eh=function(){function e(){this.title=Hs("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-row")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Ci.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)Fn.Transforms.removeNodes(e,{mode:"highest"});else{var u=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),l=d(u[0],2)[1],p=ch(e),h=0;e:for(var g=0;g<p.length;g+=1)for(var v=0;v<p[g].length;v+=1){var m=d(p[g][v],1),y=d(m[0],2)[1];if(Fn.Path.equals(l,y)){h=g;break e}}Fn.Editor.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<p[h].length;o+=1){var a=d(p[h][o],2),u=d(a[0],1)[0].hidden,l=a[1],g=l.ttb,v=l.btt,m=l.rtl;if(g>1||v>1){var y=h-(g-1);if(y<0||y>=p.length||!p[y]||!p[y][o])continue;var b=d(p[y][o],1),E=d(b[0],2),w=E[0],C=E[1],D=w,A=D.rowSpan,S=void 0===A?1:A,x=D.colSpan,T=void 0===x?1:x;if(u)Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C});else if(1===g&&1===m){if(h+1<p.length&&S>1){var N={type:"table-cell",rowSpan:S-1,colSpan:T,hidden:!1,children:D.children.map(function(e){return s({},e)})};D.isHeader&&(N.isHeader=D.isHeader),D.width&&(N.width=D.width),D.backgroundColor&&(N.backgroundColor=D.backgroundColor),D.borderWidth&&(N.borderWidth=D.borderWidth),D.borderStyle&&(N.borderStyle=D.borderStyle),D.borderColor&&(N.borderColor=D.borderColor),D.textAlign&&(N.textAlign=D.textAlign),r.push({cell:N,columnIndex:o})}else Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C})}else Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C})}}if(Fn.Transforms.removeNodes(e,{at:i}),r.length>0){var O=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var B=c(r),k=B.next();!k.done;k=B.next()){var F=k.value,I=F.cell,P=F.columnIndex;try{var R=f(f([],d(O),!1),[P],!1);Fn.Transforms.insertNodes(e,I,{at:R})}catch(t){try{var _=d(Fn.Editor.node(e,O),1)[0].children.length,L=f(f([],d(O),!1),[_],!1);Fn.Transforms.insertNodes(e,I,{at:L})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{k&&!k.done&&(n=B.return)&&n.call(B)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),wh=function(){function e(){this.title=Hs("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Ci.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Fn.Transforms.removeNodes(e,{mode:"highest"})},e}(),Ch=function(){function e(){this.title=Hs("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return!1},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)&&Ci.getSelectedNodeByType(e,"table")){Fn.Transforms.setNodes(e,{width:"100%"},{mode:"highest"})}},e}();function Dh(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Ah(e){return Dh(e).every(function(e){return!!e.isHeader})}var Sh=function(){function e(){this.title=Hs("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!Fn.Range.isCollapsed(t))return!0;var n=Ci.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=d(o,2)[1],a=ch(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=d(a[u][l],1),f=d(c[0],2)[1];if(Fn.Path.equals(i,f)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var p=n.columnWidths,h=(void 0===p?[]:p)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Ci.getParentNode(e,o);if(null!=a){var s=Ci.getParentNode(e,a);if(null!=s){for(var u=ch(e),l=0,c=0;c<u.length;c+=1)for(var p=0;p<u[c].length;p+=1){var h=d(u[c][p],1),g=d(h[0],2)[1];if(Fn.Path.equals(i,g)){l=p;break}}Fn.Editor.withoutNormalizing(e,function(){for(var t=new Set,n=new Set,r=0;r<u.length;r+=1)if(u[r]&&u[r][l]){var o=d(u[r][l],2);d(o[0],1);var i=o[1],a=i.rtl,c=i.ltr,p=i.ttb,h=i.btt;if(a>1||c>1||p>1||h>1){var g=r-(p-1),v=l-(a-1);if(g<0||g>=u.length||!u[g]||!u[g][v])continue;var m=d(u[g][v],1),y=d(m[0],2),b=y[0],E=y[1],w=E.join(",");if(t.has(w))n.add(r);else{t.add(w);var C=b.rowSpan,D=void 0===C?1:C,A=b.colSpan,S=(void 0===A?1:A)+1;b.hidden||Fn.Transforms.setNodes(e,{colSpan:S},{at:E});for(var x=0;x<D;x+=1)n.add(g+x)}}}for(r=0;r<u.length;r+=1)if(!n.has(r)&&u[r]&&u[r][l]){var T={type:"table-cell",children:[{text:""}]};0===r&&Ah(s)&&(T.isHeader=!0);var N=d(u[r][l],1),O=d(N[0],2)[1];Fn.Transforms.insertNodes(e,T,{at:O})}var B=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table")},universal:!0}),1),k=B[0];if(k){var F=d(k,2),I=F[0],P=F[1],R=I.columnWidths,_=void 0===R?[]:R,L=f([],d(_),!1),M=e.getMenuConfig("insertTable").minWidth,j=void 0===M?60:M,H=_[l]||parseInt(j,10)||60,z=Math.floor(H/2),$=H-z;L.splice(l,0,z),L[l+1]=$,Fn.Transforms.setNodes(e,{columnWidths:L},{at:P})}})}}}},e}(),xh=function(){function e(){this.title=Hs("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2)[1],i=ch(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=d(i[s][u],1),c=d(l[0],2)[1];if(Fn.Path.equals(o,c)){a=s;break e}}var f=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==f&&Fn.Editor.withoutNormalizing(e,function(){for(var t=a+1,n=t>=0&&t<i.length,r=[],s=0;n&&s<i[a].length;s+=1){var u=d(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var p=a-(l-1);if(p<0||p>=i.length||!i[p]||!i[p][s])continue;var h=d(i[p][s],1),g=d(h[0],2),v=g[0],m=g[1],y=v.rowSpan||1;r.push(s),v.hidden||Fn.Transforms.setNodes(e,{rowSpan:y+1},{at:m})}}for(var b=(e.getMenuConfig("insertTable")||{}).minRowHeight,E={type:"table-row",children:[],height:parseInt((void 0===b?30:b).toString(),10)||30},w=0;w<f;w+=1)if(!r.includes(w)){E.children.push({type:"table-cell",children:[{text:""}]})}var C=Fn.Path.parent(o),D=Fn.Path.next(C);Fn.Transforms.insertNodes(e,E,{at:D})})}},e}();var Th=function(){function e(){this.title=Hs("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){var n=Ci.getNodeType(t);return"pre"===n||("table"===n||("list-item"===n||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Ur('<div class="w-e-panel-content-table"></div>'),r=Ur("<span>0 × 0</span>"),o=Ur("<table></table>"),i=0;i<10;i+=1){for(var a=Ur("<tr></tr>"),s=0;s<10;s+=1){var u=Ur("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=Ur(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){Ur(e).children().each(function(e){var t=Ur(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ur(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){Ci.isSelectedEmptyParagraph(e)&&Fn.Transforms.removeNodes(e,{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(n).fill(parseInt(s,10)||60),p=0;p<t;p+=1){for(var h=[],g=0;g<n;g+=1){var v={type:"table-cell",children:[{text:""}]};0===p&&(v.isHeader=null===(r=null==d?void 0:d.selected)||void 0===r||r),h.push(v)}o.push({type:"table-row",children:h,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,r,o);Fn.Transforms.insertNodes(e,i,{mode:"highest"})}},e}(),Nh={isInTable:function(e,t){return void 0===t&&(t={}),!!d(Fn.Editor.nodes(e,{match:uh(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return l(this,function(l){switch(l.label){case 0:t=gh.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=d(t[n][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&r.push(a),o+=u-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(e){vh.delete(e),gh.delete(e)},isSelected:function(e,t){var n=vh.get(e);return!!n&&n.has(t)},hasSelected:function(e){return gh.has(e)}},Oh=function(){function e(){this.title=Hs("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),Nh.unselect(e))},e.prototype.canMerge=function(e){var t=gh.get(e);if(!t||!t.length)return!1;var n=d(t[t.length-1][t[t.length-1].length-1],1),r=d(n[0],2)[1],o=d(t[0][0],1);return!!lh(e,[d(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=gh.get(e);if(t&&t.length){var n=d(t[0][0],1),r=d(n[0],2)[1],o=d(Fn.Node.children(e,r,{reverse:!0}),1),i=d(o[0],2)[1];Fn.Editor.withoutNormalizing(e,function(){for(var n,o,a,s,u,l,f=new Map,p=[],h=1/0,g=-1/0,v=1/0,m=-1/0,y=0;y<t.length;y+=1)for(var b=0;b<t[y].length;b+=1){var E=d(t[y][b],2),w=d(E[0],2),C=w[0],D=w[1],A=E[1].ttb,S=D.join(",");if(1===A&&!f.has(S)){f.set(S,{path:D,x:y,y:b,element:C});var x=C.rowSpan,T=void 0===x?1:x,N=C.colSpan,O=y,B=y+T-1,k=b,F=b+(void 0===N?1:N)-1;h=Math.min(h,O),g=Math.max(g,B),v=Math.min(v,k),m=Math.max(m,F)}}var I=g-h+1,P=m-v+1;try{for(var R=c(f),_=R.next();!_.done;_=R.next()){D=d(_.value,2)[1].path;Fn.Path.equals(r,D)||p.push(D)}}catch(e){n={error:e}}finally{try{_&&!_.done&&(o=R.return)&&o.call(R)}finally{if(n)throw n.error}}p.sort(function(e,t){for(var n=0;n<Math.min(e.length,t.length);n+=1)if(e[n]!==t[n])return t[n]-e[n];return t.length-e.length});try{for(var L=c(p),M=L.next();!M.done;M=L.next()){D=M.value;try{if(!Fn.Editor.hasPath(e,D))continue;try{for(var j=(u=void 0,c(Fn.Node.children(e,D,{reverse:!0}))),H=j.next();!H.done;H=j.next()){var z=d(H.value,2)[1];Fn.Transforms.moveNodes(e,{to:Fn.Path.next(i),at:z})}}catch(e){u={error:e}}finally{try{H&&!H.done&&(l=j.return)&&l.call(j)}finally{if(u)throw u.error}}Fn.Transforms.removeNodes(e,{at:D})}catch(e){}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=L.return)&&s.call(L)}finally{if(a)throw a.error}}Fn.Transforms.setNodes(e,{rowSpan:I,colSpan:P},{at:r})})}}},e}(),Bh=function(){function e(){this.title=Hs("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=d(n,1)[0],o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=d(Fn.Editor.nodes(e,{match:uh(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=Ah(d(r,1)[0]),a=d(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,p=s.colSpan,h=void 0===p?1:p;1===c&&1===h||Fn.Editor.withoutNormalizing(e,function(){Fn.Transforms.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<h;t+=1){var n={type:"table-cell",children:[{text:""}]};0===u[u.length-2]&&i&&(n.isHeader=!0);var r=u.slice(0,-1),o=u[u.length-1]+t,a=f(f([],d(r),!1),[o],!1);try{Fn.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var s=d(Fn.Editor.node(e,r),1)[0].children.length,l=f(f([],d(r),!1),[s],!1);Fn.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var p=1;p<c;p+=1){var g=u[u.length-2]+p,v=f(f([],d(u.slice(0,-2)),!1),[g],!1);try{var m=d(Fn.Editor.node(e,v),1)[0];if(!m){console.warn("目标行 ".concat(g," 不存在"));continue}for(t=0;t<h;t+=1){n={type:"table-cell",children:[{text:""}]},o=u[u.length-1]+t,a=f(f([],d(v),!1),[o],!1);try{var y=m.children.length;if(o>=y){var b=f(f([],d(v),!1),[y],!1);Fn.Transforms.insertNodes(e,n,{at:b})}else Fn.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var E=m.children.length;l=f(f([],d(v),!1),[E],!1);Fn.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入单元格到第".concat(p,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(p,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),kh=function(){function e(){this.title=Hs("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Ci.getSelectedNodeByType(e,"table");return null!=t&&Ah(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Ci.getSelectedNodeByType(e,"table");if(null!=r)Dh(r).forEach(function(t){return Fn.Transforms.setNodes(e,{isHeader:n},{at:Ci.findPath(e,t)})})}},e}(),Fh={key:"insertTable",factory:function(){return new Th}},Ih={key:"deleteTable",factory:function(){return new wh}},Ph={key:"insertTableRow",factory:function(){return new xh}},Rh={key:"deleteTableRow",factory:function(){return new Eh}},_h={key:"insertTableCol",factory:function(){return new Sh}},Lh={key:"deleteTableCol",factory:function(){return new bh}},Mh={key:"tableHeader",factory:function(){return new kh}},jh={key:"tableFullWidth",factory:function(){return new Ch}},Hh={key:"mergeTableCell",factory:function(){return new Oh}},zh={key:"splitTableCell",factory:function(){return new Bh}},$h={key:"setTableProperty",factory:function(){return new mh}},Uh={key:"setTableCellProperty",factory:function(){return new yh}};function Vh(e,t){void 0===t&&(t=0);var n=parseInt(e||"",10);return Number.isNaN(n)?t:n}var Wh={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ur(e),o=r.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return"paragraph"===Ci.getNodeType(e)||(!!Fn.Text.isText(e)||!!n.isInline(e))})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1",10),a=parseInt(r.attr("rowSpan")||"1",10),s="none"===ph(r,"display")&&0===o.length,u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===fh(r),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var Gh={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r=Ur(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===Ci.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:Vh(ph(r,"height")||r.attr("data-w-e-row-height")||r.attr("height"))||void 0,children:o}}};var qh,Kh={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Ur(e),a="auto",s=ph(i,"width"),u=i.attr("width")||"",l=i.hasClass("w-e-table-layout-fixed")||!!i.attr("data-w-e-table-height");"100%"===s&&(a="100%"),"100%"===i.attr("width")&&(a="100%"),l&&u&&"auto"!==u&&"100%"!==u&&(a=u);var c={type:"table",width:a,height:Vh(ph(i,"height")||i.attr("data-w-e-table-height")||i.attr("height")),children:t.filter(function(e){return"table-row"===Ci.getNodeType(e)})},d=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],f=function(e){if(!e||0===e.length)return[];var t=[];return Array.from(e).forEach(function(e){var n=parseInt(e.getAttribute("span")||"1",10),r=parseInt(e.getAttribute("width")||ph(Ur(e),"width")||"90",10);if(!Number.isNaN(r))for(var o=0;o<n;o+=1)t.push(r)}),t}((null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null);if(f.length>0)c.columnWidths=f;else if(d.length>0){var p=[];Array.from(d).forEach(function(e){var t=parseInt(Ur(e).attr("colSpan")||"1",10),n=parseInt(ph(Ur(e),"width")||"90",10);p.push(n);for(var r=1;r<t;r+=1)p.push(90)}),c.columnWidths=p}return c}},Yh=null===(qh=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===qh?void 0:qh.getPropertyValue("--w-e-textarea-border-color");var Xh="\n";function Zh(e){var t=e.selection;if(null==t)return!1;var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=d(r,2)[1],i=Fn.Editor.start(e,o);if(Fn.Point.equals(t.anchor,i))return!0}return!1}function Jh(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=Fn.Editor.before(e,r)),"forward"===n&&Fn.Editor.isEnd(e,r.anchor,r.anchor.path)&&(a=Fn.Editor.after(e,r)),null==a)return!1;var s=Fn.Editor.above(e,{at:a,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(null==s||null==i||!Fn.Path.equals(s[1],i[1]))return!1;var u=Fn.Editor.node(e,a);if(!Fn.Text.isText(u[0])||u[0].text.length<1)return!1;var l="backward"===n?a.offset-1:a.offset,c="backward"===n?a.offset:a.offset+1;if(l<0)return!1;var f=Fn.Node.string(u[0]);return!(f.slice(l,c)!==Xh)&&(Fn.Transforms.insertText(e,f.slice(0,l)+f.slice(c),{at:{anchor:Fn.Editor.start(e,a.path),focus:Fn.Editor.end(e,a.path)}}),Fn.Transforms.select(e,{anchor:{path:a.path,offset:l},focus:{path:a.path,offset:l}}),!0)}function Qh(e,t){var n=Fn.Editor.nodes(e,{at:t,match:function(e){return"table"===Ci.getNodeType(e)}});return!!f([],d(n),!1).find(function(){return!0})}function eg(e){var t,n;try{for(var r=c(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=r.next();!o.done;o=r.next()){var i=o.value;if(Ci.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}function tg(e){var t=document.createElement("div");t.innerHTML=e;var n=[],r=!1;return Array.from(t.childNodes).forEach(function(e){if(e.nodeType!==Node.TEXT_NODE){if(!(e instanceof HTMLElement)||"p"!==e.tagName.toLowerCase())return n.push(e.cloneNode(!0)),void(r=!0);var t=e.innerHTML,o=t.trim();if(o&&" "!==o){r&&n.push(document.createElement("br"));var i=document.createElement("div");i.innerHTML=t,Array.from(i.childNodes).forEach(function(e){n.push(e.cloneNode(!0))}),r=!0}}else(e.textContent||"").trim()&&(n.push(e.cloneNode(!0)),r=!0)}),t.replaceChildren.apply(t,f([],d(n),!1)),t.innerHTML}var ng={selector:"table",preParseHtml:function(e){var t=Ur(e);if("table"!==fh(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");t.append(r),n.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=Ur(o[i]);a.attr("width","auto");var s=a.html()||"";s=tg(s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")),a.html(s)}return t[0]}};function rg(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function og(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var ig=null;function ag(e,t){if(No(t)){var n=t.querySelector("table");n&&(ig=new ResizeObserver(function(t){var r=d(t,1)[0].contentRect,o=function(e){return Array.from(e.querySelectorAll("tr")).map(function(e){var t=e.getBoundingClientRect();return Math.max(1,Math.round(100*t.height)/100)})}(n);Fn.Transforms.setNodes(e,{scrollWidth:r.width,height:r.height,rowHeights:o},{mode:"highest"})}),ig.observe(n))}}var sg=!1,ug=!1,lg=0,cg=null,dg=null,fg=Ur(window);fg.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))sg=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===cg||null===dg)return;ug=!0;var n=e.clientX;lg=n,document.body.style.cursor="col-resize",e.preventDefault()}fg.on("mousemove",pg),fg.on("mouseup",hg)});var pg=uu(function(e){if(ug&&null!==cg&&null!==dg){e.preventDefault();var t=e.clientX,n=t-lg,r=null,o=null;try{var i=d(Fn.Editor.node(cg,dg),2),a=i[0],s=i[1];if(Fn.Editor.isEditor(a)||!Fn.Element.isElement(a)||"table"!==a.type)return;r=a,o=s}catch(e){return}if(null!==r&&null!==o){var u=r.columnWidths,l=void 0===u?[]:u,c=r.resizingIndex,p=void 0===c?-1:c;if(!(0===l.length||p<0||p>=l.length)){var h,g=null;try{g=Ci.toDOMNode(cg,r)}catch(e){g=null}var v=null==g?void 0:g.querySelector(".table");if(v)h=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(l,p,t-v.getBoundingClientRect().left,rg(l),cg);else h=function(e,t,n,r){var o=f([],d(e),!1),i=r.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(l,p,n,cg);Fn.Transforms.setNodes(cg,{columnWidths:h},{at:o})}}}},100);function hg(e){ug&&pg.flush(),pg.cancel(),sg=!1,ug=!1,cg=null,dg=null,document.body.style.cursor="",fg.off("mousemove",pg),fg.off("mouseup",hg)}function gg(e,t){"mouseenter"===t.type?Fn.Transforms.setNodes(e,{isResizing:!0},{mode:"highest"}):Fn.Transforms.setNodes(e,{isResizing:!1},{mode:"highest"})}function vg(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function mg(e){var t=e.children,n=e.rowHeights,r=void 0===n?[]:n,o=r.length===t.length&&r.every(function(e){return Number.isFinite(e)&&e>0});return o?r:t.map(function(e){return e.height||30})}var yg=!1,bg=0,Eg=null,wg=Ur(window);var Cg=uu(function(e){if(yg&&null!==Eg){e.preventDefault();var t,n=e.clientY,r=n-bg,o=d(Fn.Editor.nodes(Eg,{match:uh(Eg,"table")}),1),i=d(o[0],1)[0],a=i.resizingRowIndex,s=void 0===a?-1:a,u=mg(i),l=Ci.getSelectedNodeByType(Eg,"table"),c=Ci.toDOMNode(Eg,l).querySelector(".table");if(c)t=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(u,s,n-c.getBoundingClientRect().top,vg(u),Eg);else t=function(e,t,n,r){var o=f([],d(e),!1),i=(r.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(u,s,r,Eg);var p=Ci.getSelectedNodeByType(Eg,"table");if(p&&s>=0&&s<t.length){var h=f(f([],d(Ci.findPath(Eg,p)),!1),[s],!1);try{Fn.Transforms.setNodes(Eg,{height:t[s]},{at:h})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function Dg(e){yg=!1,Eg=null,document.body.style.cursor="",wg.off("mousemove",Cg),wg.off("mouseup",Dg)}function Ag(e,t){"mouseenter"===t.type?Fn.Transforms.setNodes(e,{isResizingRow:!0},{mode:"highest"}):Fn.Transforms.setNodes(e,{isResizingRow:!1},{mode:"highest"})}wg.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===Eg)return;yg=!0;var n=e.clientY;bg=n,document.body.style.cursor="row-resize",e.preventDefault()}wg.on("mousemove",Cg),wg.on("mouseup",Dg)});var Sg={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Fn.Range.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Ci.findPath(e,t),a=Fn.Editor.start(e,i),s=Fn.Editor.end(e,i),u=Fn.Point.compare(r,s)<=0&&Fn.Point.compare(r,a)>=0,l=Fn.Point.compare(o,s)<=0&&Fn.Point.compare(o,a)>=0;return!!(u&&l&&Fn.Path.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.height,u=o.columnWidths,l=void 0===u?[]:u,c=o.rowHeights,f=void 0===c?[]:c,p=o.scrollWidth,h=void 0===p?0:p,g=o.isHoverCellBorder,v=o.resizingIndex,m=o.isResizing,y=o.isHoverRowBorder,b=o.resizingRowIndex,E=o.isResizingRow,w=Ci.isNodeSelected(n,e),C=d(Nh.selection(n),1)[0],D=og(l),A=pl("div",{className:"table-container","data-selected":w,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&Nh.unselect(n);var r=Ci.findPath(n,e),o=Fn.Editor.start(n,r),i=n.selection;if(null!=i)i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o);else n.select(o)}}}},pl("table",{width:a,contentEditable:r,className:"table ".concat(C?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:Ga(function(t){Nh.hasSelected(n)||(function(e,t,n,r){if(!e.isDisabled()&&!sg&&!ug){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=n.clientX,f=n.target;if(No(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&Fn.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(No(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?og(u).map(function(e){return e*r}):u,m=rg(v),y=0;y<m.length;y+=1)if(h-g.x>=m[y]-5&&h-g.x<m[y]+5){if(c===y)return;return void Fn.Transforms.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&Fn.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,h),function(e,t,n){if(!e.isDisabled()&&!yg){var r=t,o=r.isHoverRowBorder,i=r.resizingRowIndex,a=n.target;if(No(a)){var s=a.closest(".table");if(s)for(var u=n.clientY,l=s.getBoundingClientRect(),c=vg(mg(r)),d=0;d<c.length;d+=1)if(u-l.y>=c[d]-5&&u-l.y<c[d]+5){if(i===d)return;return void Fn.Transforms.setNodes(e,{isHoverRowBorder:!0,resizingRowIndex:d},{mode:"highest"})}}!0===o&&Fn.Transforms.setNodes(e,{isHoverRowBorder:!1,resizingRowIndex:-1},{mode:"highest"})}}(n,e,t))},25)}},pl("colgroup",{contentEditable:!1},l.map(function(e){return pl("col",{width:e})})),pl("tbody",null,t)),pl("div",{className:"column-resizer",contentEditable:!1},l.map(function(t,r){var o=t;return"100%"===a&&(o=D[r]*h),pl("div",{className:"column-resizer-item",style:{minWidth:"".concat(o,"px")}},pl("div",{className:"resizer-line-hotzone ".concat(g&&r===v?"visible ":"").concat(m&&r===v?"highlight":""),style:{height:"".concat(s,"px")},on:{mouseenter:function(e){return gg(n,e)},mouseleave:function(e){return gg(n,e)},mousedown:function(t){return function(e,t){if(!ug){cg=e;try{dg=Ci.findPath(e,t)}catch(e){dg=null}}}(n,e)}}},pl("div",{className:"resizer-line"})))})),pl("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(e,t){var r=l.reduce(function(e,t){return e+t},0),o=f[t],i=Number.isFinite(o)&&o>0?o:e.height||30;return pl("div",{className:"row-resizer-item",style:{minHeight:"".concat(i,"px")}},pl("div",{className:"resizer-line-hotzone-horizontal ".concat(y&&t===b?"visible ":"").concat(E&&t===b?"highlight":""),style:{width:"".concat(r,"px")},on:{mouseenter:function(e){return Ag(n,e)},mouseleave:function(e){return Ag(n,e)},mousedown:function(e){return function(e){yg||(Eg=e)}(n)}}},pl("div",{className:"resizer-line-horizontal"})))}))),S=qu("div",{hook:{insert:function(e){var t=e.elm;return ag(n,t)},destroy:function(){ig&&(null==ig||ig.disconnect(),ig=null)}}},A);return S}},xg={type:"table-row",renderElem:function(e,t,n){var r=e.height;return pl("tr",{style:r?{height:"".concat(r,"px")}:{}},t)}},Tg={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Ci.getParentNode(e,t);if(null==n)return!1;var r=Ci.getParentNode(e,n);return null!=r&&Dh(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,p=Nh.isSelected(n,e);return pl(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function Ng(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var Og=new Set(["solid","dotted","dashed","double","groove","ridge","inset","outset"]),Bg=new Set;function kg(e){return"".concat(e||"").trim().toLowerCase().replace(/\s+/g," ")}var Fg={renderStyle:function(e,t){var n,r;if(!Fn.Element.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c={};if(i&&(c.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?c.borderWidth="".concat(a,"px"):c.borderWidth=a}s&&(c.borderStyle="none"===s?"":s),u&&(c.borderColor=u),l&&(c.textAlign=l);var d=t;return"table"===e.type?Ng(null===(r=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],c):Ng(d,c),d},styleToHtml:function(e,t,n){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,o=e.borderWidth,i=e.borderStyle,a=e.borderColor,s=e.textAlign;if(!(r||o||i||a||s))return t;var u=Ur(t);if("class"===Rl(n)){if(r&&(u.attr("bgcolor",r),u.attr("data-w-e-background-color",r)),o){var l="".concat(o).trim();l&&(u.attr("data-w-e-border-width",l),u.attr("border",l))}if(i){var c=kg(i),d=function(e,t){var n=kg(t);if(!n||"none"===n)return"skip";if(Og.has(n))return"class";var r=_l(e),o="preserve-data";"fallback-inline"===r&&(o="inline"),"strict"===r&&(o="throw");var i='[wangeditor] Unsupported table border-style token "'.concat(n,'" in class mode. policy=').concat(r),a="".concat(n,"|").concat(o);if(Bg.has(a)||(Bg.add(a),Ll(e,{type:"table-border-style",value:n,scene:"toHtml",fallback:o,message:i})),"throw"===o)throw new Error(i);return"inline"===o?"inline":"preserve-data"}(n,c);"skip"!==d&&u.attr("data-w-e-border-line",c),"class"===d?u.addClass(function(e){var t=(e||"").trim().toLowerCase();return t&&"none"!==t?"w-e-table-border-style-".concat(t):""}(c)):"inline"===d&&u.css("border-style",c)}return a&&(u.attr("bordercolor",a),u.attr("data-w-e-border-color",a)),s&&(u.attr("align",s),u.attr("data-w-e-text-align",s)),hh(u)}return r&&u.css("background-color",r),o&&u.css("border-width","".concat(o,"px")),i&&u.css("border-style","none"===i?"":i),a&&u.css("border-color",a),s&&u.css("text-align",s),hh(u)},parseStyleHtml:function(e,t,n){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var r=Ur(e),o=t,i=ph(r,"background-color");i||(i=ph(r,"background")),i||(i=r.attr("bgcolor")||""),i||(i=r.attr("data-w-e-background-color")||""),i&&(o.backgroundColor=i);for(var a=ph(r,"border"),s=r.attr("data-w-e-border-width")||"",u=r.attr("data-w-e-border-line")||"",l=r.attr("data-w-e-border-color")||"",c=r.attr("border")||"",f=r.attr("bordercolor")||"",p=(r.attr("class")||"").trim().split(/\s+/).filter(Boolean),h="",g=0;g<p.length;g+=1){var v=p[g];if(v.startsWith("w-e-table-border-style-")){h=v.replace("w-e-table-border-style-","");break}}var m=!!(s||u||l||c||f||h);a||"TD"!==e.tagName||m||(a="1px solid ".concat(Yh));var y,b=d((null==a?void 0:a.split(" "))||[],3),E=b[0],w=b[1],C=b[2];(E=ph(r,"border-width")||E)||(E=s),E||(E=c),E&&(o.borderWidth=(y=E.trim())&&"string"==typeof y&&y.includes("pt")?y.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var n=(4*parseFloat(t)/3).toFixed(2);return"".concat(n,"px")}):y),(w=ph(r,"border-style")||w)||(w=u),w||(w=h),w&&(o.borderStyle="none"===w?"":w),(C=ph(r,"border-color")||C)||(C=f),C||(C=l),C&&(o.borderColor=C);var D=ph(r,"text-align");return(D=ph(r,"text-align")||D)||(D=r.attr("align")||""),D||(D=r.attr("data-w-e-text-align")||""),D&&(o.textAlign=D),t},renderElems:[Sg,xg,Tg],elemsToHtml:[rh,oh,ih],preParseHtml:[ng],parseElemsHtml:[Wh,Gh,Kh],menus:[Fh,Ih,Ph,Rh,_h,Lh,Mh,jh,Hh,zh,$h,Uh],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,l=e.deleteFragment,c=e;c.insertBreak=function(){null==Ci.getSelectedNodeByType(c,"table")?t():c.insertText(Xh)},c.deleteBackward=function(e){if(!Zh(c)&&!Jh(c,e,"backward")){var t=c.selection;if(t){var r=Fn.Editor.before(c,t),o=Fn.Editor.above(c,{at:t,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(r){var i=Qh(c,r);if(!o&&i&&eg(c))return}}n(e)}},c.handleTab=function(){var t;if(Ci.getSelectedNodeByType(c,"table")){var n=Fn.Editor.above(e);Ci.checkNodeType(n[0],"table-cell")&&Fn.Transforms.select(e,n[1]);var r=Fn.Editor.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Fn.Editor.above(e,{at:r[1]}))&&void 0!==t?t:r),Fn.Transforms.select(e,r[1]);else{var o=c.children||[],i=o.length;if(Ci.checkNodeType(o[i-1],"table")){var s=Ci.genEmptyParagraph();Fn.Transforms.insertNodes(c,s,{at:[i]}),c.handleTab()}}}else a()},c.deleteForward=function(e){if(!Zh(c)&&!Jh(c,e,"forward")){var t=c.selection;if(t){var n=Fn.Editor.after(c,t),o=Fn.Editor.above(c,{at:t,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(n){var i=Qh(c,n);if(!o&&i&&eg(c))return}}r(e)}},c.normalizeNode=function(e){var t=d(e,2),n=t[0],r=t[1];if("table"!==Ci.getNodeType(n))return o([n,r]);if(Ci.isLastNode(c,n)){var i=Ci.genEmptyParagraph();Fn.Transforms.insertNodes(c,i,{at:[r[0]+1]})}},c.insertData=function(e){if(null!=Ci.getSelectedNodeByType(c,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Fn.Editor.insertText(c,t)}else i(e)},c.selectAll=function(){var e=c.selection;if(null!=e){var t=Ci.getSelectedNodeByType(c,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Fn.Path.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Fn.Node.string(t).length){var o=Ci.findPath(c,t),i={anchor:Fn.Editor.start(c,o),focus:Fn.Editor.end(c,o)};c.select(i)}else u();else u()}else u()}else u()},c.deleteFragment=function(e){var t=gh.get(c);if(t&&t.length>0){var n=[];t.forEach(function(e){e.forEach(function(e){var t=d(e[0],2)[1];n.some(function(e){return Fn.Path.equals(e,t)})||n.push(t)})});var r=n[0];if(n.forEach(function(t){if(Fn.Node.has(c,t)){var n=Fn.Editor.start(c,t),r=Fn.Editor.end(c,t);Fn.Transforms.select(c,{anchor:n,focus:r}),l(e)}}),Nh.unselect(c),r&&Fn.Node.has(c,r)){var o=Fn.Editor.start(c,r);Fn.Transforms.select(c,o)}}else l(e)},function(e){var t=e.apply;e.apply=function(n){if(!Fn.Operation.isSelectionOperation(n)||!n.newProperties)return t(n);var r=s(s({},e.selection),n.newProperties);if(!Fn.Range.isRange(r))return Nh.unselect(e),t(n);var o=function(e){return Fn.Element.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=d(Fn.Editor.nodes(e,{match:o,at:Fn.Range.start(r),mode:"lowest"}),1)[0],a=d(Fn.Editor.nodes(e,{match:o,at:Fn.Range.end(r),mode:"lowest"}),1)[0];if(!i||!a)return Nh.unselect(e),t(n);var u=d(i,2)[1],l=d(a,2)[1];if(Fn.Path.equals(u,l)||!lh(e,[u,l],"table"))return Nh.unselect(e),t(n);try{var c=ch(e,{at:u});if(!c||0===c.length)return Nh.unselect(e),t(n);for(var f=dh.valueOf(0,0),p=dh.valueOf(0,0),h=!1,g=!1,v=0;v<c.length;v+=1)if(c[v])for(var m=0;m<c[v].length;m+=1)if(c[v][m]){var y=d(c[v][m],1),b=d(y[0],2)[1];Fn.Path.equals(u,b)&&(f.x=v,f.y=m,h=!0),Fn.Path.equals(l,b)&&(p.x=v,p.y=m,g=!0)}if(!h||!g)return Nh.unselect(e),t(n);for(var E=dh.valueOf(Math.min(f.x,p.x),Math.min(f.y,p.y)),w=dh.valueOf(Math.max(f.x,p.x),Math.max(f.y,p.y));;){var C=dh.valueOf(E.x,E.y),D=dh.valueOf(w.x,w.y);for(v=C.x;v<=D.x&&v<c.length;v+=1)if(c[v])for(m=C.y;m<=D.y&&m<c[v].length;m+=1)if(c[v][m]){var A=d(c[v][m],2)[1];if(A){var S=A.rtl,x=A.ltr,T=A.btt,N=A.ttb;C.x=Math.min(C.x,v-(N-1)),C.y=Math.min(C.y,m-(S-1)),D.x=Math.max(D.x,v+(T-1)),D.y=Math.max(D.y,m+(x-1))}}if(dh.equals(E,C)&&dh.equals(w,D))break;E=C,w=D}var O=[],B=new WeakSet;for(v=E.x;v<=w.x&&v<c.length;v+=1)if(c[v]){var k=[];for(m=E.y;m<=w.y&&m<c[v].length;m+=1)if(c[v][m]){var F=d(c[v][m],1),I=d(F[0],1)[0];I&&(B.add(I),k.push(c[v][m]))}k.length>0&&O.push(k)}gh.set(e,O),vh.set(e,B)}catch(r){return Nh.unselect(e),t(n)}t(n)}}(c),c.getTableSelection=function(){return gh.get(c)||null};var f=c.addMark,p=c.removeMark,h=s({},Fn.Transforms);return c.addMark=function(e,t){var n=gh.get(c);if(n&&n.length>0){var r=c.selection;n.forEach(function(n){n.forEach(function(n){var r=d(n[0],2)[1],o=Fn.Editor.start(c,r),i=Fn.Editor.end(c,r);Fn.Transforms.select(c,{anchor:o,focus:i}),f(e,t)})}),r&&Fn.Transforms.select(c,r)}else f(e,t)},c.removeMark=function(e){var t=gh.get(c);if(t&&t.length>0){var n=c.selection;t.forEach(function(t){t.forEach(function(t){var n=d(t[0],2)[1],r=Fn.Editor.start(c,n),o=Fn.Editor.end(c,n);Fn.Transforms.select(c,{anchor:r,focus:o}),p(e)})}),n&&Fn.Transforms.select(c,n)}else p(e)},Fn.Transforms.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===c){var r=gh.get(c);if(r&&r.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void h.setNodes(e,t,n):void r.forEach(function(r){r.forEach(function(r){var o=d(r[0],2)[1];h.setNodes(e,t,s(s({},n),{at:o}))})})}h.setNodes(e,t,n)},c}};Ms("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Ms("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});fo&&(Ur.fn.append=fo),Jr&&(Ur.fn.on=Jr),yo&&(Ur.fn.remove=yo),Zr&&(Ur.fn.val=Zr),Co&&(Ur.fn.click=Co),ro&&(Ur.fn.hide=ro);var Ig=new WeakMap;function Pg(e){return e.getMenuConfig("uploadImage")}function Rg(e,t){return u(this,void 0,void 0,function(){return l(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;kd(e,i,t.name,a),n("ok")}}})]})})}function _g(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=Ig.get(e);if(null!=t)return t;var n=Pg(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Tn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return kd(e,t,n,r)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;kd(e,r,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,p=void 0===f?"":f,h=l.href;kd(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),Ig.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function Lg(e,t){return u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g,v,m,y;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=Pg(e),o=r.customUpload,i=r.base64LimitSize,a=[],l.label=1;case 1:l.trys.push([1,10,11,16]),s=!0,u=p(n),l.label=2;case 2:return[4,u.next()];case 3:return c=l.sent(),(g=c.done)?[3,9]:(y=c.value,s=!1,f=(d=y).size,i&&f<=i?[4,Rg(e,d)]:[3,5]);case 4:return l.sent(),[3,8];case 5:return o?[4,o(d,function(t,n,r){return kd(e,t,n,r)},e)]:[3,7];case 6:return l.sent(),[3,8];case 7:a.push(d),l.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return h=l.sent(),v={error:h},[3,16];case 11:return l.trys.push([11,,14,15]),s||g||!(m=u.return)?[3,13]:[4,m.call(u)];case 12:l.sent(),l.label=13;case 13:return[3,15];case 14:if(v)throw v.error;return[7];case 15:return[7];case 16:return a.length>0?[4,_g(e,a)]:[3,18];case 17:l.sent(),l.label=18;case 18:return[2]}})})}var Mg=function(){function e(){this.title=Hs("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Nd(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return kd(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ur("body"),u=Ur('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;Lg(e,t)})}},e}();var jg={menus:[{key:"uploadImage",factory:function(){return new Mg},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Nd(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;if(o.length<=0)t(r);else Array.prototype.slice.call(o).some(function(e){return"image"===d(e.type.split("/"),1)[0]})?Lg(e,o):t(r)}},n}};function Hg(e){return e.length?e[0].tagName.toLowerCase():""}function zg(e,t,n,r,o){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={}),void 0===o&&(o=!1);var i=Ur(e),a=r.width,s=void 0===a?"":a,u=r.height,l=void 0===u?"":u,c=s?'data-w-e-style-width="'.concat(s,'"'):"",d=l?'data-w-e-style-height="'.concat(l,'"'):"";if(i.attr("width",t),i.attr("height",n),o)c&&i.attr("data-w-e-style-width",s),d&&i.attr("data-w-e-style-height",l),i.removeAttr("style");else{var f="";s&&(f+="width: ".concat(s,";")),l&&(f+="height: ".concat(l,";")),i.attr("style",f)}return i[0].outerHTML}Ms("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),Ms("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),fo&&(Ur.fn.append=fo),Jr&&(Ur.fn.on=Jr),Do&&(Ur.fn.focus=Do),qr&&(Ur.fn.attr=qr),Zr&&(Ur.fn.val=Zr),uo&&(Ur.fn.html=uo),ho&&(Ur.fn.parent=ho),Gr&&(Ur.fn.hasClass=Gr),bo&&(Ur.fn.empty=bo);var $g={type:"video",elemToHtml:function(e,t,n){var r=e,o=r.src,i=void 0===o?"":o,a=r.poster,s=void 0===a?"":a,u=r.width,l=void 0===u?"auto":u,c=r.height,d=void 0===c?"auto":c,f=r.style,p=void 0===f?{}:f,h=r.textAlign,g=void 0===h?"center":h,v=Rl(n),m=g||"center",y=' data-w-e-text-align="'.concat(m,'"'),b="class"===v?' class="'.concat(function(e){var t=e.trim().toLowerCase();return t&&["left","center","right","justify"].includes(t)?"w-e-video-align-".concat(t):"w-e-video-align-center"}(m),'"').concat(y):' style="text-align: '.concat(m,';"'),E='<div data-w-e-type="video" data-w-e-is-void'.concat(b,">\n");if(0===i.trim().indexOf("<iframe ")){E+=zg(i,l,d,p,"class"===v)}else{var w=p.width,C=void 0===w?"":w,D=p.height,A=void 0===D?"":D;if("class"===v){var S=C?' data-w-e-style-width="'.concat(C,'"'):"",x=A?' data-w-e-style-height="'.concat(A,'"'):"";E+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'"').concat(S).concat(x,'><source src="').concat(i,'" type="video/mp4"/></video>')}else{var T="";C&&(T+="width: ".concat(C,";")),A&&(T+="height: ".concat(A,";")),E+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'" style="').concat(T,'"><source src="').concat(i,'" type="video/mp4"/></video>')}}return E+="\n</div>"}};function Ug(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(wn())}function Vg(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=d(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function Wg(){return Ug("w-e-insert-video")}var Gg=function(){function e(){this.title=Hs("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Wg(),this.heightInputId=Wg(),this.buttonId=Wg()}return e.prototype.getSelectedVideoNode=function(e){return Ci.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=d(Zs(Hs("videoModule.width"),n,"auto"),2),a=i[0],u=Ur(i[1]),l=d(Zs(Hs("videoModule.height"),r,"auto"),2),c=l[0],f=Ur(l[1]),p=d(Js(o,Hs("videoModule.ok")),1)[0],h=this.getSelectedVideoNode(e);if(null==this.$content){var g=Ur("<div></div>");g.on("click","#".concat(o),function(t){t.preventDefault();var o=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)&&(l="".concat(parseInt(o,10),"px")),a(i)?c=i:u(i)&&(c="".concat(parseInt(i,10),"px"));var d=h.style,f=void 0===d?{}:d;e.restoreSelection();var p={style:s(s({},f),{width:l,height:c})};Fn.Transforms.setNodes(e,p,{match:function(e){return Ci.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=g}var v=this.$content;if(v.empty(),v.append(a),v.append(c),v.append(p),null==h)return v[0];var m=h.style,y=void 0===m?{}:m,b=y.width,E=void 0===b?"":b,w=y.height,C=void 0===w?"":w;return u.val(E),f.val(C),setTimeout(function(){u.focus()}),v[0]},e}();function qg(){return Ug("w-e-edit-video")}var Kg=function(){function e(){this.title=Hs("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=qg(),this.posterInputId=qg(),this.buttonId=qg()}return e.prototype.getSelectedVideoNode=function(e){return Ci.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(Zs(Hs("videoModule.videoSrc"),r,Hs("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(Zs(Hs("videoModule.videoPoster"),o,Hs("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Ur(c),v=Ur(h),m=d(Js(i,Hs("videoModule.ok")),1)[0];if(null==this.$content){var y=Ur("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i,a,s;return l(this,function(u){return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),a=Ug("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),Fn.Transforms.setNodes(e,s,{match:function(e){return Ci.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=y}var b=this.$content;b.empty(),b.append(s),b.append(p),b.append(m);var E=this.getSelectedVideoNode(e);if(null==E)return b[0];var w=E.src,C=void 0===w?"":w,D=E.poster,A=void 0===D?"":D;return g.val(C),v.val(A),setTimeout(function(){g.focus()}),b[0]},e}();function Yg(e,t){return u(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,c,d,f;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),l(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,n)]):[2];case 1:return"string"==typeof(c=l.sent())?(e.alert(c,"error"),[2]):null==c?[2]:[4,u(t)];case 2:return 0!==(d=l.sent()).trim().indexOf("<iframe ")&&(d=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(d)),f={type:"video",src:d,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then(function(){Ci.isSelectedEmptyParagraph(e)&&Fn.Transforms.removeNodes(e,{mode:"highest"}),Fn.Transforms.insertNodes(e,f,{mode:"highest"})}),a(f),[2]}})})}function Xg(){return Ug("w-e-insert-video")}var Zg=function(){function e(){this.title=Hs("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Xg(),this.posterInputId=Xg(),this.buttonId=Xg()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){return"pre"===Ci.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(Zs(Hs("videoModule.videoSrc"),r,Hs("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(Zs(Hs("videoModule.videoPoster"),o,Hs("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Ur(c),v=Ur(h),m=d(Js(i,Hs("videoModule.ok")),1)[0];if(null==this.$content){var y=Ur("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i;return l(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),[4,Yg(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=y}var b=this.$content;return b.empty(),b.append(s),b.append(p),b.append(m),g.val(""),v.val(""),setTimeout(function(){g.focus()}),b[0]},e}();function Jg(e){return e.getMenuConfig("uploadVideo")}var Qg=new WeakMap;function ev(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=Qg.get(e);if(null!=t)return t;var n=Jg(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Tn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return Yg(e,t,n)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;Yg(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),Qg.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var tv=function(){function e(){this.title=Hs("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return Yg(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ur("body"),c=Ur('<input type="file" '.concat(a," multiple/>"));c.hide(),s.append(c),c.click(),c.on("change",function(){var t=c[0].files;!function(e,t){u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=Jg(e).customUpload,l.label=1;case 1:l.trys.push([1,8,9,14]),i=!0,a=p(n),l.label=2;case 2:return[4,a.next()];case 3:return s=l.sent(),(d=s.done)?[3,7]:(g=s.value,i=!1,u=g,o?[4,o(u,function(t,n){return Yg(e,t,n)},e)]:[3,5]);case 4:return l.sent(),[3,6];case 5:r.push(u),l.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return c=l.sent(),f={error:c},[3,14];case 9:return l.trys.push([9,,12,13]),i||d||!(h=a.return)?[3,11]:[4,h.call(a)];case 10:l.sent(),l.label=11;case 11:return[3,13];case 12:if(f)throw f.error;return[7];case 13:return[7];case 14:return r.length>0?[4,ev(e,r)]:[3,16];case 15:l.sent(),l.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){return"pre"===Ci.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function nv(e,t,n,r,o,i){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}],textAlign:i}}function rv(e){var t=Vg(e.attr("style")||"")["text-align"];if(t)return t;var n=(e.attr("data-w-e-text-align")||"").trim();if(n)return n;for(var r=(e.attr("class")||"").trim().split(/\s+/).filter(Boolean),o=0;o<r.length;o+=1){var i=r[o];if(i.startsWith("w-e-video-align-")){var a=i.replace("w-e-video-align-","");if(a)return a}}return"center"}var ov={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ur(e),o="",i="",a="auto",s="auto",u={},l=r.find("iframe");if(l.length>0){a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=Vg(l.attr("style")||"");var c=l.attr("data-w-e-style-width")||"",d=l.attr("data-w-e-style-height")||"";return!u.width&&c&&(u.width=c),!u.height&&d&&(u.height=d),nv(o=l[0].outerHTML,i,a,s,u,rv(r))}var f=r.find("video");(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",i=f.attr("poster")||"",u=Vg(f.attr("style")||"");var p=f.attr("data-w-e-style-width")||"",h=f.attr("data-w-e-style-height")||"";return!u.width&&p&&(u.width=p),!u.height&&h&&(u.height=h),nv(o,i,a,s,u,rv(r))}};var iv={selector:"iframe,video,p",preParseHtml:function(e){var t=Ur(e),n=t;if("p"===Hg(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Ur(o))}}var a=Hg(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=Ur('<div data-w-e-type="video" data-w-e-is-void class="w-e-video-align-center" data-w-e-text-align="center"></div>');return s.append(n),s[0]}};var av={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,p=o.height,h=void 0===p?"auto":p,g=o.style,v=void 0===g?{}:g,m=o.textAlign,y=void 0===m?"center":m,b=Ci.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=pl("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:zg(a,f,h,v)})}else{var E=pl("video",{key:c,poster:u,controls:!0,style:v},pl("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(E.data.width=f),"auto"!==h&&(E.data.height=h),r=pl("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},E)}var w=qu("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return w}},sv={renderElems:[av],elemsToHtml:[$g],preParseHtml:[iv],parseElemsHtml:[ov],menus:[{key:"insertVideo",factory:function(){return new Zg},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new tv},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name," upload error"),t,n)}}},{key:"editVideoSize",factory:function(){return new Gg}},{key:"editVideoSrc",factory:function(){return new Kg}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=d(e,2),o=t[0],i=t[1];"video"===Ci.getNodeType(o)&&(Ci.isLastNode(r,o)&&Fn.Transforms.insertNodes(r,Ci.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},uv=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=s(s({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=s(s({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=s(s({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=s(s({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){tr(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,ml[n||""]=r},e.registerRenderStyle=function(e){!function(e){hl.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;ai[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){ri.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,$o.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;Vo[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){Uo.push(e)}(e)},e.registerModule=function(e){lv(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function lv(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return uv.registerMenu(e)}),n&&n.forEach(function(e){return uv.registerRenderElem(e)}),r&&uv.registerRenderStyle(r),o&&o.forEach(function(e){return uv.registerElemToHtml(e)}),i&&uv.registerStyleToHtml(i),a&&a.forEach(function(e){return uv.registerPreParseHtml(e)}),s&&s.forEach(function(e){return uv.registerParseElemHtml(e)}),u&&uv.registerParseStyleHtml(u),l&&uv.registerPlugin(l)}ap.forEach(function(e){return lv(e)}),lv(nh),lv(Fg),lv(sv),lv(jg),lv(Ap);var cv='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var dv={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","previewImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var fv={hoverbarKeys:s(s({},dv),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};uv.setEditorConfig(s(s({},fv),{decorate:Ep}));var pv={hoverbarKeys:dv};uv.setSimpleEditorConfig(s(s({},pv),{decorate:Ep}));var hv={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Hs("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Hs("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Hs("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Hs("editor.image"),iconSvg:cv,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Hs("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};uv.setToolbarConfig(hv);var gv={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Hs("editor.image"),iconSvg:cv,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};uv.setSimpleToolbarConfig(gv);e.Boot=uv,e.DomEditor=Ci,e.SlateEditor=Fn.Editor,e.SlateElement=Fn.Element,e.SlateNode=Fn.Node,e.SlatePath=Fn.Path,e.SlatePoint=Fn.Point,e.SlateRange=Fn.Range,e.SlateText=Fn.Text,e.SlateTransforms=Fn.Transforms,e.Toolbar=Il,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?uv.simpleEditorConfig:uv.editorConfig,d=s(s({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return Fl({selector:n,config:s(s(s({},c),u),{hoverbarKeys:d}),content:o,html:i,plugins:uv.plugins})},e.createToolbar=function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?uv.simpleToolbarConfig:uv.toolbarConfig;return Pl(n,{selector:t,config:s(s({},u),o)})},e.createUploader=Tn,e.default={},e.genModalButtonElems=Js,e.genModalInputElems=Zs,e.genModalTextareaElems=function(e,t,n){var r=Ur('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=Ur('<textarea type="text" id="'.concat(t,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]},e.getClassStylePolicy=_l,e.getTextStyleMode=Rl,e.i18nAddResources=Ms,e.i18nChangeLanguage=function(e){_s.changeLanguage(e)},e.i18nGetResources=function(e){return _s.getResourceBundle(e,Ls)},e.reportUnsupportedClassStyle=Ll,e.t=Hs,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
20
|
+
*/e.exports&&(e.exports=t),void 0!==h&&(h.Prism=t),t.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]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.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\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.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:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.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}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.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:t.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:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.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:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.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:t.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"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.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")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){s.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(n,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(up)),up.exports),cp=g(lp);!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var dp;dp||(dp=1,function(e){e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.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]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var fp;fp||(fp=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var pp;pp||(pp=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var hp;hp||(hp=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var gp;gp||(gp=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var vp;vp||(vp=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=S+"|"+A,N=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),O=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),B=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[B,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[B]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[N]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,F]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:L(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:L(_,R)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var mp;mp||(mp=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}),t}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var yp=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function bp(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+bp(t)},0)}var Ep=function(e){var t,n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Fn.Text.isText(e))return null;var t=Ci.getParentNode(null,e);if(t&&"code"===Ci.getNodeType(t)){var n=Ci.getParentNode(null,t);if(n&&"pre"===Ci.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,f=void 0===l?"":l;if(!f)return s;var p=function(e,t){if(!t)return[];var n=cp.languages[t];return n?cp.tokenize(e.text,n):[]}(i,f),h=0;try{for(var g=c(p),v=g.next();!v.done;v=g.next()){var m=v.value,y=h+bp(m);"string"!=typeof m&&s.push(((r={})[m.type]=!0,r.anchor={path:a,offset:h},r.focus={path:a,offset:y},r)),h=y}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return s};var wp={type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var Cp=function(){function e(){this.title=Hs("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(e){var r=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(e);return n.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),n},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!Fn.Element.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};Fn.Transforms.setNodes(e,n,{match:function(e){return Ci.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Ci.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Ci.getParentNode(e,t);return Fn.Element.isElement(n)?"pre"!==n.type?null:t:null},e}(),Dp={key:"codeSelectLang",factory:function(){return new Cp},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};qr&&(Ur.fn.attr=qr);var Ap={renderStyle:function(e,t){var n=e,r=t,o="";return yp.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token ".concat(o)),r},parseStyleHtml:function(e,t,n){var r=Ur(e);if(!Fn.Element.isElement(t))return t;if("code"!==Ci.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[Dp],elemsToHtml:[wp]};Ms("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list",lowerAlphaList:"Ordered list (a,b,c)"}}),Ms("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表",lowerAlphaList:"有序列表(a,b,c)"}});var Sp=new WeakMap;function xp(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o+=1){var i=n[o];Fn.Text.isText(i)&&(t=i)}return null==t?"":t.color||""}function Tp(e){var t=e.ordered,n=void 0!==t&&t,r=e.start;return n?"number"!=typeof r||Number.isNaN(r)?1:r:1}function Np(e){var t=e.orderType;return"a"===t||"A"===t||"i"===t||"I"===t?t:"1"}function Op(e,t){return e.ordered===t.ordered&&(!e.ordered||Np(e)===Np(t)&&Tp(e)===Tp(t))}function Bp(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=Ci.findPath(e,t);;){if(0===a.length||0===a[a.length-1])return null;a=Fn.Path.previous(a);var s=Fn.Editor.node(e,a);if(!s)return null;var u=d(s,1)[0],l=u.level,c=void 0===l?0:l;if(Ci.getNodeType(u)!==r)return null;if(c===i)return u}}var kp=new Set;function Fp(e){return(e||"").trim().replace(/\s+/g,"").toLowerCase()}var Ip=new Set(["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"].map(function(e){return Fp(e)}));function Pp(e){var t=Fp(e);return"w-e-list-color-".concat(function(e){var t,n,r=7;try{for(var o=c(e),i=o.next();!i.done;i=o.next())r=(31*r+(i.value.codePointAt(0)||0))%2147483647}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r.toString(36)}("color:".concat(t)))}function Rp(e,t){var n=Fp(t);return!!n&&(!!Ip.has(n)||!!function(e,t){for(var n,r=(null===(n=null==e?void 0:e.getConfig().styleClassTokens)||void 0===n?void 0:n.color)||[],o=Fp(t),i=0;i<r.length;i+=1)if(Fp(r[i])===o)return!0;return!1}(e,t))}var _p=[],Lp=null;function Mp(e){return e.ordered?"ol":"ul"}function jp(e,t,n){if("prev"===n&&0===t)return null;if("next"===n&&t===e.children.length-1)return null;var r="prev"===n?t-1:t+1,o=e.children[r];return Ci.checkNodeType(o,"list-item")?o:null}var Hp={type:"list-item",elemToHtml:function(e,t,n){var r="",o="",i=e,a=i.level,s=void 0===a?0:a,u=function(e){return e.ordered?"ol":"ul"}(i),l=function(e){var t=e.ordered;if(void 0===t||!t)return"<ul>";var n=[],r=Np(e),o=Tp(e);return"1"!==r&&n.push('type="'.concat(r,'"')),1!==o&&n.push('start="'.concat(o,'"')),0===n.length?"<ol>":"<ol ".concat(n.join(" "),">")}(i),c=Sp.get(e),d=c&&Array.isArray(c.children)?c:null,f=n&&Array.isArray(n.children)?n:null,p=function(t){return!!t&&t.children.indexOf(e)>=0},h=f||d;p(f)?h=f:p(d)&&(h=d);var g=n||c;if(null==h)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};Lp!==h&&(_p.length=0,Lp=h);var v=h.children.indexOf(e);if(v<0)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};var m=jp(h,v,"prev"),y=jp(h,v,"next"),b=!!y&&(y.level||0)>s;if(m){var E=m.level||0;if(s>E)for(A=0;A<s-E;A+=1)r+=l,_p.push(u);else if(s===E){if(!Op(m,i)){var w=_p.pop()||Mp(m);r+="</".concat(w,">").concat(l),_p.push(u)}}else{for(var C=E-s;C>0;){w=_p.pop()||Mp(m);r+="</".concat(w,"></li>"),C-=1}var D=function(e,t,n){for(var r=t-1;r>=0;r-=1){var o=e.children[r];if(Ci.checkNodeType(o,"list-item")&&(o.level||0)===n)return o}return null}(h,v,s);if(D&&!Op(D,i)){w=_p.pop()||Mp(D);r+="</".concat(w,">").concat(l),_p.push(u)}}}else{_p.length=0;for(var A=0;A<s+1;A+=1)r+=l,_p.push(u)}var S=xp(e),x=Rl(g),T="",N="",O="";if(S)if("class"===x){O=' data-w-e-color="'.concat(S,'"');var B=function(e,t){if(Rp(e,t))return"class";var n=_l(e),r="preserve-data";"fallback-inline"===n&&(r="inline"),"strict"===n&&(r="throw");var o="[wangeditor] Unsupported list color class token color=".concat(t,". policy=").concat(n),i="".concat(t,"|").concat(r);if(kp.has(i)||(kp.add(i),Ll(e,{type:"color",value:t,scene:"toHtml",fallback:r,message:o})),"throw"===r)throw new Error(o);return"inline"===r?"inline":"preserve-data"}(g,S);"class"===B?N=' class="'.concat(Pp(S),'"'):"inline"===B&&(T=' style="color:'.concat(S,'"'))}else T=' style="color:'.concat(S,'"');var k="<li".concat(N).concat(O).concat(T,">").concat(t).concat(b?"":"</li>");if(!y){for(;_p.length>0;){var F=_p.pop();if(!F)break;o+="</".concat(F,">"),_p.length>0&&(o+="</li>")}Lp=null}return{html:k,prefix:r,suffix:o}}},zp='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',$p=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Ci.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t,r=n.ordered,o=void 0!==r&&r;return o===this.ordered&&(!o||Np(n)===(this.orderType||"1"))},e.prototype.isDisabled=function(e){return null==e.selection||!!Ci.getSelectedElems(e).some(function(t){if(Fn.Editor.isVoid(e,t)&&Fn.Editor.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},e.prototype.exec=function(e,t){this.isActive(e)?Fn.Transforms.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0}):Fn.Transforms.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0,start:void 0,orderType:this.ordered?this.orderType:void 0})},e}(),Up=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!1,t.title=Hs("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return a(t,e),t}($p),Vp=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.orderType="a",t.title=Hs("listModule.lowerAlphaList"),t.iconSvg=zp,t}return a(t,e),t}($p),Wp=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.title=Hs("listModule.orderedList"),t.iconSvg=zp,t}return a(t,e),t}($p),Gp={key:"bulletedList",factory:function(){return new Up}},qp={key:"numberedList",factory:function(){return new Wp}},Kp={key:"numberedListLowerAlpha",factory:function(){return new Vp}};function Yp(e){return e.length?e[0].tagName.toLowerCase():""}fo&&(Ur.fn.append=fo),qr&&(Ur.fn.attr=qr),ho&&(Ur.fn.parent=ho);var Xp={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ur(e),o=[],i=[];t.forEach(function(e){Fn.Text.isText(e)||n.isInline(e)?o.push(e):Ci.checkNodeType(e,"list-item")&&i.push(e)}),0===o.length&&(i.length>0?o.push({text:""}):o.push({text:r.text().replace(/\s+/gm," ")}));var a=function(e){return"ol"===Yp(e.parent())}(r),u=function(e){for(var t=0,n=e.parent();n.length>0;){var r=Yp(n);"ul"!==r&&"ol"!==r||(t+=1),n=n.parent()}return Math.max(0,t-1)}(r),l=function(e){var t=e.parent();if("ol"===Yp(t)){var n=(t.attr("start")||"").trim();if(""!==n){var r=Number.parseInt(n,10);if(!Number.isNaN(r))return r}}}(r),c=function(e){var t=e.parent();if("ol"===Yp(t)){var n=(t.attr("type")||"").trim();return"1"===n||"a"===n||"A"===n||"i"===n||"I"===n?n:void 0}}(r),p=s(s(s({type:"list-item",ordered:a,level:u},void 0!==l?{start:l}:{}),void 0!==c?{orderType:c}:{}),{children:o});return 0===i.length?p:f([p],d(i),!1)}};var Zp={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function Jp(e){return Fn.Editor.nodes(e,{at:e.selection||void 0,match:function(t){return 1===Ci.findPath(e,t).length}})}function Qp(e,t){if(void 0===t&&(t=!1),e<=0)return String(e);for(var n=e,r="";n>0;){var o=(t?65:97)+(n-1)%26;r=String.fromCharCode(o)+r,n=Math.floor((n-1)/26)}return r}function eh(e,t){var n,r;if(void 0===t&&(t=!1),e<=0||e>=4e3)return String(e);var o=e,i="";try{for(var a=c([[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]]),s=a.next();!s.done;s=a.next())for(var u=d(s.value,2),l=u[0],f=u[1];o>=l;)i+=f,o-=l}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t?i:i.toLowerCase()}var th={type:"list-item",renderElem:function(e,t,n){Sp.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,s=void 0!==a&&a,u={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"flex-start"},l="";if(s){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,s=void 0!==a&&a,u=Tp(n),l=t,c=Ci.findPath(e,l);if(0===c[0])return u;for(;c[0]>0;){var d=Fn.Path.previous(c),f=Fn.Editor.node(e,d);if(null==f)break;var p=f[0],h=p.level,g=void 0===h?0:h,v=p.type,m=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(m!==s||!Op(p,n))break;u+=1}l=p,c=d}return u}(n,e);l=function(e,t){switch(t){case"a":return"".concat(Qp(e),".");case"A":return"".concat(Qp(e,!0),".");case"i":return"".concat(eh(e),".");case"I":return"".concat(eh(e,!0),".");default:return"".concat(e,".")}}(c,Np(e))}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return pl("div",{style:u},pl("span",{contentEditable:!1,style:{marginRight:"0.5em",color:xp(e)},"data-w-e-reserve":!0},l),pl("span",{style:{flex:"1",wordBreak:"break-word"}},t))}},nh={renderElems:[th],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var t=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"list-item")},universal:!0}),1),n=t[0];return n?""!==n[0].children[0].text?o():void Fn.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0}):o()},i.deleteBackward=function(n){var r=i.selection;if(null!=r)if(Fn.Range.isExpanded(r))t(n);else{var o=Ci.getSelectedNodeByType(i,"list-item");if(null!=o)if(0!==r.focus.offset)t(n);else{var a=o.level,s=void 0===a?0:a;if(s>0){var u=Bp(e,o,s-1);if(u){var l=u.ordered;Fn.Transforms.setNodes(i,{level:s-1,ordered:l,start:l?u.start:void 0,orderType:l?u.orderType:void 0})}else Fn.Transforms.setNodes(i,{level:s-1})}else Fn.Transforms.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0})}else t(n)}else t(n)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(Fn.Range.isCollapsed(a)){var s=Ci.getSelectedNodeByType(i,"list-item");if(null==s)return void n();if(0===a.focus.offset){var u=s.level,l=void 0===u?0:u;return void Fn.Transforms.setNodes(i,{level:l+1})}}if(Fn.Range.isExpanded(a)){var f=0,p=!1;try{for(var h=c(Jp(i)),g=h.next();!g.done;g=h.next()){var v=d(g.value,1)[0];"list-item"===Ci.getNodeType(v)?f+=1:p=!0}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}if(p||f<=1)return void n();try{for(var m=c(Jp(i)),y=m.next();!y.done;y=m.next()){var b=d(y.value,2),E=(v=b[0],b[1]),w=v.level;l=void 0===w?0:w;Fn.Transforms.setNodes(i,{level:l+1},{at:E})}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=m.return)&&o.call(m)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=d(e,2),n=t[0],o=t[1],a=Ci.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Fn.Transforms.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[Gp,qp,Kp],elemsToHtml:[Hp],parseElemsHtml:[Zp,Xp]};Ms("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Ms("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var rh={type:"table",elemToHtml:function(e,t,n){var r=e,o=r.columnWidths,i=r.caption,a=r.height,s=void 0===a?"auto":a,u=null==o?void 0:o.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=i?"<caption>".concat(i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),"</caption>"):"",c=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"",d=function(e){var t=e.width,n=void 0===t?"auto":t,r=e.columnWidths;if(n&&"auto"!==n)return n;var o=(void 0===r?[]:r).reduce(function(e,t){return Number.isFinite(t)?t<=0?e:e+t:e},0);return o>0?"".concat(o,"px"):"auto"}(r);if("class"===Rl(n)){var f=d?' width="'.concat(d,'"'):"",p=String(s||"").trim(),h=p&&"auto"!==p?' height="'.concat(p,'"'):"",g=p?' data-w-e-table-height="'.concat(p,'"'):"";return'<table class="w-e-table-layout-fixed"'.concat(f).concat(h).concat(g,">").concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}return'<table style="width: '.concat(d,";table-layout: fixed;height:").concat(s,'">').concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}},oh={type:"table-row",elemToHtml:function(e,t,n){var r=e.height;if("class"===Rl(n))return r?'<tr height="'.concat(r,'" data-w-e-row-height="').concat(r,'px">').concat(t,"</tr>"):"<tr>".concat(t,"</tr>");var o=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(o,">").concat(t,"</tr>")}},ih={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,s=n.isHeader,u=void 0!==s&&s,l=n.width,c=void 0===l?"auto":l,d=n.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},ah='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',sh={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function uh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=sh,o=t.map(function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!Fn.Editor.isEditor(e)&&Fn.Element.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function lh(e,t){for(var n=d(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=d(Fn.Node.common(e,r,o),2),u=s[0],l=s[1];return!!uh.apply(void 0,f([e],d(i),!1))(u,l)||!!Fn.Editor.above(e,{match:uh.apply(void 0,f([e],d(i),!1)),at:l})}function ch(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=c(function(e,t){var n,r,o,i,a,s,u,p,h,g,v,m,y,b,E,w,C,D;return void 0===t&&(t={}),l(this,function(l){switch(l.label){case 0:if(n=d(Fn.Editor.nodes(e,{match:uh(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=d(r,2),i=o[1],l.label=1;case 1:l.trys.push([1,6,7,8]),a=c(Fn.Editor.nodes(e,{match:uh(e,"table"),at:i})),s=a.next(),l.label=2;case 2:if(s.done)return[3,5];u=d(s.value,2),p=u[1],h=[];try{for(C=void 0,g=c(Fn.Editor.nodes(e,{match:uh(e,"tr"),at:p})),v=g.next();!v.done;v=g.next())m=d(v.value,2),y=m[1],h.push(f([],d(Fn.Editor.nodes(e,{match:uh(e,"th","td"),at:y})),!1))}catch(e){C={error:e}}finally{try{v&&!v.done&&(D=g.return)&&D.call(g)}finally{if(C)throw C.error}}return[4,h];case 3:l.sent(),l.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return b=l.sent(),E={error:b},[3,8];case 7:try{s&&!s.done&&(w=a.return)&&w.call(a)}finally{if(E)throw E.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],p=0,h=0;h<s.length;h+=1)s[h]&&(p=Math.max(p,s[h].length));for(h=0;h<s.length;h+=1)if(u[h]||(u[h]=[]),s[h])for(var g=0;g<s[h].length;g+=1)if(s[h][g]&&s[h][g][0]){for(var v=d(s[h][g],1)[0],m=v.rowSpan,y=void 0===m?1:m,b=v.colSpan,E=void 0===b?1:b,w=g;u[h]&&u[h][w];)w+=1;for(var C=0;C<E;C+=1)for(var D=0;D<y;D+=1){var A=h+D,S=w+C;u[A]||(u[A]=[]),u[A][S]||(u[A][S]=[s[h][g],{rtl:C+1,ltr:E-C,ttb:D+1,btt:y-D}])}}o.push.apply(o,f([],d(u),!1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var dh=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function fh(e){return e.length?e[0].tagName.toLowerCase():""}function ph(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}function hh(e){return 0===e.length?"":e[0].outerHTML}fo&&Ur.fn&&(Ur.fn.append=fo),Jr&&Ur.fn&&(Ur.fn.on=Jr),Do&&Ur.fn&&(Ur.fn.focus=Do),qr&&Ur.fn&&(Ur.fn.attr=qr),Zr&&Ur.fn&&(Ur.fn.val=Zr),uo&&Ur.fn&&(Ur.fn.html=uo),Xr&&Ur.fn&&(Ur.fn.dataset=Xr),Vr&&Ur.fn&&(Ur.fn.addClass=Vr),Wr&&Ur.fn&&(Ur.fn.removeClass=Wr),mo&&Ur.fn&&(Ur.fn.children=mo),ao&&Ur.fn&&(Ur.fn.each=ao),vo&&Ur.fn&&(Ur.fn.find=vo),Yr&&Ur.fn&&(Ur.fn.data=Yr),ro&&Ur.fn&&(Ur.fn.hide=ro),oo&&Ur.fn&&(Ur.fn.show=oo);var gh=new WeakMap,vh=new WeakMap,mh=function(){function e(){this.title=Hs("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.menu="table",this.borderStyle=[{value:"none",label:Hs("tableModule.borderStyle.none")},{value:"solid",label:Hs("tableModule.borderStyle.solid")},{value:"dotted",label:Hs("tableModule.borderStyle.dotted")},{value:"dashed",label:Hs("tableModule.borderStyle.dashed")},{value:"double",label:Hs("tableModule.borderStyle.double")},{value:"groove",label:Hs("tableModule.borderStyle.groove")},{value:"ridge",label:Hs("tableModule.borderStyle.ridge")},{value:"inset",label:Hs("tableModule.borderStyle.inset")},{value:"outset",label:Hs("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Hs("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:Hs("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:Hs("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:Hs("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}]}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==Ci.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return d(Fn.Editor.nodes(e,{match:uh(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.getModalContentNode(e);if(!n)return null;var r=d(n,2),o=r[0],i=r[1],a=Ur('<div>\n <label class="babel-container">\n <span>'.concat(Hs("tableModule.modal.border"),'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n ').concat(this.borderStyle.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="').concat(Hs("tableModule.modal.borderWidth"),'">\n </span>\n </label>\n <div class="babel-container">\n <span>').concat(Hs("tableModule.modal.bgColor"),'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>').concat(Hs("tableModule.modal.align"),'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n ').concat(this.textAlignOptions.map(function(e){return'<option value="'.concat(e.value,'">').concat(e.label,"</option>")}).join(""),'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">').concat(Hs("tableModule.modal.ok"),"</button>\n </div>\n </div>"));a.find("[name]").each(function(e){Ur(e).val(o[Ur(e).attr("name")])});var s=function(e,t){t?Ur(".color-group-block",e).css("background-color",t).empty():Ur(".color-group-block",e).css("background-color","").html(ah)};return a.find(".color-group").each(function(n){var r=Ur('[type="hidden"]',n).val()||"";s(n,r);var o=Ur(n);o.on("click",function(){a.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=t.getPanelContentElem(e,{mark:o.data("mark"),selectedColor:r,callback:function(e){Ur('[type="hidden"]',n).val(e||""),s(n,e),i.hide()}}),o.append(i),o.data("panel",i))})}),a.find("button").on("click",function(){var n=Array.from(a.find("[name]")).reduce(function(e,t){return e[Ur(t).attr("name")]=Ur(t).val(),e},{}),r=gh.get(e);"cell"===t.menu&&(null==r?void 0:r.length)?r.forEach(function(t){t.forEach(function(t){Fn.Transforms.setNodes(e,n,{at:t[0][1]})})}):Fn.Transforms.setNodes(e,n,{at:i}),setTimeout(function(){e.focus()})}),a[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=Ur('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=Ur(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=Ur('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var n=Ur('<li data-value="'.concat(e,'"></li>'));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=Hs("tableModule.color.default")),"bgColor"===n&&(s=Hs("tableModule.color.clear"));var u=Ur('\n <li data-value="" class="clear">\n '.concat(ah,"\n ").concat(s,"\n </li>\n "));i.prepend(u);var l=Ur('<div class="w-e-drop-panel"></div>');return l.append(i),l},e}(),yh=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.title=Hs("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=300,t.menu="cell",t}return a(t,e),t.prototype.getModalContentNode=function(e){return d(Fn.Editor.nodes(e,{match:uh(e,"td")}),1)[0]},t}(mh),bh=function(){function e(){this.title=Hs("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Ci.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)Fn.Transforms.removeNodes(e,{mode:"highest"});else if(null!=Ci.getParentNode(e,a)){var u=ch(e),l=0;e:for(var p=0;p<u.length;p+=1)for(var h=0;h<u[p].length;h+=1){var g=d(u[p][h],1),v=d(g[0],2)[1];if(Fn.Path.equals(i,v)){l=h;break e}}Fn.Editor.withoutNormalizing(e,function(){for(var t,n,r=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=d(u[i][l],2),s=d(a[0],2)[1],p=a[1],h=p.rtl,g=p.ltr,v=p.ttb,m=p.btt,y=s.join(",");if(h>1||g>1||v>1||m>1){var b=i-(v-1),E=l-(h-1);if(b<0||b>=u.length||!u[b]||!u[b][E])continue;var w=d(u[b][E],1),C=d(w[0],2),D=C[0],A=C[1],S=A.join(",");if(!o.has(S)){o.add(S);var x=D.rowSpan,T=void 0===x?1:x,N=D.colSpan,O=void 0===N?1:N,B=Math.max(O-1,1);Fn.Transforms.setNodes(e,{rowSpan:T,colSpan:B},{at:A})}}else r.add(y)}var k=Array.from(r);k.sort(function(e,t){var n=e.split(",").map(Number),r=t.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var F=c(k),I=F.next();!I.done;I=F.next()){var P=I.value.split(",").map(Number);try{Fn.Editor.hasPath(e,P)&&Fn.Transforms.removeNodes(e,{at:P})}catch(e){console.warn("删除单元格失败:",P,e)}}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=F.return)&&n.call(F)}finally{if(t)throw t.error}}var R=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table")},universal:!0}),1),_=R[0];if(_){var L=d(_,2),M=L[0],j=L[1],H=M.columnWidths,z=f([],d(void 0===H?[]:H),!1);z.splice(l,1),Fn.Transforms.setNodes(e,{columnWidths:z},{at:j})}})}}},e}(),Eh=function(){function e(){this.title=Hs("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-row")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Ci.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)Fn.Transforms.removeNodes(e,{mode:"highest"});else{var u=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),l=d(u[0],2)[1],p=ch(e),h=0;e:for(var g=0;g<p.length;g+=1)for(var v=0;v<p[g].length;v+=1){var m=d(p[g][v],1),y=d(m[0],2)[1];if(Fn.Path.equals(l,y)){h=g;break e}}Fn.Editor.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<p[h].length;o+=1){var a=d(p[h][o],2),u=d(a[0],1)[0].hidden,l=a[1],g=l.ttb,v=l.btt,m=l.rtl;if(g>1||v>1){var y=h-(g-1);if(y<0||y>=p.length||!p[y]||!p[y][o])continue;var b=d(p[y][o],1),E=d(b[0],2),w=E[0],C=E[1],D=w,A=D.rowSpan,S=void 0===A?1:A,x=D.colSpan,T=void 0===x?1:x;if(u)Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C});else if(1===g&&1===m){if(h+1<p.length&&S>1){var N={type:"table-cell",rowSpan:S-1,colSpan:T,hidden:!1,children:D.children.map(function(e){return s({},e)})};D.isHeader&&(N.isHeader=D.isHeader),D.width&&(N.width=D.width),D.backgroundColor&&(N.backgroundColor=D.backgroundColor),D.borderWidth&&(N.borderWidth=D.borderWidth),D.borderStyle&&(N.borderStyle=D.borderStyle),D.borderColor&&(N.borderColor=D.borderColor),D.textAlign&&(N.textAlign=D.textAlign),r.push({cell:N,columnIndex:o})}else Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C})}else Fn.Transforms.setNodes(e,{rowSpan:Math.max(S-1,1),colSpan:T},{at:C})}}if(Fn.Transforms.removeNodes(e,{at:i}),r.length>0){var O=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var B=c(r),k=B.next();!k.done;k=B.next()){var F=k.value,I=F.cell,P=F.columnIndex;try{var R=f(f([],d(O),!1),[P],!1);Fn.Transforms.insertNodes(e,I,{at:R})}catch(t){try{var _=d(Fn.Editor.node(e,O),1)[0].children.length,L=f(f([],d(O),!1),[_],!1);Fn.Transforms.insertNodes(e,I,{at:L})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{k&&!k.done&&(n=B.return)&&n.call(B)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),wh=function(){function e(){this.title=Hs("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Ci.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Fn.Transforms.removeNodes(e,{mode:"highest"})},e}(),Ch=function(){function e(){this.title=Hs("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return!1},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)&&Ci.getSelectedNodeByType(e,"table")){Fn.Transforms.setNodes(e,{width:"100%"},{mode:"highest"})}},e}();function Dh(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Ah(e){return Dh(e).every(function(e){return!!e.isHeader})}var Sh=function(){function e(){this.title=Hs("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!Fn.Range.isCollapsed(t))return!0;var n=Ci.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=d(o,2)[1],a=ch(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=d(a[u][l],1),f=d(c[0],2)[1];if(Fn.Path.equals(i,f)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var p=n.columnWidths,h=(void 0===p?[]:p)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2),i=o[0],a=o[1],s=Ci.getParentNode(e,i);if(null!=s){var u=Ci.getParentNode(e,s);if(null!=u){for(var l=ch(e),c=-1,p=0;p<l.length;p+=1){for(var h=0;h<l[p].length;h+=1){var g=d(l[p][h],1),v=d(g[0],2)[1];if(Fn.Path.equals(a,v)){c=h;break}}if(-1!==c)break}if(-1!==c){var m=i.colSpan||1,y=(e.getMenuConfig("insertTableCol")||{}).insertPosition,b="after"===(void 0===y?"before":y)?"after":"before",E=(null===(n=l[0])||void 0===n?void 0:n.length)||0,w="after"===b?Math.min(c+m,E):c,C=w<E?w:-1;Fn.Editor.withoutNormalizing(e,function(){for(var t=new Set,n=new Set,r=0;r<l.length;r+=1)if(!(C<0)&&l[r]&&l[r][C]){var o=d(l[r][C],2);d(o[0],1);var i=o[1],a=i.rtl,s=i.ltr,p=i.ttb,h=i.btt;if(a>1||s>1||p>1||h>1){var g=r-(p-1),v=C-(a-1);if(g<0||g>=l.length||!l[g]||!l[g][v])continue;var m=d(l[g][v],1),y=d(m[0],2),E=y[0],D=y[1],A=D.join(",");if(t.has(A))n.add(r);else{t.add(A);var S=E.rowSpan,x=void 0===S?1:S,T=E.colSpan,N=(void 0===T?1:T)+1;E.hidden||Fn.Transforms.setNodes(e,{colSpan:N},{at:D});for(var O=0;O<x;O+=1)n.add(g+O)}}}for(r=0;r<l.length;r+=1)if(!n.has(r)){var B=l[r];if(B&&0!==B.length){var k={type:"table-cell",children:[{text:""}]};0===r&&Ah(u)&&(k.isHeader=!0);var F=void 0;if(w<B.length){var I=d(B[w],1);F=d(I[0],2)[1]}else{var P=d(B[B.length-1],1),R=d(P[0],2)[1];F=Fn.Path.next(R)}Fn.Transforms.insertNodes(e,k,{at:F})}}var _=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table")},universal:!0}),1),L=_[0];if(L){var M=d(L,2),j=M[0],H=M[1],z=j.columnWidths,$=void 0===z?[]:z,U=f([],d($),!1),V=e.getMenuConfig("insertTable").minWidth,W=void 0===V?60:V,G=$[c]||parseInt(W.toString(),10)||60,q=Math.floor(G/2),K=G-q;"after"===b?(U[c]=K,U.splice(c+1,0,q)):(U.splice(c,0,q),U[c+1]=K),Fn.Transforms.setNodes(e,{columnWidths:U},{at:H})}})}}}}},e}(),xh=function(){function e(){this.title=Hs("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2)[1],i=ch(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=d(i[s][u],1),c=d(l[0],2)[1];if(Fn.Path.equals(o,c)){a=s;break e}}var f=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==f&&Fn.Editor.withoutNormalizing(e,function(){for(var t=a+1,n=t>=0&&t<i.length,r=[],s=0;n&&s<i[a].length;s+=1){var u=d(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var p=a-(l-1);if(p<0||p>=i.length||!i[p]||!i[p][s])continue;var h=d(i[p][s],1),g=d(h[0],2),v=g[0],m=g[1],y=v.rowSpan||1;r.push(s),v.hidden||Fn.Transforms.setNodes(e,{rowSpan:y+1},{at:m})}}for(var b=(e.getMenuConfig("insertTable")||{}).minRowHeight,E={type:"table-row",children:[],height:parseInt((void 0===b?30:b).toString(),10)||30},w=0;w<f;w+=1)if(!r.includes(w)){E.children.push({type:"table-cell",children:[{text:""}]})}var C=Fn.Path.parent(o),D=Fn.Path.next(C);Fn.Transforms.insertNodes(e,E,{at:D})})}},e}();var Th=function(){function e(){this.title=Hs("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){var n=Ci.getNodeType(t);return"pre"===n||("table"===n||("list-item"===n||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Ur('<div class="w-e-panel-content-table"></div>'),r=Ur("<span>0 × 0</span>"),o=Ur("<table></table>"),i=0;i<10;i+=1){for(var a=Ur("<tr></tr>"),s=0;s<10;s+=1){var u=Ur("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=Ur(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){Ur(e).children().each(function(e){var t=Ur(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ur(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){Ci.isSelectedEmptyParagraph(e)&&Fn.Transforms.removeNodes(e,{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(n).fill(parseInt(s,10)||60),p=0;p<t;p+=1){for(var h=[],g=0;g<n;g+=1){var v={type:"table-cell",children:[{text:""}]};0===p&&(v.isHeader=null===(r=null==d?void 0:d.selected)||void 0===r||r),h.push(v)}o.push({type:"table-row",children:h,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,r,o);Fn.Transforms.insertNodes(e,i,{mode:"highest"})}},e}(),Nh={isInTable:function(e,t){return void 0===t&&(t={}),!!d(Fn.Editor.nodes(e,{match:uh(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return l(this,function(l){switch(l.label){case 0:t=gh.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=d(t[n][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&r.push(a),o+=u-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(e){vh.delete(e),gh.delete(e)},isSelected:function(e,t){var n=vh.get(e);return!!n&&n.has(t)},hasSelected:function(e){return gh.has(e)}},Oh=function(){function e(){this.title=Hs("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),Nh.unselect(e))},e.prototype.canMerge=function(e){var t=gh.get(e);if(!t||!t.length)return!1;var n=d(t[t.length-1][t[t.length-1].length-1],1),r=d(n[0],2)[1],o=d(t[0][0],1);return!!lh(e,[d(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=gh.get(e);if(t&&t.length){var n=d(t[0][0],1),r=d(n[0],2)[1],o=d(Fn.Node.children(e,r,{reverse:!0}),1),i=d(o[0],2)[1];Fn.Editor.withoutNormalizing(e,function(){for(var n,o,a,s,u,l,f=new Map,p=[],h=1/0,g=-1/0,v=1/0,m=-1/0,y=0;y<t.length;y+=1)for(var b=0;b<t[y].length;b+=1){var E=d(t[y][b],2),w=d(E[0],2),C=w[0],D=w[1],A=E[1].ttb,S=D.join(",");if(1===A&&!f.has(S)){f.set(S,{path:D,x:y,y:b,element:C});var x=C.rowSpan,T=void 0===x?1:x,N=C.colSpan,O=y,B=y+T-1,k=b,F=b+(void 0===N?1:N)-1;h=Math.min(h,O),g=Math.max(g,B),v=Math.min(v,k),m=Math.max(m,F)}}var I=g-h+1,P=m-v+1;try{for(var R=c(f),_=R.next();!_.done;_=R.next()){D=d(_.value,2)[1].path;Fn.Path.equals(r,D)||p.push(D)}}catch(e){n={error:e}}finally{try{_&&!_.done&&(o=R.return)&&o.call(R)}finally{if(n)throw n.error}}p.sort(function(e,t){for(var n=0;n<Math.min(e.length,t.length);n+=1)if(e[n]!==t[n])return t[n]-e[n];return t.length-e.length});try{for(var L=c(p),M=L.next();!M.done;M=L.next()){D=M.value;try{if(!Fn.Editor.hasPath(e,D))continue;try{for(var j=(u=void 0,c(Fn.Node.children(e,D,{reverse:!0}))),H=j.next();!H.done;H=j.next()){var z=d(H.value,2)[1];Fn.Transforms.moveNodes(e,{to:Fn.Path.next(i),at:z})}}catch(e){u={error:e}}finally{try{H&&!H.done&&(l=j.return)&&l.call(j)}finally{if(u)throw u.error}}Fn.Transforms.removeNodes(e,{at:D})}catch(e){}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=L.return)&&s.call(L)}finally{if(a)throw a.error}}Fn.Transforms.setNodes(e,{rowSpan:I,colSpan:P},{at:r})})}}},e}(),Bh=function(){function e(){this.title=Hs("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=d(n,1)[0],o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=d(Fn.Editor.nodes(e,{match:uh(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=Ah(d(r,1)[0]),a=d(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,p=s.colSpan,h=void 0===p?1:p;1===c&&1===h||Fn.Editor.withoutNormalizing(e,function(){Fn.Transforms.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<h;t+=1){var n={type:"table-cell",children:[{text:""}]};0===u[u.length-2]&&i&&(n.isHeader=!0);var r=u.slice(0,-1),o=u[u.length-1]+t,a=f(f([],d(r),!1),[o],!1);try{Fn.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var s=d(Fn.Editor.node(e,r),1)[0].children.length,l=f(f([],d(r),!1),[s],!1);Fn.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var p=1;p<c;p+=1){var g=u[u.length-2]+p,v=f(f([],d(u.slice(0,-2)),!1),[g],!1);try{var m=d(Fn.Editor.node(e,v),1)[0];if(!m){console.warn("目标行 ".concat(g," 不存在"));continue}for(t=0;t<h;t+=1){n={type:"table-cell",children:[{text:""}]},o=u[u.length-1]+t,a=f(f([],d(v),!1),[o],!1);try{var y=m.children.length;if(o>=y){var b=f(f([],d(v),!1),[y],!1);Fn.Transforms.insertNodes(e,n,{at:b})}else Fn.Transforms.insertNodes(e,n,{at:a})}catch(t){try{var E=m.children.length;l=f(f([],d(v),!1),[E],!1);Fn.Transforms.insertNodes(e,n,{at:l})}catch(e){console.warn("插入单元格到第".concat(p,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(p,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),kh=function(){function e(){this.title=Hs("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Ci.getSelectedNodeByType(e,"table");return null!=t&&Ah(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||null==Ci.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Ci.getSelectedNodeByType(e,"table");if(null!=r)Dh(r).forEach(function(t){return Fn.Transforms.setNodes(e,{isHeader:n},{at:Ci.findPath(e,t)})})}},e}(),Fh={key:"insertTable",factory:function(){return new Th}},Ih={key:"deleteTable",factory:function(){return new wh}},Ph={key:"insertTableRow",factory:function(){return new xh}},Rh={key:"deleteTableRow",factory:function(){return new Eh}},_h={key:"insertTableCol",factory:function(){return new Sh}},Lh={key:"deleteTableCol",factory:function(){return new bh}},Mh={key:"tableHeader",factory:function(){return new kh}},jh={key:"tableFullWidth",factory:function(){return new Ch}},Hh={key:"mergeTableCell",factory:function(){return new Oh}},zh={key:"splitTableCell",factory:function(){return new Bh}},$h={key:"setTableProperty",factory:function(){return new mh}},Uh={key:"setTableCellProperty",factory:function(){return new yh}};function Vh(e,t){void 0===t&&(t=0);var n=parseInt(e||"",10);return Number.isNaN(n)?t:n}var Wh={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ur(e),o=r.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return"paragraph"===Ci.getNodeType(e)||(!!Fn.Text.isText(e)||!!n.isInline(e))})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1",10),a=parseInt(r.attr("rowSpan")||"1",10),s="none"===ph(r,"display")&&0===o.length,u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===fh(r),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var Gh={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r=Ur(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===Ci.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:Vh(ph(r,"height")||r.attr("data-w-e-row-height")||r.attr("height"))||void 0,children:o}}};var qh,Kh={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Ur(e),a=(i.find("caption").text()||"").replace(/\s+/gm," ").trim()||void 0,s="auto",u=ph(i,"width"),l=i.attr("width")||"",c=i.hasClass("w-e-table-layout-fixed")||!!i.attr("data-w-e-table-height");"100%"===u&&(s="100%"),"100%"===i.attr("width")&&(s="100%"),c&&l&&"auto"!==l&&"100%"!==l&&(s=l);var d={type:"table",width:s,caption:a,height:Vh(ph(i,"height")||i.attr("data-w-e-table-height")||i.attr("height")),children:t.filter(function(e){return"table-row"===Ci.getNodeType(e)})},f=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],p=function(e){if(!e||0===e.length)return[];var t=[];return Array.from(e).forEach(function(e){var n=parseInt(e.getAttribute("span")||"1",10),r=parseInt(e.getAttribute("width")||ph(Ur(e),"width")||"90",10);if(!Number.isNaN(r))for(var o=0;o<n;o+=1)t.push(r)}),t}((null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null);if(p.length>0)d.columnWidths=p;else if(f.length>0){var h=[];Array.from(f).forEach(function(e){var t=parseInt(Ur(e).attr("colSpan")||"1",10),n=parseInt(ph(Ur(e),"width")||"90",10);h.push(n);for(var r=1;r<t;r+=1)h.push(90)}),d.columnWidths=h}return d}},Yh=null===(qh=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===qh?void 0:qh.getPropertyValue("--w-e-textarea-border-color");var Xh="\n";function Zh(e){var t=e.selection;if(null==t)return!1;var n=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=d(r,2)[1],i=Fn.Editor.start(e,o);if(Fn.Point.equals(t.anchor,i))return!0}return!1}function Jh(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=d(Fn.Editor.nodes(e,{match:function(e){return Ci.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=Fn.Editor.before(e,r)),"forward"===n&&Fn.Editor.isEnd(e,r.anchor,r.anchor.path)&&(a=Fn.Editor.after(e,r)),null==a)return!1;var s=Fn.Editor.above(e,{at:a,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(null==s||null==i||!Fn.Path.equals(s[1],i[1]))return!1;var u=Fn.Editor.node(e,a);if(!Fn.Text.isText(u[0])||u[0].text.length<1)return!1;var l="backward"===n?a.offset-1:a.offset,c="backward"===n?a.offset:a.offset+1;if(l<0)return!1;var f=Fn.Node.string(u[0]);return!(f.slice(l,c)!==Xh)&&(Fn.Transforms.insertText(e,f.slice(0,l)+f.slice(c),{at:{anchor:Fn.Editor.start(e,a.path),focus:Fn.Editor.end(e,a.path)}}),Fn.Transforms.select(e,{anchor:{path:a.path,offset:l},focus:{path:a.path,offset:l}}),!0)}function Qh(e,t){var n=Fn.Editor.nodes(e,{at:t,match:function(e){return"table"===Ci.getNodeType(e)}});return!!f([],d(n),!1).find(function(){return!0})}function eg(e){var t,n;try{for(var r=c(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=r.next();!o.done;o=r.next()){var i=o.value;if(Ci.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}function tg(e){var t=document.createElement("div");t.innerHTML=e;var n=[],r=!1;return Array.from(t.childNodes).forEach(function(e){if(e.nodeType!==Node.TEXT_NODE){if(!(e instanceof HTMLElement)||"p"!==e.tagName.toLowerCase())return n.push(e.cloneNode(!0)),void(r=!0);var t=e.innerHTML,o=t.trim();if(o&&" "!==o){r&&n.push(document.createElement("br"));var i=document.createElement("div");i.innerHTML=t,Array.from(i.childNodes).forEach(function(e){n.push(e.cloneNode(!0))}),r=!0}}else(e.textContent||"").trim()&&(n.push(e.cloneNode(!0)),r=!0)}),t.replaceChildren.apply(t,f([],d(n),!1)),t.innerHTML}var ng={selector:"table",preParseHtml:function(e){var t=Ur(e);if("table"!==fh(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");t.append(r),n.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=Ur(o[i]);a.attr("width","auto");var s=a.html()||"";s=tg(s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,"")),a.html(s)}return t[0]}};function rg(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function og(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var ig=null;function ag(e,t){if(No(t)){var n=t.querySelector("table");n&&(ig=new ResizeObserver(function(t){var r=d(t,1)[0].contentRect,o=function(e){return Array.from(e.querySelectorAll("tr")).map(function(e){var t=e.getBoundingClientRect();return Math.max(1,Math.round(100*t.height)/100)})}(n);Fn.Transforms.setNodes(e,{scrollWidth:r.width,height:r.height,rowHeights:o},{mode:"highest"})}),ig.observe(n))}}var sg=!1,ug=!1,lg=0,cg=null,dg=null,fg=Ur(window);fg.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))sg=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===cg||null===dg)return;ug=!0;var n=e.clientX;lg=n,document.body.style.cursor="col-resize",e.preventDefault()}fg.on("mousemove",pg),fg.on("mouseup",hg)});var pg=uu(function(e){if(ug&&null!==cg&&null!==dg){e.preventDefault();var t=e.clientX,n=t-lg,r=null,o=null;try{var i=d(Fn.Editor.node(cg,dg),2),a=i[0],s=i[1];if(Fn.Editor.isEditor(a)||!Fn.Element.isElement(a)||"table"!==a.type)return;r=a,o=s}catch(e){return}if(null!==r&&null!==o){var u=r.columnWidths,l=void 0===u?[]:u,c=r.resizingIndex,p=void 0===c?-1:c;if(!(0===l.length||p<0||p>=l.length)){var h,g=null;try{g=Ci.toDOMNode(cg,r)}catch(e){g=null}var v=null==g?void 0:g.querySelector(".table");if(v)h=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(l,p,t-v.getBoundingClientRect().left,rg(l),cg);else h=function(e,t,n,r){var o=f([],d(e),!1),i=r.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(l,p,n,cg);Fn.Transforms.setNodes(cg,{columnWidths:h},{at:o})}}}},100);function hg(e){ug&&pg.flush(),pg.cancel(),sg=!1,ug=!1,cg=null,dg=null,document.body.style.cursor="",fg.off("mousemove",pg),fg.off("mouseup",hg)}function gg(e,t){"mouseenter"===t.type?Fn.Transforms.setNodes(e,{isResizing:!0},{mode:"highest"}):Fn.Transforms.setNodes(e,{isResizing:!1},{mode:"highest"})}function vg(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function mg(e){var t=e.children,n=e.rowHeights,r=void 0===n?[]:n,o=r.length===t.length&&r.every(function(e){return Number.isFinite(e)&&e>0});return o?r:t.map(function(e){return e.height||30})}var yg=!1,bg=0,Eg=null,wg=Ur(window);var Cg=uu(function(e){if(yg&&null!==Eg){e.preventDefault();var t,n=e.clientY,r=n-bg,o=d(Fn.Editor.nodes(Eg,{match:uh(Eg,"table")}),1),i=d(o[0],1)[0],a=i.resizingRowIndex,s=void 0===a?-1:a,u=mg(i),l=Ci.getSelectedNodeByType(Eg,"table"),c=Ci.toDOMNode(Eg,l).querySelector(".table");if(c)t=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(u,s,n-c.getBoundingClientRect().top,vg(u),Eg);else t=function(e,t,n,r){var o=f([],d(e),!1),i=(r.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(u,s,r,Eg);var p=Ci.getSelectedNodeByType(Eg,"table");if(p&&s>=0&&s<t.length){var h=f(f([],d(Ci.findPath(Eg,p)),!1),[s],!1);try{Fn.Transforms.setNodes(Eg,{height:t[s]},{at:h})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function Dg(e){yg=!1,Eg=null,document.body.style.cursor="",wg.off("mousemove",Cg),wg.off("mouseup",Dg)}function Ag(e,t){"mouseenter"===t.type?Fn.Transforms.setNodes(e,{isResizingRow:!0},{mode:"highest"}):Fn.Transforms.setNodes(e,{isResizingRow:!1},{mode:"highest"})}wg.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===Eg)return;yg=!0;var n=e.clientY;bg=n,document.body.style.cursor="row-resize",e.preventDefault()}wg.on("mousemove",Cg),wg.on("mouseup",Dg)});var Sg={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Fn.Range.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Ci.findPath(e,t),a=Fn.Editor.start(e,i),s=Fn.Editor.end(e,i),u=Fn.Point.compare(r,s)<=0&&Fn.Point.compare(r,a)>=0,l=Fn.Point.compare(o,s)<=0&&Fn.Point.compare(o,a)>=0;return!!(u&&l&&Fn.Path.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.caption,u=o.height,l=o.columnWidths,c=void 0===l?[]:l,f=o.rowHeights,p=void 0===f?[]:f,h=o.scrollWidth,g=void 0===h?0:h,v=o.isHoverCellBorder,m=o.resizingIndex,y=o.isResizing,b=o.isHoverRowBorder,E=o.resizingRowIndex,w=o.isResizingRow,C=Ci.isNodeSelected(n,e),D=d(Nh.selection(n),1)[0],A=og(c),S=pl("div",{className:"table-container","data-selected":C,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&Nh.unselect(n);var r=Ci.findPath(n,e),o=Fn.Editor.start(n,r),i=n.selection;if(null!=i)i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o);else n.select(o)}}}},pl("table",{width:a,contentEditable:r,className:"table ".concat(D?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(c.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:Ga(function(t){Nh.hasSelected(n)||(function(e,t,n,r){if(!e.isDisabled()&&!sg&&!ug){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=n.clientX,f=n.target;if(No(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&Fn.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(No(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?og(u).map(function(e){return e*r}):u,m=rg(v),y=0;y<m.length;y+=1)if(h-g.x>=m[y]-5&&h-g.x<m[y]+5){if(c===y)return;return void Fn.Transforms.setNodes(e,{isHoverCellBorder:!0,resizingIndex:y},{mode:"highest"})}}!0===l&&Fn.Transforms.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}(n,e,t,g),function(e,t,n){if(!e.isDisabled()&&!yg){var r=t,o=r.isHoverRowBorder,i=r.resizingRowIndex,a=n.target;if(No(a)){var s=a.closest(".table");if(s)for(var u=n.clientY,l=s.getBoundingClientRect(),c=vg(mg(r)),d=0;d<c.length;d+=1)if(u-l.y>=c[d]-5&&u-l.y<c[d]+5){if(i===d)return;return void Fn.Transforms.setNodes(e,{isHoverRowBorder:!0,resizingRowIndex:d},{mode:"highest"})}}!0===o&&Fn.Transforms.setNodes(e,{isHoverRowBorder:!1,resizingRowIndex:-1},{mode:"highest"})}}(n,e,t))},25)}},s?pl("caption",{contentEditable:!1},s):null,pl("colgroup",{contentEditable:!1},c.map(function(e){return pl("col",{width:e})})),pl("tbody",null,t)),pl("div",{className:"column-resizer",contentEditable:!1},c.map(function(t,r){var o=t;return"100%"===a&&(o=A[r]*g),pl("div",{className:"column-resizer-item",style:{minWidth:"".concat(o,"px")}},pl("div",{className:"resizer-line-hotzone ".concat(v&&r===m?"visible ":"").concat(y&&r===m?"highlight":""),style:{height:"".concat(u,"px")},on:{mouseenter:function(e){return gg(n,e)},mouseleave:function(e){return gg(n,e)},mousedown:function(t){return function(e,t){if(!ug){cg=e;try{dg=Ci.findPath(e,t)}catch(e){dg=null}}}(n,e)}}},pl("div",{className:"resizer-line"})))})),pl("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(e,t){var r=c.reduce(function(e,t){return e+t},0),o=p[t],i=Number.isFinite(o)&&o>0?o:e.height||30;return pl("div",{className:"row-resizer-item",style:{minHeight:"".concat(i,"px")}},pl("div",{className:"resizer-line-hotzone-horizontal ".concat(b&&t===E?"visible ":"").concat(w&&t===E?"highlight":""),style:{width:"".concat(r,"px")},on:{mouseenter:function(e){return Ag(n,e)},mouseleave:function(e){return Ag(n,e)},mousedown:function(e){return function(e){yg||(Eg=e)}(n)}}},pl("div",{className:"resizer-line-horizontal"})))}))),x=qu("div",{hook:{insert:function(e){var t=e.elm;return ag(n,t)},destroy:function(){ig&&(null==ig||ig.disconnect(),ig=null)}}},S);return x}},xg={type:"table-row",renderElem:function(e,t,n){var r=e.height;return pl("tr",{style:r?{height:"".concat(r,"px")}:{}},t)}},Tg={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Ci.getParentNode(e,t);if(null==n)return!1;var r=Ci.getParentNode(e,n);return null!=r&&Dh(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,p=Nh.isSelected(n,e);return pl(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function Ng(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var Og=new Set(["solid","dotted","dashed","double","groove","ridge","inset","outset"]),Bg=new Set;function kg(e){return"".concat(e||"").trim().toLowerCase().replace(/\s+/g," ")}var Fg={renderStyle:function(e,t){var n,r;if(!Fn.Element.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c={};if(i&&(c.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?c.borderWidth="".concat(a,"px"):c.borderWidth=a}s&&(c.borderStyle="none"===s?"":s),u&&(c.borderColor=u),l&&(c.textAlign=l);var d=t;return"table"===e.type?Ng(null===(r=(null===(n=d.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],c):Ng(d,c),d},styleToHtml:function(e,t,n){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,o=e.borderWidth,i=e.borderStyle,a=e.borderColor,s=e.textAlign;if(!(r||o||i||a||s))return t;var u=Ur(t);if("class"===Rl(n)){if(r&&(u.attr("bgcolor",r),u.attr("data-w-e-background-color",r)),o){var l="".concat(o).trim();l&&(u.attr("data-w-e-border-width",l),u.attr("border",l))}if(i){var c=kg(i),d=function(e,t){var n=kg(t);if(!n||"none"===n)return"skip";if(Og.has(n))return"class";var r=_l(e),o="preserve-data";"fallback-inline"===r&&(o="inline"),"strict"===r&&(o="throw");var i='[wangeditor] Unsupported table border-style token "'.concat(n,'" in class mode. policy=').concat(r),a="".concat(n,"|").concat(o);if(Bg.has(a)||(Bg.add(a),Ll(e,{type:"table-border-style",value:n,scene:"toHtml",fallback:o,message:i})),"throw"===o)throw new Error(i);return"inline"===o?"inline":"preserve-data"}(n,c);"skip"!==d&&u.attr("data-w-e-border-line",c),"class"===d?u.addClass(function(e){var t=(e||"").trim().toLowerCase();return t&&"none"!==t?"w-e-table-border-style-".concat(t):""}(c)):"inline"===d&&u.css("border-style",c)}return a&&(u.attr("bordercolor",a),u.attr("data-w-e-border-color",a)),s&&(u.attr("align",s),u.attr("data-w-e-text-align",s)),hh(u)}return r&&u.css("background-color",r),o&&u.css("border-width","".concat(o,"px")),i&&u.css("border-style","none"===i?"":i),a&&u.css("border-color",a),s&&u.css("text-align",s),hh(u)},parseStyleHtml:function(e,t,n){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var r=Ur(e),o=t,i=ph(r,"background-color");i||(i=ph(r,"background")),i||(i=r.attr("bgcolor")||""),i||(i=r.attr("data-w-e-background-color")||""),i&&(o.backgroundColor=i);for(var a=ph(r,"border"),s=r.attr("data-w-e-border-width")||"",u=r.attr("data-w-e-border-line")||"",l=r.attr("data-w-e-border-color")||"",c=r.attr("border")||"",f=r.attr("bordercolor")||"",p=(r.attr("class")||"").trim().split(/\s+/).filter(Boolean),h="",g=0;g<p.length;g+=1){var v=p[g];if(v.startsWith("w-e-table-border-style-")){h=v.replace("w-e-table-border-style-","");break}}var m=!!(s||u||l||c||f||h);a||"TD"!==e.tagName||m||(a="1px solid ".concat(Yh));var y,b=d((null==a?void 0:a.split(" "))||[],3),E=b[0],w=b[1],C=b[2];(E=ph(r,"border-width")||E)||(E=s),E||(E=c),E&&(o.borderWidth=(y=E.trim())&&"string"==typeof y&&y.includes("pt")?y.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var n=(4*parseFloat(t)/3).toFixed(2);return"".concat(n,"px")}):y),(w=ph(r,"border-style")||w)||(w=u),w||(w=h),w&&(o.borderStyle="none"===w?"":w),(C=ph(r,"border-color")||C)||(C=f),C||(C=l),C&&(o.borderColor=C);var D=ph(r,"text-align");return(D=ph(r,"text-align")||D)||(D=r.attr("align")||""),D||(D=r.attr("data-w-e-text-align")||""),D&&(o.textAlign=D),t},renderElems:[Sg,xg,Tg],elemsToHtml:[rh,oh,ih],preParseHtml:[ng],parseElemsHtml:[Wh,Gh,Kh],menus:[Fh,Ih,Ph,Rh,_h,Lh,Mh,jh,Hh,zh,$h,Uh],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,l=e.deleteFragment,c=e;c.insertBreak=function(){null==Ci.getSelectedNodeByType(c,"table")?t():c.insertText(Xh)},c.deleteBackward=function(e){if(!Zh(c)&&!Jh(c,e,"backward")){var t=c.selection;if(t){var r=Fn.Editor.before(c,t),o=Fn.Editor.above(c,{at:t,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(r){var i=Qh(c,r);if(!o&&i&&eg(c))return}}n(e)}},c.handleTab=function(){var t;if(Ci.getSelectedNodeByType(c,"table")){var n=Fn.Editor.above(e);Ci.checkNodeType(n[0],"table-cell")&&Fn.Transforms.select(e,n[1]);var r=Fn.Editor.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Fn.Editor.above(e,{at:r[1]}))&&void 0!==t?t:r),Fn.Transforms.select(e,r[1]);else{var o=c.children||[],i=o.length;if(Ci.checkNodeType(o[i-1],"table")){var s=Ci.genEmptyParagraph();Fn.Transforms.insertNodes(c,s,{at:[i]}),c.handleTab()}}}else a()},c.deleteForward=function(e){if(!Zh(c)&&!Jh(c,e,"forward")){var t=c.selection;if(t){var n=Fn.Editor.after(c,t),o=Fn.Editor.above(c,{at:t,match:function(e){return Ci.checkNodeType(e,"table-cell")}});if(n){var i=Qh(c,n);if(!o&&i&&eg(c))return}}r(e)}},c.normalizeNode=function(e){var t=d(e,2),n=t[0],r=t[1];if("table"!==Ci.getNodeType(n))return o([n,r]);if(Ci.isLastNode(c,n)){var i=Ci.genEmptyParagraph();Fn.Transforms.insertNodes(c,i,{at:[r[0]+1]})}},c.insertData=function(e){if(null!=Ci.getSelectedNodeByType(c,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Fn.Editor.insertText(c,t)}else i(e)},c.selectAll=function(){var e=c.selection;if(null!=e){var t=Ci.getSelectedNodeByType(c,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Fn.Path.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Fn.Node.string(t).length){var o=Ci.findPath(c,t),i={anchor:Fn.Editor.start(c,o),focus:Fn.Editor.end(c,o)};c.select(i)}else u();else u()}else u()}else u()},c.deleteFragment=function(e){var t=gh.get(c);if(t&&t.length>0){var n=[];t.forEach(function(e){e.forEach(function(e){var t=d(e[0],2)[1];n.some(function(e){return Fn.Path.equals(e,t)})||n.push(t)})});var r=n[0];if(n.forEach(function(t){if(Fn.Node.has(c,t)){var n=Fn.Editor.start(c,t),r=Fn.Editor.end(c,t);Fn.Transforms.select(c,{anchor:n,focus:r}),l(e)}}),Nh.unselect(c),r&&Fn.Node.has(c,r)){var o=Fn.Editor.start(c,r);Fn.Transforms.select(c,o)}}else l(e)},function(e){var t=e.apply;e.apply=function(n){if(!Fn.Operation.isSelectionOperation(n)||!n.newProperties)return t(n);var r=s(s({},e.selection),n.newProperties);if(!Fn.Range.isRange(r))return Nh.unselect(e),t(n);var o=function(e){return Fn.Element.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=d(Fn.Editor.nodes(e,{match:o,at:Fn.Range.start(r),mode:"lowest"}),1)[0],a=d(Fn.Editor.nodes(e,{match:o,at:Fn.Range.end(r),mode:"lowest"}),1)[0];if(!i||!a)return Nh.unselect(e),t(n);var u=d(i,2)[1],l=d(a,2)[1];if(Fn.Path.equals(u,l)||!lh(e,[u,l],"table"))return Nh.unselect(e),t(n);try{var c=ch(e,{at:u});if(!c||0===c.length)return Nh.unselect(e),t(n);for(var f=dh.valueOf(0,0),p=dh.valueOf(0,0),h=!1,g=!1,v=0;v<c.length;v+=1)if(c[v])for(var m=0;m<c[v].length;m+=1)if(c[v][m]){var y=d(c[v][m],1),b=d(y[0],2)[1];Fn.Path.equals(u,b)&&(f.x=v,f.y=m,h=!0),Fn.Path.equals(l,b)&&(p.x=v,p.y=m,g=!0)}if(!h||!g)return Nh.unselect(e),t(n);for(var E=dh.valueOf(Math.min(f.x,p.x),Math.min(f.y,p.y)),w=dh.valueOf(Math.max(f.x,p.x),Math.max(f.y,p.y));;){var C=dh.valueOf(E.x,E.y),D=dh.valueOf(w.x,w.y);for(v=C.x;v<=D.x&&v<c.length;v+=1)if(c[v])for(m=C.y;m<=D.y&&m<c[v].length;m+=1)if(c[v][m]){var A=d(c[v][m],2)[1];if(A){var S=A.rtl,x=A.ltr,T=A.btt,N=A.ttb;C.x=Math.min(C.x,v-(N-1)),C.y=Math.min(C.y,m-(S-1)),D.x=Math.max(D.x,v+(T-1)),D.y=Math.max(D.y,m+(x-1))}}if(dh.equals(E,C)&&dh.equals(w,D))break;E=C,w=D}var O=[],B=new WeakSet;for(v=E.x;v<=w.x&&v<c.length;v+=1)if(c[v]){var k=[];for(m=E.y;m<=w.y&&m<c[v].length;m+=1)if(c[v][m]){var F=d(c[v][m],1),I=d(F[0],1)[0];I&&(B.add(I),k.push(c[v][m]))}k.length>0&&O.push(k)}gh.set(e,O),vh.set(e,B)}catch(r){return Nh.unselect(e),t(n)}t(n)}}(c),c.getTableSelection=function(){return gh.get(c)||null};var f=c.addMark,p=c.removeMark,h=s({},Fn.Transforms);return c.addMark=function(e,t){var n=gh.get(c);if(n&&n.length>0){var r=c.selection;n.forEach(function(n){n.forEach(function(n){var r=d(n[0],2)[1],o=Fn.Editor.start(c,r),i=Fn.Editor.end(c,r);Fn.Transforms.select(c,{anchor:o,focus:i}),f(e,t)})}),r&&Fn.Transforms.select(c,r)}else f(e,t)},c.removeMark=function(e){var t=gh.get(c);if(t&&t.length>0){var n=c.selection;t.forEach(function(t){t.forEach(function(t){var n=d(t[0],2)[1],r=Fn.Editor.start(c,n),o=Fn.Editor.end(c,n);Fn.Transforms.select(c,{anchor:r,focus:o}),p(e)})}),n&&Fn.Transforms.select(c,n)}else p(e)},Fn.Transforms.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===c){var r=gh.get(c);if(r&&r.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void h.setNodes(e,t,n):void r.forEach(function(r){r.forEach(function(r){var o=d(r[0],2)[1];h.setNodes(e,t,s(s({},n),{at:o}))})})}h.setNodes(e,t,n)},c}};Ms("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Ms("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});fo&&(Ur.fn.append=fo),Jr&&(Ur.fn.on=Jr),yo&&(Ur.fn.remove=yo),Zr&&(Ur.fn.val=Zr),Co&&(Ur.fn.click=Co),ro&&(Ur.fn.hide=ro);var Ig=new WeakMap;function Pg(e){return e.getMenuConfig("uploadImage")}function Rg(e,t){return u(this,void 0,void 0,function(){return l(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;kd(e,i,t.name,a),n("ok")}}})]})})}function _g(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=Ig.get(e);if(null!=t)return t;var n=Pg(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Tn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return kd(e,t,n,r)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;kd(e,r,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,p=void 0===f?"":f,h=l.href;kd(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),Ig.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function Lg(e,t){return u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g,v,m,y;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=Pg(e),o=r.customUpload,i=r.base64LimitSize,a=[],l.label=1;case 1:l.trys.push([1,10,11,16]),s=!0,u=p(n),l.label=2;case 2:return[4,u.next()];case 3:return c=l.sent(),(g=c.done)?[3,9]:(y=c.value,s=!1,f=(d=y).size,i&&f<=i?[4,Rg(e,d)]:[3,5]);case 4:return l.sent(),[3,8];case 5:return o?[4,o(d,function(t,n,r){return kd(e,t,n,r)},e)]:[3,7];case 6:return l.sent(),[3,8];case 7:a.push(d),l.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return h=l.sent(),v={error:h},[3,16];case 11:return l.trys.push([11,,14,15]),s||g||!(m=u.return)?[3,13]:[4,m.call(u)];case 12:l.sent(),l.label=13;case 13:return[3,15];case 14:if(v)throw v.error;return[7];case 15:return[7];case 16:return a.length>0?[4,_g(e,a)]:[3,18];case 17:l.sent(),l.label=18;case 18:return[2]}})})}var Mg=function(){function e(){this.title=Hs("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Nd(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return kd(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ur("body"),u=Ur('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;Lg(e,t)})}},e}();var jg={menus:[{key:"uploadImage",factory:function(){return new Mg},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Nd(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;if(o.length<=0)t(r);else Array.prototype.slice.call(o).some(function(e){return"image"===d(e.type.split("/"),1)[0]})?Lg(e,o):t(r)}},n}};function Hg(e){return e.length?e[0].tagName.toLowerCase():""}function zg(e,t,n,r,o){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={}),void 0===o&&(o=!1);var i=Ur(e),a=r.width,s=void 0===a?"":a,u=r.height,l=void 0===u?"":u,c=s?'data-w-e-style-width="'.concat(s,'"'):"",d=l?'data-w-e-style-height="'.concat(l,'"'):"";if(i.attr("width",t),i.attr("height",n),o)c&&i.attr("data-w-e-style-width",s),d&&i.attr("data-w-e-style-height",l),i.removeAttr("style");else{var f="";s&&(f+="width: ".concat(s,";")),l&&(f+="height: ".concat(l,";")),i.attr("style",f)}return i[0].outerHTML}Ms("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),Ms("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}}),fo&&(Ur.fn.append=fo),Jr&&(Ur.fn.on=Jr),Do&&(Ur.fn.focus=Do),qr&&(Ur.fn.attr=qr),Zr&&(Ur.fn.val=Zr),uo&&(Ur.fn.html=uo),ho&&(Ur.fn.parent=ho),Gr&&(Ur.fn.hasClass=Gr),bo&&(Ur.fn.empty=bo);var $g={type:"video",elemToHtml:function(e,t,n){var r=e,o=r.src,i=void 0===o?"":o,a=r.poster,s=void 0===a?"":a,u=r.width,l=void 0===u?"auto":u,c=r.height,d=void 0===c?"auto":c,f=r.style,p=void 0===f?{}:f,h=r.textAlign,g=void 0===h?"center":h,v=Rl(n),m=g||"center",y=' data-w-e-text-align="'.concat(m,'"'),b="class"===v?' class="'.concat(function(e){var t=e.trim().toLowerCase();return t&&["left","center","right","justify"].includes(t)?"w-e-video-align-".concat(t):"w-e-video-align-center"}(m),'"').concat(y):' style="text-align: '.concat(m,';"'),E='<div data-w-e-type="video" data-w-e-is-void'.concat(b,">\n");if(0===i.trim().indexOf("<iframe ")){E+=zg(i,l,d,p,"class"===v)}else{var w=p.width,C=void 0===w?"":w,D=p.height,A=void 0===D?"":D;if("class"===v){var S=C?' data-w-e-style-width="'.concat(C,'"'):"",x=A?' data-w-e-style-height="'.concat(A,'"'):"";E+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'"').concat(S).concat(x,'><source src="').concat(i,'" type="video/mp4"/></video>')}else{var T="";C&&(T+="width: ".concat(C,";")),A&&(T+="height: ".concat(A,";")),E+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'" style="').concat(T,'"><source src="').concat(i,'" type="video/mp4"/></video>')}}return E+="\n</div>"}};function Ug(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(wn())}function Vg(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=d(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function Wg(){return Ug("w-e-insert-video")}var Gg=function(){function e(){this.title=Hs("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Wg(),this.heightInputId=Wg(),this.buttonId=Wg()}return e.prototype.getSelectedVideoNode=function(e){return Ci.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=d(Zs(Hs("videoModule.width"),n,"auto"),2),a=i[0],u=Ur(i[1]),l=d(Zs(Hs("videoModule.height"),r,"auto"),2),c=l[0],f=Ur(l[1]),p=d(Js(o,Hs("videoModule.ok")),1)[0],h=this.getSelectedVideoNode(e);if(null==this.$content){var g=Ur("<div></div>");g.on("click","#".concat(o),function(t){t.preventDefault();var o=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)&&(l="".concat(parseInt(o,10),"px")),a(i)?c=i:u(i)&&(c="".concat(parseInt(i,10),"px"));var d=h.style,f=void 0===d?{}:d;e.restoreSelection();var p={style:s(s({},f),{width:l,height:c})};Fn.Transforms.setNodes(e,p,{match:function(e){return Ci.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=g}var v=this.$content;if(v.empty(),v.append(a),v.append(c),v.append(p),null==h)return v[0];var m=h.style,y=void 0===m?{}:m,b=y.width,E=void 0===b?"":b,w=y.height,C=void 0===w?"":w;return u.val(E),f.val(C),setTimeout(function(){u.focus()}),v[0]},e}();function qg(){return Ug("w-e-edit-video")}var Kg=function(){function e(){this.title=Hs("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=qg(),this.posterInputId=qg(),this.buttonId=qg()}return e.prototype.getSelectedVideoNode=function(e){return Ci.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(Zs(Hs("videoModule.videoSrc"),r,Hs("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(Zs(Hs("videoModule.videoPoster"),o,Hs("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Ur(c),v=Ur(h),m=d(Js(i,Hs("videoModule.ok")),1)[0];if(null==this.$content){var y=Ur("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i,a,s;return l(this,function(u){return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),a=Ug("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),Fn.Transforms.setNodes(e,s,{match:function(e){return Ci.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=y}var b=this.$content;b.empty(),b.append(s),b.append(p),b.append(m);var E=this.getSelectedVideoNode(e);if(null==E)return b[0];var w=E.src,C=void 0===w?"":w,D=E.poster,A=void 0===D?"":D;return g.val(C),v.val(A),setTimeout(function(){g.focus()}),b[0]},e}();function Yg(e,t){return u(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,c,d,f;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),l(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,n)]):[2];case 1:return"string"==typeof(c=l.sent())?(e.alert(c,"error"),[2]):null==c?[2]:[4,u(t)];case 2:return 0!==(d=l.sent()).trim().indexOf("<iframe ")&&(d=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(d)),f={type:"video",src:d,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then(function(){Ci.isSelectedEmptyParagraph(e)&&Fn.Transforms.removeNodes(e,{mode:"highest"}),Fn.Transforms.insertNodes(e,f,{mode:"highest"})}),a(f),[2]}})})}function Xg(){return Ug("w-e-insert-video")}var Zg=function(){function e(){this.title=Hs("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Xg(),this.posterInputId=Xg(),this.buttonId=Xg()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){return"pre"===Ci.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(Zs(Hs("videoModule.videoSrc"),r,Hs("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(Zs(Hs("videoModule.videoPoster"),o,Hs("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Ur(c),v=Ur(h),m=d(Js(i,Hs("videoModule.ok")),1)[0];if(null==this.$content){var y=Ur("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i;return l(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),[4,Yg(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=y}var b=this.$content;return b.empty(),b.append(s),b.append(p),b.append(m),g.val(""),v.val(""),setTimeout(function(){g.focus()}),b[0]},e}();function Jg(e){return e.getMenuConfig("uploadVideo")}var Qg=new WeakMap;function ev(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=Qg.get(e);if(null!=t)return t;var n=Jg(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Tn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return Yg(e,t,n)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;Yg(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),Qg.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var tv=function(){function e(){this.title=Hs("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return Yg(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Ur("body"),c=Ur('<input type="file" '.concat(a," multiple/>"));c.hide(),s.append(c),c.click(),c.on("change",function(){var t=c[0].files;!function(e,t){u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=Jg(e).customUpload,l.label=1;case 1:l.trys.push([1,8,9,14]),i=!0,a=p(n),l.label=2;case 2:return[4,a.next()];case 3:return s=l.sent(),(d=s.done)?[3,7]:(g=s.value,i=!1,u=g,o?[4,o(u,function(t,n){return Yg(e,t,n)},e)]:[3,5]);case 4:return l.sent(),[3,6];case 5:r.push(u),l.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return c=l.sent(),f={error:c},[3,14];case 9:return l.trys.push([9,,12,13]),i||d||!(h=a.return)?[3,11]:[4,h.call(a)];case 10:l.sent(),l.label=11;case 11:return[3,13];case 12:if(f)throw f.error;return[7];case 13:return[7];case 14:return r.length>0?[4,ev(e,r)]:[3,16];case 15:l.sent(),l.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Fn.Range.isCollapsed(t)||!!Ci.getSelectedElems(e).some(function(t){return"pre"===Ci.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function nv(e,t,n,r,o,i){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}],textAlign:i}}function rv(e){var t=Vg(e.attr("style")||"")["text-align"];if(t)return t;var n=(e.attr("data-w-e-text-align")||"").trim();if(n)return n;for(var r=(e.attr("class")||"").trim().split(/\s+/).filter(Boolean),o=0;o<r.length;o+=1){var i=r[o];if(i.startsWith("w-e-video-align-")){var a=i.replace("w-e-video-align-","");if(a)return a}}return"center"}var ov={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ur(e),o="",i="",a="auto",s="auto",u={},l=r.find("iframe");if(l.length>0){a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=Vg(l.attr("style")||"");var c=l.attr("data-w-e-style-width")||"",d=l.attr("data-w-e-style-height")||"";return!u.width&&c&&(u.width=c),!u.height&&d&&(u.height=d),nv(o=l[0].outerHTML,i,a,s,u,rv(r))}var f=r.find("video");(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",i=f.attr("poster")||"",u=Vg(f.attr("style")||"");var p=f.attr("data-w-e-style-width")||"",h=f.attr("data-w-e-style-height")||"";return!u.width&&p&&(u.width=p),!u.height&&h&&(u.height=h),nv(o,i,a,s,u,rv(r))}};var iv={selector:"iframe,video,p",preParseHtml:function(e){var t=Ur(e),n=t;if("p"===Hg(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Ur(o))}}var a=Hg(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=Ur('<div data-w-e-type="video" data-w-e-is-void class="w-e-video-align-center" data-w-e-text-align="center"></div>');return s.append(n),s[0]}};var av={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,p=o.height,h=void 0===p?"auto":p,g=o.style,v=void 0===g?{}:g,m=o.textAlign,y=void 0===m?"center":m,b=Ci.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=pl("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y},innerHTML:zg(a,f,h,v)})}else{var E=pl("video",{key:c,poster:u,controls:!0,style:v},pl("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(E.data.width=f),"auto"!==h&&(E.data.height=h),r=pl("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:y}},E)}var w=qu("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return w}},sv={renderElems:[av],elemsToHtml:[$g],preParseHtml:[iv],parseElemsHtml:[ov],menus:[{key:"insertVideo",factory:function(){return new Zg},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new tv},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name," upload error"),t,n)}}},{key:"editVideoSize",factory:function(){return new Gg}},{key:"editVideoSrc",factory:function(){return new Kg}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=d(e,2),o=t[0],i=t[1];"video"===Ci.getNodeType(o)&&(Ci.isLastNode(r,o)&&Fn.Transforms.insertNodes(r,Ci.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},uv=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=s(s({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=s(s({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=s(s({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=s(s({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){tr(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,ml[n||""]=r},e.registerRenderStyle=function(e){!function(e){hl.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;ai[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){ri.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,$o.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;Vo[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){Uo.push(e)}(e)},e.registerModule=function(e){lv(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function lv(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,u=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(e){return uv.registerMenu(e)}),n&&n.forEach(function(e){return uv.registerRenderElem(e)}),r&&uv.registerRenderStyle(r),o&&o.forEach(function(e){return uv.registerElemToHtml(e)}),i&&uv.registerStyleToHtml(i),a&&a.forEach(function(e){return uv.registerPreParseHtml(e)}),s&&s.forEach(function(e){return uv.registerParseElemHtml(e)}),u&&uv.registerParseStyleHtml(u),l&&uv.registerPlugin(l)}ap.forEach(function(e){return lv(e)}),lv(nh),lv(Fg),lv(sv),lv(jg),lv(Ap);var cv='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var dv={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","previewImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var fv={hoverbarKeys:s(s({},dv),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};uv.setEditorConfig(s(s({},fv),{decorate:Ep}));var pv={hoverbarKeys:dv};uv.setSimpleEditorConfig(s(s({},pv),{decorate:Ep}));var hv={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Hs("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Hs("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Hs("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Hs("editor.image"),iconSvg:cv,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Hs("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};uv.setToolbarConfig(hv);var gv={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Hs("editor.image"),iconSvg:cv,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};uv.setSimpleToolbarConfig(gv);e.Boot=uv,e.DomEditor=Ci,e.SlateEditor=Fn.Editor,e.SlateElement=Fn.Element,e.SlateNode=Fn.Node,e.SlatePath=Fn.Path,e.SlatePoint=Fn.Point,e.SlateRange=Fn.Range,e.SlateText=Fn.Text,e.SlateTransforms=Fn.Transforms,e.Toolbar=Il,e.createEditor=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?uv.simpleEditorConfig:uv.editorConfig,d=s(s({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return Fl({selector:n,config:s(s(s({},c),u),{hoverbarKeys:d}),content:o,html:i,plugins:uv.plugins})},e.createToolbar=function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?uv.simpleToolbarConfig:uv.toolbarConfig;return Pl(n,{selector:t,config:s(s({},u),o)})},e.createUploader=Tn,e.default={},e.genModalButtonElems=Js,e.genModalInputElems=Zs,e.genModalTextareaElems=function(e,t,n){var r=Ur('<label class="babel-container"></label>');r.append("<span>".concat(e,"</span>"));var o=Ur('<textarea type="text" id="'.concat(t,'" placeholder="').concat(n||"",'"></textarea>'));return r.append(o),[r[0],o[0]]},e.getClassStylePolicy=_l,e.getTextStyleMode=Rl,e.i18nAddResources=Ms,e.i18nChangeLanguage=function(e){_s.changeLanguage(e)},e.i18nGetResources=function(e){return _s.getResourceBundle(e,Ls)},e.reportUnsupportedClassStyle=Ll,e.t=Hs,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
21
21
|
//# sourceMappingURL=index.js.map
|