wikiparser-node 1.1.2 → 1.1.3-b

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.
Files changed (154) hide show
  1. package/bundle/bundle.min.js +36 -0
  2. package/config/llwiki.json +1 -35
  3. package/config/moegirl.json +1 -44
  4. package/config/zhwiki.json +1 -466
  5. package/extensions/dist/base.js +70 -0
  6. package/extensions/dist/editor.js +166 -0
  7. package/extensions/dist/highlight.js +30 -0
  8. package/extensions/dist/lint.js +49 -0
  9. package/extensions/editor.css +63 -0
  10. package/extensions/ui.css +119 -0
  11. package/package.json +28 -12
  12. package/config/.schema.json +0 -160
  13. package/dist/addon/table.d.ts +0 -6
  14. package/dist/addon/table.js +0 -559
  15. package/dist/base.d.ts +0 -45
  16. package/dist/bin/toc.js +0 -18
  17. package/dist/index.d.ts +0 -36
  18. package/dist/index.js +0 -210
  19. package/dist/internal.d.ts +0 -44
  20. package/dist/lib/element.d.ts +0 -155
  21. package/dist/lib/element.js +0 -664
  22. package/dist/lib/node.d.ts +0 -146
  23. package/dist/lib/node.js +0 -419
  24. package/dist/lib/range.d.ts +0 -104
  25. package/dist/lib/range.js +0 -386
  26. package/dist/lib/ranges.d.ts +0 -26
  27. package/dist/lib/ranges.js +0 -117
  28. package/dist/lib/text.d.ts +0 -65
  29. package/dist/lib/text.js +0 -223
  30. package/dist/lib/title.d.ts +0 -38
  31. package/dist/lib/title.js +0 -162
  32. package/dist/mixin/attributesParent.js +0 -94
  33. package/dist/mixin/fixed.js +0 -32
  34. package/dist/mixin/flagsParent.js +0 -70
  35. package/dist/mixin/hidden.js +0 -22
  36. package/dist/mixin/magicLinkParent.js +0 -41
  37. package/dist/mixin/singleLine.js +0 -25
  38. package/dist/mixin/sol.js +0 -43
  39. package/dist/mixin/syntax.js +0 -56
  40. package/dist/parser/braces.js +0 -123
  41. package/dist/parser/commentAndExt.js +0 -69
  42. package/dist/parser/converter.js +0 -40
  43. package/dist/parser/externalLinks.js +0 -28
  44. package/dist/parser/hrAndDoubleUnderscore.js +0 -38
  45. package/dist/parser/html.js +0 -36
  46. package/dist/parser/links.js +0 -94
  47. package/dist/parser/list.js +0 -59
  48. package/dist/parser/magicLinks.js +0 -40
  49. package/dist/parser/quotes.js +0 -67
  50. package/dist/parser/selector.js +0 -163
  51. package/dist/parser/table.js +0 -110
  52. package/dist/src/arg.d.ts +0 -58
  53. package/dist/src/arg.js +0 -190
  54. package/dist/src/atom.d.ts +0 -12
  55. package/dist/src/atom.js +0 -27
  56. package/dist/src/attribute.d.ts +0 -86
  57. package/dist/src/attribute.js +0 -392
  58. package/dist/src/attributes.d.ts +0 -106
  59. package/dist/src/attributes.js +0 -338
  60. package/dist/src/converter.d.ts +0 -51
  61. package/dist/src/converter.js +0 -79
  62. package/dist/src/converterFlags.d.ts +0 -87
  63. package/dist/src/converterFlags.js +0 -223
  64. package/dist/src/converterRule.d.ts +0 -81
  65. package/dist/src/converterRule.js +0 -212
  66. package/dist/src/extLink.d.ts +0 -53
  67. package/dist/src/extLink.js +0 -121
  68. package/dist/src/gallery.d.ts +0 -55
  69. package/dist/src/gallery.js +0 -129
  70. package/dist/src/heading.d.ts +0 -72
  71. package/dist/src/heading.js +0 -128
  72. package/dist/src/hidden.d.ts +0 -21
  73. package/dist/src/hidden.js +0 -23
  74. package/dist/src/html.d.ts +0 -104
  75. package/dist/src/html.js +0 -231
  76. package/dist/src/imageParameter.d.ts +0 -66
  77. package/dist/src/imageParameter.js +0 -246
  78. package/dist/src/imagemap.d.ts +0 -57
  79. package/dist/src/imagemap.js +0 -148
  80. package/dist/src/imagemapLink.d.ts +0 -57
  81. package/dist/src/imagemapLink.js +0 -40
  82. package/dist/src/index.d.ts +0 -145
  83. package/dist/src/index.js +0 -766
  84. package/dist/src/link/base.d.ts +0 -52
  85. package/dist/src/link/base.js +0 -207
  86. package/dist/src/link/category.d.ts +0 -13
  87. package/dist/src/link/category.js +0 -29
  88. package/dist/src/link/file.d.ts +0 -96
  89. package/dist/src/link/file.js +0 -253
  90. package/dist/src/link/galleryImage.d.ts +0 -43
  91. package/dist/src/link/galleryImage.js +0 -106
  92. package/dist/src/link/index.d.ts +0 -53
  93. package/dist/src/link/index.js +0 -123
  94. package/dist/src/magicLink.d.ts +0 -58
  95. package/dist/src/magicLink.js +0 -122
  96. package/dist/src/nested.d.ts +0 -44
  97. package/dist/src/nested.js +0 -87
  98. package/dist/src/nowiki/base.d.ts +0 -46
  99. package/dist/src/nowiki/base.js +0 -42
  100. package/dist/src/nowiki/comment.d.ts +0 -39
  101. package/dist/src/nowiki/comment.js +0 -67
  102. package/dist/src/nowiki/dd.d.ts +0 -8
  103. package/dist/src/nowiki/dd.js +0 -25
  104. package/dist/src/nowiki/doubleUnderscore.d.ts +0 -43
  105. package/dist/src/nowiki/doubleUnderscore.js +0 -51
  106. package/dist/src/nowiki/hr.d.ts +0 -29
  107. package/dist/src/nowiki/hr.js +0 -14
  108. package/dist/src/nowiki/index.d.ts +0 -16
  109. package/dist/src/nowiki/index.js +0 -21
  110. package/dist/src/nowiki/list.d.ts +0 -29
  111. package/dist/src/nowiki/list.js +0 -48
  112. package/dist/src/nowiki/listBase.d.ts +0 -18
  113. package/dist/src/nowiki/listBase.js +0 -12
  114. package/dist/src/nowiki/noinclude.d.ts +0 -25
  115. package/dist/src/nowiki/noinclude.js +0 -25
  116. package/dist/src/nowiki/quote.d.ts +0 -22
  117. package/dist/src/nowiki/quote.js +0 -50
  118. package/dist/src/onlyinclude.d.ts +0 -16
  119. package/dist/src/onlyinclude.js +0 -57
  120. package/dist/src/paramTag/index.d.ts +0 -37
  121. package/dist/src/paramTag/index.js +0 -68
  122. package/dist/src/paramTag/inputbox.d.ts +0 -8
  123. package/dist/src/paramTag/inputbox.js +0 -23
  124. package/dist/src/parameter.d.ts +0 -82
  125. package/dist/src/parameter.js +0 -198
  126. package/dist/src/pre.d.ts +0 -28
  127. package/dist/src/pre.js +0 -51
  128. package/dist/src/syntax.d.ts +0 -25
  129. package/dist/src/syntax.js +0 -30
  130. package/dist/src/table/base.d.ts +0 -52
  131. package/dist/src/table/base.js +0 -78
  132. package/dist/src/table/index.d.ts +0 -229
  133. package/dist/src/table/index.js +0 -379
  134. package/dist/src/table/td.d.ts +0 -102
  135. package/dist/src/table/td.js +0 -261
  136. package/dist/src/table/tr.d.ts +0 -32
  137. package/dist/src/table/tr.js +0 -56
  138. package/dist/src/table/trBase.d.ts +0 -54
  139. package/dist/src/table/trBase.js +0 -151
  140. package/dist/src/tagPair/ext.d.ts +0 -55
  141. package/dist/src/tagPair/ext.js +0 -142
  142. package/dist/src/tagPair/include.d.ts +0 -52
  143. package/dist/src/tagPair/include.js +0 -58
  144. package/dist/src/tagPair/index.d.ts +0 -47
  145. package/dist/src/tagPair/index.js +0 -93
  146. package/dist/src/transclude.d.ts +0 -167
  147. package/dist/src/transclude.js +0 -689
  148. package/dist/util/constants.js +0 -107
  149. package/dist/util/debug.js +0 -62
  150. package/dist/util/diff.js +0 -72
  151. package/dist/util/lint.js +0 -48
  152. package/dist/util/string.js +0 -61
  153. package/errors/README +0 -1
  154. package/printed/README +0 -1
@@ -0,0 +1,36 @@
1
+ (()=>{(()=>{"use strict";var Xt={891:(Y,_,e)=>{e.d(_,{Z:()=>E});var $=e(223),M=e(444);const K=f=>f.replace(/[\0\x7F]/gu,""),F={i18n:void 0,getConfig(){return{...M.L,...this.config,excludes:[]}},msg(f,x=""){var a,o;return((o=(a=this.i18n)==null?void 0:a[f])!=null?o:f).replace("$1",x)},normalizeTitle(f,x=0,a=!1,o=F.getConfig(),u=!1,p=!1,c=!1){const{Title:r}=e(599);if(u)return new r(f,x,o,p,c);const{Token:i}=e(541),s=$.j.run(()=>new i(f,o).parseOnce(0,a).parseOnce());return new r(String(s),x,o,p,c)},parse(f,x,a=M.C,o=F.getConfig()){const{Token:u}=e(541);return $.j.run(()=>new u(K(f),o).parse(a,x))}},I={},w=new Set(["normalizeTitle","parse"]);for(const f in F)w.has(f)||(I[f]={enumerable:!1});Object.defineProperties(F,I),typeof self=="object"?Object.assign(self,{Parser:F}):typeof globalThis=="object"&&Object.assign(globalThis,{Parser:F});const E=F},599:(Y,_,e)=>{e.r(_),e.d(_,{Title:()=>w});var $=e(467),M=e(891),K=Object.defineProperty,F=(E,f,x)=>f in E?K(E,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[f]=x,I=(E,f,x)=>(F(E,typeof f!="symbol"?f+"":f,x),x);class w{constructor(f,x=0,a=M.Z.getConfig(),o=!1,u=!1){I(this,"valid"),I(this,"ns"),I(this,"fragment"),I(this,"encoded",!1);const{nsid:p}=a;if(f=(0,$.m9)(f),o&&f.includes("%"))try{const s=/%(?!21|3[ce]|5[bd]|7[b-d])[\da-f]{2}/iu.test(f);f=decodeURIComponent(f),this.encoded=s}catch(s){}f=f.replace(/_/gu," ").trim();let c=x;f.startsWith(":")&&(c=0,f=f.slice(1).trim());const r=f.split(":");if(r.length>1){const s=p[r[0].trim().toLowerCase()];s!==void 0&&(c=s,f=r.slice(1).join(":").trim())}this.ns=c;const i=f.indexOf("#");if(i!==-1){let s=f.slice(i+1).trim();this.fragment=s,f=f.slice(0,i).trim()}this.valid=!!(f||u&&this.fragment!==void 0)&&!/\0\d+[eh!+-]\x7F|[<>[\]{}|]|%[\da-f]{2}/iu.test(f)}}},959:(Y,_,e)=>{e.d(_,{a:()=>F});var $=Object.defineProperty,M=(I,w,E)=>w in I?$(I,w,{enumerable:!0,configurable:!0,writable:!0,value:E}):I[w]=E,K=(I,w,E)=>(M(I,typeof w!="symbol"?w+"":w,E),E);const F=I=>{class w extends I{text(){return""}}return K(w,"hidden",!0),w}},313:(Y,_,e)=>{e.r(_),e.d(_,{parseBraces:()=>S});var $=e(467),M=e(891),K=e(485),F=e(169),I=e(541),w=Object.defineProperty,E=(n,t,l)=>t in n?w(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,f=(n,t,l)=>(E(n,typeof t!="symbol"?t+"":t,l),l);const x=n=>n.toString(new Set(["comment","noinclude","include"])).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1");class a extends I.Token{constructor(t,l,P=M.Z.getConfig(),W=[]){super(void 0,P,W),f(this,"type","parameter");const b=new I.Token(typeof t=="number"?void 0:t,P,W,{}),y=new I.Token(l,P,W);b.type="parameter-key",y.type="parameter-value",y.setAttribute("stage",2),this.append(b,y)}get anon(){return this.firstChild.length===0}afterBuild(){if(!this.anon){const{parentNode:t,firstChild:l}=this,P=x(l);this.setAttribute("name",P),t&&t.getArgs(P,!1,!1).add(this)}}toString(t){return this.anon?this.lastChild.toString(t):super.toString(t,"=")}text(){return this.anon?this.lastChild.text():super.text("=")}getGaps(){return this.anon?0:1}lint(t=this.getAbsoluteIndex()){var l;const P=super.lint(t),{firstChild:W}=this,b=(l=new RegExp(`https?://${$._X}${$.Qk}$`,"iu").exec(W.toString(new Set(["comment","noinclude","include"]))))==null?void 0:l[0];if(b&&new URL(b).search){const y=(0,F.D)(W,{start:t},"unescaped query string in an anonymous parameter");P.push({...y,startIndex:y.endIndex,endIndex:y.endIndex+1,startLine:y.endLine,startCol:y.endCol,endCol:y.endCol+1})}return P}print(){return super.print({sep:this.anon?"":"="})}}var o=e(34),u=e(669),p=Object.defineProperty,c=(n,t,l)=>t in n?p(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,r=(n,t,l)=>(c(n,typeof t!="symbol"?t+"":t,l),l),i=(n,t,l)=>{if(!t.has(n))throw TypeError("Cannot "+l)},s=(n,t,l)=>(i(n,t,"read from private field"),l?l.call(n):t.get(n)),h=(n,t,l)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,l)},m=(n,t,l,P)=>(i(n,t,"write to private field"),P?P.call(n,l):t.set(n,l),l),v=(n,t,l)=>(i(n,t,"access private method"),l),C,D,B,H,Q,Z;class d extends I.Token{constructor(t,l,P=M.Z.getConfig(),W=[]){var b,y;super(void 0,P,W,{}),h(this,B),h(this,Q),r(this,"type","template"),r(this,"modifier",""),h(this,C,!1),h(this,D,new Map);const{parserFunction:[G,V]}=P,X=(b=/^(?:\s|\0\d+c\x7F)*\0\d+s\x7F/u.exec(t))==null?void 0:b[0];if(X)this.setAttribute("modifier",X),t=t.slice(X.length);else if(t.includes(":")){const[nt,...et]=t.split(":"),[at]=/^(?:\s|\0\d+c\x7F)*/u.exec((y=et[0])!=null?y:"");this.setModifier(`${nt}:${at}`)&&(t=et.join(":").slice(at.length))}if(t.includes(":")||l.length===0&&!s(this,C)){const[nt,...et]=t.split(":"),at=(0,$.PN)(nt),st=at.trim(),ut=V.includes(st),q=G[st.toLowerCase()];if(!(et.length>0&&/\s$/u.test(at))&&(ut||q)){this.setAttribute("name",q!=null?q:st.toLowerCase()),this.type="magic-word";const tt=new RegExp(`^\\s*${st}\\s*$`,ut?"u":"iu"),rt=new u.SyntaxToken(nt,tt,"magic-word-name",P,W,{});if(super.insertAt(rt),et.length>0&&l.unshift([et.join(":")]),this.name==="invoke")for(let lt=0;lt<2;lt++){const dt=l.shift();if(!dt)break;const it=new o.D(dt.join("="),`invoke-${lt?"function":"module"}`,P,W);super.insertAt(it)}}}if(this.type==="template"){const nt=(0,$.PN)((0,$.m9)(t)).split("#")[0].trim();if(!nt||/\0\d+[eh!+-]\x7F|[<>[\]{}\n]|%[\da-f]{2}/u.test(nt))throw W.pop(),new SyntaxError(`\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A${(0,$.jq)(nt)}`);const et=new o.D(t,"template-name",P,W,{});super.insertAt(et)}const j=this.isTemplate();let k=1;for(let nt=0;nt<l.length;nt++){const et=l[nt];!j&&!(this.name==="switch"&&nt>0)&&(et[0]=et.join("="),et.length=1),et.length===1&&(et.unshift(k),k++),this.insertAt(new a(...et,P,W))}}setModifier(t){const{parserFunction:[,,l,P]}=this.getAttribute("config"),W=(0,$.PN)(t).trim();if(t&&!W.endsWith(":"))return!1;const b=W.slice(0,-1).toLowerCase(),y=l.includes(b),G=P.includes(b);return s(this,C)&&y||!s(this,C)&&(G||t==="")||this.length>1&&(y||G||t==="")?(this.setAttribute("modifier",t),m(this,C,y),!!t):!1}isTemplate(){return this.type==="template"||this.name==="invoke"}afterBuild(){this.modifier.includes("\0")&&this.setAttribute("modifier",this.buildFromStr(this.modifier,"string"))}toString(t){return`{{${this.modifier}${this.type==="magic-word"?`${this.firstChild.toString(t)}${this.length===1?"":":"}${this.childNodes.slice(1).map(l=>l.toString(t)).join("|")}`:super.toString(t,"|")}}}`}text(){const{childNodes:t,length:l,firstChild:P,modifier:W,type:b,name:y}=this;return b==="magic-word"&&y==="vardefine"?"":`{{${W}${b==="magic-word"?`${P.text()}${l===1?"":":"}${(0,$.fL)(t.slice(1),"|")}`:super.text("|")}}}`}getAttribute(t){switch(t){case"padding":return this.modifier.length+2;default:return super.getAttribute(t)}}getGaps(){return 1}lint(t=this.getAbsoluteIndex()){const l=super.lint(t),{type:P,childNodes:W,length:b}=this;let y;if(!this.isTemplate())return l;const G=v(this,B,H).call(this);if(G)G.fragment!==void 0&&(y={start:t,...this.getRootNode().posFromIndex(t)},l.push((0,F.D)(W[P==="template"?0:1],y,"useless fragment")));else return y={start:t,...this.getRootNode().posFromIndex(t)},l.push((0,F.Y)(this,y,"missing module name")),l;if(G.valid||(y!=null||(y={start:t,...this.getRootNode().posFromIndex(t)}),l.push((0,F.D)(W[1],y,"illegal module name"))),P==="magic-word"&&b===2)return y!=null||(y={start:t,...this.getRootNode().posFromIndex(t)}),l.push((0,F.Y)(this,y,"missing module function")),l;const V=this.getDuplicatedArgs();return V.length>0&&(y!=null||(y={start:t,...this.getRootNode().posFromIndex(t)}),l.push(...V.flatMap(([,X])=>X).map(X=>(0,F.D)(X,y,"duplicated parameter")))),l}insertAt(t,l=this.length){return super.insertAt(t,l),t.anon?v(this,Q,Z).call(this,t):t.name&&this.getArgs(t.name,!1,!1).add(t),t}getAllArgs(){return this.childNodes.filter(t=>t.type==="parameter")}getAnonArgs(){return this.getAllArgs().filter(({anon:t})=>t)}getArgs(t,l=!1,P=!0){const W=String(t).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1");let b;return s(this,D).has(W)?b=s(this,D).get(W):(b=new Set(this.getAllArgs().filter(({name:y})=>W===y)),s(this,D).set(W,b)),b}getDuplicatedArgs(){return this.isTemplate()?[...s(this,D)].filter(([,{size:t}])=>t>1).map(([t,l])=>[t,[...l]]):[]}getPossibleValues(){const{type:t,name:l,childNodes:P,constructor:{name:W}}=this;if(t==="template")throw new Error(`${W}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`);let b;switch(l){case"if":case"ifexist":case"ifexpr":case"iferror":b=2;break;case"ifeq":b=3;break;default:throw new Error(`${W}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`)}const y=P.slice(b,b+2).map(({childNodes:[,G]})=>G);for(let G=0;G<y.length;){const{length:V,0:X}=y[G].childNodes.filter(j=>j.text().trim());if(V===0)y.splice(G,1);else if(V>1||X.type!=="magic-word")G++;else try{const j=X.getPossibleValues();y.splice(G,1,...j),G+=j.length}catch(j){G++}}return y}print(){const{childNodes:t,length:l,firstChild:P,modifier:W,type:b}=this;return`<span class="wpb-${b}">{{${W}${b==="magic-word"?`${P.print()}${l===1?"":":"}${(0,$.S0)(t.slice(1),{sep:"|"})}`:(0,$.S0)(t,{sep:"|"})}}}</span>`}}C=new WeakMap,D=new WeakMap,B=new WeakSet,H=function(){const n=this.type==="template",t=this.childNodes[n?0:1];return t&&this.normalizeTitle(t.text(),n?10:828)},Q=new WeakSet,Z=function(n){const t=this.getAnonArgs(),l=typeof n!="number";for(let P=l?t.indexOf(n):n-1;P<t.length;P++){const W=t[P],{name:b}=W,y=String(P+1);b!==y&&(W.setAttribute("name",y),this.getArgs(y,!1,!1).add(W))}};var A=e(465),U=Object.defineProperty,N=(n,t,l)=>t in n?U(n,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[t]=l,O=(n,t,l)=>(N(n,typeof t!="symbol"?t+"":t,l),l);class L extends I.Token{constructor(t,l=M.Z.getConfig(),P=[]){super(void 0,l,P,{}),O(this,"type","arg");for(let W=0;W<t.length;W++)if(W===0){const b=new o.D(t[W],"arg-name",l,P,{});super.insertAt(b)}else if(W>1){const b=new A.R(t[W],l,P,{});super.insertAt(b)}else{const b=new I.Token(t[W],l,P);b.type="arg-default",b.setAttribute("stage",2),super.insertAt(b)}}get default(){var t,l;return(l=(t=this.childNodes[1])==null?void 0:t.text())!=null?l:!1}toString(t){return`{{{${super.toString(t,"|")}}}}`}text(){return`{{{${(0,$.fL)(this.childNodes.slice(0,2),"|")}}}}`}getAttribute(t){return t==="padding"?3:super.getAttribute(t)}getGaps(){return 1}lint(t=this.getAbsoluteIndex()){if(!this.getAttribute("include"))return[(0,F.Y)(this,{start:t},"unexpected template argument")];const{childNodes:[l,P,...W]}=this,b=l.lint(t+3);if(P&&b.push(...P.lint(t+4+String(l).length)),W.length>0){const y={start:t,...this.getRootNode().posFromIndex(t)};b.push(...W.map(G=>{const V=(0,F.D)(G,y,"invisible content inside triple braces"),{startIndex:X,startCol:j}=V;return{...V,startIndex:X-1,startCol:j-1}}))}return b}print(){return super.print({pre:"{{{",post:"}}}",sep:"|"})}}const S=(n,t=M.Z.getConfig(),l=[])=>{var P,W,b,y,G,V;const X=`${(P=t.excludes)!=null&&P.includes("heading")?"":"^(\0\\d+c\x7F)*={1,6}|"}\\[\\[|\\{{2,}|-\\{(?!\\{)`,{parserFunction:[,,,j]}=t,k=[],nt={"=":`
2
+ `,"{":"\\}{2,}|\\|","-":"\\}-","[":"\\]\\]"},et=new Map([["!","!"],["!!","+"],["(!","{"],["!)","}"],["!-","-"],["=","~"]]);let at=new RegExp(X,"gmu"),st=at.exec(n),ut=n.includes("}}"),q;for(;st||q!==void 0&&q<=n.length&&((b=(W=k[k.length-1])==null?void 0:W[0])!=null&&b.startsWith("="));){if(st!=null&&st[1]){const[,{length:pt}]=st;st[0]=st[0].slice(pt),st.index+=pt}const{0:tt,index:rt}=st!=null?st:{0:`
3
+ `,index:n.length},lt=(y=k.pop())!=null?y:{},{0:dt,index:it,parts:gt,findEqual:Ct,pos:Pt}=lt,$t=tt==="="&&Ct;if(tt==="]]"||tt==="}-")q=rt+2;else if(tt===`
4
+ `){q=rt+1;const{pos:pt,findEqual:ft}=(G=k[k.length-1])!=null?G:{};if(pt===void 0||ft||(0,$.PN)(n.slice(pt,it))!==""){const xt=/^(={1,6})(.+)\1((?:\s|\0\d+c\x7F)*)$/u.exec(n.slice(it,rt));xt&&(n=`${n.slice(0,it)}\0${l.length}h\x7F${n.slice(rt)}`,q=it+4+String(l.length).length,new K.D(xt[1].length,xt.slice(2),t,l))}}else if(tt==="|"||$t)q=rt+1,gt[gt.length-1].push(n.slice(Pt,rt)),tt==="|"&&gt.push([]),lt.pos=q,lt.findEqual=tt==="|",k.push(lt);else if(tt.startsWith("}}")){const pt=tt.slice(0,Math.min(dt.length,3)),ft=dt.length-pt.length,{length:xt}=l;q=rt+pt.length,gt[gt.length-1].push(n.slice(Pt,rt));let St=!1,mt="t";if(pt.length===3){const ht=gt.map(bt=>bt.join("=")),wt=ht.length>1&&(0,$.PN)(ht[1]).trim();new L(ht,t,l),wt&&wt.endsWith(":")&&j.includes(wt.slice(0,-1).toLowerCase())&&(mt="s")}else try{new d(gt[0][0],gt.slice(1),t,l);const ht=(0,$.PN)(gt[0][0]).trim();et.has(ht)?mt=et.get(ht):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(ht)?mt="m":/^#vardefine:./iu.test(ht)&&(mt="c")}catch(ht){if(ht instanceof SyntaxError&&ht.message.startsWith("\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A"))q=it+dt.length,St=!0;else throw ht}St||(n=`${n.slice(0,it+ft)}\0${xt}${mt}\x7F${n.slice(q)}`,q=it+ft+3+String(xt).length,ft>1?k.push({0:dt.slice(0,ft),index:it,pos:it+ft,parts:[[]]}):ft===1&&n[it-1]==="-"&&k.push({0:"-{",index:it-1,pos:it+1,parts:[[]]}))}else q=rt+tt.length,tt.startsWith("{")&&(st.pos=q,st.parts=[[]]),k.push(..."0"in lt?[lt]:[],st);ut&&(ut=n.slice(q).includes("}}"));let vt=k[k.length-1];!ut&&((V=vt==null?void 0:vt[0])!=null&&V.startsWith("{"))&&(k.pop(),vt=k[k.length-1]),at=new RegExp(X+(vt?`|${nt[vt[0][0]]}${vt.findEqual?"|=":""}`:""),"gmu"),at.lastIndex=q,st=at.exec(n)}return n}},551:(Y,_,e)=>{e.r(_),e.d(_,{parseCommentAndExt:()=>i});var $=e(891),M=e(541),K=Object.defineProperty,F=(s,h,m)=>h in s?K(s,h,{enumerable:!0,configurable:!0,writable:!0,value:m}):s[h]=m,I=(s,h,m)=>(F(s,typeof h!="symbol"?h+"":h,m),m);class w extends M.Token{constructor(){super(...arguments),I(this,"type","onlyinclude")}toString(h){return`<onlyinclude>${super.toString()}</onlyinclude>`}getAttribute(h){return h==="padding"?13:h==="plain"||super.getAttribute(h)}print(){return super.print({pre:'<span class="wpb-ext">&lt;onlyinclude&gt;</span>',post:'<span class="wpb-ext">&lt;/onlyinclude&gt;</span>'})}}var E=e(826),f=e(959),x=e(415),a=Object.defineProperty,o=(s,h,m)=>h in s?a(s,h,{enumerable:!0,configurable:!0,writable:!0,value:m}):s[h]=m,u=(s,h,m)=>(o(s,typeof h!="symbol"?h+"":h,m),m);class p extends(0,f.a)(x.m){constructor(h,m="",v,C,D=$.Z.getConfig(),B=[]){super(h,m,v!=null?v:"",v===void 0||C!=null?C:"",D,B),u(this,"type","include")}}var c=e(895),r=e(976);const i=(s,h=$.Z.getConfig(),m=[],v=!1)=>{const C="<onlyinclude>",D="</onlyinclude>",{length:B}=C;if(v){let A=s.indexOf(C),U=s.indexOf(D,A+B);if(A!==-1&&U!==-1){let N="";for(;A!==-1&&U!==-1;){const O=`\0${m.length}e\x7F`;new w(s.slice(A+B,U),h,m),A>0?(new E.O(s.slice(0,A),h,m),N+=`\0${m.length-1}c\x7F${O}`):N+=O,s=s.slice(U+B+1),A=s.indexOf(C),U=s.indexOf(D,A+B)}return s&&(new E.O(s,h,m),N+=`\0${m.length-1}c\x7F`),N}}const H=h.ext.join("|"),Q=v?"includeonly":"(?:no|only)include",Z=v?"noinclude":"includeonly",d=new RegExp(`<!--.*?(?:-->|$)|<${Q}(?:\\s[^>]*?)?>|</${Q}\\s*>|<(${H})(\\s[^>]*?)?(?:/>|>(.*?)</(\\1\\s*)>)|<(${Z})(\\s[^>]*?)?(?:/>|>(.*?)(?:</(\\5\\s*)>|$))`,"gisu");return s.replace(d,(A,U,N,O,L,S,n,t,l)=>{const P=`\0${m.length}${U?"e":"c"}\x7F`;if(U)new c.$(U,N,O,L,h,m);else if(A.startsWith("<!--")){const W=A.endsWith("-->");new r.T(A.slice(4,W?-3:void 0),W,h,m)}else S?new p(S,n,t,l,h,m):new E.O(A,h,m);return P})}},370:(Y,_,e)=>{e.r(_),e.d(_,{parseConverter:()=>Q});var $=e(891),M=e(467);const K=Z=>{class d extends Z{}return d};var F=e(541),I=e(169),w=e(34),E=Object.defineProperty,f=(Z,d,A)=>d in Z?E(Z,d,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[d]=A,x=(Z,d,A)=>(f(Z,typeof d!="symbol"?d+"":d,A),A),a=(Z,d,A)=>{if(!d.has(Z))throw TypeError("Cannot "+A)},o=(Z,d,A)=>(a(Z,d,"read from private field"),A?A.call(Z):d.get(Z)),u=(Z,d,A)=>{if(d.has(Z))throw TypeError("Cannot add the same private member more than once");d instanceof WeakSet?d.add(Z):d.set(Z,A)},p=(Z,d,A,U)=>(a(Z,d,"write to private field"),U?U.call(Z,A):d.set(Z,A),A),c;const r=new Set(["A","T","R","D","-","H","N"]);class i extends F.Token{constructor(d,A=$.Z.getConfig(),U=[]){super(void 0,A,U,{}),x(this,"type","converter-flags"),u(this,c,void 0),this.append(...d.map(N=>new w.D(N,"converter-flag",A,U)))}afterBuild(){p(this,c,this.childNodes.map(d=>d.text().trim()))}toString(d){return super.toString(d,";")}text(){return super.text(";")}getGaps(){return 1}getUnknownFlags(){return new Set(o(this,c).filter(d=>/\{{3}[^{}]+\}{3}/u.test(d)))}getVariantFlags(){const d=new Set(this.getAttribute("config").variants);return new Set(o(this,c).filter(A=>d.has(A)))}lint(d=this.getAbsoluteIndex()){const A=this.getVariantFlags(),U=this.getUnknownFlags(),N=new Set(o(this,c).filter(P=>r.has(P))),{length:O}=o(this,c).filter(P=>!P),L=o(this,c).length-U.size-O,S=super.lint(d);if(A.size===L||N.size===L)return S;const n={start:d,...this.getRootNode().posFromIndex(d)},{childNodes:t,length:l}=this;for(let P=0;P<l;P++){const W=t[P],b=W.text().trim();if(b&&!A.has(b)&&!U.has(b)&&(A.size>0||!N.has(b))){const y=(0,I.D)(W,n,"invalid conversion flag");S.push(y)}}return S}print(){return super.print({sep:";"})}}c=new WeakMap;var s=Object.defineProperty,h=(Z,d,A)=>d in Z?s(Z,d,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[d]=A,m=(Z,d,A)=>(h(Z,typeof d!="symbol"?d+"":d,A),A);class v extends F.Token{constructor(d,A=!0,U=$.Z.getConfig(),N=[]){super(void 0,U,N),m(this,"type","converter-rule");const O=d.indexOf(":"),L=d.slice(0,O).indexOf("=>"),S=L===-1?d.slice(0,O):d.slice(L+2,O);A&&U.variants.includes(S.trim())?(super.insertAt(new w.D(S,"converter-rule-variant",U,N)),super.insertAt(new w.D(d.slice(O+1),"converter-rule-to",U,N)),L!==-1&&super.insertAt(new w.D(d.slice(0,L),"converter-rule-from",U,N),0)):super.insertAt(new w.D(d,"converter-rule-to",U,N))}toString(d){const{childNodes:A}=this;if(A.length===3){const[U,N,O]=A;return`${U.toString(d)}=>${N.toString(d)}:${O.toString(d)}`}return super.toString(d,":")}text(){const{childNodes:d}=this;if(d.length===3){const[A,U,N]=d;return`${A.text()}=>${U.text()}:${N.text()}`}return super.text(":")}getGaps(d){return d===0&&this.length===3?2:1}print(){const{childNodes:d}=this;if(d.length===3){const[A,U,N]=d;return`<span class="wpb-converter-rule">${A.print()}=>${U.print()}:${N.print()}</span>`}return super.print({sep:":"})}}var C=Object.defineProperty,D=(Z,d,A)=>d in Z?C(Z,d,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[d]=A,B=(Z,d,A)=>(D(Z,typeof d!="symbol"?d+"":d,A),A);class H extends K(F.Token){constructor(d,A,U=$.Z.getConfig(),N=[]){super(void 0,U,N),B(this,"type","converter"),this.append(new i(d,U,N));const[O]=A,L=O.includes(":"),S=new v(O,L,U,N);L&&S.length===1?this.insertAt(new v(A.join(";"),!1,U,N)):this.append(S,...A.slice(1).map(n=>new v(n,!0,U,N)))}toString(d){const{childNodes:[A,...U]}=this;return`-{${A.toString()}${A.length>0?"|":""}${U.map(N=>N.toString()).join(";")}}-`}text(){const{childNodes:[d,...A]}=this;return`-{${d.text()}|${(0,M.fL)(A,";")}}-`}getAttribute(d){return d==="padding"?2:super.getAttribute(d)}getGaps(d){return d||this.firstChild.length>0?1:0}print(){const{childNodes:[d,...A]}=this;return`<span class="wpb-converter">-{${d.print()}${d.length>0?"|":""}${(0,M.S0)(A,{sep:";"})}}-</span>`}}const Q=(Z,d=$.Z.getConfig(),A=[])=>{const U=/-\{/gu,N=/-\{|\}-/gu,O=[];let L=U,S=L.exec(Z);for(;S;){const{0:n,index:t}=S;if(n==="}-"){const l=O.pop(),{length:P}=A,W=Z.slice(l.index+2,t),b=W.indexOf("|"),[y,G]=b===-1?[[],W]:[W.slice(0,b).split(";"),W.slice(b+1)],V=G.replace(/(&[#a-z\d]+);/giu,"$1"),X=`(?:${d.variants.join("|")})`,j=V.split(new RegExp(`;(?=\\s*(?:${X}|[^;]*?=>\\s*${X})\\s*:)`,"u")).map(k=>k.replace(/\x01/gu,";"));new H(y,j,d,A),Z=`${Z.slice(0,l.index)}\0${P}v\x7F${Z.slice(t+2)}`,O.length===0&&(L=U),L.lastIndex=l.index+3+String(P).length}else O.push(S),L=N,L.lastIndex=t+2;S=L.exec(Z)}return Z}},418:(Y,_,e)=>{e.r(_),e.d(_,{parseExternalLinks:()=>F});var $=e(467),M=e(891),K=e(876);const F=(I,w=M.Z.getConfig(),E=[])=>{const f=new RegExp(`\\[((?:(?:${w.protocol}|//)${$._X}|\0\\d+m\x7F)${$.Qk})(\\p{Zs}*)([^\\]-\b
5
+ -\uFFFD]*)\\]`,"giu");return I.replace(f,(x,a,o,u)=>{const{length:p}=E,c=/&[lg]t;/u.exec(a);return c&&(a=a.slice(0,c.index),o="",u=`${a.slice(c.index)}${o}${u}`),new K.a(a,o,u,w,E),`\0${p}w\x7F`})}},362:(Y,_,e)=>{e.r(_),e.d(_,{parseHrAndDoubleUnderscore:()=>p});var $=e(891),M=e(439),K=Object.defineProperty,F=(c,r,i)=>r in c?K(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,I=(c,r,i)=>(F(c,typeof r!="symbol"?r+"":r,i),i);class w extends M.h{constructor(){super(...arguments),I(this,"type","hr")}}var E=e(959),f=Object.defineProperty,x=(c,r,i)=>r in c?f(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,a=(c,r,i)=>(x(c,typeof r!="symbol"?r+"":r,i),i);class o extends(0,E.a)(M.h){constructor(r,i,s=$.Z.getConfig(),h=[]){super(r,s,h),a(this,"type","double-underscore")}getAttribute(r){return r==="padding"?2:super.getAttribute(r)}toString(r){return`__${this.innerText}__`}print(){return super.print({pre:"__",post:"__"})}}var u=e(485);const p=({firstChild:{data:c},type:r,name:i},s=$.Z.getConfig(),h=[])=>{const{doubleUnderscore:m}=s,v=new Set(m[0]),C=new Set(m[1]);return r!=="root"&&(r!=="ext-inner"||i!=="poem")&&(c=`\0${c}`),c=c.replace(/^((?:\0\d+c\x7F)*)(-{4,})/gmu,(D,B,H)=>(new w(H,s,h),`${B}\0${h.length-1}r\x7F`)).replace(new RegExp(`__(${m.flat().join("|")})__`,"giu"),(D,B)=>{const H=C.has(B);return H||v.has(B.toLowerCase())?(new o(B,H,s,h),`\0${h.length-1}u\x7F`):D}).replace(/^((?:\0\d+c\x7F)*)(={1,6})(.+)\2((?:[^\S\n]|\0\d+c\x7F)*)$/gmu,(D,B,H,Q,Z)=>{const d=`${B}\0${h.length}h\x7F`;return new u.D(H.length,[Q,Z],s,h),d}),r==="root"||r==="ext-inner"&&i==="poem"?c:c.slice(1)}},980:(Y,_,e)=>{e.r(_),e.d(_,{parseHtml:()=>h});var $=e(891),M=e(83),K=e(169),F=e(467),I=e(541),w=Object.defineProperty,E=(m,v,C)=>v in m?w(m,v,{enumerable:!0,configurable:!0,writable:!0,value:C}):m[v]=C,f=(m,v,C)=>(E(m,typeof v!="symbol"?v+"":v,C),C),x=(m,v,C)=>{if(!v.has(m))throw TypeError("Cannot "+C)},a=(m,v,C)=>(x(m,v,"read from private field"),C?C.call(m):v.get(m)),o=(m,v,C)=>{if(v.has(m))throw TypeError("Cannot add the same private member more than once");v instanceof WeakSet?v.add(m):v.set(m,C)},u=(m,v,C,D)=>(x(m,v,"write to private field"),D?D.call(m,C):v.set(m,C),C),p,c,r;const i=new Set(["if","ifeq","ifexpr","ifexist","iferror","switch"]);class s extends I.Token{constructor(v,C,D,B,H=$.Z.getConfig(),Q=[]){super(void 0,H,Q),f(this,"type","html"),o(this,p,void 0),o(this,c,void 0),o(this,r,void 0),this.insertAt(C),this.setAttribute("name",v.toLowerCase()),u(this,p,D),u(this,c,B),u(this,r,v)}get closing(){return a(this,p)}toString(v){return`<${this.closing?"/":""}${a(this,r)}${super.toString()}${a(this,c)?"/":""}>`}text(){const{closing:v}=this;return`<${v?"/":""}${a(this,r)}${v?"":super.text()}${a(this,c)?"/":""}>`}getAttribute(v){return v==="padding"?a(this,r).length+(this.closing?2:1):super.getAttribute(v)}lint(v=this.getAbsoluteIndex()){const C=super.lint(v);let D;this.name==="h1"&&!this.closing&&(D=(0,K.Y)(this,{start:v},"<h1>"),C.push(D)),this.closest("table-attrs")&&(D!=null||(D=(0,K.Y)(this,{start:v},"")),C.push({...D,message:$.Z.msg("HTML tag in table attributes")}));try{this.findMatchingTag()}catch(B){if(B instanceof SyntaxError){const{message:H}=B;D!=null||(D=(0,K.Y)(this,{start:v},""));const[Q]=H.split(":"),Z={...D,message:$.Z.msg(Q)};if(Q==="unclosed tag")Z.severity="warning";else if(Q==="unmatched closing tag"){const d=this.closest("magic-word");d&&i.has(d.name)&&(Z.severity="warning")}C.push(Z)}}return C}findMatchingTag(){const{html:v}=this.getAttribute("config"),{name:C,parentNode:D,closing:B}=this,H=(0,F.jq)(String(this));if(B&&(a(this,c)||v[2].includes(C)))throw new SyntaxError(`tag that is both closing and self-closing: ${H}`);if(v[2].includes(C)||a(this,c)&&v[1].includes(C))return this;if(a(this,c)&&v[0].includes(C))throw new SyntaxError(`invalid self-closing tag: ${H}`);if(!D)return;const{childNodes:Q}=D,Z=Q.indexOf(this),d=B?Q.slice(0,Z).reverse().filter(({type:U,name:N})=>U==="html"&&N===C):Q.slice(Z+1).filter(({type:U,name:N})=>U==="html"&&N===C);let A=B?-1:1;for(const U of d)if(a(U,p)?A--:A++,A===0)return U;throw new SyntaxError(`${B?"unmatched closing":"unclosed"} tag: ${H}`)}print(){return super.print({pre:`&lt;${this.closing?"/":""}${a(this,r)}`,post:`${a(this,c)?"/":""}&gt;`})}}p=new WeakMap,c=new WeakMap,r=new WeakMap;const h=(m,v=$.Z.getConfig(),C=[])=>{const D=/^(\/?)([a-z][^\s/>]*)((?:\s|\/(?!>))[^>]*?)?(\/?>)([^<]*)$/iu,B=new Set(v.html.flat()),H=m.split("<");let Q=H.shift();for(const Z of H){const d=D.exec(Z),A=d==null?void 0:d[2],U=A==null?void 0:A.toLowerCase();if(!d||!B.has(U)){Q+=`<${Z}`;continue}const[,N,,O="",L,S]=d,n=new M.x(O,"html-attrs",U,v,C),t=n.getAttr("itemprop");if(U==="meta"&&(t===void 0||n.getAttr("content")===void 0)||U==="link"&&(t===void 0||n.getAttr("href")===void 0)){Q+=`<${Z}`,C.pop();continue}Q+=`\0${C.length}x\x7F${S}`,new s(A,n,N==="/",L==="/>",v,C)}return Q}},106:(Y,_,e)=>{e.r(_),e.d(_,{parseLinks:()=>x});var $=e(891),M=e(524),K=e(533),F=e(299),I=Object.defineProperty,w=(a,o,u)=>o in a?I(a,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[o]=u,E=(a,o,u)=>(w(a,typeof o!="symbol"?o+"":o,u),u);class f extends F.o{constructor(){super(...arguments),E(this,"type","category")}}const x=(a,o=$.Z.getConfig(),u=[])=>{const{parseQuotes:p}=e(704),c=o.inExt?/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]]))?\]\](.*)$/su:/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(?:(\||\0\d+!\x7F)(.*?[^\]])?)?\]\](.*)$/su,r=/^((?:(?!\0\d+!\x7F)[^\n<>[\]{}|])+)(\||\0\d+!\x7F)(.*)$/su,i=new RegExp(`^\\s*(?:${o.protocol})`,"iu"),s=a.split("[[");let h=s.shift();for(let m=0;m<s.length;m++){let v=!1,C,D,B,H;const Q=s[m],Z=c.exec(Q);if(Z)[,C,D,B,H]=Z,H.startsWith("]")&&(B!=null&&B.includes("["))&&(B+="]",H=H.slice(1));else{const L=r.exec(Q);L&&(v=!0,[,C,D,B]=L)}if(C===void 0||i.test(C)||/\0\d+[exhbru]\x7F/u.test(C)){h+=`[[${Q}`;continue}const d=C.trim().startsWith(":");if(d&&v){h+=`[[${Q}`;continue}const A=$.Z.normalizeTitle(C,0,!1,o,!0,!0,!0),{ns:U,valid:N}=A;if(N){if(v){if(U!==6){h+=`[[${Q}`;continue}let L=!1;for(m++;m<s.length;m++){const S=s[m],n=S.split("]]");if(n.length>2){L=!0,B+=`[[${n[0]}]]${n[1]}`,H=n.slice(2).join("]]");break}else if(n.length===2)B+=`[[${n[0]}]]${n[1]}`;else{B+=`[[${S}`;break}}if(B=x(B,o,u),!L){h+=`[[${C}${D}${B}`;continue}}}else{h+=`[[${Q}`;continue}B&&(B=p(B,o,u)),h+=`\0${u.length}l\x7F${H}`;let O=M.h;d||(U===6?O=K.q:U===14&&(O=f)),B===void 0&&D&&(B=""),new O(C,B,o,u,D)}return h}},904:(Y,_,e)=>{e.r(_),e.d(_,{parseList:()=>f});var $=e(891),M=e(933),K=Object.defineProperty,F=(x,a,o)=>a in x?K(x,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[a]=o,I=(x,a,o)=>(F(x,typeof a!="symbol"?a+"":a,o),o);class w extends M.T{constructor(){super(...arguments),I(this,"type","list")}}var E=e(461);const f=(x,a=$.Z.getConfig(),o=[])=>{const u=/^((?:\0\d+c\x7F)*)([;:*#]+)/u.exec(x);if(!u)return x;const[p,c,r]=u;let i=`${c}\0${o.length}d\x7F${x.slice(p.length)}`,s=r.split(";").length-1;if(new w(r,a,o),!s)return i;let h=/:+|-\{/gu,m=h.exec(i),v=0;for(;m&&s;){const{0:C,index:D}=m;if(C.startsWith(":")){if(C.length>=s)return new E.k(":".repeat(s),a,o),`${i.slice(0,D)}\0${o.length-1}d\x7F${i.slice(D+s)}`;i=`${i.slice(0,D)}\0${o.length}d\x7F${i.slice(h.lastIndex)}`,s-=C.length,h.lastIndex=D+4+String(o.length).length,new E.k(C,a,o)}else if(C==="-{"){if(!v){const{lastIndex:B}=h;h=/-\{|\}-/gu,h.lastIndex=B}v++}else if(v--,!v){const{lastIndex:B}=h;h=/:+|-\{/gu,h.lastIndex=B}m=h.exec(i)}return i}},311:(Y,_,e)=>{e.r(_),e.d(_,{parseMagicLinks:()=>F});var $=e(467),M=e(891),K=e(686);const F=(I,w=M.Z.getConfig(),E=[])=>{const f=new RegExp(`(^|[^\\p{L}\\d_])(?:${w.protocol})(${$._X}${$.Qk})`,"giu");return I.replace(f,(x,a,o)=>{let u="",p=a?x.slice(1):x;const c=/&(?:lt|gt|nbsp|#x0*(?:3[ce]|a0)|#0*(?:6[02]|160));/iu.exec(p);c&&(u=p.slice(c.index),p=p.slice(0,c.index));const r=new RegExp(`[,;.:!?${p.includes("(")?"":")"}]+$`,"u"),i=r.exec(p);if(i){let s=0;i[0].startsWith(";")&&/&(?:[a-z]+|#x[\da-f]+|#\d+)$/iu.test(p.slice(0,i.index))&&(s=1),u=`${p.slice(i.index+s)}${u}`,p=p.slice(0,i.index+s)}return u.length>=o.length?x:(new K.k(p,!1,w,E),`${a}\0${E.length-1}w\x7F${u}`)})}},704:(Y,_,e)=>{e.r(_),e.d(_,{parseQuotes:()=>f});var $=e(891),M=e(169),K=e(439),F=Object.defineProperty,I=(x,a,o)=>a in x?F(x,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[a]=o,w=(x,a,o)=>(I(x,typeof a!="symbol"?a+"":a,o),o);class E extends K.h{constructor(){super(...arguments),w(this,"type","quote")}lint(a=this.getAbsoluteIndex()){const{previousSibling:o,nextSibling:u}=this,p=$.Z.msg('lonely "$1"',"'"),c=[];let r;if((o==null?void 0:o.type)==="text"&&o.data.endsWith("'")){r=(0,M.Y)(this,{start:a},p);const{startIndex:i,startLine:s,startCol:h}=r,[,{length:m}]=/(?:^|[^'])('+)$/u.exec(o.data),v=a-m;c.push({...r,startIndex:v,endIndex:i,startCol:h-m,endLine:s,endCol:h})}if((u==null?void 0:u.type)==="text"&&u.data.startsWith("'")){r!=null||(r=(0,M.Y)(this,{start:a},p));const{endIndex:i,endLine:s,endCol:h}=r,[{length:m}]=/^'+/u.exec(u.data),v=i+m;c.push({...r,startIndex:i,endIndex:v,startLine:s,startCol:h,endCol:h+m})}return c}}const f=(x,a=$.Z.getConfig(),o=[])=>{var u;const p=x.split(/('{2,})/u),{length:c}=p;if(c===1)return x;let r=0,i=0,s,h,m;for(let v=1;v<c;v+=2){const{length:C}=p[v];switch(C){case 2:i++;break;case 4:p[v-1]+="'",p[v]="'''";case 3:if(r++,s!==void 0)break;p[v-1].endsWith(" ")?h===void 0&&m===void 0&&(m=v):p[v-1].slice(-2,-1)===" "?s=v:h!=null||(h=v);break;default:p[v-1]+="'".repeat(C-5),p[v]="'''''",i++,r++}}if(i%2===1&&r%2===1){const v=(u=s!=null?s:h)!=null?u:m;v!==void 0&&(p[v]="''",p[v-1]+="'")}for(let v=1;v<c;v+=2)new E(p[v],a,o),p[v]=`\0${o.length-1}q\x7F`;return p.join("")}},508:(Y,_,e)=>{e.r(_),e.d(_,{parseTable:()=>L});var $=e(891),M=e(541),K=e(169),F=e(223),I=e(669),w=e(83);class E extends M.Token{constructor(n,t,l,P=$.Z.getConfig(),W=[],b={}){super(void 0,P,W,b),this.append(new I.SyntaxToken(t,n,"table-syntax",P,W,{}),new w.x(l,"table-attrs",this.type,P,W))}}class f extends E{lint(n=this.getAbsoluteIndex()){const t=super.lint(n),l=this.childNodes.find(({type:y})=>y==="table-inter");if(!l)return t;const P=l.childNodes.find(y=>y.text().trim()),W=/^\s*(?:!|\{\{\s*![!-]?\s*\}\})/u;if(!P||W.test(String(P))||P.type==="arg"&&W.test(P.default||""))return t;if(P.type==="magic-word")try{if(P.getPossibleValues().every(y=>W.test(y.text())))return t}catch(y){}const b=(0,K.D)(l,{start:n},"content to be moved out from the table");return t.push({...b,startIndex:b.startIndex+1,startLine:b.startLine+1,startCol:0}),t}}var x=Object.defineProperty,a=(S,n,t)=>n in S?x(S,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):S[n]=t,o=(S,n,t)=>(a(S,typeof n!="symbol"?n+"":n,t),t);const u=/^\n[^\S\n]*(?:\|\}|\{\{\s*!\s*\}\}\}|\{\{\s*!\)\s*\}\})$/u;class p extends f{constructor(n,t,l=$.Z.getConfig(),P=[]){super(/^(?:\{\||\{\{\{\s*!\s*\}\}|\{\{\s*\(!\s*\}\})$/u,n,t,l,P,{}),o(this,"type","table")}get closed(){return this.lastChild.type==="table-syntax"}lint(n=this.getAbsoluteIndex()){const t=super.lint(n);if(!this.closed){const{firstChild:l}=this,P=(0,K.D)(l,{start:n},"unclosed table");t.push(P)}return t}close(n=`
6
+ |}`,t=!1){const l=this.getAttribute("config"),P=this.getAttribute("accum"),W=[n],b=F.j.run(()=>super.insertAt(new I.SyntaxToken(void 0,u,"table-syntax",l,P,{})));this.lastChild.replaceChildren(...W)}}var c=Object.defineProperty,r=(S,n,t)=>n in S?c(S,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):S[n]=t,i=(S,n,t)=>(r(S,typeof n!="symbol"?n+"":n,t),t);class s extends f{constructor(n,t,l=$.Z.getConfig(),P=[]){super(/^\n[^\S\n]*(?:\|-+|\{\{\s*!\s*\}\}-+|\{\{\s*!-\s*\}\}-*)$/u,n,t,l,P,{}),i(this,"type","tr")}}var h=Object.defineProperty,m=(S,n,t)=>n in S?h(S,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):S[n]=t,v=(S,n,t)=>(m(S,typeof n!="symbol"?n+"":n,t),t),C=(S,n,t)=>{if(!n.has(S))throw TypeError("Cannot "+t)},D=(S,n,t)=>(C(S,n,"read from private field"),t?t.call(S):n.get(S)),B=(S,n,t)=>{if(n.has(S))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(S):n.set(S,t)},H=(S,n,t,l)=>(C(S,n,"write to private field"),l?l.call(S,t):n.set(S,t),t),Q=(S,n,t,l)=>({set _(P){H(S,n,P,t)},get _(){return D(S,n,l)}}),Z=(S,n,t)=>(C(S,n,"access private method"),t),d,A,U;class N extends E{constructor(n,t,l=$.Z.getConfig(),P=[]){var W;let b=/\||\0\d+!\x7F/u.exec(t!=null?t:""),y=b?t.slice(0,b.index):"";/\[\[|-\{/u.test(y)&&(b=null,y=""),super(/^(?:\n[^\S\n]*(?:[|!]|\|\+|\{\{\s*!\s*\}\}\+?)|(?:\||\{\{\s*!\s*\}\}){2}|!!|\{\{\s*!!\s*\}\})$/u,n,y,l,P),B(this,A),v(this,"type","td"),B(this,d,""),b&&([Q(this,d)._]=b);const G=new M.Token(t==null?void 0:t.slice(((W=b==null?void 0:b.index)!=null?W:NaN)+D(this,d).length),l,P);G.type="td-inner",G.setAttribute("stage",4),this.insertAt(G)}get subtype(){return Z(this,A,U).call(this).subtype}afterBuild(){D(this,d).includes("\0")&&H(this,d,this.buildFromStr(D(this,d),"string"))}toString(n){const{childNodes:[t,l,P]}=this;return`${t.toString()}${l.toString()}${D(this,d)}${P.toString()}`}text(){const{childNodes:[n,t,l]}=this;return`${n.text()}${t.text()}${D(this,d)}${l.text()}`}getGaps(n){return n===1?D(this,d).length:0}lint(n=this.getAbsoluteIndex()){const t=super.lint(n);n+=this.getRelativeIndex(this.length-1);for(const l of this.lastChild.childNodes)l.type==="text"&&l.data.includes("|")&&t.push((0,K.D)(l,{start:n},'additional "|" in a table cell',"warning"));return t}print(){const{childNodes:[n,t,l]}=this;return`<span class="wpb-td">${n.print()}${t.print()}${D(this,d)}${l.print()}</span>`}}d=new WeakMap,A=new WeakSet,U=function(){const S=this.firstChild.text(),n=S[S.length-1];let t="td";return n==="!"?t="th":n==="+"&&(t="caption"),{subtype:t}};var O=e(461);const L=({firstChild:{data:S},type:n,name:t},l=$.Z.getConfig(),P=[])=>{const W=[],b=S.split(`
7
+ `);let y=n==="root"||n==="parameter-value"||n==="ext-inner"&&t==="poem"?"":`
8
+ ${b.shift()}`;const G=(V,X)=>{if(!X){y+=V;return}const{lastChild:j}=X;if(j.constructor===M.Token)j.setText(String(j)+V);else{const k=new M.Token(V,l,P);k.type="table-inter",k.setAttribute("stage",3),X.insertAt(k)}};for(const V of b){let X=W.pop();const[j]=/^(?:\s|\0\d+c\x7F)*/u.exec(V),k=V.slice(j.length),nt=/^(:*)((?:\s|\0\d+c\x7F)*)(\{\||\{(?:\0\d+c\x7F)*\0\d+!\x7F|\0\d+\{\x7F)(.*)$/u.exec(k);if(nt){for(;X&&X.type!=="td";)X=W.pop();const[,tt,rt,lt,dt]=nt;tt&&new O.k(tt,l,P),G(`
9
+ ${j}${tt&&`\0${P.length-1}d\x7F`}${rt}\0${P.length}b\x7F`,X),W.push(...X?[X]:[],new p(lt,dt,l,P));continue}else if(!X){y+=`
10
+ ${V}`;continue}const et=/^(?:(\|\}|\0\d+!\x7F\}|\0\d+\}\x7F)|(\|-+|\0\d+!\x7F-+|\0\d+-\x7F-*)(?!-)|(!|(?:\||\0\d+!\x7F)\+?))(.*)$/u.exec(k);if(!et){G(`
11
+ ${V}`,X),W.push(X);continue}const[,at,st,ut,q]=et;if(at){for(;X.type!=="table";)X=W.pop();X.close(`
12
+ ${j}${at}`,!0),G(q,W[W.length-1])}else if(st){X.type==="td"&&(X=W.pop()),X.type==="tr"&&(X=W.pop());const tt=new s(`
13
+ ${j}${st}`,q,l,P);W.push(X,tt),X.insertAt(tt)}else{X.type==="td"&&(X=W.pop());const tt=ut==="!"?/!!|(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu:/(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu;let rt=tt.exec(q),lt=0,dt=`
14
+ ${j}${ut}`;for(;rt;)X.insertAt(new N(dt,q.slice(lt,rt.index),l,P)),{lastIndex:lt}=tt,[dt]=rt,rt=tt.exec(q);const it=new N(dt,q.slice(lt),l,P);W.push(X,it),X.insertAt(it)}}return y.slice(1)}},34:(Y,_,e)=>{e.d(_,{D:()=>K});var $=e(891),M=e(541);class K extends M.Token{constructor(I,w,E=$.Z.getConfig(),f=[],x){super(I,E,f,x),this.type=w}}},83:(Y,_,e)=>{e.d(_,{x:()=>Q});var $=e(169),M=e(467),K=e(891),F=e(541),I=e(34),w=e(444),E=(Z,d,A)=>{if(!d.has(Z))throw TypeError("Cannot "+A)},f=(Z,d,A)=>(E(Z,d,"read from private field"),A?A.call(Z):d.get(Z)),x=(Z,d,A)=>{if(d.has(Z))throw TypeError("Cannot add the same private member more than once");d instanceof WeakSet?d.add(Z):d.set(Z,A)},a=(Z,d,A,U)=>(E(Z,d,"write to private field"),U?U.call(Z,A):d.set(Z,A),A),o,u;const p=new Set(["id","class","style","lang","dir","title","tabindex","aria-describedby","aria-flowto","aria-hidden","aria-label","aria-labelledby","aria-owns","role","about","property","resource","datatype","typeof","itemid","itemprop","itemref","itemscope","itemtype"]),c=new Set(["align"]),r=new Set(["cite"]),i=new Set(["cite","datetime"]),s=new Set(["width"]),h=new Set(["align","valign","abbr","axis","headers","scope","rowspan","colspan","width","height","bgcolor"]),m=new Set(["type"]),v={div:c,h1:c,h2:c,h3:c,h4:c,h5:c,h6:c,blockquote:r,q:r,p:c,br:new Set(["clear"]),pre:s,ins:i,del:i,ul:m,ol:new Set(["type","start","reversed"]),li:new Set(["type","value"]),table:new Set(["summary","width","border","frame","rules","cellspacing","cellpadding","align","bgcolor"]),caption:c,tr:new Set(["bgcolor","align","valign"]),td:h,th:h,img:new Set(["alt","src","width","height","srcset"]),font:new Set(["size","color","face"]),hr:s,rt:new Set(["rbspan"]),data:new Set(["value"]),time:new Set(["datetime"]),meta:new Set(["itemprop","content"]),link:new Set(["itemprop","href","title"]),gallery:new Set(["mode","showfilename","caption","perrow","widths","heights","showthumbnails","type"]),poem:new Set(["compact","align"]),categorytree:new Set(["align","hideroot","onlyroot","depth","mode","hideprefix","namespaces","showcount","notranslations"]),combooption:new Set(["name","for","inline","align"])},C=new Set,D={nowiki:C,indicator:new Set(["name"]),langconvert:new Set(["from","to"]),ref:new Set(["group","name","extends","follow","dir"]),references:new Set(["group","responsive"]),charinsert:new Set(["label"]),choose:new Set(["uncached","before","after"]),option:new Set(["weight"]),imagemap:C,inputbox:C,templatestyles:new Set(["src","wrapper"]),dynamicpagelist:C,poll:new Set(["id","show-results-before-voting"]),sm2:m,flashmp3:m,tab:new Set(["nested","name","index","class","block","inline","openname","closename","collapsed","dropdown","style","bgcolor","container","id","title"]),tabs:new Set(["plain","class","container","id","title","style"]),combobox:new Set(["placeholder","value","id","class","text","dropdown","style"])},B=new RegExp("expression|(?:filter|accelerator|-o-link(?:-source)?|-o-replace)\\s*:|(?:url|image(?:-set)?)\\s*\\(|attr\\s*\\([^)]+[\\s,]url","u");class H extends F.Token{constructor(d,A,U,N="",O,L=[],S=K.Z.getConfig(),n=[]){const t=new I.D(U,"attr-key",S,n,{});let l;if(U==="title"||A==="img"&&U==="alt")l=new F.Token(O,S,n,{}),l.type="attr-value",l.setAttribute("stage",w.C-1);else if(A==="gallery"&&U==="caption"){const P={...S,excludes:[...S.excludes,"quote","extLink","magicLink","list"]};l=new F.Token(O,P,n,{}),l.type="attr-value",l.setAttribute("stage",5)}else if(A==="choose"&&(U==="before"||U==="after")){const P={...S,excludes:[...S.excludes,"heading","html","table","hr","list"]};l=new F.Token(O,P,n,{}),l.type="attr-value",l.setAttribute("stage",1)}else l=new I.D(O,"attr-value",S,n,{});super(void 0,S,n),x(this,o,void 0),x(this,u,void 0),this.type=d,this.append(t,l),a(this,o,N),a(this,u,L),this.tag=A,this.setAttribute("name",(0,M.PN)(U).trim().toLowerCase())}get balanced(){return!f(this,o)||f(this,u)[0]===f(this,u)[1]}afterBuild(){f(this,o).includes("\0")&&a(this,o,this.buildFromStr(f(this,o),"string")),this.parentNode&&this.setAttribute("tag",this.parentNode.name),this.setAttribute("name",this.firstChild.text().trim().toLowerCase())}toString(d){const[A="",U=""]=f(this,u);return f(this,o)?`${super.toString(d,`${f(this,o)}${A}`)}${U}`:this.firstChild.toString(d)}text(){return f(this,o)?`${super.text(`${f(this,o).trim()}"`)}"`:this.firstChild.text()}getGaps(){var d,A;return f(this,o)?f(this,o).length+((A=(d=f(this,u)[0])==null?void 0:d.length)!=null?A:0):0}lint(d=this.getAbsoluteIndex()){var A;const U=super.lint(d),{balanced:N,firstChild:O,lastChild:L,type:S,name:n,tag:t}=this,l=this.getValue();let P;if(!N){const W=this.getRootNode();P={start:d,...W.posFromIndex(d)};const b=(0,$.D)(L,P,"unclosed quotes","warning"),y=b.startIndex-1;U.push({...b,startIndex:y,startCol:b.startCol-1})}return D[t]&&!D[t].has(n)||(S==="ext-attr"?t in v:!/\{\{[^{]+\}\}/u.test(n))&&!((A=v[t])!=null&&A.has(n))&&!/^(?:xmlns:[\w:.-]+|data-[^:]*)$/u.test(n)&&(t==="meta"||t==="link"||!p.has(n))?(P!=null||(P={start:d,...this.getRootNode().posFromIndex(d)}),U.push((0,$.D)(O,P,"illegal attribute name"))):n==="style"&&typeof l=="string"&&B.test(l)?(P!=null||(P={start:d,...this.getRootNode().posFromIndex(d)}),U.push((0,$.D)(L,P,"insecure style"))):n==="tabindex"&&typeof l=="string"&&l.trim()!=="0"&&(P!=null||(P={start:d,...this.getRootNode().posFromIndex(d)}),U.push((0,$.D)(L,P,"nonzero tabindex"))),U}getValue(){if(f(this,o)){const d=this.lastChild.text();return f(this,u)[1]?d:d.trim()}return this.type==="ext-attr"||""}print(){const[d="",A=""]=f(this,u);return f(this,o)?super.print({sep:`${f(this,o)}${d}`,post:A}):super.print()}}o=new WeakMap,u=new WeakMap;class Q extends F.Token{constructor(d,A,U,N=K.Z.getConfig(),O=[]){if(super(void 0,N,O,{}),this.type=A,this.setAttribute("name",U),d){const L=new RegExp(`([^\\s/](?:(?!\0\\d+~\x7F)[^\\s/=])*)(?:((?:\\s|\0\\d+c\x7F)*(?:=|\0\\d+~\x7F)(?:\\s|\0\\d+c\x7F)*)(?:(["'])(.*?)(\\3|$)|(\\S*)))?`,"gsu");let S="",n=L.exec(d),t=0;const l=()=>{S&&(super.insertAt(new I.D(S,`${A.slice(0,-1)}-dirty`,N,O)),S="")};for(;n;){const{index:P,0:W,1:b,2:y,3:G,4:V,5:X,6:j}=n;if(S+=d.slice(t,P),/^(?:[\w:]|\0\d+[t!~{}+-]\x7F)(?:[\w:.-]|\0\d+[t!~{}+-]\x7F)*$/u.test((0,M.PN)(b).trim())){const k=V!=null?V:j,nt=[G,X],et=new H(A.slice(0,-1),U,b,y,k,nt,N,O);l(),super.insertAt(et)}else S+=W;({lastIndex:t}=L),n=L.exec(d)}S+=d.slice(t),l()}}afterBuild(){if(this.type==="table-attrs"){const{parentNode:d}=this;this.setAttribute("name",(d==null?void 0:d.type)==="td"&&d.subtype==="caption"?"caption":d==null?void 0:d.type)}}getAttrTokens(d){return this.childNodes.filter(A=>A instanceof H&&(!d||A.name===d.toLowerCase().trim()))}getAttrToken(d){const A=this.getAttrTokens(d);return A[A.length-1]}getAttr(d){var A;return(A=this.getAttrToken(d))==null?void 0:A.getValue()}lint(d=this.getAbsoluteIndex()){const A=super.lint(d),{parentNode:U,length:N,childNodes:O}=this,L=new Map,S=new Set;let n;(U==null?void 0:U.type)==="html"&&U.closing&&this.text().trim()&&(n={start:d,...this.getRootNode().posFromIndex(d)},A.push((0,$.Y)(this,n,"attributes of a closing tag")));for(let t=0;t<N;t++){const l=O[t];if(l instanceof I.D&&l.text().trim())n!=null||(n={start:d,...this.getRootNode().posFromIndex(d)}),A.push((0,$.D)(l,n,"containing invalid attribute"));else if(l instanceof H){const{name:P}=l;L.has(P)?(S.add(P),L.get(P).push(l)):P!=="class"&&L.set(P,[l])}}if(S.size>0){n!=null||(n={start:d,...this.getRootNode().posFromIndex(d)});for(const t of S)A.push(...L.get(t).map(l=>(0,$.D)(l,n,K.Z.msg("duplicated $1 attribute",t))))}return A}print(){return String(this)?`<span class="wpb-${this.type}">${this.childNodes.map(d=>d.print(d instanceof I.D&&d.text().trim()?{class:"hidden"}:void 0)).join("")}</span>`:""}}},876:(Y,_,e)=>{e.d(_,{a:()=>c});var $=e(444);const M=r=>{class i extends r{}return i};var K=e(891),F=e(541),I=e(686),w=Object.defineProperty,E=(r,i,s)=>i in r?w(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s,f=(r,i,s)=>(E(r,typeof i!="symbol"?i+"":i,s),s),x=(r,i,s)=>{if(!i.has(r))throw TypeError("Cannot "+s)},a=(r,i,s)=>(x(r,i,"read from private field"),s?s.call(r):i.get(r)),o=(r,i,s)=>{if(i.has(r))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(r):i.set(r,s)},u=(r,i,s,h)=>(x(r,i,"write to private field"),h?h.call(r,s):i.set(r,s),s),p;class c extends M(F.Token){constructor(i,s="",h="",m=K.Z.getConfig(),v=[]){if(super(void 0,m,v,{}),f(this,"type","ext-link"),o(this,p,void 0),this.insertAt(new I.k(i,!0,m,v)),u(this,p,s),h){const C=new F.Token(h,m,v,{});C.type="ext-link-text",C.setAttribute("stage",$.C-1),this.insertAt(C)}}toString(i){return this.length===1?`[${super.toString(i)}${a(this,p)}]`:`[${super.toString(i,a(this,p))}]`}text(){return`[${super.text(" ")}]`}getAttribute(i){return i==="padding"?1:super.getAttribute(i)}getGaps(){return a(this,p).length}print(){return super.print(this.length===1?{pre:"[",post:`${a(this,p)}]`}:{pre:"[",sep:a(this,p),post:"]"})}}p=new WeakMap},420:(Y,_,e)=>{e.r(_),e.d(_,{GalleryToken:()=>p});var $=e(891),M=e(541),K=e(39),F=e(465),I=Object.defineProperty,w=(c,r,i)=>r in c?I(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,E=(c,r,i)=>(w(c,typeof r!="symbol"?r+"":r,i),i),f=(c,r,i)=>{if(!r.has(c))throw TypeError("Cannot "+i)},x=(c,r,i)=>{if(r.has(c))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(c):r.set(c,i)},a=(c,r,i)=>(f(c,r,"access private method"),i),o,u;class p extends M.Token{constructor(r,i=$.Z.getConfig(),s=[]){var h;super(void 0,i,s,{}),x(this,o),E(this,"type","ext-inner");for(const m of(h=r==null?void 0:r.split(`
15
+ `))!=null?h:[]){const v=/^([^|]+)(?:\|(.*))?/u.exec(m);if(!v){super.insertAt(m.trim()?new F.R(m,i,[],{}):m);continue}const[,C,D]=v;a(this,o,u).call(this,C)?super.insertAt(new K._("gallery",C,D,i,s)):super.insertAt(new F.R(m,i,[],{}))}}toString(r){return super.toString(r,`
16
+ `)}text(){return super.text(`
17
+ `).replace(/\n\s*\n/gu,`
18
+ `)}getGaps(){return 1}lint(r=this.getAbsoluteIndex()){const{top:i,left:s}=this.getRootNode().posFromIndex(r),h=[];for(let m=0;m<this.length;m++){const v=this.childNodes[m],C=String(v),{length:D}=C,B=C.trim(),H=i+m,Q=m?0:s;v.type==="hidden"&&B&&!/^<!--.*-->$/u.test(B)?h.push({message:$.Z.msg("invalid content in <$1>","gallery"),severity:"error",startIndex:r,endIndex:r+D,startLine:H,endLine:H,startCol:Q,endCol:Q+D}):v.type!=="hidden"&&v.type!=="text"&&h.push(...v.lint(r)),r+=D+1}return h}print(){return super.print({sep:`
19
+ `})}}o=new WeakSet,u=function(c){return this.normalizeTitle(c,6,!0,!0).valid}},485:(Y,_,e)=>{e.d(_,{D:()=>r});var $=e(169),M=e(891),K=e(541),F=e(669),I=Object.defineProperty,w=(i,s,h)=>s in i?I(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,E=(i,s,h)=>(w(i,typeof s!="symbol"?s+"":s,h),h),f=(i,s,h)=>{if(!s.has(i))throw TypeError("Cannot "+h)},x=(i,s,h)=>(f(i,s,"read from private field"),h?h.call(i):s.get(i)),a=(i,s,h)=>{if(s.has(i))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(i):s.set(i,h)},o=(i,s,h,m)=>(f(i,s,"write to private field"),m?m.call(i,h):s.set(i,h),h),u,p,c;class r extends K.Token{constructor(s,h,m=M.Z.getConfig(),v=[]){super(void 0,m,v),a(this,p),E(this,"type","heading"),a(this,u,void 0),o(this,u,s);const C=new K.Token(h[0],m,v);C.type="heading-title",C.setAttribute("stage",2);const D=new F.SyntaxToken(h[1],/^[^\S\n]*$/u,"heading-trail",m,v,{});this.append(C,D)}get level(){return x(this,u)}toString(s){const h=x(this,p,c);return`${h}${this.firstChild.toString()}${h}${this.lastChild.toString()}`}text(){const s=x(this,p,c);return`${s}${this.firstChild.text()}${s}`}getAttribute(s){return s==="padding"?super.getAttribute("padding")+this.level:super.getAttribute(s)}getGaps(){return this.level}lint(s=this.getAbsoluteIndex()){const h=super.lint(s),{firstChild:m}=this,v=String(m);let C;return this.level===1&&(C=(0,$.D)(m,{start:s},"<h1>"),h.push(C)),(v.startsWith("=")||v.endsWith("="))&&(C!=null||(C=(0,$.D)(m,{start:s},"")),h.push({...C,message:M.Z.msg('unbalanced "=" in a section header')})),this.closest("html-attrs, table-attrs")&&h.push({...(0,$.Y)(this,{start:s},""),message:M.Z.msg("section header in a HTML tag")}),h}print(){const s=x(this,p,c);return super.print({pre:s,sep:s})}}u=new WeakMap,p=new WeakSet,c=function(){return"=".repeat(this.level)}},465:(Y,_,e)=>{e.d(_,{R:()=>w});var $=e(959),M=e(541),K=Object.defineProperty,F=(E,f,x)=>f in E?K(E,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[f]=x,I=(E,f,x)=>(F(E,typeof f!="symbol"?f+"":f,x),x);class w extends(0,$.a)(M.Token){constructor(){super(...arguments),I(this,"type","hidden")}}},842:(Y,_,e)=>{e.r(_),e.d(_,{ImagemapToken:()=>r});var $=e(169),M=e(891),K=e(541),F=e(826),I=e(39),w=e(524),E=e(876),f=Object.defineProperty,x=(i,s,h)=>s in i?f(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,a=(i,s,h)=>(x(i,typeof s!="symbol"?s+"":s,h),h);class o extends K.Token{constructor(s,h,m,v=M.Z.getConfig(),C=[]){super(void 0,v,C),a(this,"type","imagemap-link"),this.append(s,h.length===2?new w.h(...h,v,C):new E.a(...h,v,C),new F.O(m,v,C))}}var u=Object.defineProperty,p=(i,s,h)=>s in i?u(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,c=(i,s,h)=>(p(i,typeof s!="symbol"?s+"":s,h),h);class r extends K.Token{constructor(s,h=M.Z.getConfig(),m=[]){if(super(void 0,h,m,{}),c(this,"type","ext-inner"),!s)return;const v=s.split(`
20
+ `),C=new Set(h.protocol.split("|")),D=F.O;let B=!0,H=!1;for(const Q of v){const Z=Q.trim();if(!(H||!Z||Z.startsWith("#"))){if(B){const[d,...A]=Q.split("|"),U=this.normalizeTitle(d,0,!0);if(U.valid&&U.ns===6){const N=new I._("imagemap",d,A.length>0?A.join("|"):void 0,h,m);super.insertAt(N),B=!1;continue}else H=!0}else if(Q.trim().split(/[\t ]/u)[0]==="desc"){super.insertAt(Q);continue}else if(Q.includes("[")){const d=Q.indexOf("["),A=Q.slice(d),U=/^\[{2}([^|]+)(?:\|([^\]]+))?\]{2}[\w\s]*$/u.exec(A);if(U){if(this.normalizeTitle(U[1],0,!0,!1,!0).valid){super.insertAt(new o(Q.slice(0,d),U.slice(1),A.slice(A.indexOf("]]")+2),h,m));continue}}else if(C.has(A.slice(1,A.indexOf(":")+1))||C.has(A.slice(1,A.indexOf("//")+2))){const N=/^\[([^\]\s]+)(?:(\s+)(\S[^\]]*)?)?\][\w\s]*$/u.exec(A);if(N){super.insertAt(new o(Q.slice(0,d),N.slice(1),A.slice(A.indexOf("]")+1),h,m));continue}}}}super.insertAt(new D(Q,h,m))}}get image(){return this.childNodes.find(({type:s})=>s==="imagemap-image")}toString(s){return super.toString(s,`
21
+ `)}text(){return super.text(`
22
+ `).replace(/\n{2,}/gu,`
23
+ `)}getGaps(){return 1}lint(s=this.getAbsoluteIndex()){const h=super.lint(s),m={start:s,...this.getRootNode().posFromIndex(s)};return this.image?h.push(...this.childNodes.filter(v=>{const C=String(v).trim();return v.type==="noinclude"&&C&&!C.startsWith("#")}).map(v=>(0,$.D)(v,m,"invalid link in <imagemap>"))):h.push((0,$.Y)(this,m,"<imagemap> without an image")),h}print(){return super.print({sep:`
24
+ `})}}},541:(Y,_,e)=>{e.r(_),e.d(_,{Token:()=>bt});var $=e(467),M=e(444),K=e(891),F=Object.defineProperty,I=(R,g,T)=>g in R?F(R,g,{enumerable:!0,configurable:!0,writable:!0,value:T}):R[g]=T,w=(R,g,T)=>(I(R,typeof g!="symbol"?g+"":g,T),T),E=(R,g,T)=>{if(!g.has(R))throw TypeError("Cannot "+T)},f=(R,g,T)=>(E(R,g,"read from private field"),T?T.call(R):g.get(R)),x=(R,g,T)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,T)},a=(R,g,T,z)=>(E(R,g,"write to private field"),z?z.call(R,T):g.set(R,T),T),o=(R,g,T)=>(E(R,g,"access private method"),T),u,p,c;class r{constructor(){x(this,p),w(this,"childNodes",[]),x(this,u,void 0)}get firstChild(){return this.childNodes[0]}get lastChild(){return this.childNodes[this.childNodes.length-1]}get parentNode(){return f(this,u)}get nextSibling(){var g;const T=(g=this.parentNode)==null?void 0:g.childNodes;return T&&T[T.indexOf(this)+1]}get previousSibling(){var g;const T=(g=this.parentNode)==null?void 0:g.childNodes;return T&&T[T.indexOf(this)-1]}get offsetHeight(){return o(this,p,c).call(this).height}get offsetWidth(){return o(this,p,c).call(this).width}getAttribute(g){return g==="padding"?0:g in this?String(this[g]):void 0}setAttribute(g,T){g==="parentNode"?a(this,u,T):this[g]=T}getRootNode(){let{parentNode:g}=this;for(;g!=null&&g.parentNode;)({parentNode:g}=g);return g!=null?g:this}posFromIndex(g){const T=String(this);if(g>=-T.length&&g<=T.length){const z=T.slice(0,g).split(`
25
+ `);return{top:z.length-1,left:z[z.length-1].length}}}getGaps(g){return 0}getRelativeIndex(g){let T;const z=(J,ot)=>T.slice(0,J).reduce((At,Mt,It)=>At+String(Mt).length+ot.getGaps(It),0)+ot.getAttribute("padding");if(g===void 0){const{parentNode:J}=this;return J?({childNodes:T}=J,z(T.indexOf(this),J)):0}return{childNodes:T}=this,z(g,this)}getAbsoluteIndex(){const{parentNode:g}=this;return g?g.getAbsoluteIndex()+this.getRelativeIndex():0}}u=new WeakMap,p=new WeakSet,c=function(){const R=String(this).split(`
26
+ `);return{height:R.length,width:R[R.length-1].length}};const i=new Set(["nowiki","pre","charinsert","score","syntaxhighlight","source","math","chem","ce","graph","mapframe","maplink","quiz","templatedata","timeline"]);class s extends r{get length(){return this.childNodes.length}text(g){return(0,$.fL)(this.childNodes,g)}normalize(){const{childNodes:g}=this;for(let T=g.length-1;T>=0;T--){const{type:z,data:J}=g[T],ot=g[T-1];z!=="text"||this.getGaps(T-1)||(J===""?g.splice(T,1):(ot==null?void 0:ot.type)==="text"&&(ot.setAttribute("data",ot.data+J),g.splice(T,1)))}}removeAt(g){const{childNodes:T}=this,[z]=T.splice(g,1);return z}insertAt(g,T=this.length){const{childNodes:z}=this;return g.setAttribute("parentNode",this),z.splice(T,0,g),g}closest(g){let{parentNode:T}=this,z;const J=new Set(g.split(",").map(ot=>ot.trim()));for(z=({type:ot})=>J.has(ot);T;){if(z(T))return T;({parentNode:T}=T)}}append(...g){for(const T of g)this.insertAt(T)}replaceChildren(...g){this.childNodes.length=0,this.append(...g)}setText(g,T=0){const z=this.childNodes[T],{data:J}=z;return z.replaceData(g),J}toString(g,T=""){return this.childNodes.map(z=>z.toString()).join(T)}lint(g=this.getAbsoluteIndex()){const{SyntaxToken:T}=e(669);if(this instanceof T||this.constructor.hidden||this.type==="ext-inner"&&i.has(this.name))return[];const z=[];for(let J=0,ot=g+this.getAttribute("padding");J<this.length;J++){const At=this.childNodes[J];z.push(...At.lint(ot)),ot+=String(At).length+this.getGaps(J)}return z}print(g={}){var T;return String(this)?`<span class="wpb-${(T=g.class)!=null?T:this.type}">${(0,$.S0)(this.childNodes,g)}</span>`:""}}var h=Object.defineProperty,m=(R,g,T)=>g in R?h(R,g,{enumerable:!0,configurable:!0,writable:!0,value:T}):R[g]=T,v=(R,g,T)=>(m(R,typeof g!="symbol"?g+"":g,T),T),C=(R,g,T)=>{if(!g.has(R))throw TypeError("Cannot "+T)},D=(R,g,T)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,T)},B=(R,g,T)=>(C(R,g,"access private method"),T),H,Q;const Z=/https?:\/\/|\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,d=/\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,A=["html","head","style","title","body","a","audio","img","video","embed","iframe","object","canvas","script","col","colgroup","tbody","tfoot","thead","button","input","label","option","select","textarea"],U={"&":"amp","<":"lt",">":"gt"};class N extends r{constructor(g){super(),D(this,H),v(this,"type","text"),v(this,"data",""),this.data=g}toString(){return this.data}text(){return this.data}lint(g=this.getAbsoluteIndex()){const{data:T,parentNode:z,nextSibling:J,previousSibling:ot}=this,At=z==null?void 0:z.type,Mt=z==null?void 0:z.name,It=J==null?void 0:J.type,Jt=ot==null?void 0:ot.type,_t=At==="free-ext-link"||At==="ext-link-url"||At==="image-parameter"&&Mt==="link"?d:Z,Ut=[],{ext:kt,html:jt}=this.getRootNode().getAttribute("config");if(T.search(_t)!==-1){_t.lastIndex=0;const Kt=this.getRootNode(),{top:qt,left:te}=Kt.posFromIndex(g),ee=new Set([kt,jt,A].flat(2));for(let yt=_t.exec(T);yt;yt=_t.exec(T)){const[,Nt,ne]=yt;let{0:Ft,index:Tt}=yt;if(Nt&&Nt!=="]"){const{length:Qt}=Nt;Tt+=Qt,Ft=Ft.slice(Qt)}const Lt=g+Tt,Dt=T.slice(0,Tt).split(`
27
+ `),Zt=Dt.length+qt-1,Gt=Dt[Dt.length-1],zt=Dt.length===1?te+Gt.length:Gt.length,{0:ct,length:Wt}=Ft,Ht=Lt+Wt,Yt=String(Kt),Ot=Yt[Ht],Rt=Yt[Lt-1],se=Wt>1&&(ct!=="<"||/[\s/>]/u.test(Ot!=null?Ot:""))||ct==="{"&&(Ot===ct||Rt==="-")||ct==="}"&&(Rt===ct||Ot==="-")||ct==="["&&(Ot===ct||At==="ext-link-text"||!T.slice(Tt+1).trim()&&It==="free-ext-link")||ct==="]"&&(Rt===ct||!T.slice(0,Tt).trim()&&Jt==="free-ext-link")?"error":"warning";(ct!=="h"||Tt>0)&&(ct!=="<"||ee.has(ne.toLowerCase()))&&Ut.push({message:K.Z.msg('lonely "$1"',ct==="h"?Ft:ct),severity:se,startIndex:Lt,endIndex:Ht,startLine:Zt,endLine:Zt,startCol:zt,endCol:zt+Wt})}return Ut}return[]}replaceData(g){B(this,H,Q).call(this,g)}print(){return this.data.replace(/[&<>]/gu,g=>`&${U[g]};`)}}H=new WeakSet,Q=function(R){this.setAttribute("data",R)};var O=Object.defineProperty,L=(R,g,T)=>g in R?O(R,g,{enumerable:!0,configurable:!0,writable:!0,value:T}):R[g]=T,S=(R,g,T)=>(L(R,typeof g!="symbol"?g+"":g,T),T),n=(R,g,T)=>{if(!g.has(R))throw TypeError("Cannot "+T)},t=(R,g,T)=>(n(R,g,"read from private field"),T?T.call(R):g.get(R)),l=(R,g,T)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,T)},P=(R,g,T,z)=>(n(R,g,"write to private field"),z?z.call(R,T):g.set(R,T),T),W=(R,g,T,z)=>({set _(J){P(R,g,J,T)},get _(){return t(R,g,z)}}),b=(R,g,T)=>(n(R,g,"access private method"),T),y,G,V,X,j,k,nt,et,at,st,ut,q,tt,rt,lt,dt,it,gt,Ct,Pt,$t,vt,pt,ft,xt,St,mt,ht;const wt=class Vt extends s{constructor(g,T=K.Z.getConfig(),z=[],J){super(),l(this,j),l(this,nt),l(this,at),l(this,ut),l(this,tt),l(this,lt),l(this,it),l(this,Ct),l(this,$t),l(this,pt),l(this,xt),l(this,mt),S(this,"type","root"),l(this,y,0),l(this,G,void 0),l(this,V,void 0),l(this,X,void 0),typeof g=="string"&&this.insertAt(g),P(this,G,T),P(this,V,z),z.push(this)}parseOnce(g=t(this,y),T=!1){if(g<t(this,y)||!this.getAttribute("plain")||this.length===0)return this;switch(g){case 0:this.type==="root"&&t(this,V).shift(),P(this,X,T),b(this,nt,et).call(this,T);break;case 1:b(this,at,st).call(this);break;case 2:b(this,ut,q).call(this);break;case 3:b(this,tt,rt).call(this);break;case 4:b(this,lt,dt).call(this);break;case 5:b(this,it,gt).call(this);break;case 6:b(this,Ct,Pt).call(this);break;case 7:b(this,$t,vt).call(this);break;case 8:b(this,pt,ft).call(this);break;case 9:b(this,xt,St).call(this);break;case 10:b(this,mt,ht).call(this)}if(this.type==="root")for(const z of t(this,V))z.parseOnce(g,T);return W(this,y)._++,this}buildFromStr(g,T){const z=g.split(/[\0\x7F]/u).map((J,ot)=>{if(ot%2===0)return new N(J);if(isNaN(J[J.lengtht-1]))return t(this,V)[Number(J.slice(0,-1))];throw new Error(`\u89E3\u6790\u9519\u8BEF\uFF01\u672A\u6B63\u786E\u6807\u8BB0\u7684 Token\uFF1A${J}`)});return T==="string"?z.map(String).join(""):T==="text"?(0,$.fL)(z):z}afterBuild(){if(this.type==="root")for(const g of t(this,V))g.afterBuild()}parse(g=M.C,T=!1){for(;t(this,y)<g;)this.parseOnce(t(this,y),T);return g&&(b(this,j,k).call(this),this.afterBuild()),this}getAttribute(g){switch(g){case"plain":return this.constructor===Vt;case"config":return JSON.parse(JSON.stringify(t(this,G)));case"accum":return t(this,V);case"include":{if(t(this,X)!==void 0)return t(this,X);const T=this.getRootNode();return T!==this?T.getAttribute("include"):!1}default:return super.getAttribute(g)}}setAttribute(g,T){switch(g){case"stage":t(this,y)===0&&this.type==="root"&&t(this,V).shift(),P(this,y,T);break;default:super.setAttribute(g,T)}}insertAt(g,T=this.length){const z=typeof g=="string"?new N(g):g;return super.insertAt(z,T),z.type==="root"&&(z.type="plain"),z}normalizeTitle(g,T=0,z=!1,J=!1,ot=!1){return K.Z.normalizeTitle(g,T,t(this,X),t(this,G),z,J,ot)}};y=new WeakMap,G=new WeakMap,V=new WeakMap,X=new WeakMap,j=new WeakSet,k=function(){var R;P(this,y,M.C);const{length:g,firstChild:T}=this,z=String(T);if(g===1&&T.type==="text"&&z.includes("\0")&&(this.replaceChildren(...this.buildFromStr(z)),this.normalize(),this.type==="root"))for(const J of t(this,V))b(R=J,j,k).call(R)},nt=new WeakSet,et=function(R){const{parseCommentAndExt:g}=e(551);this.setText(g(String(this.firstChild),t(this,G),t(this,V),R))},at=new WeakSet,st=function(){const{parseBraces:R}=e(313),g=this.type==="root"?String(this.firstChild):`\0${String(this.firstChild)}`,T=R(g,t(this,G),t(this,V));this.setText(this.type==="root"?T:T.slice(1))},ut=new WeakSet,q=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("html"))return;const{parseHtml:g}=e(980);this.setText(g(String(this.firstChild),t(this,G),t(this,V)))},tt=new WeakSet,rt=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("table"))return;const{parseTable:g}=e(508);this.setText(g(this,t(this,G),t(this,V)))},lt=new WeakSet,dt=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("hr"))return;const{parseHrAndDoubleUnderscore:g}=e(362);this.setText(g(this,t(this,G),t(this,V)))},it=new WeakSet,gt=function(){const{parseLinks:R}=e(106);this.setText(R(String(this.firstChild),t(this,G),t(this,V)))},Ct=new WeakSet,Pt=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("quote"))return;const{parseQuotes:g}=e(704),T=String(this.firstChild).split(`
28
+ `);for(let z=0;z<T.length;z++)T[z]=g(T[z],t(this,G),t(this,V));this.setText(T.join(`
29
+ `))},$t=new WeakSet,vt=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("extLink"))return;const{parseExternalLinks:g}=e(418);this.setText(g(String(this.firstChild),t(this,G),t(this,V)))},pt=new WeakSet,ft=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("magicLink"))return;const{parseMagicLinks:g}=e(311);this.setText(g(String(this.firstChild),t(this,G),t(this,V)))},xt=new WeakSet,St=function(){var R;if((R=t(this,G).excludes)!=null&&R.includes("list"))return;const{parseList:g}=e(904),T=String(this.firstChild).split(`
30
+ `);let z=this.type==="root"||this.type==="ext-inner"&&this.name==="poem"?0:1;for(;z<T.length;z++)T[z]=g(T[z],t(this,G),t(this,V));this.setText(T.join(`
31
+ `))},mt=new WeakSet,ht=function(){if(t(this,G).variants.length>0){const{parseConverter:R}=e(370);this.setText(R(String(this.firstChild),t(this,G),t(this,V)))}};let bt=wt},299:(Y,_,e)=>{e.d(_,{o:()=>p});var $=e(169),M=e(444),K=e(891),F=e(541),I=e(34),w=(c,r,i)=>{if(!r.has(c))throw TypeError("Cannot "+i)},E=(c,r,i)=>(w(c,r,"read from private field"),i?i.call(c):r.get(c)),f=(c,r,i)=>{if(r.has(c))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(c):r.set(c,i)},x=(c,r,i,s)=>(w(c,r,"write to private field"),s?s.call(c,i):r.set(c,i),i),a,o,u;class p extends F.Token{constructor(r,i,s=K.Z.getConfig(),h=[],m="|"){if(super(void 0,s,h,{}),f(this,a,!0),f(this,o,void 0),f(this,u,void 0),this.insertAt(new I.D(r,"link-target",s,h,{})),i!==void 0){const v=new F.Token(i,s,h,{});v.type="link-text",v.setAttribute("stage",M.C-1),this.insertAt(v)}x(this,o,m)}afterBuild(){x(this,u,this.getTitle()),E(this,o).includes("\0")&&x(this,o,this.buildFromStr(E(this,o),"string"))}setAttribute(r,i){r==="bracket"?x(this,a,!!i):r==="title"?x(this,u,i):super.setAttribute(r,i)}toString(r){const i=super.toString(r,E(this,o));return E(this,a)?`[[${i}]]`:i}text(){const r=super.text("|");return E(this,a)?`[[${r}]]`:r}getAttribute(r){return r==="title"?E(this,u):r==="padding"?2:super.getAttribute(r)}getGaps(r){return r===0?E(this,o).length:1}lint(r=this.getAbsoluteIndex()){const i=super.lint(r),{childNodes:[s,h],type:m}=this,{encoded:v,fragment:C}=E(this,u);let D;return m==="link"&&s.childNodes.some(({type:B})=>B==="template")&&(D={start:r,...this.getRootNode().posFromIndex(r)},i.push((0,$.D)(s,D,"template in an internal link target","warning"))),v&&(D!=null||(D={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,$.D)(s,D,"unnecessary URL encoding in an internal link"))),m==="link"&&(h!=null&&h.childNodes.some(({type:B,data:H})=>B==="text"&&H.includes("|")))?(D!=null||(D={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,$.D)(h,D,'additional "|" in the link text',"warning"))):m!=="link"&&C!==void 0&&(D!=null||(D={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,$.D)(s,D,"useless fragment"))),i}getTitle(){return this.normalizeTitle(this.firstChild.text(),0,!1,!0,!0)}print(){return super.print(E(this,a)?{pre:"[[",post:"]]",sep:E(this,o)}:{sep:E(this,o)})}}a=new WeakMap,o=new WeakMap,u=new WeakMap},533:(Y,_,e)=>{e.d(_,{q:()=>U});var $=e(467),M=e(169),K=e(891),F=e(299),I=e(541),w=Object.defineProperty,E=(N,O,L)=>O in N?w(N,O,{enumerable:!0,configurable:!0,writable:!0,value:L}):N[O]=L,f=(N,O,L)=>(E(N,typeof O!="symbol"?O+"":O,L),L),x=(N,O,L)=>{if(!O.has(N))throw TypeError("Cannot "+L)},a=(N,O,L)=>(x(N,O,"read from private field"),L?L.call(N):O.get(N)),o=(N,O,L)=>{if(O.has(N))throw TypeError("Cannot add the same private member more than once");O instanceof WeakSet?O.add(N):O.set(N,L)},u=(N,O,L,S)=>(x(N,O,"write to private field"),S?S.call(N,L):O.set(N,L),L),p;const c=new Set(["alt","link","lang","page","caption"]);function r(N,O,L=K.Z.getConfig(),S=!1){O=O.trim();let n=O.replace(/\0\d+t\x7F/gu,"").trim();switch(N){case"width":return!n||/^(?:\d+x?|\d*x\d+)$/u.test(n);case"link":{if(!n||new RegExp(`^(?:(?:${L.protocol}|//)${$._X}|\0\\d+m\x7F)${$.Qk}$`,"iu").test(n))return O;n.startsWith("[[")&&n.endsWith("]]")&&(n=n.slice(2,-2));const l=K.Z.normalizeTitle(n,0,!1,L,S,!0,!0);return l.valid&&l}case"lang":return!n||L.variants.includes(n);case"alt":case"class":case"manualthumb":return!0;default:return!isNaN(n)}}class i extends I.Token{constructor(O,L=K.Z.getConfig(),S=[]){var n=(...b)=>{super(...b),f(this,"type","image-parameter"),o(this,p,"")},t;let l;const P=Object.entries(L.img).map(([b,y])=>[b,y,new RegExp(`^(\\s*)${b.replace("$1","(.*)")}(\\s*)$`,"u")]),W=P.find(([,b,y])=>(l=y.exec(O),l&&(l.length!==4||r(b,l[2],L,!0)!==!1)));if(W&&l){l.length===3?(n(void 0,L,S),u(this,p,O)):(n(l[2],L,S,{}),u(this,p,`${l[1]}${W[0]}${l[3]}`)),this.setAttribute("name",W[1]);return}n(O,{...L,excludes:[...(t=L.excludes)!=null?t:[],"list"]},S),this.setAttribute("name","caption"),this.setAttribute("stage",7)}get link(){return this.name==="link"?r("link",super.text(),this.getAttribute("config")):void 0}afterBuild(){var O;((O=this.parentNode)==null?void 0:O.type)==="gallery-image"&&!c.has(this.name)&&this.setAttribute("name","invalid")}toString(O){return a(this,p)?a(this,p).replace("$1",super.toString(O)):super.toString(O)}text(){return a(this,p)?a(this,p).replace("$1",super.text()).trim():super.text().trim()}getAttribute(O){return O==="plain"?this.name==="caption":O==="padding"?Math.max(0,a(this,p).indexOf("$1")):super.getAttribute(O)}lint(O=this.getAbsoluteIndex()){const L=super.lint(O),{link:S,name:n}=this;return n==="invalid"?L.push((0,M.Y)(this,{start:O},"invalid gallery image parameter")):typeof S=="object"&&S.encoded&&L.push((0,M.Y)(this,{start:O},"unnecessary URL encoding in an internal link")),L}print(){return a(this,p)?`<span class="wpb-image-parameter">${a(this,p).replace("$1",`<span class="wpb-image-caption">${(0,$.S0)(this.childNodes)}</span>`)}</span>`:super.print({class:"image-caption"})}}p=new WeakMap;var s=Object.defineProperty,h=(N,O,L)=>O in N?s(N,O,{enumerable:!0,configurable:!0,writable:!0,value:L}):N[O]=L,m=(N,O,L)=>(h(N,typeof O!="symbol"?O+"":O,L),L),v=(N,O,L)=>{if(!O.has(N))throw TypeError("Cannot "+L)},C=(N,O,L)=>{if(O.has(N))throw TypeError("Cannot add the same private member more than once");O instanceof WeakSet?O.add(N):O.set(N,L)},D=(N,O,L)=>(v(N,O,"access private method"),L),B,H;const Q=new Set(["manualthumb","frameless","framed","thumbnail"]),Z=new Set(["left","right","center","none"]),d=new Set(["baseline","sub","super","top","text-top","middle","bottom","text-bottom"]),A=(N,O,L,S)=>{if(S===void 0)return[];const n=new RegExp(`${[N,O,L].map($.hr).join("|")}`,"gu"),t=[];let l=n.exec(S),P=0,W=0;for(;l;){const{0:b,index:y}=l;b!==L?P+=b===N?1:-1:P===0&&(t.push(S.slice(W,y)),{lastIndex:W}=n),l=n.exec(S)}return t.push(S.slice(W)),t};class U extends F.o{constructor(O,L,S=K.Z.getConfig(),n=[],t="|"){super(O,void 0,S,n,t),C(this,B),m(this,"type","file"),this.append(...A("-{","}-","|",L).map(l=>new i(l,S,n)))}lint(O=this.getAbsoluteIndex()){const L=super.lint(O),S=this.getAllArgs().filter(({childNodes:y})=>{const G=y.filter(V=>V.text().trim());return G.length!==1||G[0].type!=="arg"}),n=[...new Set(S.map(({name:y})=>y))].filter(y=>y!=="invalid"),t=n.filter(y=>Q.has(y)),l=n.filter(y=>Z.has(y)),P=n.filter(y=>d.has(y));if(S.length===n.length&&t.length<2&&l.length<2&&P.length<2)return L;const W={start:O,...this.getRootNode().posFromIndex(O)},b=(y,G)=>V=>(0,M.D)(V,W,K.Z.msg(`${y} image $1 parameter`,G));for(const y of n){let G=S.filter(({name:V})=>V===y);y==="caption"&&(G=[...G.slice(0,-1).filter(V=>V.text()),...G.slice(-1)]),G.length>1&&L.push(...G.map(b("duplicated",y)))}return t.length>1&&L.push(...S.filter(({name:y})=>Q.has(y)).map(b("conflicting","frame"))),l.length>1&&L.push(...S.filter(({name:y})=>Z.has(y)).map(b("conflicting","horizontal-alignment"))),P.length>1&&L.push(...S.filter(({name:y})=>d.has(y)).map(b("conflicting","vertical-alignment"))),L}getAllArgs(){return this.childNodes.slice(1)}getArgs(O){return this.getAllArgs().filter(({name:L})=>O===L)}getFrameArgs(){return D(this,B,H).call(this,Q,"\u6846\u67B6")}getHorizAlignArgs(){return D(this,B,H).call(this,Z,"\u6C34\u5E73\u5BF9\u9F50")}getVertAlignArgs(){return D(this,B,H).call(this,d,"\u5782\u76F4\u5BF9\u9F50")}}B=new WeakSet,H=function(N,O){return this.getAllArgs().filter(({name:S})=>N.has(S))}},39:(Y,_,e)=>{e.d(_,{_:()=>o});var $=e(169),M=e(444),K=e(891),F=e(541),I=e(533),w=(u,p,c)=>{if(!p.has(u))throw TypeError("Cannot "+c)},E=(u,p,c)=>{if(p.has(u))throw TypeError("Cannot add the same private member more than once");p instanceof WeakSet?p.add(u):p.set(u,c)},f=(u,p,c)=>(w(u,p,"access private method"),c),x,a;class o extends I.q{constructor(p,c,r,i=K.Z.getConfig(),s=[]){let h;if(r!==void 0){h=new F.Token(r,i,s),h.type="plain";for(let m=1;m<M.C;m++)h.parseOnce();s.splice(s.indexOf(h),1)}super(c,h==null?void 0:h.toString(),i,s),E(this,x),this.setAttribute("bracket",!1),this.type=`${p}-image`}getTitle(){const p=this.type==="imagemap-image";return this.normalizeTitle(String(this.firstChild),p?0:6,!0,!p)}getAttribute(p){return p==="padding"?0:super.getAttribute(p)}lint(p=this.getAbsoluteIndex()){const c=super.lint(p),{ns:r}=this.getAttribute("title");return r!==6&&c.push((0,$.Y)(this,{start:p},"invalid gallery image")),c}afterBuild(){f(this,x,a).call(this,this.getTitle())}}x=new WeakSet,a=function(u){this.setAttribute("title",u)}},524:(Y,_,e)=>{e.d(_,{h:()=>I});var $=e(299),M=Object.defineProperty,K=(w,E,f)=>E in w?M(w,E,{enumerable:!0,configurable:!0,writable:!0,value:f}):w[E]=f,F=(w,E,f)=>(K(w,typeof E!="symbol"?E+"":E,f),f);class I extends $.o{constructor(){super(...arguments),F(this,"type","link")}}},686:(Y,_,e)=>{e.d(_,{k:()=>F});var $=e(169),M=e(891),K=e(541);class F extends K.Token{constructor(w,E=!1,f=M.Z.getConfig(),x=[]){super(w,f,x,{}),this.type=E?"ext-link-url":"free-ext-link"}lint(w=this.getAbsoluteIndex()){const E=super.lint(w),f=`[\uFF0C\uFF1B\u3002\uFF1A\uFF01\uFF1F\uFF08\uFF09]+${this.type==="ext-link-url"?"|\\|+":""}`,x=new RegExp(f,"u"),a=new RegExp(f,"gu");let o;for(const u of this.childNodes){const{type:p,data:c}=u;if(p!=="text"||!x.test(c))continue;o!=null||(o={start:w,...this.getRootNode().posFromIndex(w)});const r=(0,$.D)(u,o,"","warning");a.lastIndex=0;for(let i=a.exec(c);i;i=a.exec(c)){const{index:s,0:h}=i,m=c.slice(0,s).split(`
32
+ `),{length:v}=m,{length:C}=m[m.length-1],D=w+s,B=r.startLine+v-1,H=v===1?r.startCol+C:C;E.push({...r,message:M.Z.msg("$1 in URL",h.startsWith("|")?'"|"':M.Z.msg("full-width punctuation")),startIndex:D,endIndex:D+h.length,startLine:B,endLine:B,startCol:H,endCol:H+h.length})}}return E}}},57:(Y,_,e)=>{e.r(_),e.d(_,{NestedToken:()=>a});var $=e(169),M=e(891),K=e(541),F=e(895),I=e(826),w=e(976),E=Object.defineProperty,f=(o,u,p)=>u in o?E(o,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):o[u]=p,x=(o,u,p)=>(f(o,typeof u!="symbol"?u+"":u,p),p);class a extends K.Token{constructor(u,p,c,r=M.Z.getConfig(),i=[]){var s;u=(s=u==null?void 0:u.replace(p,(h,m,v,C,D)=>{const B=`\0${i.length+1}${m?"e":"c"}\x7F`;if(m)new F.$(m,v,C,D,r,i);else{const H=h.endsWith("-->");new w.T(h.slice(4,H?-3:void 0),H,r,i)}return B}))==null?void 0:s.replace(/(^|\0\d+[ce]\x7F)([^\0]+)(?=$|\0\d+[ce]\x7F)/gu,(h,m,v)=>(new I.O(v,r,i),`${m}\0${i.length}c\x7F`)),super(u,r,i,{}),x(this,"type","ext-inner")}lint(u=this.getAbsoluteIndex()){let p;return[...super.lint(u),...this.childNodes.filter(c=>{if(c.type==="ext"||c.type==="comment")return!1;const r=String(c).trim();return r&&!/^<!--.*-->$/su.test(r)}).map(c=>(p!=null||(p={start:u,...this.getRootNode().posFromIndex(u)}),(0,$.D)(c,p,M.Z.msg("invalid content in <$1>",this.name))))]}}},439:(Y,_,e)=>{e.d(_,{h:()=>K});var $=e(891),M=e(541);class K extends M.Token{get innerText(){return this.firstChild.data}constructor(I="",w=$.Z.getConfig(),E=[]){super(I,w,E)}}},976:(Y,_,e)=>{e.d(_,{T:()=>f});var $=e(169),M=e(959),K=e(891),F=e(439),I=Object.defineProperty,w=(x,a,o)=>a in x?I(x,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[a]=o,E=(x,a,o)=>(w(x,typeof a!="symbol"?a+"":a,o),o);class f extends(0,M.a)(F.h){constructor(a,o=!0,u=K.Z.getConfig(),p=[]){super(a,u,p),E(this,"type","comment"),E(this,"closed"),this.closed=o}getAttribute(a){return a==="padding"?4:super.getAttribute(a)}lint(a=this.getAbsoluteIndex()){return this.closed?[]:[(0,$.Y)(this,{start:a},"unclosed HTML comment")]}toString(a){return`<!--${this.innerText}${this.closed?"-->":""}`}print(){return super.print({pre:"&lt;!--",post:this.closed?"--&gt;":""})}}},461:(Y,_,e)=>{e.d(_,{k:()=>I});var $=e(933),M=Object.defineProperty,K=(w,E,f)=>E in w?M(w,E,{enumerable:!0,configurable:!0,writable:!0,value:f}):w[E]=f,F=(w,E,f)=>(K(w,typeof E!="symbol"?E+"":E,f),f);class I extends $.T{constructor(){super(...arguments),F(this,"type","dd")}}},491:(Y,_,e)=>{e.r(_),e.d(_,{NowikiToken:()=>E});var $=e(169),M=e(891),K=e(439),F=Object.defineProperty,I=(f,x,a)=>x in f?F(f,x,{enumerable:!0,configurable:!0,writable:!0,value:a}):f[x]=a,w=(f,x,a)=>(I(f,typeof x!="symbol"?x+"":x,a),a);class E extends K.h{constructor(){super(...arguments),w(this,"type","ext-inner")}lint(x=this.getAbsoluteIndex()){const{name:a,firstChild:{data:o}}=this;return(a==="templatestyles"||a==="section")&&o?[(0,$.Y)(this,{start:x},M.Z.msg("nothing should be in <$1>",a))]:super.lint(x)}}},933:(Y,_,e)=>{e.d(_,{T:()=>M});var $=e(439);class M extends $.h{}},826:(Y,_,e)=>{e.d(_,{O:()=>w});var $=e(959),M=e(439),K=Object.defineProperty,F=(E,f,x)=>f in E?K(E,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[f]=x,I=(E,f,x)=>(F(E,typeof f!="symbol"?f+"":f,x),x);class w extends(0,$.a)(M.h){constructor(){super(...arguments),I(this,"type","noinclude")}}},160:(Y,_,e)=>{e.r(_),e.d(_,{ParamTagToken:()=>f});var $=e(169),M=e(891),K=e(541),F=e(34),I=Object.defineProperty,w=(x,a,o)=>a in x?I(x,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[a]=o,E=(x,a,o)=>(w(x,typeof a!="symbol"?a+"":a,o),o);class f extends K.Token{constructor(a,o=M.Z.getConfig(),u=[],p={}){if(super(void 0,o,u,{}),E(this,"type","ext-inner"),a){const c=F.D;this.append(...a.split(`
33
+ `).map(r=>new c(r,"param-line",o,u,{})))}}toString(a){return super.toString(a,`
34
+ `)}text(){return super.text(`
35
+ `)}getGaps(){return 1}lint(a=this.getAbsoluteIndex()){let o;return this.childNodes.filter(u=>{const{childNodes:p}=u,c=p.findIndex(({type:i})=>i!=="text"),r=(c>=0?p.slice(0,c).map(String).join(""):String(u)).trim();return r&&!(c>=0?/^[a-z]+(?:\[\])?\s*(?:=|$)/iu:/^[a-z]+(?:\[\])?\s*=/iu).test(r)}).map(u=>(o!=null||(o={start:a,...this.getRootNode().posFromIndex(a)}),(0,$.D)(u,o,M.Z.msg("invalid parameter of $1",this.name))))}print(){return super.print({sep:`
36
+ `})}}},504:(Y,_,e)=>{e.r(_),e.d(_,{InputboxToken:()=>F});var $=e(313),M=e(891),K=e(160);class F extends K.ParamTagToken{constructor(w,E=M.Z.getConfig(),f=[]){const x=Symbol("InputboxToken");f.push(x),w&&(w=(0,$.parseBraces)(w,E,f)),f.splice(f.indexOf(x),1),super(w,E,f,{})}}},435:(Y,_,e)=>{e.r(_),e.d(_,{PreToken:()=>f});var $=e(444),M=e(891),K=e(541),F=e(826),I=Object.defineProperty,w=(x,a,o)=>a in x?I(x,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[a]=o,E=(x,a,o)=>(w(x,typeof a!="symbol"?a+"":a,o),o);class f extends K.Token{constructor(a,o=M.Z.getConfig(),u=[]){if(a){const p="<nowiki>",c="</nowiki>",{length:r}=p;let i=a.indexOf(p),s=a.indexOf(c,i+r),h="";for(;i!==-1&&s!==-1;)new F.O(p,o,u),new F.O(c,o,u),h+=`${a.slice(0,i)}\0${u.length-1}c\x7F${a.slice(i+r,s)}\0${u.length}c\x7F`,a=a.slice(s+r+1),i=a.indexOf(p),s=a.indexOf(c,i+r);a=`${h}${a}`}super(a,o,u,{}),E(this,"type","ext-inner"),this.setAttribute("stage",$.C-1)}getAttribute(a){return a==="plain"||super.getAttribute(a)}}},669:(Y,_,e)=>{e.r(_),e.d(_,{SyntaxToken:()=>K});var $=e(891),M=e(541);class K extends M.Token{constructor(I,w,E="plain",f=$.Z.getConfig(),x=[],a){super(I,f,x,a),this.type=E}}},895:(Y,_,e)=>{e.d(_,{$:()=>a});var $=e(169),M=e(891),K=e(541),F=e(415),I=e(83),w=Object.defineProperty,E=(o,u,p)=>u in o?w(o,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):o[u]=p,f=(o,u,p)=>(E(o,typeof u!="symbol"?u+"":u,p),p);const x=(o,u)=>{const p=new Set(o);return p.delete(u),[...p]};class a extends F.m{constructor(u,p,c,r,i=M.Z.getConfig(),s=[]){var h;const m=u.toLowerCase(),v=new I.x(!p||/^\s/u.test(p)?p:` ${p}`,"ext-attrs",m,i,s),C={...i,ext:x(i.ext,m),excludes:[...(h=i.excludes)!=null?h:[]]};let D;switch(C.inExt=!0,m){case"tab":C.ext=x(C.ext,"tabs");case"indicator":case"poem":case"ref":case"option":case"combooption":case"tabs":case"poll":case"seo":m==="poem"&&C.excludes.push("heading"),D=new K.Token(c,C,s);break;case"pre":{const{PreToken:B}=e(435);D=new B(c,C,s);break}case"dynamicpagelist":{const{ParamTagToken:B}=e(160);D=new B(c,C,s);break}case"inputbox":{C.excludes.push("heading");const{InputboxToken:B}=e(504);D=new B(c,C,s);break}case"references":{const{NestedToken:B}=e(57);D=new B(c,/<!--.*?(?:-->|$)|<(ref)(\s[^>]*)?>(.*?)<\/(ref\s*)>/gisu,["ref"],C,s);break}case"choose":{const{NestedToken:B}=e(57);D=new B(c,/<(option|choicetemplate)(\s[^>]*)?>(.*?)<\/(\1)>/gsu,["option","choicetemplate"],C,s);break}case"combobox":{const{NestedToken:B}=e(57);D=new B(c,/<(combooption)(\s[^>]*)?>(.*?)<\/(combooption\s*)>/gisu,["combooption"],C,s);break}case"gallery":{const{GalleryToken:B}=e(420);D=new B(c,C,s);break}case"imagemap":{const{ImagemapToken:B}=e(842);D=new B(c,C,s);break}default:{const{NowikiToken:B}=e(491);D=new B(c,C)}}D.setAttribute("name",m),D.type="ext-inner",super(u,v,D,r,i,s),f(this,"type","ext")}lint(u=this.getAbsoluteIndex()){const p=super.lint(u);if(this.name!=="nowiki"&&this.closest("html-attrs, table-attrs")){const c=this.getRootNode(),r={start:u,...c.posFromIndex(u)};p.push((0,$.Y)(this,r,"extension tag in HTML tag attributes"))}return p}}},415:(Y,_,e)=>{e.d(_,{m:()=>a});var $=e(891),M=e(541),K=(o,u,p)=>{if(!u.has(o))throw TypeError("Cannot "+p)},F=(o,u,p)=>(K(o,u,"read from private field"),p?p.call(o):u.get(o)),I=(o,u,p)=>{if(u.has(o))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(o):u.set(o,p)},w=(o,u,p,c)=>(K(o,u,"write to private field"),c?c.call(o,p):u.set(o,p),p),E,f,x;class a extends M.Token{constructor(u,p,c,r,i=$.Z.getConfig(),s=[]){super(void 0,i),I(this,E,void 0),I(this,f,void 0),I(this,x,void 0),this.setAttribute("name",u.toLowerCase()),w(this,x,[u,r||u]),w(this,E,r===void 0),w(this,f,r!==""),this.append(p,c);const h=typeof p=="string"?-1:s.indexOf(p);s.splice(h===-1?1/0:h,0,this)}get closed(){return F(this,f)}toString(u){const{firstChild:p,lastChild:c}=this,[r,i]=F(this,x);return F(this,E)?`<${r}${p.toString(u)}/>`:`<${r}${p.toString(u)}>${c.toString(u)}${this.closed?`</${i}>`:""}`}text(){const[u,p]=F(this,x);return F(this,E)?`<${u}${this.firstChild.text()}/>`:`<${u}${super.text(">")}${this.closed?`</${p}>`:""}`}getAttribute(u){return u==="padding"?F(this,x)[0].length+1:super.getAttribute(u)}getGaps(){return 1}print(){const[u,p]=F(this,x);return super.print(F(this,E)?{pre:`&lt;${u}`,post:"/&gt;"}:{pre:`&lt;${u}`,sep:"&gt;",post:this.closed?`&lt;/${p}&gt;`:""})}}E=new WeakMap,f=new WeakMap,x=new WeakMap},444:(Y,_,e)=>{e.d(_,{C:()=>$,L:()=>M});const $=11,M=e(166)},223:(Y,_,e)=>{e.d(_,{j:()=>$});const $={run(M){return M()}}},169:(Y,_,e)=>{e.d(_,{D:()=>M,Y:()=>K});var $=e(891);const M=(F,I,w,E="error")=>{const f=F.getRelativeIndex(),{offsetHeight:x,offsetWidth:a,parentNode:o}=F,{top:u,left:p}=o.posFromIndex(f),{start:c}=I,{top:r,left:i}="top"in I?I:F.getRootNode().posFromIndex(c),s=String(F),h=c+f,m=r+u,v=u?p:i+p;return{message:$.Z.msg(w),severity:E,startIndex:h,endIndex:h+s.length,startLine:m,endLine:m+x-1,startCol:v,endCol:x===1?v+a:a}},K=(F,I,w,E="error")=>{const{start:f}=I,{offsetHeight:x,offsetWidth:a}=F,o=String(F),{top:u,left:p}="top"in I?I:F.getRootNode().posFromIndex(f);return{message:$.Z.msg(w),severity:E,startIndex:f,endIndex:f+o.length,startLine:u,endLine:u+x-1,startCol:p,endCol:x===1?p+a:a}}},467:(Y,_,e)=>{e.d(_,{PN:()=>K,Qk:()=>M,S0:()=>f,_X:()=>$,fL:()=>I,hr:()=>F,jq:()=>E,m9:()=>w});const $='(?:\\[[\\da-f:.]+\\]|[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD])',M='(?:[^[\\]<>"\\0-\\x1F\\x7F\\p{Zs}\\uFFFD]|\\0\\d+c\\x7F)*',K=x=>x.replace(/\0\d+c\x7F/gu,""),F=x=>x.replace(/[\\{}()|.?*+^$[\]]/gu,"\\$&"),I=(x,a="")=>x.map(o=>typeof o=="string"?o:o.text()).join(a),w=x=>x.replace(/&#(\d+|x[\da-f]+);/giu,(a,o)=>String.fromCodePoint(+`${o[0].toLowerCase()==="x"?"0":""}${o}`)),E=x=>x.replace(/\n/gu,"\\n"),f=(x,a={})=>{const{pre:o="",post:u="",sep:p=""}=a;return`${o}${x.map(c=>c.print()).join(p)}${u}`}},166:Y=>{Y.exports=JSON.parse('{"ext":[],"html":[["b","bdi","del","i","ins","u","font","big","small","sub","sup","h1","h2","h3","h4","h5","h6","cite","code","em","s","strike","strong","tt","var","div","center","blockquote","ol","ul","dl","table","caption","pre","ruby","rb","rp","rt","rtc","p","span","abbr","dfn","kbd","samp","data","time","mark","tr","td","th","q","bdo"],["li","dt","dd"],["br","wbr","hr","meta","link","img"]],"namespaces":{"6":"File","10":"Template"},"nsid":{},"parserFunction":[{"#language":"language","#special":"special","#speciale":"speciale","#tag":"tag","#formatdate":"formatdate","#invoke":"invoke","#while":"while","#dowhile":"dowhile","#loop":"loop","#forargs":"forargs","#fornumargs":"fornumargs","#if":"if","#ifeq":"ifeq","#switch":"switch","#ifexist":"ifexist","#ifexpr":"ifexpr","#iferror":"iferror","#time":"time","#timel":"timel","#expr":"expr","#rel2abs":"rel2abs","#titleparts":"titleparts","#categorytree":"categorytree","#urldecode":"urldecode","#choose":"choose","#var":"var","#varexists":"varexists","#var_final":"var_final","#vardefine":"vardefine","#vardefineecho":"vardefineecho","#widget":"widget","#regex":"regex","#related":"related","#cscore":"cscore"},[],["msg","\u539F\u59CB","raw"],["\u66FF\u4EE3","subst","\u5B89\u5168\u66FF\u4EE3","safesubst"]],"doubleUnderscore":[[],[]],"protocol":"bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:","interwiki":[],"img":{},"variants":[]}')}},Bt={};function Et(Y){var _=Bt[Y];if(_!==void 0)return _.exports;var e=Bt[Y]={exports:{}};return Xt[Y](e,e.exports,Et),e.exports}Et.d=(Y,_)=>{for(var e in _)Et.o(_,e)&&!Et.o(Y,e)&&Object.defineProperty(Y,e,{enumerable:!0,get:_[e]})},Et.o=(Y,_)=>Object.prototype.hasOwnProperty.call(Y,_),Et.r=Y=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})};var re=Et(891)})();})();
@@ -518,41 +518,7 @@
518
518
  ]
519
519
  ],
520
520
  "protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
521
- "interwiki": [
522
- "arxiv",
523
- "aswiki",
524
- "cache",
525
- "cmoegirl",
526
- "commons",
527
- "doi",
528
- "google",
529
- "googlegroups",
530
- "gsnews",
531
- "imdb",
532
- "jawiki",
533
- "komica",
534
- "mediawikiwiki",
535
- "metawikimedia",
536
- "moegirl",
537
- "mw",
538
- "sifaswiki",
539
- "sifwiki",
540
- "wikia",
541
- "wikibooks",
542
- "wikidata",
543
- "wikimedia",
544
- "wikinews",
545
- "wikiinfo",
546
- "wikipedia",
547
- "wikiquote",
548
- "wikisource",
549
- "wikispecies",
550
- "wikiversity",
551
- "wikivoyage",
552
- "wikt",
553
- "wiktionary",
554
- "zhwiki"
555
- ],
521
+ "interwiki": [],
556
522
  "img": {
557
523
  "thumbnail": "thumbnail",
558
524
  "thumb": "thumbnail",
@@ -611,50 +611,7 @@
611
611
  ]
612
612
  ],
613
613
  "protocol": "bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:",
614
- "interwiki": [
615
- "commons",
616
- "mediawikiwiki",
617
- "metawikimedia",
618
- "mw",
619
- "wikibooks",
620
- "wikidata",
621
- "wikimedia",
622
- "wikinews",
623
- "wikipedia",
624
- "wikiquote",
625
- "wikisource",
626
- "wikispecies",
627
- "wikiversity",
628
- "wikivoyage",
629
- "wikt",
630
- "wiktionary",
631
- "cc",
632
- "cm",
633
- "en",
634
- "enmoe",
635
- "enwp",
636
- "fandom",
637
- "ghia",
638
- "huiji",
639
- "ja",
640
- "jamoe",
641
- "jawp",
642
- "library",
643
- "meta",
644
- "phab",
645
- "pmid",
646
- "shoutwiki",
647
- "translatewiki",
648
- "zh",
649
- "zhmoe",
650
- "zhmoegirl",
651
- "zhtest",
652
- "zhwp",
653
- "文库",
654
- "萌娘共享",
655
- "萌娘文库",
656
- "萌百"
657
- ],
614
+ "interwiki": [],
658
615
  "img": {
659
616
  "thumbnail": "thumbnail",
660
617
  "thumb": "thumbnail",