lone-format 0.11.7 → 0.12.0

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.
@@ -5,12 +5,12 @@
5
5
  } catch (error) {
6
6
  throw new Error('JavaScript expression error: ' + error.message);
7
7
  }
8
- `)(P);m=q(a.value,f,B),I.value=m}else throw new Error(`Unsupported filter type: ${p.type}`);A.value="",o.nextTick(()=>{X()})}catch(m){A.value=m instanceof Error?m.message:"Filter execution error",I.value=null}},te=(p,m="root")=>{const P=new Map,B=(f,j)=>{if(f==null)return f;if(typeof f=="object"&&f.__protected_number__!==void 0){const Ee=parseFloat(f.__protected_number__);return P.set(Ee,j),Ee}if(Array.isArray(f)){const Ee=f.map((Re,le)=>{const Ue=`${j}[${le}]`,Ne=B(Re,Ue);return P.set(Ne,Ue),Ne});return P.set(Ee,j),Ee}if(typeof f=="object"){const Ee={};for(const Re in f)if(Object.prototype.hasOwnProperty.call(f,Re)){const le=j==="root"?Re:`${j}.${Re}`;Ee[Re]=B(f[Re],le)}return P.set(Ee,j),Ee}return f};return{proxyData:B(p,m),indexMap:P}},q=(p,m,P)=>{if(m===null||typeof m!="object")return m;if(Array.isArray(m))return m.map(f=>{const j=P.get(f);if(j){const Ee=_e(p,j);if(Ee!==void 0)return Ee}return q(p,f,P)});const B=P.get(m);if(B){const f=_e(p,B);if(f!==void 0)return f}const k={};for(const f in m)Object.prototype.hasOwnProperty.call(m,f)&&(k[f]=q(p,m[f],P));return k},_e=(p,m)=>{if(m==="root")return p;const P=[];let B=m.replace(/^root\.?/,"");const k=/([^\[\].]+)|\[(\d+)\]/g;let f;for(;(f=k.exec(B))!==null;)f[1]?P.push(f[1]):f[2]!==void 0&&P.push(parseInt(f[2]));let j=p;for(const Ee of P){if(j==null)return;j=j[Ee]}return j},Le=()=>{I.value=null,A.value=""},z=()=>{u.value=!0},D=()=>{u.value=!1};o.watch(()=>s.modelValue,p=>{U(p)},{immediate:!0});const ie=(p,m,P)=>{const B=j=>{if(j===null||typeof j!="object")return j;if(!Array.isArray(j)&&"__protected_number__"in j&&Object.keys(j).length===1)return`__PROTECTED_NUMBER_${j.__protected_number__}_PROTECTED_NUMBER__`;if(Array.isArray(j))return j.map(Re=>B(Re));const Ee={};for(const[Re,le]of Object.entries(j))Ee[Re]=B(le);return Ee},k=B(p);return JSON.stringify(k,m,P).replace(/"__PROTECTED_NUMBER_(.+?)_PROTECTED_NUMBER__"/g,"$1")},H=(p,m)=>{if(!s.readonly)try{const P=g(a.value,p,m),B=ie(P,null,2);T("update:modelValue",B)}catch(P){console.error("Failed to update JSON:",P)}},g=(p,m,P)=>{if(!m||m==="root")return P;const B=m.split("."),k=Oe(p,B.slice(0,-1));let f=k;for(let Ee=0;Ee<B.length-1;Ee++){const Re=B[Ee];Re!=="root"&&(Array.isArray(f)?f=f[parseInt(Re)]:f=f[Re])}const j=B[B.length-1];return j==="root"?P:(Array.isArray(f)?f[parseInt(j)]=P:f[j]=P,k)},Q=p=>{C.value.has(p)?C.value.delete(p):C.value.add(p)},X=()=>{const p=new Set,m=(P,B="")=>{P!==null&&typeof P=="object"&&(p.add(B||"root"),Array.isArray(P)?P.forEach((k,f)=>{const j=B?`${B}.${f}`:`${f}`;m(k,j)}):Object.keys(P).forEach(k=>{const f=B?`${B}.${k}`:k;m(P[k],f)}))};m(J.value),C.value=p,T("expand-all")},K=()=>{C.value=new Set,T("collapse-all")},ae=async()=>{if(l.value)try{const p=J.value,m=ie(p,null,2);await navigator.clipboard.writeText(m),T("copy-success",m)}catch(p){console.error("Failed to copy JSON:",p),T("copy-error",p instanceof Error?p:new Error("Failed to copy JSON"))}},ce=()=>{if(l.value)try{const p=J.value,m=ie(p);T("update:modelValue",m),T("compress",m)}catch(p){console.error("Failed to compress JSON:",p)}},pe=async p=>{try{let m;typeof p=="object"&&p!==null&&!Array.isArray(p)&&"__protected_number__"in p&&Object.keys(p).length===1?m=p.__protected_number__:typeof p=="string"?m=`"${p}"`:m=JSON.stringify(p),await navigator.clipboard.writeText(m)}catch(m){console.error("Failed to copy value:",m)}},x=(p,m)=>{if(!s.readonly)try{const P=Z(a.value,p,m),B=ie(P,null,2);T("update:modelValue",B),v(p,m)}catch(P){console.error("Failed to rename key:",P)}},Z=(p,m,P)=>{if(!m||m==="root")return p;const B=m.split("."),k=Oe(p,B.slice(0,-1));if(B.length===1){const Ee=B[0];return k&&typeof k=="object"&&!Array.isArray(k)?me(k,Ee,P):k}let f=k;for(let Ee=0;Ee<B.length-1;Ee++){const Re=B[Ee];Array.isArray(f)?f=f[parseInt(Re)]:f=f[Re]}const j=B[B.length-1];if(!Array.isArray(f)&&f&&typeof f=="object"){const Ee=me(f,j,P),Re=B.slice(0,-1);Re.length>0&&Te(k,Re,Ee)}return k},Oe=(p,m)=>{if(m.length===0)return p;if(Array.isArray(p)){const P=[...p],B=m[0],k=parseInt(B);return m.length===1||(P[k]=Oe(p[k],m.slice(1))),P}else if(p&&typeof p=="object"){const P={...p},B=m[0];return m.length===1||(P[B]=Oe(p[B],m.slice(1))),P}return p},me=(p,m,P)=>{if(!p||typeof p!="object"||Array.isArray(p))return p;const B=Object.keys(p),k={};for(const f of B)f===m?k[P]=p[f]:k[f]=p[f];return k},Te=(p,m,P)=>{let B=p;for(let f=0;f<m.length-1;f++){const j=m[f];Array.isArray(B)?B=B[parseInt(j)]:B=B[j]}const k=m[m.length-1];Array.isArray(B)?B[parseInt(k)]=P:B[k]=P},v=(p,m)=>{const P=new Set;C.value.forEach(B=>{if(B===p){const k=p.split(".");k[k.length-1]=m,P.add(k.join("."))}else if(B.startsWith(p+".")){const k=p.split(".");k[k.length-1]=m;const f=k.join("."),j=B.substring(p.length);P.add(f+j)}else P.add(B)}),C.value=P};return t({copyJson:ae,compressSource:ce,expandAll:X,collapseAll:K,toggleExpand:Q,updateValue:H,updateKey:x,filter:ee,clearFilter:Le,sortKeys:z,clearSortKeys:D,isSorted:()=>u.value,isValidJson:()=>l.value,getParsedJson:()=>a.value,getFilteredJson:()=>I.value,getExpandedNodes:()=>C.value,getParseError:()=>R.value,getFilterError:()=>A.value,parseJson:p=>U(p),copyValue:p=>pe(p)}),(p,m)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["json-format",`json-format--${h.value.name}`])},[o.createElementVNode("div",yn,[l.value?A.value?(o.openBlock(),o.createElementBlock("div",Fn,[m[1]||(m[1]=o.createElementVNode("h4",null,"Filter Error:",-1)),o.createElementVNode("pre",null,o.toDisplayString(A.value),1)])):(o.openBlock(),o.createElementBlock("div",Hn,[o.createVNode(mn,{value:J.value,"key-name":"",level:0,expanded:C.value,"is-last":!0,theme:h.value,"onUpdate:value":H,onToggleExpand:Q,onCopy:pe,"onUpdate:key":x},null,8,["value","expanded","theme"])])):(o.openBlock(),o.createElementBlock("div",Gn,[m[0]||(m[0]=o.createElementVNode("h4",null,"JSON Parse Error:",-1)),o.createElementVNode("pre",null,o.toDisplayString(R.value),1)]))])],2))}}),[["__scopeId","data-v-a802c0ac"]]);function mE(E){return E&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E}var qt={},BE;function bn(){return BE||(BE=1,function(E){var t=E;(function(r){var s="__namespace",T=function(e){return e==null},a=function(e){return e===s||Number.isInteger(e)&&e>=1&&e<=11},R=function(e){return e&&a(e.nodeType)&&typeof e.nodeName=="string"};function C(e){var n=Array.prototype.slice,N=e.length,L=function(d,se){return function(){return se.apply(this,d.concat(n.call(arguments)))}},O=function(){var d=n.call(arguments);return d.length<N?L(d,O):e.apply(this,n.apply(arguments,[0,N]))};return O}var I=function(e,n){for(var N=0;N<n.length;N+=1)e(n[N],N,n)},A=function(e,n,N){var L=n;return I(function(O,d){L=e(L,O,d)},N),L},u=function(e,n){var N=new Array(n.length);return I(function(L,O){N[O]=e(L)},n),N},l=function(e,n){var N=[];return I(function(L,O){e(L,O)&&N.push(L)},n),N},h=function(e,n){for(var N=0;N<e.length;N+=1)if(e[N]===n)return!0;return!1};function M(e){return function(){return e}}function b(e){return e.toString()}var J=function(e,n){return n.join(e)},U=function(e,n,N){return e+N+n},ee=Array.prototype.concat,te=function(e,n){var N=new Ae;N.addArray(e);var L=N.toArray();return n?L.reverse():L},q=32767;function _e(e){for(var n=[],N=0;N<e.length;N+=q){var L=e.slice(N,N+q);n=ee.apply(n,L)}return n}function Le(e,n){for(var N=Object(e),L=1;L<arguments.length;L++){var O=arguments[L];if(O!=null)for(var d in O)Object.prototype.hasOwnProperty.call(O,d)&&(N[d]=O[d])}return N}var z={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NAMESPACE_NODE:s};D.prototype=new Object,D.prototype.constructor=D,D.superclass=Object.prototype;function D(){this.init()}D.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(e){return new ae(e[0],e[2])},this.reduceActions[5]=function(e){return new ce(e[0],e[2])},this.reduceActions[7]=function(e){return new pe(e[0],e[2])},this.reduceActions[8]=function(e){return new x(e[0],e[2])},this.reduceActions[10]=function(e){return new Z(e[0],e[2])},this.reduceActions[11]=function(e){return new Oe(e[0],e[2])},this.reduceActions[12]=function(e){return new me(e[0],e[2])},this.reduceActions[13]=function(e){return new Te(e[0],e[2])},this.reduceActions[15]=function(e){return new v(e[0],e[2])},this.reduceActions[16]=function(e){return new p(e[0],e[2])},this.reduceActions[18]=function(e){return new m(e[0],e[2])},this.reduceActions[19]=function(e){return new P(e[0],e[2])},this.reduceActions[20]=function(e){return new B(e[0],e[2])},this.reduceActions[22]=function(e){return new X(e[1])},this.reduceActions[24]=function(e){return new k(e[0],e[2])},this.reduceActions[25]=function(e){return new f(void 0,void 0,e[0])},this.reduceActions[27]=function(e){return e[0].locationPath=e[2],e[0]},this.reduceActions[28]=function(e){return e[0].locationPath=e[2],e[0].locationPath.steps.unshift(new $($.DESCENDANTORSELF,_.nodeTest,[])),e[0]},this.reduceActions[29]=function(e){return new f(e[0],[],void 0)},this.reduceActions[30]=function(e){return Ie.instance_of(e[0],f)?(e[0].filterPredicates==null&&(e[0].filterPredicates=[]),e[0].filterPredicates.push(e[1]),e[0]):new f(e[0],[e[1]],void 0)},this.reduceActions[32]=function(e){return e[1]},this.reduceActions[33]=function(e){return new F(e[0])},this.reduceActions[34]=function(e){return new V(e[0])},this.reduceActions[36]=function(e){return new Be(e[0],[])},this.reduceActions[37]=function(e){return new Be(e[0],e[2])},this.reduceActions[38]=function(e){return[e[0]]},this.reduceActions[39]=function(e){return e[2].unshift(e[0]),e[2]},this.reduceActions[43]=function(e){return new Ne(!0,[])},this.reduceActions[44]=function(e){return e[1].absolute=!0,e[1]},this.reduceActions[46]=function(e){return new Ne(!1,[e[0]])},this.reduceActions[47]=function(e){return e[0].steps.push(e[2]),e[0]},this.reduceActions[49]=function(e){return new $(e[0],e[1],[])},this.reduceActions[50]=function(e){return new $($.CHILD,e[0],[])},this.reduceActions[51]=function(e){return new $(e[0],e[1],e[2])},this.reduceActions[52]=function(e){return new $($.CHILD,e[0],e[1])},this.reduceActions[54]=function(e){return[e[0]]},this.reduceActions[55]=function(e){return e[1].unshift(e[0]),e[1]},this.reduceActions[56]=function(e){return e[0]=="ancestor"?$.ANCESTOR:e[0]=="ancestor-or-self"?$.ANCESTORORSELF:e[0]=="attribute"?$.ATTRIBUTE:e[0]=="child"?$.CHILD:e[0]=="descendant"?$.DESCENDANT:e[0]=="descendant-or-self"?$.DESCENDANTORSELF:e[0]=="following"?$.FOLLOWING:e[0]=="following-sibling"?$.FOLLOWINGSIBLING:e[0]=="namespace"?$.NAMESPACE:e[0]=="parent"?$.PARENT:e[0]=="preceding"?$.PRECEDING:e[0]=="preceding-sibling"?$.PRECEDINGSIBLING:e[0]=="self"?$.SELF:-1},this.reduceActions[57]=function(e){return $.ATTRIBUTE},this.reduceActions[59]=function(e){return e[0]=="comment"?_.commentTest:e[0]=="text"?_.textTest:e[0]=="processing-instruction"?_.anyPiTest:e[0]=="node"?_.nodeTest:new _(-1,void 0)},this.reduceActions[60]=function(e){return new _.PITest(e[2])},this.reduceActions[61]=function(e){return e[1]},this.reduceActions[63]=function(e){return e[1].absolute=!0,e[1].steps.unshift(new $($.DESCENDANTORSELF,_.nodeTest,[])),e[1]},this.reduceActions[64]=function(e){return e[0].steps.push(new $($.DESCENDANTORSELF,_.nodeTest,[])),e[0].steps.push(e[2]),e[0]},this.reduceActions[65]=function(e){return new $($.SELF,_.nodeTest,[])},this.reduceActions[66]=function(e){return new $($.PARENT,_.nodeTest,[])},this.reduceActions[67]=function(e){return new ne(e[1])},this.reduceActions[68]=function(e){return _.nameTestAny},this.reduceActions[69]=function(e){return new _.NameTestPrefixAny(e[0].split(":")[0])},this.reduceActions[70]=function(e){return new _.NameTestQName(e[0])}},D.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],D.actionTableNumber=[` 1 0 /.-,+*)(' & %$ # "!`," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY ",` 1 0 /.-,+*)(' & %$ # "!`,`K1 KKKKKKKK . +*)('KKKKKK KK# K" `,` 1 0 /.-,+*)(' & %$ # "!`," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q ",` 1 . +*)(' # " `,"b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX ",` 1 0 /.-,+*)(' & %$m # "!`,"_ f________ ______e __ _ ",` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 . +*)(' # " `,` 1 . +*)(' # " `,"> >>>>>>>>> >>>>>>> >> >> ",` 1 . +*)(' # " `,` 1 . +*)(' # " `,"Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ‡ ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," ˆ "," F‰ ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," Š ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE ",` 1 0 /.-,+*)(' & %$ # "!`,"] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],D.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","€456789:;<=>?@ AB CDEFGH IJ"," ‚ EFGH IJ "," ƒ EFGH IJ "," "," „ GH IJ "," … GH IJ "," i † "," i ‡ "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABŒqCDEFGH IJ "," "," "],D.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],D.DOUBLEDOT=2,D.DOUBLECOLON=3,D.DOUBLESLASH=4,D.NOTEQUAL=5,D.LESSTHANOREQUAL=6,D.GREATERTHANOREQUAL=7,D.AND=8,D.OR=9,D.MOD=10,D.DIV=11,D.MULTIPLYOPERATOR=12,D.FUNCTIONNAME=13,D.AXISNAME=14,D.LITERAL=15,D.NUMBER=16,D.ASTERISKNAMETEST=17,D.QNAME=18,D.NCNAMECOLONASTERISK=19,D.NODETYPE=20,D.PROCESSINGINSTRUCTIONWITHLITERAL=21,D.EQUALS=22,D.LESSTHAN=23,D.GREATERTHAN=24,D.PLUS=25,D.MINUS=26,D.BAR=27,D.SLASH=28,D.LEFTPARENTHESIS=29,D.RIGHTPARENTHESIS=30,D.COMMA=31,D.AT=32,D.LEFTBRACKET=33,D.RIGHTBRACKET=34,D.DOT=35,D.DOLLAR=36,D.prototype.tokenize=function(e){for(var n=[],N=[],L=e+"\0",O=0,d=L.charAt(O++);;){for(;d==" "||d==" "||d=="\r"||d==`
9
- `;)d=L.charAt(O++);if(d=="\0"||O>=L.length)break;if(d=="("){n.push(D.LEFTPARENTHESIS),N.push(d),d=L.charAt(O++);continue}if(d==")"){n.push(D.RIGHTPARENTHESIS),N.push(d),d=L.charAt(O++);continue}if(d=="["){n.push(D.LEFTBRACKET),N.push(d),d=L.charAt(O++);continue}if(d=="]"){n.push(D.RIGHTBRACKET),N.push(d),d=L.charAt(O++);continue}if(d=="@"){n.push(D.AT),N.push(d),d=L.charAt(O++);continue}if(d==","){n.push(D.COMMA),N.push(d),d=L.charAt(O++);continue}if(d=="|"){n.push(D.BAR),N.push(d),d=L.charAt(O++);continue}if(d=="+"){n.push(D.PLUS),N.push(d),d=L.charAt(O++);continue}if(d=="-"){n.push(D.MINUS),N.push(d),d=L.charAt(O++);continue}if(d=="="){n.push(D.EQUALS),N.push(d),d=L.charAt(O++);continue}if(d=="$"){n.push(D.DOLLAR),N.push(d),d=L.charAt(O++);continue}if(d=="."){if(d=L.charAt(O++),d=="."){n.push(D.DOUBLEDOT),N.push(".."),d=L.charAt(O++);continue}if(d>="0"&&d<="9"){var se="."+d;for(d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);n.push(D.NUMBER),N.push(se);continue}n.push(D.DOT),N.push(".");continue}if(d=="'"||d=='"'){for(var he=d,Me="";O<L.length&&(d=L.charAt(O))!==he;)Me+=d,O+=1;if(d!==he)throw qe.fromMessage("Unterminated string literal: "+he+Me);O+=1,n.push(D.LITERAL),N.push(Me),d=L.charAt(O++);continue}if(d>="0"&&d<="9"){var se=d;for(d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);if(d=="."&&L.charAt(O)>="0"&&L.charAt(O)<="9")for(se+=d,se+=L.charAt(O++),d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);n.push(D.NUMBER),N.push(se);continue}if(d=="*"){if(n.length>0){var oe=n[n.length-1];if(oe!=D.AT&&oe!=D.DOUBLECOLON&&oe!=D.LEFTPARENTHESIS&&oe!=D.LEFTBRACKET&&oe!=D.AND&&oe!=D.OR&&oe!=D.MOD&&oe!=D.DIV&&oe!=D.MULTIPLYOPERATOR&&oe!=D.SLASH&&oe!=D.DOUBLESLASH&&oe!=D.BAR&&oe!=D.PLUS&&oe!=D.MINUS&&oe!=D.EQUALS&&oe!=D.NOTEQUAL&&oe!=D.LESSTHAN&&oe!=D.LESSTHANOREQUAL&&oe!=D.GREATERTHAN&&oe!=D.GREATERTHANOREQUAL){n.push(D.MULTIPLYOPERATOR),N.push(d),d=L.charAt(O++);continue}}n.push(D.ASTERISKNAMETEST),N.push(d),d=L.charAt(O++);continue}if(d==":"&&L.charAt(O)==":"){n.push(D.DOUBLECOLON),N.push("::"),O++,d=L.charAt(O++);continue}if(d=="/"){if(d=L.charAt(O++),d=="/"){n.push(D.DOUBLESLASH),N.push("//"),d=L.charAt(O++);continue}n.push(D.SLASH),N.push("/");continue}if(d=="!"&&L.charAt(O)=="="){n.push(D.NOTEQUAL),N.push("!="),O++,d=L.charAt(O++);continue}if(d=="<"){if(L.charAt(O)=="="){n.push(D.LESSTHANOREQUAL),N.push("<="),O++,d=L.charAt(O++);continue}n.push(D.LESSTHAN),N.push("<"),d=L.charAt(O++);continue}if(d==">"){if(L.charAt(O)=="="){n.push(D.GREATERTHANOREQUAL),N.push(">="),O++,d=L.charAt(O++);continue}n.push(D.GREATERTHAN),N.push(">"),d=L.charAt(O++);continue}if(d=="_"||Ie.isLetter(d.charCodeAt(0))){var Se=d;for(d=L.charAt(O++);Ie.isNCNameChar(d.charCodeAt(0));)Se+=d,d=L.charAt(O++);if(n.length>0){var oe=n[n.length-1];if(oe!=D.AT&&oe!=D.DOUBLECOLON&&oe!=D.LEFTPARENTHESIS&&oe!=D.LEFTBRACKET&&oe!=D.AND&&oe!=D.OR&&oe!=D.MOD&&oe!=D.DIV&&oe!=D.MULTIPLYOPERATOR&&oe!=D.SLASH&&oe!=D.DOUBLESLASH&&oe!=D.BAR&&oe!=D.PLUS&&oe!=D.MINUS&&oe!=D.EQUALS&&oe!=D.NOTEQUAL&&oe!=D.LESSTHAN&&oe!=D.LESSTHANOREQUAL&&oe!=D.GREATERTHAN&&oe!=D.GREATERTHANOREQUAL){if(Se=="and"){n.push(D.AND),N.push(Se);continue}if(Se=="or"){n.push(D.OR),N.push(Se);continue}if(Se=="mod"){n.push(D.MOD),N.push(Se);continue}if(Se=="div"){n.push(D.DIV),N.push(Se);continue}}}if(d==":"){if(L.charAt(O)=="*"){n.push(D.NCNAMECOLONASTERISK),N.push(Se+":*"),O++,d=L.charAt(O++);continue}if(L.charAt(O)=="_"||Ie.isLetter(L.charCodeAt(O))){for(Se+=":",d=L.charAt(O++);Ie.isNCNameChar(d.charCodeAt(0));)Se+=d,d=L.charAt(O++);if(d=="("){n.push(D.FUNCTIONNAME),N.push(Se);continue}n.push(D.QNAME),N.push(Se);continue}if(L.charAt(O)==":"){n.push(D.AXISNAME),N.push(Se);continue}}if(d=="("){if(Se=="comment"||Se=="text"||Se=="node"){n.push(D.NODETYPE),N.push(Se);continue}if(Se=="processing-instruction"){L.charAt(O)==")"?n.push(D.NODETYPE):n.push(D.PROCESSINGINSTRUCTIONWITHLITERAL),N.push(Se);continue}n.push(D.FUNCTIONNAME),N.push(Se);continue}n.push(D.QNAME),N.push(Se);continue}throw new Error("Unexpected character "+d)}return n.push(1),N.push("[EOF]"),[n,N]},D.SHIFT="s",D.REDUCE="r",D.ACCEPT="a",D.prototype.parse=function(Me){if(!Me)throw new Error("XPath expression unspecified.");if(typeof Me!="string")throw new Error("XPath expression must be a string.");var n,N,L=this.tokenize(Me);if(L!=null){n=L[0],N=L[1];var O=0,d=[],se=[],he=[],Me,oe,Se;for(d.push(0),se.push(1),he.push("_S"),oe=n[O],Se=N[O++];;)switch(Me=d[d.length-1],D.actionTable[Me].charAt(oe-1)){case D.SHIFT:se.push(-oe),he.push(Se),d.push(D.actionTableNumber[Me].charCodeAt(oe-1)-32),oe=n[O],Se=N[O++];break;case D.REDUCE:for(var Ke=D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][1],ze=[],He=0;He<Ke;He++)se.pop(),ze.unshift(he.pop()),d.pop();var Tt=d[d.length-1];se.push(D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][0]),this.reduceActions[D.actionTableNumber[Me].charCodeAt(oe-1)-32]==null?he.push(ze[0]):he.push(this.reduceActions[D.actionTableNumber[Me].charCodeAt(oe-1)-32](ze)),d.push(D.gotoTable[Tt].charCodeAt(D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][0]-2)-33);break;case D.ACCEPT:return new ie(he.pop());default:throw new Error("XPath parse error")}}},ie.prototype=new Object,ie.prototype.constructor=ie,ie.superclass=Object.prototype;function ie(e){this.expression=e}ie.prototype.toString=function(){return this.expression.toString()};function H(e,n,N){n in e||(e[n]=N)}ie.prototype.evaluate=function(e){var n=e.expressionContextNode;if(!(T(n)||R(n)))throw new Error("Context node does not appear to be a valid DOM node.");return e.contextNode=e.expressionContextNode,e.contextSize=1,e.contextPosition=1,e.isHtml&&(H(e,"caseInsensitive",!0),H(e,"allowAnyNamespaceForNoPrefix",!0)),H(e,"caseInsensitive",!1),this.expression.evaluate(e)},ie.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",ie.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",g.prototype=new Object,g.prototype.constructor=g,g.superclass=Object.prototype;function g(){}g.prototype.init=function(){},g.prototype.toString=function(){return"<Expression>"},g.prototype.evaluate=function(e){throw new Error("Could not evaluate expression.")},Q.prototype=new g,Q.prototype.constructor=Q,Q.superclass=g.prototype;function Q(e){arguments.length>0&&this.init(e)}Q.prototype.init=function(e){this.rhs=e},X.prototype=new Q,X.prototype.constructor=X,X.superclass=Q.prototype;function X(e){arguments.length>0&&this.init(e)}X.prototype.init=function(e){X.superclass.init.call(this,e)},X.prototype.evaluate=function(e){return this.rhs.evaluate(e).number().negate()},X.prototype.toString=function(){return"-"+this.rhs.toString()},K.prototype=new g,K.prototype.constructor=K,K.superclass=g.prototype;function K(e,n){arguments.length>0&&this.init(e,n)}K.prototype.init=function(e,n){this.lhs=e,this.rhs=n},ae.prototype=new K,ae.prototype.constructor=ae,ae.superclass=K.prototype;function ae(e,n){arguments.length>0&&this.init(e,n)}ae.prototype.init=function(e,n){ae.superclass.init.call(this,e,n)},ae.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},ae.prototype.evaluate=function(e){var n=this.lhs.evaluate(e).bool();return n.booleanValue()?n:this.rhs.evaluate(e).bool()},ce.prototype=new K,ce.prototype.constructor=ce,ce.superclass=K.prototype;function ce(e,n){arguments.length>0&&this.init(e,n)}ce.prototype.init=function(e,n){ce.superclass.init.call(this,e,n)},ce.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},ce.prototype.evaluate=function(e){var n=this.lhs.evaluate(e).bool();return n.booleanValue()?this.rhs.evaluate(e).bool():n},pe.prototype=new K,pe.prototype.constructor=pe,pe.superclass=K.prototype;function pe(e,n){arguments.length>0&&this.init(e,n)}pe.prototype.init=function(e,n){pe.superclass.init.call(this,e,n)},pe.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},pe.prototype.evaluate=function(e){return this.lhs.evaluate(e).equals(this.rhs.evaluate(e))},x.prototype=new K,x.prototype.constructor=x,x.superclass=K.prototype;function x(e,n){arguments.length>0&&this.init(e,n)}x.prototype.init=function(e,n){x.superclass.init.call(this,e,n)},x.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},x.prototype.evaluate=function(e){return this.lhs.evaluate(e).notequal(this.rhs.evaluate(e))},Z.prototype=new K,Z.prototype.constructor=Z,Z.superclass=K.prototype;function Z(e,n){arguments.length>0&&this.init(e,n)}Z.prototype.init=function(e,n){Z.superclass.init.call(this,e,n)},Z.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthan(this.rhs.evaluate(e))},Z.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},Oe.prototype=new K,Oe.prototype.constructor=Oe,Oe.superclass=K.prototype;function Oe(e,n){arguments.length>0&&this.init(e,n)}Oe.prototype.init=function(e,n){Oe.superclass.init.call(this,e,n)},Oe.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthan(this.rhs.evaluate(e))},Oe.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},me.prototype=new K,me.prototype.constructor=me,me.superclass=K.prototype;function me(e,n){arguments.length>0&&this.init(e,n)}me.prototype.init=function(e,n){me.superclass.init.call(this,e,n)},me.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthanorequal(this.rhs.evaluate(e))},me.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},Te.prototype=new K,Te.prototype.constructor=Te,Te.superclass=K.prototype;function Te(e,n){arguments.length>0&&this.init(e,n)}Te.prototype.init=function(e,n){Te.superclass.init.call(this,e,n)},Te.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthanorequal(this.rhs.evaluate(e))},Te.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},v.prototype=new K,v.prototype.constructor=v,v.superclass=K.prototype;function v(e,n){arguments.length>0&&this.init(e,n)}v.prototype.init=function(e,n){v.superclass.init.call(this,e,n)},v.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().plus(this.rhs.evaluate(e).number())},v.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},p.prototype=new K,p.prototype.constructor=p,p.superclass=K.prototype;function p(e,n){arguments.length>0&&this.init(e,n)}p.prototype.init=function(e,n){p.superclass.init.call(this,e,n)},p.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().minus(this.rhs.evaluate(e).number())},p.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},m.prototype=new K,m.prototype.constructor=m,m.superclass=K.prototype;function m(e,n){arguments.length>0&&this.init(e,n)}m.prototype.init=function(e,n){m.superclass.init.call(this,e,n)},m.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().multiply(this.rhs.evaluate(e).number())},m.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},P.prototype=new K,P.prototype.constructor=P,P.superclass=K.prototype;function P(e,n){arguments.length>0&&this.init(e,n)}P.prototype.init=function(e,n){P.superclass.init.call(this,e,n)},P.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().div(this.rhs.evaluate(e).number())},P.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},B.prototype=new K,B.prototype.constructor=B,B.superclass=K.prototype;function B(e,n){arguments.length>0&&this.init(e,n)}B.prototype.init=function(e,n){B.superclass.init.call(this,e,n)},B.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().mod(this.rhs.evaluate(e).number())},B.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},k.prototype=new K,k.prototype.constructor=k,k.superclass=K.prototype;function k(e,n){arguments.length>0&&this.init(e,n)}k.prototype.init=function(e,n){k.superclass.init.call(this,e,n)},k.prototype.evaluate=function(e){return this.lhs.evaluate(e).nodeset().union(this.rhs.evaluate(e).nodeset())},k.prototype.toString=function(){return u(b,[this.lhs,this.rhs]).join(" | ")},f.prototype=new g,f.prototype.constructor=f,f.superclass=g.prototype;function f(e,n,N){arguments.length>0&&this.init(e,n,N)}f.prototype.init=function(e,n,N){f.superclass.init.call(this),this.filter=e,this.filterPredicates=n,this.locationPath=N};function j(e){for(;e&&e.parentNode;)e=e.parentNode;return e}var Ee=function(e,n,N,L){if(e.length===0)return N;var O=n.extend({});return A(function(d,se){return O.contextSize=d.length,l(function(he,Me){return O.contextNode=he,O.contextPosition=Me+1,f.predicateMatches(se,O)},d)},te(N,L),e)};f.getRoot=function(e,n){var N=n[0];if(N&&N.nodeType===z.DOCUMENT_NODE)return N;if(e.virtualRoot)return e.virtualRoot;if(!N)throw new Error("Context node not found when determining document root.");var L=N.ownerDocument;if(L)return L;for(var O=N;O.parentNode!=null;)O=O.parentNode;return O};var Re=function(e){var n=String(e.name);return n==="xmlns"?"":n.substring(0,6)==="xmlns:"?n.substring(6,n.length):null};f.applyStep=function(e,n,N){if(!N)throw new Error("Context node not found when evaluating XPath step: "+e);var L=[];switch(n.contextNode=N,e.axis){case $.ANCESTOR:if(n.contextNode===n.virtualRoot)break;var O;for(n.contextNode.nodeType==z.ATTRIBUTE_NODE?O=f.getOwnerElement(n.contextNode):O=n.contextNode.parentNode;O!=null&&(e.nodeTest.matches(O,n)&&L.push(O),O!==n.virtualRoot);)O=O.parentNode;break;case $.ANCESTORORSELF:for(var O=n.contextNode;O!=null&&(e.nodeTest.matches(O,n)&&L.push(O),O!==n.virtualRoot);O=O.nodeType==z.ATTRIBUTE_NODE?f.getOwnerElement(O):O.parentNode);break;case $.ATTRIBUTE:var d=n.contextNode.attributes;if(d!=null)for(var se=0;se<d.length;se++){var O=d.item(se);e.nodeTest.matches(O,n)&&L.push(O)}break;case $.CHILD:for(var O=n.contextNode.firstChild;O!=null;O=O.nextSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.DESCENDANT:for(var Se=[n.contextNode.firstChild];Se.length>0;)for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;break;case $.DESCENDANTORSELF:e.nodeTest.matches(n.contextNode,n)&&L.push(n.contextNode);for(var Se=[n.contextNode.firstChild];Se.length>0;)for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;break;case $.FOLLOWING:if(n.contextNode===n.virtualRoot)break;var Se=[];n.contextNode.firstChild!=null?Se.unshift(n.contextNode.firstChild):Se.unshift(n.contextNode.nextSibling);for(var O=n.contextNode.parentNode;O!=null&&O.nodeType!=z.DOCUMENT_NODE&&O!==n.virtualRoot;O=O.parentNode)Se.unshift(O.nextSibling);do for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;while(Se.length>0);break;case $.FOLLOWINGSIBLING:if(n.contextNode===n.virtualRoot)break;for(var O=n.contextNode.nextSibling;O!=null;O=O.nextSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.NAMESPACE:var he={};if(n.contextNode.nodeType==z.ELEMENT_NODE){he.xml=new nt("xml",null,ie.XML_NAMESPACE_URI,n.contextNode);for(var O=n.contextNode;O!=null&&O.nodeType==z.ELEMENT_NODE;O=O.parentNode)for(var se=0;se<O.attributes.length;se++){var Me=O.attributes.item(se),oe=Re(Me);oe!=null&&he[oe]==null&&(he[oe]=new nt(oe,Me,Me.value,n.contextNode))}for(var oe in he){var N=he[oe];e.nodeTest.matches(N,n)&&L.push(N)}}break;case $.PARENT:O=null,n.contextNode!==n.virtualRoot&&(n.contextNode.nodeType==z.ATTRIBUTE_NODE?O=f.getOwnerElement(n.contextNode):O=n.contextNode.parentNode),O!=null&&e.nodeTest.matches(O,n)&&L.push(O);break;case $.PRECEDING:var Se;n.virtualRoot!=null?Se=[n.virtualRoot]:Se=[j(n.contextNode)];e:for(;Se.length>0;)for(var O=Se.pop();O!=null;){if(O==n.contextNode)break e;e.nodeTest.matches(O,n)&&L.unshift(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling}break;case $.PRECEDINGSIBLING:if(n.contextNode===n.virtualRoot)break;for(var O=n.contextNode.previousSibling;O!=null;O=O.previousSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.SELF:e.nodeTest.matches(n.contextNode,n)&&L.push(n.contextNode);break}return L};function le(e,n,N){return Ee(e.predicates,n,f.applyStep(e,n,N),h(ge,e.axis))}function Ue(e,n,N){return _e(u(le.bind(null,N,e),n))}f.applySteps=function(e,n,N){return A(Ue.bind(null,n),N,e)},f.prototype.applyFilter=function(e,n){if(!this.filter)return{nodes:[e.contextNode]};var N=this.filter.evaluate(e);if(!Ie.instance_of(N,Ae)){if(this.filterPredicates!=null&&this.filterPredicates.length>0||this.locationPath!=null)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:N}}return{nodes:Ee(this.filterPredicates||[],n,N.toUnsortedArray(),!1)}},f.applyLocationPath=function(e,n,N){if(!e)return N;var L=e.absolute?[f.getRoot(n,N)]:N;return f.applySteps(e.steps,n,L)},f.prototype.evaluate=function(e){var n=Le(new Ze,e),N=this.applyFilter(e,n);if("nonNodes"in N)return N.nonNodes;var L=new Ae;return L.addArray(f.applyLocationPath(this.locationPath,n,N.nodes)),L},f.predicateMatches=function(e,n){var N=e.evaluate(n);return Ie.instance_of(N,V)?n.contextPosition===N.numberValue():N.booleanValue()},f.predicateString=function(e){return U("[","]",e.toString())},f.predicatesString=function(e){return J("",u(f.predicateString,e))},f.prototype.toString=function(){if(this.filter!=null){var e=b(this.filter);return Ie.instance_of(this.filter,F)?U("'","'",e):this.filterPredicates!=null&&this.filterPredicates.length?U("(",")",e)+f.predicatesString(this.filterPredicates):this.locationPath!=null?e+(this.locationPath.absolute?"":"/")+b(this.locationPath):e}return b(this.locationPath)},f.getOwnerElement=function(e){if(e.ownerElement)return e.ownerElement;try{if(e.selectSingleNode)return e.selectSingleNode("..")}catch{}for(var n=e.nodeType==z.DOCUMENT_NODE?e:e.ownerDocument,N=n.getElementsByTagName("*"),L=0;L<N.length;L++)for(var O=N.item(L),d=O.attributes,se=0;se<d.length;se++){var he=d.item(se);if(he===e)return O}return null},Ne.prototype=new Object,Ne.prototype.constructor=Ne,Ne.superclass=Object.prototype;function Ne(e,n){arguments.length>0&&this.init(e,n)}Ne.prototype.init=function(e,n){this.absolute=e,this.steps=n},Ne.prototype.toString=function(){return(this.absolute?"/":"")+u(b,this.steps).join("/")},$.prototype=new Object,$.prototype.constructor=$,$.superclass=Object.prototype;function $(e,n,N){arguments.length>0&&this.init(e,n,N)}$.prototype.init=function(e,n,N){this.axis=e,this.nodeTest=n,this.predicates=N},$.prototype.toString=function(){return $.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+f.predicatesString(this.predicates)},$.ANCESTOR=0,$.ANCESTORORSELF=1,$.ATTRIBUTE=2,$.CHILD=3,$.DESCENDANT=4,$.DESCENDANTORSELF=5,$.FOLLOWING=6,$.FOLLOWINGSIBLING=7,$.NAMESPACE=8,$.PARENT=9,$.PRECEDING=10,$.PRECEDINGSIBLING=11,$.SELF=12,$.STEPNAMES=A(function(e,n){return e[n[0]]=n[1],e},{},[[$.ANCESTOR,"ancestor"],[$.ANCESTORORSELF,"ancestor-or-self"],[$.ATTRIBUTE,"attribute"],[$.CHILD,"child"],[$.DESCENDANT,"descendant"],[$.DESCENDANTORSELF,"descendant-or-self"],[$.FOLLOWING,"following"],[$.FOLLOWINGSIBLING,"following-sibling"],[$.NAMESPACE,"namespace"],[$.PARENT,"parent"],[$.PRECEDING,"preceding"],[$.PRECEDINGSIBLING,"preceding-sibling"],[$.SELF,"self"]]);var ge=[$.ANCESTOR,$.ANCESTORORSELF,$.PARENT,$.PRECEDING,$.PRECEDINGSIBLING];_.prototype=new Object,_.prototype.constructor=_,_.superclass=Object.prototype;function _(e,n){arguments.length>0&&this.init(e,n)}_.prototype.init=function(e,n){this.type=e,this.value=n},_.prototype.toString=function(){return"<unknown nodetest type>"},_.prototype.matches=function(e,n){console.warn("unknown node test type")},_.NAMETESTANY=0,_.NAMETESTPREFIXANY=1,_.NAMETESTQNAME=2,_.COMMENT=3,_.TEXT=4,_.PI=5,_.NODE=6,_.isNodeType=function(e){return function(n){return h(e,n.nodeType)}},_.makeNodeTestType=function(e,n,N){var L=N||function(){};return L.prototype=new _(e),L.prototype.constructor=L,Le(L.prototype,n),L},_.makeNodeTypeTest=function(e,n,N){return new(_.makeNodeTestType(e,{matches:_.isNodeType(n),toString:M(N)}))},_.hasPrefix=function(e){return e.prefix||(e.nodeName||e.tagName).indexOf(":")!==-1},_.isElementOrAttribute=_.isNodeType([1,2]),_.nameSpaceMatches=function(e,n,N){var L=N.namespaceURI||"";if(!e)return!L||n.allowAnyNamespaceForNoPrefix&&!_.hasPrefix(N);var O=n.namespaceResolver.getNamespace(e,n.expressionContextNode);if(O==null)throw new Error("Cannot resolve QName "+e);return O===L},_.localNameMatches=function(e,n,N){var L=N.localName||N.nodeName;return n.caseInsensitive?e.toLowerCase()===L.toLowerCase():e===L},_.NameTestPrefixAny=_.makeNodeTestType(_.NAMETESTPREFIXANY,{matches:function(e,n){return _.isElementOrAttribute(e)&&_.nameSpaceMatches(this.prefix,n,e)},toString:function(){return this.prefix+":*"}},function(n){this.prefix=n}),_.NameTestQName=_.makeNodeTestType(_.NAMETESTQNAME,{matches:function(e,n){return _.isNodeType([z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.NAMESPACE_NODE])(e)&&_.nameSpaceMatches(this.prefix,n,e)&&_.localNameMatches(this.localName,n,e)},toString:function(){return this.name}},function(n){var N=n.split(":");this.name=n,this.prefix=N.length>1?N[0]:null,this.localName=N[N.length>1?1:0]}),_.PITest=_.makeNodeTestType(_.PI,{matches:function(e,n){return _.isNodeType([z.PROCESSING_INSTRUCTION_NODE])(e)&&(e.target||e.nodeName)===this.name},toString:function(){return U('processing-instruction("','")',this.name)}},function(e){this.name=e}),_.nameTestAny=_.makeNodeTypeTest(_.NAMETESTANY,[z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.NAMESPACE_NODE],"*"),_.textTest=_.makeNodeTypeTest(_.TEXT,[z.TEXT_NODE,z.CDATA_SECTION_NODE],"text()"),_.commentTest=_.makeNodeTypeTest(_.COMMENT,[z.COMMENT_NODE],"comment()"),_.nodeTest=_.makeNodeTypeTest(_.NODE,[z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.TEXT_NODE,z.CDATA_SECTION_NODE,z.PROCESSING_INSTRUCTION_NODE,z.COMMENT_NODE,z.DOCUMENT_NODE],"node()"),_.anyPiTest=_.makeNodeTypeTest(_.PI,[z.PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),ne.prototype=new g,ne.prototype.constructor=ne,ne.superclass=g.prototype;function ne(e){arguments.length>0&&this.init(e)}ne.prototype.init=function(e){this.variable=e},ne.prototype.toString=function(){return"$"+this.variable},ne.prototype.evaluate=function(e){var n=Ie.resolveQName(this.variable,e.namespaceResolver,e.contextNode,!1);if(n[0]==null)throw new Error("Cannot resolve QName "+fn);var N=e.variableResolver.getVariable(n[1],n[0]);if(!N)throw qe.fromMessage("Undeclared variable: "+this.toString());return N},Be.prototype=new g,Be.prototype.constructor=Be,Be.superclass=g.prototype;function Be(e,n){arguments.length>0&&this.init(e,n)}Be.prototype.init=function(e,n){this.functionName=e,this.arguments=n},Be.prototype.toString=function(){for(var e=this.functionName+"(",n=0;n<this.arguments.length;n++)n>0&&(e+=", "),e+=this.arguments[n].toString();return e+")"},Be.prototype.evaluate=function(e){var n=Xe.getFunctionFromContext(this.functionName,e);if(!n)throw new Error("Unknown function "+this.functionName);var N=[e].concat(this.arguments);return n.apply(e.functionResolver.thisArg,N)};var de=new Object;de.equals=function(e,n){return e.equals(n)},de.notequal=function(e,n){return e.notequal(n)},de.lessthan=function(e,n){return e.lessthan(n)},de.greaterthan=function(e,n){return e.greaterthan(n)},de.lessthanorequal=function(e,n){return e.lessthanorequal(n)},de.greaterthanorequal=function(e,n){return e.greaterthanorequal(n)},F.prototype=new g,F.prototype.constructor=F,F.superclass=g.prototype;function F(e){arguments.length>0&&this.init(e)}F.prototype.init=function(e){this.str=String(e)},F.prototype.toString=function(){return this.str},F.prototype.evaluate=function(e){return this},F.prototype.string=function(){return this},F.prototype.number=function(){return new V(this.str)},F.prototype.bool=function(){return new ue(this.str)},F.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},F.prototype.stringValue=function(){return this.str},F.prototype.numberValue=function(){return this.number().numberValue()},F.prototype.booleanValue=function(){return this.bool().booleanValue()},F.prototype.equals=function(e){return Ie.instance_of(e,ue)?this.bool().equals(e):Ie.instance_of(e,V)?this.number().equals(e):Ie.instance_of(e,Ae)?e.compareWithString(this,de.equals):new ue(this.str==e.str)},F.prototype.notequal=function(e){return Ie.instance_of(e,ue)?this.bool().notequal(e):Ie.instance_of(e,V)?this.number().notequal(e):Ie.instance_of(e,Ae)?e.compareWithString(this,de.notequal):new ue(this.str!=e.str)},F.prototype.lessthan=function(e){return this.number().lessthan(e)},F.prototype.greaterthan=function(e){return this.number().greaterthan(e)},F.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},F.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},V.prototype=new g,V.prototype.constructor=V,V.superclass=g.prototype;function V(e){arguments.length>0&&this.init(e)}V.prototype.init=function(e){this.num=typeof e=="string"?this.parse(e):Number(e)},V.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,V.prototype.parse=function(e){return this.numberFormat.test(e)?parseFloat(e):Number.NaN};function ve(e){for(var n=e.split("e-"),N=n[0].replace(".",""),L=Number(n[1]),O=0;O<L-1;O+=1)N="0"+N;return"0."+N}function Qe(e){for(var n=e.split("e"),N=n[0].replace(".",""),L=Number(n[1]),O=L+1-N.length,d=0;d<O;d+=1)N+="0";return N}V.prototype.toString=function(){var e=this.num.toString();return e.indexOf("e-")!==-1?ve(e):e.indexOf("e")!==-1?Qe(e):e},V.prototype.evaluate=function(e){return this},V.prototype.string=function(){return new F(this.toString())},V.prototype.number=function(){return this},V.prototype.bool=function(){return new ue(this.num)},V.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.num},V.prototype.booleanValue=function(){return this.bool().booleanValue()},V.prototype.negate=function(){return new V(-this.num)},V.prototype.equals=function(e){return Ie.instance_of(e,ue)?this.bool().equals(e):Ie.instance_of(e,F)?this.equals(e.number()):Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.equals):new ue(this.num==e.num)},V.prototype.notequal=function(e){return Ie.instance_of(e,ue)?this.bool().notequal(e):Ie.instance_of(e,F)?this.notequal(e.number()):Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.notequal):new ue(this.num!=e.num)},V.prototype.lessthan=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.greaterthan):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.lessthan(e.number()):new ue(this.num<e.num)},V.prototype.greaterthan=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.lessthan):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.greaterthan(e.number()):new ue(this.num>e.num)},V.prototype.lessthanorequal=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.greaterthanorequal):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.lessthanorequal(e.number()):new ue(this.num<=e.num)},V.prototype.greaterthanorequal=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.lessthanorequal):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.greaterthanorequal(e.number()):new ue(this.num>=e.num)},V.prototype.plus=function(e){return new V(this.num+e.num)},V.prototype.minus=function(e){return new V(this.num-e.num)},V.prototype.multiply=function(e){return new V(this.num*e.num)},V.prototype.div=function(e){return new V(this.num/e.num)},V.prototype.mod=function(e){return new V(this.num%e.num)},ue.prototype=new g,ue.prototype.constructor=ue,ue.superclass=g.prototype;function ue(e){arguments.length>0&&this.init(e)}ue.prototype.init=function(e){this.b=!!e},ue.prototype.toString=function(){return this.b.toString()},ue.prototype.evaluate=function(e){return this},ue.prototype.string=function(){return new F(this.b)},ue.prototype.number=function(){return new V(this.b)},ue.prototype.bool=function(){return this},ue.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},ue.prototype.stringValue=function(){return this.string().stringValue()},ue.prototype.numberValue=function(){return this.number().numberValue()},ue.prototype.booleanValue=function(){return this.b},ue.prototype.not=function(){return new ue(!this.b)},ue.prototype.equals=function(e){return Ie.instance_of(e,F)||Ie.instance_of(e,V)?this.equals(e.bool()):Ie.instance_of(e,Ae)?e.compareWithBoolean(this,de.equals):new ue(this.b==e.b)},ue.prototype.notequal=function(e){return Ie.instance_of(e,F)||Ie.instance_of(e,V)?this.notequal(e.bool()):Ie.instance_of(e,Ae)?e.compareWithBoolean(this,de.notequal):new ue(this.b!=e.b)},ue.prototype.lessthan=function(e){return this.number().lessthan(e)},ue.prototype.greaterthan=function(e){return this.number().greaterthan(e)},ue.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},ue.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},ue.true_=new ue(!0),ue.false_=new ue(!1),we.prototype=new Object,we.prototype.constructor=we,we.superclass=Object.prototype;function we(e){this.init(e)}we.prototype.init=function(e){this.left=null,this.right=null,this.node=e,this.depth=1},we.prototype.balance=function(){var e=this.left==null?0:this.left.depth,n=this.right==null?0:this.right.depth;if(e>n+1){var N=this.left.left==null?0:this.left.left.depth,L=this.left.right==null?0:this.left.right.depth;N<L&&this.left.rotateRR(),this.rotateLL()}else if(e+1<n){var O=this.right.right==null?0:this.right.right.depth,d=this.right.left==null?0:this.right.left.depth;d>O&&this.right.rotateLL(),this.rotateRR()}},we.prototype.rotateLL=function(){var e=this.node,n=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=n,this.right.node=e,this.right.updateInNewLocation(),this.updateInNewLocation()},we.prototype.rotateRR=function(){var e=this.node,n=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=n,this.left.node=e,this.left.updateInNewLocation(),this.updateInNewLocation()},we.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},we.prototype.getDepthFromChildren=function(){this.depth=this.node==null?0:1,this.left!=null&&(this.depth=this.left.depth+1),this.right!=null&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)};function Gt(e,n){if(e===n)return 0;if(e.compareDocumentPosition){var N=e.compareDocumentPosition(n);return N&1||N&10?1:N&20?-1:0}for(var L=0,O=0,d=e;d!=null;d=d.parentNode||d.ownerElement)L++;for(var se=n;se!=null;se=se.parentNode||se.ownerElement)O++;if(L>O){for(;L>O;)e=e.parentNode||e.ownerElement,L--;if(e===n)return 1}else if(O>L){for(;O>L;)n=n.parentNode||n.ownerElement,O--;if(e===n)return-1}for(var he=e.parentNode||e.ownerElement,Me=n.parentNode||n.ownerElement;he!==Me;)e=he,n=Me,he=e.parentNode||e.ownerElement,Me=n.parentNode||n.ownerElement;var oe=Ft(e),Se=Ft(n);if(oe&&!Se)return-1;if(!oe&&Se)return 1;if(e.isXPathNamespace){if(e.nodeValue===ie.XML_NAMESPACE_URI||!n.isXPathNamespace)return-1;if(n.nodeValue===ie.XML_NAMESPACE_URI)return 1}else if(n.isXPathNamespace)return 1;if(he)for(var Ke=oe?he.attributes:he.childNodes,ze=Ke.length,He=e.baseNode||e,Tt=n.baseNode||n,tt=0;tt<ze;tt+=1){var ut=Ke[tt];if(ut===He)return-1;if(ut===Tt)return 1}throw new Error("Unexpected: could not determine node order")}we.prototype.add=function(e){if(e===this.node)return!1;var n=Gt(e,this.node),N=!1;return n==-1?this.left==null?(this.left=new we(e),N=!0):(N=this.left.add(e),N&&this.balance()):n==1&&(this.right==null?(this.right=new we(e),N=!0):(N=this.right.add(e),N&&this.balance())),N&&this.getDepthFromChildren(),N},Ae.prototype=new g,Ae.prototype.constructor=Ae,Ae.superclass=g.prototype;function Ae(){this.init()}Ae.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},Ae.prototype.toString=function(){var e=this.first();return e==null?"":this.stringForNode(e)},Ae.prototype.evaluate=function(e){return this},Ae.prototype.string=function(){return new F(this.toString())},Ae.prototype.stringValue=function(){return this.toString()},Ae.prototype.number=function(){return new V(this.string())},Ae.prototype.numberValue=function(){return Number(this.string())},Ae.prototype.bool=function(){return new ue(this.booleanValue())},Ae.prototype.booleanValue=function(){return!!this.size},Ae.prototype.nodeset=function(){return this},Ae.prototype.stringForNode=function(e){return e.nodeType==z.DOCUMENT_NODE||e.nodeType==z.ELEMENT_NODE||e.nodeType===z.DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(e):e.nodeType===z.ATTRIBUTE_NODE?e.value||e.nodeValue:e.isNamespaceNode?e.namespace:e.nodeValue},Ae.prototype.stringForContainerNode=function(e){for(var n="",N=e.firstChild;N!=null;N=N.nextSibling){var L=N.nodeType;(L===1||L===3||L===4||L===9||L===11)&&(n+=this.stringForNode(N))}return n},Ae.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new we(this.nodes[0]);for(var e=1;e<this.nodes.length;e+=1)this.tree.add(this.nodes[e])}return this.tree},Ae.prototype.first=function(){var e=this.buildTree();if(e==null)return null;for(;e.left!=null;)e=e.left;return e.node},Ae.prototype.add=function(e){for(var n=0;n<this.nodes.length;n+=1)if(e===this.nodes[n])return;this.tree=null,this.nodes.push(e),this.size+=1},Ae.prototype.addArray=function(e){var n=this;I(function(N){n.add(N)},e)},Ae.prototype.toArray=function(){var e=[];return this.toArrayRec(this.buildTree(),e),e},Ae.prototype.toArrayRec=function(e,n){e!=null&&(this.toArrayRec(e.left,n),n.push(e.node),this.toArrayRec(e.right,n))},Ae.prototype.toUnsortedArray=function(){return this.nodes.slice()},Ae.prototype.compareWithString=function(e,n){for(var N=this.toUnsortedArray(),L=0;L<N.length;L++){var O=N[L],d=new F(this.stringForNode(O)),se=n(d,e);if(se.booleanValue())return se}return new ue(!1)},Ae.prototype.compareWithNumber=function(e,n){for(var N=this.toUnsortedArray(),L=0;L<N.length;L++){var O=N[L],d=new V(this.stringForNode(O)),se=n(d,e);if(se.booleanValue())return se}return new ue(!1)},Ae.prototype.compareWithBoolean=function(e,n){return n(this.bool(),e)},Ae.prototype.compareWithNodeSet=function(e,n){for(var N=this.toUnsortedArray(),L=function(he,Me){return n(Me,he)},O=0;O<N.length;O++){var d=new F(this.stringForNode(N[O])),se=e.compareWithString(d,L);if(se.booleanValue())return se}return new ue(!1)},Ae.compareWith=C(function(e,n){return Ie.instance_of(n,F)?this.compareWithString(n,e):Ie.instance_of(n,V)?this.compareWithNumber(n,e):Ie.instance_of(n,ue)?this.compareWithBoolean(n,e):this.compareWithNodeSet(n,e)}),Ae.prototype.equals=Ae.compareWith(de.equals),Ae.prototype.notequal=Ae.compareWith(de.notequal),Ae.prototype.lessthan=Ae.compareWith(de.lessthan),Ae.prototype.greaterthan=Ae.compareWith(de.greaterthan),Ae.prototype.lessthanorequal=Ae.compareWith(de.lessthanorequal),Ae.prototype.greaterthanorequal=Ae.compareWith(de.greaterthanorequal),Ae.prototype.union=function(e){var n=new Ae;return n.addArray(this.toUnsortedArray()),n.addArray(e.toUnsortedArray()),n},nt.prototype=new Object,nt.prototype.constructor=nt,nt.superclass=Object.prototype;function nt(e,n,N,L){this.isXPathNamespace=!0,this.baseNode=n,this.ownerDocument=L.ownerDocument,this.nodeName=e,this.prefix=e,this.localName=e,this.namespaceURI=null,this.nodeValue=N,this.ownerElement=L,this.nodeType=z.NAMESPACE_NODE}nt.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Ze.prototype=new Object,Ze.prototype.constructor=Ze,Ze.superclass=Object.prototype;function Ze(e,n,N){this.variableResolver=e??new et,this.namespaceResolver=n??new je,this.functionResolver=N??new Xe}Ze.prototype.extend=function(e){return Le(new Ze,this,e)},et.prototype=new Object,et.prototype.constructor=et,et.superclass=Object.prototype;function et(){}et.prototype.getVariable=function(e,n){return null},Xe.prototype=new Object,Xe.prototype.constructor=Xe,Xe.superclass=Object.prototype;function Xe(e){this.thisArg=e??De,this.functions=new Object,this.addStandardFunctions()}Xe.prototype.addStandardFunctions=function(){this.functions["{}last"]=De.last,this.functions["{}position"]=De.position,this.functions["{}count"]=De.count,this.functions["{}id"]=De.id,this.functions["{}local-name"]=De.localName,this.functions["{}namespace-uri"]=De.namespaceURI,this.functions["{}name"]=De.name,this.functions["{}string"]=De.string,this.functions["{}concat"]=De.concat,this.functions["{}starts-with"]=De.startsWith,this.functions["{}contains"]=De.contains,this.functions["{}substring-before"]=De.substringBefore,this.functions["{}substring-after"]=De.substringAfter,this.functions["{}substring"]=De.substring,this.functions["{}string-length"]=De.stringLength,this.functions["{}normalize-space"]=De.normalizeSpace,this.functions["{}translate"]=De.translate,this.functions["{}boolean"]=De.boolean_,this.functions["{}not"]=De.not,this.functions["{}true"]=De.true_,this.functions["{}false"]=De.false_,this.functions["{}lang"]=De.lang,this.functions["{}number"]=De.number,this.functions["{}sum"]=De.sum,this.functions["{}floor"]=De.floor,this.functions["{}ceiling"]=De.ceiling,this.functions["{}round"]=De.round},Xe.prototype.addFunction=function(e,n,N){this.functions["{"+e+"}"+n]=N},Xe.getFunctionFromContext=function(e,n){var N=Ie.resolveQName(e,n.namespaceResolver,n.contextNode,!1);if(N[0]===null)throw new Error("Cannot resolve QName "+name);return n.functionResolver.getFunction(N[1],N[0])},Xe.prototype.getFunction=function(e,n){return this.functions["{"+n+"}"+e]},je.prototype=new Object,je.prototype.constructor=je,je.superclass=Object.prototype;function je(){}je.prototype.getNamespace=function(e,n){if(e=="xml")return ie.XML_NAMESPACE_URI;if(e=="xmlns")return ie.XMLNS_NAMESPACE_URI;for(n.nodeType==z.DOCUMENT_NODE?n=n.documentElement:n.nodeType==z.ATTRIBUTE_NODE?n=f.getOwnerElement(n):n.nodeType!=z.ELEMENT_NODE&&(n=n.parentNode);n!=null&&n.nodeType==z.ELEMENT_NODE;){for(var N=n.attributes,L=0;L<N.length;L++){var O=N.item(L),d=O.name||O.nodeName;if(d==="xmlns"&&e===""||d==="xmlns:"+e)return String(O.value||O.nodeValue)}n=n.parentNode}return null};var De=new Object;De.last=function(e){if(arguments.length!=1)throw new Error("Function last expects ()");return new V(e.contextSize)},De.position=function(e){if(arguments.length!=1)throw new Error("Function position expects ()");return new V(e.contextPosition)},De.count=function(){var e=arguments[0],n;if(arguments.length!=2||!Ie.instance_of(n=arguments[1].evaluate(e),Ae))throw new Error("Function count expects (node-set)");return new V(n.size)},De.id=function(){var e=arguments[0],n;if(arguments.length!=2)throw new Error("Function id expects (object)");n=arguments[1].evaluate(e),Ie.instance_of(n,Ae)?n=n.toArray().join(" "):n=n.stringValue();for(var N=n.split(/[\x0d\x0a\x09\x20]+/),L=new Ae,O=e.contextNode.nodeType==z.DOCUMENT_NODE?e.contextNode:e.contextNode.ownerDocument,d=0;d<N.length;d++){var se;O.getElementById?se=O.getElementById(N[d]):se=Ie.getElementById(O,N[d]),se!=null&&L.add(se)}return L},De.localName=function(e,n){var N;if(arguments.length==1)N=e.contextNode;else if(arguments.length==2)N=n.evaluate(e).first();else throw new Error("Function local-name expects (node-set?)");return N==null?new F(""):new F(N.localName||N.baseName||N.target||N.nodeName||"")},De.namespaceURI=function(){var e=arguments[0],n;if(arguments.length==1)n=e.contextNode;else if(arguments.length==2)n=arguments[1].evaluate(e).first();else throw new Error("Function namespace-uri expects (node-set?)");return n==null?new F(""):new F(n.namespaceURI||"")},De.name=function(){var e=arguments[0],n;if(arguments.length==1)n=e.contextNode;else if(arguments.length==2)n=arguments[1].evaluate(e).first();else throw new Error("Function name expects (node-set?)");return n==null?new F(""):n.nodeType==z.ELEMENT_NODE?new F(n.nodeName):n.nodeType==z.ATTRIBUTE_NODE?new F(n.name||n.nodeName):n.nodeType===z.PROCESSING_INSTRUCTION_NODE?new F(n.target||n.nodeName):n.localName==null?new F(""):new F(n.localName)},De.string=function(){var e=arguments[0];if(arguments.length==1)return new F(Ae.prototype.stringForNode(e.contextNode));if(arguments.length==2)return arguments[1].evaluate(e).string();throw new Error("Function string expects (object?)")},De.concat=function(e){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var n="",N=1;N<arguments.length;N++)n+=arguments[N].evaluate(e).stringValue();return new F(n)},De.startsWith=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function startsWith expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new ue(n.substring(0,N.length)==N)},De.contains=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function contains expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new ue(n.indexOf(N)!==-1)},De.substringBefore=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function substring-before expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new F(n.substring(0,n.indexOf(N)))},De.substringAfter=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function substring-after expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();if(N.length==0)return new F(n);var L=n.indexOf(N);return L==-1?new F(""):new F(n.substring(L+N.length))},De.substring=function(){var e=arguments[0];if(!(arguments.length==3||arguments.length==4))throw new Error("Function substring expects (string, number, number?)");var n=arguments[1].evaluate(e).stringValue(),N=Math.round(arguments[2].evaluate(e).numberValue())-1,L=arguments.length==4?N+Math.round(arguments[3].evaluate(e).numberValue()):void 0;return new F(n.substring(N,L))},De.stringLength=function(){var e=arguments[0],n;if(arguments.length==1)n=Ae.prototype.stringForNode(e.contextNode);else if(arguments.length==2)n=arguments[1].evaluate(e).stringValue();else throw new Error("Function string-length expects (string?)");return new V(n.length)},De.normalizeSpace=function(){var e=arguments[0],n;if(arguments.length==1)n=Ae.prototype.stringForNode(e.contextNode);else if(arguments.length==2)n=arguments[1].evaluate(e).stringValue();else throw new Error("Function normalize-space expects (string?)");for(var N=0,L=n.length-1;Ie.isSpace(n.charCodeAt(L));)L--;for(var O="";N<=L&&Ie.isSpace(n.charCodeAt(N));)N++;for(;N<=L;)if(Ie.isSpace(n.charCodeAt(N)))for(O+=" ";N<=L&&Ie.isSpace(n.charCodeAt(N));)N++;else O+=n.charAt(N),N++;return new F(O)},De.translate=function(e,n,N,L){if(arguments.length!=4)throw new Error("Function translate expects (string, string, string)");var O=n.evaluate(e).stringValue(),d=N.evaluate(e).stringValue(),se=L.evaluate(e).stringValue(),he=A(function(oe,Se,Ke){return Se in oe||(oe[Se]=Ke>se.length?"":se[Ke]),oe},{},d),Me=J("",u(function(oe){return oe in he?he[oe]:oe},O));return new F(Me)},De.boolean_=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(e).bool()},De.not=function(e,n){if(arguments.length!=2)throw new Error("Function not expects (object)");return n.evaluate(e).bool().not()},De.true_=function(){if(arguments.length!=1)throw new Error("Function true expects ()");return ue.true_},De.false_=function(){if(arguments.length!=1)throw new Error("Function false expects ()");return ue.false_},De.lang=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function lang expects (string)");for(var n,N=e.contextNode;N!=null&&N.nodeType!=z.DOCUMENT_NODE;N=N.parentNode){var L=N.getAttributeNS(ie.XML_NAMESPACE_URI,"lang");if(L!=null){n=String(L);break}}if(n==null)return ue.false_;var O=arguments[1].evaluate(e).stringValue();return new ue(n.substring(0,O.length)==O&&(n.length==O.length||n.charAt(O.length)=="-"))},De.number=function(){var e=arguments[0];if(!(arguments.length==1||arguments.length==2))throw new Error("Function number expects (object?)");return arguments.length==1?new V(Ae.prototype.stringForNode(e.contextNode)):arguments[1].evaluate(e).number()},De.sum=function(){var e=arguments[0],n;if(arguments.length!=2||!Ie.instance_of(n=arguments[1].evaluate(e),Ae))throw new Error("Function sum expects (node-set)");n=n.toUnsortedArray();for(var N=0,L=0;L<n.length;L++)N+=new V(Ae.prototype.stringForNode(n[L])).numberValue();return new V(N)},De.floor=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function floor expects (number)");return new V(Math.floor(arguments[1].evaluate(e).numberValue()))},De.ceiling=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function ceiling expects (number)");return new V(Math.ceil(arguments[1].evaluate(e).numberValue()))},De.round=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function round expects (number)");return new V(Math.round(arguments[1].evaluate(e).numberValue()))};var Ie=new Object,Ft=function(e){return e&&(e.nodeType===z.ATTRIBUTE_NODE||e.ownerElement||e.isXPathNamespace)};Ie.splitQName=function(e){var n=e.indexOf(":");return n==-1?[null,e]:[e.substring(0,n),e.substring(n+1)]},Ie.resolveQName=function(e,n,N,L){var O=Ie.splitQName(e);return O[0]!=null?O[0]=n.getNamespace(O[0],N):L?(O[0]=n.getNamespace("",N),O[0]==null&&(O[0]="")):O[0]="",O},Ie.isSpace=function(e){return e==9||e==13||e==10||e==32},Ie.isLetter=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=255||e>=256&&e<=305||e>=308&&e<=318||e>=321&&e<=328||e>=330&&e<=382||e>=384&&e<=451||e>=461&&e<=496||e>=500&&e<=501||e>=506&&e<=535||e>=592&&e<=680||e>=699&&e<=705||e==902||e>=904&&e<=906||e==908||e>=910&&e<=929||e>=931&&e<=974||e>=976&&e<=982||e==986||e==988||e==990||e==992||e>=994&&e<=1011||e>=1025&&e<=1036||e>=1038&&e<=1103||e>=1105&&e<=1116||e>=1118&&e<=1153||e>=1168&&e<=1220||e>=1223&&e<=1224||e>=1227&&e<=1228||e>=1232&&e<=1259||e>=1262&&e<=1269||e>=1272&&e<=1273||e>=1329&&e<=1366||e==1369||e>=1377&&e<=1414||e>=1488&&e<=1514||e>=1520&&e<=1522||e>=1569&&e<=1594||e>=1601&&e<=1610||e>=1649&&e<=1719||e>=1722&&e<=1726||e>=1728&&e<=1742||e>=1744&&e<=1747||e==1749||e>=1765&&e<=1766||e>=2309&&e<=2361||e==2365||e>=2392&&e<=2401||e>=2437&&e<=2444||e>=2447&&e<=2448||e>=2451&&e<=2472||e>=2474&&e<=2480||e==2482||e>=2486&&e<=2489||e>=2524&&e<=2525||e>=2527&&e<=2529||e>=2544&&e<=2545||e>=2565&&e<=2570||e>=2575&&e<=2576||e>=2579&&e<=2600||e>=2602&&e<=2608||e>=2610&&e<=2611||e>=2613&&e<=2614||e>=2616&&e<=2617||e>=2649&&e<=2652||e==2654||e>=2674&&e<=2676||e>=2693&&e<=2699||e==2701||e>=2703&&e<=2705||e>=2707&&e<=2728||e>=2730&&e<=2736||e>=2738&&e<=2739||e>=2741&&e<=2745||e==2749||e==2784||e>=2821&&e<=2828||e>=2831&&e<=2832||e>=2835&&e<=2856||e>=2858&&e<=2864||e>=2866&&e<=2867||e>=2870&&e<=2873||e==2877||e>=2908&&e<=2909||e>=2911&&e<=2913||e>=2949&&e<=2954||e>=2958&&e<=2960||e>=2962&&e<=2965||e>=2969&&e<=2970||e==2972||e>=2974&&e<=2975||e>=2979&&e<=2980||e>=2984&&e<=2986||e>=2990&&e<=2997||e>=2999&&e<=3001||e>=3077&&e<=3084||e>=3086&&e<=3088||e>=3090&&e<=3112||e>=3114&&e<=3123||e>=3125&&e<=3129||e>=3168&&e<=3169||e>=3205&&e<=3212||e>=3214&&e<=3216||e>=3218&&e<=3240||e>=3242&&e<=3251||e>=3253&&e<=3257||e==3294||e>=3296&&e<=3297||e>=3333&&e<=3340||e>=3342&&e<=3344||e>=3346&&e<=3368||e>=3370&&e<=3385||e>=3424&&e<=3425||e>=3585&&e<=3630||e==3632||e>=3634&&e<=3635||e>=3648&&e<=3653||e>=3713&&e<=3714||e==3716||e>=3719&&e<=3720||e==3722||e==3725||e>=3732&&e<=3735||e>=3737&&e<=3743||e>=3745&&e<=3747||e==3749||e==3751||e>=3754&&e<=3755||e>=3757&&e<=3758||e==3760||e>=3762&&e<=3763||e==3773||e>=3776&&e<=3780||e>=3904&&e<=3911||e>=3913&&e<=3945||e>=4256&&e<=4293||e>=4304&&e<=4342||e==4352||e>=4354&&e<=4355||e>=4357&&e<=4359||e==4361||e>=4363&&e<=4364||e>=4366&&e<=4370||e==4412||e==4414||e==4416||e==4428||e==4430||e==4432||e>=4436&&e<=4437||e==4441||e>=4447&&e<=4449||e==4451||e==4453||e==4455||e==4457||e>=4461&&e<=4462||e>=4466&&e<=4467||e==4469||e==4510||e==4520||e==4523||e>=4526&&e<=4527||e>=4535&&e<=4536||e==4538||e>=4540&&e<=4546||e==4587||e==4592||e==4601||e>=7680&&e<=7835||e>=7840&&e<=7929||e>=7936&&e<=7957||e>=7960&&e<=7965||e>=7968&&e<=8005||e>=8008&&e<=8013||e>=8016&&e<=8023||e==8025||e==8027||e==8029||e>=8031&&e<=8061||e>=8064&&e<=8116||e>=8118&&e<=8124||e==8126||e>=8130&&e<=8132||e>=8134&&e<=8140||e>=8144&&e<=8147||e>=8150&&e<=8155||e>=8160&&e<=8172||e>=8178&&e<=8180||e>=8182&&e<=8188||e==8486||e>=8490&&e<=8491||e==8494||e>=8576&&e<=8578||e>=12353&&e<=12436||e>=12449&&e<=12538||e>=12549&&e<=12588||e>=44032&&e<=55203||e>=19968&&e<=40869||e==12295||e>=12321&&e<=12329},Ie.isNCNameChar=function(e){return e>=48&&e<=57||e>=1632&&e<=1641||e>=1776&&e<=1785||e>=2406&&e<=2415||e>=2534&&e<=2543||e>=2662&&e<=2671||e>=2790&&e<=2799||e>=2918&&e<=2927||e>=3047&&e<=3055||e>=3174&&e<=3183||e>=3302&&e<=3311||e>=3430&&e<=3439||e>=3664&&e<=3673||e>=3792&&e<=3801||e>=3872&&e<=3881||e==46||e==45||e==95||Ie.isLetter(e)||e>=768&&e<=837||e>=864&&e<=865||e>=1155&&e<=1158||e>=1425&&e<=1441||e>=1443&&e<=1465||e>=1467&&e<=1469||e==1471||e>=1473&&e<=1474||e==1476||e>=1611&&e<=1618||e==1648||e>=1750&&e<=1756||e>=1757&&e<=1759||e>=1760&&e<=1764||e>=1767&&e<=1768||e>=1770&&e<=1773||e>=2305&&e<=2307||e==2364||e>=2366&&e<=2380||e==2381||e>=2385&&e<=2388||e>=2402&&e<=2403||e>=2433&&e<=2435||e==2492||e==2494||e==2495||e>=2496&&e<=2500||e>=2503&&e<=2504||e>=2507&&e<=2509||e==2519||e>=2530&&e<=2531||e==2562||e==2620||e==2622||e==2623||e>=2624&&e<=2626||e>=2631&&e<=2632||e>=2635&&e<=2637||e>=2672&&e<=2673||e>=2689&&e<=2691||e==2748||e>=2750&&e<=2757||e>=2759&&e<=2761||e>=2763&&e<=2765||e>=2817&&e<=2819||e==2876||e>=2878&&e<=2883||e>=2887&&e<=2888||e>=2891&&e<=2893||e>=2902&&e<=2903||e>=2946&&e<=2947||e>=3006&&e<=3010||e>=3014&&e<=3016||e>=3018&&e<=3021||e==3031||e>=3073&&e<=3075||e>=3134&&e<=3140||e>=3142&&e<=3144||e>=3146&&e<=3149||e>=3157&&e<=3158||e>=3202&&e<=3203||e>=3262&&e<=3268||e>=3270&&e<=3272||e>=3274&&e<=3277||e>=3285&&e<=3286||e>=3330&&e<=3331||e>=3390&&e<=3395||e>=3398&&e<=3400||e>=3402&&e<=3405||e==3415||e==3633||e>=3636&&e<=3642||e>=3655&&e<=3662||e==3761||e>=3764&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=3864&&e<=3865||e==3893||e==3895||e==3897||e==3902||e==3903||e>=3953&&e<=3972||e>=3974&&e<=3979||e>=3984&&e<=3989||e==3991||e>=3993&&e<=4013||e>=4017&&e<=4023||e==4025||e>=8400&&e<=8412||e==8417||e>=12330&&e<=12335||e==12441||e==12442||e==183||e==720||e==721||e==903||e==1600||e==3654||e==3782||e==12293||e>=12337&&e<=12341||e>=12445&&e<=12446||e>=12540&&e<=12542},Ie.coalesceText=function(e){for(var n=e.firstChild;n!=null;n=n.nextSibling)if(n.nodeType==z.TEXT_NODE||n.nodeType==z.CDATA_SECTION_NODE){var N=n.nodeValue,L=n;for(n=n.nextSibling;n!=null&&(n.nodeType==z.TEXT_NODE||n.nodeType==z.CDATA_SECTION_NODE);){N+=n.nodeValue;var O=n;n=n.nextSibling,O.parentNode.removeChild(O)}if(L.nodeType==z.CDATA_SECTION_NODE){var d=L.parentNode;if(L.nextSibling==null)d.removeChild(L),d.appendChild(d.ownerDocument.createTextNode(N));else{var se=L.nextSibling;d.removeChild(L),d.insertBefore(d.ownerDocument.createTextNode(N),se)}}else L.nodeValue=N;if(n==null)break}else n.nodeType==z.ELEMENT_NODE&&Ie.coalesceText(n)},Ie.instance_of=function(e,n){for(;e!=null;){if(e.constructor===n)return!0;if(e===Object)return!1;e=e.constructor.superclass}return!1},Ie.getElementById=function(e,n){if(e.nodeType==z.ELEMENT_NODE&&(e.getAttribute("id")==n||e.getAttributeNS(null,"id")==n))return e;for(var N=e.firstChild;N!=null;N=N.nextSibling){var L=Ie.getElementById(N,n);if(L!=null)return L}return null};var qe=function(){function e(N,L){var O=L?": "+L.toString():"";switch(N){case n.INVALID_EXPRESSION_ERR:return"Invalid expression"+O;case n.TYPE_ERR:return"Type error"+O}return null}function n(N,L,O){var d=Error.call(this,e(N,L)||O);return d.code=N,d.exception=L,d}return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.superclass=Error,n.prototype.toString=function(){return this.message},n.fromMessage=function(N,L){return new n(null,L,N)},n.INVALID_EXPRESSION_ERR=51,n.TYPE_ERR=52,n}();We.prototype={},We.prototype.constructor=We,We.superclass=Object.prototype;function We(e,n,N){this.xpath=N.parse(e),this.context=new Ze,this.context.namespaceResolver=new Rt(n)}We.getOwnerDocument=function(e){return e.nodeType===z.DOCUMENT_NODE?e:e.ownerDocument},We.detectHtmlDom=function(e){if(!e)return!1;var n=We.getOwnerDocument(e);try{return n.implementation.hasFeature("HTML","2.0")}catch{return!0}},We.prototype.evaluate=function(e,n,N){this.context.expressionContextNode=e,this.context.caseInsensitive=We.detectHtmlDom(e);var L=this.xpath.evaluate(this.context);return new fe(L,n)},Rt.prototype={},Rt.prototype.constructor=Rt,Rt.superclass=Object.prototype;function Rt(e){this.xpathNSResolver=e}Rt.prototype.getNamespace=function(e,n){return this.xpathNSResolver==null?null:this.xpathNSResolver.lookupNamespaceURI(e)},st.prototype={},st.prototype.constructor=st,st.superclass=Object.prototype;function st(e){this.node=e,this.namespaceResolver=new je}st.prototype.lookupNamespaceURI=function(e){return this.namespaceResolver.getNamespace(e,this.node)},fe.prototype={},fe.prototype.constructor=fe,fe.superclass=Object.prototype;function fe(e,n){switch(n==fe.ANY_TYPE&&(e.constructor===F?n=fe.STRING_TYPE:e.constructor===V?n=fe.NUMBER_TYPE:e.constructor===ue?n=fe.BOOLEAN_TYPE:e.constructor===Ae&&(n=fe.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=n,n){case fe.NUMBER_TYPE:this.numberValue=e.numberValue();return;case fe.STRING_TYPE:this.stringValue=e.stringValue();return;case fe.BOOLEAN_TYPE:this.booleanValue=e.booleanValue();return;case fe.ANY_UNORDERED_NODE_TYPE:case fe.FIRST_ORDERED_NODE_TYPE:if(e.constructor===Ae){this.singleNodeValue=e.first();return}break;case fe.UNORDERED_NODE_ITERATOR_TYPE:case fe.ORDERED_NODE_ITERATOR_TYPE:if(e.constructor===Ae){this.invalidIteratorState=!1,this.nodes=e.toArray(),this.iteratorIndex=0;return}break;case fe.UNORDERED_NODE_SNAPSHOT_TYPE:case fe.ORDERED_NODE_SNAPSHOT_TYPE:if(e.constructor===Ae){this.nodes=e.toArray(),this.snapshotLength=this.nodes.length;return}break}throw new qe(qe.TYPE_ERR)}fe.prototype.iterateNext=function(){if(this.resultType!=fe.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=fe.ORDERED_NODE_ITERATOR_TYPE)throw new qe(qe.TYPE_ERR);return this.nodes[this.iteratorIndex++]},fe.prototype.snapshotItem=function(e){if(this.resultType!=fe.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=fe.ORDERED_NODE_SNAPSHOT_TYPE)throw new qe(qe.TYPE_ERR);return this.nodes[e]},fe.ANY_TYPE=0,fe.NUMBER_TYPE=1,fe.STRING_TYPE=2,fe.BOOLEAN_TYPE=3,fe.UNORDERED_NODE_ITERATOR_TYPE=4,fe.ORDERED_NODE_ITERATOR_TYPE=5,fe.UNORDERED_NODE_SNAPSHOT_TYPE=6,fe.ORDERED_NODE_SNAPSHOT_TYPE=7,fe.ANY_UNORDERED_NODE_TYPE=8,fe.FIRST_ORDERED_NODE_TYPE=9;function i(e,n){e.createExpression=function(N,L){try{return new We(N,L,n)}catch(O){throw new qe(qe.INVALID_EXPRESSION_ERR,O)}},e.createNSResolver=function(N){return new st(N)},e.evaluate=function(N,L,O,d,se){if(d<0||d>9)throw{code:0,toString:function(){return"Request type not supported"}};return e.createExpression(N,O,n).evaluate(L,d,se)}}try{var S=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(S=!1)}catch{}S&&i(document,new D)}catch{}i(r,new D),function(){var e=new D,n=new je,N=new Xe,L=new et;function O(re){return{getNamespace:function(ye,Je){var lt=re(ye,Je);return lt||n.getNamespace(ye,Je)}}}function d(re){return O(re.getNamespace.bind(re))}function se(re){return O(function(ye){return re[ye]})}function he(re){return re&&typeof re.getNamespace=="function"?d(re):typeof re=="function"?O(re):typeof re=="object"?se(re):n}function Me(re){if(re===null||typeof re>"u"||re instanceof F||re instanceof ue||re instanceof V||re instanceof Ae)return re;switch(typeof re){case"string":return new F(re);case"boolean":return new ue(re);case"number":return new V(re)}var ye=new Ae;return ye.addArray([].concat(re)),ye}function oe(re){return function(ye){var Je=Array.prototype.slice.call(arguments,1).map(function(AS){return AS.evaluate(ye)}),lt=re.apply(this,[].concat(ye,Je));return Me(lt)}}function Se(re){return{getFunction:function(ye,Je){var lt=re(ye,Je);return lt?oe(lt):N.getFunction(ye,Je)}}}function Ke(re){return Se(re.getFunction.bind(re))}function ze(re){return Se(function(ye){return re[ye]})}function He(re){return re&&typeof re.getFunction=="function"?Ke(re):typeof re=="function"?Se(re):typeof re=="object"?ze(re):N}function Tt(re){return{getVariable:function(ye,Je){var lt=re(ye,Je);return Me(lt)}}}function tt(re){if(re){if(typeof re.getVariable=="function")return Tt(re.getVariable.bind(re));if(typeof re=="function")return Tt(re);if(typeof re=="object")return Tt(function(ye){return re[ye]})}return L}function ut(re,ye,Je){re in Je&&(ye[re]=Je[re])}function sS(re){var ye=new Ze;return re?(ye.namespaceResolver=he(re.namespaces),ye.functionResolver=He(re.functions),ye.variableResolver=tt(re.variables),ye.expressionContextNode=re.node,ut("allowAnyNamespaceForNoPrefix",ye,re),ut("isHtml",ye,re)):ye.namespaceResolver=n,ye}function TS(re,ye){var Je=sS(ye);return re.evaluate(Je)}var oS={evaluate:function(re){return TS(this.expression,re)},evaluateNumber:function(re){return this.evaluate(re).numberValue()},evaluateString:function(re){return this.evaluate(re).stringValue()},evaluateBoolean:function(re){return this.evaluate(re).booleanValue()},evaluateNodeSet:function(re){return this.evaluate(re).nodeset()},select:function(re){return this.evaluateNodeSet(re).toArray()},select1:function(re){return this.select(re)[0]}};function aS(re){var ye=e.parse(re);return Object.create(oS,{expression:{value:ye}})}r.parse=aS}(),Le(r,{XPath:ie,XPathParser:D,XPathResult:fe,Step:$,PathExpr:f,NodeTest:_,LocationPath:Ne,OrOperation:ae,AndOperation:ce,BarOperation:k,EqualsOperation:pe,NotEqualOperation:x,LessThanOperation:Z,GreaterThanOperation:Oe,LessThanOrEqualOperation:me,GreaterThanOrEqualOperation:Te,PlusOperation:v,MinusOperation:p,MultiplyOperation:m,DivOperation:P,ModOperation:B,UnaryMinusOperation:X,FunctionCall:Be,VariableReference:ne,XPathContext:Ze,XNodeSet:Ae,XBoolean:ue,XString:F,XNumber:V,NamespaceResolver:je,FunctionResolver:Xe,VariableResolver:et,Utilities:Ie}),r.select=function(e,n,N){return r.selectWithResolver(e,n,null,N)},r.useNamespaces=function(e){var n={mappings:e||{},lookupNamespaceURI:function(N){return this.mappings[N]}};return function(N,L,O){return r.selectWithResolver(N,L,n,O)}},r.selectWithResolver=function(e,n,N,L){var O=new We(e,N,new D),d=fe.ANY_TYPE,se=O.evaluate(n,d,null);return se.resultType==fe.STRING_TYPE?se=se.stringValue:se.resultType==fe.NUMBER_TYPE?se=se.numberValue:se.resultType==fe.BOOLEAN_TYPE?se=se.booleanValue:(se=se.nodes,L&&(se=se[0])),se},r.select1=function(e,n){return r.select(e,n,!0)};var c=function(e){return Array.isArray(e)&&e.every(R)},G=function(e){return function(n){return R(n)&&n.nodeType===e}};Le(r,{isNodeLike:R,isArrayOfNodes:c,isElement:G(z.ELEMENT_NODE),isAttribute:G(z.ATTRIBUTE_NODE),isTextNode:G(z.TEXT_NODE),isCDATASection:G(z.CDATA_SECTION_NODE),isProcessingInstruction:G(z.PROCESSING_INSTRUCTION_NODE),isComment:G(z.COMMENT_NODE),isDocumentNode:G(z.DOCUMENT_NODE),isDocumentTypeNode:G(z.DOCUMENT_TYPE_NODE),isDocumentFragment:G(z.DOCUMENT_FRAGMENT_NODE)})})(t)}(qt)),qt}var xn=bn();const Yn=mE(xn);var Ut={},at={},Ct={},gE;function Ht(){if(gE)return Ct;gE=1;function E(a,R,C){if(C===void 0&&(C=Array.prototype),a&&typeof C.find=="function")return C.find.call(a,R);for(var I=0;I<a.length;I++)if(Object.prototype.hasOwnProperty.call(a,I)){var A=a[I];if(R.call(void 0,A,I,a))return A}}function t(a,R){return R===void 0&&(R=Object),R&&typeof R.freeze=="function"?R.freeze(a):a}function r(a,R){if(a===null||typeof a!="object")throw new TypeError("target is not an object");for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(a[C]=R[C]);return a}var s=t({HTML:"text/html",isHTML:function(a){return a===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),T=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===T.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Ct.assign=r,Ct.find=E,Ct.freeze=t,Ct.MIME_TYPE=s,Ct.NAMESPACE=T,Ct}var yE;function GE(){if(yE)return at;yE=1;var E=Ht(),t=E.find,r=E.NAMESPACE;function s(i){return i!==""}function T(i){return i?i.split(/[\t\n\f\r ]+/).filter(s):[]}function a(i,S){return i.hasOwnProperty(S)||(i[S]=!0),i}function R(i){if(!i)return[];var S=T(i);return Object.keys(S.reduce(a,{}))}function C(i){return function(S){return i&&i.indexOf(S)!==-1}}function I(i,S){for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(S[c]=i[c])}function A(i,S){var c=i.prototype;if(!(c instanceof S)){let G=function(){};G.prototype=S.prototype,G=new G,I(c,G),i.prototype=c=G}c.constructor!=i&&(typeof i!="function"&&console.error("unknown Class:"+i),c.constructor=i)}var u={},l=u.ELEMENT_NODE=1,h=u.ATTRIBUTE_NODE=2,M=u.TEXT_NODE=3,b=u.CDATA_SECTION_NODE=4,J=u.ENTITY_REFERENCE_NODE=5,U=u.ENTITY_NODE=6,ee=u.PROCESSING_INSTRUCTION_NODE=7,te=u.COMMENT_NODE=8,q=u.DOCUMENT_NODE=9,_e=u.DOCUMENT_TYPE_NODE=10,Le=u.DOCUMENT_FRAGMENT_NODE=11,z=u.NOTATION_NODE=12,D={},ie={};D.INDEX_SIZE_ERR=(ie[1]="Index size error",1),D.DOMSTRING_SIZE_ERR=(ie[2]="DOMString size error",2);var H=D.HIERARCHY_REQUEST_ERR=(ie[3]="Hierarchy request error",3);D.WRONG_DOCUMENT_ERR=(ie[4]="Wrong document",4),D.INVALID_CHARACTER_ERR=(ie[5]="Invalid character",5),D.NO_DATA_ALLOWED_ERR=(ie[6]="No data allowed",6),D.NO_MODIFICATION_ALLOWED_ERR=(ie[7]="No modification allowed",7);var g=D.NOT_FOUND_ERR=(ie[8]="Not found",8);D.NOT_SUPPORTED_ERR=(ie[9]="Not supported",9);var Q=D.INUSE_ATTRIBUTE_ERR=(ie[10]="Attribute in use",10);D.INVALID_STATE_ERR=(ie[11]="Invalid state",11),D.SYNTAX_ERR=(ie[12]="Syntax error",12),D.INVALID_MODIFICATION_ERR=(ie[13]="Invalid modification",13),D.NAMESPACE_ERR=(ie[14]="Invalid namespace",14),D.INVALID_ACCESS_ERR=(ie[15]="Invalid access",15);function X(i,S){if(S instanceof Error)var c=S;else c=this,Error.call(this,ie[i]),this.message=ie[i],Error.captureStackTrace&&Error.captureStackTrace(this,X);return c.code=i,S&&(this.message=this.message+": "+S),c}X.prototype=Error.prototype,I(D,X);function K(){}K.prototype={length:0,item:function(i){return i>=0&&i<this.length?this[i]:null},toString:function(i,S){for(var c=[],G=0;G<this.length;G++)We(this[G],c,i,S);return c.join("")},filter:function(i){return Array.prototype.filter.call(this,i)},indexOf:function(i){return Array.prototype.indexOf.call(this,i)}};function ae(i,S){this._node=i,this._refresh=S,ce(this)}function ce(i){var S=i._node._inc||i._node.ownerDocument._inc;if(i._inc!==S){var c=i._refresh(i._node);if(fe(i,"length",c.length),!i.$$length||c.length<i.$$length)for(var G=c.length;G in i;G++)Object.prototype.hasOwnProperty.call(i,G)&&delete i[G];I(c,i),i._inc=S}}ae.prototype.item=function(i){return ce(this),this[i]||null},A(ae,K);function pe(){}function x(i,S){for(var c=i.length;c--;)if(i[c]===S)return c}function Z(i,S,c,G){if(G?S[x(S,G)]=c:S[S.length++]=c,i){c.ownerElement=i;var e=i.ownerDocument;e&&(G&&B(e,i,G),P(e,i,c))}}function Oe(i,S,c){var G=x(S,c);if(G>=0){for(var e=S.length-1;G<e;)S[G]=S[++G];if(S.length=e,i){var n=i.ownerDocument;n&&(B(n,i,c),c.ownerElement=null)}}else throw new X(g,new Error(i.tagName+"@"+c))}pe.prototype={length:0,item:K.prototype.item,getNamedItem:function(i){for(var S=this.length;S--;){var c=this[S];if(c.nodeName==i)return c}},setNamedItem:function(i){var S=i.ownerElement;if(S&&S!=this._ownerElement)throw new X(Q);var c=this.getNamedItem(i.nodeName);return Z(this._ownerElement,this,i,c),c},setNamedItemNS:function(i){var S=i.ownerElement,c;if(S&&S!=this._ownerElement)throw new X(Q);return c=this.getNamedItemNS(i.namespaceURI,i.localName),Z(this._ownerElement,this,i,c),c},removeNamedItem:function(i){var S=this.getNamedItem(i);return Oe(this._ownerElement,this,S),S},removeNamedItemNS:function(i,S){var c=this.getNamedItemNS(i,S);return Oe(this._ownerElement,this,c),c},getNamedItemNS:function(i,S){for(var c=this.length;c--;){var G=this[c];if(G.localName==S&&G.namespaceURI==i)return G}return null}};function me(){}me.prototype={hasFeature:function(i,S){return!0},createDocument:function(i,S,c){var G=new m;if(G.implementation=this,G.childNodes=new K,G.doctype=c||null,c&&G.appendChild(c),S){var e=G.createElementNS(i,S);G.appendChild(e)}return G},createDocumentType:function(i,S,c){var G=new Ae;return G.name=i,G.nodeName=i,G.publicId=S||"",G.systemId=c||"",G}};function Te(){}Te.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(i,S){return Be(this,i,S)},replaceChild:function(i,S){Be(this,i,S,ne),S&&this.removeChild(S)},removeChild:function(i){return f(this,i)},appendChild:function(i){return this.insertBefore(i,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(i){return st(this.ownerDocument||this,this,i)},normalize:function(){for(var i=this.firstChild;i;){var S=i.nextSibling;S&&S.nodeType==M&&i.nodeType==M?(this.removeChild(S),i.appendData(S.data)):(i.normalize(),i=S)}},isSupported:function(i,S){return this.ownerDocument.implementation.hasFeature(i,S)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(i){for(var S=this;S;){var c=S._nsMap;if(c){for(var G in c)if(Object.prototype.hasOwnProperty.call(c,G)&&c[G]===i)return G}S=S.nodeType==h?S.ownerDocument:S.parentNode}return null},lookupNamespaceURI:function(i){for(var S=this;S;){var c=S._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,i))return c[i];S=S.nodeType==h?S.ownerDocument:S.parentNode}return null},isDefaultNamespace:function(i){var S=this.lookupPrefix(i);return S==null}};function v(i){return i=="<"&&"&lt;"||i==">"&&"&gt;"||i=="&"&&"&amp;"||i=='"'&&"&quot;"||"&#"+i.charCodeAt()+";"}I(u,Te),I(u,Te.prototype);function p(i,S){if(S(i))return!0;if(i=i.firstChild)do if(p(i,S))return!0;while(i=i.nextSibling)}function m(){this.ownerDocument=this}function P(i,S,c){i&&i._inc++;var G=c.namespaceURI;G===r.XMLNS&&(S._nsMap[c.prefix?c.localName:""]=c.value)}function B(i,S,c,G){i&&i._inc++;var e=c.namespaceURI;e===r.XMLNS&&delete S._nsMap[c.prefix?c.localName:""]}function k(i,S,c){if(i&&i._inc){i._inc++;var G=S.childNodes;if(c)G[G.length++]=c;else{for(var e=S.firstChild,n=0;e;)G[n++]=e,e=e.nextSibling;G.length=n,delete G[G.length]}}}function f(i,S){var c=S.previousSibling,G=S.nextSibling;return c?c.nextSibling=G:i.firstChild=G,G?G.previousSibling=c:i.lastChild=c,S.parentNode=null,S.previousSibling=null,S.nextSibling=null,k(i.ownerDocument,i),S}function j(i){return i&&(i.nodeType===Te.DOCUMENT_NODE||i.nodeType===Te.DOCUMENT_FRAGMENT_NODE||i.nodeType===Te.ELEMENT_NODE)}function Ee(i){return i&&(le(i)||Ue(i)||Re(i)||i.nodeType===Te.DOCUMENT_FRAGMENT_NODE||i.nodeType===Te.COMMENT_NODE||i.nodeType===Te.PROCESSING_INSTRUCTION_NODE)}function Re(i){return i&&i.nodeType===Te.DOCUMENT_TYPE_NODE}function le(i){return i&&i.nodeType===Te.ELEMENT_NODE}function Ue(i){return i&&i.nodeType===Te.TEXT_NODE}function Ne(i,S){var c=i.childNodes||[];if(t(c,le)||Re(S))return!1;var G=t(c,Re);return!(S&&G&&c.indexOf(G)>c.indexOf(S))}function $(i,S){var c=i.childNodes||[];function G(n){return le(n)&&n!==S}if(t(c,G))return!1;var e=t(c,Re);return!(S&&e&&c.indexOf(e)>c.indexOf(S))}function ge(i,S,c){if(!j(i))throw new X(H,"Unexpected parent node type "+i.nodeType);if(c&&c.parentNode!==i)throw new X(g,"child not in parent");if(!Ee(S)||Re(S)&&i.nodeType!==Te.DOCUMENT_NODE)throw new X(H,"Unexpected node type "+S.nodeType+" for parent node type "+i.nodeType)}function _(i,S,c){var G=i.childNodes||[],e=S.childNodes||[];if(S.nodeType===Te.DOCUMENT_FRAGMENT_NODE){var n=e.filter(le);if(n.length>1||t(e,Ue))throw new X(H,"More than one element or text in fragment");if(n.length===1&&!Ne(i,c))throw new X(H,"Element in fragment can not be inserted before doctype")}if(le(S)&&!Ne(i,c))throw new X(H,"Only one element can be added and only after doctype");if(Re(S)){if(t(G,Re))throw new X(H,"Only one doctype is allowed");var N=t(G,le);if(c&&G.indexOf(N)<G.indexOf(c))throw new X(H,"Doctype can only be inserted before an element");if(!c&&N)throw new X(H,"Doctype can not be appended since element is present")}}function ne(i,S,c){var G=i.childNodes||[],e=S.childNodes||[];if(S.nodeType===Te.DOCUMENT_FRAGMENT_NODE){var n=e.filter(le);if(n.length>1||t(e,Ue))throw new X(H,"More than one element or text in fragment");if(n.length===1&&!$(i,c))throw new X(H,"Element in fragment can not be inserted before doctype")}if(le(S)&&!$(i,c))throw new X(H,"Only one element can be added and only after doctype");if(Re(S)){if(t(G,function(O){return Re(O)&&O!==c}))throw new X(H,"Only one doctype is allowed");var N=t(G,le);if(c&&G.indexOf(N)<G.indexOf(c))throw new X(H,"Doctype can only be inserted before an element")}}function Be(i,S,c,G){ge(i,S,c),i.nodeType===Te.DOCUMENT_NODE&&(G||_)(i,S,c);var e=S.parentNode;if(e&&e.removeChild(S),S.nodeType===Le){var n=S.firstChild;if(n==null)return S;var N=S.lastChild}else n=N=S;var L=c?c.previousSibling:i.lastChild;n.previousSibling=L,N.nextSibling=c,L?L.nextSibling=n:i.firstChild=n,c==null?i.lastChild=N:c.previousSibling=N;do{n.parentNode=i;var O=i.ownerDocument||i;de(n,O)}while(n!==N&&(n=n.nextSibling));return k(i.ownerDocument||i,i),S.nodeType==Le&&(S.firstChild=S.lastChild=null),S}function de(i,S){if(i.ownerDocument!==S){if(i.ownerDocument=S,i.nodeType===l&&i.attributes)for(var c=0;c<i.attributes.length;c++){var G=i.attributes.item(c);G&&(G.ownerDocument=S)}for(var e=i.firstChild;e;)de(e,S),e=e.nextSibling}}function F(i,S){S.parentNode&&S.parentNode.removeChild(S),S.parentNode=i,S.previousSibling=i.lastChild,S.nextSibling=null,S.previousSibling?S.previousSibling.nextSibling=S:i.firstChild=S,i.lastChild=S,k(i.ownerDocument,i,S);var c=i.ownerDocument||i;return de(S,c),S}m.prototype={nodeName:"#document",nodeType:q,doctype:null,documentElement:null,_inc:1,insertBefore:function(i,S){if(i.nodeType==Le){for(var c=i.firstChild;c;){var G=c.nextSibling;this.insertBefore(c,S),c=G}return i}return Be(this,i,S),de(i,this),this.documentElement===null&&i.nodeType===l&&(this.documentElement=i),i},removeChild:function(i){return this.documentElement==i&&(this.documentElement=null),f(this,i)},replaceChild:function(i,S){Be(this,i,S,ne),de(i,this),S&&this.removeChild(S),le(i)&&(this.documentElement=i)},importNode:function(i,S){return Rt(this,i,S)},getElementById:function(i){var S=null;return p(this.documentElement,function(c){if(c.nodeType==l&&c.getAttribute("id")==i)return S=c,!0}),S},getElementsByClassName:function(i){var S=R(i);return new ae(this,function(c){var G=[];return S.length>0&&p(c.documentElement,function(e){if(e!==c&&e.nodeType===l){var n=e.getAttribute("class");if(n){var N=i===n;if(!N){var L=R(n);N=S.every(C(L))}N&&G.push(e)}}}),G})},createElement:function(i){var S=new V;S.ownerDocument=this,S.nodeName=i,S.tagName=i,S.localName=i,S.childNodes=new K;var c=S.attributes=new pe;return c._ownerElement=S,S},createDocumentFragment:function(){var i=new Xe;return i.ownerDocument=this,i.childNodes=new K,i},createTextNode:function(i){var S=new ue;return S.ownerDocument=this,S.appendData(i),S},createComment:function(i){var S=new we;return S.ownerDocument=this,S.appendData(i),S},createCDATASection:function(i){var S=new Gt;return S.ownerDocument=this,S.appendData(i),S},createProcessingInstruction:function(i,S){var c=new je;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=i,c.nodeValue=c.data=S,c},createAttribute:function(i){var S=new ve;return S.ownerDocument=this,S.name=i,S.nodeName=i,S.localName=i,S.specified=!0,S},createEntityReference:function(i){var S=new et;return S.ownerDocument=this,S.nodeName=i,S},createElementNS:function(i,S){var c=new V,G=S.split(":"),e=c.attributes=new pe;return c.childNodes=new K,c.ownerDocument=this,c.nodeName=S,c.tagName=S,c.namespaceURI=i,G.length==2?(c.prefix=G[0],c.localName=G[1]):c.localName=S,e._ownerElement=c,c},createAttributeNS:function(i,S){var c=new ve,G=S.split(":");return c.ownerDocument=this,c.nodeName=S,c.name=S,c.namespaceURI=i,c.specified=!0,G.length==2?(c.prefix=G[0],c.localName=G[1]):c.localName=S,c}},A(m,Te);function V(){this._nsMap={}}V.prototype={nodeType:l,hasAttribute:function(i){return this.getAttributeNode(i)!=null},getAttribute:function(i){var S=this.getAttributeNode(i);return S&&S.value||""},getAttributeNode:function(i){return this.attributes.getNamedItem(i)},setAttribute:function(i,S){var c=this.ownerDocument.createAttribute(i);c.value=c.nodeValue=""+S,this.setAttributeNode(c)},removeAttribute:function(i){var S=this.getAttributeNode(i);S&&this.removeAttributeNode(S)},appendChild:function(i){return i.nodeType===Le?this.insertBefore(i,null):F(this,i)},setAttributeNode:function(i){return this.attributes.setNamedItem(i)},setAttributeNodeNS:function(i){return this.attributes.setNamedItemNS(i)},removeAttributeNode:function(i){return this.attributes.removeNamedItem(i.nodeName)},removeAttributeNS:function(i,S){var c=this.getAttributeNodeNS(i,S);c&&this.removeAttributeNode(c)},hasAttributeNS:function(i,S){return this.getAttributeNodeNS(i,S)!=null},getAttributeNS:function(i,S){var c=this.getAttributeNodeNS(i,S);return c&&c.value||""},setAttributeNS:function(i,S,c){var G=this.ownerDocument.createAttributeNS(i,S);G.value=G.nodeValue=""+c,this.setAttributeNode(G)},getAttributeNodeNS:function(i,S){return this.attributes.getNamedItemNS(i,S)},getElementsByTagName:function(i){return new ae(this,function(S){var c=[];return p(S,function(G){G!==S&&G.nodeType==l&&(i==="*"||G.tagName==i)&&c.push(G)}),c})},getElementsByTagNameNS:function(i,S){return new ae(this,function(c){var G=[];return p(c,function(e){e!==c&&e.nodeType===l&&(i==="*"||e.namespaceURI===i)&&(S==="*"||e.localName==S)&&G.push(e)}),G})}},m.prototype.getElementsByTagName=V.prototype.getElementsByTagName,m.prototype.getElementsByTagNameNS=V.prototype.getElementsByTagNameNS,A(V,Te);function ve(){}ve.prototype.nodeType=h,A(ve,Te);function Qe(){}Qe.prototype={data:"",substringData:function(i,S){return this.data.substring(i,i+S)},appendData:function(i){i=this.data+i,this.nodeValue=this.data=i,this.length=i.length},insertData:function(i,S){this.replaceData(i,0,S)},appendChild:function(i){throw new Error(ie[H])},deleteData:function(i,S){this.replaceData(i,S,"")},replaceData:function(i,S,c){var G=this.data.substring(0,i),e=this.data.substring(i+S);c=G+c+e,this.nodeValue=this.data=c,this.length=c.length}},A(Qe,Te);function ue(){}ue.prototype={nodeName:"#text",nodeType:M,splitText:function(i){var S=this.data,c=S.substring(i);S=S.substring(0,i),this.data=this.nodeValue=S,this.length=S.length;var G=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(G,this.nextSibling),G}},A(ue,Qe);function we(){}we.prototype={nodeName:"#comment",nodeType:te},A(we,Qe);function Gt(){}Gt.prototype={nodeName:"#cdata-section",nodeType:b},A(Gt,Qe);function Ae(){}Ae.prototype.nodeType=_e,A(Ae,Te);function nt(){}nt.prototype.nodeType=z,A(nt,Te);function Ze(){}Ze.prototype.nodeType=U,A(Ze,Te);function et(){}et.prototype.nodeType=J,A(et,Te);function Xe(){}Xe.prototype.nodeName="#document-fragment",Xe.prototype.nodeType=Le,A(Xe,Te);function je(){}je.prototype.nodeType=ee,A(je,Te);function De(){}De.prototype.serializeToString=function(i,S,c){return Ie.call(i,S,c)},Te.prototype.toString=Ie;function Ie(i,S){var c=[],G=this.nodeType==9&&this.documentElement||this,e=G.prefix,n=G.namespaceURI;if(n&&e==null){var e=G.lookupPrefix(n);if(e==null)var N=[{namespace:n,prefix:null}]}return We(this,c,i,S,N),c.join("")}function Ft(i,S,c){var G=i.prefix||"",e=i.namespaceURI;if(!e||G==="xml"&&e===r.XML||e===r.XMLNS)return!1;for(var n=c.length;n--;){var N=c[n];if(N.prefix===G)return N.namespace!==e}return!0}function qe(i,S,c){i.push(" ",S,'="',c.replace(/[<>&"\t\n\r]/g,v),'"')}function We(i,S,c,G,e){if(e||(e=[]),G)if(i=G(i),i){if(typeof i=="string"){S.push(i);return}}else return;switch(i.nodeType){case l:var n=i.attributes,N=n.length,He=i.firstChild,L=i.tagName;c=r.isHTML(i.namespaceURI)||c;var O=L;if(!c&&!i.prefix&&i.namespaceURI){for(var d,se=0;se<n.length;se++)if(n.item(se).name==="xmlns"){d=n.item(se).value;break}if(!d)for(var he=e.length-1;he>=0;he--){var Me=e[he];if(Me.prefix===""&&Me.namespace===i.namespaceURI){d=Me.namespace;break}}if(d!==i.namespaceURI)for(var he=e.length-1;he>=0;he--){var Me=e[he];if(Me.namespace===i.namespaceURI){Me.prefix&&(O=Me.prefix+":"+L);break}}}S.push("<",O);for(var oe=0;oe<N;oe++){var Se=n.item(oe);Se.prefix=="xmlns"?e.push({prefix:Se.localName,namespace:Se.value}):Se.nodeName=="xmlns"&&e.push({prefix:"",namespace:Se.value})}for(var oe=0;oe<N;oe++){var Se=n.item(oe);if(Ft(Se,c,e)){var Ke=Se.prefix||"",ze=Se.namespaceURI;qe(S,Ke?"xmlns:"+Ke:"xmlns",ze),e.push({prefix:Ke,namespace:ze})}We(Se,S,c,G,e)}if(L===O&&Ft(i,c,e)){var Ke=i.prefix||"",ze=i.namespaceURI;qe(S,Ke?"xmlns:"+Ke:"xmlns",ze),e.push({prefix:Ke,namespace:ze})}if(He||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(L)){if(S.push(">"),c&&/^script$/i.test(L))for(;He;)He.data?S.push(He.data):We(He,S,c,G,e.slice()),He=He.nextSibling;else for(;He;)We(He,S,c,G,e.slice()),He=He.nextSibling;S.push("</",O,">")}else S.push("/>");return;case q:case Le:for(var He=i.firstChild;He;)We(He,S,c,G,e.slice()),He=He.nextSibling;return;case h:return qe(S,i.name,i.value);case M:return S.push(i.data.replace(/[<&>]/g,v));case b:return S.push("<![CDATA[",i.data,"]]>");case te:return S.push("<!--",i.data,"-->");case _e:var Tt=i.publicId,tt=i.systemId;if(S.push("<!DOCTYPE ",i.name),Tt)S.push(" PUBLIC ",Tt),tt&&tt!="."&&S.push(" ",tt),S.push(">");else if(tt&&tt!=".")S.push(" SYSTEM ",tt,">");else{var ut=i.internalSubset;ut&&S.push(" [",ut,"]"),S.push(">")}return;case ee:return S.push("<?",i.target," ",i.data,"?>");case J:return S.push("&",i.nodeName,";");default:S.push("??",i.nodeName)}}function Rt(i,S,c){var G;switch(S.nodeType){case l:G=S.cloneNode(!1),G.ownerDocument=i;case Le:break;case h:c=!0;break}if(G||(G=S.cloneNode(!1)),G.ownerDocument=i,G.parentNode=null,c)for(var e=S.firstChild;e;)G.appendChild(Rt(i,e,c)),e=e.nextSibling;return G}function st(i,S,c){var G=new S.constructor;for(var e in S)if(Object.prototype.hasOwnProperty.call(S,e)){var n=S[e];typeof n!="object"&&n!=G[e]&&(G[e]=n)}switch(S.childNodes&&(G.childNodes=new K),G.ownerDocument=i,G.nodeType){case l:var N=S.attributes,L=G.attributes=new pe,O=N.length;L._ownerElement=G;for(var d=0;d<O;d++)G.setAttributeNode(st(i,N.item(d),!0));break;case h:c=!0}if(c)for(var se=S.firstChild;se;)G.appendChild(st(i,se,c)),se=se.nextSibling;return G}function fe(i,S,c){i[S]=c}try{if(Object.defineProperty){let i=function(S){switch(S.nodeType){case l:case Le:var c=[];for(S=S.firstChild;S;)S.nodeType!==7&&S.nodeType!==8&&c.push(i(S)),S=S.nextSibling;return c.join("");default:return S.nodeValue}};Object.defineProperty(ae.prototype,"length",{get:function(){return ce(this),this.$$length}}),Object.defineProperty(Te.prototype,"textContent",{get:function(){return i(this)},set:function(S){switch(this.nodeType){case l:case Le:for(;this.firstChild;)this.removeChild(this.firstChild);(S||String(S))&&this.appendChild(this.ownerDocument.createTextNode(S));break;default:this.data=S,this.value=S,this.nodeValue=S}}}),fe=function(S,c,G){S["$$"+c]=G}}}catch{}return at.DocumentType=Ae,at.DOMException=X,at.DOMImplementation=me,at.Element=V,at.Node=Te,at.NodeList=K,at.XMLSerializer=De,at}var mt={},Jt={},FE;function Vn(){return FE||(FE=1,function(E){var t=Ht().freeze;E.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),E.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
10
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),E.entityMap=E.HTML_ENTITIES}(Jt)),Jt}var bt={},HE;function vn(){if(HE)return bt;HE=1;var E=Ht().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+t.source+r.source+"*(?::"+t.source+r.source+"*)?$"),T=0,a=1,R=2,C=3,I=4,A=5,u=6,l=7;function h(H,g){this.message=H,this.locator=g,Error.captureStackTrace&&Error.captureStackTrace(this,h)}h.prototype=new Error,h.prototype.name=h.name;function M(){}M.prototype={parse:function(H,g,Q){var X=this.domBuilder;X.startDocument(),_e(g,g={}),b(H,g,Q,X,this.errorHandler),X.endDocument()}};function b(H,g,Q,X,K){function ae(F){if(F>65535){F-=65536;var V=55296+(F>>10),ve=56320+(F&1023);return String.fromCharCode(V,ve)}else return String.fromCharCode(F)}function ce(F){var V=F.slice(1,-1);return Object.hasOwnProperty.call(Q,V)?Q[V]:V.charAt(0)==="#"?ae(parseInt(V.substr(1).replace("x","0x"))):(K.error("entity not found:"+F),F)}function pe(F){if(F>m){var V=H.substring(m,F).replace(/&#?\w+;/g,ce);Te&&x(m),X.characters(V,0,F-m),m=F}}function x(F,V){for(;F>=Oe&&(V=me.exec(H));)Z=V.index,Oe=Z+V[0].length,Te.lineNumber++;Te.columnNumber=F-Z+1}for(var Z=0,Oe=0,me=/.*(?:\r\n?|\n)|.*$/g,Te=X.locator,v=[{currentNSMap:g}],p={},m=0;;){try{var P=H.indexOf("<",m);if(P<0){if(!H.substr(m).match(/^\s*$/)){var B=X.doc,k=B.createTextNode(H.substr(m));B.appendChild(k),X.currentElement=k}return}switch(P>m&&pe(P),H.charAt(P+1)){case"/":var ge=H.indexOf(">",P+3),f=H.substring(P+2,ge).replace(/[ \t\n\r]+$/g,""),j=v.pop();ge<0?(f=H.substring(P+2).replace(/[\s<].*/,""),K.error("end tag name: "+f+" is not complete:"+j.tagName),ge=P+1+f.length):f.match(/\s</)&&(f=f.replace(/[\s<].*/,""),K.error("end tag name: "+f+" maybe not complete"),ge=P+1+f.length);var Ee=j.localNSMap,Re=j.tagName==f,le=Re||j.tagName&&j.tagName.toLowerCase()==f.toLowerCase();if(le){if(X.endElement(j.uri,j.localName,f),Ee)for(var Ue in Ee)Object.prototype.hasOwnProperty.call(Ee,Ue)&&X.endPrefixMapping(Ue);Re||K.fatalError("end tag name: "+f+" is not match the current start tagName:"+j.tagName)}else v.push(j);ge++;break;case"?":Te&&x(P),ge=z(H,P,X);break;case"!":Te&&x(P),ge=Le(H,P,X,K);break;default:Te&&x(P);var Ne=new D,$=v[v.length-1].currentNSMap,ge=U(H,P,Ne,$,ce,K),_=Ne.length;if(!Ne.closed&&q(H,ge,Ne.tagName,p)&&(Ne.closed=!0,Q.nbsp||K.warning("unclosed xml attribute")),Te&&_){for(var ne=J(Te,{}),Be=0;Be<_;Be++){var de=Ne[Be];x(de.offset),de.locator=J(Te,{})}X.locator=ne,ee(Ne,X,$)&&v.push(Ne),X.locator=Te}else ee(Ne,X,$)&&v.push(Ne);E.isHTML(Ne.uri)&&!Ne.closed?ge=te(H,ge,Ne.tagName,ce,X):ge++}}catch(F){if(F instanceof h)throw F;K.error("element parse error: "+F),ge=-1}ge>m?m=ge:pe(Math.max(P,m)+1)}}function J(H,g){return g.lineNumber=H.lineNumber,g.columnNumber=H.columnNumber,g}function U(H,g,Q,X,K,ae){function ce(Te,v,p){Q.attributeNames.hasOwnProperty(Te)&&ae.fatalError("Attribute "+Te+" redefined"),Q.addValue(Te,v.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,K),p)}for(var pe,x,Z=++g,Oe=T;;){var me=H.charAt(Z);switch(me){case"=":if(Oe===a)pe=H.slice(g,Z),Oe=C;else if(Oe===R)Oe=C;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(Oe===C||Oe===a)if(Oe===a&&(ae.warning('attribute value must after "="'),pe=H.slice(g,Z)),g=Z+1,Z=H.indexOf(me,g),Z>0)x=H.slice(g,Z),ce(pe,x,g-1),Oe=A;else throw new Error("attribute value no end '"+me+"' match");else if(Oe==I)x=H.slice(g,Z),ce(pe,x,g),ae.warning('attribute "'+pe+'" missed start quot('+me+")!!"),g=Z+1,Oe=A;else throw new Error('attribute value must after "="');break;case"/":switch(Oe){case T:Q.setTagName(H.slice(g,Z));case A:case u:case l:Oe=l,Q.closed=!0;case I:case a:break;case R:Q.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ae.error("unexpected end of input"),Oe==T&&Q.setTagName(H.slice(g,Z)),Z;case">":switch(Oe){case T:Q.setTagName(H.slice(g,Z));case A:case u:case l:break;case I:case a:x=H.slice(g,Z),x.slice(-1)==="/"&&(Q.closed=!0,x=x.slice(0,-1));case R:Oe===R&&(x=pe),Oe==I?(ae.warning('attribute "'+x+'" missed quot(")!'),ce(pe,x,g)):((!E.isHTML(X[""])||!x.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+x+'" missed value!! "'+x+'" instead!!'),ce(x,x,g));break;case C:throw new Error("attribute value missed!!")}return Z;case"€":me=" ";default:if(me<=" ")switch(Oe){case T:Q.setTagName(H.slice(g,Z)),Oe=u;break;case a:pe=H.slice(g,Z),Oe=R;break;case I:var x=H.slice(g,Z);ae.warning('attribute "'+x+'" missed quot(")!!'),ce(pe,x,g);case A:Oe=u;break}else switch(Oe){case R:Q.tagName,(!E.isHTML(X[""])||!pe.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+pe+'" missed value!! "'+pe+'" instead2!!'),ce(pe,pe,g),g=Z,Oe=a;break;case A:ae.warning('attribute space is required"'+pe+'"!!');case u:Oe=a,g=Z;break;case C:Oe=I,g=Z;break;case l:throw new Error("elements closed character '/' and '>' must be connected to")}}Z++}}function ee(H,g,Q){for(var X=H.tagName,K=null,me=H.length;me--;){var ae=H[me],ce=ae.qName,pe=ae.value,Te=ce.indexOf(":");if(Te>0)var x=ae.prefix=ce.slice(0,Te),Z=ce.slice(Te+1),Oe=x==="xmlns"&&Z;else Z=ce,x=null,Oe=ce==="xmlns"&&"";ae.localName=Z,Oe!==!1&&(K==null&&(K={},_e(Q,Q={})),Q[Oe]=K[Oe]=pe,ae.uri=E.XMLNS,g.startPrefixMapping(Oe,pe))}for(var me=H.length;me--;){ae=H[me];var x=ae.prefix;x&&(x==="xml"&&(ae.uri=E.XML),x!=="xmlns"&&(ae.uri=Q[x||""]))}var Te=X.indexOf(":");Te>0?(x=H.prefix=X.slice(0,Te),Z=H.localName=X.slice(Te+1)):(x=null,Z=H.localName=X);var v=H.uri=Q[x||""];if(g.startElement(v,Z,X,H),H.closed){if(g.endElement(v,Z,X),K)for(x in K)Object.prototype.hasOwnProperty.call(K,x)&&g.endPrefixMapping(x)}else return H.currentNSMap=Q,H.localNSMap=K,!0}function te(H,g,Q,X,K){if(/^(?:script|textarea)$/i.test(Q)){var ae=H.indexOf("</"+Q+">",g),ce=H.substring(g+1,ae);if(/[&<]/.test(ce))return/^script$/i.test(Q)?(K.characters(ce,0,ce.length),ae):(ce=ce.replace(/&#?\w+;/g,X),K.characters(ce,0,ce.length),ae)}return g+1}function q(H,g,Q,X){var K=X[Q];return K==null&&(K=H.lastIndexOf("</"+Q+">"),K<g&&(K=H.lastIndexOf("</"+Q)),X[Q]=K),K<g}function _e(H,g){for(var Q in H)Object.prototype.hasOwnProperty.call(H,Q)&&(g[Q]=H[Q])}function Le(H,g,Q,X){var K=H.charAt(g+2);switch(K){case"-":if(H.charAt(g+3)==="-"){var ae=H.indexOf("-->",g+4);return ae>g?(Q.comment(H,g+4,ae-g-4),ae+3):(X.error("Unclosed comment"),-1)}else return-1;default:if(H.substr(g+3,6)=="CDATA["){var ae=H.indexOf("]]>",g+9);return Q.startCDATA(),Q.characters(H,g+9,ae-g-9),Q.endCDATA(),ae+3}var ce=ie(H,g),pe=ce.length;if(pe>1&&/!doctype/i.test(ce[0][0])){var x=ce[1][0],Z=!1,Oe=!1;pe>3&&(/^public$/i.test(ce[2][0])?(Z=ce[3][0],Oe=pe>4&&ce[4][0]):/^system$/i.test(ce[2][0])&&(Oe=ce[3][0]));var me=ce[pe-1];return Q.startDTD(x,Z,Oe),Q.endDTD(),me.index+me[0].length}}return-1}function z(H,g,Q){var X=H.indexOf("?>",g);if(X){var K=H.substring(g,X).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return K?(K[0].length,Q.processingInstruction(K[1],K[2]),X+2):-1}return-1}function D(){this.attributeNames={}}D.prototype={setTagName:function(H){if(!s.test(H))throw new Error("invalid tagName:"+H);this.tagName=H},addValue:function(H,g,Q){if(!s.test(H))throw new Error("invalid attribute:"+H);this.attributeNames[H]=this.length,this[this.length++]={qName:H,value:g,offset:Q}},length:0,getLocalName:function(H){return this[H].localName},getLocator:function(H){return this[H].locator},getQName:function(H){return this[H].qName},getURI:function(H){return this[H].uri},getValue:function(H){return this[H].value}};function ie(H,g){var Q,X=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(K.lastIndex=g,K.exec(H);Q=K.exec(H);)if(X.push(Q),Q[1])return X}return bt.XMLReader=M,bt.ParseError=h,bt}var bE;function wn(){if(bE)return mt;bE=1;var E=Ht(),t=GE(),r=Vn(),s=vn(),T=t.DOMImplementation,a=E.NAMESPACE,R=s.ParseError,C=s.XMLReader;function I(U){return U.replace(/\r[\n\u0085]/g,`
8
+ `)(P);m=q(a.value,f,B),I.value=m}else throw new Error(`Unsupported filter type: ${p.type}`);A.value="",o.nextTick(()=>{X()})}catch(m){A.value=m instanceof Error?m.message:"Filter execution error",I.value=null}},te=(p,m="root")=>{const P=new Map,B=(f,j)=>{if(f==null)return f;if(typeof f=="object"&&f.__protected_number__!==void 0){const Ee=parseFloat(f.__protected_number__);return P.set(Ee,j),Ee}if(Array.isArray(f)){const Ee=f.map((Re,le)=>{const Ue=`${j}[${le}]`,Ne=B(Re,Ue);return P.set(Ne,Ue),Ne});return P.set(Ee,j),Ee}if(typeof f=="object"){const Ee={};for(const Re in f)if(Object.prototype.hasOwnProperty.call(f,Re)){const le=j==="root"?Re:`${j}.${Re}`;Ee[Re]=B(f[Re],le)}return P.set(Ee,j),Ee}return f};return{proxyData:B(p,m),indexMap:P}},q=(p,m,P)=>{if(m===null||typeof m!="object")return m;if(Array.isArray(m))return m.map(f=>{const j=P.get(f);if(j){const Ee=_e(p,j);if(Ee!==void 0)return Ee}return q(p,f,P)});const B=P.get(m);if(B){const f=_e(p,B);if(f!==void 0)return f}const k={};for(const f in m)Object.prototype.hasOwnProperty.call(m,f)&&(k[f]=q(p,m[f],P));return k},_e=(p,m)=>{if(m==="root")return p;const P=[];let B=m.replace(/^root\.?/,"");const k=/([^\[\].]+)|\[(\d+)\]/g;let f;for(;(f=k.exec(B))!==null;)f[1]?P.push(f[1]):f[2]!==void 0&&P.push(parseInt(f[2]));let j=p;for(const Ee of P){if(j==null)return;j=j[Ee]}return j},Le=()=>{I.value=null,A.value=""},z=()=>{u.value=!0},D=()=>{u.value=!1};o.watch(()=>s.modelValue,p=>{U(p)},{immediate:!0});const ie=(p,m,P)=>{const B=j=>{if(j===null||typeof j!="object")return j;if(!Array.isArray(j)&&"__protected_number__"in j&&Object.keys(j).length===1)return`__PROTECTED_NUMBER_${j.__protected_number__}_PROTECTED_NUMBER__`;if(Array.isArray(j))return j.map(Re=>B(Re));const Ee={};for(const[Re,le]of Object.entries(j))Ee[Re]=B(le);return Ee},k=B(p);return JSON.stringify(k,m,P).replace(/"__PROTECTED_NUMBER_(.+?)_PROTECTED_NUMBER__"/g,"$1")},H=(p,m)=>{if(!s.readonly)try{const P=g(a.value,p,m),B=ie(P,null,2);T("update:modelValue",B)}catch(P){console.error("Failed to update JSON:",P)}},g=(p,m,P)=>{if(!m||m==="root")return P;const B=m.split("."),k=Oe(p,B.slice(0,-1));let f=k;for(let Ee=0;Ee<B.length-1;Ee++){const Re=B[Ee];Re!=="root"&&(Array.isArray(f)?f=f[parseInt(Re)]:f=f[Re])}const j=B[B.length-1];return j==="root"?P:(Array.isArray(f)?f[parseInt(j)]=P:f[j]=P,k)},Q=p=>{C.value.has(p)?C.value.delete(p):C.value.add(p)},X=()=>{const p=new Set,m=(P,B="")=>{P!==null&&typeof P=="object"&&(p.add(B||"root"),Array.isArray(P)?P.forEach((k,f)=>{const j=B?`${B}.${f}`:`${f}`;m(k,j)}):Object.keys(P).forEach(k=>{const f=B?`${B}.${k}`:k;m(P[k],f)}))};m(J.value),C.value=p,T("expand-all")},K=()=>{C.value=new Set,T("collapse-all")},ae=async()=>{if(l.value)try{const p=J.value,m=ie(p,null,2);await navigator.clipboard.writeText(m),T("copy-success",m)}catch(p){console.error("Failed to copy JSON:",p),T("copy-error",p instanceof Error?p:new Error("Failed to copy JSON"))}},ce=()=>{if(l.value)try{const p=J.value,m=ie(p);T("update:modelValue",m),T("compress",m)}catch(p){console.error("Failed to compress JSON:",p)}},pe=async p=>{try{let m;typeof p=="object"&&p!==null&&!Array.isArray(p)&&"__protected_number__"in p&&Object.keys(p).length===1?m=p.__protected_number__:typeof p=="string"?m=`"${p}"`:m=JSON.stringify(p),await navigator.clipboard.writeText(m)}catch(m){console.error("Failed to copy value:",m)}},x=(p,m)=>{if(!s.readonly)try{const P=Z(a.value,p,m),B=ie(P,null,2);T("update:modelValue",B),v(p,m)}catch(P){console.error("Failed to rename key:",P)}},Z=(p,m,P)=>{if(!m||m==="root")return p;const B=m.split("."),k=Oe(p,B.slice(0,-1));if(B.length===1){const Ee=B[0];return k&&typeof k=="object"&&!Array.isArray(k)?me(k,Ee,P):k}let f=k;for(let Ee=0;Ee<B.length-1;Ee++){const Re=B[Ee];Array.isArray(f)?f=f[parseInt(Re)]:f=f[Re]}const j=B[B.length-1];if(!Array.isArray(f)&&f&&typeof f=="object"){const Ee=me(f,j,P),Re=B.slice(0,-1);Re.length>0&&Te(k,Re,Ee)}return k},Oe=(p,m)=>{if(m.length===0)return p;if(Array.isArray(p)){const P=[...p],B=m[0],k=parseInt(B);return m.length===1||(P[k]=Oe(p[k],m.slice(1))),P}else if(p&&typeof p=="object"){const P={...p},B=m[0];return m.length===1||(P[B]=Oe(p[B],m.slice(1))),P}return p},me=(p,m,P)=>{if(!p||typeof p!="object"||Array.isArray(p))return p;const B=Object.keys(p),k={};for(const f of B)f===m?k[P]=p[f]:k[f]=p[f];return k},Te=(p,m,P)=>{let B=p;for(let f=0;f<m.length-1;f++){const j=m[f];Array.isArray(B)?B=B[parseInt(j)]:B=B[j]}const k=m[m.length-1];Array.isArray(B)?B[parseInt(k)]=P:B[k]=P},v=(p,m)=>{const P=new Set;C.value.forEach(B=>{if(B===p){const k=p.split(".");k[k.length-1]=m,P.add(k.join("."))}else if(B.startsWith(p+".")){const k=p.split(".");k[k.length-1]=m;const f=k.join("."),j=B.substring(p.length);P.add(f+j)}else P.add(B)}),C.value=P};return t({copyJson:ae,compressSource:ce,expandAll:X,collapseAll:K,toggleExpand:Q,updateValue:H,updateKey:x,filter:ee,clearFilter:Le,sortKeys:z,clearSortKeys:D,isSorted:()=>u.value,isValidJson:()=>l.value,getParsedJson:()=>a.value,getFilteredJson:()=>I.value,getExpandedNodes:()=>C.value,getParseError:()=>R.value,getFilterError:()=>A.value,parseJson:p=>U(p),copyValue:p=>pe(p)}),(p,m)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["json-format",`json-format--${h.value.name}`])},[o.createElementVNode("div",yn,[l.value?A.value?(o.openBlock(),o.createElementBlock("div",Fn,[m[1]||(m[1]=o.createElementVNode("h4",null,"Filter Error:",-1)),o.createElementVNode("pre",null,o.toDisplayString(A.value),1)])):(o.openBlock(),o.createElementBlock("div",Hn,[o.createVNode(mn,{value:J.value,"key-name":"",level:0,expanded:C.value,"is-last":!0,theme:h.value,"onUpdate:value":H,onToggleExpand:Q,onCopy:pe,"onUpdate:key":x},null,8,["value","expanded","theme"])])):(o.openBlock(),o.createElementBlock("div",Gn,[m[0]||(m[0]=o.createElementVNode("h4",null,"JSON Parse Error:",-1)),o.createElementVNode("pre",null,o.toDisplayString(R.value),1)]))])],2))}}),[["__scopeId","data-v-a802c0ac"]]);function mE(E){return E&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E}var qt={},BE;function bn(){return BE||(BE=1,function(E){var t=E;(function(r){var s="__namespace",T=function(e){return e==null},a=function(e){return e===s||Number.isInteger(e)&&e>=1&&e<=11},R=function(e){return e&&a(e.nodeType)&&typeof e.nodeName=="string"};function C(e){var n=Array.prototype.slice,N=e.length,L=function(d,se){return function(){return se.apply(this,d.concat(n.call(arguments)))}},O=function(){var d=n.call(arguments);return d.length<N?L(d,O):e.apply(this,n.apply(arguments,[0,N]))};return O}var I=function(e,n){for(var N=0;N<n.length;N+=1)e(n[N],N,n)},A=function(e,n,N){var L=n;return I(function(O,d){L=e(L,O,d)},N),L},u=function(e,n){var N=new Array(n.length);return I(function(L,O){N[O]=e(L)},n),N},l=function(e,n){var N=[];return I(function(L,O){e(L,O)&&N.push(L)},n),N},h=function(e,n){for(var N=0;N<e.length;N+=1)if(e[N]===n)return!0;return!1};function M(e){return function(){return e}}function b(e){return e.toString()}var J=function(e,n){return n.join(e)},U=function(e,n,N){return e+N+n},ee=Array.prototype.concat,te=function(e,n){var N=new Ae;N.addArray(e);var L=N.toArray();return n?L.reverse():L},q=32767;function _e(e){for(var n=[],N=0;N<e.length;N+=q){var L=e.slice(N,N+q);n=ee.apply(n,L)}return n}function Le(e,n){for(var N=Object(e),L=1;L<arguments.length;L++){var O=arguments[L];if(O!=null)for(var d in O)Object.prototype.hasOwnProperty.call(O,d)&&(N[d]=O[d])}return N}var z={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NAMESPACE_NODE:s};D.prototype=new Object,D.prototype.constructor=D,D.superclass=Object.prototype;function D(){this.init()}D.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(e){return new ae(e[0],e[2])},this.reduceActions[5]=function(e){return new ce(e[0],e[2])},this.reduceActions[7]=function(e){return new pe(e[0],e[2])},this.reduceActions[8]=function(e){return new x(e[0],e[2])},this.reduceActions[10]=function(e){return new Z(e[0],e[2])},this.reduceActions[11]=function(e){return new Oe(e[0],e[2])},this.reduceActions[12]=function(e){return new me(e[0],e[2])},this.reduceActions[13]=function(e){return new Te(e[0],e[2])},this.reduceActions[15]=function(e){return new v(e[0],e[2])},this.reduceActions[16]=function(e){return new p(e[0],e[2])},this.reduceActions[18]=function(e){return new m(e[0],e[2])},this.reduceActions[19]=function(e){return new P(e[0],e[2])},this.reduceActions[20]=function(e){return new B(e[0],e[2])},this.reduceActions[22]=function(e){return new X(e[1])},this.reduceActions[24]=function(e){return new k(e[0],e[2])},this.reduceActions[25]=function(e){return new f(void 0,void 0,e[0])},this.reduceActions[27]=function(e){return e[0].locationPath=e[2],e[0]},this.reduceActions[28]=function(e){return e[0].locationPath=e[2],e[0].locationPath.steps.unshift(new $($.DESCENDANTORSELF,c.nodeTest,[])),e[0]},this.reduceActions[29]=function(e){return new f(e[0],[],void 0)},this.reduceActions[30]=function(e){return Ie.instance_of(e[0],f)?(e[0].filterPredicates==null&&(e[0].filterPredicates=[]),e[0].filterPredicates.push(e[1]),e[0]):new f(e[0],[e[1]],void 0)},this.reduceActions[32]=function(e){return e[1]},this.reduceActions[33]=function(e){return new F(e[0])},this.reduceActions[34]=function(e){return new V(e[0])},this.reduceActions[36]=function(e){return new Be(e[0],[])},this.reduceActions[37]=function(e){return new Be(e[0],e[2])},this.reduceActions[38]=function(e){return[e[0]]},this.reduceActions[39]=function(e){return e[2].unshift(e[0]),e[2]},this.reduceActions[43]=function(e){return new Ne(!0,[])},this.reduceActions[44]=function(e){return e[1].absolute=!0,e[1]},this.reduceActions[46]=function(e){return new Ne(!1,[e[0]])},this.reduceActions[47]=function(e){return e[0].steps.push(e[2]),e[0]},this.reduceActions[49]=function(e){return new $(e[0],e[1],[])},this.reduceActions[50]=function(e){return new $($.CHILD,e[0],[])},this.reduceActions[51]=function(e){return new $(e[0],e[1],e[2])},this.reduceActions[52]=function(e){return new $($.CHILD,e[0],e[1])},this.reduceActions[54]=function(e){return[e[0]]},this.reduceActions[55]=function(e){return e[1].unshift(e[0]),e[1]},this.reduceActions[56]=function(e){return e[0]=="ancestor"?$.ANCESTOR:e[0]=="ancestor-or-self"?$.ANCESTORORSELF:e[0]=="attribute"?$.ATTRIBUTE:e[0]=="child"?$.CHILD:e[0]=="descendant"?$.DESCENDANT:e[0]=="descendant-or-self"?$.DESCENDANTORSELF:e[0]=="following"?$.FOLLOWING:e[0]=="following-sibling"?$.FOLLOWINGSIBLING:e[0]=="namespace"?$.NAMESPACE:e[0]=="parent"?$.PARENT:e[0]=="preceding"?$.PRECEDING:e[0]=="preceding-sibling"?$.PRECEDINGSIBLING:e[0]=="self"?$.SELF:-1},this.reduceActions[57]=function(e){return $.ATTRIBUTE},this.reduceActions[59]=function(e){return e[0]=="comment"?c.commentTest:e[0]=="text"?c.textTest:e[0]=="processing-instruction"?c.anyPiTest:e[0]=="node"?c.nodeTest:new c(-1,void 0)},this.reduceActions[60]=function(e){return new c.PITest(e[2])},this.reduceActions[61]=function(e){return e[1]},this.reduceActions[63]=function(e){return e[1].absolute=!0,e[1].steps.unshift(new $($.DESCENDANTORSELF,c.nodeTest,[])),e[1]},this.reduceActions[64]=function(e){return e[0].steps.push(new $($.DESCENDANTORSELF,c.nodeTest,[])),e[0].steps.push(e[2]),e[0]},this.reduceActions[65]=function(e){return new $($.SELF,c.nodeTest,[])},this.reduceActions[66]=function(e){return new $($.PARENT,c.nodeTest,[])},this.reduceActions[67]=function(e){return new ne(e[1])},this.reduceActions[68]=function(e){return c.nameTestAny},this.reduceActions[69]=function(e){return new c.NameTestPrefixAny(e[0].split(":")[0])},this.reduceActions[70]=function(e){return new c.NameTestQName(e[0])}},D.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],D.actionTableNumber=[` 1 0 /.-,+*)(' & %$ # "!`," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY ",` 1 0 /.-,+*)(' & %$ # "!`,`K1 KKKKKKKK . +*)('KKKKKK KK# K" `,` 1 0 /.-,+*)(' & %$ # "!`," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q ",` 1 . +*)(' # " `,"b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX ",` 1 0 /.-,+*)(' & %$m # "!`,"_ f________ ______e __ _ ",` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 0 /.-,+*)(' %$ # "!`,` 1 0 /.-,+*)(' & %$ # "!`,` 1 . +*)(' # " `,` 1 . +*)(' # " `,"> >>>>>>>>> >>>>>>> >> >> ",` 1 . +*)(' # " `,` 1 . +*)(' # " `,"Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ‡ ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," ˆ "," F‰ ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," Š ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE ",` 1 0 /.-,+*)(' & %$ # "!`,"] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],D.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","€456789:;<=>?@ AB CDEFGH IJ"," ‚ EFGH IJ "," ƒ EFGH IJ "," "," „ GH IJ "," … GH IJ "," i † "," i ‡ "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABŒqCDEFGH IJ "," "," "],D.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],D.DOUBLEDOT=2,D.DOUBLECOLON=3,D.DOUBLESLASH=4,D.NOTEQUAL=5,D.LESSTHANOREQUAL=6,D.GREATERTHANOREQUAL=7,D.AND=8,D.OR=9,D.MOD=10,D.DIV=11,D.MULTIPLYOPERATOR=12,D.FUNCTIONNAME=13,D.AXISNAME=14,D.LITERAL=15,D.NUMBER=16,D.ASTERISKNAMETEST=17,D.QNAME=18,D.NCNAMECOLONASTERISK=19,D.NODETYPE=20,D.PROCESSINGINSTRUCTIONWITHLITERAL=21,D.EQUALS=22,D.LESSTHAN=23,D.GREATERTHAN=24,D.PLUS=25,D.MINUS=26,D.BAR=27,D.SLASH=28,D.LEFTPARENTHESIS=29,D.RIGHTPARENTHESIS=30,D.COMMA=31,D.AT=32,D.LEFTBRACKET=33,D.RIGHTBRACKET=34,D.DOT=35,D.DOLLAR=36,D.prototype.tokenize=function(e){for(var n=[],N=[],L=e+"\0",O=0,d=L.charAt(O++);;){for(;d==" "||d==" "||d=="\r"||d==`
9
+ `;)d=L.charAt(O++);if(d=="\0"||O>=L.length)break;if(d=="("){n.push(D.LEFTPARENTHESIS),N.push(d),d=L.charAt(O++);continue}if(d==")"){n.push(D.RIGHTPARENTHESIS),N.push(d),d=L.charAt(O++);continue}if(d=="["){n.push(D.LEFTBRACKET),N.push(d),d=L.charAt(O++);continue}if(d=="]"){n.push(D.RIGHTBRACKET),N.push(d),d=L.charAt(O++);continue}if(d=="@"){n.push(D.AT),N.push(d),d=L.charAt(O++);continue}if(d==","){n.push(D.COMMA),N.push(d),d=L.charAt(O++);continue}if(d=="|"){n.push(D.BAR),N.push(d),d=L.charAt(O++);continue}if(d=="+"){n.push(D.PLUS),N.push(d),d=L.charAt(O++);continue}if(d=="-"){n.push(D.MINUS),N.push(d),d=L.charAt(O++);continue}if(d=="="){n.push(D.EQUALS),N.push(d),d=L.charAt(O++);continue}if(d=="$"){n.push(D.DOLLAR),N.push(d),d=L.charAt(O++);continue}if(d=="."){if(d=L.charAt(O++),d=="."){n.push(D.DOUBLEDOT),N.push(".."),d=L.charAt(O++);continue}if(d>="0"&&d<="9"){var se="."+d;for(d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);n.push(D.NUMBER),N.push(se);continue}n.push(D.DOT),N.push(".");continue}if(d=="'"||d=='"'){for(var he=d,Me="";O<L.length&&(d=L.charAt(O))!==he;)Me+=d,O+=1;if(d!==he)throw qe.fromMessage("Unterminated string literal: "+he+Me);O+=1,n.push(D.LITERAL),N.push(Me),d=L.charAt(O++);continue}if(d>="0"&&d<="9"){var se=d;for(d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);if(d=="."&&L.charAt(O)>="0"&&L.charAt(O)<="9")for(se+=d,se+=L.charAt(O++),d=L.charAt(O++);d>="0"&&d<="9";)se+=d,d=L.charAt(O++);n.push(D.NUMBER),N.push(se);continue}if(d=="*"){if(n.length>0){var oe=n[n.length-1];if(oe!=D.AT&&oe!=D.DOUBLECOLON&&oe!=D.LEFTPARENTHESIS&&oe!=D.LEFTBRACKET&&oe!=D.AND&&oe!=D.OR&&oe!=D.MOD&&oe!=D.DIV&&oe!=D.MULTIPLYOPERATOR&&oe!=D.SLASH&&oe!=D.DOUBLESLASH&&oe!=D.BAR&&oe!=D.PLUS&&oe!=D.MINUS&&oe!=D.EQUALS&&oe!=D.NOTEQUAL&&oe!=D.LESSTHAN&&oe!=D.LESSTHANOREQUAL&&oe!=D.GREATERTHAN&&oe!=D.GREATERTHANOREQUAL){n.push(D.MULTIPLYOPERATOR),N.push(d),d=L.charAt(O++);continue}}n.push(D.ASTERISKNAMETEST),N.push(d),d=L.charAt(O++);continue}if(d==":"&&L.charAt(O)==":"){n.push(D.DOUBLECOLON),N.push("::"),O++,d=L.charAt(O++);continue}if(d=="/"){if(d=L.charAt(O++),d=="/"){n.push(D.DOUBLESLASH),N.push("//"),d=L.charAt(O++);continue}n.push(D.SLASH),N.push("/");continue}if(d=="!"&&L.charAt(O)=="="){n.push(D.NOTEQUAL),N.push("!="),O++,d=L.charAt(O++);continue}if(d=="<"){if(L.charAt(O)=="="){n.push(D.LESSTHANOREQUAL),N.push("<="),O++,d=L.charAt(O++);continue}n.push(D.LESSTHAN),N.push("<"),d=L.charAt(O++);continue}if(d==">"){if(L.charAt(O)=="="){n.push(D.GREATERTHANOREQUAL),N.push(">="),O++,d=L.charAt(O++);continue}n.push(D.GREATERTHAN),N.push(">"),d=L.charAt(O++);continue}if(d=="_"||Ie.isLetter(d.charCodeAt(0))){var Se=d;for(d=L.charAt(O++);Ie.isNCNameChar(d.charCodeAt(0));)Se+=d,d=L.charAt(O++);if(n.length>0){var oe=n[n.length-1];if(oe!=D.AT&&oe!=D.DOUBLECOLON&&oe!=D.LEFTPARENTHESIS&&oe!=D.LEFTBRACKET&&oe!=D.AND&&oe!=D.OR&&oe!=D.MOD&&oe!=D.DIV&&oe!=D.MULTIPLYOPERATOR&&oe!=D.SLASH&&oe!=D.DOUBLESLASH&&oe!=D.BAR&&oe!=D.PLUS&&oe!=D.MINUS&&oe!=D.EQUALS&&oe!=D.NOTEQUAL&&oe!=D.LESSTHAN&&oe!=D.LESSTHANOREQUAL&&oe!=D.GREATERTHAN&&oe!=D.GREATERTHANOREQUAL){if(Se=="and"){n.push(D.AND),N.push(Se);continue}if(Se=="or"){n.push(D.OR),N.push(Se);continue}if(Se=="mod"){n.push(D.MOD),N.push(Se);continue}if(Se=="div"){n.push(D.DIV),N.push(Se);continue}}}if(d==":"){if(L.charAt(O)=="*"){n.push(D.NCNAMECOLONASTERISK),N.push(Se+":*"),O++,d=L.charAt(O++);continue}if(L.charAt(O)=="_"||Ie.isLetter(L.charCodeAt(O))){for(Se+=":",d=L.charAt(O++);Ie.isNCNameChar(d.charCodeAt(0));)Se+=d,d=L.charAt(O++);if(d=="("){n.push(D.FUNCTIONNAME),N.push(Se);continue}n.push(D.QNAME),N.push(Se);continue}if(L.charAt(O)==":"){n.push(D.AXISNAME),N.push(Se);continue}}if(d=="("){if(Se=="comment"||Se=="text"||Se=="node"){n.push(D.NODETYPE),N.push(Se);continue}if(Se=="processing-instruction"){L.charAt(O)==")"?n.push(D.NODETYPE):n.push(D.PROCESSINGINSTRUCTIONWITHLITERAL),N.push(Se);continue}n.push(D.FUNCTIONNAME),N.push(Se);continue}n.push(D.QNAME),N.push(Se);continue}throw new Error("Unexpected character "+d)}return n.push(1),N.push("[EOF]"),[n,N]},D.SHIFT="s",D.REDUCE="r",D.ACCEPT="a",D.prototype.parse=function(Me){if(!Me)throw new Error("XPath expression unspecified.");if(typeof Me!="string")throw new Error("XPath expression must be a string.");var n,N,L=this.tokenize(Me);if(L!=null){n=L[0],N=L[1];var O=0,d=[],se=[],he=[],Me,oe,Se;for(d.push(0),se.push(1),he.push("_S"),oe=n[O],Se=N[O++];;)switch(Me=d[d.length-1],D.actionTable[Me].charAt(oe-1)){case D.SHIFT:se.push(-oe),he.push(Se),d.push(D.actionTableNumber[Me].charCodeAt(oe-1)-32),oe=n[O],Se=N[O++];break;case D.REDUCE:for(var Ke=D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][1],ze=[],He=0;He<Ke;He++)se.pop(),ze.unshift(he.pop()),d.pop();var Tt=d[d.length-1];se.push(D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][0]),this.reduceActions[D.actionTableNumber[Me].charCodeAt(oe-1)-32]==null?he.push(ze[0]):he.push(this.reduceActions[D.actionTableNumber[Me].charCodeAt(oe-1)-32](ze)),d.push(D.gotoTable[Tt].charCodeAt(D.productions[D.actionTableNumber[Me].charCodeAt(oe-1)-32][0]-2)-33);break;case D.ACCEPT:return new ie(he.pop());default:throw new Error("XPath parse error")}}},ie.prototype=new Object,ie.prototype.constructor=ie,ie.superclass=Object.prototype;function ie(e){this.expression=e}ie.prototype.toString=function(){return this.expression.toString()};function H(e,n,N){n in e||(e[n]=N)}ie.prototype.evaluate=function(e){var n=e.expressionContextNode;if(!(T(n)||R(n)))throw new Error("Context node does not appear to be a valid DOM node.");return e.contextNode=e.expressionContextNode,e.contextSize=1,e.contextPosition=1,e.isHtml&&(H(e,"caseInsensitive",!0),H(e,"allowAnyNamespaceForNoPrefix",!0)),H(e,"caseInsensitive",!1),this.expression.evaluate(e)},ie.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",ie.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",g.prototype=new Object,g.prototype.constructor=g,g.superclass=Object.prototype;function g(){}g.prototype.init=function(){},g.prototype.toString=function(){return"<Expression>"},g.prototype.evaluate=function(e){throw new Error("Could not evaluate expression.")},Q.prototype=new g,Q.prototype.constructor=Q,Q.superclass=g.prototype;function Q(e){arguments.length>0&&this.init(e)}Q.prototype.init=function(e){this.rhs=e},X.prototype=new Q,X.prototype.constructor=X,X.superclass=Q.prototype;function X(e){arguments.length>0&&this.init(e)}X.prototype.init=function(e){X.superclass.init.call(this,e)},X.prototype.evaluate=function(e){return this.rhs.evaluate(e).number().negate()},X.prototype.toString=function(){return"-"+this.rhs.toString()},K.prototype=new g,K.prototype.constructor=K,K.superclass=g.prototype;function K(e,n){arguments.length>0&&this.init(e,n)}K.prototype.init=function(e,n){this.lhs=e,this.rhs=n},ae.prototype=new K,ae.prototype.constructor=ae,ae.superclass=K.prototype;function ae(e,n){arguments.length>0&&this.init(e,n)}ae.prototype.init=function(e,n){ae.superclass.init.call(this,e,n)},ae.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},ae.prototype.evaluate=function(e){var n=this.lhs.evaluate(e).bool();return n.booleanValue()?n:this.rhs.evaluate(e).bool()},ce.prototype=new K,ce.prototype.constructor=ce,ce.superclass=K.prototype;function ce(e,n){arguments.length>0&&this.init(e,n)}ce.prototype.init=function(e,n){ce.superclass.init.call(this,e,n)},ce.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},ce.prototype.evaluate=function(e){var n=this.lhs.evaluate(e).bool();return n.booleanValue()?this.rhs.evaluate(e).bool():n},pe.prototype=new K,pe.prototype.constructor=pe,pe.superclass=K.prototype;function pe(e,n){arguments.length>0&&this.init(e,n)}pe.prototype.init=function(e,n){pe.superclass.init.call(this,e,n)},pe.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},pe.prototype.evaluate=function(e){return this.lhs.evaluate(e).equals(this.rhs.evaluate(e))},x.prototype=new K,x.prototype.constructor=x,x.superclass=K.prototype;function x(e,n){arguments.length>0&&this.init(e,n)}x.prototype.init=function(e,n){x.superclass.init.call(this,e,n)},x.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},x.prototype.evaluate=function(e){return this.lhs.evaluate(e).notequal(this.rhs.evaluate(e))},Z.prototype=new K,Z.prototype.constructor=Z,Z.superclass=K.prototype;function Z(e,n){arguments.length>0&&this.init(e,n)}Z.prototype.init=function(e,n){Z.superclass.init.call(this,e,n)},Z.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthan(this.rhs.evaluate(e))},Z.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},Oe.prototype=new K,Oe.prototype.constructor=Oe,Oe.superclass=K.prototype;function Oe(e,n){arguments.length>0&&this.init(e,n)}Oe.prototype.init=function(e,n){Oe.superclass.init.call(this,e,n)},Oe.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthan(this.rhs.evaluate(e))},Oe.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},me.prototype=new K,me.prototype.constructor=me,me.superclass=K.prototype;function me(e,n){arguments.length>0&&this.init(e,n)}me.prototype.init=function(e,n){me.superclass.init.call(this,e,n)},me.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthanorequal(this.rhs.evaluate(e))},me.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},Te.prototype=new K,Te.prototype.constructor=Te,Te.superclass=K.prototype;function Te(e,n){arguments.length>0&&this.init(e,n)}Te.prototype.init=function(e,n){Te.superclass.init.call(this,e,n)},Te.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthanorequal(this.rhs.evaluate(e))},Te.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},v.prototype=new K,v.prototype.constructor=v,v.superclass=K.prototype;function v(e,n){arguments.length>0&&this.init(e,n)}v.prototype.init=function(e,n){v.superclass.init.call(this,e,n)},v.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().plus(this.rhs.evaluate(e).number())},v.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},p.prototype=new K,p.prototype.constructor=p,p.superclass=K.prototype;function p(e,n){arguments.length>0&&this.init(e,n)}p.prototype.init=function(e,n){p.superclass.init.call(this,e,n)},p.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().minus(this.rhs.evaluate(e).number())},p.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},m.prototype=new K,m.prototype.constructor=m,m.superclass=K.prototype;function m(e,n){arguments.length>0&&this.init(e,n)}m.prototype.init=function(e,n){m.superclass.init.call(this,e,n)},m.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().multiply(this.rhs.evaluate(e).number())},m.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},P.prototype=new K,P.prototype.constructor=P,P.superclass=K.prototype;function P(e,n){arguments.length>0&&this.init(e,n)}P.prototype.init=function(e,n){P.superclass.init.call(this,e,n)},P.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().div(this.rhs.evaluate(e).number())},P.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},B.prototype=new K,B.prototype.constructor=B,B.superclass=K.prototype;function B(e,n){arguments.length>0&&this.init(e,n)}B.prototype.init=function(e,n){B.superclass.init.call(this,e,n)},B.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().mod(this.rhs.evaluate(e).number())},B.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},k.prototype=new K,k.prototype.constructor=k,k.superclass=K.prototype;function k(e,n){arguments.length>0&&this.init(e,n)}k.prototype.init=function(e,n){k.superclass.init.call(this,e,n)},k.prototype.evaluate=function(e){return this.lhs.evaluate(e).nodeset().union(this.rhs.evaluate(e).nodeset())},k.prototype.toString=function(){return u(b,[this.lhs,this.rhs]).join(" | ")},f.prototype=new g,f.prototype.constructor=f,f.superclass=g.prototype;function f(e,n,N){arguments.length>0&&this.init(e,n,N)}f.prototype.init=function(e,n,N){f.superclass.init.call(this),this.filter=e,this.filterPredicates=n,this.locationPath=N};function j(e){for(;e&&e.parentNode;)e=e.parentNode;return e}var Ee=function(e,n,N,L){if(e.length===0)return N;var O=n.extend({});return A(function(d,se){return O.contextSize=d.length,l(function(he,Me){return O.contextNode=he,O.contextPosition=Me+1,f.predicateMatches(se,O)},d)},te(N,L),e)};f.getRoot=function(e,n){var N=n[0];if(N&&N.nodeType===z.DOCUMENT_NODE)return N;if(e.virtualRoot)return e.virtualRoot;if(!N)throw new Error("Context node not found when determining document root.");var L=N.ownerDocument;if(L)return L;for(var O=N;O.parentNode!=null;)O=O.parentNode;return O};var Re=function(e){var n=String(e.name);return n==="xmlns"?"":n.substring(0,6)==="xmlns:"?n.substring(6,n.length):null};f.applyStep=function(e,n,N){if(!N)throw new Error("Context node not found when evaluating XPath step: "+e);var L=[];switch(n.contextNode=N,e.axis){case $.ANCESTOR:if(n.contextNode===n.virtualRoot)break;var O;for(n.contextNode.nodeType==z.ATTRIBUTE_NODE?O=f.getOwnerElement(n.contextNode):O=n.contextNode.parentNode;O!=null&&(e.nodeTest.matches(O,n)&&L.push(O),O!==n.virtualRoot);)O=O.parentNode;break;case $.ANCESTORORSELF:for(var O=n.contextNode;O!=null&&(e.nodeTest.matches(O,n)&&L.push(O),O!==n.virtualRoot);O=O.nodeType==z.ATTRIBUTE_NODE?f.getOwnerElement(O):O.parentNode);break;case $.ATTRIBUTE:var d=n.contextNode.attributes;if(d!=null)for(var se=0;se<d.length;se++){var O=d.item(se);e.nodeTest.matches(O,n)&&L.push(O)}break;case $.CHILD:for(var O=n.contextNode.firstChild;O!=null;O=O.nextSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.DESCENDANT:for(var Se=[n.contextNode.firstChild];Se.length>0;)for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;break;case $.DESCENDANTORSELF:e.nodeTest.matches(n.contextNode,n)&&L.push(n.contextNode);for(var Se=[n.contextNode.firstChild];Se.length>0;)for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;break;case $.FOLLOWING:if(n.contextNode===n.virtualRoot)break;var Se=[];n.contextNode.firstChild!=null?Se.unshift(n.contextNode.firstChild):Se.unshift(n.contextNode.nextSibling);for(var O=n.contextNode.parentNode;O!=null&&O.nodeType!=z.DOCUMENT_NODE&&O!==n.virtualRoot;O=O.parentNode)Se.unshift(O.nextSibling);do for(var O=Se.pop();O!=null;)e.nodeTest.matches(O,n)&&L.push(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling;while(Se.length>0);break;case $.FOLLOWINGSIBLING:if(n.contextNode===n.virtualRoot)break;for(var O=n.contextNode.nextSibling;O!=null;O=O.nextSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.NAMESPACE:var he={};if(n.contextNode.nodeType==z.ELEMENT_NODE){he.xml=new nt("xml",null,ie.XML_NAMESPACE_URI,n.contextNode);for(var O=n.contextNode;O!=null&&O.nodeType==z.ELEMENT_NODE;O=O.parentNode)for(var se=0;se<O.attributes.length;se++){var Me=O.attributes.item(se),oe=Re(Me);oe!=null&&he[oe]==null&&(he[oe]=new nt(oe,Me,Me.value,n.contextNode))}for(var oe in he){var N=he[oe];e.nodeTest.matches(N,n)&&L.push(N)}}break;case $.PARENT:O=null,n.contextNode!==n.virtualRoot&&(n.contextNode.nodeType==z.ATTRIBUTE_NODE?O=f.getOwnerElement(n.contextNode):O=n.contextNode.parentNode),O!=null&&e.nodeTest.matches(O,n)&&L.push(O);break;case $.PRECEDING:var Se;n.virtualRoot!=null?Se=[n.virtualRoot]:Se=[j(n.contextNode)];e:for(;Se.length>0;)for(var O=Se.pop();O!=null;){if(O==n.contextNode)break e;e.nodeTest.matches(O,n)&&L.unshift(O),O.firstChild!=null?(Se.push(O.nextSibling),O=O.firstChild):O=O.nextSibling}break;case $.PRECEDINGSIBLING:if(n.contextNode===n.virtualRoot)break;for(var O=n.contextNode.previousSibling;O!=null;O=O.previousSibling)e.nodeTest.matches(O,n)&&L.push(O);break;case $.SELF:e.nodeTest.matches(n.contextNode,n)&&L.push(n.contextNode);break}return L};function le(e,n,N){return Ee(e.predicates,n,f.applyStep(e,n,N),h(ge,e.axis))}function Ue(e,n,N){return _e(u(le.bind(null,N,e),n))}f.applySteps=function(e,n,N){return A(Ue.bind(null,n),N,e)},f.prototype.applyFilter=function(e,n){if(!this.filter)return{nodes:[e.contextNode]};var N=this.filter.evaluate(e);if(!Ie.instance_of(N,Ae)){if(this.filterPredicates!=null&&this.filterPredicates.length>0||this.locationPath!=null)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:N}}return{nodes:Ee(this.filterPredicates||[],n,N.toUnsortedArray(),!1)}},f.applyLocationPath=function(e,n,N){if(!e)return N;var L=e.absolute?[f.getRoot(n,N)]:N;return f.applySteps(e.steps,n,L)},f.prototype.evaluate=function(e){var n=Le(new Ze,e),N=this.applyFilter(e,n);if("nonNodes"in N)return N.nonNodes;var L=new Ae;return L.addArray(f.applyLocationPath(this.locationPath,n,N.nodes)),L},f.predicateMatches=function(e,n){var N=e.evaluate(n);return Ie.instance_of(N,V)?n.contextPosition===N.numberValue():N.booleanValue()},f.predicateString=function(e){return U("[","]",e.toString())},f.predicatesString=function(e){return J("",u(f.predicateString,e))},f.prototype.toString=function(){if(this.filter!=null){var e=b(this.filter);return Ie.instance_of(this.filter,F)?U("'","'",e):this.filterPredicates!=null&&this.filterPredicates.length?U("(",")",e)+f.predicatesString(this.filterPredicates):this.locationPath!=null?e+(this.locationPath.absolute?"":"/")+b(this.locationPath):e}return b(this.locationPath)},f.getOwnerElement=function(e){if(e.ownerElement)return e.ownerElement;try{if(e.selectSingleNode)return e.selectSingleNode("..")}catch{}for(var n=e.nodeType==z.DOCUMENT_NODE?e:e.ownerDocument,N=n.getElementsByTagName("*"),L=0;L<N.length;L++)for(var O=N.item(L),d=O.attributes,se=0;se<d.length;se++){var he=d.item(se);if(he===e)return O}return null},Ne.prototype=new Object,Ne.prototype.constructor=Ne,Ne.superclass=Object.prototype;function Ne(e,n){arguments.length>0&&this.init(e,n)}Ne.prototype.init=function(e,n){this.absolute=e,this.steps=n},Ne.prototype.toString=function(){return(this.absolute?"/":"")+u(b,this.steps).join("/")},$.prototype=new Object,$.prototype.constructor=$,$.superclass=Object.prototype;function $(e,n,N){arguments.length>0&&this.init(e,n,N)}$.prototype.init=function(e,n,N){this.axis=e,this.nodeTest=n,this.predicates=N},$.prototype.toString=function(){return $.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+f.predicatesString(this.predicates)},$.ANCESTOR=0,$.ANCESTORORSELF=1,$.ATTRIBUTE=2,$.CHILD=3,$.DESCENDANT=4,$.DESCENDANTORSELF=5,$.FOLLOWING=6,$.FOLLOWINGSIBLING=7,$.NAMESPACE=8,$.PARENT=9,$.PRECEDING=10,$.PRECEDINGSIBLING=11,$.SELF=12,$.STEPNAMES=A(function(e,n){return e[n[0]]=n[1],e},{},[[$.ANCESTOR,"ancestor"],[$.ANCESTORORSELF,"ancestor-or-self"],[$.ATTRIBUTE,"attribute"],[$.CHILD,"child"],[$.DESCENDANT,"descendant"],[$.DESCENDANTORSELF,"descendant-or-self"],[$.FOLLOWING,"following"],[$.FOLLOWINGSIBLING,"following-sibling"],[$.NAMESPACE,"namespace"],[$.PARENT,"parent"],[$.PRECEDING,"preceding"],[$.PRECEDINGSIBLING,"preceding-sibling"],[$.SELF,"self"]]);var ge=[$.ANCESTOR,$.ANCESTORORSELF,$.PARENT,$.PRECEDING,$.PRECEDINGSIBLING];c.prototype=new Object,c.prototype.constructor=c,c.superclass=Object.prototype;function c(e,n){arguments.length>0&&this.init(e,n)}c.prototype.init=function(e,n){this.type=e,this.value=n},c.prototype.toString=function(){return"<unknown nodetest type>"},c.prototype.matches=function(e,n){console.warn("unknown node test type")},c.NAMETESTANY=0,c.NAMETESTPREFIXANY=1,c.NAMETESTQNAME=2,c.COMMENT=3,c.TEXT=4,c.PI=5,c.NODE=6,c.isNodeType=function(e){return function(n){return h(e,n.nodeType)}},c.makeNodeTestType=function(e,n,N){var L=N||function(){};return L.prototype=new c(e),L.prototype.constructor=L,Le(L.prototype,n),L},c.makeNodeTypeTest=function(e,n,N){return new(c.makeNodeTestType(e,{matches:c.isNodeType(n),toString:M(N)}))},c.hasPrefix=function(e){return e.prefix||(e.nodeName||e.tagName).indexOf(":")!==-1},c.isElementOrAttribute=c.isNodeType([1,2]),c.nameSpaceMatches=function(e,n,N){var L=N.namespaceURI||"";if(!e)return!L||n.allowAnyNamespaceForNoPrefix&&!c.hasPrefix(N);var O=n.namespaceResolver.getNamespace(e,n.expressionContextNode);if(O==null)throw new Error("Cannot resolve QName "+e);return O===L},c.localNameMatches=function(e,n,N){var L=N.localName||N.nodeName;return n.caseInsensitive?e.toLowerCase()===L.toLowerCase():e===L},c.NameTestPrefixAny=c.makeNodeTestType(c.NAMETESTPREFIXANY,{matches:function(e,n){return c.isElementOrAttribute(e)&&c.nameSpaceMatches(this.prefix,n,e)},toString:function(){return this.prefix+":*"}},function(n){this.prefix=n}),c.NameTestQName=c.makeNodeTestType(c.NAMETESTQNAME,{matches:function(e,n){return c.isNodeType([z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.NAMESPACE_NODE])(e)&&c.nameSpaceMatches(this.prefix,n,e)&&c.localNameMatches(this.localName,n,e)},toString:function(){return this.name}},function(n){var N=n.split(":");this.name=n,this.prefix=N.length>1?N[0]:null,this.localName=N[N.length>1?1:0]}),c.PITest=c.makeNodeTestType(c.PI,{matches:function(e,n){return c.isNodeType([z.PROCESSING_INSTRUCTION_NODE])(e)&&(e.target||e.nodeName)===this.name},toString:function(){return U('processing-instruction("','")',this.name)}},function(e){this.name=e}),c.nameTestAny=c.makeNodeTypeTest(c.NAMETESTANY,[z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.NAMESPACE_NODE],"*"),c.textTest=c.makeNodeTypeTest(c.TEXT,[z.TEXT_NODE,z.CDATA_SECTION_NODE],"text()"),c.commentTest=c.makeNodeTypeTest(c.COMMENT,[z.COMMENT_NODE],"comment()"),c.nodeTest=c.makeNodeTypeTest(c.NODE,[z.ELEMENT_NODE,z.ATTRIBUTE_NODE,z.TEXT_NODE,z.CDATA_SECTION_NODE,z.PROCESSING_INSTRUCTION_NODE,z.COMMENT_NODE,z.DOCUMENT_NODE],"node()"),c.anyPiTest=c.makeNodeTypeTest(c.PI,[z.PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),ne.prototype=new g,ne.prototype.constructor=ne,ne.superclass=g.prototype;function ne(e){arguments.length>0&&this.init(e)}ne.prototype.init=function(e){this.variable=e},ne.prototype.toString=function(){return"$"+this.variable},ne.prototype.evaluate=function(e){var n=Ie.resolveQName(this.variable,e.namespaceResolver,e.contextNode,!1);if(n[0]==null)throw new Error("Cannot resolve QName "+fn);var N=e.variableResolver.getVariable(n[1],n[0]);if(!N)throw qe.fromMessage("Undeclared variable: "+this.toString());return N},Be.prototype=new g,Be.prototype.constructor=Be,Be.superclass=g.prototype;function Be(e,n){arguments.length>0&&this.init(e,n)}Be.prototype.init=function(e,n){this.functionName=e,this.arguments=n},Be.prototype.toString=function(){for(var e=this.functionName+"(",n=0;n<this.arguments.length;n++)n>0&&(e+=", "),e+=this.arguments[n].toString();return e+")"},Be.prototype.evaluate=function(e){var n=Xe.getFunctionFromContext(this.functionName,e);if(!n)throw new Error("Unknown function "+this.functionName);var N=[e].concat(this.arguments);return n.apply(e.functionResolver.thisArg,N)};var de=new Object;de.equals=function(e,n){return e.equals(n)},de.notequal=function(e,n){return e.notequal(n)},de.lessthan=function(e,n){return e.lessthan(n)},de.greaterthan=function(e,n){return e.greaterthan(n)},de.lessthanorequal=function(e,n){return e.lessthanorequal(n)},de.greaterthanorequal=function(e,n){return e.greaterthanorequal(n)},F.prototype=new g,F.prototype.constructor=F,F.superclass=g.prototype;function F(e){arguments.length>0&&this.init(e)}F.prototype.init=function(e){this.str=String(e)},F.prototype.toString=function(){return this.str},F.prototype.evaluate=function(e){return this},F.prototype.string=function(){return this},F.prototype.number=function(){return new V(this.str)},F.prototype.bool=function(){return new ue(this.str)},F.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},F.prototype.stringValue=function(){return this.str},F.prototype.numberValue=function(){return this.number().numberValue()},F.prototype.booleanValue=function(){return this.bool().booleanValue()},F.prototype.equals=function(e){return Ie.instance_of(e,ue)?this.bool().equals(e):Ie.instance_of(e,V)?this.number().equals(e):Ie.instance_of(e,Ae)?e.compareWithString(this,de.equals):new ue(this.str==e.str)},F.prototype.notequal=function(e){return Ie.instance_of(e,ue)?this.bool().notequal(e):Ie.instance_of(e,V)?this.number().notequal(e):Ie.instance_of(e,Ae)?e.compareWithString(this,de.notequal):new ue(this.str!=e.str)},F.prototype.lessthan=function(e){return this.number().lessthan(e)},F.prototype.greaterthan=function(e){return this.number().greaterthan(e)},F.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},F.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},V.prototype=new g,V.prototype.constructor=V,V.superclass=g.prototype;function V(e){arguments.length>0&&this.init(e)}V.prototype.init=function(e){this.num=typeof e=="string"?this.parse(e):Number(e)},V.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,V.prototype.parse=function(e){return this.numberFormat.test(e)?parseFloat(e):Number.NaN};function ve(e){for(var n=e.split("e-"),N=n[0].replace(".",""),L=Number(n[1]),O=0;O<L-1;O+=1)N="0"+N;return"0."+N}function Qe(e){for(var n=e.split("e"),N=n[0].replace(".",""),L=Number(n[1]),O=L+1-N.length,d=0;d<O;d+=1)N+="0";return N}V.prototype.toString=function(){var e=this.num.toString();return e.indexOf("e-")!==-1?ve(e):e.indexOf("e")!==-1?Qe(e):e},V.prototype.evaluate=function(e){return this},V.prototype.string=function(){return new F(this.toString())},V.prototype.number=function(){return this},V.prototype.bool=function(){return new ue(this.num)},V.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},V.prototype.stringValue=function(){return this.string().stringValue()},V.prototype.numberValue=function(){return this.num},V.prototype.booleanValue=function(){return this.bool().booleanValue()},V.prototype.negate=function(){return new V(-this.num)},V.prototype.equals=function(e){return Ie.instance_of(e,ue)?this.bool().equals(e):Ie.instance_of(e,F)?this.equals(e.number()):Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.equals):new ue(this.num==e.num)},V.prototype.notequal=function(e){return Ie.instance_of(e,ue)?this.bool().notequal(e):Ie.instance_of(e,F)?this.notequal(e.number()):Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.notequal):new ue(this.num!=e.num)},V.prototype.lessthan=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.greaterthan):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.lessthan(e.number()):new ue(this.num<e.num)},V.prototype.greaterthan=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.lessthan):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.greaterthan(e.number()):new ue(this.num>e.num)},V.prototype.lessthanorequal=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.greaterthanorequal):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.lessthanorequal(e.number()):new ue(this.num<=e.num)},V.prototype.greaterthanorequal=function(e){return Ie.instance_of(e,Ae)?e.compareWithNumber(this,de.lessthanorequal):Ie.instance_of(e,ue)||Ie.instance_of(e,F)?this.greaterthanorequal(e.number()):new ue(this.num>=e.num)},V.prototype.plus=function(e){return new V(this.num+e.num)},V.prototype.minus=function(e){return new V(this.num-e.num)},V.prototype.multiply=function(e){return new V(this.num*e.num)},V.prototype.div=function(e){return new V(this.num/e.num)},V.prototype.mod=function(e){return new V(this.num%e.num)},ue.prototype=new g,ue.prototype.constructor=ue,ue.superclass=g.prototype;function ue(e){arguments.length>0&&this.init(e)}ue.prototype.init=function(e){this.b=!!e},ue.prototype.toString=function(){return this.b.toString()},ue.prototype.evaluate=function(e){return this},ue.prototype.string=function(){return new F(this.b)},ue.prototype.number=function(){return new V(this.b)},ue.prototype.bool=function(){return this},ue.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},ue.prototype.stringValue=function(){return this.string().stringValue()},ue.prototype.numberValue=function(){return this.number().numberValue()},ue.prototype.booleanValue=function(){return this.b},ue.prototype.not=function(){return new ue(!this.b)},ue.prototype.equals=function(e){return Ie.instance_of(e,F)||Ie.instance_of(e,V)?this.equals(e.bool()):Ie.instance_of(e,Ae)?e.compareWithBoolean(this,de.equals):new ue(this.b==e.b)},ue.prototype.notequal=function(e){return Ie.instance_of(e,F)||Ie.instance_of(e,V)?this.notequal(e.bool()):Ie.instance_of(e,Ae)?e.compareWithBoolean(this,de.notequal):new ue(this.b!=e.b)},ue.prototype.lessthan=function(e){return this.number().lessthan(e)},ue.prototype.greaterthan=function(e){return this.number().greaterthan(e)},ue.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},ue.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},ue.true_=new ue(!0),ue.false_=new ue(!1),we.prototype=new Object,we.prototype.constructor=we,we.superclass=Object.prototype;function we(e){this.init(e)}we.prototype.init=function(e){this.left=null,this.right=null,this.node=e,this.depth=1},we.prototype.balance=function(){var e=this.left==null?0:this.left.depth,n=this.right==null?0:this.right.depth;if(e>n+1){var N=this.left.left==null?0:this.left.left.depth,L=this.left.right==null?0:this.left.right.depth;N<L&&this.left.rotateRR(),this.rotateLL()}else if(e+1<n){var O=this.right.right==null?0:this.right.right.depth,d=this.right.left==null?0:this.right.left.depth;d>O&&this.right.rotateLL(),this.rotateRR()}},we.prototype.rotateLL=function(){var e=this.node,n=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=n,this.right.node=e,this.right.updateInNewLocation(),this.updateInNewLocation()},we.prototype.rotateRR=function(){var e=this.node,n=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=n,this.left.node=e,this.left.updateInNewLocation(),this.updateInNewLocation()},we.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},we.prototype.getDepthFromChildren=function(){this.depth=this.node==null?0:1,this.left!=null&&(this.depth=this.left.depth+1),this.right!=null&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)};function Gt(e,n){if(e===n)return 0;if(e.compareDocumentPosition){var N=e.compareDocumentPosition(n);return N&1||N&10?1:N&20?-1:0}for(var L=0,O=0,d=e;d!=null;d=d.parentNode||d.ownerElement)L++;for(var se=n;se!=null;se=se.parentNode||se.ownerElement)O++;if(L>O){for(;L>O;)e=e.parentNode||e.ownerElement,L--;if(e===n)return 1}else if(O>L){for(;O>L;)n=n.parentNode||n.ownerElement,O--;if(e===n)return-1}for(var he=e.parentNode||e.ownerElement,Me=n.parentNode||n.ownerElement;he!==Me;)e=he,n=Me,he=e.parentNode||e.ownerElement,Me=n.parentNode||n.ownerElement;var oe=Ft(e),Se=Ft(n);if(oe&&!Se)return-1;if(!oe&&Se)return 1;if(e.isXPathNamespace){if(e.nodeValue===ie.XML_NAMESPACE_URI||!n.isXPathNamespace)return-1;if(n.nodeValue===ie.XML_NAMESPACE_URI)return 1}else if(n.isXPathNamespace)return 1;if(he)for(var Ke=oe?he.attributes:he.childNodes,ze=Ke.length,He=e.baseNode||e,Tt=n.baseNode||n,tt=0;tt<ze;tt+=1){var ut=Ke[tt];if(ut===He)return-1;if(ut===Tt)return 1}throw new Error("Unexpected: could not determine node order")}we.prototype.add=function(e){if(e===this.node)return!1;var n=Gt(e,this.node),N=!1;return n==-1?this.left==null?(this.left=new we(e),N=!0):(N=this.left.add(e),N&&this.balance()):n==1&&(this.right==null?(this.right=new we(e),N=!0):(N=this.right.add(e),N&&this.balance())),N&&this.getDepthFromChildren(),N},Ae.prototype=new g,Ae.prototype.constructor=Ae,Ae.superclass=g.prototype;function Ae(){this.init()}Ae.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},Ae.prototype.toString=function(){var e=this.first();return e==null?"":this.stringForNode(e)},Ae.prototype.evaluate=function(e){return this},Ae.prototype.string=function(){return new F(this.toString())},Ae.prototype.stringValue=function(){return this.toString()},Ae.prototype.number=function(){return new V(this.string())},Ae.prototype.numberValue=function(){return Number(this.string())},Ae.prototype.bool=function(){return new ue(this.booleanValue())},Ae.prototype.booleanValue=function(){return!!this.size},Ae.prototype.nodeset=function(){return this},Ae.prototype.stringForNode=function(e){return e.nodeType==z.DOCUMENT_NODE||e.nodeType==z.ELEMENT_NODE||e.nodeType===z.DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(e):e.nodeType===z.ATTRIBUTE_NODE?e.value||e.nodeValue:e.isNamespaceNode?e.namespace:e.nodeValue},Ae.prototype.stringForContainerNode=function(e){for(var n="",N=e.firstChild;N!=null;N=N.nextSibling){var L=N.nodeType;(L===1||L===3||L===4||L===9||L===11)&&(n+=this.stringForNode(N))}return n},Ae.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new we(this.nodes[0]);for(var e=1;e<this.nodes.length;e+=1)this.tree.add(this.nodes[e])}return this.tree},Ae.prototype.first=function(){var e=this.buildTree();if(e==null)return null;for(;e.left!=null;)e=e.left;return e.node},Ae.prototype.add=function(e){for(var n=0;n<this.nodes.length;n+=1)if(e===this.nodes[n])return;this.tree=null,this.nodes.push(e),this.size+=1},Ae.prototype.addArray=function(e){var n=this;I(function(N){n.add(N)},e)},Ae.prototype.toArray=function(){var e=[];return this.toArrayRec(this.buildTree(),e),e},Ae.prototype.toArrayRec=function(e,n){e!=null&&(this.toArrayRec(e.left,n),n.push(e.node),this.toArrayRec(e.right,n))},Ae.prototype.toUnsortedArray=function(){return this.nodes.slice()},Ae.prototype.compareWithString=function(e,n){for(var N=this.toUnsortedArray(),L=0;L<N.length;L++){var O=N[L],d=new F(this.stringForNode(O)),se=n(d,e);if(se.booleanValue())return se}return new ue(!1)},Ae.prototype.compareWithNumber=function(e,n){for(var N=this.toUnsortedArray(),L=0;L<N.length;L++){var O=N[L],d=new V(this.stringForNode(O)),se=n(d,e);if(se.booleanValue())return se}return new ue(!1)},Ae.prototype.compareWithBoolean=function(e,n){return n(this.bool(),e)},Ae.prototype.compareWithNodeSet=function(e,n){for(var N=this.toUnsortedArray(),L=function(he,Me){return n(Me,he)},O=0;O<N.length;O++){var d=new F(this.stringForNode(N[O])),se=e.compareWithString(d,L);if(se.booleanValue())return se}return new ue(!1)},Ae.compareWith=C(function(e,n){return Ie.instance_of(n,F)?this.compareWithString(n,e):Ie.instance_of(n,V)?this.compareWithNumber(n,e):Ie.instance_of(n,ue)?this.compareWithBoolean(n,e):this.compareWithNodeSet(n,e)}),Ae.prototype.equals=Ae.compareWith(de.equals),Ae.prototype.notequal=Ae.compareWith(de.notequal),Ae.prototype.lessthan=Ae.compareWith(de.lessthan),Ae.prototype.greaterthan=Ae.compareWith(de.greaterthan),Ae.prototype.lessthanorequal=Ae.compareWith(de.lessthanorequal),Ae.prototype.greaterthanorequal=Ae.compareWith(de.greaterthanorequal),Ae.prototype.union=function(e){var n=new Ae;return n.addArray(this.toUnsortedArray()),n.addArray(e.toUnsortedArray()),n},nt.prototype=new Object,nt.prototype.constructor=nt,nt.superclass=Object.prototype;function nt(e,n,N,L){this.isXPathNamespace=!0,this.baseNode=n,this.ownerDocument=L.ownerDocument,this.nodeName=e,this.prefix=e,this.localName=e,this.namespaceURI=null,this.nodeValue=N,this.ownerElement=L,this.nodeType=z.NAMESPACE_NODE}nt.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},Ze.prototype=new Object,Ze.prototype.constructor=Ze,Ze.superclass=Object.prototype;function Ze(e,n,N){this.variableResolver=e??new et,this.namespaceResolver=n??new je,this.functionResolver=N??new Xe}Ze.prototype.extend=function(e){return Le(new Ze,this,e)},et.prototype=new Object,et.prototype.constructor=et,et.superclass=Object.prototype;function et(){}et.prototype.getVariable=function(e,n){return null},Xe.prototype=new Object,Xe.prototype.constructor=Xe,Xe.superclass=Object.prototype;function Xe(e){this.thisArg=e??De,this.functions=new Object,this.addStandardFunctions()}Xe.prototype.addStandardFunctions=function(){this.functions["{}last"]=De.last,this.functions["{}position"]=De.position,this.functions["{}count"]=De.count,this.functions["{}id"]=De.id,this.functions["{}local-name"]=De.localName,this.functions["{}namespace-uri"]=De.namespaceURI,this.functions["{}name"]=De.name,this.functions["{}string"]=De.string,this.functions["{}concat"]=De.concat,this.functions["{}starts-with"]=De.startsWith,this.functions["{}contains"]=De.contains,this.functions["{}substring-before"]=De.substringBefore,this.functions["{}substring-after"]=De.substringAfter,this.functions["{}substring"]=De.substring,this.functions["{}string-length"]=De.stringLength,this.functions["{}normalize-space"]=De.normalizeSpace,this.functions["{}translate"]=De.translate,this.functions["{}boolean"]=De.boolean_,this.functions["{}not"]=De.not,this.functions["{}true"]=De.true_,this.functions["{}false"]=De.false_,this.functions["{}lang"]=De.lang,this.functions["{}number"]=De.number,this.functions["{}sum"]=De.sum,this.functions["{}floor"]=De.floor,this.functions["{}ceiling"]=De.ceiling,this.functions["{}round"]=De.round},Xe.prototype.addFunction=function(e,n,N){this.functions["{"+e+"}"+n]=N},Xe.getFunctionFromContext=function(e,n){var N=Ie.resolveQName(e,n.namespaceResolver,n.contextNode,!1);if(N[0]===null)throw new Error("Cannot resolve QName "+name);return n.functionResolver.getFunction(N[1],N[0])},Xe.prototype.getFunction=function(e,n){return this.functions["{"+n+"}"+e]},je.prototype=new Object,je.prototype.constructor=je,je.superclass=Object.prototype;function je(){}je.prototype.getNamespace=function(e,n){if(e=="xml")return ie.XML_NAMESPACE_URI;if(e=="xmlns")return ie.XMLNS_NAMESPACE_URI;for(n.nodeType==z.DOCUMENT_NODE?n=n.documentElement:n.nodeType==z.ATTRIBUTE_NODE?n=f.getOwnerElement(n):n.nodeType!=z.ELEMENT_NODE&&(n=n.parentNode);n!=null&&n.nodeType==z.ELEMENT_NODE;){for(var N=n.attributes,L=0;L<N.length;L++){var O=N.item(L),d=O.name||O.nodeName;if(d==="xmlns"&&e===""||d==="xmlns:"+e)return String(O.value||O.nodeValue)}n=n.parentNode}return null};var De=new Object;De.last=function(e){if(arguments.length!=1)throw new Error("Function last expects ()");return new V(e.contextSize)},De.position=function(e){if(arguments.length!=1)throw new Error("Function position expects ()");return new V(e.contextPosition)},De.count=function(){var e=arguments[0],n;if(arguments.length!=2||!Ie.instance_of(n=arguments[1].evaluate(e),Ae))throw new Error("Function count expects (node-set)");return new V(n.size)},De.id=function(){var e=arguments[0],n;if(arguments.length!=2)throw new Error("Function id expects (object)");n=arguments[1].evaluate(e),Ie.instance_of(n,Ae)?n=n.toArray().join(" "):n=n.stringValue();for(var N=n.split(/[\x0d\x0a\x09\x20]+/),L=new Ae,O=e.contextNode.nodeType==z.DOCUMENT_NODE?e.contextNode:e.contextNode.ownerDocument,d=0;d<N.length;d++){var se;O.getElementById?se=O.getElementById(N[d]):se=Ie.getElementById(O,N[d]),se!=null&&L.add(se)}return L},De.localName=function(e,n){var N;if(arguments.length==1)N=e.contextNode;else if(arguments.length==2)N=n.evaluate(e).first();else throw new Error("Function local-name expects (node-set?)");return N==null?new F(""):new F(N.localName||N.baseName||N.target||N.nodeName||"")},De.namespaceURI=function(){var e=arguments[0],n;if(arguments.length==1)n=e.contextNode;else if(arguments.length==2)n=arguments[1].evaluate(e).first();else throw new Error("Function namespace-uri expects (node-set?)");return n==null?new F(""):new F(n.namespaceURI||"")},De.name=function(){var e=arguments[0],n;if(arguments.length==1)n=e.contextNode;else if(arguments.length==2)n=arguments[1].evaluate(e).first();else throw new Error("Function name expects (node-set?)");return n==null?new F(""):n.nodeType==z.ELEMENT_NODE?new F(n.nodeName):n.nodeType==z.ATTRIBUTE_NODE?new F(n.name||n.nodeName):n.nodeType===z.PROCESSING_INSTRUCTION_NODE?new F(n.target||n.nodeName):n.localName==null?new F(""):new F(n.localName)},De.string=function(){var e=arguments[0];if(arguments.length==1)return new F(Ae.prototype.stringForNode(e.contextNode));if(arguments.length==2)return arguments[1].evaluate(e).string();throw new Error("Function string expects (object?)")},De.concat=function(e){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var n="",N=1;N<arguments.length;N++)n+=arguments[N].evaluate(e).stringValue();return new F(n)},De.startsWith=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function startsWith expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new ue(n.substring(0,N.length)==N)},De.contains=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function contains expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new ue(n.indexOf(N)!==-1)},De.substringBefore=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function substring-before expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();return new F(n.substring(0,n.indexOf(N)))},De.substringAfter=function(){var e=arguments[0];if(arguments.length!=3)throw new Error("Function substring-after expects (string, string)");var n=arguments[1].evaluate(e).stringValue(),N=arguments[2].evaluate(e).stringValue();if(N.length==0)return new F(n);var L=n.indexOf(N);return L==-1?new F(""):new F(n.substring(L+N.length))},De.substring=function(){var e=arguments[0];if(!(arguments.length==3||arguments.length==4))throw new Error("Function substring expects (string, number, number?)");var n=arguments[1].evaluate(e).stringValue(),N=Math.round(arguments[2].evaluate(e).numberValue())-1,L=arguments.length==4?N+Math.round(arguments[3].evaluate(e).numberValue()):void 0;return new F(n.substring(N,L))},De.stringLength=function(){var e=arguments[0],n;if(arguments.length==1)n=Ae.prototype.stringForNode(e.contextNode);else if(arguments.length==2)n=arguments[1].evaluate(e).stringValue();else throw new Error("Function string-length expects (string?)");return new V(n.length)},De.normalizeSpace=function(){var e=arguments[0],n;if(arguments.length==1)n=Ae.prototype.stringForNode(e.contextNode);else if(arguments.length==2)n=arguments[1].evaluate(e).stringValue();else throw new Error("Function normalize-space expects (string?)");for(var N=0,L=n.length-1;Ie.isSpace(n.charCodeAt(L));)L--;for(var O="";N<=L&&Ie.isSpace(n.charCodeAt(N));)N++;for(;N<=L;)if(Ie.isSpace(n.charCodeAt(N)))for(O+=" ";N<=L&&Ie.isSpace(n.charCodeAt(N));)N++;else O+=n.charAt(N),N++;return new F(O)},De.translate=function(e,n,N,L){if(arguments.length!=4)throw new Error("Function translate expects (string, string, string)");var O=n.evaluate(e).stringValue(),d=N.evaluate(e).stringValue(),se=L.evaluate(e).stringValue(),he=A(function(oe,Se,Ke){return Se in oe||(oe[Se]=Ke>se.length?"":se[Ke]),oe},{},d),Me=J("",u(function(oe){return oe in he?he[oe]:oe},O));return new F(Me)},De.boolean_=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(e).bool()},De.not=function(e,n){if(arguments.length!=2)throw new Error("Function not expects (object)");return n.evaluate(e).bool().not()},De.true_=function(){if(arguments.length!=1)throw new Error("Function true expects ()");return ue.true_},De.false_=function(){if(arguments.length!=1)throw new Error("Function false expects ()");return ue.false_},De.lang=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function lang expects (string)");for(var n,N=e.contextNode;N!=null&&N.nodeType!=z.DOCUMENT_NODE;N=N.parentNode){var L=N.getAttributeNS(ie.XML_NAMESPACE_URI,"lang");if(L!=null){n=String(L);break}}if(n==null)return ue.false_;var O=arguments[1].evaluate(e).stringValue();return new ue(n.substring(0,O.length)==O&&(n.length==O.length||n.charAt(O.length)=="-"))},De.number=function(){var e=arguments[0];if(!(arguments.length==1||arguments.length==2))throw new Error("Function number expects (object?)");return arguments.length==1?new V(Ae.prototype.stringForNode(e.contextNode)):arguments[1].evaluate(e).number()},De.sum=function(){var e=arguments[0],n;if(arguments.length!=2||!Ie.instance_of(n=arguments[1].evaluate(e),Ae))throw new Error("Function sum expects (node-set)");n=n.toUnsortedArray();for(var N=0,L=0;L<n.length;L++)N+=new V(Ae.prototype.stringForNode(n[L])).numberValue();return new V(N)},De.floor=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function floor expects (number)");return new V(Math.floor(arguments[1].evaluate(e).numberValue()))},De.ceiling=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function ceiling expects (number)");return new V(Math.ceil(arguments[1].evaluate(e).numberValue()))},De.round=function(){var e=arguments[0];if(arguments.length!=2)throw new Error("Function round expects (number)");return new V(Math.round(arguments[1].evaluate(e).numberValue()))};var Ie=new Object,Ft=function(e){return e&&(e.nodeType===z.ATTRIBUTE_NODE||e.ownerElement||e.isXPathNamespace)};Ie.splitQName=function(e){var n=e.indexOf(":");return n==-1?[null,e]:[e.substring(0,n),e.substring(n+1)]},Ie.resolveQName=function(e,n,N,L){var O=Ie.splitQName(e);return O[0]!=null?O[0]=n.getNamespace(O[0],N):L?(O[0]=n.getNamespace("",N),O[0]==null&&(O[0]="")):O[0]="",O},Ie.isSpace=function(e){return e==9||e==13||e==10||e==32},Ie.isLetter=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=255||e>=256&&e<=305||e>=308&&e<=318||e>=321&&e<=328||e>=330&&e<=382||e>=384&&e<=451||e>=461&&e<=496||e>=500&&e<=501||e>=506&&e<=535||e>=592&&e<=680||e>=699&&e<=705||e==902||e>=904&&e<=906||e==908||e>=910&&e<=929||e>=931&&e<=974||e>=976&&e<=982||e==986||e==988||e==990||e==992||e>=994&&e<=1011||e>=1025&&e<=1036||e>=1038&&e<=1103||e>=1105&&e<=1116||e>=1118&&e<=1153||e>=1168&&e<=1220||e>=1223&&e<=1224||e>=1227&&e<=1228||e>=1232&&e<=1259||e>=1262&&e<=1269||e>=1272&&e<=1273||e>=1329&&e<=1366||e==1369||e>=1377&&e<=1414||e>=1488&&e<=1514||e>=1520&&e<=1522||e>=1569&&e<=1594||e>=1601&&e<=1610||e>=1649&&e<=1719||e>=1722&&e<=1726||e>=1728&&e<=1742||e>=1744&&e<=1747||e==1749||e>=1765&&e<=1766||e>=2309&&e<=2361||e==2365||e>=2392&&e<=2401||e>=2437&&e<=2444||e>=2447&&e<=2448||e>=2451&&e<=2472||e>=2474&&e<=2480||e==2482||e>=2486&&e<=2489||e>=2524&&e<=2525||e>=2527&&e<=2529||e>=2544&&e<=2545||e>=2565&&e<=2570||e>=2575&&e<=2576||e>=2579&&e<=2600||e>=2602&&e<=2608||e>=2610&&e<=2611||e>=2613&&e<=2614||e>=2616&&e<=2617||e>=2649&&e<=2652||e==2654||e>=2674&&e<=2676||e>=2693&&e<=2699||e==2701||e>=2703&&e<=2705||e>=2707&&e<=2728||e>=2730&&e<=2736||e>=2738&&e<=2739||e>=2741&&e<=2745||e==2749||e==2784||e>=2821&&e<=2828||e>=2831&&e<=2832||e>=2835&&e<=2856||e>=2858&&e<=2864||e>=2866&&e<=2867||e>=2870&&e<=2873||e==2877||e>=2908&&e<=2909||e>=2911&&e<=2913||e>=2949&&e<=2954||e>=2958&&e<=2960||e>=2962&&e<=2965||e>=2969&&e<=2970||e==2972||e>=2974&&e<=2975||e>=2979&&e<=2980||e>=2984&&e<=2986||e>=2990&&e<=2997||e>=2999&&e<=3001||e>=3077&&e<=3084||e>=3086&&e<=3088||e>=3090&&e<=3112||e>=3114&&e<=3123||e>=3125&&e<=3129||e>=3168&&e<=3169||e>=3205&&e<=3212||e>=3214&&e<=3216||e>=3218&&e<=3240||e>=3242&&e<=3251||e>=3253&&e<=3257||e==3294||e>=3296&&e<=3297||e>=3333&&e<=3340||e>=3342&&e<=3344||e>=3346&&e<=3368||e>=3370&&e<=3385||e>=3424&&e<=3425||e>=3585&&e<=3630||e==3632||e>=3634&&e<=3635||e>=3648&&e<=3653||e>=3713&&e<=3714||e==3716||e>=3719&&e<=3720||e==3722||e==3725||e>=3732&&e<=3735||e>=3737&&e<=3743||e>=3745&&e<=3747||e==3749||e==3751||e>=3754&&e<=3755||e>=3757&&e<=3758||e==3760||e>=3762&&e<=3763||e==3773||e>=3776&&e<=3780||e>=3904&&e<=3911||e>=3913&&e<=3945||e>=4256&&e<=4293||e>=4304&&e<=4342||e==4352||e>=4354&&e<=4355||e>=4357&&e<=4359||e==4361||e>=4363&&e<=4364||e>=4366&&e<=4370||e==4412||e==4414||e==4416||e==4428||e==4430||e==4432||e>=4436&&e<=4437||e==4441||e>=4447&&e<=4449||e==4451||e==4453||e==4455||e==4457||e>=4461&&e<=4462||e>=4466&&e<=4467||e==4469||e==4510||e==4520||e==4523||e>=4526&&e<=4527||e>=4535&&e<=4536||e==4538||e>=4540&&e<=4546||e==4587||e==4592||e==4601||e>=7680&&e<=7835||e>=7840&&e<=7929||e>=7936&&e<=7957||e>=7960&&e<=7965||e>=7968&&e<=8005||e>=8008&&e<=8013||e>=8016&&e<=8023||e==8025||e==8027||e==8029||e>=8031&&e<=8061||e>=8064&&e<=8116||e>=8118&&e<=8124||e==8126||e>=8130&&e<=8132||e>=8134&&e<=8140||e>=8144&&e<=8147||e>=8150&&e<=8155||e>=8160&&e<=8172||e>=8178&&e<=8180||e>=8182&&e<=8188||e==8486||e>=8490&&e<=8491||e==8494||e>=8576&&e<=8578||e>=12353&&e<=12436||e>=12449&&e<=12538||e>=12549&&e<=12588||e>=44032&&e<=55203||e>=19968&&e<=40869||e==12295||e>=12321&&e<=12329},Ie.isNCNameChar=function(e){return e>=48&&e<=57||e>=1632&&e<=1641||e>=1776&&e<=1785||e>=2406&&e<=2415||e>=2534&&e<=2543||e>=2662&&e<=2671||e>=2790&&e<=2799||e>=2918&&e<=2927||e>=3047&&e<=3055||e>=3174&&e<=3183||e>=3302&&e<=3311||e>=3430&&e<=3439||e>=3664&&e<=3673||e>=3792&&e<=3801||e>=3872&&e<=3881||e==46||e==45||e==95||Ie.isLetter(e)||e>=768&&e<=837||e>=864&&e<=865||e>=1155&&e<=1158||e>=1425&&e<=1441||e>=1443&&e<=1465||e>=1467&&e<=1469||e==1471||e>=1473&&e<=1474||e==1476||e>=1611&&e<=1618||e==1648||e>=1750&&e<=1756||e>=1757&&e<=1759||e>=1760&&e<=1764||e>=1767&&e<=1768||e>=1770&&e<=1773||e>=2305&&e<=2307||e==2364||e>=2366&&e<=2380||e==2381||e>=2385&&e<=2388||e>=2402&&e<=2403||e>=2433&&e<=2435||e==2492||e==2494||e==2495||e>=2496&&e<=2500||e>=2503&&e<=2504||e>=2507&&e<=2509||e==2519||e>=2530&&e<=2531||e==2562||e==2620||e==2622||e==2623||e>=2624&&e<=2626||e>=2631&&e<=2632||e>=2635&&e<=2637||e>=2672&&e<=2673||e>=2689&&e<=2691||e==2748||e>=2750&&e<=2757||e>=2759&&e<=2761||e>=2763&&e<=2765||e>=2817&&e<=2819||e==2876||e>=2878&&e<=2883||e>=2887&&e<=2888||e>=2891&&e<=2893||e>=2902&&e<=2903||e>=2946&&e<=2947||e>=3006&&e<=3010||e>=3014&&e<=3016||e>=3018&&e<=3021||e==3031||e>=3073&&e<=3075||e>=3134&&e<=3140||e>=3142&&e<=3144||e>=3146&&e<=3149||e>=3157&&e<=3158||e>=3202&&e<=3203||e>=3262&&e<=3268||e>=3270&&e<=3272||e>=3274&&e<=3277||e>=3285&&e<=3286||e>=3330&&e<=3331||e>=3390&&e<=3395||e>=3398&&e<=3400||e>=3402&&e<=3405||e==3415||e==3633||e>=3636&&e<=3642||e>=3655&&e<=3662||e==3761||e>=3764&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=3864&&e<=3865||e==3893||e==3895||e==3897||e==3902||e==3903||e>=3953&&e<=3972||e>=3974&&e<=3979||e>=3984&&e<=3989||e==3991||e>=3993&&e<=4013||e>=4017&&e<=4023||e==4025||e>=8400&&e<=8412||e==8417||e>=12330&&e<=12335||e==12441||e==12442||e==183||e==720||e==721||e==903||e==1600||e==3654||e==3782||e==12293||e>=12337&&e<=12341||e>=12445&&e<=12446||e>=12540&&e<=12542},Ie.coalesceText=function(e){for(var n=e.firstChild;n!=null;n=n.nextSibling)if(n.nodeType==z.TEXT_NODE||n.nodeType==z.CDATA_SECTION_NODE){var N=n.nodeValue,L=n;for(n=n.nextSibling;n!=null&&(n.nodeType==z.TEXT_NODE||n.nodeType==z.CDATA_SECTION_NODE);){N+=n.nodeValue;var O=n;n=n.nextSibling,O.parentNode.removeChild(O)}if(L.nodeType==z.CDATA_SECTION_NODE){var d=L.parentNode;if(L.nextSibling==null)d.removeChild(L),d.appendChild(d.ownerDocument.createTextNode(N));else{var se=L.nextSibling;d.removeChild(L),d.insertBefore(d.ownerDocument.createTextNode(N),se)}}else L.nodeValue=N;if(n==null)break}else n.nodeType==z.ELEMENT_NODE&&Ie.coalesceText(n)},Ie.instance_of=function(e,n){for(;e!=null;){if(e.constructor===n)return!0;if(e===Object)return!1;e=e.constructor.superclass}return!1},Ie.getElementById=function(e,n){if(e.nodeType==z.ELEMENT_NODE&&(e.getAttribute("id")==n||e.getAttributeNS(null,"id")==n))return e;for(var N=e.firstChild;N!=null;N=N.nextSibling){var L=Ie.getElementById(N,n);if(L!=null)return L}return null};var qe=function(){function e(N,L){var O=L?": "+L.toString():"";switch(N){case n.INVALID_EXPRESSION_ERR:return"Invalid expression"+O;case n.TYPE_ERR:return"Type error"+O}return null}function n(N,L,O){var d=Error.call(this,e(N,L)||O);return d.code=N,d.exception=L,d}return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.superclass=Error,n.prototype.toString=function(){return this.message},n.fromMessage=function(N,L){return new n(null,L,N)},n.INVALID_EXPRESSION_ERR=51,n.TYPE_ERR=52,n}();We.prototype={},We.prototype.constructor=We,We.superclass=Object.prototype;function We(e,n,N){this.xpath=N.parse(e),this.context=new Ze,this.context.namespaceResolver=new Rt(n)}We.getOwnerDocument=function(e){return e.nodeType===z.DOCUMENT_NODE?e:e.ownerDocument},We.detectHtmlDom=function(e){if(!e)return!1;var n=We.getOwnerDocument(e);try{return n.implementation.hasFeature("HTML","2.0")}catch{return!0}},We.prototype.evaluate=function(e,n,N){this.context.expressionContextNode=e,this.context.caseInsensitive=We.detectHtmlDom(e);var L=this.xpath.evaluate(this.context);return new fe(L,n)},Rt.prototype={},Rt.prototype.constructor=Rt,Rt.superclass=Object.prototype;function Rt(e){this.xpathNSResolver=e}Rt.prototype.getNamespace=function(e,n){return this.xpathNSResolver==null?null:this.xpathNSResolver.lookupNamespaceURI(e)},st.prototype={},st.prototype.constructor=st,st.superclass=Object.prototype;function st(e){this.node=e,this.namespaceResolver=new je}st.prototype.lookupNamespaceURI=function(e){return this.namespaceResolver.getNamespace(e,this.node)},fe.prototype={},fe.prototype.constructor=fe,fe.superclass=Object.prototype;function fe(e,n){switch(n==fe.ANY_TYPE&&(e.constructor===F?n=fe.STRING_TYPE:e.constructor===V?n=fe.NUMBER_TYPE:e.constructor===ue?n=fe.BOOLEAN_TYPE:e.constructor===Ae&&(n=fe.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=n,n){case fe.NUMBER_TYPE:this.numberValue=e.numberValue();return;case fe.STRING_TYPE:this.stringValue=e.stringValue();return;case fe.BOOLEAN_TYPE:this.booleanValue=e.booleanValue();return;case fe.ANY_UNORDERED_NODE_TYPE:case fe.FIRST_ORDERED_NODE_TYPE:if(e.constructor===Ae){this.singleNodeValue=e.first();return}break;case fe.UNORDERED_NODE_ITERATOR_TYPE:case fe.ORDERED_NODE_ITERATOR_TYPE:if(e.constructor===Ae){this.invalidIteratorState=!1,this.nodes=e.toArray(),this.iteratorIndex=0;return}break;case fe.UNORDERED_NODE_SNAPSHOT_TYPE:case fe.ORDERED_NODE_SNAPSHOT_TYPE:if(e.constructor===Ae){this.nodes=e.toArray(),this.snapshotLength=this.nodes.length;return}break}throw new qe(qe.TYPE_ERR)}fe.prototype.iterateNext=function(){if(this.resultType!=fe.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=fe.ORDERED_NODE_ITERATOR_TYPE)throw new qe(qe.TYPE_ERR);return this.nodes[this.iteratorIndex++]},fe.prototype.snapshotItem=function(e){if(this.resultType!=fe.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=fe.ORDERED_NODE_SNAPSHOT_TYPE)throw new qe(qe.TYPE_ERR);return this.nodes[e]},fe.ANY_TYPE=0,fe.NUMBER_TYPE=1,fe.STRING_TYPE=2,fe.BOOLEAN_TYPE=3,fe.UNORDERED_NODE_ITERATOR_TYPE=4,fe.ORDERED_NODE_ITERATOR_TYPE=5,fe.UNORDERED_NODE_SNAPSHOT_TYPE=6,fe.ORDERED_NODE_SNAPSHOT_TYPE=7,fe.ANY_UNORDERED_NODE_TYPE=8,fe.FIRST_ORDERED_NODE_TYPE=9;function i(e,n){e.createExpression=function(N,L){try{return new We(N,L,n)}catch(O){throw new qe(qe.INVALID_EXPRESSION_ERR,O)}},e.createNSResolver=function(N){return new st(N)},e.evaluate=function(N,L,O,d,se){if(d<0||d>9)throw{code:0,toString:function(){return"Request type not supported"}};return e.createExpression(N,O,n).evaluate(L,d,se)}}try{var S=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(S=!1)}catch{}S&&i(document,new D)}catch{}i(r,new D),function(){var e=new D,n=new je,N=new Xe,L=new et;function O(re){return{getNamespace:function(ye,Je){var lt=re(ye,Je);return lt||n.getNamespace(ye,Je)}}}function d(re){return O(re.getNamespace.bind(re))}function se(re){return O(function(ye){return re[ye]})}function he(re){return re&&typeof re.getNamespace=="function"?d(re):typeof re=="function"?O(re):typeof re=="object"?se(re):n}function Me(re){if(re===null||typeof re>"u"||re instanceof F||re instanceof ue||re instanceof V||re instanceof Ae)return re;switch(typeof re){case"string":return new F(re);case"boolean":return new ue(re);case"number":return new V(re)}var ye=new Ae;return ye.addArray([].concat(re)),ye}function oe(re){return function(ye){var Je=Array.prototype.slice.call(arguments,1).map(function(AS){return AS.evaluate(ye)}),lt=re.apply(this,[].concat(ye,Je));return Me(lt)}}function Se(re){return{getFunction:function(ye,Je){var lt=re(ye,Je);return lt?oe(lt):N.getFunction(ye,Je)}}}function Ke(re){return Se(re.getFunction.bind(re))}function ze(re){return Se(function(ye){return re[ye]})}function He(re){return re&&typeof re.getFunction=="function"?Ke(re):typeof re=="function"?Se(re):typeof re=="object"?ze(re):N}function Tt(re){return{getVariable:function(ye,Je){var lt=re(ye,Je);return Me(lt)}}}function tt(re){if(re){if(typeof re.getVariable=="function")return Tt(re.getVariable.bind(re));if(typeof re=="function")return Tt(re);if(typeof re=="object")return Tt(function(ye){return re[ye]})}return L}function ut(re,ye,Je){re in Je&&(ye[re]=Je[re])}function sS(re){var ye=new Ze;return re?(ye.namespaceResolver=he(re.namespaces),ye.functionResolver=He(re.functions),ye.variableResolver=tt(re.variables),ye.expressionContextNode=re.node,ut("allowAnyNamespaceForNoPrefix",ye,re),ut("isHtml",ye,re)):ye.namespaceResolver=n,ye}function TS(re,ye){var Je=sS(ye);return re.evaluate(Je)}var oS={evaluate:function(re){return TS(this.expression,re)},evaluateNumber:function(re){return this.evaluate(re).numberValue()},evaluateString:function(re){return this.evaluate(re).stringValue()},evaluateBoolean:function(re){return this.evaluate(re).booleanValue()},evaluateNodeSet:function(re){return this.evaluate(re).nodeset()},select:function(re){return this.evaluateNodeSet(re).toArray()},select1:function(re){return this.select(re)[0]}};function aS(re){var ye=e.parse(re);return Object.create(oS,{expression:{value:ye}})}r.parse=aS}(),Le(r,{XPath:ie,XPathParser:D,XPathResult:fe,Step:$,PathExpr:f,NodeTest:c,LocationPath:Ne,OrOperation:ae,AndOperation:ce,BarOperation:k,EqualsOperation:pe,NotEqualOperation:x,LessThanOperation:Z,GreaterThanOperation:Oe,LessThanOrEqualOperation:me,GreaterThanOrEqualOperation:Te,PlusOperation:v,MinusOperation:p,MultiplyOperation:m,DivOperation:P,ModOperation:B,UnaryMinusOperation:X,FunctionCall:Be,VariableReference:ne,XPathContext:Ze,XNodeSet:Ae,XBoolean:ue,XString:F,XNumber:V,NamespaceResolver:je,FunctionResolver:Xe,VariableResolver:et,Utilities:Ie}),r.select=function(e,n,N){return r.selectWithResolver(e,n,null,N)},r.useNamespaces=function(e){var n={mappings:e||{},lookupNamespaceURI:function(N){return this.mappings[N]}};return function(N,L,O){return r.selectWithResolver(N,L,n,O)}},r.selectWithResolver=function(e,n,N,L){var O=new We(e,N,new D),d=fe.ANY_TYPE,se=O.evaluate(n,d,null);return se.resultType==fe.STRING_TYPE?se=se.stringValue:se.resultType==fe.NUMBER_TYPE?se=se.numberValue:se.resultType==fe.BOOLEAN_TYPE?se=se.booleanValue:(se=se.nodes,L&&(se=se[0])),se},r.select1=function(e,n){return r.select(e,n,!0)};var _=function(e){return Array.isArray(e)&&e.every(R)},G=function(e){return function(n){return R(n)&&n.nodeType===e}};Le(r,{isNodeLike:R,isArrayOfNodes:_,isElement:G(z.ELEMENT_NODE),isAttribute:G(z.ATTRIBUTE_NODE),isTextNode:G(z.TEXT_NODE),isCDATASection:G(z.CDATA_SECTION_NODE),isProcessingInstruction:G(z.PROCESSING_INSTRUCTION_NODE),isComment:G(z.COMMENT_NODE),isDocumentNode:G(z.DOCUMENT_NODE),isDocumentTypeNode:G(z.DOCUMENT_TYPE_NODE),isDocumentFragment:G(z.DOCUMENT_FRAGMENT_NODE)})})(t)}(qt)),qt}var xn=bn();const Yn=mE(xn);var Ut={},at={},Ct={},gE;function Ht(){if(gE)return Ct;gE=1;function E(a,R,C){if(C===void 0&&(C=Array.prototype),a&&typeof C.find=="function")return C.find.call(a,R);for(var I=0;I<a.length;I++)if(Object.prototype.hasOwnProperty.call(a,I)){var A=a[I];if(R.call(void 0,A,I,a))return A}}function t(a,R){return R===void 0&&(R=Object),R&&typeof R.freeze=="function"?R.freeze(a):a}function r(a,R){if(a===null||typeof a!="object")throw new TypeError("target is not an object");for(var C in R)Object.prototype.hasOwnProperty.call(R,C)&&(a[C]=R[C]);return a}var s=t({HTML:"text/html",isHTML:function(a){return a===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),T=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===T.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Ct.assign=r,Ct.find=E,Ct.freeze=t,Ct.MIME_TYPE=s,Ct.NAMESPACE=T,Ct}var yE;function GE(){if(yE)return at;yE=1;var E=Ht(),t=E.find,r=E.NAMESPACE;function s(i){return i!==""}function T(i){return i?i.split(/[\t\n\f\r ]+/).filter(s):[]}function a(i,S){return i.hasOwnProperty(S)||(i[S]=!0),i}function R(i){if(!i)return[];var S=T(i);return Object.keys(S.reduce(a,{}))}function C(i){return function(S){return i&&i.indexOf(S)!==-1}}function I(i,S){for(var _ in i)Object.prototype.hasOwnProperty.call(i,_)&&(S[_]=i[_])}function A(i,S){var _=i.prototype;if(!(_ instanceof S)){let G=function(){};G.prototype=S.prototype,G=new G,I(_,G),i.prototype=_=G}_.constructor!=i&&(typeof i!="function"&&console.error("unknown Class:"+i),_.constructor=i)}var u={},l=u.ELEMENT_NODE=1,h=u.ATTRIBUTE_NODE=2,M=u.TEXT_NODE=3,b=u.CDATA_SECTION_NODE=4,J=u.ENTITY_REFERENCE_NODE=5,U=u.ENTITY_NODE=6,ee=u.PROCESSING_INSTRUCTION_NODE=7,te=u.COMMENT_NODE=8,q=u.DOCUMENT_NODE=9,_e=u.DOCUMENT_TYPE_NODE=10,Le=u.DOCUMENT_FRAGMENT_NODE=11,z=u.NOTATION_NODE=12,D={},ie={};D.INDEX_SIZE_ERR=(ie[1]="Index size error",1),D.DOMSTRING_SIZE_ERR=(ie[2]="DOMString size error",2);var H=D.HIERARCHY_REQUEST_ERR=(ie[3]="Hierarchy request error",3);D.WRONG_DOCUMENT_ERR=(ie[4]="Wrong document",4),D.INVALID_CHARACTER_ERR=(ie[5]="Invalid character",5),D.NO_DATA_ALLOWED_ERR=(ie[6]="No data allowed",6),D.NO_MODIFICATION_ALLOWED_ERR=(ie[7]="No modification allowed",7);var g=D.NOT_FOUND_ERR=(ie[8]="Not found",8);D.NOT_SUPPORTED_ERR=(ie[9]="Not supported",9);var Q=D.INUSE_ATTRIBUTE_ERR=(ie[10]="Attribute in use",10);D.INVALID_STATE_ERR=(ie[11]="Invalid state",11),D.SYNTAX_ERR=(ie[12]="Syntax error",12),D.INVALID_MODIFICATION_ERR=(ie[13]="Invalid modification",13),D.NAMESPACE_ERR=(ie[14]="Invalid namespace",14),D.INVALID_ACCESS_ERR=(ie[15]="Invalid access",15);function X(i,S){if(S instanceof Error)var _=S;else _=this,Error.call(this,ie[i]),this.message=ie[i],Error.captureStackTrace&&Error.captureStackTrace(this,X);return _.code=i,S&&(this.message=this.message+": "+S),_}X.prototype=Error.prototype,I(D,X);function K(){}K.prototype={length:0,item:function(i){return i>=0&&i<this.length?this[i]:null},toString:function(i,S){for(var _=[],G=0;G<this.length;G++)We(this[G],_,i,S);return _.join("")},filter:function(i){return Array.prototype.filter.call(this,i)},indexOf:function(i){return Array.prototype.indexOf.call(this,i)}};function ae(i,S){this._node=i,this._refresh=S,ce(this)}function ce(i){var S=i._node._inc||i._node.ownerDocument._inc;if(i._inc!==S){var _=i._refresh(i._node);if(fe(i,"length",_.length),!i.$$length||_.length<i.$$length)for(var G=_.length;G in i;G++)Object.prototype.hasOwnProperty.call(i,G)&&delete i[G];I(_,i),i._inc=S}}ae.prototype.item=function(i){return ce(this),this[i]||null},A(ae,K);function pe(){}function x(i,S){for(var _=i.length;_--;)if(i[_]===S)return _}function Z(i,S,_,G){if(G?S[x(S,G)]=_:S[S.length++]=_,i){_.ownerElement=i;var e=i.ownerDocument;e&&(G&&B(e,i,G),P(e,i,_))}}function Oe(i,S,_){var G=x(S,_);if(G>=0){for(var e=S.length-1;G<e;)S[G]=S[++G];if(S.length=e,i){var n=i.ownerDocument;n&&(B(n,i,_),_.ownerElement=null)}}else throw new X(g,new Error(i.tagName+"@"+_))}pe.prototype={length:0,item:K.prototype.item,getNamedItem:function(i){for(var S=this.length;S--;){var _=this[S];if(_.nodeName==i)return _}},setNamedItem:function(i){var S=i.ownerElement;if(S&&S!=this._ownerElement)throw new X(Q);var _=this.getNamedItem(i.nodeName);return Z(this._ownerElement,this,i,_),_},setNamedItemNS:function(i){var S=i.ownerElement,_;if(S&&S!=this._ownerElement)throw new X(Q);return _=this.getNamedItemNS(i.namespaceURI,i.localName),Z(this._ownerElement,this,i,_),_},removeNamedItem:function(i){var S=this.getNamedItem(i);return Oe(this._ownerElement,this,S),S},removeNamedItemNS:function(i,S){var _=this.getNamedItemNS(i,S);return Oe(this._ownerElement,this,_),_},getNamedItemNS:function(i,S){for(var _=this.length;_--;){var G=this[_];if(G.localName==S&&G.namespaceURI==i)return G}return null}};function me(){}me.prototype={hasFeature:function(i,S){return!0},createDocument:function(i,S,_){var G=new m;if(G.implementation=this,G.childNodes=new K,G.doctype=_||null,_&&G.appendChild(_),S){var e=G.createElementNS(i,S);G.appendChild(e)}return G},createDocumentType:function(i,S,_){var G=new Ae;return G.name=i,G.nodeName=i,G.publicId=S||"",G.systemId=_||"",G}};function Te(){}Te.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(i,S){return Be(this,i,S)},replaceChild:function(i,S){Be(this,i,S,ne),S&&this.removeChild(S)},removeChild:function(i){return f(this,i)},appendChild:function(i){return this.insertBefore(i,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(i){return st(this.ownerDocument||this,this,i)},normalize:function(){for(var i=this.firstChild;i;){var S=i.nextSibling;S&&S.nodeType==M&&i.nodeType==M?(this.removeChild(S),i.appendData(S.data)):(i.normalize(),i=S)}},isSupported:function(i,S){return this.ownerDocument.implementation.hasFeature(i,S)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(i){for(var S=this;S;){var _=S._nsMap;if(_){for(var G in _)if(Object.prototype.hasOwnProperty.call(_,G)&&_[G]===i)return G}S=S.nodeType==h?S.ownerDocument:S.parentNode}return null},lookupNamespaceURI:function(i){for(var S=this;S;){var _=S._nsMap;if(_&&Object.prototype.hasOwnProperty.call(_,i))return _[i];S=S.nodeType==h?S.ownerDocument:S.parentNode}return null},isDefaultNamespace:function(i){var S=this.lookupPrefix(i);return S==null}};function v(i){return i=="<"&&"&lt;"||i==">"&&"&gt;"||i=="&"&&"&amp;"||i=='"'&&"&quot;"||"&#"+i.charCodeAt()+";"}I(u,Te),I(u,Te.prototype);function p(i,S){if(S(i))return!0;if(i=i.firstChild)do if(p(i,S))return!0;while(i=i.nextSibling)}function m(){this.ownerDocument=this}function P(i,S,_){i&&i._inc++;var G=_.namespaceURI;G===r.XMLNS&&(S._nsMap[_.prefix?_.localName:""]=_.value)}function B(i,S,_,G){i&&i._inc++;var e=_.namespaceURI;e===r.XMLNS&&delete S._nsMap[_.prefix?_.localName:""]}function k(i,S,_){if(i&&i._inc){i._inc++;var G=S.childNodes;if(_)G[G.length++]=_;else{for(var e=S.firstChild,n=0;e;)G[n++]=e,e=e.nextSibling;G.length=n,delete G[G.length]}}}function f(i,S){var _=S.previousSibling,G=S.nextSibling;return _?_.nextSibling=G:i.firstChild=G,G?G.previousSibling=_:i.lastChild=_,S.parentNode=null,S.previousSibling=null,S.nextSibling=null,k(i.ownerDocument,i),S}function j(i){return i&&(i.nodeType===Te.DOCUMENT_NODE||i.nodeType===Te.DOCUMENT_FRAGMENT_NODE||i.nodeType===Te.ELEMENT_NODE)}function Ee(i){return i&&(le(i)||Ue(i)||Re(i)||i.nodeType===Te.DOCUMENT_FRAGMENT_NODE||i.nodeType===Te.COMMENT_NODE||i.nodeType===Te.PROCESSING_INSTRUCTION_NODE)}function Re(i){return i&&i.nodeType===Te.DOCUMENT_TYPE_NODE}function le(i){return i&&i.nodeType===Te.ELEMENT_NODE}function Ue(i){return i&&i.nodeType===Te.TEXT_NODE}function Ne(i,S){var _=i.childNodes||[];if(t(_,le)||Re(S))return!1;var G=t(_,Re);return!(S&&G&&_.indexOf(G)>_.indexOf(S))}function $(i,S){var _=i.childNodes||[];function G(n){return le(n)&&n!==S}if(t(_,G))return!1;var e=t(_,Re);return!(S&&e&&_.indexOf(e)>_.indexOf(S))}function ge(i,S,_){if(!j(i))throw new X(H,"Unexpected parent node type "+i.nodeType);if(_&&_.parentNode!==i)throw new X(g,"child not in parent");if(!Ee(S)||Re(S)&&i.nodeType!==Te.DOCUMENT_NODE)throw new X(H,"Unexpected node type "+S.nodeType+" for parent node type "+i.nodeType)}function c(i,S,_){var G=i.childNodes||[],e=S.childNodes||[];if(S.nodeType===Te.DOCUMENT_FRAGMENT_NODE){var n=e.filter(le);if(n.length>1||t(e,Ue))throw new X(H,"More than one element or text in fragment");if(n.length===1&&!Ne(i,_))throw new X(H,"Element in fragment can not be inserted before doctype")}if(le(S)&&!Ne(i,_))throw new X(H,"Only one element can be added and only after doctype");if(Re(S)){if(t(G,Re))throw new X(H,"Only one doctype is allowed");var N=t(G,le);if(_&&G.indexOf(N)<G.indexOf(_))throw new X(H,"Doctype can only be inserted before an element");if(!_&&N)throw new X(H,"Doctype can not be appended since element is present")}}function ne(i,S,_){var G=i.childNodes||[],e=S.childNodes||[];if(S.nodeType===Te.DOCUMENT_FRAGMENT_NODE){var n=e.filter(le);if(n.length>1||t(e,Ue))throw new X(H,"More than one element or text in fragment");if(n.length===1&&!$(i,_))throw new X(H,"Element in fragment can not be inserted before doctype")}if(le(S)&&!$(i,_))throw new X(H,"Only one element can be added and only after doctype");if(Re(S)){if(t(G,function(O){return Re(O)&&O!==_}))throw new X(H,"Only one doctype is allowed");var N=t(G,le);if(_&&G.indexOf(N)<G.indexOf(_))throw new X(H,"Doctype can only be inserted before an element")}}function Be(i,S,_,G){ge(i,S,_),i.nodeType===Te.DOCUMENT_NODE&&(G||c)(i,S,_);var e=S.parentNode;if(e&&e.removeChild(S),S.nodeType===Le){var n=S.firstChild;if(n==null)return S;var N=S.lastChild}else n=N=S;var L=_?_.previousSibling:i.lastChild;n.previousSibling=L,N.nextSibling=_,L?L.nextSibling=n:i.firstChild=n,_==null?i.lastChild=N:_.previousSibling=N;do{n.parentNode=i;var O=i.ownerDocument||i;de(n,O)}while(n!==N&&(n=n.nextSibling));return k(i.ownerDocument||i,i),S.nodeType==Le&&(S.firstChild=S.lastChild=null),S}function de(i,S){if(i.ownerDocument!==S){if(i.ownerDocument=S,i.nodeType===l&&i.attributes)for(var _=0;_<i.attributes.length;_++){var G=i.attributes.item(_);G&&(G.ownerDocument=S)}for(var e=i.firstChild;e;)de(e,S),e=e.nextSibling}}function F(i,S){S.parentNode&&S.parentNode.removeChild(S),S.parentNode=i,S.previousSibling=i.lastChild,S.nextSibling=null,S.previousSibling?S.previousSibling.nextSibling=S:i.firstChild=S,i.lastChild=S,k(i.ownerDocument,i,S);var _=i.ownerDocument||i;return de(S,_),S}m.prototype={nodeName:"#document",nodeType:q,doctype:null,documentElement:null,_inc:1,insertBefore:function(i,S){if(i.nodeType==Le){for(var _=i.firstChild;_;){var G=_.nextSibling;this.insertBefore(_,S),_=G}return i}return Be(this,i,S),de(i,this),this.documentElement===null&&i.nodeType===l&&(this.documentElement=i),i},removeChild:function(i){return this.documentElement==i&&(this.documentElement=null),f(this,i)},replaceChild:function(i,S){Be(this,i,S,ne),de(i,this),S&&this.removeChild(S),le(i)&&(this.documentElement=i)},importNode:function(i,S){return Rt(this,i,S)},getElementById:function(i){var S=null;return p(this.documentElement,function(_){if(_.nodeType==l&&_.getAttribute("id")==i)return S=_,!0}),S},getElementsByClassName:function(i){var S=R(i);return new ae(this,function(_){var G=[];return S.length>0&&p(_.documentElement,function(e){if(e!==_&&e.nodeType===l){var n=e.getAttribute("class");if(n){var N=i===n;if(!N){var L=R(n);N=S.every(C(L))}N&&G.push(e)}}}),G})},createElement:function(i){var S=new V;S.ownerDocument=this,S.nodeName=i,S.tagName=i,S.localName=i,S.childNodes=new K;var _=S.attributes=new pe;return _._ownerElement=S,S},createDocumentFragment:function(){var i=new Xe;return i.ownerDocument=this,i.childNodes=new K,i},createTextNode:function(i){var S=new ue;return S.ownerDocument=this,S.appendData(i),S},createComment:function(i){var S=new we;return S.ownerDocument=this,S.appendData(i),S},createCDATASection:function(i){var S=new Gt;return S.ownerDocument=this,S.appendData(i),S},createProcessingInstruction:function(i,S){var _=new je;return _.ownerDocument=this,_.tagName=_.nodeName=_.target=i,_.nodeValue=_.data=S,_},createAttribute:function(i){var S=new ve;return S.ownerDocument=this,S.name=i,S.nodeName=i,S.localName=i,S.specified=!0,S},createEntityReference:function(i){var S=new et;return S.ownerDocument=this,S.nodeName=i,S},createElementNS:function(i,S){var _=new V,G=S.split(":"),e=_.attributes=new pe;return _.childNodes=new K,_.ownerDocument=this,_.nodeName=S,_.tagName=S,_.namespaceURI=i,G.length==2?(_.prefix=G[0],_.localName=G[1]):_.localName=S,e._ownerElement=_,_},createAttributeNS:function(i,S){var _=new ve,G=S.split(":");return _.ownerDocument=this,_.nodeName=S,_.name=S,_.namespaceURI=i,_.specified=!0,G.length==2?(_.prefix=G[0],_.localName=G[1]):_.localName=S,_}},A(m,Te);function V(){this._nsMap={}}V.prototype={nodeType:l,hasAttribute:function(i){return this.getAttributeNode(i)!=null},getAttribute:function(i){var S=this.getAttributeNode(i);return S&&S.value||""},getAttributeNode:function(i){return this.attributes.getNamedItem(i)},setAttribute:function(i,S){var _=this.ownerDocument.createAttribute(i);_.value=_.nodeValue=""+S,this.setAttributeNode(_)},removeAttribute:function(i){var S=this.getAttributeNode(i);S&&this.removeAttributeNode(S)},appendChild:function(i){return i.nodeType===Le?this.insertBefore(i,null):F(this,i)},setAttributeNode:function(i){return this.attributes.setNamedItem(i)},setAttributeNodeNS:function(i){return this.attributes.setNamedItemNS(i)},removeAttributeNode:function(i){return this.attributes.removeNamedItem(i.nodeName)},removeAttributeNS:function(i,S){var _=this.getAttributeNodeNS(i,S);_&&this.removeAttributeNode(_)},hasAttributeNS:function(i,S){return this.getAttributeNodeNS(i,S)!=null},getAttributeNS:function(i,S){var _=this.getAttributeNodeNS(i,S);return _&&_.value||""},setAttributeNS:function(i,S,_){var G=this.ownerDocument.createAttributeNS(i,S);G.value=G.nodeValue=""+_,this.setAttributeNode(G)},getAttributeNodeNS:function(i,S){return this.attributes.getNamedItemNS(i,S)},getElementsByTagName:function(i){return new ae(this,function(S){var _=[];return p(S,function(G){G!==S&&G.nodeType==l&&(i==="*"||G.tagName==i)&&_.push(G)}),_})},getElementsByTagNameNS:function(i,S){return new ae(this,function(_){var G=[];return p(_,function(e){e!==_&&e.nodeType===l&&(i==="*"||e.namespaceURI===i)&&(S==="*"||e.localName==S)&&G.push(e)}),G})}},m.prototype.getElementsByTagName=V.prototype.getElementsByTagName,m.prototype.getElementsByTagNameNS=V.prototype.getElementsByTagNameNS,A(V,Te);function ve(){}ve.prototype.nodeType=h,A(ve,Te);function Qe(){}Qe.prototype={data:"",substringData:function(i,S){return this.data.substring(i,i+S)},appendData:function(i){i=this.data+i,this.nodeValue=this.data=i,this.length=i.length},insertData:function(i,S){this.replaceData(i,0,S)},appendChild:function(i){throw new Error(ie[H])},deleteData:function(i,S){this.replaceData(i,S,"")},replaceData:function(i,S,_){var G=this.data.substring(0,i),e=this.data.substring(i+S);_=G+_+e,this.nodeValue=this.data=_,this.length=_.length}},A(Qe,Te);function ue(){}ue.prototype={nodeName:"#text",nodeType:M,splitText:function(i){var S=this.data,_=S.substring(i);S=S.substring(0,i),this.data=this.nodeValue=S,this.length=S.length;var G=this.ownerDocument.createTextNode(_);return this.parentNode&&this.parentNode.insertBefore(G,this.nextSibling),G}},A(ue,Qe);function we(){}we.prototype={nodeName:"#comment",nodeType:te},A(we,Qe);function Gt(){}Gt.prototype={nodeName:"#cdata-section",nodeType:b},A(Gt,Qe);function Ae(){}Ae.prototype.nodeType=_e,A(Ae,Te);function nt(){}nt.prototype.nodeType=z,A(nt,Te);function Ze(){}Ze.prototype.nodeType=U,A(Ze,Te);function et(){}et.prototype.nodeType=J,A(et,Te);function Xe(){}Xe.prototype.nodeName="#document-fragment",Xe.prototype.nodeType=Le,A(Xe,Te);function je(){}je.prototype.nodeType=ee,A(je,Te);function De(){}De.prototype.serializeToString=function(i,S,_){return Ie.call(i,S,_)},Te.prototype.toString=Ie;function Ie(i,S){var _=[],G=this.nodeType==9&&this.documentElement||this,e=G.prefix,n=G.namespaceURI;if(n&&e==null){var e=G.lookupPrefix(n);if(e==null)var N=[{namespace:n,prefix:null}]}return We(this,_,i,S,N),_.join("")}function Ft(i,S,_){var G=i.prefix||"",e=i.namespaceURI;if(!e||G==="xml"&&e===r.XML||e===r.XMLNS)return!1;for(var n=_.length;n--;){var N=_[n];if(N.prefix===G)return N.namespace!==e}return!0}function qe(i,S,_){i.push(" ",S,'="',_.replace(/[<>&"\t\n\r]/g,v),'"')}function We(i,S,_,G,e){if(e||(e=[]),G)if(i=G(i),i){if(typeof i=="string"){S.push(i);return}}else return;switch(i.nodeType){case l:var n=i.attributes,N=n.length,He=i.firstChild,L=i.tagName;_=r.isHTML(i.namespaceURI)||_;var O=L;if(!_&&!i.prefix&&i.namespaceURI){for(var d,se=0;se<n.length;se++)if(n.item(se).name==="xmlns"){d=n.item(se).value;break}if(!d)for(var he=e.length-1;he>=0;he--){var Me=e[he];if(Me.prefix===""&&Me.namespace===i.namespaceURI){d=Me.namespace;break}}if(d!==i.namespaceURI)for(var he=e.length-1;he>=0;he--){var Me=e[he];if(Me.namespace===i.namespaceURI){Me.prefix&&(O=Me.prefix+":"+L);break}}}S.push("<",O);for(var oe=0;oe<N;oe++){var Se=n.item(oe);Se.prefix=="xmlns"?e.push({prefix:Se.localName,namespace:Se.value}):Se.nodeName=="xmlns"&&e.push({prefix:"",namespace:Se.value})}for(var oe=0;oe<N;oe++){var Se=n.item(oe);if(Ft(Se,_,e)){var Ke=Se.prefix||"",ze=Se.namespaceURI;qe(S,Ke?"xmlns:"+Ke:"xmlns",ze),e.push({prefix:Ke,namespace:ze})}We(Se,S,_,G,e)}if(L===O&&Ft(i,_,e)){var Ke=i.prefix||"",ze=i.namespaceURI;qe(S,Ke?"xmlns:"+Ke:"xmlns",ze),e.push({prefix:Ke,namespace:ze})}if(He||_&&!/^(?:meta|link|img|br|hr|input)$/i.test(L)){if(S.push(">"),_&&/^script$/i.test(L))for(;He;)He.data?S.push(He.data):We(He,S,_,G,e.slice()),He=He.nextSibling;else for(;He;)We(He,S,_,G,e.slice()),He=He.nextSibling;S.push("</",O,">")}else S.push("/>");return;case q:case Le:for(var He=i.firstChild;He;)We(He,S,_,G,e.slice()),He=He.nextSibling;return;case h:return qe(S,i.name,i.value);case M:return S.push(i.data.replace(/[<&>]/g,v));case b:return S.push("<![CDATA[",i.data,"]]>");case te:return S.push("<!--",i.data,"-->");case _e:var Tt=i.publicId,tt=i.systemId;if(S.push("<!DOCTYPE ",i.name),Tt)S.push(" PUBLIC ",Tt),tt&&tt!="."&&S.push(" ",tt),S.push(">");else if(tt&&tt!=".")S.push(" SYSTEM ",tt,">");else{var ut=i.internalSubset;ut&&S.push(" [",ut,"]"),S.push(">")}return;case ee:return S.push("<?",i.target," ",i.data,"?>");case J:return S.push("&",i.nodeName,";");default:S.push("??",i.nodeName)}}function Rt(i,S,_){var G;switch(S.nodeType){case l:G=S.cloneNode(!1),G.ownerDocument=i;case Le:break;case h:_=!0;break}if(G||(G=S.cloneNode(!1)),G.ownerDocument=i,G.parentNode=null,_)for(var e=S.firstChild;e;)G.appendChild(Rt(i,e,_)),e=e.nextSibling;return G}function st(i,S,_){var G=new S.constructor;for(var e in S)if(Object.prototype.hasOwnProperty.call(S,e)){var n=S[e];typeof n!="object"&&n!=G[e]&&(G[e]=n)}switch(S.childNodes&&(G.childNodes=new K),G.ownerDocument=i,G.nodeType){case l:var N=S.attributes,L=G.attributes=new pe,O=N.length;L._ownerElement=G;for(var d=0;d<O;d++)G.setAttributeNode(st(i,N.item(d),!0));break;case h:_=!0}if(_)for(var se=S.firstChild;se;)G.appendChild(st(i,se,_)),se=se.nextSibling;return G}function fe(i,S,_){i[S]=_}try{if(Object.defineProperty){let i=function(S){switch(S.nodeType){case l:case Le:var _=[];for(S=S.firstChild;S;)S.nodeType!==7&&S.nodeType!==8&&_.push(i(S)),S=S.nextSibling;return _.join("");default:return S.nodeValue}};Object.defineProperty(ae.prototype,"length",{get:function(){return ce(this),this.$$length}}),Object.defineProperty(Te.prototype,"textContent",{get:function(){return i(this)},set:function(S){switch(this.nodeType){case l:case Le:for(;this.firstChild;)this.removeChild(this.firstChild);(S||String(S))&&this.appendChild(this.ownerDocument.createTextNode(S));break;default:this.data=S,this.value=S,this.nodeValue=S}}}),fe=function(S,_,G){S["$$"+_]=G}}}catch{}return at.DocumentType=Ae,at.DOMException=X,at.DOMImplementation=me,at.Element=V,at.Node=Te,at.NodeList=K,at.XMLSerializer=De,at}var mt={},Jt={},FE;function Vn(){return FE||(FE=1,function(E){var t=Ht().freeze;E.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),E.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
10
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),E.entityMap=E.HTML_ENTITIES}(Jt)),Jt}var bt={},HE;function vn(){if(HE)return bt;HE=1;var E=Ht().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+t.source+r.source+"*(?::"+t.source+r.source+"*)?$"),T=0,a=1,R=2,C=3,I=4,A=5,u=6,l=7;function h(H,g){this.message=H,this.locator=g,Error.captureStackTrace&&Error.captureStackTrace(this,h)}h.prototype=new Error,h.prototype.name=h.name;function M(){}M.prototype={parse:function(H,g,Q){var X=this.domBuilder;X.startDocument(),_e(g,g={}),b(H,g,Q,X,this.errorHandler),X.endDocument()}};function b(H,g,Q,X,K){function ae(F){if(F>65535){F-=65536;var V=55296+(F>>10),ve=56320+(F&1023);return String.fromCharCode(V,ve)}else return String.fromCharCode(F)}function ce(F){var V=F.slice(1,-1);return Object.hasOwnProperty.call(Q,V)?Q[V]:V.charAt(0)==="#"?ae(parseInt(V.substr(1).replace("x","0x"))):(K.error("entity not found:"+F),F)}function pe(F){if(F>m){var V=H.substring(m,F).replace(/&#?\w+;/g,ce);Te&&x(m),X.characters(V,0,F-m),m=F}}function x(F,V){for(;F>=Oe&&(V=me.exec(H));)Z=V.index,Oe=Z+V[0].length,Te.lineNumber++;Te.columnNumber=F-Z+1}for(var Z=0,Oe=0,me=/.*(?:\r\n?|\n)|.*$/g,Te=X.locator,v=[{currentNSMap:g}],p={},m=0;;){try{var P=H.indexOf("<",m);if(P<0){if(!H.substr(m).match(/^\s*$/)){var B=X.doc,k=B.createTextNode(H.substr(m));B.appendChild(k),X.currentElement=k}return}switch(P>m&&pe(P),H.charAt(P+1)){case"/":var ge=H.indexOf(">",P+3),f=H.substring(P+2,ge).replace(/[ \t\n\r]+$/g,""),j=v.pop();ge<0?(f=H.substring(P+2).replace(/[\s<].*/,""),K.error("end tag name: "+f+" is not complete:"+j.tagName),ge=P+1+f.length):f.match(/\s</)&&(f=f.replace(/[\s<].*/,""),K.error("end tag name: "+f+" maybe not complete"),ge=P+1+f.length);var Ee=j.localNSMap,Re=j.tagName==f,le=Re||j.tagName&&j.tagName.toLowerCase()==f.toLowerCase();if(le){if(X.endElement(j.uri,j.localName,f),Ee)for(var Ue in Ee)Object.prototype.hasOwnProperty.call(Ee,Ue)&&X.endPrefixMapping(Ue);Re||K.fatalError("end tag name: "+f+" is not match the current start tagName:"+j.tagName)}else v.push(j);ge++;break;case"?":Te&&x(P),ge=z(H,P,X);break;case"!":Te&&x(P),ge=Le(H,P,X,K);break;default:Te&&x(P);var Ne=new D,$=v[v.length-1].currentNSMap,ge=U(H,P,Ne,$,ce,K),c=Ne.length;if(!Ne.closed&&q(H,ge,Ne.tagName,p)&&(Ne.closed=!0,Q.nbsp||K.warning("unclosed xml attribute")),Te&&c){for(var ne=J(Te,{}),Be=0;Be<c;Be++){var de=Ne[Be];x(de.offset),de.locator=J(Te,{})}X.locator=ne,ee(Ne,X,$)&&v.push(Ne),X.locator=Te}else ee(Ne,X,$)&&v.push(Ne);E.isHTML(Ne.uri)&&!Ne.closed?ge=te(H,ge,Ne.tagName,ce,X):ge++}}catch(F){if(F instanceof h)throw F;K.error("element parse error: "+F),ge=-1}ge>m?m=ge:pe(Math.max(P,m)+1)}}function J(H,g){return g.lineNumber=H.lineNumber,g.columnNumber=H.columnNumber,g}function U(H,g,Q,X,K,ae){function ce(Te,v,p){Q.attributeNames.hasOwnProperty(Te)&&ae.fatalError("Attribute "+Te+" redefined"),Q.addValue(Te,v.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,K),p)}for(var pe,x,Z=++g,Oe=T;;){var me=H.charAt(Z);switch(me){case"=":if(Oe===a)pe=H.slice(g,Z),Oe=C;else if(Oe===R)Oe=C;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(Oe===C||Oe===a)if(Oe===a&&(ae.warning('attribute value must after "="'),pe=H.slice(g,Z)),g=Z+1,Z=H.indexOf(me,g),Z>0)x=H.slice(g,Z),ce(pe,x,g-1),Oe=A;else throw new Error("attribute value no end '"+me+"' match");else if(Oe==I)x=H.slice(g,Z),ce(pe,x,g),ae.warning('attribute "'+pe+'" missed start quot('+me+")!!"),g=Z+1,Oe=A;else throw new Error('attribute value must after "="');break;case"/":switch(Oe){case T:Q.setTagName(H.slice(g,Z));case A:case u:case l:Oe=l,Q.closed=!0;case I:case a:break;case R:Q.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ae.error("unexpected end of input"),Oe==T&&Q.setTagName(H.slice(g,Z)),Z;case">":switch(Oe){case T:Q.setTagName(H.slice(g,Z));case A:case u:case l:break;case I:case a:x=H.slice(g,Z),x.slice(-1)==="/"&&(Q.closed=!0,x=x.slice(0,-1));case R:Oe===R&&(x=pe),Oe==I?(ae.warning('attribute "'+x+'" missed quot(")!'),ce(pe,x,g)):((!E.isHTML(X[""])||!x.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+x+'" missed value!! "'+x+'" instead!!'),ce(x,x,g));break;case C:throw new Error("attribute value missed!!")}return Z;case"€":me=" ";default:if(me<=" ")switch(Oe){case T:Q.setTagName(H.slice(g,Z)),Oe=u;break;case a:pe=H.slice(g,Z),Oe=R;break;case I:var x=H.slice(g,Z);ae.warning('attribute "'+x+'" missed quot(")!!'),ce(pe,x,g);case A:Oe=u;break}else switch(Oe){case R:Q.tagName,(!E.isHTML(X[""])||!pe.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+pe+'" missed value!! "'+pe+'" instead2!!'),ce(pe,pe,g),g=Z,Oe=a;break;case A:ae.warning('attribute space is required"'+pe+'"!!');case u:Oe=a,g=Z;break;case C:Oe=I,g=Z;break;case l:throw new Error("elements closed character '/' and '>' must be connected to")}}Z++}}function ee(H,g,Q){for(var X=H.tagName,K=null,me=H.length;me--;){var ae=H[me],ce=ae.qName,pe=ae.value,Te=ce.indexOf(":");if(Te>0)var x=ae.prefix=ce.slice(0,Te),Z=ce.slice(Te+1),Oe=x==="xmlns"&&Z;else Z=ce,x=null,Oe=ce==="xmlns"&&"";ae.localName=Z,Oe!==!1&&(K==null&&(K={},_e(Q,Q={})),Q[Oe]=K[Oe]=pe,ae.uri=E.XMLNS,g.startPrefixMapping(Oe,pe))}for(var me=H.length;me--;){ae=H[me];var x=ae.prefix;x&&(x==="xml"&&(ae.uri=E.XML),x!=="xmlns"&&(ae.uri=Q[x||""]))}var Te=X.indexOf(":");Te>0?(x=H.prefix=X.slice(0,Te),Z=H.localName=X.slice(Te+1)):(x=null,Z=H.localName=X);var v=H.uri=Q[x||""];if(g.startElement(v,Z,X,H),H.closed){if(g.endElement(v,Z,X),K)for(x in K)Object.prototype.hasOwnProperty.call(K,x)&&g.endPrefixMapping(x)}else return H.currentNSMap=Q,H.localNSMap=K,!0}function te(H,g,Q,X,K){if(/^(?:script|textarea)$/i.test(Q)){var ae=H.indexOf("</"+Q+">",g),ce=H.substring(g+1,ae);if(/[&<]/.test(ce))return/^script$/i.test(Q)?(K.characters(ce,0,ce.length),ae):(ce=ce.replace(/&#?\w+;/g,X),K.characters(ce,0,ce.length),ae)}return g+1}function q(H,g,Q,X){var K=X[Q];return K==null&&(K=H.lastIndexOf("</"+Q+">"),K<g&&(K=H.lastIndexOf("</"+Q)),X[Q]=K),K<g}function _e(H,g){for(var Q in H)Object.prototype.hasOwnProperty.call(H,Q)&&(g[Q]=H[Q])}function Le(H,g,Q,X){var K=H.charAt(g+2);switch(K){case"-":if(H.charAt(g+3)==="-"){var ae=H.indexOf("-->",g+4);return ae>g?(Q.comment(H,g+4,ae-g-4),ae+3):(X.error("Unclosed comment"),-1)}else return-1;default:if(H.substr(g+3,6)=="CDATA["){var ae=H.indexOf("]]>",g+9);return Q.startCDATA(),Q.characters(H,g+9,ae-g-9),Q.endCDATA(),ae+3}var ce=ie(H,g),pe=ce.length;if(pe>1&&/!doctype/i.test(ce[0][0])){var x=ce[1][0],Z=!1,Oe=!1;pe>3&&(/^public$/i.test(ce[2][0])?(Z=ce[3][0],Oe=pe>4&&ce[4][0]):/^system$/i.test(ce[2][0])&&(Oe=ce[3][0]));var me=ce[pe-1];return Q.startDTD(x,Z,Oe),Q.endDTD(),me.index+me[0].length}}return-1}function z(H,g,Q){var X=H.indexOf("?>",g);if(X){var K=H.substring(g,X).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return K?(K[0].length,Q.processingInstruction(K[1],K[2]),X+2):-1}return-1}function D(){this.attributeNames={}}D.prototype={setTagName:function(H){if(!s.test(H))throw new Error("invalid tagName:"+H);this.tagName=H},addValue:function(H,g,Q){if(!s.test(H))throw new Error("invalid attribute:"+H);this.attributeNames[H]=this.length,this[this.length++]={qName:H,value:g,offset:Q}},length:0,getLocalName:function(H){return this[H].localName},getLocator:function(H){return this[H].locator},getQName:function(H){return this[H].qName},getURI:function(H){return this[H].uri},getValue:function(H){return this[H].value}};function ie(H,g){var Q,X=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(K.lastIndex=g,K.exec(H);Q=K.exec(H);)if(X.push(Q),Q[1])return X}return bt.XMLReader=M,bt.ParseError=h,bt}var bE;function wn(){if(bE)return mt;bE=1;var E=Ht(),t=GE(),r=Vn(),s=vn(),T=t.DOMImplementation,a=E.NAMESPACE,R=s.ParseError,C=s.XMLReader;function I(U){return U.replace(/\r[\n\u0085]/g,`
11
11
  `).replace(/[\r\u0085\u2028]/g,`
12
12
  `)}function A(U){this.options=U||{locator:{}}}A.prototype.parseFromString=function(U,ee){var te=this.options,q=new C,_e=te.domBuilder||new l,Le=te.errorHandler,z=te.locator,D=te.xmlns||{},ie=/\/x?html?$/.test(ee),H=ie?r.HTML_ENTITIES:r.XML_ENTITIES;z&&_e.setDocumentLocator(z),q.errorHandler=u(Le,_e,z),q.domBuilder=te.domBuilder||_e,ie&&(D[""]=a.HTML),D.xml=D.xml||a.XML;var g=te.normalizeLineEndings||I;return U&&typeof U=="string"?q.parse(g(U),D,H):q.errorHandler.error("invalid doc source"),_e.doc};function u(U,ee,te){if(!U){if(ee instanceof l)return ee;U=ee}var q={},_e=U instanceof Function;te=te||{};function Le(z){var D=U[z];!D&&_e&&(D=U.length==2?function(ie){U(z,ie)}:U),q[z]=D&&function(ie){D("[xmldom "+z+"] "+ie+M(te))}||function(){}}return Le("warning"),Le("error"),Le("fatalError"),q}function l(){this.cdata=!1}function h(U,ee){ee.lineNumber=U.lineNumber,ee.columnNumber=U.columnNumber}l.prototype={startDocument:function(){this.doc=new T().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(U,ee,te,q){var _e=this.doc,Le=_e.createElementNS(U,te||ee),z=q.length;J(this,Le),this.currentElement=Le,this.locator&&h(this.locator,Le);for(var D=0;D<z;D++){var U=q.getURI(D),ie=q.getValue(D),te=q.getQName(D),H=_e.createAttributeNS(U,te);this.locator&&h(q.getLocator(D),H),H.value=H.nodeValue=ie,Le.setAttributeNode(H)}},endElement:function(U,ee,te){var q=this.currentElement;q.tagName,this.currentElement=q.parentNode},startPrefixMapping:function(U,ee){},endPrefixMapping:function(U){},processingInstruction:function(U,ee){var te=this.doc.createProcessingInstruction(U,ee);this.locator&&h(this.locator,te),J(this,te)},ignorableWhitespace:function(U,ee,te){},characters:function(U,ee,te){if(U=b.apply(this,arguments),U){if(this.cdata)var q=this.doc.createCDATASection(U);else var q=this.doc.createTextNode(U);this.currentElement?this.currentElement.appendChild(q):/^\s*$/.test(U)&&this.doc.appendChild(q),this.locator&&h(this.locator,q)}},skippedEntity:function(U){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(U){(this.locator=U)&&(U.lineNumber=0)},comment:function(U,ee,te){U=b.apply(this,arguments);var q=this.doc.createComment(U);this.locator&&h(this.locator,q),J(this,q)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(U,ee,te){var q=this.doc.implementation;if(q&&q.createDocumentType){var _e=q.createDocumentType(U,ee,te);this.locator&&h(this.locator,_e),J(this,_e),this.doc.doctype=_e}},warning:function(U){console.warn("[xmldom warning] "+U,M(this.locator))},error:function(U){console.error("[xmldom error] "+U,M(this.locator))},fatalError:function(U){throw new R(U,this.locator)}};function M(U){if(U)return`
13
- @`+(U.systemId||"")+"#[line:"+U.lineNumber+",col:"+U.columnNumber+"]"}function b(U,ee,te){return typeof U=="string"?U.substr(ee,te):U.length>=ee+te||ee?new java.lang.String(U,ee,te)+"":U}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(U){l.prototype[U]=function(){return null}});function J(U,ee){U.currentElement?U.currentElement.appendChild(ee):U.doc.appendChild(ee)}return mt.__DOMHandler=l,mt.normalizeLineEndings=I,mt.DOMParser=A,mt}var xE;function Wn(){if(xE)return Ut;xE=1;var E=GE();return Ut.DOMImplementation=E.DOMImplementation,Ut.XMLSerializer=E.XMLSerializer,Ut.DOMParser=wn().DOMParser,Ut}var YE=Wn();const Xn={key:0,class:"xml-node__comment"},Kn={key:1,class:"xml-node__cdata"},kn={key:2,class:"xml-node__element"},$n={key:0,class:"xml-node__line"},qn=["contenteditable","onKeydown"],Jn=["contenteditable","onDblclick","onKeydown"],Qn=["contenteditable","onDblclick","onKeydown"],Zn=["contenteditable","onKeydown"],jn={key:1,class:"xml-node__line"},zn=["contenteditable","onKeydown"],es=["contenteditable","onDblclick","onKeydown"],ts=["contenteditable","onDblclick","onKeydown"],Es=["contenteditable","onKeydown"],rs={key:2,class:"xml-node__line"},ns=["contenteditable","onKeydown"],ss=["contenteditable","onDblclick","onKeydown"],Ts=["contenteditable","onDblclick","onKeydown"],os={key:3,class:"xml-node__line"},as=["contenteditable","onKeydown"],As=["contenteditable","onDblclick","onKeydown"],is=["contenteditable","onDblclick","onKeydown"],Rs={key:4},Ss={key:0,class:"xml-node__line"},Ns=["contenteditable","onKeydown"],Is=["contenteditable","onDblclick","onKeydown"],Os=["contenteditable","onDblclick","onKeydown"],us=["title"],ls={class:"xml-node__line"},Cs=["title"],cs=["contenteditable","onKeydown"],_s={key:1},Ls=["contenteditable","onKeydown"],Ds=["contenteditable","onDblclick","onKeydown"],ps=["contenteditable","onDblclick","onKeydown"],ds=["title"],Ps={key:0,class:"xml-node__children"},fs={key:0,class:"xml-node__text"},hs=["contenteditable","onKeydown"],Ms={key:1,class:"xml-node__line"},Us=Mt(o.defineComponent({__name:"XmlNode",props:{node:{},index:{},level:{default:0},parentPath:{default:""},expanded:{},theme:{},selfClosingTags:{default:()=>new Set}},emits:["toggle-expand","copy","update:tagName","update:attributeName","update:attributeValue","update:textContent","update:cdataContent"],setup(E,{emit:t}){o.useCssVars(_=>({"60de5cb8":_.theme.colors.indentLine}));const r=E,s=t,T=o.ref(!1),a=o.ref(null),R=o.ref(null),C=o.ref(!1),I=o.ref(!1),A=o.ref(""),u=o.ref(""),l=o.ref(""),h=o.ref(""),M=o.ref(""),b=o.ref(null),J=o.ref(null),U=o.ref(null),ee=o.ref(null),te=o.ref(null),q=o.computed(()=>Object.keys(r.node).find(ne=>!ne.startsWith(":")&&!ne.startsWith("#"))||""),_e=o.computed(()=>q.value?r.parentPath?`${r.parentPath}.${q.value}[${r.index}]`:`${q.value}[${r.index}]`:""),Le=o.computed(()=>r.expanded.has(_e.value)),z=o.computed(()=>r.node["#comment"]?"comment":r.node.__cdata?"cdata":q.value?"element":"unknown"),D=o.computed(()=>{const _=r.node[":@"]||{},ne={};return Object.keys(_).forEach(Be=>{Be.startsWith("@_")&&(ne[Be.substring(2)]=_[Be])}),ne}),ie=o.computed(()=>{if(z.value!=="element"||!q.value)return[];const _=r.node[q.value];return Array.isArray(_)?_:[]}),H=o.computed(()=>ie.value.some(_=>_.__cdata)),g=o.computed(()=>{if(!H.value)return"";const _=ie.value.find(ne=>ne.__cdata);if(_&&Array.isArray(_.__cdata)){const ne=_.__cdata;if(ne.length>0&&ne[0]["#text"])return ne[0]["#text"]}return""}),Q=o.computed(()=>{if(z.value!=="element"||!q.value||H.value)return"";const _=r.node[q.value];if(!Array.isArray(_))return"";const ne=_.find(Be=>Be["#text"]);return ne?ne["#text"]:""}),X=o.computed(()=>{if(z.value!=="comment")return"";const _=r.node["#comment"];return Array.isArray(_)&&_.length>0&&_[0]["#text"]||""}),K=o.computed(()=>ie.value.some(_=>Object.keys(_).some(Be=>!Be.startsWith("#")&&!Be.startsWith(":")))),ae=o.computed(()=>K.value?ie.value.filter(_=>Object.keys(_).some(Be=>!Be.startsWith("#")&&!Be.startsWith(":"))).length:0),ce=o.computed(()=>z.value==="element"&&!K.value&&Q.value!==""),pe=o.computed(()=>z.value==="element"&&!K.value&&Q.value===""),x=o.computed(()=>pe.value&&r.selfClosingTags?.has(q.value)||!1),Z=()=>{K.value&&s("toggle-expand",_e.value)},Oe=(_,ne)=>`${_e.value}-child-${ne}`,me=()=>`${_e.value}.${q.value}`,Te=()=>{T.value=!0,A.value=q.value,o.nextTick(()=>{if(b.value){b.value.focus();const _=document.createRange();_.selectNodeContents(b.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(_)}})},v=_=>{a.value=_,u.value=_,o.nextTick(()=>{if(J.value){J.value.focus();const ne=document.createRange();ne.selectNodeContents(J.value);const Be=window.getSelection();Be?.removeAllRanges(),Be?.addRange(ne)}})},p=_=>{R.value=_,l.value=D.value[_]||"",o.nextTick(()=>{if(U.value){U.value.focus();const ne=document.createRange();ne.selectNodeContents(U.value);const Be=window.getSelection();Be?.removeAllRanges(),Be?.addRange(ne)}})},m=()=>{C.value=!0,h.value=Q.value,o.nextTick(()=>{if(ee.value){ee.value.focus();const _=document.createRange();_.selectNodeContents(ee.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(_)}})},P=()=>{if(!T.value)return;const _=b.value?.innerText.trim()||"";if(!_||_===q.value){T.value=!1;return}T.value=!1,s("update:tagName",_e.value,q.value,_)},B=()=>{if(!a.value)return;const _=a.value,ne=J.value?.innerText.trim()||"";if(!ne||ne===_){a.value=null;return}a.value=null,s("update:attributeName",_e.value,_,ne)},k=()=>{if(!R.value)return;const _=R.value,ne=U.value?.innerText.trim()||"";R.value=null,s("update:attributeValue",_e.value,_,ne)},f=()=>{if(!C.value)return;const _=ee.value?.innerText||"";if(_===Q.value){C.value=!1;return}C.value=!1,s("update:textContent",_e.value,_)},j=()=>{T.value=!1,A.value=q.value},Ee=()=>{a.value&&(u.value=a.value,a.value=null)},Re=()=>{R.value&&(l.value=D.value[R.value]||"",R.value=null)},le=()=>{C.value=!1,h.value=Q.value},Ue=()=>{I.value=!0,M.value=g.value,o.nextTick(()=>{if(te.value){te.value.focus();const _=document.createRange();_.selectNodeContents(te.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(_)}})},Ne=()=>{if(!I.value)return;const _=te.value?.innerText||"";if(_===g.value){I.value=!1;return}I.value=!1,s("update:cdataContent",_e.value,_)},$=()=>{I.value=!1,M.value=g.value},ge=_=>{K.value&&(_.preventDefault(),Te())};return(_,ne)=>{const Be=o.resolveComponent("XmlNode",!0);return o.openBlock(),o.createElementBlock("div",{class:"xml-node",style:o.normalizeStyle({paddingLeft:_.level>0?"16px":"0"})},[z.value==="comment"?(o.openBlock(),o.createElementBlock("div",Xn,[o.createElementVNode("span",{style:o.normalizeStyle({color:_.theme.colors.xmlComment})}," <!-- "+o.toDisplayString(X.value)+" --> ",5)])):z.value==="cdata"?(o.openBlock(),o.createElementBlock("div",Kn,[o.createElementVNode("span",{style:o.normalizeStyle({color:_.theme.colors.xmlCdata})}," <![CDATA["+o.toDisplayString(_.node.__cdata)+"]]> ",5)])):z.value==="element"?(o.openBlock(),o.createElementBlock("div",kn,[H.value?(o.openBlock(),o.createElementBlock("div",$n,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,qn),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Jn),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Qn),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4),o.createElementVNode("span",{class:"xml-node__cdata",style:o.normalizeStyle({color:_.theme.colors.xmlCdata})},"<![CDATA[",4),o.createElementVNode("span",{class:"xml-node__cdata-content xml-node__cdata-content--editable",style:o.normalizeStyle({color:_.theme.colors.xmlCdata}),contenteditable:I.value,onDblclick:Ue,onKeydown:[o.withKeys(o.withModifiers(Ne,["prevent"]),["enter"]),o.withKeys($,["escape"])],onBlur:Ne,ref_key:"cdataContentRef",ref:te,title:"Double-click to edit CDATA content"},o.toDisplayString(I.value?M.value:g.value),45,Zn),o.createElementVNode("span",{class:"xml-node__cdata",style:o.normalizeStyle({color:_.theme.colors.xmlCdata})},"]]>",4),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:_.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)])):ce.value?(o.openBlock(),o.createElementBlock("div",jn,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,zn),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,es),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,ts),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4),o.createElementVNode("span",{class:"xml-node__text-content xml-node__text-content--editable",style:o.normalizeStyle({color:_.theme.colors.xmlText}),contenteditable:C.value,onDblclick:m,onKeydown:[o.withKeys(o.withModifiers(f,["prevent"]),["enter"]),o.withKeys(le,["escape"])],onBlur:f,ref_key:"textContentRef",ref:ee,title:"Double-click to edit text content"},o.toDisplayString(C.value?h.value:Q.value),45,Es),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:_.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)])):pe.value&&x.value?(o.openBlock(),o.createElementBlock("div",rs,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,ns),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,ss),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Ts),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})}," />",4)])):pe.value?(o.openBlock(),o.createElementBlock("div",os,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,as),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,As),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,is),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"></",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:_.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)])):(o.openBlock(),o.createElementBlock("div",Rs,[!Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ss,[o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[0]||(ne[0]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:o.withModifiers(Te,["stop"]),onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click or right-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,Ns)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Is),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Os),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[1]||(ne[1]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)]),o.createElementVNode("span",{class:"xml-node__collapsed-badge",style:o.normalizeStyle({backgroundColor:_.theme.colors.collapsedBackground,color:_.theme.colors.collapsedText}),onClick:ne[2]||(ne[2]=de=>Z()),title:`Click to expand ${ae.value} tag${ae.value>1?"s":""}`},o.toDisplayString(ae.value)+" tag"+o.toDisplayString(ae.value>1?"s":""),13,us),o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[3]||(ne[3]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:_.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",ls,[K.value?(o.openBlock(),o.createElementBlock("span",{key:0,class:"xml-node__clickable-part",onClick:ne[4]||(ne[4]=de=>Z()),title:Le.value?"Click to collapse":"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:o.withModifiers(Te,["stop"]),onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click or right-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,cs)],8,Cs)):(o.openBlock(),o.createElementBlock("span",_s,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:_.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,Ls)])),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Ds),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:_.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:_.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,ps),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:_.theme.colors.xmlQuote})},'"',4)]))),128)),K.value?(o.openBlock(),o.createElementBlock("span",{key:2,class:"xml-node__clickable-part",onClick:ne[5]||(ne[5]=de=>Z()),title:Le.value?"Click to collapse":"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)],8,ds)):(o.openBlock(),o.createElementBlock("span",{key:3,class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},o.toDisplayString(K.value?">":"/>"),5))]),Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ps,[ie.value.length===0&&Q.value.trim()?(o.openBlock(),o.createElementBlock("div",fs,[o.createElementVNode("span",{class:"xml-node__text-content xml-node__text-content--editable",style:o.normalizeStyle({color:_.theme.colors.xmlText}),contenteditable:C.value,onDblclick:m,onKeydown:[o.withKeys(o.withModifiers(f,["prevent"]),["enter"]),o.withKeys(le,["escape"])],onBlur:f,ref_key:"textContentRef",ref:ee,title:"Double-click to edit text content"},o.toDisplayString(C.value?h.value:Q.value),45,hs)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ie.value,(de,F)=>(o.openBlock(),o.createBlock(Be,{key:Oe(de,F),node:de,index:F,level:_.level+1,"parent-path":me(),expanded:_.expanded,theme:_.theme,selfClosingTags:_.selfClosingTags,onToggleExpand:ne[6]||(ne[6]=V=>_.$emit("toggle-expand",V)),onCopy:ne[7]||(ne[7]=V=>_.$emit("copy",V)),"onUpdate:tagName":ne[8]||(ne[8]=(V,ve,Qe)=>_.$emit("update:tagName",V,ve,Qe)),"onUpdate:attributeName":ne[9]||(ne[9]=(V,ve,Qe)=>_.$emit("update:attributeName",V,ve,Qe)),"onUpdate:attributeValue":ne[10]||(ne[10]=(V,ve,Qe)=>_.$emit("update:attributeValue",V,ve,Qe)),"onUpdate:textContent":ne[11]||(ne[11]=(V,ve)=>_.$emit("update:textContent",V,ve)),"onUpdate:cdataContent":ne[12]||(ne[12]=(V,ve)=>_.$emit("update:cdataContent",V,ve))},null,8,["node","index","level","parent-path","expanded","theme","selfClosingTags"]))),128))])):o.createCommentVNode("",!0),Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ms,[o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[13]||(ne[13]=de=>Z()),title:"Click to collapse"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:_.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:_.theme.colors.xmlBracket})},">",4)])])):o.createCommentVNode("",!0)],64))]))])):o.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-7165a289"]]),VE={"github-light":{name:"github-light",colors:{background:"#ffffff",surfaceBackground:"#f6f8fa",border:"#d0d7de",text:"#24292f",textSecondary:"#57606a",buttonBackground:"#f6f8fa",buttonBackgroundHover:"#f3f4f6",buttonBorder:"#d0d7de",buttonText:"#24292f",buttonPrimary:"#1f883d",buttonPrimaryHover:"#1a7f37",success:"#1f883d",successBackground:"#dafbe1",error:"#cf222e",errorBackground:"#ffebe9",xmlTag:"#116329",xmlAttribute:"#0550ae",xmlAttributeValue:"#0a3069",xmlText:"#24292f",xmlComment:"#6e7781",xmlCdata:"#8250df",xmlDeclaration:"#953800",xmlBracket:"#6e7781",xmlEquals:"#6e7781",xmlQuote:"#0550ae",collapsedBackground:"#ddf4ff",collapsedText:"#0969da",indentLine:"#d0d7de"}},"github-dark":{name:"github-dark",colors:{background:"#0d1117",surfaceBackground:"#161b22",border:"#30363d",text:"#c9d1d9",textSecondary:"#8b949e",buttonBackground:"#21262d",buttonBackgroundHover:"#30363d",buttonBorder:"#30363d",buttonText:"#c9d1d9",buttonPrimary:"#238636",buttonPrimaryHover:"#2ea043",success:"#3fb950",successBackground:"#0f2e1c",error:"#f85149",errorBackground:"#3d1319",xmlTag:"#7ee787",xmlAttribute:"#79c0ff",xmlAttributeValue:"#a5d6ff",xmlText:"#c9d1d9",xmlComment:"#8b949e",xmlCdata:"#d2a8ff",xmlDeclaration:"#ffa657",xmlBracket:"#8b949e",xmlEquals:"#8b949e",xmlQuote:"#79c0ff",collapsedBackground:"#1c2d41",collapsedText:"#58a6ff",indentLine:"#30363d"}},"min-light":{name:"min-light",colors:{background:"#ffffff",surfaceBackground:"#fafafa",border:"#e5e5e5",text:"#171717",textSecondary:"#737373",buttonBackground:"#fafafa",buttonBackgroundHover:"#f5f5f5",buttonBorder:"#e5e5e5",buttonText:"#171717",buttonPrimary:"#22c55e",buttonPrimaryHover:"#16a34a",success:"#22c55e",successBackground:"#dcfce7",error:"#ef4444",errorBackground:"#fee2e2",xmlTag:"#16a34a",xmlAttribute:"#2563eb",xmlAttributeValue:"#1e40af",xmlText:"#171717",xmlComment:"#737373",xmlCdata:"#9333ea",xmlDeclaration:"#ea580c",xmlBracket:"#737373",xmlEquals:"#737373",xmlQuote:"#2563eb",collapsedBackground:"#dbeafe",collapsedText:"#1d4ed8",indentLine:"#e5e7eb"}},"slack-ochin":{name:"slack-ochin",colors:{background:"#fef5ed",surfaceBackground:"#fef9f3",border:"#e9dcc9",text:"#3d3c40",textSecondary:"#616061",buttonBackground:"#fef9f3",buttonBackgroundHover:"#f9f0e5",buttonBorder:"#e9dcc9",buttonText:"#3d3c40",buttonPrimary:"#007a5a",buttonPrimaryHover:"#006644",success:"#007a5a",successBackground:"#d1f4e0",error:"#e01e5a",errorBackground:"#ffdbea",xmlTag:"#007a5a",xmlAttribute:"#1264a3",xmlAttributeValue:"#0b4c8c",xmlText:"#3d3c40",xmlComment:"#616061",xmlCdata:"#8b2eff",xmlDeclaration:"#e8912d",xmlBracket:"#616061",xmlEquals:"#616061",xmlQuote:"#1264a3",collapsedBackground:"#d8eaf5",collapsedText:"#0b4c8c",indentLine:"#e8d5b7"}}},ms=E=>VE[E]||VE["github-light"],vE=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Bs=vE+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",gs="["+vE+"]["+Bs+"]*",ys=new RegExp("^"+gs+"$");function wE(E,t){const r=[];let s=t.exec(E);for(;s;){const T=[];T.startIndex=t.lastIndex-s[0].length;const a=s.length;for(let R=0;R<a;R++)T.push(s[R]);r.push(T),s=t.exec(E)}return r}const xt=function(E){const t=ys.exec(E);return!(t===null||typeof t>"u")};function Gs(E){return typeof E<"u"}const Fs={allowBooleanAttributes:!1,unpairedTags:[]};function WE(E,t){t=Object.assign({},Fs,t);const r=[];let s=!1,T=!1;E[0]==="\uFEFF"&&(E=E.substr(1));for(let a=0;a<E.length;a++)if(E[a]==="<"&&E[a+1]==="?"){if(a+=2,a=KE(E,a),a.err)return a}else if(E[a]==="<"){let R=a;if(a++,E[a]==="!"){a=kE(E,a);continue}else{let C=!1;E[a]==="/"&&(C=!0,a++);let I="";for(;a<E.length&&E[a]!==">"&&E[a]!==" "&&E[a]!==" "&&E[a]!==`
13
+ @`+(U.systemId||"")+"#[line:"+U.lineNumber+",col:"+U.columnNumber+"]"}function b(U,ee,te){return typeof U=="string"?U.substr(ee,te):U.length>=ee+te||ee?new java.lang.String(U,ee,te)+"":U}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(U){l.prototype[U]=function(){return null}});function J(U,ee){U.currentElement?U.currentElement.appendChild(ee):U.doc.appendChild(ee)}return mt.__DOMHandler=l,mt.normalizeLineEndings=I,mt.DOMParser=A,mt}var xE;function Wn(){if(xE)return Ut;xE=1;var E=GE();return Ut.DOMImplementation=E.DOMImplementation,Ut.XMLSerializer=E.XMLSerializer,Ut.DOMParser=wn().DOMParser,Ut}var YE=Wn();const Xn={key:0,class:"xml-node__comment"},Kn={key:1,class:"xml-node__cdata"},kn={key:2,class:"xml-node__element"},$n={key:0,class:"xml-node__line"},qn=["contenteditable","onKeydown"],Jn=["contenteditable","onDblclick","onKeydown"],Qn=["contenteditable","onDblclick","onKeydown"],Zn=["contenteditable","onKeydown"],jn={key:1,class:"xml-node__line"},zn=["contenteditable","onKeydown"],es=["contenteditable","onDblclick","onKeydown"],ts=["contenteditable","onDblclick","onKeydown"],Es=["contenteditable","onKeydown"],rs={key:2,class:"xml-node__line"},ns=["contenteditable","onKeydown"],ss=["contenteditable","onDblclick","onKeydown"],Ts=["contenteditable","onDblclick","onKeydown"],os={key:3,class:"xml-node__line"},as=["contenteditable","onKeydown"],As=["contenteditable","onDblclick","onKeydown"],is=["contenteditable","onDblclick","onKeydown"],Rs={key:4},Ss={key:0,class:"xml-node__line"},Ns=["contenteditable","onKeydown"],Is=["contenteditable","onDblclick","onKeydown"],Os=["contenteditable","onDblclick","onKeydown"],us=["title"],ls={class:"xml-node__line"},Cs=["title"],cs=["contenteditable","onKeydown"],_s={key:1},Ls=["contenteditable","onKeydown"],Ds=["contenteditable","onDblclick","onKeydown"],ps=["contenteditable","onDblclick","onKeydown"],ds=["title"],Ps={key:0,class:"xml-node__children"},fs={key:0,class:"xml-node__text"},hs=["contenteditable","onKeydown"],Ms={key:1,class:"xml-node__line"},Us=Mt(o.defineComponent({__name:"XmlNode",props:{node:{},index:{},level:{default:0},parentPath:{default:""},expanded:{},theme:{},selfClosingTags:{default:()=>new Set}},emits:["toggle-expand","copy","update:tagName","update:attributeName","update:attributeValue","update:textContent","update:cdataContent"],setup(E,{emit:t}){o.useCssVars(c=>({a5584520:c.theme.colors.collapsedText,"4135219e":c.theme.colors.collapsedBackground,"8d1f7eea":c.theme.colors.collapsedBackgroundHover,"75d8ecf4":c.theme.colors.indentLine}));const r=E,s=t,T=o.ref(!1),a=o.ref(null),R=o.ref(null),C=o.ref(!1),I=o.ref(!1),A=o.ref(""),u=o.ref(""),l=o.ref(""),h=o.ref(""),M=o.ref(""),b=o.ref(null),J=o.ref(null),U=o.ref(null),ee=o.ref(null),te=o.ref(null),q=o.computed(()=>Object.keys(r.node).find(ne=>!ne.startsWith(":")&&!ne.startsWith("#"))||""),_e=o.computed(()=>q.value?r.parentPath?`${r.parentPath}.${q.value}[${r.index}]`:`${q.value}[${r.index}]`:""),Le=o.computed(()=>r.expanded.has(_e.value)),z=o.computed(()=>r.node["#comment"]?"comment":r.node.__cdata?"cdata":q.value?"element":"unknown"),D=o.computed(()=>{const c=r.node[":@"]||{},ne={};return Object.keys(c).forEach(Be=>{Be.startsWith("@_")&&(ne[Be.substring(2)]=c[Be])}),ne}),ie=o.computed(()=>{if(z.value!=="element"||!q.value)return[];const c=r.node[q.value];return Array.isArray(c)?c:[]}),H=o.computed(()=>ie.value.some(c=>c.__cdata)),g=o.computed(()=>{if(!H.value)return"";const c=ie.value.find(ne=>ne.__cdata);if(c&&Array.isArray(c.__cdata)){const ne=c.__cdata;if(ne.length>0&&ne[0]["#text"])return ne[0]["#text"]}return""}),Q=o.computed(()=>{if(z.value!=="element"||!q.value||H.value)return"";const c=r.node[q.value];if(!Array.isArray(c))return"";const ne=c.find(Be=>Be["#text"]);return ne?ne["#text"]:""}),X=o.computed(()=>{if(z.value!=="comment")return"";const c=r.node["#comment"];return Array.isArray(c)&&c.length>0&&c[0]["#text"]||""}),K=o.computed(()=>ie.value.some(c=>Object.keys(c).some(Be=>!Be.startsWith("#")&&!Be.startsWith(":")))),ae=o.computed(()=>K.value?ie.value.filter(c=>Object.keys(c).some(Be=>!Be.startsWith("#")&&!Be.startsWith(":"))).length:0),ce=o.computed(()=>z.value==="element"&&!K.value&&Q.value!==""),pe=o.computed(()=>z.value==="element"&&!K.value&&Q.value===""),x=o.computed(()=>pe.value&&r.selfClosingTags?.has(q.value)||!1),Z=()=>{K.value&&s("toggle-expand",_e.value)},Oe=(c,ne)=>`${_e.value}-child-${ne}`,me=()=>`${_e.value}.${q.value}`,Te=()=>{T.value=!0,A.value=q.value,o.nextTick(()=>{if(b.value){b.value.focus();const c=document.createRange();c.selectNodeContents(b.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(c)}})},v=c=>{a.value=c,u.value=c,o.nextTick(()=>{if(J.value){J.value.focus();const ne=document.createRange();ne.selectNodeContents(J.value);const Be=window.getSelection();Be?.removeAllRanges(),Be?.addRange(ne)}})},p=c=>{R.value=c,l.value=D.value[c]||"",o.nextTick(()=>{if(U.value){U.value.focus();const ne=document.createRange();ne.selectNodeContents(U.value);const Be=window.getSelection();Be?.removeAllRanges(),Be?.addRange(ne)}})},m=()=>{C.value=!0,h.value=Q.value,o.nextTick(()=>{if(ee.value){ee.value.focus();const c=document.createRange();c.selectNodeContents(ee.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(c)}})},P=()=>{if(!T.value)return;const c=b.value?.innerText.trim()||"";if(!c||c===q.value){T.value=!1;return}T.value=!1,s("update:tagName",_e.value,q.value,c)},B=()=>{if(!a.value)return;const c=a.value,ne=J.value?.innerText.trim()||"";if(!ne||ne===c){a.value=null;return}a.value=null,s("update:attributeName",_e.value,c,ne)},k=()=>{if(!R.value)return;const c=R.value,ne=U.value?.innerText.trim()||"";R.value=null,s("update:attributeValue",_e.value,c,ne)},f=()=>{if(!C.value)return;const c=ee.value?.innerText||"";if(c===Q.value){C.value=!1;return}C.value=!1,s("update:textContent",_e.value,c)},j=()=>{T.value=!1,A.value=q.value},Ee=()=>{a.value&&(u.value=a.value,a.value=null)},Re=()=>{R.value&&(l.value=D.value[R.value]||"",R.value=null)},le=()=>{C.value=!1,h.value=Q.value},Ue=()=>{I.value=!0,M.value=g.value,o.nextTick(()=>{if(te.value){te.value.focus();const c=document.createRange();c.selectNodeContents(te.value);const ne=window.getSelection();ne?.removeAllRanges(),ne?.addRange(c)}})},Ne=()=>{if(!I.value)return;const c=te.value?.innerText||"";if(c===g.value){I.value=!1;return}I.value=!1,s("update:cdataContent",_e.value,c)},$=()=>{I.value=!1,M.value=g.value},ge=c=>{K.value&&(c.preventDefault(),Te())};return(c,ne)=>{const Be=o.resolveComponent("XmlNode",!0);return o.openBlock(),o.createElementBlock("div",{class:"xml-node",style:o.normalizeStyle({paddingLeft:c.level>0?"16px":"0"})},[z.value==="comment"?(o.openBlock(),o.createElementBlock("div",Xn,[o.createElementVNode("span",{style:o.normalizeStyle({color:c.theme.colors.xmlComment})}," <!-- "+o.toDisplayString(X.value)+" --> ",5)])):z.value==="cdata"?(o.openBlock(),o.createElementBlock("div",Kn,[o.createElementVNode("span",{style:o.normalizeStyle({color:c.theme.colors.xmlCdata})}," <![CDATA["+o.toDisplayString(c.node.__cdata)+"]]> ",5)])):z.value==="element"?(o.openBlock(),o.createElementBlock("div",kn,[H.value?(o.openBlock(),o.createElementBlock("div",$n,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,qn),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Jn),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Qn),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4),o.createElementVNode("span",{class:"xml-node__cdata",style:o.normalizeStyle({color:c.theme.colors.xmlCdata})},"<![CDATA[",4),o.createElementVNode("span",{class:"xml-node__cdata-content xml-node__cdata-content--editable",style:o.normalizeStyle({color:c.theme.colors.xmlCdata}),contenteditable:I.value,onDblclick:Ue,onKeydown:[o.withKeys(o.withModifiers(Ne,["prevent"]),["enter"]),o.withKeys($,["escape"])],onBlur:Ne,ref_key:"cdataContentRef",ref:te,title:"Double-click to edit CDATA content"},o.toDisplayString(I.value?M.value:g.value),45,Zn),o.createElementVNode("span",{class:"xml-node__cdata",style:o.normalizeStyle({color:c.theme.colors.xmlCdata})},"]]>",4),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:c.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)])):ce.value?(o.openBlock(),o.createElementBlock("div",jn,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,zn),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,es),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,ts),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4),o.createElementVNode("span",{class:"xml-node__text-content xml-node__text-content--editable",style:o.normalizeStyle({color:c.theme.colors.xmlText}),contenteditable:C.value,onDblclick:m,onKeydown:[o.withKeys(o.withModifiers(f,["prevent"]),["enter"]),o.withKeys(le,["escape"])],onBlur:f,ref_key:"textContentRef",ref:ee,title:"Double-click to edit text content"},o.toDisplayString(C.value?h.value:Q.value),45,Es),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:c.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)])):pe.value&&x.value?(o.openBlock(),o.createElementBlock("div",rs,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,ns),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,ss),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Ts),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})}," />",4)])):pe.value?(o.openBlock(),o.createElementBlock("div",os,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,as),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,As),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,is),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"></",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:c.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)])):(o.openBlock(),o.createElementBlock("div",Rs,[!Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ss,[o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[0]||(ne[0]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:o.withModifiers(Te,["stop"]),onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click or right-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,Ns)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Is),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,Os),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[1]||(ne[1]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)]),o.createElementVNode("span",{class:"xml-node__collapsed-badge",onClick:ne[2]||(ne[2]=de=>Z()),title:`Click to expand ${ae.value} tag${ae.value>1?"s":""}`},o.toDisplayString(ae.value)+" tag"+o.toDisplayString(ae.value>1?"s":""),9,us),o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[3]||(ne[3]=de=>Z()),title:"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:c.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)])])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",ls,[K.value?(o.openBlock(),o.createElementBlock("span",{key:0,class:"xml-node__clickable-part",onClick:ne[4]||(ne[4]=de=>Z()),title:Le.value?"Click to collapse":"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:o.withModifiers(Te,["stop"]),onContextmenu:ge,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click or right-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,cs)],8,Cs)):(o.openBlock(),o.createElementBlock("span",_s,[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"<",4),o.createElementVNode("span",{class:"xml-node__tag xml-node__tag--editable",style:o.normalizeStyle({color:c.theme.colors.xmlTag}),contenteditable:T.value,onDblclick:Te,onKeydown:[o.withKeys(o.withModifiers(P,["prevent"]),["enter"]),o.withKeys(j,["escape"])],onBlur:P,ref_key:"tagNameRef",ref:b,title:"Double-click to edit tag name"},o.toDisplayString(T.value?A.value:q.value),45,Ls)])),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(D.value,(de,F)=>(o.openBlock(),o.createElementBlock("span",{key:F,class:"xml-node__attribute"},[o.createElementVNode("span",{class:"xml-node__attr-name xml-node__attr-name--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttribute}),contenteditable:a.value===F,onDblclick:V=>v(F),onKeydown:[o.withKeys(o.withModifiers(B,["prevent"]),["enter"]),o.withKeys(Ee,["escape"])],onBlur:B,ref_for:!0,ref:V=>{a.value===F&&(J.value=V)},title:"Double-click to edit attribute name"},o.toDisplayString(a.value===F?u.value:F),45,Ds),o.createElementVNode("span",{class:"xml-node__equals",style:o.normalizeStyle({color:c.theme.colors.xmlEquals})},"=",4),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4),o.createElementVNode("span",{class:"xml-node__attr-value xml-node__attr-value--editable",style:o.normalizeStyle({color:c.theme.colors.xmlAttributeValue}),contenteditable:R.value===F,onDblclick:V=>p(F),onKeydown:[o.withKeys(o.withModifiers(k,["prevent"]),["enter"]),o.withKeys(Re,["escape"])],onBlur:k,ref_for:!0,ref:V=>{R.value===F&&(U.value=V)},title:"Double-click to edit attribute value"},o.toDisplayString(R.value===F?l.value:de),45,ps),o.createElementVNode("span",{class:"xml-node__quote",style:o.normalizeStyle({color:c.theme.colors.xmlQuote})},'"',4)]))),128)),K.value?(o.openBlock(),o.createElementBlock("span",{key:2,class:"xml-node__clickable-part",onClick:ne[5]||(ne[5]=de=>Z()),title:Le.value?"Click to collapse":"Click to expand"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)],8,ds)):(o.openBlock(),o.createElementBlock("span",{key:3,class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},o.toDisplayString(K.value?">":"/>"),5))]),Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ps,[ie.value.length===0&&Q.value.trim()?(o.openBlock(),o.createElementBlock("div",fs,[o.createElementVNode("span",{class:"xml-node__text-content xml-node__text-content--editable",style:o.normalizeStyle({color:c.theme.colors.xmlText}),contenteditable:C.value,onDblclick:m,onKeydown:[o.withKeys(o.withModifiers(f,["prevent"]),["enter"]),o.withKeys(le,["escape"])],onBlur:f,ref_key:"textContentRef",ref:ee,title:"Double-click to edit text content"},o.toDisplayString(C.value?h.value:Q.value),45,hs)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(ie.value,(de,F)=>(o.openBlock(),o.createBlock(Be,{key:Oe(de,F),node:de,index:F,level:c.level+1,"parent-path":me(),expanded:c.expanded,theme:c.theme,selfClosingTags:c.selfClosingTags,onToggleExpand:ne[6]||(ne[6]=V=>c.$emit("toggle-expand",V)),onCopy:ne[7]||(ne[7]=V=>c.$emit("copy",V)),"onUpdate:tagName":ne[8]||(ne[8]=(V,ve,Qe)=>c.$emit("update:tagName",V,ve,Qe)),"onUpdate:attributeName":ne[9]||(ne[9]=(V,ve,Qe)=>c.$emit("update:attributeName",V,ve,Qe)),"onUpdate:attributeValue":ne[10]||(ne[10]=(V,ve,Qe)=>c.$emit("update:attributeValue",V,ve,Qe)),"onUpdate:textContent":ne[11]||(ne[11]=(V,ve)=>c.$emit("update:textContent",V,ve)),"onUpdate:cdataContent":ne[12]||(ne[12]=(V,ve)=>c.$emit("update:cdataContent",V,ve))},null,8,["node","index","level","parent-path","expanded","theme","selfClosingTags"]))),128))])):o.createCommentVNode("",!0),Le.value&&K.value?(o.openBlock(),o.createElementBlock("div",Ms,[o.createElementVNode("span",{class:"xml-node__clickable-part",onClick:ne[13]||(ne[13]=de=>Z()),title:"Click to collapse"},[o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},"</",4),o.createElementVNode("span",{class:"xml-node__tag",style:o.normalizeStyle({color:c.theme.colors.xmlTag})},o.toDisplayString(T.value?A.value:q.value),5),o.createElementVNode("span",{class:"xml-node__bracket",style:o.normalizeStyle({color:c.theme.colors.xmlBracket})},">",4)])])):o.createCommentVNode("",!0)],64))]))])):o.createCommentVNode("",!0)],4)}}}),[["__scopeId","data-v-cb0803af"]]),VE={"github-light":{name:"github-light",colors:{background:"#ffffff",surfaceBackground:"#f6f8fa",border:"#d0d7de",text:"#24292f",textSecondary:"#57606a",buttonBackground:"#f6f8fa",buttonBackgroundHover:"#f3f4f6",buttonBorder:"#d0d7de",buttonText:"#24292f",buttonPrimary:"#1f883d",buttonPrimaryHover:"#1a7f37",success:"#1f883d",successBackground:"#dafbe1",error:"#cf222e",errorBackground:"#ffebe9",xmlTag:"#116329",xmlAttribute:"#0550ae",xmlAttributeValue:"#0a3069",xmlText:"#24292f",xmlComment:"#6e7781",xmlCdata:"#8250df",xmlDeclaration:"#953800",xmlBracket:"#6e7781",xmlEquals:"#6e7781",xmlQuote:"#0550ae",collapsedBackground:"#ddf4ff",collapsedBackgroundHover:"#b6e3ff",collapsedText:"#0969da",indentLine:"#d0d7de"}},"github-dark":{name:"github-dark",colors:{background:"#0d1117",surfaceBackground:"#161b22",border:"#30363d",text:"#c9d1d9",textSecondary:"#8b949e",buttonBackground:"#21262d",buttonBackgroundHover:"#30363d",buttonBorder:"#30363d",buttonText:"#c9d1d9",buttonPrimary:"#238636",buttonPrimaryHover:"#2ea043",success:"#3fb950",successBackground:"#0f2e1c",error:"#f85149",errorBackground:"#3d1319",xmlTag:"#7ee787",xmlAttribute:"#79c0ff",xmlAttributeValue:"#a5d6ff",xmlText:"#c9d1d9",xmlComment:"#8b949e",xmlCdata:"#d2a8ff",xmlDeclaration:"#ffa657",xmlBracket:"#8b949e",xmlEquals:"#8b949e",xmlQuote:"#79c0ff",collapsedBackground:"#1c2128",collapsedBackgroundHover:"#2d333b",collapsedText:"#79c0ff",indentLine:"#30363d"}},"min-light":{name:"min-light",colors:{background:"#ffffff",surfaceBackground:"#fafafa",border:"#e5e5e5",text:"#171717",textSecondary:"#737373",buttonBackground:"#fafafa",buttonBackgroundHover:"#f5f5f5",buttonBorder:"#e5e5e5",buttonText:"#171717",buttonPrimary:"#22c55e",buttonPrimaryHover:"#16a34a",success:"#22c55e",successBackground:"#dcfce7",error:"#ef4444",errorBackground:"#fee2e2",xmlTag:"#16a34a",xmlAttribute:"#2563eb",xmlAttributeValue:"#1e40af",xmlText:"#171717",xmlComment:"#737373",xmlCdata:"#9333ea",xmlDeclaration:"#ea580c",xmlBracket:"#737373",xmlEquals:"#737373",xmlQuote:"#2563eb",collapsedBackground:"#e0f2fe",collapsedBackgroundHover:"#bae6fd",collapsedText:"#0284c7",indentLine:"#e5e7eb"}},"slack-ochin":{name:"slack-ochin",colors:{background:"#fef5ed",surfaceBackground:"#fef9f3",border:"#e9dcc9",text:"#3d3c40",textSecondary:"#616061",buttonBackground:"#fef9f3",buttonBackgroundHover:"#f9f0e5",buttonBorder:"#e9dcc9",buttonText:"#3d3c40",buttonPrimary:"#007a5a",buttonPrimaryHover:"#006644",success:"#007a5a",successBackground:"#d1f4e0",error:"#e01e5a",errorBackground:"#ffdbea",xmlTag:"#007a5a",xmlAttribute:"#1264a3",xmlAttributeValue:"#0b4c8c",xmlText:"#3d3c40",xmlComment:"#616061",xmlCdata:"#8b2eff",xmlDeclaration:"#e8912d",xmlBracket:"#616061",xmlEquals:"#616061",xmlQuote:"#1264a3",collapsedBackground:"#ffe8d6",collapsedBackgroundHover:"#ffd4b0",collapsedText:"#d73502",indentLine:"#e8d5b7"}}},ms=E=>VE[E]||VE["github-light"],vE=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Bs=vE+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",gs="["+vE+"]["+Bs+"]*",ys=new RegExp("^"+gs+"$");function wE(E,t){const r=[];let s=t.exec(E);for(;s;){const T=[];T.startIndex=t.lastIndex-s[0].length;const a=s.length;for(let R=0;R<a;R++)T.push(s[R]);r.push(T),s=t.exec(E)}return r}const xt=function(E){const t=ys.exec(E);return!(t===null||typeof t>"u")};function Gs(E){return typeof E<"u"}const Fs={allowBooleanAttributes:!1,unpairedTags:[]};function WE(E,t){t=Object.assign({},Fs,t);const r=[];let s=!1,T=!1;E[0]==="\uFEFF"&&(E=E.substr(1));for(let a=0;a<E.length;a++)if(E[a]==="<"&&E[a+1]==="?"){if(a+=2,a=KE(E,a),a.err)return a}else if(E[a]==="<"){let R=a;if(a++,E[a]==="!"){a=kE(E,a);continue}else{let C=!1;E[a]==="/"&&(C=!0,a++);let I="";for(;a<E.length&&E[a]!==">"&&E[a]!==" "&&E[a]!==" "&&E[a]!==`
14
14
  `&&E[a]!=="\r";a++)I+=E[a];if(I=I.trim(),I[I.length-1]==="/"&&(I=I.substring(0,I.length-1),a--),!Ws(I)){let l;return I.trim().length===0?l="Invalid space after '<'.":l="Tag '"+I+"' is an invalid name.",be("InvalidTag",l,ke(E,a))}const A=xs(E,a);if(A===!1)return be("InvalidAttr","Attributes for '"+I+"' have open quote.",ke(E,a));let u=A.value;if(a=A.index,u[u.length-1]==="/"){const l=a-u.length;u=u.substring(0,u.length-1);const h=$E(u,t);if(h===!0)s=!0;else return be(h.err.code,h.err.msg,ke(E,l+h.err.line))}else if(C)if(A.tagClosed){if(u.trim().length>0)return be("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",ke(E,R));if(r.length===0)return be("InvalidTag","Closing tag '"+I+"' has not been opened.",ke(E,R));{const l=r.pop();if(I!==l.tagName){let h=ke(E,l.tagStartPos);return be("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+I+"'.",ke(E,R))}r.length==0&&(T=!0)}}else return be("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",ke(E,a));else{const l=$E(u,t);if(l!==!0)return be(l.err.code,l.err.msg,ke(E,a-u.length+l.err.line));if(T===!0)return be("InvalidXml","Multiple possible root nodes found.",ke(E,a));t.unpairedTags.indexOf(I)!==-1||r.push({tagName:I,tagStartPos:R}),s=!0}for(a++;a<E.length;a++)if(E[a]==="<")if(E[a+1]==="!"){a++,a=kE(E,a);continue}else if(E[a+1]==="?"){if(a=KE(E,++a),a.err)return a}else break;else if(E[a]==="&"){const l=vs(E,a);if(l==-1)return be("InvalidChar","char '&' is not expected.",ke(E,a));a=l}else if(T===!0&&!XE(E[a]))return be("InvalidXml","Extra text at the end",ke(E,a));E[a]==="<"&&a--}}else{if(XE(E[a]))continue;return be("InvalidChar","char '"+E[a]+"' is not expected.",ke(E,a))}if(s){if(r.length==1)return be("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ke(E,r[0].tagStartPos));if(r.length>0)return be("InvalidXml","Invalid '"+JSON.stringify(r.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return be("InvalidXml","Start tag expected.",1);return!0}function XE(E){return E===" "||E===" "||E===`
15
15
  `||E==="\r"}function KE(E,t){const r=t;for(;t<E.length;t++)if(E[t]=="?"||E[t]==" "){const s=E.substr(r,t-r);if(t>5&&s==="xml")return be("InvalidXml","XML declaration allowed only at the start of the document.",ke(E,t));if(E[t]=="?"&&E[t+1]==">"){t++;break}else continue}return t}function kE(E,t){if(E.length>t+5&&E[t+1]==="-"&&E[t+2]==="-"){for(t+=3;t<E.length;t++)if(E[t]==="-"&&E[t+1]==="-"&&E[t+2]===">"){t+=2;break}}else if(E.length>t+8&&E[t+1]==="D"&&E[t+2]==="O"&&E[t+3]==="C"&&E[t+4]==="T"&&E[t+5]==="Y"&&E[t+6]==="P"&&E[t+7]==="E"){let r=1;for(t+=8;t<E.length;t++)if(E[t]==="<")r++;else if(E[t]===">"&&(r--,r===0))break}else if(E.length>t+9&&E[t+1]==="["&&E[t+2]==="C"&&E[t+3]==="D"&&E[t+4]==="A"&&E[t+5]==="T"&&E[t+6]==="A"&&E[t+7]==="["){for(t+=8;t<E.length;t++)if(E[t]==="]"&&E[t+1]==="]"&&E[t+2]===">"){t+=2;break}}return t}const Hs='"',bs="'";function xs(E,t){let r="",s="",T=!1;for(;t<E.length;t++){if(E[t]===Hs||E[t]===bs)s===""?s=E[t]:s!==E[t]||(s="");else if(E[t]===">"&&s===""){T=!0;break}r+=E[t]}return s!==""?!1:{value:r,index:t,tagClosed:T}}const Ys=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function $E(E,t){const r=wE(E,Ys),s={};for(let T=0;T<r.length;T++){if(r[T][1].length===0)return be("InvalidAttr","Attribute '"+r[T][2]+"' has no space in starting.",Bt(r[T]));if(r[T][3]!==void 0&&r[T][4]===void 0)return be("InvalidAttr","Attribute '"+r[T][2]+"' is without value.",Bt(r[T]));if(r[T][3]===void 0&&!t.allowBooleanAttributes)return be("InvalidAttr","boolean attribute '"+r[T][2]+"' is not allowed.",Bt(r[T]));const a=r[T][2];if(!ws(a))return be("InvalidAttr","Attribute '"+a+"' is an invalid name.",Bt(r[T]));if(!s.hasOwnProperty(a))s[a]=1;else return be("InvalidAttr","Attribute '"+a+"' is repeated.",Bt(r[T]))}return!0}function Vs(E,t){let r=/\d/;for(E[t]==="x"&&(t++,r=/[\da-fA-F]/);t<E.length;t++){if(E[t]===";")return t;if(!E[t].match(r))break}return-1}function vs(E,t){if(t++,E[t]===";")return-1;if(E[t]==="#")return t++,Vs(E,t);let r=0;for(;t<E.length;t++,r++)if(!(E[t].match(/\w/)&&r<20)){if(E[t]===";")break;return-1}return t}function be(E,t,r){return{err:{code:E,msg:t,line:r.line||r,col:r.col}}}function ws(E){return xt(E)}function Ws(E){return xt(E)}function ke(E,t){const r=E.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Bt(E){return E.startIndex+E[1].length}const Xs={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(E,t){return t},attributeValueProcessor:function(E,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(E,t,r){return E},captureMetaData:!1},Ks=function(E){return Object.assign({},Xs,E)};let Yt;typeof Symbol!="function"?Yt="@@xmlMetadata":Yt=Symbol("XML Node Metadata");class ct{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t,r){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),r!==void 0&&(this.child[this.child.length-1][Yt]={startIndex:r})}static getMetaDataSymbol(){return Yt}}class ks{constructor(t){this.suppressValidationErr=!t}readDocType(t,r){const s={};if(t[r+3]==="O"&&t[r+4]==="C"&&t[r+5]==="T"&&t[r+6]==="Y"&&t[r+7]==="P"&&t[r+8]==="E"){r=r+9;let T=1,a=!1,R=!1,C="";for(;r<t.length;r++)if(t[r]==="<"&&!R){if(a&&_t(t,"!ENTITY",r)){r+=7;let I,A;[I,A,r]=this.readEntityExp(t,r+1,this.suppressValidationErr),A.indexOf("&")===-1&&(s[I]={regx:RegExp(`&${I};`,"g"),val:A})}else if(a&&_t(t,"!ELEMENT",r)){r+=8;const{index:I}=this.readElementExp(t,r+1);r=I}else if(a&&_t(t,"!ATTLIST",r))r+=8;else if(a&&_t(t,"!NOTATION",r)){r+=9;const{index:I}=this.readNotationExp(t,r+1,this.suppressValidationErr);r=I}else if(_t(t,"!--",r))R=!0;else throw new Error("Invalid DOCTYPE");T++,C=""}else if(t[r]===">"){if(R?t[r-1]==="-"&&t[r-2]==="-"&&(R=!1,T--):T--,T===0)break}else t[r]==="["?a=!0:C+=t[r];if(T!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:s,i:r}}readEntityExp(t,r){r=$e(t,r);let s="";for(;r<t.length&&!/\s/.test(t[r])&&t[r]!=='"'&&t[r]!=="'";)s+=t[r],r++;if(gt(s),r=$e(t,r),!this.suppressValidationErr){if(t.substring(r,r+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(t[r]==="%")throw new Error("Parameter entities are not supported")}let T="";return[r,T]=this.readIdentifierVal(t,r,"entity"),r--,[s,T,r]}readNotationExp(t,r){r=$e(t,r);let s="";for(;r<t.length&&!/\s/.test(t[r]);)s+=t[r],r++;!this.suppressValidationErr&&gt(s),r=$e(t,r);const T=t.substring(r,r+6).toUpperCase();if(!this.suppressValidationErr&&T!=="SYSTEM"&&T!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${T}"`);r+=T.length,r=$e(t,r);let a=null,R=null;if(T==="PUBLIC")[r,a]=this.readIdentifierVal(t,r,"publicIdentifier"),r=$e(t,r),(t[r]==='"'||t[r]==="'")&&([r,R]=this.readIdentifierVal(t,r,"systemIdentifier"));else if(T==="SYSTEM"&&([r,R]=this.readIdentifierVal(t,r,"systemIdentifier"),!this.suppressValidationErr&&!R))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:s,publicIdentifier:a,systemIdentifier:R,index:--r}}readIdentifierVal(t,r,s){let T="";const a=t[r];if(a!=='"'&&a!=="'")throw new Error(`Expected quoted string, found "${a}"`);for(r++;r<t.length&&t[r]!==a;)T+=t[r],r++;if(t[r]!==a)throw new Error(`Unterminated ${s} value`);return r++,[r,T]}readElementExp(t,r){r=$e(t,r);let s="";for(;r<t.length&&!/\s/.test(t[r]);)s+=t[r],r++;if(!this.suppressValidationErr&&!xt(s))throw new Error(`Invalid element name: "${s}"`);r=$e(t,r);let T="";if(t[r]==="E"&&_t(t,"MPTY",r))r+=4;else if(t[r]==="A"&&_t(t,"NY",r))r+=2;else if(t[r]==="("){for(r++;r<t.length&&t[r]!==")";)T+=t[r],r++;if(t[r]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${t[r]}"`);return{elementName:s,contentModel:T.trim(),index:r}}readAttlistExp(t,r){r=$e(t,r);let s="";for(;r<t.length&&!/\s/.test(t[r]);)s+=t[r],r++;gt(s),r=$e(t,r);let T="";for(;r<t.length&&!/\s/.test(t[r]);)T+=t[r],r++;if(!gt(T))throw new Error(`Invalid attribute name: "${T}"`);r=$e(t,r);let a="";if(t.substring(r,r+8).toUpperCase()==="NOTATION"){if(a="NOTATION",r+=8,r=$e(t,r),t[r]!=="(")throw new Error(`Expected '(', found "${t[r]}"`);r++;let C=[];for(;r<t.length&&t[r]!==")";){let I="";for(;r<t.length&&t[r]!=="|"&&t[r]!==")";)I+=t[r],r++;if(I=I.trim(),!gt(I))throw new Error(`Invalid notation name: "${I}"`);C.push(I),t[r]==="|"&&(r++,r=$e(t,r))}if(t[r]!==")")throw new Error("Unterminated list of notations");r++,a+=" ("+C.join("|")+")"}else{for(;r<t.length&&!/\s/.test(t[r]);)a+=t[r],r++;const C=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!C.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}r=$e(t,r);let R="";return t.substring(r,r+8).toUpperCase()==="#REQUIRED"?(R="#REQUIRED",r+=8):t.substring(r,r+7).toUpperCase()==="#IMPLIED"?(R="#IMPLIED",r+=7):[r,R]=this.readIdentifierVal(t,r,"ATTLIST"),{elementName:s,attributeName:T,attributeType:a,defaultValue:R,index:r}}}const $e=(E,t)=>{for(;t<E.length&&/\s/.test(E[t]);)t++;return t};function _t(E,t,r){for(let s=0;s<t.length;s++)if(t[s]!==E[r+s+1])return!1;return!0}function gt(E){if(xt(E))return E;throw new Error(`Invalid entity name ${E}`)}const $s=/^[-+]?0x[a-fA-F0-9]+$/,qs=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Js={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Qs(E,t={}){if(t=Object.assign({},Js,t),!E||typeof E!="string")return E;let r=E.trim();if(t.skipLike!==void 0&&t.skipLike.test(r))return E;if(E==="0")return 0;if(t.hex&&$s.test(r))return eT(r,16);if(r.search(/.+[eE].+/)!==-1)return js(E,r,t);{const s=qs.exec(r);if(s){const T=s[1]||"",a=s[2];let R=zs(s[3]);const C=T?E[a.length+1]===".":E[a.length]===".";if(!t.leadingZeros&&(a.length>1||a.length===1&&!C))return E;{const I=Number(r),A=String(I);if(I===0)return I;if(A.search(/[eE]/)!==-1)return t.eNotation?I:E;if(r.indexOf(".")!==-1)return A==="0"||A===R||A===`${T}${R}`?I:E;let u=a?R:r;return a?u===A||T+u===A?I:E:u===A||u===T+A?I:E}}else return E}}const Zs=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function js(E,t,r){if(!r.eNotation)return E;const s=t.match(Zs);if(s){let T=s[1]||"";const a=s[3].indexOf("e")===-1?"E":"e",R=s[2],C=T?E[R.length+1]===a:E[R.length]===a;return R.length>1&&C?E:R.length===1&&(s[3].startsWith(`.${a}`)||s[3][0]===a)?Number(t):r.leadingZeros&&!C?(t=(s[1]||"")+s[3],Number(t)):E}else return E}function zs(E){return E&&E.indexOf(".")!==-1&&(E=E.replace(/0+$/,""),E==="."?E="0":E[0]==="."?E="0"+E:E[E.length-1]==="."&&(E=E.substring(0,E.length-1))),E}function eT(E,t){if(parseInt)return parseInt(E,t);if(Number.parseInt)return Number.parseInt(E,t);if(window&&window.parseInt)return window.parseInt(E,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function qE(E){return typeof E=="function"?E:Array.isArray(E)?t=>{for(const r of E)if(typeof r=="string"&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}class tT{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,s)=>String.fromCodePoint(Number.parseInt(s,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,s)=>String.fromCodePoint(Number.parseInt(s,16))}},this.addExternalEntities=ET,this.parseXml=oT,this.parseTextData=rT,this.resolveNameSpace=nT,this.buildAttributesMap=TT,this.isItStopNode=RT,this.replaceEntitiesValue=AT,this.readStopNodeData=NT,this.saveTextToParentTag=iT,this.addChild=aT,this.ignoreAttributesFn=qE(this.options.ignoreAttributes)}}function ET(E){const t=Object.keys(E);for(let r=0;r<t.length;r++){const s=t[r];this.lastEntities[s]={regex:new RegExp("&"+s+";","g"),val:E[s]}}}function rT(E,t,r,s,T,a,R){if(E!==void 0&&(this.options.trimValues&&!s&&(E=E.trim()),E.length>0)){R||(E=this.replaceEntitiesValue(E));const C=this.options.tagValueProcessor(t,E,r,T,a);return C==null?E:typeof C!=typeof E||C!==E?C:this.options.trimValues?Zt(E,this.options.parseTagValue,this.options.numberParseOptions):E.trim()===E?Zt(E,this.options.parseTagValue,this.options.numberParseOptions):E}}function nT(E){if(this.options.removeNSPrefix){const t=E.split(":"),r=E.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(E=r+t[1])}return E}const sT=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function TT(E,t,r){if(this.options.ignoreAttributes!==!0&&typeof E=="string"){const s=wE(E,sT),T=s.length,a={};for(let R=0;R<T;R++){const C=this.resolveNameSpace(s[R][1]);if(this.ignoreAttributesFn(C,t))continue;let I=s[R][4],A=this.options.attributeNamePrefix+C;if(C.length)if(this.options.transformAttributeName&&(A=this.options.transformAttributeName(A)),A==="__proto__"&&(A="#__proto__"),I!==void 0){this.options.trimValues&&(I=I.trim()),I=this.replaceEntitiesValue(I);const u=this.options.attributeValueProcessor(C,I,t);u==null?a[A]=I:typeof u!=typeof I||u!==I?a[A]=u:a[A]=Zt(I,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[A]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const R={};return R[this.options.attributesGroupName]=a,R}return a}}const oT=function(E){E=E.replace(/\r\n?/g,`
16
16
  `);const t=new ct("!xml");let r=t,s="",T="";const a=new ks(this.options.processEntities);for(let R=0;R<E.length;R++)if(E[R]==="<")if(E[R+1]==="/"){const I=Lt(E,">",R,"Closing Tag is not closed.");let A=E.substring(R+2,I).trim();if(this.options.removeNSPrefix){const h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&(s=this.saveTextToParentTag(s,r,T));const u=T.substring(T.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);let l=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(l=T.lastIndexOf(".",T.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=T.lastIndexOf("."),T=T.substring(0,l),r=this.tagsNodeStack.pop(),s="",R=I}else if(E[R+1]==="?"){let I=Qt(E,R,!1,"?>");if(!I)throw new Error("Pi Tag is not closed.");if(s=this.saveTextToParentTag(s,r,T),!(this.options.ignoreDeclaration&&I.tagName==="?xml"||this.options.ignorePiTags)){const A=new ct(I.tagName);A.add(this.options.textNodeName,""),I.tagName!==I.tagExp&&I.attrExpPresent&&(A[":@"]=this.buildAttributesMap(I.tagExp,T,I.tagName)),this.addChild(r,A,T,R)}R=I.closeIndex+1}else if(E.substr(R+1,3)==="!--"){const I=Lt(E,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const A=E.substring(R+4,I-2);s=this.saveTextToParentTag(s,r,T),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}R=I}else if(E.substr(R+1,2)==="!D"){const I=a.readDocType(E,R);this.docTypeEntities=I.entities,R=I.i}else if(E.substr(R+1,2)==="!["){const I=Lt(E,"]]>",R,"CDATA is not closed.")-2,A=E.substring(R+9,I);s=this.saveTextToParentTag(s,r,T);let u=this.parseTextData(A,r.tagname,T,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,u),R=I+2}else{let I=Qt(E,R,this.options.removeNSPrefix),A=I.tagName;const u=I.rawTagName;let l=I.tagExp,h=I.attrExpPresent,M=I.closeIndex;this.options.transformTagName&&(A=this.options.transformTagName(A)),r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,T,!1));const b=r;b&&this.options.unpairedTags.indexOf(b.tagname)!==-1&&(r=this.tagsNodeStack.pop(),T=T.substring(0,T.lastIndexOf("."))),A!==t.tagname&&(T+=T?"."+A:A);const J=R;if(this.isItStopNode(this.options.stopNodes,T,A)){let U="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)A[A.length-1]==="/"?(A=A.substr(0,A.length-1),T=T.substr(0,T.length-1),l=A):l=l.substr(0,l.length-1),R=I.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)R=I.closeIndex;else{const te=this.readStopNodeData(E,u,M+1);if(!te)throw new Error(`Unexpected end of ${u}`);R=te.i,U=te.tagContent}const ee=new ct(A);A!==l&&h&&(ee[":@"]=this.buildAttributesMap(l,T,A)),U&&(U=this.parseTextData(U,A,T,!0,h,!0,!0)),T=T.substr(0,T.lastIndexOf(".")),ee.add(this.options.textNodeName,U),this.addChild(r,ee,T,J)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){A[A.length-1]==="/"?(A=A.substr(0,A.length-1),T=T.substr(0,T.length-1),l=A):l=l.substr(0,l.length-1),this.options.transformTagName&&(A=this.options.transformTagName(A));const U=new ct(A);A!==l&&h&&(U[":@"]=this.buildAttributesMap(l,T,A)),this.addChild(r,U,T,J),T=T.substr(0,T.lastIndexOf("."))}else{const U=new ct(A);this.tagsNodeStack.push(r),A!==l&&h&&(U[":@"]=this.buildAttributesMap(l,T,A)),this.addChild(r,U,T,J),r=U}s="",R=M}}else s+=E[R];return t.child};function aT(E,t,r,s){this.options.captureMetaData||(s=void 0);const T=this.options.updateTag(t.tagname,r,t[":@"]);T===!1||(typeof T=="string"&&(t.tagname=T),E.addChild(t,s))}const AT=function(E){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];E=E.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];E=E.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];E=E.replace(r.regex,r.val)}E=E.replace(this.ampEntity.regex,this.ampEntity.val)}return E};function iT(E,t,r,s){return E&&(s===void 0&&(s=t.child.length===0),E=this.parseTextData(E,t.tagname,r,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,s),E!==void 0&&E!==""&&t.add(this.options.textNodeName,E),E=""),E}function RT(E,t,r){const s="*."+r;for(const T in E){const a=E[T];if(s===a||t===a)return!0}return!1}function ST(E,t,r=">"){let s,T="";for(let a=t;a<E.length;a++){let R=E[a];if(s)R===s&&(s="");else if(R==='"'||R==="'")s=R;else if(R===r[0])if(r[1]){if(E[a+1]===r[1])return{data:T,index:a}}else return{data:T,index:a};else R===" "&&(R=" ");T+=R}}function Lt(E,t,r,s){const T=E.indexOf(t,r);if(T===-1)throw new Error(s);return T+t.length-1}function Qt(E,t,r,s=">"){const T=ST(E,t+1,s);if(!T)return;let a=T.data;const R=T.index,C=a.search(/\s/);let I=a,A=!0;C!==-1&&(I=a.substring(0,C),a=a.substring(C+1).trimStart());const u=I;if(r){const l=I.indexOf(":");l!==-1&&(I=I.substr(l+1),A=I!==T.data.substr(l+1))}return{tagName:I,tagExp:a,closeIndex:R,attrExpPresent:A,rawTagName:u}}function NT(E,t,r){const s=r;let T=1;for(;r<E.length;r++)if(E[r]==="<")if(E[r+1]==="/"){const a=Lt(E,">",r,`${t} is not closed`);if(E.substring(r+2,a).trim()===t&&(T--,T===0))return{tagContent:E.substring(s,r),i:a};r=a}else if(E[r+1]==="?")r=Lt(E,"?>",r+1,"StopNode is not closed.");else if(E.substr(r+1,3)==="!--")r=Lt(E,"-->",r+3,"StopNode is not closed.");else if(E.substr(r+1,2)==="![")r=Lt(E,"]]>",r,"StopNode is not closed.")-2;else{const a=Qt(E,r,">");a&&((a&&a.tagName)===t&&a.tagExp[a.tagExp.length-1]!=="/"&&T++,r=a.closeIndex)}}function Zt(E,t,r){if(t&&typeof E=="string"){const s=E.trim();return s==="true"?!0:s==="false"?!1:Qs(E,r)}else return Gs(E)?E:""}const jt=ct.getMetaDataSymbol();function IT(E,t){return JE(E,t)}function JE(E,t,r){let s;const T={};for(let a=0;a<E.length;a++){const R=E[a],C=OT(R);let I="";if(r===void 0?I=C:I=r+"."+C,C===t.textNodeName)s===void 0?s=R[C]:s+=""+R[C];else{if(C===void 0)continue;if(R[C]){let A=JE(R[C],t,I);const u=lT(A,t);R[jt]!==void 0&&(A[jt]=R[jt]),R[":@"]?uT(A,R[":@"],I,t):Object.keys(A).length===1&&A[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?A=A[t.textNodeName]:Object.keys(A).length===0&&(t.alwaysCreateTextNode?A[t.textNodeName]="":A=""),T[C]!==void 0&&T.hasOwnProperty(C)?(Array.isArray(T[C])||(T[C]=[T[C]]),T[C].push(A)):t.isArray(C,I,u)?T[C]=[A]:T[C]=A}}}return typeof s=="string"?s.length>0&&(T[t.textNodeName]=s):s!==void 0&&(T[t.textNodeName]=s),T}function OT(E){const t=Object.keys(E);for(let r=0;r<t.length;r++){const s=t[r];if(s!==":@")return s}}function uT(E,t,r,s){if(t){const T=Object.keys(t),a=T.length;for(let R=0;R<a;R++){const C=T[R];s.isArray(C,r+"."+C,!0,!0)?E[C]=[t[C]]:E[C]=t[C]}}}function lT(E,t){const{textNodeName:r}=t,s=Object.keys(E).length;return!!(s===0||s===1&&(E[r]||typeof E[r]=="boolean"||E[r]===0))}class CT{constructor(t){this.externalEntities={},this.options=Ks(t)}parse(t,r){if(typeof t!="string"&&t.toString)t=t.toString();else if(typeof t!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(r){r===!0&&(r={});const a=WE(t,r);if(a!==!0)throw Error(`${a.err.msg}:${a.err.line}:${a.err.col}`)}const s=new tT(this.options);s.addExternalEntities(this.externalEntities);const T=s.parseXml(t);return this.options.preserveOrder||T===void 0?T:IT(T,this.options)}addEntity(t,r){if(r.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(r==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=r}static getMetaDataSymbol(){return ct.getMetaDataSymbol()}}const cT=`
@@ -18,7 +18,7 @@
18
18
  `,this.newLine=`
19
19
  `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Nt.prototype.build=function(E){return this.options.preserveOrder?_T(E,this.options):(Array.isArray(E)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(E={[this.options.arrayNodeName]:E}),this.j2x(E,0,[]).val)},Nt.prototype.j2x=function(E,t,r){let s="",T="";const a=r.join(".");for(let R in E)if(Object.prototype.hasOwnProperty.call(E,R))if(typeof E[R]>"u")this.isAttribute(R)&&(T+="");else if(E[R]===null)this.isAttribute(R)||R===this.options.cdataPropName?T+="":R[0]==="?"?T+=this.indentate(t)+"<"+R+"?"+this.tagEndChar:T+=this.indentate(t)+"<"+R+"/"+this.tagEndChar;else if(E[R]instanceof Date)T+=this.buildTextValNode(E[R],R,"",t);else if(typeof E[R]!="object"){const C=this.isAttribute(R);if(C&&!this.ignoreAttributesFn(C,a))s+=this.buildAttrPairStr(C,""+E[R]);else if(!C)if(R===this.options.textNodeName){let I=this.options.tagValueProcessor(R,""+E[R]);T+=this.replaceEntitiesValue(I)}else T+=this.buildTextValNode(E[R],R,"",t)}else if(Array.isArray(E[R])){const C=E[R].length;let I="",A="";for(let u=0;u<C;u++){const l=E[R][u];if(!(typeof l>"u"))if(l===null)R[0]==="?"?T+=this.indentate(t)+"<"+R+"?"+this.tagEndChar:T+=this.indentate(t)+"<"+R+"/"+this.tagEndChar;else if(typeof l=="object")if(this.options.oneListGroup){const h=this.j2x(l,t+1,r.concat(R));I+=h.val,this.options.attributesGroupName&&l.hasOwnProperty(this.options.attributesGroupName)&&(A+=h.attrStr)}else I+=this.processTextOrObjNode(l,R,t,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(R,l);h=this.replaceEntitiesValue(h),I+=h}else I+=this.buildTextValNode(l,R,"",t)}this.options.oneListGroup&&(I=this.buildObjectNode(I,R,A,t)),T+=I}else if(this.options.attributesGroupName&&R===this.options.attributesGroupName){const C=Object.keys(E[R]),I=C.length;for(let A=0;A<I;A++)s+=this.buildAttrPairStr(C[A],""+E[R][C[A]])}else T+=this.processTextOrObjNode(E[R],R,t,r);return{attrStr:s,val:T}},Nt.prototype.buildAttrPairStr=function(E,t){return t=this.options.attributeValueProcessor(E,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&t==="true"?" "+E:" "+E+'="'+t+'"'};function dT(E,t,r,s){const T=this.j2x(E,r+1,s.concat(t));return E[this.options.textNodeName]!==void 0&&Object.keys(E).length===1?this.buildTextValNode(E[this.options.textNodeName],t,T.attrStr,r):this.buildObjectNode(T.val,t,T.attrStr,r)}Nt.prototype.buildObjectNode=function(E,t,r,s){if(E==="")return t[0]==="?"?this.indentate(s)+"<"+t+r+"?"+this.tagEndChar:this.indentate(s)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let T="</"+t+this.tagEndChar,a="";return t[0]==="?"&&(a="?",T=""),(r||r==="")&&E.indexOf("<")===-1?this.indentate(s)+"<"+t+r+a+">"+E+T:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(s)+`<!--${E}-->`+this.newLine:this.indentate(s)+"<"+t+r+a+this.tagEndChar+E+this.indentate(s)+T}},Nt.prototype.closeTag=function(E){let t="";return this.options.unpairedTags.indexOf(E)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`></${E}`,t},Nt.prototype.buildTextValNode=function(E,t,r,s){if(this.options.cdataPropName!==!1&&t===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${E}]]>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(s)+`<!--${E}-->`+this.newLine;if(t[0]==="?")return this.indentate(s)+"<"+t+r+"?"+this.tagEndChar;{let T=this.options.tagValueProcessor(t,E);return T=this.replaceEntitiesValue(T),T===""?this.indentate(s)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(s)+"<"+t+r+">"+T+"</"+t+this.tagEndChar}},Nt.prototype.replaceEntitiesValue=function(E){if(E&&E.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];E=E.replace(r.regex,r.val)}return E};function PT(E){return this.options.indentBy.repeat(E)}function fT(E){return E.startsWith(this.options.attributeNamePrefix)&&E!==this.options.textNodeName?E.substr(this.attrPrefixLen):!1}const hT={validate:WE},MT={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",ignoreDeclaration:!1,commentPropName:"#comment",cdataPropName:"__cdata",preserveOrder:!0,parseAttributeValue:!1,trimValues:!1,parseTagValue:!1,processEntities:!1,htmlEntities:!1,ignoreNameSpace:!1,allowBooleanAttributes:!0,unpairedTags:[],stopNodes:[],alwaysCreateTextNode:!1},UT={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,indentBy:" ",suppressEmptyNode:!1,suppressBooleanAttributes:!1,suppressUnpairedNode:!1},mT=E=>{const t=/<!\[CDATA\[([\s\S]*?)\]\]>/g,r=[];let s;for(;(s=t.exec(E))!==null;)r.push({start:s.index,end:s.index+s[0].length});const T=u=>r.some(l=>u>=l.start&&u<l.end),a=/&([a-zA-Z0-9#]+);/g,R=["lt","gt","amp","quot","apos"];let C,I=1,A=0;for(;(C=a.exec(E))!==null;){const u=C[1],l=C.index;if(T(l))continue;const h=E.substring(A,l);if(I+=(h.match(/\n/g)||[]).length,A=l,u.startsWith("#")){const M=u.substring(1);if(M.startsWith("x")||M.startsWith("X")){const b=M.substring(1);if(!/^[0-9a-fA-F]+$/.test(b))return{valid:!1,error:`Line ${I}: Invalid hexadecimal character reference '&${u};'`}}else if(!/^[0-9]+$/.test(M))return{valid:!1,error:`Line ${I}: Invalid numeric character reference '&${u};'`};continue}if(!R.includes(u))return{valid:!1,error:`Line ${I}: Invalid entity reference '&${u};'. Valid predefined entities are: &lt; &gt; &amp; &quot; &apos;`}}return{valid:!0}},BT=E=>{try{const t=hT.validate(E,{allowBooleanAttributes:!0});if(t!==!0)return{valid:!1,error:`Line ${t.err.line}: ${t.err.msg}`};const r=mT(E);return r.valid?{valid:!0}:r}catch(t){return{valid:!1,error:t instanceof Error?t.message:"Unknown validation error"}}},zt=(E,t)=>{try{return new CT({...MT,...t}).parse(E)}catch(r){throw new Error(`XML 解析失败: ${r instanceof Error?r.message:"Unknown error"}`)}},eE=(E,t)=>{try{let s=new Nt({...UT,format:t?.format??!0,indentBy:t?.indentBy??" "}).build(E);return t?.showDeclaration!==!1&&!s.startsWith("<?xml")&&(s=`<?xml version="1.0" encoding="UTF-8"?>
20
20
  `+s),s}catch(r){throw new Error(`XML 构建失败: ${r instanceof Error?r.message:"Unknown error"}`)}},gT=(E,t)=>Array.isArray(E)?At(E,{format:!1,originalXml:t}):eE(E,{format:!1,showDeclaration:!1}),yT=(E,t)=>{const r=zt(E);return Array.isArray(r)?At(r,{indent:t?.indentBy,originalXml:E}):eE(r,t)},zE=E=>{const t=new Set,r=/<([a-zA-Z0-9_-]+)(?:\s[^>]*)?\s*\/>/g;let s;for(;(s=r.exec(E))!==null;)t.add(s[1]);return t},At=(E,t={})=>{const r=t.indent!==void 0?t.indent:" ",s=t.level||0,T=t.format!==!1,a=T?r.repeat(s):"",R=T?`
21
- `:"";let C=t.selfClosingTags;!C&&t.originalXml&&s===0&&(C=zE(t.originalXml));let I="";for(const A of E){if(A["?xml"]){const q=A[":@"]||{},_e=Object.entries(q).map(([Le,z])=>`${Le.startsWith("@_")?Le.substring(2):Le}="${z}"`).join(" ");I+=`<?xml ${_e}?>${R}`;continue}if(A["#comment"]){const q=A["#comment"];if(Array.isArray(q)&&q.length>0){const _e=q[0]["#text"]||q[0];I+=`${a}<!--${_e}-->${R}`}continue}const u=Object.keys(A).find(q=>!q.startsWith(":")&&!q.startsWith("#")&&!q.startsWith("__"));if(!u)continue;const l=A[u],h=A[":@"]||{},M=Object.entries(h).map(([q,_e])=>`${q.startsWith("@_")?q.substring(2):q}="${_e}"`).join(" "),b=M?" "+M:"";if(!Array.isArray(l)||l.length===0){C&&C.has(u)?I+=`${a}<${u}${b}/>${R}`:I+=`${a}<${u}${b}></${u}>${R}`;continue}const J=l.length===1&&l[0]["#text"]!==void 0,U=J?l[0]["#text"]:"",ee=l.some(q=>q.__cdata),te=J&&U==="";if(ee){const q=l.find(_e=>_e.__cdata);if(q){const _e=q.__cdata[0]["#text"]||"";I+=`${a}<${u}${b}><![CDATA[${_e}]]></${u}>${R}`}}else te?I+=`${a}<${u}${b}></${u}>${R}`:J?I+=`${a}<${u}${b}>${U}</${u}>${R}`:(I+=`${a}<${u}${b}>${R}`,I+=At(l,{indent:r,level:s+1,format:T,selfClosingTags:C}),I+=`${a}</${u}>${R}`)}return I},GT={class:"xml-format__content"},FT={key:0,class:"xml-format__error"},HT={key:1,class:"xml-format__error"},bT={key:2,class:"xml-format__viewer"},xT=Mt(o.defineComponent({__name:"index",props:{modelValue:{default:""},readonly:{type:Boolean,default:!1},maxDepth:{default:10},theme:{default:"github-light"},showComments:{type:Boolean,default:!0},showCdata:{type:Boolean,default:!0},preserveWhitespace:{type:Boolean,default:!1}},emits:["update:modelValue","copy-success","copy-error","expand-all","collapse-all","compress","format"],setup(E,{expose:t,emit:r}){o.useCssVars(v=>({"78fde9ca":ee.value.colors.background,"45a530da":ee.value.colors.text,"6e335bfb":ee.value.colors.error,"0cb9e0ee":ee.value.colors.errorBackground}));const s=E,T=r,a=o.ref(null),R=o.ref(""),C=o.ref(new Set),I=o.ref(null),A=o.ref(""),u=o.ref(""),l=o.ref(new Set),h=o.ref(!1),M=o.computed(()=>R.value===""),b=v=>{if(!v||typeof v!="object")return v;if(Array.isArray(v)){const P=v.map(Ee=>b(Ee)),B=[],k=[];P.forEach((Ee,Re)=>{if(!Ee||typeof Ee!="object"){k.push({item:Ee,originalIndex:Re});return}const le=Object.keys(Ee),Ue=le.find(Ne=>!Ne.startsWith("?")&&!Ne.startsWith(":")&&!Ne.startsWith("#")&&!Ne.startsWith("__"))||le[0]||"";Ue.startsWith("#")||Ue.startsWith("__")?k.push({item:Ee,originalIndex:Re}):Ue.startsWith("?")?k.push({item:Ee,originalIndex:Re}):B.push({item:Ee,originalIndex:Re})}),B.sort((Ee,Re)=>{const le=$=>{const ge=Object.keys($);for(const _ of ge)if(!_.startsWith("?")&&!_.startsWith(":")&&!_.startsWith("#")&&!_.startsWith("__"))return _;return ge[0]||""},Ue=le(Ee.item),Ne=le(Re.item);return Ue.localeCompare(Ne)});const f=[];let j=0;for(let Ee=0;Ee<P.length;Ee++){const Re=k.find(le=>le.originalIndex===Ee);Re?f.push(Re.item):j<B.length&&(f.push(B[j].item),j++)}return f}const p={},m=Object.keys(v).sort((P,B)=>{const k=P.startsWith("?")||P.startsWith(":")||P.startsWith("#")||P.startsWith("__"),f=B.startsWith("?")||B.startsWith(":")||B.startsWith("#")||B.startsWith("__"),j={"?xml":0,":@":1,"#text":2,__cdata:3,"#cdata":3,"#comment":4};if(k&&f){const Ee=j[P]??99,Re=j[B]??99;return Ee-Re}else return k?-1:f?1:P.localeCompare(B)});for(const P of m){const B=v[P];if(P===":@"&&B&&typeof B=="object"&&!Array.isArray(B)){const k={},f=Object.keys(B).sort();for(const j of f)k[j]=B[j];p[P]=k}else p[P]=b(B)}return p},J=o.computed(()=>{const v=I.value!==null?I.value:a.value;return!v||!h.value?v:b(v)}),U=o.computed(()=>A.value?null:J.value),ee=o.computed(()=>ms(s.theme)),te=o.computed(()=>{const v=U.value;return!v||!Array.isArray(v)?[]:v.map((p,m)=>({node:p,originalIndex:m})).filter(p=>!p.node["?xml"])}),q=o.computed(()=>{const v=U.value;if(!v||!Array.isArray(v))return null;const p=v.find(B=>B["?xml"]);if(!p||!p[":@"])return null;const m=p[":@"],P=[];return m["@_version"]&&P.push(`version="${m["@_version"]}"`),m["@_encoding"]&&P.push(`encoding="${m["@_encoding"]}"`),m["@_standalone"]&&P.push(`standalone="${m["@_standalone"]}"`),P.length>0?`<?xml ${P.join(" ")}?>`:null}),_e=o.computed(()=>te.value),Le=v=>{if(!v||!v.trim()){R.value="",a.value=null,u.value="",I.value=null,A.value="";return}try{const p=BT(v);if(!p.valid){R.value=p.error||"Invalid XML",a.value=null,u.value="",l.value=new Set;return}u.value=v,l.value=zE(v),a.value=zt(v),R.value="",I.value=null,A.value="",o.nextTick(()=>{D()})}catch(p){R.value=p instanceof Error?p.message:"Unknown parse error",a.value=null,u.value="",I.value=null,A.value=""}},z=v=>{C.value.has(v)?C.value.delete(v):C.value.add(v)},D=()=>{const v=new Set,p=(m,P="")=>{Array.isArray(m)&&m.forEach((B,k)=>{const f=Object.keys(B).find(Re=>!Re.startsWith(":")&&!Re.startsWith("#"));if(!f)return;const j=P?`${P}.${f}[${k}]`:`${f}[${k}]`;v.add(j);const Ee=B[f];Array.isArray(Ee)&&p(Ee,j+"."+f)})};te.value.forEach(({node:m,originalIndex:P})=>{const B=Object.keys(m).find(k=>!k.startsWith(":")&&!k.startsWith("#"));if(B){const k=`${B}[${P}]`;v.add(k);const f=m[B];Array.isArray(f)&&p(f,k+"."+B)}}),C.value=v,T("expand-all")},ie=()=>{C.value.clear(),T("collapse-all")},H=async()=>{if(M.value)try{const v=U.value||a.value;if(!v)return;const p=Array.isArray(v)?At(v,{indent:" ",selfClosingTags:l.value}):eE(v,{format:!0,indentBy:" "});await navigator.clipboard.writeText(p),T("copy-success",p)}catch(v){const p=v instanceof Error?v:new Error("Copy failed");T("copy-error",p),console.error("Failed to copy XML:",v)}},g=()=>{if(!(!M.value||!a.value))try{const v=gT(a.value,s.modelValue);T("update:modelValue",v),T("compress",v)}catch(v){console.error("Failed to compress XML:",v)}},Q=()=>{if(M.value)try{const v=yT(s.modelValue,{format:!0,indentBy:" "});T("update:modelValue",v),T("format",v)}catch(v){console.error("Failed to format XML:",v)}},X=v=>{if(!v||!v.expression.trim()){K();return}if(!a.value||!u.value){A.value="No valid XML data to filter";return}try{const m=new YE.DOMParser().parseFromString(u.value,"text/xml"),P=Yn.select(v.expression,m);if(!P||Array.isArray(P)&&P.length===0){I.value=[],A.value="";return}const B=new YE.XMLSerializer;let k="";Array.isArray(P)?(k=`<result>
21
+ `:"";let C=t.selfClosingTags;!C&&t.originalXml&&s===0&&(C=zE(t.originalXml));let I="";for(const A of E){if(A["?xml"]){const q=A[":@"]||{},_e=Object.entries(q).map(([Le,z])=>`${Le.startsWith("@_")?Le.substring(2):Le}="${z}"`).join(" ");I+=`<?xml ${_e}?>${R}`;continue}if(A["#comment"]){const q=A["#comment"];if(Array.isArray(q)&&q.length>0){const _e=q[0]["#text"]||q[0];I+=`${a}<!--${_e}-->${R}`}continue}const u=Object.keys(A).find(q=>!q.startsWith(":")&&!q.startsWith("#")&&!q.startsWith("__"));if(!u)continue;const l=A[u],h=A[":@"]||{},M=Object.entries(h).map(([q,_e])=>`${q.startsWith("@_")?q.substring(2):q}="${_e}"`).join(" "),b=M?" "+M:"";if(!Array.isArray(l)||l.length===0){C&&C.has(u)?I+=`${a}<${u}${b}/>${R}`:I+=`${a}<${u}${b}></${u}>${R}`;continue}const J=l.length===1&&l[0]["#text"]!==void 0,U=J?l[0]["#text"]:"",ee=l.some(q=>q.__cdata),te=J&&U==="";if(ee){const q=l.find(_e=>_e.__cdata);if(q){const _e=q.__cdata[0]["#text"]||"";I+=`${a}<${u}${b}><![CDATA[${_e}]]></${u}>${R}`}}else te?I+=`${a}<${u}${b}></${u}>${R}`:J?I+=`${a}<${u}${b}>${U}</${u}>${R}`:(I+=`${a}<${u}${b}>${R}`,I+=At(l,{indent:r,level:s+1,format:T,selfClosingTags:C}),I+=`${a}</${u}>${R}`)}return I},GT={class:"xml-format__content"},FT={key:0,class:"xml-format__error"},HT={key:1,class:"xml-format__error"},bT={key:2,class:"xml-format__viewer"},xT=Mt(o.defineComponent({__name:"index",props:{modelValue:{default:""},readonly:{type:Boolean,default:!1},maxDepth:{default:10},theme:{default:"github-light"},showComments:{type:Boolean,default:!0},showCdata:{type:Boolean,default:!0},preserveWhitespace:{type:Boolean,default:!1}},emits:["update:modelValue","copy-success","copy-error","expand-all","collapse-all","compress","format"],setup(E,{expose:t,emit:r}){o.useCssVars(v=>({"78fde9ca":ee.value.colors.background,"45a530da":ee.value.colors.text,"6e335bfb":ee.value.colors.error,"0cb9e0ee":ee.value.colors.errorBackground}));const s=E,T=r,a=o.ref(null),R=o.ref(""),C=o.ref(new Set),I=o.ref(null),A=o.ref(""),u=o.ref(""),l=o.ref(new Set),h=o.ref(!1),M=o.computed(()=>R.value===""),b=v=>{if(!v||typeof v!="object")return v;if(Array.isArray(v)){const P=v.map(Ee=>b(Ee)),B=[],k=[];P.forEach((Ee,Re)=>{if(!Ee||typeof Ee!="object"){k.push({item:Ee,originalIndex:Re});return}const le=Object.keys(Ee),Ue=le.find(Ne=>!Ne.startsWith("?")&&!Ne.startsWith(":")&&!Ne.startsWith("#")&&!Ne.startsWith("__"))||le[0]||"";Ue.startsWith("#")||Ue.startsWith("__")?k.push({item:Ee,originalIndex:Re}):Ue.startsWith("?")?k.push({item:Ee,originalIndex:Re}):B.push({item:Ee,originalIndex:Re})}),B.sort((Ee,Re)=>{const le=$=>{const ge=Object.keys($);for(const c of ge)if(!c.startsWith("?")&&!c.startsWith(":")&&!c.startsWith("#")&&!c.startsWith("__"))return c;return ge[0]||""},Ue=le(Ee.item),Ne=le(Re.item);return Ue.localeCompare(Ne)});const f=[];let j=0;for(let Ee=0;Ee<P.length;Ee++){const Re=k.find(le=>le.originalIndex===Ee);Re?f.push(Re.item):j<B.length&&(f.push(B[j].item),j++)}return f}const p={},m=Object.keys(v).sort((P,B)=>{const k=P.startsWith("?")||P.startsWith(":")||P.startsWith("#")||P.startsWith("__"),f=B.startsWith("?")||B.startsWith(":")||B.startsWith("#")||B.startsWith("__"),j={"?xml":0,":@":1,"#text":2,__cdata:3,"#cdata":3,"#comment":4};if(k&&f){const Ee=j[P]??99,Re=j[B]??99;return Ee-Re}else return k?-1:f?1:P.localeCompare(B)});for(const P of m){const B=v[P];if(P===":@"&&B&&typeof B=="object"&&!Array.isArray(B)){const k={},f=Object.keys(B).sort();for(const j of f)k[j]=B[j];p[P]=k}else p[P]=b(B)}return p},J=o.computed(()=>{const v=I.value!==null?I.value:a.value;return!v||!h.value?v:b(v)}),U=o.computed(()=>A.value?null:J.value),ee=o.computed(()=>ms(s.theme)),te=o.computed(()=>{const v=U.value;return!v||!Array.isArray(v)?[]:v.map((p,m)=>({node:p,originalIndex:m})).filter(p=>!p.node["?xml"])}),q=o.computed(()=>{const v=U.value;if(!v||!Array.isArray(v))return null;const p=v.find(B=>B["?xml"]);if(!p||!p[":@"])return null;const m=p[":@"],P=[];return m["@_version"]&&P.push(`version="${m["@_version"]}"`),m["@_encoding"]&&P.push(`encoding="${m["@_encoding"]}"`),m["@_standalone"]&&P.push(`standalone="${m["@_standalone"]}"`),P.length>0?`<?xml ${P.join(" ")}?>`:null}),_e=o.computed(()=>te.value),Le=v=>{if(!v||!v.trim()){R.value="",a.value=null,u.value="",I.value=null,A.value="";return}try{const p=BT(v);if(!p.valid){R.value=p.error||"Invalid XML",a.value=null,u.value="",l.value=new Set;return}u.value=v,l.value=zE(v),a.value=zt(v),R.value="",I.value=null,A.value="",o.nextTick(()=>{D()})}catch(p){R.value=p instanceof Error?p.message:"Unknown parse error",a.value=null,u.value="",I.value=null,A.value=""}},z=v=>{C.value.has(v)?C.value.delete(v):C.value.add(v)},D=()=>{const v=new Set,p=(m,P="")=>{Array.isArray(m)&&m.forEach((B,k)=>{const f=Object.keys(B).find(Re=>!Re.startsWith(":")&&!Re.startsWith("#"));if(!f)return;const j=P?`${P}.${f}[${k}]`:`${f}[${k}]`;v.add(j);const Ee=B[f];Array.isArray(Ee)&&p(Ee,j+"."+f)})};te.value.forEach(({node:m,originalIndex:P})=>{const B=Object.keys(m).find(k=>!k.startsWith(":")&&!k.startsWith("#"));if(B){const k=`${B}[${P}]`;v.add(k);const f=m[B];Array.isArray(f)&&p(f,k+"."+B)}}),C.value=v,T("expand-all")},ie=()=>{C.value.clear(),T("collapse-all")},H=async()=>{if(M.value)try{const v=U.value||a.value;if(!v)return;const p=Array.isArray(v)?At(v,{indent:" ",selfClosingTags:l.value}):eE(v,{format:!0,indentBy:" "});await navigator.clipboard.writeText(p),T("copy-success",p)}catch(v){const p=v instanceof Error?v:new Error("Copy failed");T("copy-error",p),console.error("Failed to copy XML:",v)}},g=()=>{if(!(!M.value||!a.value))try{const v=gT(a.value,s.modelValue);T("update:modelValue",v),T("compress",v)}catch(v){console.error("Failed to compress XML:",v)}},Q=()=>{if(M.value)try{const v=yT(s.modelValue,{format:!0,indentBy:" "});T("update:modelValue",v),T("format",v)}catch(v){console.error("Failed to format XML:",v)}},X=v=>{if(!v||!v.expression.trim()){K();return}if(!a.value||!u.value){A.value="No valid XML data to filter";return}try{const m=new YE.DOMParser().parseFromString(u.value,"text/xml"),P=Yn.select(v.expression,m);if(!P||Array.isArray(P)&&P.length===0){I.value=[],A.value="";return}const B=new YE.XMLSerializer;let k="";Array.isArray(P)?(k=`<result>
22
22
  `,P.forEach(f=>{f.nodeType===1?k+=" "+B.serializeToString(f)+`
23
23
  `:f.nodeType===2?k+=` <attribute name="${f.name}" value="${f.value}"/>
24
24
  `:f.nodeType===3&&(k+=` <text>${f.nodeValue}</text>