wikiparser-node 1.1.4 → 1.1.5-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.
- package/bundle/bundle.min.js +36 -0
- package/config/llwiki.json +3 -36
- package/config/minimum.json +4 -1
- package/config/moegirl.json +3 -45
- package/config/zhwiki.json +1 -466
- package/extensions/dist/base.js +70 -0
- package/extensions/dist/editor.js +160 -0
- package/extensions/dist/highlight.js +30 -0
- package/extensions/dist/lint.js +49 -0
- package/extensions/editor.css +63 -0
- package/extensions/ui.css +119 -0
- package/package.json +28 -12
- package/config/.schema.json +0 -160
- package/dist/addon/table.d.ts +0 -6
- package/dist/addon/table.js +0 -559
- package/dist/base.d.ts +0 -45
- package/dist/bin/toc.js +0 -18
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -210
- package/dist/internal.d.ts +0 -44
- package/dist/lib/element.d.ts +0 -155
- package/dist/lib/element.js +0 -660
- package/dist/lib/node.d.ts +0 -146
- package/dist/lib/node.js +0 -419
- package/dist/lib/range.d.ts +0 -104
- package/dist/lib/range.js +0 -386
- package/dist/lib/ranges.d.ts +0 -26
- package/dist/lib/ranges.js +0 -117
- package/dist/lib/text.d.ts +0 -62
- package/dist/lib/text.js +0 -235
- package/dist/lib/title.d.ts +0 -38
- package/dist/lib/title.js +0 -162
- package/dist/mixin/attributesParent.js +0 -94
- package/dist/mixin/fixed.js +0 -32
- package/dist/mixin/flagsParent.js +0 -70
- package/dist/mixin/hidden.js +0 -22
- package/dist/mixin/magicLinkParent.js +0 -41
- package/dist/mixin/singleLine.js +0 -25
- package/dist/mixin/sol.js +0 -43
- package/dist/mixin/syntax.js +0 -56
- package/dist/parser/braces.js +0 -123
- package/dist/parser/commentAndExt.js +0 -69
- package/dist/parser/converter.js +0 -40
- package/dist/parser/externalLinks.js +0 -28
- package/dist/parser/hrAndDoubleUnderscore.js +0 -38
- package/dist/parser/html.js +0 -36
- package/dist/parser/links.js +0 -94
- package/dist/parser/list.js +0 -59
- package/dist/parser/magicLinks.js +0 -40
- package/dist/parser/quotes.js +0 -67
- package/dist/parser/selector.js +0 -163
- package/dist/parser/table.js +0 -110
- package/dist/src/arg.d.ts +0 -58
- package/dist/src/arg.js +0 -190
- package/dist/src/atom.d.ts +0 -12
- package/dist/src/atom.js +0 -27
- package/dist/src/attribute.d.ts +0 -86
- package/dist/src/attribute.js +0 -392
- package/dist/src/attributes.d.ts +0 -106
- package/dist/src/attributes.js +0 -338
- package/dist/src/converter.d.ts +0 -51
- package/dist/src/converter.js +0 -79
- package/dist/src/converterFlags.d.ts +0 -87
- package/dist/src/converterFlags.js +0 -223
- package/dist/src/converterRule.d.ts +0 -81
- package/dist/src/converterRule.js +0 -212
- package/dist/src/extLink.d.ts +0 -53
- package/dist/src/extLink.js +0 -121
- package/dist/src/gallery.d.ts +0 -55
- package/dist/src/gallery.js +0 -129
- package/dist/src/heading.d.ts +0 -72
- package/dist/src/heading.js +0 -128
- package/dist/src/hidden.d.ts +0 -21
- package/dist/src/hidden.js +0 -23
- package/dist/src/html.d.ts +0 -104
- package/dist/src/html.js +0 -231
- package/dist/src/imageParameter.d.ts +0 -66
- package/dist/src/imageParameter.js +0 -246
- package/dist/src/imagemap.d.ts +0 -57
- package/dist/src/imagemap.js +0 -148
- package/dist/src/imagemapLink.d.ts +0 -57
- package/dist/src/imagemapLink.js +0 -40
- package/dist/src/index.d.ts +0 -145
- package/dist/src/index.js +0 -777
- package/dist/src/link/base.d.ts +0 -52
- package/dist/src/link/base.js +0 -207
- package/dist/src/link/category.d.ts +0 -13
- package/dist/src/link/category.js +0 -29
- package/dist/src/link/file.d.ts +0 -96
- package/dist/src/link/file.js +0 -253
- package/dist/src/link/galleryImage.d.ts +0 -43
- package/dist/src/link/galleryImage.js +0 -106
- package/dist/src/link/index.d.ts +0 -53
- package/dist/src/link/index.js +0 -123
- package/dist/src/magicLink.d.ts +0 -69
- package/dist/src/magicLink.js +0 -148
- package/dist/src/nested.d.ts +0 -44
- package/dist/src/nested.js +0 -87
- package/dist/src/nowiki/base.d.ts +0 -46
- package/dist/src/nowiki/base.js +0 -42
- package/dist/src/nowiki/comment.d.ts +0 -39
- package/dist/src/nowiki/comment.js +0 -67
- package/dist/src/nowiki/dd.d.ts +0 -8
- package/dist/src/nowiki/dd.js +0 -25
- package/dist/src/nowiki/doubleUnderscore.d.ts +0 -43
- package/dist/src/nowiki/doubleUnderscore.js +0 -51
- package/dist/src/nowiki/hr.d.ts +0 -29
- package/dist/src/nowiki/hr.js +0 -14
- package/dist/src/nowiki/index.d.ts +0 -16
- package/dist/src/nowiki/index.js +0 -21
- package/dist/src/nowiki/list.d.ts +0 -29
- package/dist/src/nowiki/list.js +0 -48
- package/dist/src/nowiki/listBase.d.ts +0 -18
- package/dist/src/nowiki/listBase.js +0 -12
- package/dist/src/nowiki/noinclude.d.ts +0 -25
- package/dist/src/nowiki/noinclude.js +0 -25
- package/dist/src/nowiki/quote.d.ts +0 -22
- package/dist/src/nowiki/quote.js +0 -50
- package/dist/src/onlyinclude.d.ts +0 -16
- package/dist/src/onlyinclude.js +0 -57
- package/dist/src/paramTag/index.d.ts +0 -37
- package/dist/src/paramTag/index.js +0 -68
- package/dist/src/paramTag/inputbox.d.ts +0 -8
- package/dist/src/paramTag/inputbox.js +0 -23
- package/dist/src/parameter.d.ts +0 -84
- package/dist/src/parameter.js +0 -206
- package/dist/src/pre.d.ts +0 -28
- package/dist/src/pre.js +0 -51
- package/dist/src/syntax.d.ts +0 -25
- package/dist/src/syntax.js +0 -30
- package/dist/src/table/base.d.ts +0 -52
- package/dist/src/table/base.js +0 -78
- package/dist/src/table/index.d.ts +0 -229
- package/dist/src/table/index.js +0 -379
- package/dist/src/table/td.d.ts +0 -102
- package/dist/src/table/td.js +0 -261
- package/dist/src/table/tr.d.ts +0 -32
- package/dist/src/table/tr.js +0 -56
- package/dist/src/table/trBase.d.ts +0 -54
- package/dist/src/table/trBase.js +0 -151
- package/dist/src/tagPair/ext.d.ts +0 -55
- package/dist/src/tagPair/ext.js +0 -142
- package/dist/src/tagPair/include.d.ts +0 -52
- package/dist/src/tagPair/include.js +0 -58
- package/dist/src/tagPair/index.d.ts +0 -47
- package/dist/src/tagPair/index.js +0 -93
- package/dist/src/transclude.d.ts +0 -167
- package/dist/src/transclude.js +0 -689
- package/dist/util/constants.js +0 -107
- package/dist/util/debug.js +0 -64
- package/dist/util/diff.js +0 -72
- package/dist/util/lint.js +0 -48
- package/dist/util/string.js +0 -61
- package/errors/README +0 -1
- package/printed/README +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
(()=>{(()=>{"use strict";var Vt={891:(Y,y,t)=>{t.d(y,{Z:()=>T});var P=t(223),M=t(444);const K=f=>f.replace(/[\0\x7F]/gu,""),F={i18n:void 0,getConfig(){return{...M.L,...this.config,excludes:[]}},msg(f,x=""){var l,o;return((o=(l=this.i18n)==null?void 0:l[f])!=null?o:f).replace("$1",x)},normalizeTitle(f,x=0,l=!1,o=F.getConfig(),u=!1,p=!1,c=!1){const{Title:r}=t(599);if(u)return new r(f,x,o,p,c);const{Token:i}=t(541),s=P.j.run(()=>new i(f,o).parseOnce(0,l).parseOnce());return new r(String(s),x,o,p,c)},parse(f,x,l=M.C,o=F.getConfig()){const{Token:u}=t(541);return P.j.run(()=>new u(K(f),o).parse(l,x))}},I={},O=new Set(["normalizeTitle","parse"]);for(const f in F)O.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 T=F},599:(Y,y,t)=>{t.r(y),t.d(y,{Title:()=>O});var P=t(467),M=t(891),K=Object.defineProperty,F=(T,f,x)=>f in T?K(T,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[f]=x,I=(T,f,x)=>(F(T,typeof f!="symbol"?f+"":f,x),x);class O{constructor(f,x=0,l=M.Z.getConfig(),o=!1,u=!1){I(this,"valid"),I(this,"ns"),I(this,"fragment"),I(this,"encoded",!1);const{nsid:p}=l;if(f=(0,P.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,y,t)=>{t.d(y,{a:()=>F});var P=Object.defineProperty,M=(I,O,T)=>O in I?P(I,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):I[O]=T,K=(I,O,T)=>(M(I,typeof O!="symbol"?O+"":O,T),T);const F=I=>{class O extends I{text(){return""}}return K(O,"hidden",!0),O}},313:(Y,y,t)=>{t.r(y),t.d(y,{parseBraces:()=>w});var P=t(467),M=t(891),K=t(485),F=t(169),I=t(541),O=Object.defineProperty,T=(n,e,d)=>e in n?O(n,e,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[e]=d,f=(n,e,d)=>(T(n,typeof e!="symbol"?e+"":e,d),d);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 l extends I.Token{constructor(e,d,$=M.Z.getConfig(),D=[]){super(void 0,$,D),f(this,"type","parameter");const L=new I.Token(typeof e=="number"?void 0:e,$,D,{}),S=new I.Token(d,$,D);L.type="parameter-key",S.type="parameter-value",S.setAttribute("stage",2),this.append(L,S)}get anon(){return this.firstChild.length===0}afterBuild(){if(!this.anon){const{parentNode:e,firstChild:d}=this,$=x(d);this.setAttribute("name",$),e&&e.getArgs($,!1,!1).add(this)}}toString(e){return this.anon?this.lastChild.toString(e):super.toString(e,"=")}text(){return this.anon?this.lastChild.text():super.text("=")}getGaps(){return this.anon?0:1}lint(e=this.getAbsoluteIndex()){var d;const $=super.lint(e),{firstChild:D}=this,L=(d=new RegExp(`https?://${P._X}${P.Qk}$`,"iu").exec(D.toString(new Set(["comment","noinclude","include"]))))==null?void 0:d[0];if(L&&new URL(L).search){const S=(0,F.D)(D,{start:e},"unescaped query string in an anonymous parameter");$.push({...S,startIndex:S.endIndex,endIndex:S.endIndex+1,startLine:S.endLine,startCol:S.endCol,endCol:S.endCol+1})}return $}print(){return super.print({sep:this.anon?"":"="})}}var o=t(34),u=t(669),p=Object.defineProperty,c=(n,e,d)=>e in n?p(n,e,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[e]=d,r=(n,e,d)=>(c(n,typeof e!="symbol"?e+"":e,d),d),i=(n,e,d)=>{if(!e.has(n))throw TypeError("Cannot "+d)},s=(n,e,d)=>(i(n,e,"read from private field"),d?d.call(n):e.get(n)),h=(n,e,d)=>{if(e.has(n))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(n):e.set(n,d)},m=(n,e,d,$)=>(i(n,e,"write to private field"),$?$.call(n,d):e.set(n,d),d),v=(n,e,d)=>(i(n,e,"access private method"),d),C,b,U,H,Q,Z;class a extends I.Token{constructor(e,d,$=M.Z.getConfig(),D=[]){var L,S;super(void 0,$,D,{}),h(this,U),h(this,Q),r(this,"type","template"),r(this,"modifier",""),h(this,C,!1),h(this,b,new Map);const{parserFunction:[G,X]}=$,V=(L=/^(?:\s|\0\d+c\x7F)*\0\d+s\x7F/u.exec(e))==null?void 0:L[0];if(V)this.setAttribute("modifier",V),e=e.slice(V.length);else if(e.includes(":")){const[st,...tt]=e.split(":"),[dt]=/^(?:\s|\0\d+c\x7F)*/u.exec((S=tt[0])!=null?S:"");this.setModifier(`${st}:${dt}`)&&(e=tt.join(":").slice(dt.length))}if(e.includes(":")||d.length===0&&!s(this,C)){const[st,...tt]=e.split(":"),dt=(0,P.PN)(st),nt=dt.trim(),ct=X.includes(nt),j=G[nt.toLowerCase()];if(!(tt.length>0&&/\s$/u.test(dt))&&(ct||j)){this.setAttribute("name",j!=null?j:nt.toLowerCase()),this.type="magic-word";const et=new RegExp(`^\\s*${nt}\\s*$`,ct?"u":"iu"),rt=new u.SyntaxToken(st,et,"magic-word-name",$,D,{});if(super.insertAt(rt),tt.length>0&&d.unshift([tt.join(":")]),this.name==="invoke")for(let lt=0;lt<2;lt++){const at=d.shift();if(!at)break;const ot=new o.D(at.join("="),`invoke-${lt?"function":"module"}`,$,D);super.insertAt(ot)}}}if(this.type==="template"){const st=(0,P.PN)((0,P.m9)(e)).split("#")[0].trim();if(!st||/\0\d+[eh!+-]\x7F|[<>[\]{}\n]|%[\da-f]{2}/u.test(st))throw D.pop(),new SyntaxError(`\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A${(0,P.jq)(st)}`);const tt=new o.D(e,"template-name",$,D,{});super.insertAt(tt)}const q=this.isTemplate();let k=1;for(let st=0;st<d.length;st++){const tt=d[st];!q&&!(this.name==="switch"&&st>0)&&(tt[0]=tt.join("="),tt.length=1),tt.length===1&&(tt.unshift(k),k++),this.insertAt(new l(...tt,$,D))}}setModifier(e){const{parserFunction:[,,d,$]}=this.getAttribute("config"),D=(0,P.PN)(e).trim();if(e&&!D.endsWith(":"))return!1;const L=D.slice(0,-1).toLowerCase(),S=d.includes(L),G=$.includes(L);return s(this,C)&&S||!s(this,C)&&(G||e==="")||this.length>1&&(S||G||e==="")?(this.setAttribute("modifier",e),m(this,C,S),!!e):!1}isTemplate(){return this.type==="template"||this.name==="invoke"}afterBuild(){this.modifier.includes("\0")&&this.setAttribute("modifier",this.buildFromStr(this.modifier,"string"))}toString(e){return`{{${this.modifier}${this.type==="magic-word"?`${this.firstChild.toString(e)}${this.length===1?"":":"}${this.childNodes.slice(1).map(d=>d.toString(e)).join("|")}`:super.toString(e,"|")}}}`}text(){const{childNodes:e,length:d,firstChild:$,modifier:D,type:L,name:S}=this;return L==="magic-word"&&S==="vardefine"?"":`{{${D}${L==="magic-word"?`${$.text()}${d===1?"":":"}${(0,P.fL)(e.slice(1),"|")}`:super.text("|")}}}`}getAttribute(e){switch(e){case"padding":return this.modifier.length+2;default:return super.getAttribute(e)}}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){const d=super.lint(e),{type:$,childNodes:D,length:L}=this;let S;if(!this.isTemplate())return d;const G=v(this,U,H).call(this);if(G)G.fragment!==void 0&&(S={start:e,...this.getRootNode().posFromIndex(e)},d.push((0,F.D)(D[$==="template"?0:1],S,"useless fragment")));else return S={start:e,...this.getRootNode().posFromIndex(e)},d.push((0,F.Y)(this,S,"missing module name")),d;if(G.valid||(S!=null||(S={start:e,...this.getRootNode().posFromIndex(e)}),d.push((0,F.D)(D[1],S,"illegal module name"))),$==="magic-word"&&L===2)return S!=null||(S={start:e,...this.getRootNode().posFromIndex(e)}),d.push((0,F.Y)(this,S,"missing module function")),d;const X=this.getDuplicatedArgs();return X.length>0&&(S!=null||(S={start:e,...this.getRootNode().posFromIndex(e)}),d.push(...X.flatMap(([,V])=>V).map(V=>(0,F.D)(V,S,"duplicated parameter")))),d}insertAt(e,d=this.length){return super.insertAt(e,d),e.anon?v(this,Q,Z).call(this,e):e.name&&this.getArgs(e.name,!1,!1).add(e),e}getAllArgs(){return this.childNodes.filter(e=>e.type==="parameter")}getAnonArgs(){return this.getAllArgs().filter(({anon:e})=>e)}getArgs(e,d=!1,$=!0){const D=String(e).replace(/^[ \t\n\0\v]+|([^ \t\n\0\v])[ \t\n\0\v]+$/gu,"$1");let L;return s(this,b).has(D)?L=s(this,b).get(D):(L=new Set(this.getAllArgs().filter(({name:S})=>D===S)),s(this,b).set(D,L)),L}getDuplicatedArgs(){return this.isTemplate()?[...s(this,b)].filter(([,{size:e}])=>e>1).map(([e,d])=>[e,[...d]]):[]}getPossibleValues(){const{type:e,name:d,childNodes:$,constructor:{name:D}}=this;if(e==="template")throw new Error(`${D}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`);let L;switch(d){case"if":case"ifexist":case"ifexpr":case"iferror":L=2;break;case"ifeq":L=3;break;default:throw new Error(`${D}.getPossibleValues \u65B9\u6CD5\u4EC5\u4F9B\u7279\u5B9A\u9B54\u672F\u5B57\u4F7F\u7528\uFF01`)}const S=$.slice(L,L+2).map(({childNodes:[,G]})=>G);for(let G=0;G<S.length;){const{length:X,0:V}=S[G].childNodes.filter(q=>q.text().trim());if(X===0)S.splice(G,1);else if(X>1||V.type!=="magic-word")G++;else try{const q=V.getPossibleValues();S.splice(G,1,...q),G+=q.length}catch(q){G++}}return S}print(){const{childNodes:e,length:d,firstChild:$,modifier:D,type:L}=this;return`<span class="wpb-${L}">{{${D}${L==="magic-word"?`${$.print()}${d===1?"":":"}${(0,P.S0)(e.slice(1),{sep:"|"})}`:(0,P.S0)(e,{sep:"|"})}}}</span>`}}C=new WeakMap,b=new WeakMap,U=new WeakSet,H=function(){const n=this.type==="template",e=this.childNodes[n?0:1];return e&&this.normalizeTitle(e.text(),n?10:828)},Q=new WeakSet,Z=function(n){const e=this.getAnonArgs(),d=typeof n!="number";for(let $=d?e.indexOf(n):n-1;$<e.length;$++){const D=e[$],{name:L}=D,S=String($+1);L!==S&&(D.setAttribute("name",S),this.getArgs(S,!1,!1).add(D))}};var A=t(465),B=Object.defineProperty,W=(n,e,d)=>e in n?B(n,e,{enumerable:!0,configurable:!0,writable:!0,value:d}):n[e]=d,_=(n,e,d)=>(W(n,typeof e!="symbol"?e+"":e,d),d);class N extends I.Token{constructor(e,d=M.Z.getConfig(),$=[]){super(void 0,d,$,{}),_(this,"type","arg");for(let D=0;D<e.length;D++)if(D===0){const L=new o.D(e[D],"arg-name",d,$,{});super.insertAt(L)}else if(D>1){const L=new A.R(e[D],d,$,{});super.insertAt(L)}else{const L=new I.Token(e[D],d,$);L.type="arg-default",L.setAttribute("stage",2),super.insertAt(L)}}get default(){var e,d;return(d=(e=this.childNodes[1])==null?void 0:e.text())!=null?d:!1}toString(e){return`{{{${super.toString(e,"|")}}}}`}text(){return`{{{${(0,P.fL)(this.childNodes.slice(0,2),"|")}}}}`}getAttribute(e){return e==="padding"?3:super.getAttribute(e)}getGaps(){return 1}lint(e=this.getAbsoluteIndex()){if(!this.getAttribute("include"))return[(0,F.Y)(this,{start:e},"unexpected template argument")];const{childNodes:[d,$,...D]}=this,L=d.lint(e+3);if($&&L.push(...$.lint(e+4+String(d).length)),D.length>0){const S={start:e,...this.getRootNode().posFromIndex(e)};L.push(...D.map(G=>{const X=(0,F.D)(G,S,"invisible content inside triple braces"),{startIndex:V,startCol:q}=X;return{...X,startIndex:V-1,startCol:q-1}}))}return L}print(){return super.print({pre:"{{{",post:"}}}",sep:"|"})}}const w=(n,e=M.Z.getConfig(),d=[])=>{var $,D,L,S,G,X;const V=`${($=e.excludes)!=null&&$.includes("heading")?"":"^(\0\\d+c\x7F)*={1,6}|"}\\[\\[|\\{{2,}|-\\{(?!\\{)`,{parserFunction:[,,,q]}=e,k=[],st={"=":`
|
|
2
|
+
`,"{":"\\}{2,}|\\|","-":"\\}-","[":"\\]\\]"},tt=new Map([["!","!"],["!!","+"],["(!","{"],["!)","}"],["!-","-"],["=","~"]]);let dt=new RegExp(V,"gmu"),nt=dt.exec(n),ct=n.includes("}}"),j;for(;nt||j!==void 0&&j<=n.length&&((L=(D=k[k.length-1])==null?void 0:D[0])!=null&&L.startsWith("="));){if(nt!=null&&nt[1]){const[,{length:gt}]=nt;nt[0]=nt[0].slice(gt),nt.index+=gt}const{0:et,index:rt}=nt!=null?nt:{0:`
|
|
3
|
+
`,index:n.length},lt=(S=k.pop())!=null?S:{},{0:at,index:ot,parts:ut,findEqual:wt,pos:Tt}=lt,Ot=et==="="&&wt;if(et==="]]"||et==="}-")j=rt+2;else if(et===`
|
|
4
|
+
`){j=rt+1;const{pos:gt,findEqual:ft}=(G=k[k.length-1])!=null?G:{};if(gt===void 0||ft||(0,P.PN)(n.slice(gt,ot))!==""){const vt=/^(={1,6})(.+)\1((?:\s|\0\d+c\x7F)*)$/u.exec(n.slice(ot,rt));vt&&(n=`${n.slice(0,ot)}\0${d.length}h\x7F${n.slice(rt)}`,j=ot+4+String(d.length).length,new K.D(vt[1].length,vt.slice(2),e,d))}}else if(et==="|"||Ot)j=rt+1,ut[ut.length-1].push(n.slice(Tt,rt)),et==="|"&&ut.push([]),lt.pos=j,lt.findEqual=et==="|",k.push(lt);else if(et.startsWith("}}")){const gt=et.slice(0,Math.min(at.length,3)),ft=at.length-gt.length,{length:vt}=d;j=rt+gt.length,ut[ut.length-1].push(n.slice(Tt,rt));let Ct=!1,At="t";if(gt.length===3){const ht=ut.map(R=>R.join("=")),$t=ht.length>1&&(0,P.PN)(ht[1]).trim();new N(ht,e,d),$t&&$t.endsWith(":")&&q.includes($t.slice(0,-1).toLowerCase())&&(At="s")}else try{new a(ut[0][0],ut.slice(1),e,d);const ht=(0,P.PN)(ut[0][0]).trim();tt.has(ht)?At=tt.get(ht):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(ht)?At="m":/^#vardefine:./iu.test(ht)&&(At="c")}catch(ht){if(ht instanceof SyntaxError&&ht.message.startsWith("\u975E\u6CD5\u7684\u6A21\u677F\u540D\u79F0\uFF1A"))j=ot+at.length,Ct=!0;else throw ht}Ct||(n=`${n.slice(0,ot+ft)}\0${vt}${At}\x7F${n.slice(j)}`,j=ot+ft+3+String(vt).length,ft>1?k.push({0:at.slice(0,ft),index:ot,pos:ot+ft,parts:[[]]}):ft===1&&n[ot-1]==="-"&&k.push({0:"-{",index:ot-1,pos:ot+1,parts:[[]]}))}else j=rt+et.length,et.startsWith("{")&&(nt.pos=j,nt.parts=[[]]),k.push(..."0"in lt?[lt]:[],nt);ct&&(ct=n.slice(j).includes("}}"));let xt=k[k.length-1];!ct&&((X=xt==null?void 0:xt[0])!=null&&X.startsWith("{"))&&(k.pop(),xt=k[k.length-1]),dt=new RegExp(V+(xt?`|${st[xt[0][0]]}${xt.findEqual?"|=":""}`:""),"gmu"),dt.lastIndex=j,nt=dt.exec(n)}return n}},551:(Y,y,t)=>{t.r(y),t.d(y,{parseCommentAndExt:()=>i});var P=t(891),M=t(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 O 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"><onlyinclude></span>',post:'<span class="wpb-ext"></onlyinclude></span>'})}}var T=t(826),f=t(959),x=t(415),l=Object.defineProperty,o=(s,h,m)=>h in s?l(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,b=P.Z.getConfig(),U=[]){super(h,m,v!=null?v:"",v===void 0||C!=null?C:"",b,U),u(this,"type","include")}}var c=t(895),r=t(976);const i=(s,h=P.Z.getConfig(),m=[],v=!1)=>{const C="<onlyinclude>",b="</onlyinclude>",{length:U}=C;if(v){let A=s.indexOf(C),B=s.indexOf(b,A+U);if(A!==-1&&B!==-1){let W="";for(;A!==-1&&B!==-1;){const _=`\0${m.length}e\x7F`;new O(s.slice(A+U,B),h,m),A>0?(new T.O(s.slice(0,A),h,m),W+=`\0${m.length-1}c\x7F${_}`):W+=_,s=s.slice(B+U+1),A=s.indexOf(C),B=s.indexOf(b,A+U)}return s&&(new T.O(s,h,m),W+=`\0${m.length-1}c\x7F`),W}}const H=h.ext.join("|"),Q=v?"includeonly":"(?:no|only)include",Z=v?"noinclude":"includeonly",a=new RegExp(`<!--.*?(?:-->|$)|<${Q}(?:\\s[^>]*?)?>|</${Q}\\s*>|<(${H})(\\s[^>]*?)?(?:/>|>(.*?)</(\\1\\s*)>)|<(${Z})(\\s[^>]*?)?(?:/>|>(.*?)(?:</(\\5\\s*)>|$))`,"gisu");return s.replace(a,(A,B,W,_,N,w,n,e,d)=>{const $=`\0${m.length}${B?"e":"c"}\x7F`;if(B)new c.$(B,W,_,N,h,m);else if(A.startsWith("<!--")){const D=A.endsWith("-->");new r.T(A.slice(4,D?-3:void 0),D,h,m)}else w?new p(w,n,e,d,h,m):new T.O(A,h,m);return $})}},370:(Y,y,t)=>{t.r(y),t.d(y,{parseConverter:()=>Q});var P=t(891),M=t(467);const K=Z=>{class a extends Z{}return a};var F=t(541),I=t(169),O=t(34),T=Object.defineProperty,f=(Z,a,A)=>a in Z?T(Z,a,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[a]=A,x=(Z,a,A)=>(f(Z,typeof a!="symbol"?a+"":a,A),A),l=(Z,a,A)=>{if(!a.has(Z))throw TypeError("Cannot "+A)},o=(Z,a,A)=>(l(Z,a,"read from private field"),A?A.call(Z):a.get(Z)),u=(Z,a,A)=>{if(a.has(Z))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(Z):a.set(Z,A)},p=(Z,a,A,B)=>(l(Z,a,"write to private field"),B?B.call(Z,A):a.set(Z,A),A),c;const r=new Set(["A","T","R","D","-","H","N"]);class i extends F.Token{constructor(a,A=P.Z.getConfig(),B=[]){super(void 0,A,B,{}),x(this,"type","converter-flags"),u(this,c,void 0),this.append(...a.map(W=>new O.D(W,"converter-flag",A,B)))}afterBuild(){p(this,c,this.childNodes.map(a=>a.text().trim()))}toString(a){return super.toString(a,";")}text(){return super.text(";")}getGaps(){return 1}getUnknownFlags(){return new Set(o(this,c).filter(a=>/\{{3}[^{}]+\}{3}/u.test(a)))}getVariantFlags(){const a=new Set(this.getAttribute("config").variants);return new Set(o(this,c).filter(A=>a.has(A)))}lint(a=this.getAbsoluteIndex()){const A=this.getVariantFlags(),B=this.getUnknownFlags(),W=new Set(o(this,c).filter($=>r.has($))),{length:_}=o(this,c).filter($=>!$),N=o(this,c).length-B.size-_,w=super.lint(a);if(A.size===N||W.size===N)return w;const n={start:a,...this.getRootNode().posFromIndex(a)},{childNodes:e,length:d}=this;for(let $=0;$<d;$++){const D=e[$],L=D.text().trim();if(L&&!A.has(L)&&!B.has(L)&&(A.size>0||!W.has(L))){const S=(0,I.D)(D,n,"invalid conversion flag");w.push(S)}}return w}print(){return super.print({sep:";"})}}c=new WeakMap;var s=Object.defineProperty,h=(Z,a,A)=>a in Z?s(Z,a,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[a]=A,m=(Z,a,A)=>(h(Z,typeof a!="symbol"?a+"":a,A),A);class v extends F.Token{constructor(a,A=!0,B=P.Z.getConfig(),W=[]){super(void 0,B,W),m(this,"type","converter-rule");const _=a.indexOf(":"),N=a.slice(0,_).indexOf("=>"),w=N===-1?a.slice(0,_):a.slice(N+2,_);A&&B.variants.includes(w.trim())?(super.insertAt(new O.D(w,"converter-rule-variant",B,W)),super.insertAt(new O.D(a.slice(_+1),"converter-rule-to",B,W)),N!==-1&&super.insertAt(new O.D(a.slice(0,N),"converter-rule-from",B,W),0)):super.insertAt(new O.D(a,"converter-rule-to",B,W))}toString(a){const{childNodes:A}=this;if(A.length===3){const[B,W,_]=A;return`${B.toString(a)}=>${W.toString(a)}:${_.toString(a)}`}return super.toString(a,":")}text(){const{childNodes:a}=this;if(a.length===3){const[A,B,W]=a;return`${A.text()}=>${B.text()}:${W.text()}`}return super.text(":")}getGaps(a){return a===0&&this.length===3?2:1}print(){const{childNodes:a}=this;if(a.length===3){const[A,B,W]=a;return`<span class="wpb-converter-rule">${A.print()}=>${B.print()}:${W.print()}</span>`}return super.print({sep:":"})}}var C=Object.defineProperty,b=(Z,a,A)=>a in Z?C(Z,a,{enumerable:!0,configurable:!0,writable:!0,value:A}):Z[a]=A,U=(Z,a,A)=>(b(Z,typeof a!="symbol"?a+"":a,A),A);class H extends K(F.Token){constructor(a,A,B=P.Z.getConfig(),W=[]){super(void 0,B,W),U(this,"type","converter"),this.append(new i(a,B,W));const[_]=A,N=_.includes(":"),w=new v(_,N,B,W);N&&w.length===1?this.insertAt(new v(A.join(";"),!1,B,W)):this.append(w,...A.slice(1).map(n=>new v(n,!0,B,W)))}toString(a){const{childNodes:[A,...B]}=this;return`-{${A.toString()}${A.length>0?"|":""}${B.map(W=>W.toString()).join(";")}}-`}text(){const{childNodes:[a,...A]}=this;return`-{${a.text()}|${(0,M.fL)(A,";")}}-`}getAttribute(a){return a==="padding"?2:super.getAttribute(a)}getGaps(a){return a||this.firstChild.length>0?1:0}print(){const{childNodes:[a,...A]}=this;return`<span class="wpb-converter">-{${a.print()}${a.length>0?"|":""}${(0,M.S0)(A,{sep:";"})}}-</span>`}}const Q=(Z,a=P.Z.getConfig(),A=[])=>{const B=/-\{/gu,W=/-\{|\}-/gu,_=[];let N=B,w=N.exec(Z);for(;w;){const{0:n,index:e}=w;if(n==="}-"){const d=_.pop(),{length:$}=A,D=Z.slice(d.index+2,e),L=D.indexOf("|"),[S,G]=L===-1?[[],D]:[D.slice(0,L).split(";"),D.slice(L+1)],X=G.replace(/(&[#a-z\d]+);/giu,"$1"),V=`(?:${a.variants.join("|")})`,q=X.split(new RegExp(`;(?=\\s*(?:${V}|[^;]*?=>\\s*${V})\\s*:)`,"u")).map(k=>k.replace(/\x01/gu,";"));new H(S,q,a,A),Z=`${Z.slice(0,d.index)}\0${$}v\x7F${Z.slice(e+2)}`,_.length===0&&(N=B),N.lastIndex=d.index+3+String($).length}else _.push(w),N=W,N.lastIndex=e+2;w=N.exec(Z)}return Z}},418:(Y,y,t)=>{t.r(y),t.d(y,{parseExternalLinks:()=>F});var P=t(467),M=t(891),K=t(876);const F=(I,O=M.Z.getConfig(),T=[])=>{const f=new RegExp(`\\[((?:(?:${O.protocol}|//)${P._X}|\0\\d+m\x7F)${P.Qk})(\\p{Zs}*)([^\\]-\b
|
|
5
|
+
-\uFFFD]*)\\]`,"giu");return I.replace(f,(x,l,o,u)=>{const{length:p}=T,c=/&[lg]t;/u.exec(l);return c&&(l=l.slice(0,c.index),o="",u=`${l.slice(c.index)}${o}${u}`),new K.a(l,o,u,O,T),`\0${p}w\x7F`})}},362:(Y,y,t)=>{t.r(y),t.d(y,{parseHrAndDoubleUnderscore:()=>p});var P=t(891),M=t(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 O extends M.h{constructor(){super(...arguments),I(this,"type","hr")}}var T=t(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,l=(c,r,i)=>(x(c,typeof r!="symbol"?r+"":r,i),i);class o extends(0,T.a)(M.h){constructor(r,i,s=P.Z.getConfig(),h=[]){super(r,s,h),l(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=t(485);const p=({firstChild:{data:c},type:r,name:i},s=P.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,(b,U,H)=>(new O(H,s,h),`${U}\0${h.length-1}r\x7F`)).replace(new RegExp(`__(${m.flat().join("|")})__`,"giu"),(b,U)=>{const H=C.has(U);return H||v.has(U.toLowerCase())?(new o(U,H,s,h),`\0${h.length-1}u\x7F`):b}).replace(/^((?:\0\d+c\x7F)*)(={1,6})(.+)\2((?:[^\S\n]|\0\d+c\x7F)*)$/gmu,(b,U,H,Q,Z)=>{const a=`${U}\0${h.length}h\x7F`;return new u.D(H.length,[Q,Z],s,h),a}),r==="root"||r==="ext-inner"&&i==="poem"?c:c.slice(1)}},980:(Y,y,t)=>{t.r(y),t.d(y,{parseHtml:()=>h});var P=t(891),M=t(83),K=t(169),F=t(467),I=t(541),O=Object.defineProperty,T=(m,v,C)=>v in m?O(m,v,{enumerable:!0,configurable:!0,writable:!0,value:C}):m[v]=C,f=(m,v,C)=>(T(m,typeof v!="symbol"?v+"":v,C),C),x=(m,v,C)=>{if(!v.has(m))throw TypeError("Cannot "+C)},l=(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,b)=>(x(m,v,"write to private field"),b?b.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,b,U,H=P.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,b),u(this,c,U),u(this,r,v)}get closing(){return l(this,p)}toString(v){return`<${this.closing?"/":""}${l(this,r)}${super.toString()}${l(this,c)?"/":""}>`}text(){const{closing:v}=this;return`<${v?"/":""}${l(this,r)}${v?"":super.text()}${l(this,c)?"/":""}>`}getAttribute(v){return v==="padding"?l(this,r).length+(this.closing?2:1):super.getAttribute(v)}lint(v=this.getAbsoluteIndex()){const C=super.lint(v);let b;this.name==="h1"&&!this.closing&&(b=(0,K.Y)(this,{start:v},"<h1>"),C.push(b)),this.closest("table-attrs")&&(b!=null||(b=(0,K.Y)(this,{start:v},"")),C.push({...b,message:P.Z.msg("HTML tag in table attributes")}));try{this.findMatchingTag()}catch(U){if(U instanceof SyntaxError){const{message:H}=U;b!=null||(b=(0,K.Y)(this,{start:v},""));const[Q]=H.split(":"),Z={...b,message:P.Z.msg(Q)};if(Q==="unclosed tag")Z.severity="warning";else if(Q==="unmatched closing tag"){const a=this.closest("magic-word");a&&i.has(a.name)&&(Z.severity="warning")}C.push(Z)}}return C}findMatchingTag(){const{html:v}=this.getAttribute("config"),{name:C,parentNode:b,closing:U}=this,H=(0,F.jq)(String(this));if(U&&(l(this,c)||v[2].includes(C)))throw new SyntaxError(`tag that is both closing and self-closing: ${H}`);if(v[2].includes(C)||l(this,c)&&v[1].includes(C))return this;if(l(this,c)&&v[0].includes(C))throw new SyntaxError(`invalid self-closing tag: ${H}`);if(!b)return;const{childNodes:Q}=b,Z=Q.indexOf(this),a=U?Q.slice(0,Z).reverse().filter(({type:B,name:W})=>B==="html"&&W===C):Q.slice(Z+1).filter(({type:B,name:W})=>B==="html"&&W===C);let A=U?-1:1;for(const B of a)if(l(B,p)?A--:A++,A===0)return B;throw new SyntaxError(`${U?"unmatched closing":"unclosed"} tag: ${H}`)}print(){return super.print({pre:`<${this.closing?"/":""}${l(this,r)}`,post:`${l(this,c)?"/":""}>`})}}p=new WeakMap,c=new WeakMap,r=new WeakMap;const h=(m,v=P.Z.getConfig(),C=[])=>{const b=/^(\/?)([a-z][^\s/>]*)((?:\s|\/(?!>))[^>]*?)?(\/?>)([^<]*)$/iu,U=new Set(v.html.flat()),H=m.split("<");let Q=H.shift();for(const Z of H){const a=b.exec(Z),A=a==null?void 0:a[2],B=A==null?void 0:A.toLowerCase();if(!a||!U.has(B)){Q+=`<${Z}`;continue}const[,W,,_="",N,w]=a,n=new M.x(_,"html-attrs",B,v,C),e=n.getAttr("itemprop");if(B==="meta"&&(e===void 0||n.getAttr("content")===void 0)||B==="link"&&(e===void 0||n.getAttr("href")===void 0)){Q+=`<${Z}`,C.pop();continue}Q+=`\0${C.length}x\x7F${w}`,new s(A,n,W==="/",N==="/>",v,C)}return Q}},106:(Y,y,t)=>{t.r(y),t.d(y,{parseLinks:()=>x});var P=t(891),M=t(524),K=t(533),F=t(299),I=Object.defineProperty,O=(l,o,u)=>o in l?I(l,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[o]=u,T=(l,o,u)=>(O(l,typeof o!="symbol"?o+"":o,u),u);class f extends F.o{constructor(){super(...arguments),T(this,"type","category")}}const x=(l,o=P.Z.getConfig(),u=[])=>{const{parseQuotes:p}=t(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=l.split("[[");let h=s.shift();for(let m=0;m<s.length;m++){let v=!1,C,b,U,H;const Q=s[m],Z=c.exec(Q);if(Z)[,C,b,U,H]=Z,H.startsWith("]")&&(U!=null&&U.includes("["))&&(U+="]",H=H.slice(1));else{const N=r.exec(Q);N&&(v=!0,[,C,b,U]=N)}if(C===void 0||i.test(C)||/\0\d+[exhbru]\x7F/u.test(C)){h+=`[[${Q}`;continue}const a=C.trim().startsWith(":");if(a&&v){h+=`[[${Q}`;continue}const A=P.Z.normalizeTitle(C,0,!1,o,!0,!0,!0),{ns:B,valid:W}=A;if(W){if(v){if(B!==6){h+=`[[${Q}`;continue}let N=!1;for(m++;m<s.length;m++){const w=s[m],n=w.split("]]");if(n.length>2){N=!0,U+=`[[${n[0]}]]${n[1]}`,H=n.slice(2).join("]]");break}else if(n.length===2)U+=`[[${n[0]}]]${n[1]}`;else{U+=`[[${w}`;break}}if(U=x(U,o,u),!N){h+=`[[${C}${b}${U}`;continue}}}else{h+=`[[${Q}`;continue}U&&(U=p(U,o,u)),h+=`\0${u.length}l\x7F${H}`;let _=M.h;a||(B===6?_=K.q:B===14&&(_=f)),U===void 0&&b&&(U=""),new _(C,U,o,u,b)}return h}},904:(Y,y,t)=>{t.r(y),t.d(y,{parseList:()=>f});var P=t(891),M=t(933),K=Object.defineProperty,F=(x,l,o)=>l in x?K(x,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[l]=o,I=(x,l,o)=>(F(x,typeof l!="symbol"?l+"":l,o),o);class O extends M.T{constructor(){super(...arguments),I(this,"type","list")}}var T=t(461);const f=(x,l=P.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 O(r,l,o),!s)return i;let h=/:+|-\{/gu,m=h.exec(i),v=0;for(;m&&s;){const{0:C,index:b}=m;if(C.startsWith(":")){if(C.length>=s)return new T.k(":".repeat(s),l,o),`${i.slice(0,b)}\0${o.length-1}d\x7F${i.slice(b+s)}`;i=`${i.slice(0,b)}\0${o.length}d\x7F${i.slice(h.lastIndex)}`,s-=C.length,h.lastIndex=b+4+String(o.length).length,new T.k(C,l,o)}else if(C==="-{"){if(!v){const{lastIndex:U}=h;h=/-\{|\}-/gu,h.lastIndex=U}v++}else if(v--,!v){const{lastIndex:U}=h;h=/:+|-\{/gu,h.lastIndex=U}m=h.exec(i)}return i}},311:(Y,y,t)=>{t.r(y),t.d(y,{parseMagicLinks:()=>F});var P=t(467),M=t(891),K=t(686);const F=(I,O=M.Z.getConfig(),T=[])=>{const f=new RegExp(`(^|[^\\p{L}\\d_])(?:${O.protocol})(${P._X}${P.Qk})`,"giu");return I.replace(f,(x,l,o)=>{let u="",p=l?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,O,T),`${l}\0${T.length-1}w\x7F${u}`)})}},704:(Y,y,t)=>{t.r(y),t.d(y,{parseQuotes:()=>f});var P=t(891),M=t(169),K=t(439),F=Object.defineProperty,I=(x,l,o)=>l in x?F(x,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[l]=o,O=(x,l,o)=>(I(x,typeof l!="symbol"?l+"":l,o),o);class T extends K.h{constructor(){super(...arguments),O(this,"type","quote")}lint(l=this.getAbsoluteIndex()){const{previousSibling:o,nextSibling:u}=this,p=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:l},p);const{startIndex:i,startLine:s,startCol:h}=r,[,{length:m}]=/(?:^|[^'])('+)$/u.exec(o.data),v=l-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:l},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,l=P.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 T(p[v],l,o),p[v]=`\0${o.length-1}q\x7F`;return p.join("")}},508:(Y,y,t)=>{t.r(y),t.d(y,{parseTable:()=>N});var P=t(891),M=t(541),K=t(169),F=t(223),I=t(669),O=t(83);class T extends M.Token{constructor(n,e,d,$=P.Z.getConfig(),D=[],L={}){super(void 0,$,D,L),this.append(new I.SyntaxToken(e,n,"table-syntax",$,D,{}),new O.x(d,"table-attrs",this.type,$,D))}}class f extends T{lint(n=this.getAbsoluteIndex()){const e=super.lint(n),d=this.childNodes.find(({type:S})=>S==="table-inter");if(!d)return e;const $=d.childNodes.find(S=>S.text().trim()),D=/^\s*(?:!|\{\{\s*![!-]?\s*\}\})/u;if(!$||D.test(String($))||$.type==="arg"&&D.test($.default||""))return e;if($.type==="magic-word")try{if($.getPossibleValues().every(S=>D.test(S.text())))return e}catch(S){}const L=(0,K.D)(d,{start:n},"content to be moved out from the table");return e.push({...L,startIndex:L.startIndex+1,startLine:L.startLine+1,startCol:0}),e}}var x=Object.defineProperty,l=(w,n,e)=>n in w?x(w,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):w[n]=e,o=(w,n,e)=>(l(w,typeof n!="symbol"?n+"":n,e),e);const u=/^\n[^\S\n]*(?:\|\}|\{\{\s*!\s*\}\}\}|\{\{\s*!\)\s*\}\})$/u;class p extends f{constructor(n,e,d=P.Z.getConfig(),$=[]){super(/^(?:\{\||\{\{\{\s*!\s*\}\}|\{\{\s*\(!\s*\}\})$/u,n,e,d,$,{}),o(this,"type","table")}get closed(){return this.lastChild.type==="table-syntax"}lint(n=this.getAbsoluteIndex()){const e=super.lint(n);if(!this.closed){const{firstChild:d}=this,$=(0,K.D)(d,{start:n},"unclosed table");e.push($)}return e}close(n=`
|
|
6
|
+
|}`,e=!1){const d=this.getAttribute("config"),$=this.getAttribute("accum"),D=[n],L=F.j.run(()=>super.insertAt(new I.SyntaxToken(void 0,u,"table-syntax",d,$,{})));this.lastChild.replaceChildren(...D)}}var c=Object.defineProperty,r=(w,n,e)=>n in w?c(w,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):w[n]=e,i=(w,n,e)=>(r(w,typeof n!="symbol"?n+"":n,e),e);class s extends f{constructor(n,e,d=P.Z.getConfig(),$=[]){super(/^\n[^\S\n]*(?:\|-+|\{\{\s*!\s*\}\}-+|\{\{\s*!-\s*\}\}-*)$/u,n,e,d,$,{}),i(this,"type","tr")}}var h=Object.defineProperty,m=(w,n,e)=>n in w?h(w,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):w[n]=e,v=(w,n,e)=>(m(w,typeof n!="symbol"?n+"":n,e),e),C=(w,n,e)=>{if(!n.has(w))throw TypeError("Cannot "+e)},b=(w,n,e)=>(C(w,n,"read from private field"),e?e.call(w):n.get(w)),U=(w,n,e)=>{if(n.has(w))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(w):n.set(w,e)},H=(w,n,e,d)=>(C(w,n,"write to private field"),d?d.call(w,e):n.set(w,e),e),Q=(w,n,e,d)=>({set _($){H(w,n,$,e)},get _(){return b(w,n,d)}}),Z=(w,n,e)=>(C(w,n,"access private method"),e),a,A,B;class W extends T{constructor(n,e,d=P.Z.getConfig(),$=[]){var D;let L=/\||\0\d+!\x7F/u.exec(e!=null?e:""),S=L?e.slice(0,L.index):"";/\[\[|-\{/u.test(S)&&(L=null,S=""),super(/^(?:\n[^\S\n]*(?:[|!]|\|\+|\{\{\s*!\s*\}\}\+?)|(?:\||\{\{\s*!\s*\}\}){2}|!!|\{\{\s*!!\s*\}\})$/u,n,S,d,$),U(this,A),v(this,"type","td"),U(this,a,""),L&&([Q(this,a)._]=L);const G=new M.Token(e==null?void 0:e.slice(((D=L==null?void 0:L.index)!=null?D:NaN)+b(this,a).length),d,$);G.type="td-inner",G.setAttribute("stage",4),this.insertAt(G)}get subtype(){return Z(this,A,B).call(this).subtype}afterBuild(){b(this,a).includes("\0")&&H(this,a,this.buildFromStr(b(this,a),"string"))}toString(n){const{childNodes:[e,d,$]}=this;return`${e.toString()}${d.toString()}${b(this,a)}${$.toString()}`}text(){const{childNodes:[n,e,d]}=this;return`${n.text()}${e.text()}${b(this,a)}${d.text()}`}getGaps(n){return n===1?b(this,a).length:0}lint(n=this.getAbsoluteIndex()){const e=super.lint(n);n+=this.getRelativeIndex(this.length-1);for(const d of this.lastChild.childNodes)d.type==="text"&&d.data.includes("|")&&e.push((0,K.D)(d,{start:n},'additional "|" in a table cell',"warning"));return e}print(){const{childNodes:[n,e,d]}=this;return`<span class="wpb-td">${n.print()}${e.print()}${b(this,a)}${d.print()}</span>`}}a=new WeakMap,A=new WeakSet,B=function(){const w=this.firstChild.text(),n=w[w.length-1];let e="td";return n==="!"?e="th":n==="+"&&(e="caption"),{subtype:e}};var _=t(461);const N=({firstChild:{data:w},type:n,name:e},d=P.Z.getConfig(),$=[])=>{const D=[],L=w.split(`
|
|
7
|
+
`);let S=n==="root"||n==="parameter-value"||n==="ext-inner"&&e==="poem"?"":`
|
|
8
|
+
${L.shift()}`;const G=(X,V)=>{if(!V){S+=X;return}const{lastChild:q}=V;if(q.constructor===M.Token)q.setText(String(q)+X);else{const k=new M.Token(X,d,$);k.type="table-inter",k.setAttribute("stage",3),V.insertAt(k)}};for(const X of L){let V=D.pop();const[q]=/^(?:\s|\0\d+c\x7F)*/u.exec(X),k=X.slice(q.length),st=/^(:*)((?:\s|\0\d+c\x7F)*)(\{\||\{(?:\0\d+c\x7F)*\0\d+!\x7F|\0\d+\{\x7F)(.*)$/u.exec(k);if(st){for(;V&&V.type!=="td";)V=D.pop();const[,et,rt,lt,at]=st;et&&new _.k(et,d,$),G(`
|
|
9
|
+
${q}${et&&`\0${$.length-1}d\x7F`}${rt}\0${$.length}b\x7F`,V),D.push(...V?[V]:[],new p(lt,at,d,$));continue}else if(!V){S+=`
|
|
10
|
+
${X}`;continue}const tt=/^(?:(\|\}|\0\d+!\x7F\}|\0\d+\}\x7F)|(\|-+|\0\d+!\x7F-+|\0\d+-\x7F-*)(?!-)|(!|(?:\||\0\d+!\x7F)\+?))(.*)$/u.exec(k);if(!tt){G(`
|
|
11
|
+
${X}`,V),D.push(V);continue}const[,dt,nt,ct,j]=tt;if(dt){for(;V.type!=="table";)V=D.pop();V.close(`
|
|
12
|
+
${q}${dt}`,!0),G(j,D[D.length-1])}else if(nt){V.type==="td"&&(V=D.pop()),V.type==="tr"&&(V=D.pop());const et=new s(`
|
|
13
|
+
${q}${nt}`,j,d,$);D.push(V,et),V.insertAt(et)}else{V.type==="td"&&(V=D.pop());const et=ct==="!"?/!!|(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu:/(?:\||\0\d+!\x7F){2}|\0\d+\+\x7F/gu;let rt=et.exec(j),lt=0,at=`
|
|
14
|
+
${q}${ct}`;for(;rt;)V.insertAt(new W(at,j.slice(lt,rt.index),d,$)),{lastIndex:lt}=et,[at]=rt,rt=et.exec(j);const ot=new W(at,j.slice(lt),d,$);D.push(V,ot),V.insertAt(ot)}}return S.slice(1)}},34:(Y,y,t)=>{t.d(y,{D:()=>K});var P=t(891),M=t(541);class K extends M.Token{constructor(I,O,T=P.Z.getConfig(),f=[],x){super(I,T,f,x),this.type=O}}},83:(Y,y,t)=>{t.d(y,{x:()=>Q});var P=t(169),M=t(467),K=t(891),F=t(541),I=t(34),O=t(444),T=(Z,a,A)=>{if(!a.has(Z))throw TypeError("Cannot "+A)},f=(Z,a,A)=>(T(Z,a,"read from private field"),A?A.call(Z):a.get(Z)),x=(Z,a,A)=>{if(a.has(Z))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(Z):a.set(Z,A)},l=(Z,a,A,B)=>(T(Z,a,"write to private field"),B?B.call(Z,A):a.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,b={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"])},U=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(a,A,B,W="",_,N=[],w=K.Z.getConfig(),n=[]){const e=new I.D(B,"attr-key",w,n,{});let d;if(B==="title"||A==="img"&&B==="alt")d=new F.Token(_,w,n,{}),d.type="attr-value",d.setAttribute("stage",O.C-1);else if(A==="gallery"&&B==="caption"){const $={...w,excludes:[...w.excludes,"quote","extLink","magicLink","list"]};d=new F.Token(_,$,n,{}),d.type="attr-value",d.setAttribute("stage",5)}else if(A==="choose"&&(B==="before"||B==="after")){const $={...w,excludes:[...w.excludes,"heading","html","table","hr","list"]};d=new F.Token(_,$,n,{}),d.type="attr-value",d.setAttribute("stage",1)}else d=new I.D(_,"attr-value",w,n,{});super(void 0,w,n),x(this,o,void 0),x(this,u,void 0),this.type=a,this.append(e,d),l(this,o,W),l(this,u,N),this.tag=A,this.setAttribute("name",(0,M.PN)(B).trim().toLowerCase())}get balanced(){return!f(this,o)||f(this,u)[0]===f(this,u)[1]}afterBuild(){f(this,o).includes("\0")&&l(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(a){const[A="",B=""]=f(this,u);return f(this,o)?`${super.toString(a,`${f(this,o)}${A}`)}${B}`:this.firstChild.toString(a)}text(){return f(this,o)?`${super.text(`${f(this,o).trim()}"`)}"`:this.firstChild.text()}getGaps(){var a,A;return f(this,o)?f(this,o).length+((A=(a=f(this,u)[0])==null?void 0:a.length)!=null?A:0):0}lint(a=this.getAbsoluteIndex()){var A;const B=super.lint(a),{balanced:W,firstChild:_,lastChild:N,type:w,name:n,tag:e}=this,d=this.getValue();let $;if(!W){const D=this.getRootNode();$={start:a,...D.posFromIndex(a)};const L=(0,P.D)(N,$,"unclosed quotes","warning"),S=L.startIndex-1;B.push({...L,startIndex:S,startCol:L.startCol-1})}return b[e]&&!b[e].has(n)||(w==="ext-attr"?e in v:!/\{\{[^{]+\}\}/u.test(n))&&!((A=v[e])!=null&&A.has(n))&&!/^(?:xmlns:[\w:.-]+|data-[^:]*)$/u.test(n)&&(e==="meta"||e==="link"||!p.has(n))?($!=null||($={start:a,...this.getRootNode().posFromIndex(a)}),B.push((0,P.D)(_,$,"illegal attribute name"))):n==="style"&&typeof d=="string"&&U.test(d)?($!=null||($={start:a,...this.getRootNode().posFromIndex(a)}),B.push((0,P.D)(N,$,"insecure style"))):n==="tabindex"&&typeof d=="string"&&d.trim()!=="0"&&($!=null||($={start:a,...this.getRootNode().posFromIndex(a)}),B.push((0,P.D)(N,$,"nonzero tabindex"))),B}getValue(){if(f(this,o)){const a=this.lastChild.text();return f(this,u)[1]?a:a.trim()}return this.type==="ext-attr"||""}print(){const[a="",A=""]=f(this,u);return f(this,o)?super.print({sep:`${f(this,o)}${a}`,post:A}):super.print()}}o=new WeakMap,u=new WeakMap;class Q extends F.Token{constructor(a,A,B,W=K.Z.getConfig(),_=[]){if(super(void 0,W,_,{}),this.type=A,this.setAttribute("name",B),a){const N=new RegExp(`([^\\s/](?:(?!\0\\d+~\x7F)[^\\s/=])*)(?:((?:\\s|\0\\d+c\x7F)*(?:=|\0\\d+~\x7F)(?:\\s|\0\\d+c\x7F)*)(?:(["'])(.*?)(\\3|$)|(\\S*)))?`,"gsu");let w="",n=N.exec(a),e=0;const d=()=>{w&&(super.insertAt(new I.D(w,`${A.slice(0,-1)}-dirty`,W,_)),w="")};for(;n;){const{index:$,0:D,1:L,2:S,3:G,4:X,5:V,6:q}=n;if(w+=a.slice(e,$),/^(?:[\w:]|\0\d+[t!~{}+-]\x7F)(?:[\w:.-]|\0\d+[t!~{}+-]\x7F)*$/u.test((0,M.PN)(L).trim())){const k=X!=null?X:q,st=[G,V],tt=new H(A.slice(0,-1),B,L,S,k,st,W,_);d(),super.insertAt(tt)}else w+=D;({lastIndex:e}=N),n=N.exec(a)}w+=a.slice(e),d()}}afterBuild(){if(this.type==="table-attrs"){const{parentNode:a}=this;this.setAttribute("name",(a==null?void 0:a.type)==="td"&&a.subtype==="caption"?"caption":a==null?void 0:a.type)}}getAttrTokens(a){return this.childNodes.filter(A=>A instanceof H&&(!a||A.name===a.toLowerCase().trim()))}getAttrToken(a){const A=this.getAttrTokens(a);return A[A.length-1]}getAttr(a){var A;return(A=this.getAttrToken(a))==null?void 0:A.getValue()}lint(a=this.getAbsoluteIndex()){const A=super.lint(a),{parentNode:B,length:W,childNodes:_}=this,N=new Map,w=new Set;let n;(B==null?void 0:B.type)==="html"&&B.closing&&this.text().trim()&&(n={start:a,...this.getRootNode().posFromIndex(a)},A.push((0,P.Y)(this,n,"attributes of a closing tag")));for(let e=0;e<W;e++){const d=_[e];if(d instanceof I.D&&d.text().trim())n!=null||(n={start:a,...this.getRootNode().posFromIndex(a)}),A.push((0,P.D)(d,n,"containing invalid attribute"));else if(d instanceof H){const{name:$}=d;N.has($)?(w.add($),N.get($).push(d)):$!=="class"&&N.set($,[d])}}if(w.size>0){n!=null||(n={start:a,...this.getRootNode().posFromIndex(a)});for(const e of w)A.push(...N.get(e).map(d=>(0,P.D)(d,n,K.Z.msg("duplicated $1 attribute",e))))}return A}print(){return String(this)?`<span class="wpb-${this.type}">${this.childNodes.map(a=>a.print(a instanceof I.D&&a.text().trim()?{class:"hidden"}:void 0)).join("")}</span>`:""}}},876:(Y,y,t)=>{t.d(y,{a:()=>c});var P=t(444);const M=r=>{class i extends r{}return i};var K=t(891),F=t(541),I=t(686),O=Object.defineProperty,T=(r,i,s)=>i in r?O(r,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[i]=s,f=(r,i,s)=>(T(r,typeof i!="symbol"?i+"":i,s),s),x=(r,i,s)=>{if(!i.has(r))throw TypeError("Cannot "+s)},l=(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",P.C-1),this.insertAt(C)}}toString(i){return this.length===1?`[${super.toString(i)}${l(this,p)}]`:`[${super.toString(i,l(this,p))}]`}text(){return`[${super.text(" ")}]`}getAttribute(i){return i==="padding"?1:super.getAttribute(i)}getGaps(){return l(this,p).length}print(){return super.print(this.length===1?{pre:"[",post:`${l(this,p)}]`}:{pre:"[",sep:l(this,p),post:"]"})}}p=new WeakMap},420:(Y,y,t)=>{t.r(y),t.d(y,{GalleryToken:()=>p});var P=t(891),M=t(541),K=t(39),F=t(465),I=Object.defineProperty,O=(c,r,i)=>r in c?I(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,T=(c,r,i)=>(O(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)},l=(c,r,i)=>(f(c,r,"access private method"),i),o,u;class p extends M.Token{constructor(r,i=P.Z.getConfig(),s=[]){var h;super(void 0,i,s,{}),x(this,o),T(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,b]=v;l(this,o,u).call(this,C)?super.insertAt(new K._("gallery",C,b,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:b}=C,U=C.trim(),H=i+m,Q=m?0:s;v.type==="hidden"&&U&&!/^<!--.*-->$/u.test(U)?h.push({message:P.Z.msg("invalid content in <$1>","gallery"),severity:"error",startIndex:r,endIndex:r+b,startLine:H,endLine:H,startCol:Q,endCol:Q+b}):v.type!=="hidden"&&v.type!=="text"&&h.push(...v.lint(r)),r+=b+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,y,t)=>{t.d(y,{D:()=>r});var P=t(169),M=t(891),K=t(541),F=t(669),I=Object.defineProperty,O=(i,s,h)=>s in i?I(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,T=(i,s,h)=>(O(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)),l=(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),l(this,p),T(this,"type","heading"),l(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 b=new F.SyntaxToken(h[1],/^[^\S\n]*$/u,"heading-trail",m,v,{});this.append(C,b)}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,P.D)(m,{start:s},"<h1>"),h.push(C)),(v.startsWith("=")||v.endsWith("="))&&(C!=null||(C=(0,P.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,P.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,y,t)=>{t.d(y,{R:()=>O});var P=t(959),M=t(541),K=Object.defineProperty,F=(T,f,x)=>f in T?K(T,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[f]=x,I=(T,f,x)=>(F(T,typeof f!="symbol"?f+"":f,x),x);class O extends(0,P.a)(M.Token){constructor(){super(...arguments),I(this,"type","hidden")}}},842:(Y,y,t)=>{t.r(y),t.d(y,{ImagemapToken:()=>r});var P=t(169),M=t(891),K=t(541),F=t(826),I=t(39),O=t(524),T=t(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,l=(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),l(this,"type","imagemap-link"),this.append(s,h.length===2?new O.h(...h,v,C):new T.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("|")),b=F.O;let U=!0,H=!1;for(const Q of v){const Z=Q.trim();if(!(H||!Z||Z.startsWith("#"))){if(U){const[a,...A]=Q.split("|"),B=this.normalizeTitle(a,0,!0);if(B.valid&&B.ns===6){const W=new I._("imagemap",a,A.length>0?A.join("|"):void 0,h,m);super.insertAt(W),U=!1;continue}else H=!0}else if(Q.trim().split(/[\t ]/u)[0]==="desc"){super.insertAt(Q);continue}else if(Q.includes("[")){const a=Q.indexOf("["),A=Q.slice(a),B=/^\[{2}([^|]+)(?:\|([^\]]+))?\]{2}[\w\s]*$/u.exec(A);if(B){if(this.normalizeTitle(B[1],0,!0,!1,!0).valid){super.insertAt(new o(Q.slice(0,a),B.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 W=/^\[([^\]\s]+)(?:(\s+)(\S[^\]]*)?)?\][\w\s]*$/u.exec(A);if(W){super.insertAt(new o(Q.slice(0,a),W.slice(1),A.slice(A.indexOf("]")+1),h,m));continue}}}}super.insertAt(new b(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,P.D)(v,m,"invalid link in <imagemap>"))):h.push((0,P.Y)(this,m,"<imagemap> without an image")),h}print(){return super.print({sep:`
|
|
24
|
+
`})}}},541:(Y,y,t)=>{t.r(y),t.d(y,{Token:()=>$t});var P=t(467),M=t(444),K=t(891),F=Object.defineProperty,I=(R,g,E)=>g in R?F(R,g,{enumerable:!0,configurable:!0,writable:!0,value:E}):R[g]=E,O=(R,g,E)=>(I(R,typeof g!="symbol"?g+"":g,E),E),T=(R,g,E)=>{if(!g.has(R))throw TypeError("Cannot "+E)},f=(R,g,E)=>(T(R,g,"read from private field"),E?E.call(R):g.get(R)),x=(R,g,E)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,E)},l=(R,g,E,z)=>(T(R,g,"write to private field"),z?z.call(R,E):g.set(R,E),E),o=(R,g,E)=>(T(R,g,"access private method"),E),u,p,c;class r{constructor(){x(this,p),O(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 E=(g=this.parentNode)==null?void 0:g.childNodes;return E&&E[E.indexOf(this)+1]}get previousSibling(){var g;const E=(g=this.parentNode)==null?void 0:g.childNodes;return E&&E[E.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,E){g==="parentNode"?l(this,u,E):this[g]=E}getRootNode(){let{parentNode:g}=this;for(;g!=null&&g.parentNode;)({parentNode:g}=g);return g!=null?g:this}posFromIndex(g){const E=String(this);if(g>=-E.length&&g<=E.length){const z=E.slice(0,g).split(`
|
|
25
|
+
`);return{top:z.length-1,left:z[z.length-1].length}}}getGaps(g){return 0}getRelativeIndex(g){let E;const z=(J,it)=>E.slice(0,J).reduce((mt,bt,Mt)=>mt+String(bt).length+it.getGaps(Mt),0)+it.getAttribute("padding");if(g===void 0){const{parentNode:J}=this;return J?({childNodes:E}=J,z(E.indexOf(this),J)):0}return{childNodes:E}=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,P.fL)(this.childNodes,g)}normalize(){const{childNodes:g}=this;for(let E=g.length-1;E>=0;E--){const{type:z,data:J}=g[E],it=g[E-1];z!=="text"||this.getGaps(E-1)||(J===""?g.splice(E,1):(it==null?void 0:it.type)==="text"&&(it.setAttribute("data",it.data+J),g.splice(E,1)))}}removeAt(g){const{childNodes:E}=this,[z]=E.splice(g,1);return z}insertAt(g,E=this.length){const{childNodes:z}=this;return g.setAttribute("parentNode",this),z.splice(E,0,g),g}closest(g){let{parentNode:E}=this,z;const J=new Set(g.split(",").map(it=>it.trim()));for(z=({type:it})=>J.has(it);E;){if(z(E))return E;({parentNode:E}=E)}}append(...g){for(const E of g)this.insertAt(E)}replaceChildren(...g){this.childNodes.length=0,this.append(...g)}setText(g,E=0){const z=this.childNodes[E],{data:J}=z;return z.replaceData(g),J}toString(g,E=""){return this.childNodes.map(z=>z.toString()).join(E)}lint(g=this.getAbsoluteIndex()){const{SyntaxToken:E}=t(669);if(this instanceof E||this.constructor.hidden||this.type==="ext-inner"&&i.has(this.name))return[];const z=[];for(let J=0,it=g+this.getAttribute("padding");J<this.length;J++){const mt=this.childNodes[J];z.push(...mt.lint(it)),it+=String(mt).length+this.getGaps(J)}return z}print(g={}){var E;return String(this)?`<span class="wpb-${(E=g.class)!=null?E:this.type}">${(0,P.S0)(this.childNodes,g)}</span>`:""}}var h=Object.defineProperty,m=(R,g,E)=>g in R?h(R,g,{enumerable:!0,configurable:!0,writable:!0,value:E}):R[g]=E,v=(R,g,E)=>(m(R,typeof g!="symbol"?g+"":g,E),E),C=(R,g,E)=>{if(!g.has(R))throw TypeError("Cannot "+E)},b=(R,g,E)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,E)},U=(R,g,E)=>(C(R,g,"access private method"),E),H,Q;const Z=/https?:\/\/|\{+|\}+|\[{2,}|\[(?![^[]*\])|((?:^|\])[^[]*?)\]+|<\s*\/?([a-z]\w*)/giu,a=/\{+|\}+|\[{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"];class B extends r{constructor(g){super(),b(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:E,parentNode:z,nextSibling:J,previousSibling:it}=this,{type:mt,name:bt}=z,Mt=J==null?void 0:J.type,Xt=it==null?void 0:it.type,_t=mt==="free-ext-link"||mt==="ext-link-url"||mt==="image-parameter"&&bt==="link"?a:Z,Bt=[],{ext:Jt,html:kt}=this.getRootNode().getAttribute("config");if(E.search(_t)!==-1){_t.lastIndex=0;const Ut=this.getRootNode(),{top:jt,left:qt}=Ut.posFromIndex(g),te=new Set([Jt,kt,A].flat(2));for(let yt=_t.exec(E);yt;yt=_t.exec(E)){const[,It,ee]=yt;let{0:Ft,index:Pt}=yt;if(It&&It!=="]"){const{length:Yt}=It;Pt+=Yt,Ft=Ft.slice(Yt)}const Nt=g+Pt,Dt=E.slice(0,Pt).split(`
|
|
27
|
+
`),Kt=Dt.length+jt-1,Zt=Dt[Dt.length-1],Gt=Dt.length===1?qt+Zt.length:Zt.length,{0:pt,length:Wt}=Ft,zt=Nt+Wt,Ht=String(Ut),St=Ht[zt],Lt=Ht[Nt-1],ne=Wt>1&&(pt!=="<"||/[\s/>]/u.test(St!=null?St:""))||pt==="{"&&(St===pt||Lt==="-")||pt==="}"&&(Lt===pt||St==="-")||pt==="["&&(St===pt||mt==="ext-link-text"||!E.slice(Pt+1).trim()&&Mt==="free-ext-link")||pt==="]"&&(Lt===pt||!E.slice(0,Pt).trim()&&Xt==="free-ext-link")?"error":"warning";(pt!=="h"||Pt>0)&&(pt!=="<"||te.has(ee.toLowerCase()))&&Bt.push({message:K.Z.msg('lonely "$1"',pt==="h"?Ft:pt),severity:ne,startIndex:Nt,endIndex:zt,startLine:Kt,endLine:Kt,startCol:Gt,endCol:Gt+Wt})}return Bt}return[]}replaceData(g){U(this,H,Q).call(this,g)}print(){const g={"&":"amp","<":"lt",">":"gt"};return this.data.replace(/[&<>]/gu,E=>`&${g[E]};`)}}H=new WeakSet,Q=function(R){this.setAttribute("data",R)};var W=Object.defineProperty,_=(R,g,E)=>g in R?W(R,g,{enumerable:!0,configurable:!0,writable:!0,value:E}):R[g]=E,N=(R,g,E)=>(_(R,typeof g!="symbol"?g+"":g,E),E),w=(R,g,E)=>{if(!g.has(R))throw TypeError("Cannot "+E)},n=(R,g,E)=>(w(R,g,"read from private field"),E?E.call(R):g.get(R)),e=(R,g,E)=>{if(g.has(R))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(R):g.set(R,E)},d=(R,g,E,z)=>(w(R,g,"write to private field"),z?z.call(R,E):g.set(R,E),E),$=(R,g,E,z)=>({set _(J){d(R,g,J,E)},get _(){return n(R,g,z)}}),D=(R,g,E)=>(w(R,g,"access private method"),E),L,S,G,X,V,q,k,st,tt,dt,nt,ct,j,et,rt,lt,at,ot,ut,wt,Tt,Ot,xt,gt,ft,vt,Ct,At;const ht=class Qt extends s{constructor(g,E=K.Z.getConfig(),z=[],J){super(),e(this,V),e(this,k),e(this,tt),e(this,nt),e(this,j),e(this,rt),e(this,at),e(this,ut),e(this,Tt),e(this,xt),e(this,ft),e(this,Ct),N(this,"type","root"),e(this,L,0),e(this,S,void 0),e(this,G,void 0),e(this,X,void 0),typeof g=="string"&&this.insertAt(g),d(this,S,E),d(this,G,z),z.push(this)}parseOnce(g=n(this,L),E=!1){if(g<n(this,L)||!this.getAttribute("plain")||this.length===0)return this;switch(g){case 0:this.type==="root"&&n(this,G).shift(),d(this,X,E),D(this,k,st).call(this,E);break;case 1:D(this,tt,dt).call(this);break;case 2:D(this,nt,ct).call(this);break;case 3:D(this,j,et).call(this);break;case 4:D(this,rt,lt).call(this);break;case 5:D(this,at,ot).call(this);break;case 6:D(this,ut,wt).call(this);break;case 7:D(this,Tt,Ot).call(this);break;case 8:D(this,xt,gt).call(this);break;case 9:D(this,ft,vt).call(this);break;case 10:D(this,Ct,At).call(this)}if(this.type==="root")for(const z of n(this,G))z.parseOnce(g,E);return $(this,L)._++,this}buildFromStr(g,E){const z=g.split(/[\0\x7F]/u).map((J,it)=>{if(it%2===0)return new B(J);if(isNaN(J[J.lengtht-1]))return n(this,G)[Number(J.slice(0,-1))];throw new Error(`\u89E3\u6790\u9519\u8BEF\uFF01\u672A\u6B63\u786E\u6807\u8BB0\u7684 Token\uFF1A${J}`)});return E==="string"?z.map(String).join(""):E==="text"?(0,P.fL)(z):z}afterBuild(){if(this.type==="root")for(const g of n(this,G))g.afterBuild()}parse(g=M.C,E=!1){for(;n(this,L)<g;)this.parseOnce(n(this,L),E);return g&&(D(this,V,q).call(this),this.afterBuild()),this}getAttribute(g){switch(g){case"plain":return this.constructor===Qt;case"config":return JSON.parse(JSON.stringify(n(this,S)));case"accum":return n(this,G);case"include":{if(n(this,X)!==void 0)return n(this,X);const E=this.getRootNode();return E!==this?E.getAttribute("include"):!1}default:return super.getAttribute(g)}}setAttribute(g,E){switch(g){case"stage":n(this,L)===0&&this.type==="root"&&n(this,G).shift(),d(this,L,E);break;default:super.setAttribute(g,E)}}insertAt(g,E=this.length){const z=typeof g=="string"?new B(g):g;return super.insertAt(z,E),z.type==="root"&&(z.type="plain"),z}normalizeTitle(g,E=0,z=!1,J=!1,it=!1){return K.Z.normalizeTitle(g,E,n(this,X),n(this,S),z,J,it)}};L=new WeakMap,S=new WeakMap,G=new WeakMap,X=new WeakMap,V=new WeakSet,q=function(){var R;d(this,L,M.C);const{length:g,firstChild:E}=this,z=String(E);if(g===1&&E.type==="text"&&z.includes("\0")&&(this.replaceChildren(...this.buildFromStr(z)),this.normalize(),this.type==="root"))for(const J of n(this,G))D(R=J,V,q).call(R)},k=new WeakSet,st=function(R){const{parseCommentAndExt:g}=t(551);this.setText(g(String(this.firstChild),n(this,S),n(this,G),R))},tt=new WeakSet,dt=function(){const{parseBraces:R}=t(313),g=this.type==="root"?String(this.firstChild):`\0${String(this.firstChild)}`,E=R(g,n(this,S),n(this,G));this.setText(this.type==="root"?E:E.slice(1))},nt=new WeakSet,ct=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("html"))return;const{parseHtml:g}=t(980);this.setText(g(String(this.firstChild),n(this,S),n(this,G)))},j=new WeakSet,et=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("table"))return;const{parseTable:g}=t(508);this.setText(g(this,n(this,S),n(this,G)))},rt=new WeakSet,lt=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("hr"))return;const{parseHrAndDoubleUnderscore:g}=t(362);this.setText(g(this,n(this,S),n(this,G)))},at=new WeakSet,ot=function(){const{parseLinks:R}=t(106);this.setText(R(String(this.firstChild),n(this,S),n(this,G)))},ut=new WeakSet,wt=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("quote"))return;const{parseQuotes:g}=t(704),E=String(this.firstChild).split(`
|
|
28
|
+
`);for(let z=0;z<E.length;z++)E[z]=g(E[z],n(this,S),n(this,G));this.setText(E.join(`
|
|
29
|
+
`))},Tt=new WeakSet,Ot=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("extLink"))return;const{parseExternalLinks:g}=t(418);this.setText(g(String(this.firstChild),n(this,S),n(this,G)))},xt=new WeakSet,gt=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("magicLink"))return;const{parseMagicLinks:g}=t(311);this.setText(g(String(this.firstChild),n(this,S),n(this,G)))},ft=new WeakSet,vt=function(){var R;if((R=n(this,S).excludes)!=null&&R.includes("list"))return;const{parseList:g}=t(904),E=String(this.firstChild).split(`
|
|
30
|
+
`);let z=this.type==="root"||this.type==="ext-inner"&&this.name==="poem"?0:1;for(;z<E.length;z++)E[z]=g(E[z],n(this,S),n(this,G));this.setText(E.join(`
|
|
31
|
+
`))},Ct=new WeakSet,At=function(){if(n(this,S).variants.length>0){const{parseConverter:R}=t(370);this.setText(R(String(this.firstChild),n(this,S),n(this,G)))}};let $t=ht},299:(Y,y,t)=>{t.d(y,{o:()=>p});var P=t(169),M=t(444),K=t(891),F=t(541),I=t(34),O=(c,r,i)=>{if(!r.has(c))throw TypeError("Cannot "+i)},T=(c,r,i)=>(O(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)=>(O(c,r,"write to private field"),s?s.call(c,i):r.set(c,i),i),l,o,u;class p extends F.Token{constructor(r,i,s=K.Z.getConfig(),h=[],m="|"){if(super(void 0,s,h,{}),f(this,l,!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()),T(this,o).includes("\0")&&x(this,o,this.buildFromStr(T(this,o),"string"))}setAttribute(r,i){r==="bracket"?x(this,l,!!i):r==="title"?x(this,u,i):super.setAttribute(r,i)}toString(r){const i=super.toString(r,T(this,o));return T(this,l)?`[[${i}]]`:i}text(){const r=super.text("|");return T(this,l)?`[[${r}]]`:r}getAttribute(r){return r==="title"?T(this,u):r==="padding"?2:super.getAttribute(r)}getGaps(r){return r===0?T(this,o).length:1}lint(r=this.getAbsoluteIndex()){const i=super.lint(r),{childNodes:[s,h],type:m}=this,{encoded:v,fragment:C}=T(this,u);let b;return m==="link"&&s.childNodes.some(({type:U})=>U==="template")&&(b={start:r,...this.getRootNode().posFromIndex(r)},i.push((0,P.D)(s,b,"template in an internal link target","warning"))),v&&(b!=null||(b={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,P.D)(s,b,"unnecessary URL encoding in an internal link"))),m==="link"&&(h!=null&&h.childNodes.some(({type:U,data:H})=>U==="text"&&H.includes("|")))?(b!=null||(b={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,P.D)(h,b,'additional "|" in the link text',"warning"))):m!=="link"&&C!==void 0&&(b!=null||(b={start:r,...this.getRootNode().posFromIndex(r)}),i.push((0,P.D)(s,b,"useless fragment"))),i}getTitle(){return this.normalizeTitle(this.firstChild.text(),0,!1,!0,!0)}print(){return super.print(T(this,l)?{pre:"[[",post:"]]",sep:T(this,o)}:{sep:T(this,o)})}}l=new WeakMap,o=new WeakMap,u=new WeakMap},533:(Y,y,t)=>{t.d(y,{q:()=>B});var P=t(467),M=t(169),K=t(891),F=t(299),I=t(541),O=Object.defineProperty,T=(W,_,N)=>_ in W?O(W,_,{enumerable:!0,configurable:!0,writable:!0,value:N}):W[_]=N,f=(W,_,N)=>(T(W,typeof _!="symbol"?_+"":_,N),N),x=(W,_,N)=>{if(!_.has(W))throw TypeError("Cannot "+N)},l=(W,_,N)=>(x(W,_,"read from private field"),N?N.call(W):_.get(W)),o=(W,_,N)=>{if(_.has(W))throw TypeError("Cannot add the same private member more than once");_ instanceof WeakSet?_.add(W):_.set(W,N)},u=(W,_,N,w)=>(x(W,_,"write to private field"),w?w.call(W,N):_.set(W,N),N),p;const c=new Set(["alt","link","lang","page","caption"]);function r(W,_,N=K.Z.getConfig(),w=!1){_=_.trim();let n=_.replace(/\0\d+t\x7F/gu,"").trim();switch(W){case"width":return!n||/^(?:\d+x?|\d*x\d+)$/u.test(n);case"link":{if(!n||new RegExp(`^(?:(?:${N.protocol}|//)${P._X}|\0\\d+m\x7F)${P.Qk}$`,"iu").test(n))return _;n.startsWith("[[")&&n.endsWith("]]")&&(n=n.slice(2,-2));const d=K.Z.normalizeTitle(n,0,!1,N,w,!0,!0);return d.valid&&d}case"lang":return!n||N.variants.includes(n);case"alt":case"class":case"manualthumb":return!0;default:return!isNaN(n)}}class i extends I.Token{constructor(_,N=K.Z.getConfig(),w=[]){var n=(...L)=>{super(...L),f(this,"type","image-parameter"),o(this,p,"")},e;let d;const $=Object.entries(N.img).map(([L,S])=>[L,S,new RegExp(`^(\\s*)${L.replace("$1","(.*)")}(\\s*)$`,"u")]),D=$.find(([,L,S])=>(d=S.exec(_),d&&(d.length!==4||r(L,d[2],N,!0)!==!1)));if(D&&d){d.length===3?(n(void 0,N,w),u(this,p,_)):(n(d[2],N,w,{}),u(this,p,`${d[1]}${D[0]}${d[3]}`)),this.setAttribute("name",D[1]);return}n(_,{...N,excludes:[...(e=N.excludes)!=null?e:[],"list"]},w),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 _;((_=this.parentNode)==null?void 0:_.type)==="gallery-image"&&!c.has(this.name)&&this.setAttribute("name","invalid")}toString(_){return l(this,p)?l(this,p).replace("$1",super.toString(_)):super.toString(_)}text(){return l(this,p)?l(this,p).replace("$1",super.text()).trim():super.text().trim()}getAttribute(_){return _==="plain"?this.name==="caption":_==="padding"?Math.max(0,l(this,p).indexOf("$1")):super.getAttribute(_)}lint(_=this.getAbsoluteIndex()){const N=super.lint(_),{link:w,name:n}=this;return n==="invalid"?N.push((0,M.Y)(this,{start:_},"invalid gallery image parameter")):typeof w=="object"&&w.encoded&&N.push((0,M.Y)(this,{start:_},"unnecessary URL encoding in an internal link")),N}print(){return l(this,p)?`<span class="wpb-image-parameter">${l(this,p).replace("$1",`<span class="wpb-image-caption">${(0,P.S0)(this.childNodes)}</span>`)}</span>`:super.print({class:"image-caption"})}}p=new WeakMap;var s=Object.defineProperty,h=(W,_,N)=>_ in W?s(W,_,{enumerable:!0,configurable:!0,writable:!0,value:N}):W[_]=N,m=(W,_,N)=>(h(W,typeof _!="symbol"?_+"":_,N),N),v=(W,_,N)=>{if(!_.has(W))throw TypeError("Cannot "+N)},C=(W,_,N)=>{if(_.has(W))throw TypeError("Cannot add the same private member more than once");_ instanceof WeakSet?_.add(W):_.set(W,N)},b=(W,_,N)=>(v(W,_,"access private method"),N),U,H;const Q=new Set(["manualthumb","frameless","framed","thumbnail"]),Z=new Set(["left","right","center","none"]),a=new Set(["baseline","sub","super","top","text-top","middle","bottom","text-bottom"]),A=(W,_,N,w)=>{if(w===void 0)return[];const n=new RegExp(`${[W,_,N].map(P.hr).join("|")}`,"gu"),e=[];let d=n.exec(w),$=0,D=0;for(;d;){const{0:L,index:S}=d;L!==N?$+=L===W?1:-1:$===0&&(e.push(w.slice(D,S)),{lastIndex:D}=n),d=n.exec(w)}return e.push(w.slice(D)),e};class B extends F.o{constructor(_,N,w=K.Z.getConfig(),n=[],e="|"){super(_,void 0,w,n,e),C(this,U),m(this,"type","file"),this.append(...A("-{","}-","|",N).map(d=>new i(d,w,n)))}lint(_=this.getAbsoluteIndex()){const N=super.lint(_),w=this.getAllArgs().filter(({childNodes:S})=>{const G=S.filter(X=>X.text().trim());return G.length!==1||G[0].type!=="arg"}),n=[...new Set(w.map(({name:S})=>S))].filter(S=>S!=="invalid"),e=n.filter(S=>Q.has(S)),d=n.filter(S=>Z.has(S)),$=n.filter(S=>a.has(S));if(w.length===n.length&&e.length<2&&d.length<2&&$.length<2)return N;const D={start:_,...this.getRootNode().posFromIndex(_)},L=(S,G)=>X=>(0,M.D)(X,D,K.Z.msg(`${S} image $1 parameter`,G));for(const S of n){let G=w.filter(({name:X})=>X===S);S==="caption"&&(G=[...G.slice(0,-1).filter(X=>X.text()),...G.slice(-1)]),G.length>1&&N.push(...G.map(L("duplicated",S)))}return e.length>1&&N.push(...w.filter(({name:S})=>Q.has(S)).map(L("conflicting","frame"))),d.length>1&&N.push(...w.filter(({name:S})=>Z.has(S)).map(L("conflicting","horizontal-alignment"))),$.length>1&&N.push(...w.filter(({name:S})=>a.has(S)).map(L("conflicting","vertical-alignment"))),N}getAllArgs(){return this.childNodes.slice(1)}getArgs(_){return this.getAllArgs().filter(({name:N})=>_===N)}getFrameArgs(){return b(this,U,H).call(this,Q,"\u6846\u67B6")}getHorizAlignArgs(){return b(this,U,H).call(this,Z,"\u6C34\u5E73\u5BF9\u9F50")}getVertAlignArgs(){return b(this,U,H).call(this,a,"\u5782\u76F4\u5BF9\u9F50")}}U=new WeakSet,H=function(W,_){return this.getAllArgs().filter(({name:w})=>W.has(w))}},39:(Y,y,t)=>{t.d(y,{_:()=>o});var P=t(169),M=t(444),K=t(891),F=t(541),I=t(533),O=(u,p,c)=>{if(!p.has(u))throw TypeError("Cannot "+c)},T=(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)=>(O(u,p,"access private method"),c),x,l;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),T(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,P.Y)(this,{start:p},"invalid gallery image")),c}afterBuild(){f(this,x,l).call(this,this.getTitle())}}x=new WeakSet,l=function(u){this.setAttribute("title",u)}},524:(Y,y,t)=>{t.d(y,{h:()=>I});var P=t(299),M=Object.defineProperty,K=(O,T,f)=>T in O?M(O,T,{enumerable:!0,configurable:!0,writable:!0,value:f}):O[T]=f,F=(O,T,f)=>(K(O,typeof T!="symbol"?T+"":T,f),f);class I extends P.o{constructor(){super(...arguments),F(this,"type","link")}}},686:(Y,y,t)=>{t.d(y,{k:()=>F});var P=t(169),M=t(891),K=t(541);class F extends K.Token{constructor(O,T=!1,f=M.Z.getConfig(),x=[]){super(O,f,x,{}),this.type=T?"ext-link-url":"free-ext-link"}lint(O=this.getAbsoluteIndex()){const T=super.lint(O),f=`[\uFF0C\uFF1B\u3002\uFF1A\uFF01\uFF1F\uFF08\uFF09]+${this.type==="ext-link-url"?"|\\|+":""}`,x=new RegExp(f,"u"),l=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:O,...this.getRootNode().posFromIndex(O)});const r=(0,P.D)(u,o,"","warning");l.lastIndex=0;for(let i=l.exec(c);i;i=l.exec(c)){const{index:s,0:h}=i,m=c.slice(0,s).split(`
|
|
32
|
+
`),{length:v}=m,{length:C}=m[m.length-1],b=O+s,U=r.startLine+v-1,H=v===1?r.startCol+C:C;T.push({...r,message:M.Z.msg("$1 in URL",h.startsWith("|")?'"|"':M.Z.msg("full-width punctuation")),startIndex:b,endIndex:b+h.length,startLine:U,endLine:U,startCol:H,endCol:H+h.length})}}return T}}},57:(Y,y,t)=>{t.r(y),t.d(y,{NestedToken:()=>l});var P=t(169),M=t(891),K=t(541),F=t(895),I=t(826),O=t(976),T=Object.defineProperty,f=(o,u,p)=>u in o?T(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 l 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,b)=>{const U=`\0${i.length+1}${m?"e":"c"}\x7F`;if(m)new F.$(m,v,C,b,r,i);else{const H=h.endsWith("-->");new O.T(h.slice(4,H?-3:void 0),H,r,i)}return U}))==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,P.D)(c,p,M.Z.msg("invalid content in <$1>",this.name))))]}}},439:(Y,y,t)=>{t.d(y,{h:()=>K});var P=t(891),M=t(541);class K extends M.Token{get innerText(){return this.firstChild.data}constructor(I="",O=P.Z.getConfig(),T=[]){super(I,O,T)}}},976:(Y,y,t)=>{t.d(y,{T:()=>f});var P=t(169),M=t(959),K=t(891),F=t(439),I=Object.defineProperty,O=(x,l,o)=>l in x?I(x,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[l]=o,T=(x,l,o)=>(O(x,typeof l!="symbol"?l+"":l,o),o);class f extends(0,M.a)(F.h){constructor(l,o=!0,u=K.Z.getConfig(),p=[]){super(l,u,p),T(this,"type","comment"),T(this,"closed"),this.closed=o}getAttribute(l){return l==="padding"?4:super.getAttribute(l)}lint(l=this.getAbsoluteIndex()){return this.closed?[]:[(0,P.Y)(this,{start:l},"unclosed HTML comment")]}toString(l){return`<!--${this.innerText}${this.closed?"-->":""}`}print(){return super.print({pre:"<!--",post:this.closed?"-->":""})}}},461:(Y,y,t)=>{t.d(y,{k:()=>I});var P=t(933),M=Object.defineProperty,K=(O,T,f)=>T in O?M(O,T,{enumerable:!0,configurable:!0,writable:!0,value:f}):O[T]=f,F=(O,T,f)=>(K(O,typeof T!="symbol"?T+"":T,f),f);class I extends P.T{constructor(){super(...arguments),F(this,"type","dd")}}},491:(Y,y,t)=>{t.r(y),t.d(y,{NowikiToken:()=>T});var P=t(169),M=t(891),K=t(439),F=Object.defineProperty,I=(f,x,l)=>x in f?F(f,x,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[x]=l,O=(f,x,l)=>(I(f,typeof x!="symbol"?x+"":x,l),l);class T extends K.h{constructor(){super(...arguments),O(this,"type","ext-inner")}lint(x=this.getAbsoluteIndex()){const{name:l,firstChild:{data:o}}=this;return(l==="templatestyles"||l==="section")&&o?[(0,P.Y)(this,{start:x},M.Z.msg("nothing should be in <$1>",l))]:super.lint(x)}}},933:(Y,y,t)=>{t.d(y,{T:()=>M});var P=t(439);class M extends P.h{}},826:(Y,y,t)=>{t.d(y,{O:()=>O});var P=t(959),M=t(439),K=Object.defineProperty,F=(T,f,x)=>f in T?K(T,f,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[f]=x,I=(T,f,x)=>(F(T,typeof f!="symbol"?f+"":f,x),x);class O extends(0,P.a)(M.h){constructor(){super(...arguments),I(this,"type","noinclude")}}},160:(Y,y,t)=>{t.r(y),t.d(y,{ParamTagToken:()=>f});var P=t(169),M=t(891),K=t(541),F=t(34),I=Object.defineProperty,O=(x,l,o)=>l in x?I(x,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[l]=o,T=(x,l,o)=>(O(x,typeof l!="symbol"?l+"":l,o),o);class f extends K.Token{constructor(l,o=M.Z.getConfig(),u=[],p={}){if(super(void 0,o,u,{}),T(this,"type","ext-inner"),l){const c=F.D;this.append(...l.split(`
|
|
33
|
+
`).map(r=>new c(r,"param-line",o,u,{})))}}toString(l){return super.toString(l,`
|
|
34
|
+
`)}text(){return super.text(`
|
|
35
|
+
`)}getGaps(){return 1}lint(l=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:l,...this.getRootNode().posFromIndex(l)}),(0,P.D)(u,o,M.Z.msg("invalid parameter of $1",this.name))))}print(){return super.print({sep:`
|
|
36
|
+
`})}}},504:(Y,y,t)=>{t.r(y),t.d(y,{InputboxToken:()=>F});var P=t(313),M=t(891),K=t(160);class F extends K.ParamTagToken{constructor(O,T=M.Z.getConfig(),f=[]){const x=Symbol("InputboxToken");f.push(x),O&&(O=(0,P.parseBraces)(O,T,f)),f.splice(f.indexOf(x),1),super(O,T,f,{})}}},435:(Y,y,t)=>{t.r(y),t.d(y,{PreToken:()=>f});var P=t(444),M=t(891),K=t(541),F=t(826),I=Object.defineProperty,O=(x,l,o)=>l in x?I(x,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):x[l]=o,T=(x,l,o)=>(O(x,typeof l!="symbol"?l+"":l,o),o);class f extends K.Token{constructor(l,o=M.Z.getConfig(),u=[]){if(l){const p="<nowiki>",c="</nowiki>",{length:r}=p;let i=l.indexOf(p),s=l.indexOf(c,i+r),h="";for(;i!==-1&&s!==-1;)new F.O(p,o,u),new F.O(c,o,u),h+=`${l.slice(0,i)}\0${u.length-1}c\x7F${l.slice(i+r,s)}\0${u.length}c\x7F`,l=l.slice(s+r+1),i=l.indexOf(p),s=l.indexOf(c,i+r);l=`${h}${l}`}super(l,o,u,{}),T(this,"type","ext-inner"),this.setAttribute("stage",P.C-1)}getAttribute(l){return l==="plain"||super.getAttribute(l)}}},669:(Y,y,t)=>{t.r(y),t.d(y,{SyntaxToken:()=>K});var P=t(891),M=t(541);class K extends M.Token{constructor(I,O,T="plain",f=P.Z.getConfig(),x=[],l){super(I,f,x,l),this.type=T}}},895:(Y,y,t)=>{t.d(y,{$:()=>l});var P=t(169),M=t(891),K=t(541),F=t(415),I=t(83),O=Object.defineProperty,T=(o,u,p)=>u in o?O(o,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):o[u]=p,f=(o,u,p)=>(T(o,typeof u!="symbol"?u+"":u,p),p);const x=(o,u)=>{const p=new Set(o);return p.delete(u),[...p]};class l 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 b;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"),b=new K.Token(c,C,s);break;case"pre":{const{PreToken:U}=t(435);b=new U(c,C,s);break}case"dynamicpagelist":{const{ParamTagToken:U}=t(160);b=new U(c,C,s);break}case"inputbox":{C.excludes.push("heading");const{InputboxToken:U}=t(504);b=new U(c,C,s);break}case"references":{const{NestedToken:U}=t(57);b=new U(c,/<!--.*?(?:-->|$)|<(ref)(\s[^>]*)?>(.*?)<\/(ref\s*)>/gisu,["ref"],C,s);break}case"choose":{const{NestedToken:U}=t(57);b=new U(c,/<(option|choicetemplate)(\s[^>]*)?>(.*?)<\/(\1)>/gsu,["option","choicetemplate"],C,s);break}case"combobox":{const{NestedToken:U}=t(57);b=new U(c,/<(combooption)(\s[^>]*)?>(.*?)<\/(combooption\s*)>/gisu,["combooption"],C,s);break}case"gallery":{const{GalleryToken:U}=t(420);b=new U(c,C,s);break}case"imagemap":{const{ImagemapToken:U}=t(842);b=new U(c,C,s);break}default:{const{NowikiToken:U}=t(491);b=new U(c,C)}}b.setAttribute("name",m),b.type="ext-inner",super(u,v,b,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,P.Y)(this,r,"extension tag in HTML tag attributes"))}return p}}},415:(Y,y,t)=>{t.d(y,{m:()=>l});var P=t(891),M=t(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)},O=(o,u,p,c)=>(K(o,u,"write to private field"),c?c.call(o,p):u.set(o,p),p),T,f,x;class l extends M.Token{constructor(u,p,c,r,i=P.Z.getConfig(),s=[]){super(void 0,i),I(this,T,void 0),I(this,f,void 0),I(this,x,void 0),this.setAttribute("name",u.toLowerCase()),O(this,x,[u,r||u]),O(this,T,r===void 0),O(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,T)?`<${r}${p.toString(u)}/>`:`<${r}${p.toString(u)}>${c.toString(u)}${this.closed?`</${i}>`:""}`}text(){const[u,p]=F(this,x);return F(this,T)?`<${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,T)?{pre:`<${u}`,post:"/>"}:{pre:`<${u}`,sep:">",post:this.closed?`</${p}>`:""})}}T=new WeakMap,f=new WeakMap,x=new WeakMap},444:(Y,y,t)=>{t.d(y,{C:()=>P,L:()=>M});const P=11,M=t(166)},223:(Y,y,t)=>{t.d(y,{j:()=>P});const P={run(M){return M()}}},169:(Y,y,t)=>{t.d(y,{D:()=>M,Y:()=>K});var P=t(891);const M=(F,I,O,T="error")=>{const f=F.getRelativeIndex(),{offsetHeight:x,offsetWidth:l,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:P.Z.msg(O),severity:T,startIndex:h,endIndex:h+s.length,startLine:m,endLine:m+x-1,startCol:v,endCol:x===1?v+l:l}},K=(F,I,O,T="error")=>{const{start:f}=I,{offsetHeight:x,offsetWidth:l}=F,o=String(F),{top:u,left:p}="top"in I?I:F.getRootNode().posFromIndex(f);return{message:P.Z.msg(O),severity:T,startIndex:f,endIndex:f+o.length,startLine:u,endLine:u+x-1,startCol:p,endCol:x===1?p+l:l}}},467:(Y,y,t)=>{t.d(y,{PN:()=>K,Qk:()=>M,S0:()=>f,_X:()=>P,fL:()=>I,hr:()=>F,jq:()=>T,m9:()=>O});const P='(?:\\[[\\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,l="")=>x.map(o=>typeof o=="string"?o:o.text()).join(l),O=x=>x.replace(/&#(\d+|x[\da-f]+);/giu,(l,o)=>String.fromCodePoint(+`${o.toLowerCase().startsWith("x")?"0":""}${o}`)),T=x=>x.replace(/\n/gu,"\\n"),f=(x,l={})=>{const{pre:o="",post:u="",sep:p=""}=l;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":{},"nsid":{"file":6,"category":14},"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":[]}')}},Rt={};function Et(Y){var y=Rt[Y];if(y!==void 0)return y.exports;var t=Rt[Y]={exports:{}};return Vt[Y](t,t.exports,Et),t.exports}Et.d=(Y,y)=>{for(var t in y)Et.o(y,t)&&!Et.o(Y,t)&&Object.defineProperty(Y,t,{enumerable:!0,get:y[t]})},Et.o=(Y,y)=>Object.prototype.hasOwnProperty.call(Y,y),Et.r=Y=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})};var se=Et(891)})();})();
|
package/config/llwiki.json
CHANGED
|
@@ -467,7 +467,8 @@
|
|
|
467
467
|
"内容语言",
|
|
468
468
|
"CONTENTLANGUAGE",
|
|
469
469
|
"CONTENTLANG",
|
|
470
|
-
"PAGELANGUAGE"
|
|
470
|
+
"PAGELANGUAGE",
|
|
471
|
+
"="
|
|
471
472
|
],
|
|
472
473
|
[
|
|
473
474
|
"msg",
|
|
@@ -518,41 +519,7 @@
|
|
|
518
519
|
]
|
|
519
520
|
],
|
|
520
521
|
"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
|
-
],
|
|
522
|
+
"interwiki": [],
|
|
556
523
|
"img": {
|
|
557
524
|
"thumbnail": "thumbnail",
|
|
558
525
|
"thumb": "thumbnail",
|
package/config/minimum.json
CHANGED
package/config/moegirl.json
CHANGED
|
@@ -559,7 +559,8 @@
|
|
|
559
559
|
"内容语言",
|
|
560
560
|
"CONTENTLANGUAGE",
|
|
561
561
|
"CONTENTLANG",
|
|
562
|
-
"PAGELANGUAGE"
|
|
562
|
+
"PAGELANGUAGE",
|
|
563
|
+
"="
|
|
563
564
|
],
|
|
564
565
|
[
|
|
565
566
|
"msg",
|
|
@@ -611,50 +612,7 @@
|
|
|
611
612
|
]
|
|
612
613
|
],
|
|
613
614
|
"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
|
-
],
|
|
615
|
+
"interwiki": [],
|
|
658
616
|
"img": {
|
|
659
617
|
"thumbnail": "thumbnail",
|
|
660
618
|
"thumb": "thumbnail",
|