xPathTrainer/public/JS/xpathTrainer.app.js

1 line
135 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e={167:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var n=r({HTML:"text/html",isHTML:function(e){return e===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.find=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];if(t.call(void 0,o,n,e))return o}},t.freeze=r,t.MIME_TYPE=n,t.NAMESPACE=o},129:(e,t,r)=>{var n=r(167),o=r(146),i=r(45),s=r(925),a=o.DOMImplementation,u=n.NAMESPACE,c=s.ParseError,l=s.XMLReader;function p(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function f(){this.cdata=!1}function d(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e}function N(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var r=this.options,n=new l,o=r.domBuilder||new f,s=r.errorHandler,a=r.locator,c=r.xmlns||{},h=/\/x?html?$/.test(t),d=h?i.HTML_ENTITIES:i.XML_ENTITIES;a&&o.setDocumentLocator(a),n.errorHandler=function(e,t,r){if(!e){if(t instanceof f)return t;e=t}var n={},o=e instanceof Function;function i(t){var i=e[t];!i&&o&&(i=2==e.length?function(r){e(t,r)}:e),n[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+m(r))}||function(){}}return r=r||{},i("warning"),i("error"),i("fatalError"),n}(s,o,a),n.domBuilder=r.domBuilder||o,h&&(c[""]=u.HTML),c.xml=c.xml||u.XML;var g=r.normalizeLineEndings||p;return e&&"string"==typeof e?n.parse(g(e),c,d):n.errorHandler.error("invalid doc source"),o.doc},f.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,r,n){var o=this.doc,i=o.createElementNS(e,r||t),s=n.length;N(this,i),this.currentElement=i,this.locator&&d(this.locator,i);for(var a=0;a<s;a++){e=n.getURI(a);var u=n.getValue(a),c=(r=n.getQName(a),o.createAttributeNS(e,r));this.locator&&d(n.getLocator(a),c),c.value=c.nodeValue=u,i.setAttributeNode(c)}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&d(this.locator,r),N(this,r)},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=g.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&d(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,r){e=g.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&d(this.locator,n),N(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var o=n.createDocumentType(e,t,r);this.locator&&d(this.locator,o),N(this,o),this.doc.doctype=o}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.DOMParser=h},146:(e,t,r)=>{var n=r(167),o=n.find,i=n.NAMESPACE;function s(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}(e);return Object.keys(t.reduce(a,{}))}function c(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function l(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,c(r,n=new n),e.prototype=r=n}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e)}var p={},h=p.ELEMENT_NODE=1,f=p.ATTRIBUTE_NODE=2,d=p.TEXT_NODE=3,m=p.CDATA_SECTION_NODE=4,g=p.ENTITY_REFERENCE_NODE=5,N=p.ENTITY_NODE=6,b=p.PROCESSING_INSTRUCTION_NODE=7,y=p.COMMENT_NODE=8,E=p.DOCUMENT_NODE=9,v=p.DOCUMENT_TYPE_NODE=10,w=p.DOCUMENT_FRAGMENT_NODE=11,T=p.NOTATION_NODE=12,A={},S={},D=(A.INDEX_SIZE_ERR=(S[1]="Index size error",1),A.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),A.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),x=(A.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),A.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),A.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),A.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),A.NOT_FOUND_ERR=(S[8]="Not found",8)),R=(A.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),A.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));function O(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,O);return r.code=e,t&&(this.message=this.message+": "+t),r}function L(){}function C(e,t){this._node=e,this._refresh=t,I(this)}function I(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(be(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];c(r,e),e._inc=t}}function q(){}function _(e,t){for(var r=e.length;r--;)if(e[r]===t)return r}function P(e,t,r,n){if(n?t[_(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var o=e.ownerDocument;o&&(n&&H(o,e,n),function(e,t,r){e&&e._inc++,r.namespaceURI===i.XMLNS&&(t._nsMap[r.prefix?r.localName:""]=r.value)}(o,e,r))}}function M(e,t,r){var n=_(t,r);if(!(n>=0))throw new O(x,new Error(e.tagName+"@"+r));for(var o=t.length-1;n<o;)t[n]=t[++n];if(t.length=o,e){var i=e.ownerDocument;i&&(H(i,e,r),r.ownerElement=null)}}function U(){}function F(){}function k(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function V(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(V(e,t))return!0}while(e=e.nextSibling)}function B(){this.ownerDocument=this}function H(e,t,r,n){e&&e._inc++,r.namespaceURI===i.XMLNS&&delete t._nsMap[r.prefix?r.localName:""]}function G(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var o=t.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function j(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,G(e.ownerDocument,e),t}function Y(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function W(e){return e&&e.nodeType===F.ELEMENT_NODE}function X(e){return e&&e.nodeType===F.TEXT_NODE}function Q(e,t){var r=e.childNodes||[];if(o(r,W)||Y(t))return!1;var n=o(r,Y);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function J(e,t){var r=e.childNodes||[];if(o(r,(function(e){return W(e)&&e!==t})))return!1;var n=o(r,Y);return!(t&&n&&r.indexOf(n)>r.indexOf(t))}function z(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=i.filter(W);if(s.length>1||o(i,X))throw new O(D,"More than one element or text in fragment");if(1===s.length&&!Q(e,r))throw new O(D,"Element in fragment can not be inserted before doctype")}if(W(t)&&!Q(e,r))throw new O(D,"Only one element can be added and only after doctype");if(Y(t)){if(o(n,Y))throw new O(D,"Only one doctype is allowed");var a=o(n,W);if(r&&n.indexOf(a)<n.indexOf(r))throw new O(D,"Doctype can only be inserted before an element");if(!r&&a)throw new O(D,"Doctype can not be appended since element is present")}}function $(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var s=i.filter(W);if(s.length>1||o(i,X))throw new O(D,"More than one element or text in fragment");if(1===s.length&&!J(e,r))throw new O(D,"Element in fragment can not be inserted before doctype")}if(W(t)&&!J(e,r))throw new O(D,"Only one element can be added and only after doctype");if(Y(t)){if(o(n,(function(e){return Y(e)&&e!==r})))throw new O(D,"Only one doctype is allowed");var a=o(n,W);if(r&&n.indexOf(a)<n.indexOf(r))throw new O(D,"Doctype can only be inserted before an element")}}function Z(e,t,r,n){(function(e,t,r){if(!function(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}(e))throw new O(D,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new O(x,"child not in parent");if(!function(e){return e&&(W(e)||X(e)||Y(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}(t)||Y(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new O(D,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,r),e.nodeType===F.DOCUMENT_NODE&&(n||z)(e,t,r);var o=t.parentNode;if(o&&o.removeChild(t),t.nodeType===w){var i=t.firstChild;if(null==i)return t;var s=t.lastChild}else i=s=t;var a=r?r.previousSibling:e.lastChild;i.previousSibling=a,s.nextSibling=r,a?a.nextSibling=i:e.firstChild=i,null==r?e.lastChild=s:r.previousSibling=s;do{i.parentNode=e}while(i!==s&&(i=i.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t}function K(){this._nsMap={}}function ee(){}function te(){}function re(){}function ne(){}function oe(){}function ie(){}function se(){}function ae(){}function ue(){}function ce(){}function le(){}function pe(){}function he(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,o=n.prefix,i=n.namespaceURI;if(i&&null==o&&null==(o=n.lookupPrefix(i)))var s=[{namespace:i,prefix:null}];return me(this,r,e,t,s),r.join("")}function fe(e,t,r){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===i.XML||o===i.XMLNS)return!1;for(var s=r.length;s--;){var a=r[s];if(a.prefix===n)return a.namespace!==o}return!0}function de(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,k),'"')}function me(e,t,r,n,o){if(o||(o=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case h:var s=e.attributes,a=s.length,u=e.firstChild,c=e.tagName,l=c;if(!(r=i.isHTML(e.namespaceURI)||r)&&!e.prefix&&e.namespaceURI){for(var p,N=0;N<s.length;N++)if("xmlns"===s.item(N).name){p=s.item(N).value;break}if(!p)for(var T=o.length-1;T>=0;T--)if(""===(A=o[T]).prefix&&A.namespace===e.namespaceURI){p=A.namespace;break}if(p!==e.namespaceURI)for(T=o.length-1;T>=0;T--){var A;if((A=o[T]).namespace===e.namespaceURI){A.prefix&&(l=A.prefix+":"+c);break}}}t.push("<",l);for(var S=0;S<a;S++)"xmlns"==(D=s.item(S)).prefix?o.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&o.push({prefix:"",namespace:D.value});for(S=0;S<a;S++){var D,x,R;fe(D=s.item(S),0,o)&&(de(t,(x=D.prefix||"")?"xmlns:"+x:"xmlns",R=D.namespaceURI),o.push({prefix:x,namespace:R})),me(D,t,r,n,o)}if(c===l&&fe(e,0,o)&&(de(t,(x=e.prefix||"")?"xmlns:"+x:"xmlns",R=e.namespaceURI),o.push({prefix:x,namespace:R})),u||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),r&&/^script$/i.test(c))for(;u;)u.data?t.push(u.data):me(u,t,r,n,o.slice()),u=u.nextSibling;else for(;u;)me(u,t,r,n,o.slice()),u=u.nextSibling;t.push("</",l,">")}else t.push("/>");return;case E:case w:for(u=e.firstChild;u;)me(u,t,r,n,o.slice()),u=u.nextSibling;return;case f:return de(t,e.name,e.value);case d:return t.push(e.data.replace(/[<&>]/g,k));case m:return t.push("<![CDATA[",e.data,"]]>");case y:return t.push("\x3c!--",e.data,"--\x3e");case v:var O=e.publicId,L=e.systemId;if(t.push("<!DOCTYPE ",e.name),O)t.push(" PUBLIC ",O),L&&"."!=L&&t.push(" ",L),t.push(">");else if(L&&"."!=L)t.push(" SYSTEM ",L,">");else{var C=e.internalSubset;C&&t.push(" [",C,"]"),t.push(">")}return;case b:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ge(e,t,r){var n;switch(t.nodeType){case h:(n=t.cloneNode(!1)).ownerDocument=e;case w:break;case f:r=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,r)for(var o=t.firstChild;o;)n.appendChild(ge(e,o,r)),o=o.nextSibling;return n}function Ne(e,t,r){var n=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=t[o];"object"!=typeof i&&i!=n[o]&&(n[o]=i)}switch(t.childNodes&&(n.childNodes=new L),n.ownerDocument=e,n.nodeType){case h:var s=t.attributes,a=n.attributes=new q,u=s.length;a._ownerElement=n;for(var c=0;c<u;c++)n.setAttributeNode(Ne(e,s.item(c),!0));break;case f:r=!0}if(r)for(var l=t.firstChild;l;)n.appendChild(Ne(e,l,r)),l=l.nextSibling;return n}function be(e,t,r){e[t]=r}A.INVALID_STATE_ERR=(S[11]="Invalid state",11),A.SYNTAX_ERR=(S[12]="Syntax error",12),A.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),A.NAMESPACE_ERR=(S[14]="Invalid namespace",14),A.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),O.prototype=Error.prototype,c(A,O),L.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)me(this[n],r,e,t);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},C.prototype.item=function(e){return I(this),this[e]||null},l(C,L),q.prototype={length:0,item:L.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new O(R);var r=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,r),r},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new O(R);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return M(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return M(this._ownerElement,this,r),r},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n}return null}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,r){var n=new B;if(n.implementation=this,n.childNodes=new L,n.doctype=r||null,r&&n.appendChild(r),t){var o=n.createElementNS(e,t);n.appendChild(o)}return n},createDocumentType:function(e,t,r){var n=new ie;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n}},F.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(e,t){return Z(this,e,t)},replaceChild:function(e,t){Z(this,e,t,$),t&&this.removeChild(t)},removeChild:function(e){return j(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ne(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==d&&e.nodeType==d?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==f?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},c(p,F),c(p,F.prototype),B.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n}return e}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),j(this,e)},replaceChild:function(e,t){Z(this,e,t,$),e.ownerDocument=this,t&&this.removeChild(t),W(e)&&(this.documentElement=e)},importNode:function(e,t){return ge(this,e,t)},getElementById:function(e){var t=null;return V(this.documentElement,(function(r){if(r.nodeType==h&&r.getAttribute("id")==e)return t=r,!0})),t},getElementsByClassName:function(e){var t=u(e);return new C(this,(function(r){var n=[];return t.length>0&&V(r.documentElement,(function(o){if(o!==r&&o.nodeType===h){var i=o.getAttribute("class");if(i){var s=e===i;if(!s){var a=u(i);s=t.every((c=a,function(e){return c&&-1!==c.indexOf(e)}))}s&&n.push(o)}}var c})),n}))},createElement:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new L,(t.attributes=new q)._ownerElement=t,t},createDocumentFragment:function(){var e=new ce;return e.ownerDocument=this,e.childNodes=new L,e},createTextNode:function(e){var t=new re;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new oe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var r=new le;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ue;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var r=new K,n=t.split(":"),o=r.attributes=new q;return r.childNodes=new L,r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,o._ownerElement=r,r},createAttributeNS:function(e,t){var r=new ee,n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r}},l(B,F),K.prototype={nodeType:h,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===w?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||""},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new C(this,(function(t){var r=[];return V(t,(function(n){n===t||n.nodeType!=h||"*"!==e&&n.tagName!=e||r.push(n)})),r}))},getElementsByTagNameNS:function(e,t){return new C(this,(function(r){var n=[];return V(r,(function(o){o===r||o.nodeType!==h||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||n.push(o)})),n}))}},B.prototype.getElementsByTagName=K.prototype.getElementsByTagName,B.prototype.getElementsByTagNameNS=K.prototype.getElementsByTagNameNS,l(K,F),ee.prototype.nodeType=f,l(ee,F),te.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[D])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length}},l(te,F),re.prototype={nodeName:"#text",nodeType:d,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},l(re,te),ne.prototype={nodeName:"#comment",nodeType:y},l(ne,te),oe.prototype={nodeName:"#cdata-section",nodeType:m},l(oe,te),ie.prototype.nodeType=v,l(ie,F),se.prototype.nodeType=T,l(se,F),ae.prototype.nodeType=N,l(ae,F),ue.prototype.nodeType=g,l(ue,F),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=w,l(ce,F),le.prototype.nodeType=b,l(le,F),pe.prototype.serializeToString=function(e,t,r){return he.call(e,t,r)},F.prototype.toString=he;try{if(Object.defineProperty){function ye(e){switch(e.nodeType){case h:case w:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ye(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(C.prototype,"length",{get:function(){return I(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return ye(this)},set:function(e){switch(this.nodeType){case h:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),be=function(e,t,r){e["$$"+t]=r}}}catch(Ee){}t.DocumentType=ie,t.DOMException=O,t.DOMImplementation=U,t.Element=K,t.Node=F,t.NodeList=L,t.XMLSerializer=pe},45:(e,t,r)=>{"use strict";var n=r(167).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({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:"\n",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:"\t",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:""}),t.entityMap=t.HTML_ENTITIES},969:(e,t,r)=>{var n=r(146);n.DOMImplementation,n.XMLSerializer,t.DOMParser=r(129).DOMParser},925:(e,t,r)=>{var n=r(167).NAMESPACE,o=/[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]/,i=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+o.source+i.source+"*(?::"+o.source+i.source+"*)?$");function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function u(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(e,t,r,o,i,s){function a(e,t,n){r.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),n)}for(var u,c=++t,l=0;;){var p=e.charAt(c);switch(p){case"=":if(1===l)u=e.slice(t,c),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(s.warning('attribute value must after "="'),u=e.slice(t,c)),t=c+1,!((c=e.indexOf(p,t))>0))throw new Error("attribute value no end '"+p+"' match");a(u,h=e.slice(t,c),t-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');a(u,h=e.slice(t,c),t),s.warning('attribute "'+u+'" missed start quot('+p+")!!"),t=c+1,l=5}break;case"/":switch(l){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:l=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==l&&r.setTagName(e.slice(t,c)),c;case">":switch(l){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===l&&(h=u),4==l?(s.warning('attribute "'+h+'" missed quot(")!'),a(u,h,t)):(n.isHTML(o[""])&&h.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"€":p=" ";default:if(p<=" ")switch(l){case 0:r.setTagName(e.slice(t,c)),l=6;break;case 1:u=e.slice(t,c),l=2;break;case 4:var h=e.slice(t,c);s.warning('attribute "'+h+'" missed quot(")!!'),a(u,h,t);case 5:l=6}else switch(l){case 2:r.tagName,n.isHTML(o[""])&&u.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),a(u,u,t),t=c,l=1;break;case 5:s.warning('attribute space is required"'+u+'"!!');case 6:l=1,t=c;break;case 3:l=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function p(e,t,r){for(var o=e.tagName,i=null,s=e.length;s--;){var a=e[s],u=a.qName,c=a.value;if((f=u.indexOf(":"))>0)var l=a.prefix=u.slice(0,f),p=u.slice(f+1),h="xmlns"===l&&p;else p=u,l=null,h="xmlns"===u&&"";a.localName=p,!1!==h&&(null==i&&(i={},d(r,r={})),r[h]=i[h]=c,a.uri=n.XMLNS,t.startPrefixMapping(h,c))}for(s=e.length;s--;)(l=(a=e[s]).prefix)&&("xml"===l&&(a.uri=n.XML),"xmlns"!==l&&(a.uri=r[l||""]));var f;(f=o.indexOf(":"))>0?(l=e.prefix=o.slice(0,f),p=e.localName=o.slice(f+1)):(l=null,p=e.localName=o);var m=e.uri=r[l||""];if(t.startElement(m,p,o,e),!e.closed)return e.currentNSMap=r,e.localNSMap=i,!0;if(t.endElement(m,p,o),i)for(l in i)Object.prototype.hasOwnProperty.call(i,l)&&t.endPrefixMapping(l)}function h(e,t,r,n,o){if(/^(?:script|textarea)$/i.test(r)){var i=e.indexOf("</"+r+">",t),s=e.substring(t+1,i);if(/[&<]/.test(s))return/^script$/i.test(r)?(o.characters(s,0,s.length),i):(s=s.replace(/&#?\w+;/g,n),o.characters(s,0,s.length),i)}return t+1}function f(e,t,r,n){var o=n[r];return null==o&&((o=e.lastIndexOf("</"+r+">"))<t&&(o=e.lastIndexOf("</"+r)),n[r]=o),o<t}function d(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}function m(e,t,r,n){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(o=e.indexOf("--\x3e",t+4))>t?(r.comment(e,t+4,o-t-4),o+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,o-t-9),r.endCDATA(),o+3}var i=function(e,t){var r,n=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(o.lastIndex=t,o.exec(e);r=o.exec(e);)if(n.push(r),r[1])return n}(e,t),s=i.length;if(s>1&&/!doctype/i.test(i[0][0])){var a=i[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(i[2][0])?(u=i[3][0],c=s>4&&i[4][0]):/^system$/i.test(i[2][0])&&(c=i[3][0]));var l=i[s-1];return r.startDTD(a,u,c),r.endDTD(),l.index+l[0].length}return-1}function g(e,t,r){var n=e.indexOf("?>",t);if(n){var o=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return o?(o[0].length,r.processingInstruction(o[1],o[2]),n+2):-1}return-1}function N(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,u.prototype={parse:function(e,t,r){var o=this.domBuilder;o.startDocument(),d(t,t={}),function(e,t,r,o,i){function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(r,t)?r[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function u(t){if(t>A){var r=e.substring(A,t).replace(/&#?\w+;/g,s);v&&d(A),o.characters(r,0,t-A),A=t}}function d(t,r){for(;t>=y&&(r=E.exec(e));)b=r.index,y=b+r[0].length,v.lineNumber++;v.columnNumber=t-b+1}for(var b=0,y=0,E=/.*(?:\r\n?|\n)|.*$/g,v=o.locator,w=[{currentNSMap:t}],T={},A=0;;){try{var S=e.indexOf("<",A);if(S<0){if(!e.substr(A).match(/^\s*$/)){var D=o.doc,x=D.createTextNode(e.substr(A));D.appendChild(x),o.currentElement=x}return}switch(S>A&&u(S),e.charAt(S+1)){case"/":var R=e.indexOf(">",S+3),O=e.substring(S+2,R).replace(/[ \t\n\r]+$/g,""),L=w.pop();R<0?(O=e.substring(S+2).replace(/[\s<].*/,""),i.error("end tag name: "+O+" is not complete:"+L.tagName),R=S+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),i.error("end tag name: "+O+" maybe not complete"),R=S+1+O.length);var C=L.localNSMap,I=L.tagName==O;if(I||L.tagName&&L.tagName.toLowerCase()==O.toLowerCase()){if(o.endElement(L.uri,L.localName,O),C)for(var q in C)Object.prototype.hasOwnProperty.call(C,q)&&o.endPrefixMapping(q);I||i.fatalError("end tag name: "+O+" is not match the current start tagName:"+L.tagName)}else w.push(L);R++;break;case"?":v&&d(S),R=g(e,S,o);break;case"!":v&&d(S),R=m(e,S,o,i);break;default:v&&d(S);var _=new N,P=w[w.length-1].currentNSMap,M=(R=l(e,S,_,P,s,i),_.length);if(!_.closed&&f(e,R,_.tagName,T)&&(_.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),v&&M){for(var U=c(v,{}),F=0;F<M;F++){var k=_[F];d(k.offset),k.locator=c(v,{})}o.locator=U,p(_,o,P)&&w.push(_),o.locator=v}else p(_,o,P)&&w.push(_);n.isHTML(_.uri)&&!_.closed?R=h(e,R,_.tagName,s,o):R++}}catch(e){if(e instanceof a)throw e;i.error("element parse error: "+e),R=-1}R>A?A=R:u(Math.max(S,A)+1)}}(e,t,r,o,this.errorHandler),o.endDocument()}},N.prototype={setTagName:function(e){if(!s.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,r){if(!s.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=u,t.ParseError=a},451:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};console.log("Hello, les dev !\nLe code source TypeScript utilisé pour faire fonctionner cette page est lisible ici : :\nhttps://forge.chapril.org/Fab_Blab/xPathTrainer/src/branch/master/src/xpathTrainer.ts"),function(){try{var e=document.getElementById("myFile"),t=document.getElementById("myXPath"),i=document.getElementById("runTest"),s=document.getElementById("display"),a=document.getElementById("result");t.disabled=!0,i.disabled=!0,t.placeholder="Commencer pour sélectionner un fichier",s.style.display="none";var u=r(691),c=r(969).DOMParser;e.addEventListener("change",(function(r){var l=e.files;if(null!==l&&1===l.length)if("xml"!==l[0].name.substring(l[0].name.lastIndexOf(".")+1))a.innerHTML="<p>Le fichier que vous avez sélectionné ne semble pas être un fichier XML.</p>";else{var p=new FileReader;p.onload=function(e){return n(this,void 0,void 0,(function(){var e,r,n,l;return o(this,(function(o){return e=p.result,r=new Blob([e],{type:"application/xml"}),n=URL.createObjectURL(r),s.src=n,s.style.display="block",t.disabled=!1,i.disabled=!1,t.placeholder="Saisir l'XPath à tester",l=(new c).parseFromString(e,"text/xml"),i.addEventListener("click",(function(e){var r=t.value.trim();if(""==r)a.innerHTML="<p>XPath vide !</p>";else{for(var n=u.select(r,l),o="<ul>",i=0;i<n.length;i++)o+="<li>"+n[i].toString()+"</li>";o+="</ul>",a.innerHTML=o}})),[2]}))}))},p.readAsText(l[0])}}))}catch(e){console.error(e),document.getElementById("result").innerHTML="<p>Désolé, mais un problème technique empêche le fonctionnement normal de cette page.</p>"}}()},691:(e,t)=>{!function(e){"use strict";var t=function(e,t){for(var r=0;r<t.length;r+=1)e(t[r],r,t)},r=function(e,r,n){var o=r;return t((function(t,r){o=e(o,t,r)}),n),o},n=function(e,r){var n=new Array(r.length);return t((function(t,r){n[r]=e(t)}),r),n};function o(e){return e.toString()}var i=function(e,t){return t.join(e)},s=function(e,t,r){return e+r+t},a=Array.prototype.concat;function u(e,t){for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r}function c(){this.init()}function l(e){this.expression=e}function p(e,t,r){t in e||(e[t]=r)}function h(){}function f(e){arguments.length>0&&this.init(e)}function d(e){arguments.length>0&&this.init(e)}function m(e,t){arguments.length>0&&this.init(e,t)}function g(e,t){arguments.length>0&&this.init(e,t)}function N(e,t){arguments.length>0&&this.init(e,t)}function b(e,t){arguments.length>0&&this.init(e,t)}function y(e,t){arguments.length>0&&this.init(e,t)}function E(e,t){arguments.length>0&&this.init(e,t)}function v(e,t){arguments.length>0&&this.init(e,t)}function w(e,t){arguments.length>0&&this.init(e,t)}function T(e,t){arguments.length>0&&this.init(e,t)}function A(e,t){arguments.length>0&&this.init(e,t)}function S(e,t){arguments.length>0&&this.init(e,t)}function D(e,t){arguments.length>0&&this.init(e,t)}function x(e,t){arguments.length>0&&this.init(e,t)}function R(e,t){arguments.length>0&&this.init(e,t)}function O(e,t){arguments.length>0&&this.init(e,t)}function L(e,t,r){arguments.length>0&&this.init(e,t,r)}function C(e){for(;e&&e.parentNode;)e=e.parentNode;return e}function I(e,t,r){return L.applyPredicates(e.predicates,t,L.applyStep(e,t,r))}function q(e,t,r){return function(e){for(var t=[],r=0;r<e.length;r+=32767){var n=e.slice(r,r+32767);t=a.apply(t,n)}return t}(n(I.bind(null,r,e),t))}function _(e,t){arguments.length>0&&this.init(e,t)}function P(e,t,r){arguments.length>0&&this.init(e,t,r)}function M(e,t){arguments.length>0&&this.init(e,t)}function U(e){arguments.length>0&&this.init(e)}function F(e,t){arguments.length>0&&this.init(e,t)}c.prototype=new Object,c.prototype.constructor=c,c.superclass=Object.prototype,c.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(e){return new g(e[0],e[2])},this.reduceActions[5]=function(e){return new N(e[0],e[2])},this.reduceActions[7]=function(e){return new b(e[0],e[2])},this.reduceActions[8]=function(e){return new y(e[0],e[2])},this.reduceActions[10]=function(e){return new E(e[0],e[2])},this.reduceActions[11]=function(e){return new v(e[0],e[2])},this.reduceActions[12]=function(e){return new w(e[0],e[2])},this.reduceActions[13]=function(e){return new T(e[0],e[2])},this.reduceActions[15]=function(e){return new A(e[0],e[2])},this.reduceActions[16]=function(e){return new S(e[0],e[2])},this.reduceActions[18]=function(e){return new D(e[0],e[2])},this.reduceActions[19]=function(e){return new x(e[0],e[2])},this.reduceActions[20]=function(e){return new R(e[0],e[2])},this.reduceActions[22]=function(e){return new d(e[1])},this.reduceActions[24]=function(e){return new O(e[0],e[2])},this.reduceActions[25]=function(e){return new L(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 P(P.DESCENDANTORSELF,M.nodeTest,[])),e[0]},this.reduceActions[29]=function(e){return new L(e[0],[],void 0)},this.reduceActions[30]=function(e){return $.instance_of(e[0],L)?(null==e[0].filterPredicates&&(e[0].filterPredicates=[]),e[0].filterPredicates.push(e[1]),e[0]):new L(e[0],[e[1]],void 0)},this.reduceActions[32]=function(e){return e[1]},this.reduceActions[33]=function(e){return new V(e[0])},this.reduceActions[34]=function(e){return new B(e[0])},this.reduceActions[36]=function(e){return new F(e[0],[])},this.reduceActions[37]=function(e){return new F(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 _(!0,[])},this.reduceActions[44]=function(e){return e[1].absolute=!0,e[1]},this.reduceActions[46]=function(e){return new _(!1,[e[0]])},this.reduceActions[47]=function(e){return e[0].steps.push(e[2]),e[0]},this.reduceActions[49]=function(e){return new P(e[0],e[1],[])},this.reduceActions[50]=function(e){return new P(P.CHILD,e[0],[])},this.reduceActions[51]=function(e){return new P(e[0],e[1],e[2])},this.reduceActions[52]=function(e){return new P(P.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"ancestor"==e[0]?P.ANCESTOR:"ancestor-or-self"==e[0]?P.ANCESTORORSELF:"attribute"==e[0]?P.ATTRIBUTE:"child"==e[0]?P.CHILD:"descendant"==e[0]?P.DESCENDANT:"descendant-or-self"==e[0]?P.DESCENDANTORSELF:"following"==e[0]?P.FOLLOWING:"following-sibling"==e[0]?P.FOLLOWINGSIBLING:"namespace"==e[0]?P.NAMESPACE:"parent"==e[0]?P.PARENT:"preceding"==e[0]?P.PRECEDING:"preceding-sibling"==e[0]?P.PRECEDINGSIBLING:"self"==e[0]?P.SELF:-1},this.reduceActions[57]=function(e){return P.ATTRIBUTE},this.reduceActions[59]=function(e){return"comment"==e[0]?M.commentTest:"text"==e[0]?M.textTest:"processing-instruction"==e[0]?M.anyPiTest:"node"==e[0]?M.nodeTest:new M(-1,void 0)},this.reduceActions[60]=function(e){return new M.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 P(P.DESCENDANTORSELF,M.nodeTest,[])),e[1]},this.reduceActions[64]=function(e){return e[0].steps.push(new P(P.DESCENDANTORSELF,M.nodeTest,[])),e[0].steps.push(e[2]),e[0]},this.reduceActions[65]=function(e){return new P(P.SELF,M.nodeTest,[])},this.reduceActions[66]=function(e){return new P(P.PARENT,M.nodeTest,[])},this.reduceActions[67]=function(e){return new U(e[1])},this.reduceActions[68]=function(e){return M.nameTestAny},this.reduceActions[69]=function(e){return new M.NameTestPrefixAny(e[0].split(":")[0])},this.reduceActions[70]=function(e){return new M.NameTestQName(e[0])}},c.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 "],c.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 "],c.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 "," "," "],c.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]],c.DOUBLEDOT=2,c.DOUBLECOLON=3,c.DOUBLESLASH=4,c.NOTEQUAL=5,c.LESSTHANOREQUAL=6,c.GREATERTHANOREQUAL=7,c.AND=8,c.OR=9,c.MOD=10,c.DIV=11,c.MULTIPLYOPERATOR=12,c.FUNCTIONNAME=13,c.AXISNAME=14,c.LITERAL=15,c.NUMBER=16,c.ASTERISKNAMETEST=17,c.QNAME=18,c.NCNAMECOLONASTERISK=19,c.NODETYPE=20,c.PROCESSINGINSTRUCTIONWITHLITERAL=21,c.EQUALS=22,c.LESSTHAN=23,c.GREATERTHAN=24,c.PLUS=25,c.MINUS=26,c.BAR=27,c.SLASH=28,c.LEFTPARENTHESIS=29,c.RIGHTPARENTHESIS=30,c.COMMA=31,c.AT=32,c.LEFTBRACKET=33,c.RIGHTBRACKET=34,c.DOT=35,c.DOLLAR=36,c.prototype.tokenize=function(e){for(var t=[],r=[],n=e+"\0",o=0,i=n.charAt(o++);;){for(;" "==i||"\t"==i||"\r"==i||"\n"==i;)i=n.charAt(o++);if("\0"==i||o>=n.length)break;if("("!=i)if(")"!=i)if("["!=i)if("]"!=i)if("@"!=i)if(","!=i)if("|"!=i)if("+"!=i)if("-"!=i)if("="!=i)if("$"!=i)if("."!=i)if("'"!=i&&'"'!=i)if(i>="0"&&i<="9"){for(p=i,i=n.charAt(o++);i>="0"&&i<="9";)p+=i,i=n.charAt(o++);if("."==i&&n.charAt(o)>="0"&&n.charAt(o)<="9")for(p+=i,p+=n.charAt(o++),i=n.charAt(o++);i>="0"&&i<="9";)p+=i,i=n.charAt(o++);t.push(c.NUMBER),r.push(p)}else if("*"!=i)if(":"!=i||":"!=n.charAt(o))if("/"!=i)if("!"!=i||"="!=n.charAt(o))if("<"!=i)if(">"!=i){if("_"!=i&&!$.isLetter(i.charCodeAt(0)))throw new Error("Unexpected character "+i);var s=i;for(i=n.charAt(o++);$.isNCNameChar(i.charCodeAt(0));)s+=i,i=n.charAt(o++);if(t.length>0&&(a=t[t.length-1])!=c.AT&&a!=c.DOUBLECOLON&&a!=c.LEFTPARENTHESIS&&a!=c.LEFTBRACKET&&a!=c.AND&&a!=c.OR&&a!=c.MOD&&a!=c.DIV&&a!=c.MULTIPLYOPERATOR&&a!=c.SLASH&&a!=c.DOUBLESLASH&&a!=c.BAR&&a!=c.PLUS&&a!=c.MINUS&&a!=c.EQUALS&&a!=c.NOTEQUAL&&a!=c.LESSTHAN&&a!=c.LESSTHANOREQUAL&&a!=c.GREATERTHAN&&a!=c.GREATERTHANOREQUAL){if("and"==s){t.push(c.AND),r.push(s);continue}if("or"==s){t.push(c.OR),r.push(s);continue}if("mod"==s){t.push(c.MOD),r.push(s);continue}if("div"==s){t.push(c.DIV),r.push(s);continue}}if(":"==i){if("*"==n.charAt(o)){t.push(c.NCNAMECOLONASTERISK),r.push(s+":*"),o++,i=n.charAt(o++);continue}if("_"==n.charAt(o)||$.isLetter(n.charCodeAt(o))){for(s+=":",i=n.charAt(o++);$.isNCNameChar(i.charCodeAt(0));)s+=i,i=n.charAt(o++);if("("==i){t.push(c.FUNCTIONNAME),r.push(s);continue}t.push(c.QNAME),r.push(s);continue}if(":"==n.charAt(o)){t.push(c.AXISNAME),r.push(s);continue}}if("("==i){if("comment"==s||"text"==s||"node"==s){t.push(c.NODETYPE),r.push(s);continue}if("processing-instruction"==s){")"==n.charAt(o)?t.push(c.NODETYPE):t.push(c.PROCESSINGINSTRUCTIONWITHLITERAL),r.push(s);continue}t.push(c.FUNCTIONNAME),r.push(s);continue}t.push(c.QNAME),r.push(s)}else{if("="==n.charAt(o)){t.push(c.GREATERTHANOREQUAL),r.push(">="),o++,i=n.charAt(o++);continue}t.push(c.GREATERTHAN),r.push(">"),i=n.charAt(o++)}else{if("="==n.charAt(o)){t.push(c.LESSTHANOREQUAL),r.push("<="),o++,i=n.charAt(o++);continue}t.push(c.LESSTHAN),r.push("<"),i=n.charAt(o++)}else t.push(c.NOTEQUAL),r.push("!="),o++,i=n.charAt(o++);else{if("/"==(i=n.charAt(o++))){t.push(c.DOUBLESLASH),r.push("//"),i=n.charAt(o++);continue}t.push(c.SLASH),r.push("/")}else t.push(c.DOUBLECOLON),r.push("::"),o++,i=n.charAt(o++);else{var a;if(t.length>0&&(a=t[t.length-1])!=c.AT&&a!=c.DOUBLECOLON&&a!=c.LEFTPARENTHESIS&&a!=c.LEFTBRACKET&&a!=c.AND&&a!=c.OR&&a!=c.MOD&&a!=c.DIV&&a!=c.MULTIPLYOPERATOR&&a!=c.SLASH&&a!=c.DOUBLESLASH&&a!=c.BAR&&a!=c.PLUS&&a!=c.MINUS&&a!=c.EQUALS&&a!=c.NOTEQUAL&&a!=c.LESSTHAN&&a!=c.LESSTHANOREQUAL&&a!=c.GREATERTHAN&&a!=c.GREATERTHANOREQUAL){t.push(c.MULTIPLYOPERATOR),r.push(i),i=n.charAt(o++);continue}t.push(c.ASTERISKNAMETEST),r.push(i),i=n.charAt(o++)}else{for(var u=i,l="";o<n.length&&(i=n.charAt(o))!==u;)l+=i,o+=1;if(i!==u)throw Z.fromMessage("Unterminated string literal: "+u+l);o+=1,t.push(c.LITERAL),r.push(l),i=n.charAt(o++)}else{if("."==(i=n.charAt(o++))){t.push(c.DOUBLEDOT),r.push(".."),i=n.charAt(o++);continue}if(i>="0"&&i<="9"){var p="."+i;for(i=n.charAt(o++);i>="0"&&i<="9";)p+=i,i=n.charAt(o++);t.push(c.NUMBER),r.push(p);continue}t.push(c.DOT),r.push(".")}else t.push(c.DOLLAR),r.push(i),i=n.charAt(o++);else t.push(c.EQUALS),r.push(i),i=n.charAt(o++);else t.push(c.MINUS),r.push(i),i=n.charAt(o++);else t.push(c.PLUS),r.push(i),i=n.charAt(o++);else t.push(c.BAR),r.push(i),i=n.charAt(o++);else t.push(c.COMMA),r.push(i),i=n.charAt(o++);else t.push(c.AT),r.push(i),i=n.charAt(o++);else t.push(c.RIGHTBRACKET),r.push(i),i=n.charAt(o++);else t.push(c.LEFTBRACKET),r.push(i),i=n.charAt(o++);else t.push(c.RIGHTPARENTHESIS),r.push(i),i=n.charAt(o++);else t.push(c.LEFTPARENTHESIS),r.push(i),i=n.charAt(o++)}return t.push(1),r.push("[EOF]"),[t,r]},c.SHIFT="s",c.REDUCE="r",c.ACCEPT="a",c.prototype.parse=function(e){var t,r,n=this.tokenize(e);if(null!=n){t=n[0],r=n[1];var o,i,s=0,a=[],u=[],p=[];for(a.push(0),u.push(1),p.push("_S"),o=t[s],i=r[s++];;)switch(e=a[a.length-1],c.actionTable[e].charAt(o-1)){case c.SHIFT:u.push(-o),p.push(i),a.push(c.actionTableNumber[e].charCodeAt(o-1)-32),o=t[s],i=r[s++];break;case c.REDUCE:for(var h=c.productions[c.actionTableNumber[e].charCodeAt(o-1)-32][1],f=[],d=0;d<h;d++)u.pop(),f.unshift(p.pop()),a.pop();var m=a[a.length-1];u.push(c.productions[c.actionTableNumber[e].charCodeAt(o-1)-32][0]),null==this.reduceActions[c.actionTableNumber[e].charCodeAt(o-1)-32]?p.push(f[0]):p.push(this.reduceActions[c.actionTableNumber[e].charCodeAt(o-1)-32](f)),a.push(c.gotoTable[m].charCodeAt(c.productions[c.actionTableNumber[e].charCodeAt(o-1)-32][0]-2)-33);break;case c.ACCEPT:return new l(p.pop());default:throw new Error("XPath parse error")}}},l.prototype=new Object,l.prototype.constructor=l,l.superclass=Object.prototype,l.prototype.toString=function(){return this.expression.toString()},l.prototype.evaluate=function(e){return e.contextNode=e.expressionContextNode,e.contextSize=1,e.contextPosition=1,e.isHtml&&(p(e,"caseInsensitive",!0),p(e,"allowAnyNamespaceForNoPrefix",!0)),p(e,"caseInsensitive",!1),this.expression.evaluate(e)},l.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",l.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",h.prototype=new Object,h.prototype.constructor=h,h.superclass=Object.prototype,h.prototype.init=function(){},h.prototype.toString=function(){return"<Expression>"},h.prototype.evaluate=function(e){throw new Error("Could not evaluate expression.")},f.prototype=new h,f.prototype.constructor=f,f.superclass=h.prototype,f.prototype.init=function(e){this.rhs=e},d.prototype=new f,d.prototype.constructor=d,d.superclass=f.prototype,d.prototype.init=function(e){d.superclass.init.call(this,e)},d.prototype.evaluate=function(e){return this.rhs.evaluate(e).number().negate()},d.prototype.toString=function(){return"-"+this.rhs.toString()},m.prototype=new h,m.prototype.constructor=m,m.superclass=h.prototype,m.prototype.init=function(e,t){this.lhs=e,this.rhs=t},g.prototype=new m,g.prototype.constructor=g,g.superclass=m.prototype,g.prototype.init=function(e,t){g.superclass.init.call(this,e,t)},g.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},g.prototype.evaluate=function(e){var t=this.lhs.evaluate(e).bool();return t.booleanValue()?t:this.rhs.evaluate(e).bool()},N.prototype=new m,N.prototype.constructor=N,N.superclass=m.prototype,N.prototype.init=function(e,t){N.superclass.init.call(this,e,t)},N.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},N.prototype.evaluate=function(e){var t=this.lhs.evaluate(e).bool();return t.booleanValue()?this.rhs.evaluate(e).bool():t},b.prototype=new m,b.prototype.constructor=b,b.superclass=m.prototype,b.prototype.init=function(e,t){b.superclass.init.call(this,e,t)},b.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},b.prototype.evaluate=function(e){return this.lhs.evaluate(e).equals(this.rhs.evaluate(e))},y.prototype=new m,y.prototype.constructor=y,y.superclass=m.prototype,y.prototype.init=function(e,t){y.superclass.init.call(this,e,t)},y.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},y.prototype.evaluate=function(e){return this.lhs.evaluate(e).notequal(this.rhs.evaluate(e))},E.prototype=new m,E.prototype.constructor=E,E.superclass=m.prototype,E.prototype.init=function(e,t){E.superclass.init.call(this,e,t)},E.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthan(this.rhs.evaluate(e))},E.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},v.prototype=new m,v.prototype.constructor=v,v.superclass=m.prototype,v.prototype.init=function(e,t){v.superclass.init.call(this,e,t)},v.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthan(this.rhs.evaluate(e))},v.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},w.prototype=new m,w.prototype.constructor=w,w.superclass=m.prototype,w.prototype.init=function(e,t){w.superclass.init.call(this,e,t)},w.prototype.evaluate=function(e){return this.lhs.evaluate(e).lessthanorequal(this.rhs.evaluate(e))},w.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},T.prototype=new m,T.prototype.constructor=T,T.superclass=m.prototype,T.prototype.init=function(e,t){T.superclass.init.call(this,e,t)},T.prototype.evaluate=function(e){return this.lhs.evaluate(e).greaterthanorequal(this.rhs.evaluate(e))},T.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},A.prototype=new m,A.prototype.constructor=A,A.superclass=m.prototype,A.prototype.init=function(e,t){A.superclass.init.call(this,e,t)},A.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().plus(this.rhs.evaluate(e).number())},A.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},S.prototype=new m,S.prototype.constructor=S,S.superclass=m.prototype,S.prototype.init=function(e,t){S.superclass.init.call(this,e,t)},S.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().minus(this.rhs.evaluate(e).number())},S.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},D.prototype=new m,D.prototype.constructor=D,D.superclass=m.prototype,D.prototype.init=function(e,t){D.superclass.init.call(this,e,t)},D.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().multiply(this.rhs.evaluate(e).number())},D.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},x.prototype=new m,x.prototype.constructor=x,x.superclass=m.prototype,x.prototype.init=function(e,t){x.superclass.init.call(this,e,t)},x.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().div(this.rhs.evaluate(e).number())},x.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},R.prototype=new m,R.prototype.constructor=R,R.superclass=m.prototype,R.prototype.init=function(e,t){R.superclass.init.call(this,e,t)},R.prototype.evaluate=function(e){return this.lhs.evaluate(e).number().mod(this.rhs.evaluate(e).number())},R.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},O.prototype=new m,O.prototype.constructor=O,O.superclass=m.prototype,O.prototype.init=function(e,t){O.superclass.init.call(this,e,t)},O.prototype.evaluate=function(e){return this.lhs.evaluate(e).nodeset().union(this.rhs.evaluate(e).nodeset())},O.prototype.toString=function(){return n(o,[this.lhs,this.rhs]).join(" | ")},L.prototype=new h,L.prototype.constructor=L,L.superclass=h.prototype,L.prototype.init=function(e,t,r){L.superclass.init.call(this),this.filter=e,this.filterPredicates=t,this.locationPath=r},L.applyPredicates=function(e,n,o){if(0===e.length)return o;var i=n.extend({});return r((function(e,r){return i.contextSize=e.length,n=function(e,t){return i.contextNode=e,i.contextPosition=t+1,L.predicateMatches(r,i)},o=[],t((function(e,t){n(e,t)&&o.push(e)}),e),o;var n,o}),o,e)},L.getRoot=function(e,t){var r=t[0];if(9===r.nodeType)return r;if(e.virtualRoot)return e.virtualRoot;var n=r.ownerDocument;if(n)return n;for(var o=r;null!=o.parentNode;)o=o.parentNode;return o},L.applyStep=function(e,t,r){var n=[];switch(t.contextNode=r,e.axis){case P.ANCESTOR:if(t.contextNode===t.virtualRoot)break;for(o=2==t.contextNode.nodeType?L.getOwnerElement(t.contextNode):t.contextNode.parentNode;null!=o&&(e.nodeTest.matches(o,t)&&n.push(o),o!==t.virtualRoot);)o=o.parentNode;break;case P.ANCESTORORSELF:for(var o=t.contextNode;null!=o&&(e.nodeTest.matches(o,t)&&n.push(o),o!==t.virtualRoot);o=2==o.nodeType?L.getOwnerElement(o):o.parentNode);break;case P.ATTRIBUTE:var i=t.contextNode.attributes;if(null!=i)for(var s=0;s<i.length;s++)o=i.item(s),e.nodeTest.matches(o,t)&&n.push(o);break;case P.CHILD:for(o=t.contextNode.firstChild;null!=o;o=o.nextSibling)e.nodeTest.matches(o,t)&&n.push(o);break;case P.DESCENDANT:for(var a=[t.contextNode.firstChild];a.length>0;)for(o=a.pop();null!=o;)e.nodeTest.matches(o,t)&&n.push(o),null!=o.firstChild?(a.push(o.nextSibling),o=o.firstChild):o=o.nextSibling;break;case P.DESCENDANTORSELF:for(e.nodeTest.matches(t.contextNode,t)&&n.push(t.contextNode),a=[t.contextNode.firstChild];a.length>0;)for(o=a.pop();null!=o;)e.nodeTest.matches(o,t)&&n.push(o),null!=o.firstChild?(a.push(o.nextSibling),o=o.firstChild):o=o.nextSibling;break;case P.FOLLOWING:if(t.contextNode===t.virtualRoot)break;for(a=[],null!=t.contextNode.firstChild?a.unshift(t.contextNode.firstChild):a.unshift(t.contextNode.nextSibling),o=t.contextNode.parentNode;null!=o&&9!=o.nodeType&&o!==t.virtualRoot;o=o.parentNode)a.unshift(o.nextSibling);do{for(o=a.pop();null!=o;)e.nodeTest.matches(o,t)&&n.push(o),null!=o.firstChild?(a.push(o.nextSibling),o=o.firstChild):o=o.nextSibling}while(a.length>0);break;case P.FOLLOWINGSIBLING:if(t.contextNode===t.virtualRoot)break;for(o=t.contextNode.nextSibling;null!=o;o=o.nextSibling)e.nodeTest.matches(o,t)&&n.push(o);break;case P.NAMESPACE:var u={};if(1==t.contextNode.nodeType){for(u.xml=l.XML_NAMESPACE_URI,u.xmlns=l.XMLNS_NAMESPACE_URI,o=t.contextNode;null!=o&&1==o.nodeType;o=o.parentNode)for(s=0;s<o.attributes.length;s++){var c=o.attributes.item(s),p=String(c.name);"xmlns"==p?null==u[""]&&(u[""]=c.value):p.length>6&&"xmlns:"==p.substring(0,6)&&null==u[h=p.substring(6,p.length)]&&(u[h]=c.value)}for(var h in u){var f=new Y(h,u[h],t.contextNode);e.nodeTest.matches(f,t)&&n.push(f)}}break;case P.PARENT:o=null,t.contextNode!==t.virtualRoot&&(o=2==t.contextNode.nodeType?L.getOwnerElement(t.contextNode):t.contextNode.parentNode),null!=o&&e.nodeTest.matches(o,t)&&n.push(o);break;case P.PRECEDING:a=null!=t.virtualRoot?[t.virtualRoot]:[C(t.contextNode)];e:for(;a.length>0;)for(o=a.pop();null!=o;){if(o==t.contextNode)break e;e.nodeTest.matches(o,t)&&n.unshift(o),null!=o.firstChild?(a.push(o.nextSibling),o=o.firstChild):o=o.nextSibling}break;case P.PRECEDINGSIBLING:if(t.contextNode===t.virtualRoot)break;for(o=t.contextNode.previousSibling;null!=o;o=o.previousSibling)e.nodeTest.matches(o,t)&&n.push(o);break;case P.SELF:e.nodeTest.matches(t.contextNode,t)&&n.push(t.contextNode)}return n},L.applySteps=function(e,t,n){return r(q.bind(null,t),n,e)},L.prototype.applyFilter=function(e,t){if(!this.filter)return{nodes:[e.contextNode]};var r=this.filter.evaluate(e);if(!$.instance_of(r,j)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:r}}return{nodes:L.applyPredicates(this.filterPredicates||[],t,r.toUnsortedArray())}},L.applyLocationPath=function(e,t,r){if(!e)return r;var n=e.absolute?[L.getRoot(t,r)]:r;return L.applySteps(e.steps,t,n)},L.prototype.evaluate=function(e){var t=u(new W,e),r=this.applyFilter(e,t);if("nonNodes"in r)return r.nonNodes;var n=new j;return n.addArray(L.applyLocationPath(this.locationPath,t,r.nodes)),n},L.predicateMatches=function(e,t){var r=e.evaluate(t);return $.instance_of(r,B)?t.contextPosition===r.numberValue():r.booleanValue()},L.predicateString=function(e){return s("[","]",e.toString())},L.predicatesString=function(e){return i("",n(L.predicateString,e))},L.prototype.toString=function(){if(null!=this.filter){var e=o(this.filter);return $.instance_of(this.filter,V)?s("'","'",e):null!=this.filterPredicates&&this.filterPredicates.length?s("(",")",e)+L.predicatesString(this.filterPredicates):null!=this.locationPath?e+(this.locationPath.absolute?"":"/")+o(this.locationPath):e}return o(this.locationPath)},L.getOwnerElement=function(e){if(e.ownerElement)return e.ownerElement;try{if(e.selectSingleNode)return e.selectSingleNode("..")}catch(e){}for(var t=(9==e.nodeType?e:e.ownerDocument).getElementsByTagName("*"),r=0;r<t.length;r++)for(var n=t.item(r),o=n.attributes,i=0;i<o.length;i++)if(o.item(i)===e)return n;return null},_.prototype=new Object,_.prototype.constructor=_,_.superclass=Object.prototype,_.prototype.init=function(e,t){this.absolute=e,this.steps=t},_.prototype.toString=function(){return(this.absolute?"/":"")+n(o,this.steps).join("/")},P.prototype=new Object,P.prototype.constructor=P,P.superclass=Object.prototype,P.prototype.init=function(e,t,r){this.axis=e,this.nodeTest=t,this.predicates=r},P.prototype.toString=function(){return P.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+L.predicatesString(this.predicates)},P.ANCESTOR=0,P.ANCESTORORSELF=1,P.ATTRIBUTE=2,P.CHILD=3,P.DESCENDANT=4,P.DESCENDANTORSELF=5,P.FOLLOWING=6,P.FOLLOWINGSIBLING=7,P.NAMESPACE=8,P.PARENT=9,P.PRECEDING=10,P.PRECEDINGSIBLING=11,P.SELF=12,P.STEPNAMES=r((function(e,t){return e[t[0]]=t[1],e}),{},[[P.ANCESTOR,"ancestor"],[P.ANCESTORORSELF,"ancestor-or-self"],[P.ATTRIBUTE,"attribute"],[P.CHILD,"child"],[P.DESCENDANT,"descendant"],[P.DESCENDANTORSELF,"descendant-or-self"],[P.FOLLOWING,"following"],[P.FOLLOWINGSIBLING,"following-sibling"],[P.NAMESPACE,"namespace"],[P.PARENT,"parent"],[P.PRECEDING,"preceding"],[P.PRECEDINGSIBLING,"preceding-sibling"],[P.SELF,"self"]]),M.prototype=new Object,M.prototype.constructor=M,M.superclass=Object.prototype,M.prototype.init=function(e,t){this.type=e,this.value=t},M.prototype.toString=function(){return"<unknown nodetest type>"},M.prototype.matches=function(e,t){console.warn("unknown node test type")},M.NAMETESTANY=0,M.NAMETESTPREFIXANY=1,M.NAMETESTQNAME=2,M.COMMENT=3,M.TEXT=4,M.PI=5,M.NODE=6,M.isNodeType=function(e){return function(t){return function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return!0;return!1}(e,t.nodeType)}},M.makeNodeTestType=function(e,t,r){var n=r||function(){};return n.prototype=new M(e),n.prototype.constructor=n,u(n.prototype,t),n},M.makeNodeTypeTest=function(e,t,r){return new(M.makeNodeTestType(e,{matches:M.isNodeType(t),toString:(n=r,function(){return n})}));var n},M.hasPrefix=function(e){return e.prefix||-1!==(e.nodeName||e.tagName).indexOf(":")},M.isElementOrAttribute=M.isNodeType([1,2]),M.nameSpaceMatches=function(e,t,r){var n=r.namespaceURI||"";if(!e)return!n||t.allowAnyNamespaceForNoPrefix&&!M.hasPrefix(r);var o=t.namespaceResolver.getNamespace(e,t.expressionContextNode);if(null==o)throw new Error("Cannot resolve QName "+e);return o===n},M.localNameMatches=function(e,t,r){var n=r.localName||r.nodeName;return t.caseInsensitive?e.toLowerCase()===n.toLowerCase():e===n},M.NameTestPrefixAny=M.makeNodeTestType(M.NAMETESTPREFIXANY,{matches:function(e,t){return M.isElementOrAttribute(e)&&M.nameSpaceMatches(this.prefix,t,e)},toString:function(){return this.prefix+":*"}},(function(e){this.prefix=e})),M.NameTestQName=M.makeNodeTestType(M.NAMETESTQNAME,{matches:function(e,t){return M.isNodeType([1,2,Y.XPATH_NAMESPACE_NODE])(e)&&M.nameSpaceMatches(this.prefix,t,e)&&M.localNameMatches(this.localName,t,e)},toString:function(){return this.name}},(function(e){var t=e.split(":");this.name=e,this.prefix=t.length>1?t[0]:null,this.localName=t[t.length>1?1:0]})),M.PITest=M.makeNodeTestType(M.PI,{matches:function(e,t){return M.isNodeType([7])(e)&&(e.target||e.nodeName)===this.name},toString:function(){return s('processing-instruction("','")',this.name)}},(function(e){this.name=e})),M.nameTestAny=M.makeNodeTypeTest(M.NAMETESTANY,[1,2,Y.XPATH_NAMESPACE_NODE],"*"),M.textTest=M.makeNodeTypeTest(M.TEXT,[3,4],"text()"),M.commentTest=M.makeNodeTypeTest(M.COMMENT,[8],"comment()"),M.nodeTest=M.makeNodeTypeTest(M.NODE,[1,2,3,4,7,8,9],"node()"),M.anyPiTest=M.makeNodeTypeTest(M.PI,[7],"processing-instruction()"),U.prototype=new h,U.prototype.constructor=U,U.superclass=h.prototype,U.prototype.init=function(e){this.variable=e},U.prototype.toString=function(){return"$"+this.variable},U.prototype.evaluate=function(e){var t=$.resolveQName(this.variable,e.namespaceResolver,e.contextNode,!1);if(null==t[0])throw new Error("Cannot resolve QName "+fn);var r=e.variableResolver.getVariable(t[1],t[0]);if(!r)throw Z.fromMessage("Undeclared variable: "+this.toString());return r},F.prototype=new h,F.prototype.constructor=F,F.superclass=h.prototype,F.prototype.init=function(e,t){this.functionName=e,this.arguments=t},F.prototype.toString=function(){for(var e=this.functionName+"(",t=0;t<this.arguments.length;t++)t>0&&(e+=", "),e+=this.arguments[t].toString();return e+")"},F.prototype.evaluate=function(e){var t=Q.getFunctionFromContext(this.functionName,e);if(!t)throw new Error("Unknown function "+this.functionName);var r=[e].concat(this.arguments);return t.apply(e.functionResolver.thisArg,r)};var k=new Object;function V(e){arguments.length>0&&this.init(e)}function B(e){arguments.length>0&&this.init(e)}function H(e){arguments.length>0&&this.init(e)}function G(e){this.init(e)}function j(){this.init()}function Y(e,t,r){this.isXPathNamespace=!0,this.ownerDocument=r.ownerDocument,this.nodeName="#namespace",this.prefix=e,this.localName=e,this.namespaceURI=t,this.nodeValue=t,this.ownerElement=r,this.nodeType=Y.XPATH_NAMESPACE_NODE}function W(e,t,r){this.variableResolver=null!=e?e:new X,this.namespaceResolver=null!=t?t:new J,this.functionResolver=null!=r?r:new Q}function X(){}function Q(e){this.thisArg=null!=e?e:z,this.functions=new Object,this.addStandardFunctions()}function J(){}k.equals=function(e,t){return e.equals(t)},k.notequal=function(e,t){return e.notequal(t)},k.lessthan=function(e,t){return e.lessthan(t)},k.greaterthan=function(e,t){return e.greaterthan(t)},k.lessthanorequal=function(e,t){return e.lessthanorequal(t)},k.greaterthanorequal=function(e,t){return e.greaterthanorequal(t)},V.prototype=new h,V.prototype.constructor=V,V.superclass=h.prototype,V.prototype.init=function(e){this.str=String(e)},V.prototype.toString=function(){return this.str},V.prototype.evaluate=function(e){return this},V.prototype.string=function(){return this},V.prototype.number=function(){return new B(this.str)},V.prototype.bool=function(){return new H(this.str)},V.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},V.prototype.stringValue=function(){return this.str},V.prototype.numberValue=function(){return this.number().numberValue()},V.prototype.booleanValue=function(){return this.bool().booleanValue()},V.prototype.equals=function(e){return $.instance_of(e,H)?this.bool().equals(e):$.instance_of(e,B)?this.number().equals(e):$.instance_of(e,j)?e.compareWithString(this,k.equals):new H(this.str==e.str)},V.prototype.notequal=function(e){return $.instance_of(e,H)?this.bool().notequal(e):$.instance_of(e,B)?this.number().notequal(e):$.instance_of(e,j)?e.compareWithString(this,k.notequal):new H(this.str!=e.str)},V.prototype.lessthan=function(e){return this.number().lessthan(e)},V.prototype.greaterthan=function(e){return this.number().greaterthan(e)},V.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},V.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},B.prototype=new h,B.prototype.constructor=B,B.superclass=h.prototype,B.prototype.init=function(e){this.num="string"==typeof e?this.parse(e):Number(e)},B.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,B.prototype.parse=function(e){return this.numberFormat.test(e)?parseFloat(e):Number.NaN},B.prototype.toString=function(){var e=this.num.toString();return-1!==e.indexOf("e-")?function(e){for(var t=e.split("e-"),r=t[0].replace(".",""),n=Number(t[1]),o=0;o<n-1;o+=1)r="0"+r;return"0."+r}(e):-1!==e.indexOf("e")?function(e){for(var t=e.split("e"),r=t[0].replace(".",""),n=Number(t[1])+1-r.length,o=0;o<n;o+=1)r+="0";return r}(e):e},B.prototype.evaluate=function(e){return this},B.prototype.string=function(){return new V(this.toString())},B.prototype.number=function(){return this},B.prototype.bool=function(){return new H(this.num)},B.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},B.prototype.stringValue=function(){return this.string().stringValue()},B.prototype.numberValue=function(){return this.num},B.prototype.booleanValue=function(){return this.bool().booleanValue()},B.prototype.negate=function(){return new B(-this.num)},B.prototype.equals=function(e){return $.instance_of(e,H)?this.bool().equals(e):$.instance_of(e,V)?this.equals(e.number()):$.instance_of(e,j)?e.compareWithNumber(this,k.equals):new H(this.num==e.num)},B.prototype.notequal=function(e){return $.instance_of(e,H)?this.bool().notequal(e):$.instance_of(e,V)?this.notequal(e.number()):$.instance_of(e,j)?e.compareWithNumber(this,k.notequal):new H(this.num!=e.num)},B.prototype.lessthan=function(e){return $.instance_of(e,j)?e.compareWithNumber(this,k.greaterthan):$.instance_of(e,H)||$.instance_of(e,V)?this.lessthan(e.number()):new H(this.num<e.num)},B.prototype.greaterthan=function(e){return $.instance_of(e,j)?e.compareWithNumber(this,k.lessthan):$.instance_of(e,H)||$.instance_of(e,V)?this.greaterthan(e.number()):new H(this.num>e.num)},B.prototype.lessthanorequal=function(e){return $.instance_of(e,j)?e.compareWithNumber(this,k.greaterthanorequal):$.instance_of(e,H)||$.instance_of(e,V)?this.lessthanorequal(e.number()):new H(this.num<=e.num)},B.prototype.greaterthanorequal=function(e){return $.instance_of(e,j)?e.compareWithNumber(this,k.lessthanorequal):$.instance_of(e,H)||$.instance_of(e,V)?this.greaterthanorequal(e.number()):new H(this.num>=e.num)},B.prototype.plus=function(e){return new B(this.num+e.num)},B.prototype.minus=function(e){return new B(this.num-e.num)},B.prototype.multiply=function(e){return new B(this.num*e.num)},B.prototype.div=function(e){return new B(this.num/e.num)},B.prototype.mod=function(e){return new B(this.num%e.num)},H.prototype=new h,H.prototype.constructor=H,H.superclass=h.prototype,H.prototype.init=function(e){this.b=Boolean(e)},H.prototype.toString=function(){return this.b.toString()},H.prototype.evaluate=function(e){return this},H.prototype.string=function(){return new V(this.b)},H.prototype.number=function(){return new B(this.b)},H.prototype.bool=function(){return this},H.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},H.prototype.stringValue=function(){return this.string().stringValue()},H.prototype.numberValue=function(){return this.number().numberValue()},H.prototype.booleanValue=function(){return this.b},H.prototype.not=function(){return new H(!this.b)},H.prototype.equals=function(e){return $.instance_of(e,V)||$.instance_of(e,B)?this.equals(e.bool()):$.instance_of(e,j)?e.compareWithBoolean(this,k.equals):new H(this.b==e.b)},H.prototype.notequal=function(e){return $.instance_of(e,V)||$.instance_of(e,B)?this.notequal(e.bool()):$.instance_of(e,j)?e.compareWithBoolean(this,k.notequal):new H(this.b!=e.b)},H.prototype.lessthan=function(e){return this.number().lessthan(e)},H.prototype.greaterthan=function(e){return this.number().greaterthan(e)},H.prototype.lessthanorequal=function(e){return this.number().lessthanorequal(e)},H.prototype.greaterthanorequal=function(e){return this.number().greaterthanorequal(e)},H.true_=new H(!0),H.false_=new H(!1),G.prototype=new Object,G.prototype.constructor=G,G.superclass=Object.prototype,G.prototype.init=function(e){this.left=null,this.right=null,this.node=e,this.depth=1},G.prototype.balance=function(){var e=null==this.left?0:this.left.depth,t=null==this.right?0:this.right.depth;if(e>t+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(e+1<t){var r=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>r&&this.right.rotateLL(),this.rotateRR()}},G.prototype.rotateLL=function(){var e=this.node,t=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=t,this.right.node=e,this.right.updateInNewLocation(),this.updateInNewLocation()},G.prototype.rotateRR=function(){var e=this.node,t=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=t,this.left.node=e,this.left.updateInNewLocation(),this.updateInNewLocation()},G.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},G.prototype.getDepthFromChildren=function(){this.depth=null==this.node?0:1,null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},G.prototype.add=function(e){if(e===this.node)return!1;var t=function(e,t){if(e===t)return 0;if(e.compareDocumentPosition){var r=e.compareDocumentPosition(t);return 1&r||10&r?1:20&r?-1:0}for(var n=0,o=0,i=e;null!=i;i=i.parentNode||i.ownerElement)n++;for(var s=t;null!=s;s=s.parentNode||s.ownerElement)o++;if(n>o){for(;n>o;)e=e.parentNode||e.ownerElement,n--;if(e===t)return 1}else if(o>n){for(;o>n;)t=t.parentNode||t.ownerElement,o--;if(e===t)return-1}for(var a=e.parentNode||e.ownerElement,u=t.parentNode||t.ownerElement;a!==u;)t=u,a=(e=a).parentNode||e.ownerElement,u=t.parentNode||t.ownerElement;var c=$.isAttribute(e),l=$.isAttribute(t);if(c&&!l)return-1;if(!c&&l)return 1;if(a)for(var p=c?a.attributes:a.childNodes,h=p.length,f=0;f<h;f+=1){var d=p[f];if(d===e)return-1;if(d===t)return 1}throw new Error("Unexpected: could not determine node order")}(e,this.node),r=!1;return-1==t?null==this.left?(this.left=new G(e),r=!0):(r=this.left.add(e))&&this.balance():1==t&&(null==this.right?(this.right=new G(e),r=!0):(r=this.right.add(e))&&this.balance()),r&&this.getDepthFromChildren(),r},j.prototype=new h,j.prototype.constructor=j,j.superclass=h.prototype,j.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},j.prototype.toString=function(){var e=this.first();return null==e?"":this.stringForNode(e)},j.prototype.evaluate=function(e){return this},j.prototype.string=function(){return new V(this.toString())},j.prototype.stringValue=function(){return this.toString()},j.prototype.number=function(){return new B(this.string())},j.prototype.numberValue=function(){return Number(this.string())},j.prototype.bool=function(){return new H(this.booleanValue())},j.prototype.booleanValue=function(){return!!this.size},j.prototype.nodeset=function(){return this},j.prototype.stringForNode=function(e){return 9==e.nodeType||1==e.nodeType||11===e.nodeType?this.stringForContainerNode(e):2===e.nodeType?e.value||e.nodeValue:e.isNamespaceNode?e.namespace:e.nodeValue},j.prototype.stringForContainerNode=function(e){for(var t="",r=e.firstChild;null!=r;r=r.nextSibling){var n=r.nodeType;1!==n&&3!==n&&4!==n&&9!==n&&11!==n||(t+=this.stringForNode(r))}return t},j.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new G(this.nodes[0]);for(var e=1;e<this.nodes.length;e+=1)this.tree.add(this.nodes[e])}return this.tree},j.prototype.first=function(){var e=this.buildTree();if(null==e)return null;for(;null!=e.left;)e=e.left;return e.node},j.prototype.add=function(e){for(var t=0;t<this.nodes.length;t+=1)if(e===this.nodes[t])return;this.tree=null,this.nodes.push(e),this.size+=1},j.prototype.addArray=function(e){var r=this;t((function(e){r.add(e)}),e)},j.prototype.toArray=function(){var e=[];return this.toArrayRec(this.buildTree(),e),e},j.prototype.toArrayRec=function(e,t){null!=e&&(this.toArrayRec(e.left,t),t.push(e.node),this.toArrayRec(e.right,t))},j.prototype.toUnsortedArray=function(){return this.nodes.slice()},j.prototype.compareWithString=function(e,t){for(var r=this.toUnsortedArray(),n=0;n<r.length;n++){var o=r[n],i=t(new V(this.stringForNode(o)),e);if(i.booleanValue())return i}return new H(!1)},j.prototype.compareWithNumber=function(e,t){for(var r=this.toUnsortedArray(),n=0;n<r.length;n++){var o=r[n],i=t(new B(this.stringForNode(o)),e);if(i.booleanValue())return i}return new H(!1)},j.prototype.compareWithBoolean=function(e,t){return t(this.bool(),e)},j.prototype.compareWithNodeSet=function(e,t){for(var r=this.toUnsortedArray(),n=function(e,r){return t(r,e)},o=0;o<r.length;o++){var i=new V(this.stringForNode(r[o])),s=e.compareWithString(i,n);if(s.booleanValue())return s}return new H(!1)},j.compareWith=function(e){var t=Array.prototype.slice,r=e.length,n=function(){var o=t.call(arguments);return o.length<r?function(e,r){return function(){return r.apply(this,e.concat(t.call(arguments)))}}(o,n):e.apply(this,t.apply(arguments,[0,r]))};return n}((function(e,t){return $.instance_of(t,V)?this.compareWithString(t,e):$.instance_of(t,B)?this.compareWithNumber(t,e):$.instance_of(t,H)?this.compareWithBoolean(t,e):this.compareWithNodeSet(t,e)})),j.prototype.equals=j.compareWith(k.equals),j.prototype.notequal=j.compareWith(k.notequal),j.prototype.lessthan=j.compareWith(k.lessthan),j.prototype.greaterthan=j.compareWith(k.greaterthan),j.prototype.lessthanorequal=j.compareWith(k.lessthanorequal),j.prototype.greaterthanorequal=j.compareWith(k.greaterthanorequal),j.prototype.union=function(e){var t=new j;return t.addArray(this.toUnsortedArray()),t.addArray(e.toUnsortedArray()),t},Y.prototype=new Object,Y.prototype.constructor=Y,Y.superclass=Object.prototype,Y.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},W.prototype=new Object,W.prototype.constructor=W,W.superclass=Object.prototype,W.prototype.extend=function(e){return u(new W,this,e)},X.prototype=new Object,X.prototype.constructor=X,X.superclass=Object.prototype,X.prototype.getVariable=function(e,t){return null},Q.prototype=new Object,Q.prototype.constructor=Q,Q.superclass=Object.prototype,Q.prototype.addStandardFunctions=function(){this.functions["{}last"]=z.last,this.functions["{}position"]=z.position,this.functions["{}count"]=z.count,this.functions["{}id"]=z.id,this.functions["{}local-name"]=z.localName,this.functions["{}namespace-uri"]=z.namespaceURI,this.functions["{}name"]=z.name,this.functions["{}string"]=z.string,this.functions["{}concat"]=z.concat,this.functions["{}starts-with"]=z.startsWith,this.functions["{}contains"]=z.contains,this.functions["{}substring-before"]=z.substringBefore,this.functions["{}substring-after"]=z.substringAfter,this.functions["{}substring"]=z.substring,this.functions["{}string-length"]=z.stringLength,this.functions["{}normalize-space"]=z.normalizeSpace,this.functions["{}translate"]=z.translate,this.functions["{}boolean"]=z.boolean_,this.functions["{}not"]=z.not,this.functions["{}true"]=z.true_,this.functions["{}false"]=z.false_,this.functions["{}lang"]=z.lang,this.functions["{}number"]=z.number,this.functions["{}sum"]=z.sum,this.functions["{}floor"]=z.floor,this.functions["{}ceiling"]=z.ceiling,this.functions["{}round"]=z.round},Q.prototype.addFunction=function(e,t,r){this.functions["{"+e+"}"+t]=r},Q.getFunctionFromContext=function(e,t){var r=$.resolveQName(e,t.namespaceResolver,t.contextNode,!1);if(null===r[0])throw new Error("Cannot resolve QName "+name);return t.functionResolver.getFunction(r[1],r[0])},Q.prototype.getFunction=function(e,t){return this.functions["{"+t+"}"+e]},J.prototype=new Object,J.prototype.constructor=J,J.superclass=Object.prototype,J.prototype.getNamespace=function(e,t){if("xml"==e)return l.XML_NAMESPACE_URI;if("xmlns"==e)return l.XMLNS_NAMESPACE_URI;for(9==t.nodeType?t=t.documentElement:2==t.nodeType?t=L.getOwnerElement(t):1!=t.nodeType&&(t=t.parentNode);null!=t&&1==t.nodeType;){for(var r=t.attributes,n=0;n<r.length;n++){var o=r.item(n),i=o.name||o.nodeName;if("xmlns"===i&&""===e||i==="xmlns:"+e)return String(o.value||o.nodeValue)}t=t.parentNode}return null};var z=new Object;z.last=function(e){if(1!=arguments.length)throw new Error("Function last expects ()");return new B(e.contextSize)},z.position=function(e){if(1!=arguments.length)throw new Error("Function position expects ()");return new B(e.contextPosition)},z.count=function(){var e,t=arguments[0];if(2!=arguments.length||!$.instance_of(e=arguments[1].evaluate(t),j))throw new Error("Function count expects (node-set)");return new B(e.size)},z.id=function(){var e,t=arguments[0];if(2!=arguments.length)throw new Error("Function id expects (object)");e=arguments[1].evaluate(t);for(var r=(e=$.instance_of(e,j)?e.toArray().join(" "):e.stringValue()).split(/[\x0d\x0a\x09\x20]+/),n=new j,o=9==t.contextNode.nodeType?t.contextNode:t.contextNode.ownerDocument,i=0;i<r.length;i++){var s;null!=(s=o.getElementById?o.getElementById(r[i]):$.getElementById(o,r[i]))&&n.add(s)}return n},z.localName=function(e,t){var r;if(1==arguments.length)r=e.contextNode;else{if(2!=arguments.length)throw new Error("Function local-name expects (node-set?)");r=t.evaluate(e).first()}return new V(null==r?"":r.localName||r.baseName||r.target||r.nodeName||"")},z.namespaceURI=function(){var e,t=arguments[0];if(1==arguments.length)e=t.contextNode;else{if(2!=arguments.length)throw new Error("Function namespace-uri expects (node-set?)");e=arguments[1].evaluate(t).first()}return new V(null==e?"":e.namespaceURI)},z.name=function(){var e,t=arguments[0];if(1==arguments.length)e=t.contextNode;else{if(2!=arguments.length)throw new Error("Function name expects (node-set?)");e=arguments[1].evaluate(t).first()}return null==e?new V(""):1==e.nodeType?new V(e.nodeName):2==e.nodeType?new V(e.name||e.nodeName):7===e.nodeType?new V(e.target||e.nodeName):null==e.localName?new V(""):new V(e.localName)},z.string=function(){var e=arguments[0];if(1==arguments.length)return new V(j.prototype.stringForNode(e.contextNode));if(2==arguments.length)return arguments[1].evaluate(e).string();throw new Error("Function string expects (object?)")},z.concat=function(e){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var t="",r=1;r<arguments.length;r++)t+=arguments[r].evaluate(e).stringValue();return new V(t)},z.startsWith=function(){var e=arguments[0];if(3!=arguments.length)throw new Error("Function startsWith expects (string, string)");var t=arguments[1].evaluate(e).stringValue(),r=arguments[2].evaluate(e).stringValue();return new H(t.substring(0,r.length)==r)},z.contains=function(){var e=arguments[0];if(3!=arguments.length)throw new Error("Function contains expects (string, string)");var t=arguments[1].evaluate(e).stringValue(),r=arguments[2].evaluate(e).stringValue();return new H(-1!==t.indexOf(r))},z.substringBefore=function(){var e=arguments[0];if(3!=arguments.length)throw new Error("Function substring-before expects (string, string)");var t=arguments[1].evaluate(e).stringValue(),r=arguments[2].evaluate(e).stringValue();return new V(t.substring(0,t.indexOf(r)))},z.substringAfter=function(){var e=arguments[0];if(3!=arguments.length)throw new Error("Function substring-after expects (string, string)");var t=arguments[1].evaluate(e).stringValue(),r=arguments[2].evaluate(e).stringValue();if(0==r.length)return new V(t);var n=t.indexOf(r);return new V(-1==n?"":t.substring(n+r.length))},z.substring=function(){var e=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw new Error("Function substring expects (string, number, number?)");var t=arguments[1].evaluate(e).stringValue(),r=Math.round(arguments[2].evaluate(e).numberValue())-1,n=4==arguments.length?r+Math.round(arguments[3].evaluate(e).numberValue()):void 0;return new V(t.substring(r,n))},z.stringLength=function(){var e,t=arguments[0];if(1==arguments.length)e=j.prototype.stringForNode(t.contextNode);else{if(2!=arguments.length)throw new Error("Function string-length expects (string?)");e=arguments[1].evaluate(t).stringValue()}return new B(e.length)},z.normalizeSpace=function(){var e,t=arguments[0];if(1==arguments.length)e=j.prototype.stringForNode(t.contextNode);else{if(2!=arguments.length)throw new Error("Function normalize-space expects (string?)");e=arguments[1].evaluate(t).stringValue()}for(var r=0,n=e.length-1;$.isSpace(e.charCodeAt(n));)n--;for(var o="";r<=n&&$.isSpace(e.charCodeAt(r));)r++;for(;r<=n;)if($.isSpace(e.charCodeAt(r)))for(o+=" ";r<=n&&$.isSpace(e.charCodeAt(r));)r++;else o+=e.charAt(r),r++;return new V(o)},z.translate=function(e,t,o,s){if(4!=arguments.length)throw new Error("Function translate expects (string, string, string)");var a=t.evaluate(e).stringValue(),u=o.evaluate(e).stringValue(),c=s.evaluate(e).stringValue(),l=r((function(e,t,r){return t in e||(e[t]=r>c.length?"":c[r]),e}),{},u);return new V(i("",n((function(e){return e in l?l[e]:e}),a)))},z.boolean_=function(){var e=arguments[0];if(2!=arguments.length)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(e).bool()},z.not=function(e,t){if(2!=arguments.length)throw new Error("Function not expects (object)");return t.evaluate(e).bool().not()},z.true_=function(){if(1!=arguments.length)throw new Error("Function true expects ()");return H.true_},z.false_=function(){if(1!=arguments.length)throw new Error("Function false expects ()");return H.false_},z.lang=function(){var e,t=arguments[0];if(2!=arguments.length)throw new Error("Function lang expects (string)");for(var r=t.contextNode;null!=r&&9!=r.nodeType;r=r.parentNode){var n=r.getAttributeNS(l.XML_NAMESPACE_URI,"lang");if(null!=n){e=String(n);break}}if(null==e)return H.false_;var o=arguments[1].evaluate(t).stringValue();return new H(e.substring(0,o.length)==o&&(e.length==o.length||"-"==e.charAt(o.length)))},z.number=function(){var e=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw new Error("Function number expects (object?)");return 1==arguments.length?new B(j.prototype.stringForNode(e.contextNode)):arguments[1].evaluate(e).number()},z.sum=function(){var e,t=arguments[0];if(2!=arguments.length||!$.instance_of(e=arguments[1].evaluate(t),j))throw new Error("Function sum expects (node-set)");e=e.toUnsortedArray();for(var r=0,n=0;n<e.length;n++)r+=new B(j.prototype.stringForNode(e[n])).numberValue();return new B(r)},z.floor=function(){var e=arguments[0];if(2!=arguments.length)throw new Error("Function floor expects (number)");return new B(Math.floor(arguments[1].evaluate(e).numberValue()))},z.ceiling=function(){var e=arguments[0];if(2!=arguments.length)throw new Error("Function ceiling expects (number)");return new B(Math.ceil(arguments[1].evaluate(e).numberValue()))},z.round=function(){var e=arguments[0];if(2!=arguments.length)throw new Error("Function round expects (number)");return new B(Math.round(arguments[1].evaluate(e).numberValue()))};var $=new Object;$.isAttribute=function(e){return e&&(2===e.nodeType||e.ownerElement)},$.splitQName=function(e){var t=e.indexOf(":");return-1==t?[null,e]:[e.substring(0,t),e.substring(t+1)]},$.resolveQName=function(e,t,r,n){var o=$.splitQName(e);return null!=o[0]?o[0]=t.getNamespace(o[0],r):n?(o[0]=t.getNamespace("",r),null==o[0]&&(o[0]="")):o[0]="",o},$.isSpace=function(e){return 9==e||13==e||10==e||32==e},$.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||902==e||e>=904&&e<=906||908==e||e>=910&&e<=929||e>=931&&e<=974||e>=976&&e<=982||986==e||988==e||990==e||992==e||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||1369==e||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||1749==e||e>=1765&&e<=1766||e>=2309&&e<=2361||2365==e||e>=2392&&e<=2401||e>=2437&&e<=2444||e>=2447&&e<=2448||e>=2451&&e<=2472||e>=2474&&e<=2480||2482==e||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||2654==e||e>=2674&&e<=2676||e>=2693&&e<=2699||2701==e||e>=2703&&e<=2705||e>=2707&&e<=2728||e>=2730&&e<=2736||e>=2738&&e<=2739||e>=2741&&e<=2745||2749==e||2784==e||e>=2821&&e<=2828||e>=2831&&e<=2832||e>=2835&&e<=2856||e>=2858&&e<=2864||e>=2866&&e<=2867||e>=2870&&e<=2873||2877==e||e>=2908&&e<=2909||e>=2911&&e<=2913||e>=2949&&e<=2954||e>=2958&&e<=2960||e>=2962&&e<=2965||e>=2969&&e<=2970||2972==e||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||3294==e||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||3632==e||e>=3634&&e<=3635||e>=3648&&e<=3653||e>=3713&&e<=3714||3716==e||e>=3719&&e<=3720||3722==e||3725==e||e>=3732&&e<=3735||e>=3737&&e<=3743||e>=3745&&e<=3747||3749==e||3751==e||e>=3754&&e<=3755||e>=3757&&e<=3758||3760==e||e>=3762&&e<=3763||3773==e||e>=3776&&e<=3780||e>=3904&&e<=3911||e>=3913&&e<=3945||e>=4256&&e<=4293||e>=4304&&e<=4342||4352==e||e>=4354&&e<=4355||e>=4357&&e<=4359||4361==e||e>=4363&&e<=4364||e>=4366&&e<=4370||4412==e||4414==e||4416==e||4428==e||4430==e||4432==e||e>=4436&&e<=4437||4441==e||e>=4447&&e<=4449||4451==e||4453==e||4455==e||4457==e||e>=4461&&e<=4462||e>=4466&&e<=4467||4469==e||4510==e||4520==e||4523==e||e>=4526&&e<=4527||e>=4535&&e<=4536||4538==e||e>=4540&&e<=4546||4587==e||4592==e||4601==e||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||8025==e||8027==e||8029==e||e>=8031&&e<=8061||e>=8064&&e<=8116||e>=8118&&e<=8124||8126==e||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||8486==e||e>=8490&&e<=8491||8494==e||e>=8576&&e<=8578||e>=12353&&e<=12436||e>=12449&&e<=12538||e>=12549&&e<=12588||e>=44032&&e<=55203||e>=19968&&e<=40869||12295==e||e>=12321&&e<=12329},$.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||46==e||45==e||95==e||$.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||1471==e||e>=1473&&e<=1474||1476==e||e>=1611&&e<=1618||1648==e||e>=1750&&e<=1756||e>=1757&&e<=1759||e>=1760&&e<=1764||e>=1767&&e<=1768||e>=1770&&e<=1773||e>=2305&&e<=2307||2364==e||e>=2366&&e<=2380||2381==e||e>=2385&&e<=2388||e>=2402&&e<=2403||e>=2433&&e<=2435||2492==e||2494==e||2495==e||e>=2496&&e<=2500||e>=2503&&e<=2504||e>=2507&&e<=2509||2519==e||e>=2530&&e<=2531||2562==e||2620==e||2622==e||2623==e||e>=2624&&e<=2626||e>=2631&&e<=2632||e>=2635&&e<=2637||e>=2672&&e<=2673||e>=2689&&e<=2691||2748==e||e>=2750&&e<=2757||e>=2759&&e<=2761||e>=2763&&e<=2765||e>=2817&&e<=2819||2876==e||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||3031==e||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||3415==e||3633==e||e>=3636&&e<=3642||e>=3655&&e<=3662||3761==e||e>=3764&&e<=3769||e>=3771&&e<=3772||e>=3784&&e<=3789||e>=3864&&e<=3865||3893==e||3895==e||3897==e||3902==e||3903==e||e>=3953&&e<=3972||e>=3974&&e<=3979||e>=3984&&e<=3989||3991==e||e>=3993&&e<=4013||e>=4017&&e<=4023||4025==e||e>=8400&&e<=8412||8417==e||e>=12330&&e<=12335||12441==e||12442==e||183==e||720==e||721==e||903==e||1600==e||3654==e||3782==e||12293==e||e>=12337&&e<=12341||e>=12445&&e<=12446||e>=12540&&e<=12542},$.coalesceText=function(e){for(var t=e.firstChild;null!=t;t=t.nextSibling)if(3==t.nodeType||4==t.nodeType){var r=t.nodeValue,n=t;for(t=t.nextSibling;null!=t&&(3==t.nodeType||4==t.nodeType);){r+=t.nodeValue;var o=t;t=t.nextSibling,o.parentNode.removeChild(o)}if(4==n.nodeType){var i=n.parentNode;if(null==n.nextSibling)i.removeChild(n),i.appendChild(i.ownerDocument.createTextNode(r));else{var s=n.nextSibling;i.removeChild(n),i.insertBefore(i.ownerDocument.createTextNode(r),s)}}else n.nodeValue=r;if(null==t)break}else 1==t.nodeType&&$.coalesceText(t)},$.instance_of=function(e,t){for(;null!=e;){if(e.constructor===t)return!0;if(e===Object)return!1;e=e.constructor.superclass}return!1},$.getElementById=function(e,t){if(1==e.nodeType&&(e.getAttribute("id")==t||e.getAttributeNS(null,"id")==t))return e;for(var r=e.firstChild;null!=r;r=r.nextSibling){var n=$.getElementById(r,t);if(null!=n)return n}return null};var Z=function(){function e(t,r,n){var o=Error.call(this,function(t,r){var n=r?": "+r.toString():"";switch(t){case e.INVALID_EXPRESSION_ERR:return"Invalid expression"+n;case e.TYPE_ERR:return"Type error"+n}return null}(t,r)||n);return o.code=t,o.exception=r,o}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.superclass=Error,e.prototype.toString=function(){return this.message},e.fromMessage=function(t,r){return new e(null,r,t)},e.INVALID_EXPRESSION_ERR=51,e.TYPE_ERR=52,e}();function K(e,t,r){this.xpath=r.parse(e),this.context=new W,this.context.namespaceResolver=new ee(t)}function ee(e){this.xpathNSResolver=e}function te(e){this.node=e,this.namespaceResolver=new J}function re(e,t){switch(t==re.ANY_TYPE&&(e.constructor===V?t=re.STRING_TYPE:e.constructor===B?t=re.NUMBER_TYPE:e.constructor===H?t=re.BOOLEAN_TYPE:e.constructor===j&&(t=re.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=t,t){case re.NUMBER_TYPE:return void(this.numberValue=e.numberValue());case re.STRING_TYPE:return void(this.stringValue=e.stringValue());case re.BOOLEAN_TYPE:return void(this.booleanValue=e.booleanValue());case re.ANY_UNORDERED_NODE_TYPE:case re.FIRST_ORDERED_NODE_TYPE:if(e.constructor===j)return void(this.singleNodeValue=e.first());break;case re.UNORDERED_NODE_ITERATOR_TYPE:case re.ORDERED_NODE_ITERATOR_TYPE:if(e.constructor===j)return this.invalidIteratorState=!1,this.nodes=e.toArray(),void(this.iteratorIndex=0);break;case re.UNORDERED_NODE_SNAPSHOT_TYPE:case re.ORDERED_NODE_SNAPSHOT_TYPE:if(e.constructor===j)return this.nodes=e.toArray(),void(this.snapshotLength=this.nodes.length)}throw new Z(Z.TYPE_ERR)}function ne(e,t){e.createExpression=function(e,r){try{return new K(e,r,t)}catch(e){throw new Z(Z.INVALID_EXPRESSION_ERR,e)}},e.createNSResolver=function(e){return new te(e)},e.evaluate=function(r,n,o,i,s){if(i<0||i>9)throw{code:0,toString:function(){return"Request type not supported"}};return e.createExpression(r,o,t).evaluate(n,i,s)}}K.prototype={},K.prototype.constructor=K,K.superclass=Object.prototype,K.getOwnerDocument=function(e){return 9===e.nodeType?e:e.ownerDocument},K.detectHtmlDom=function(e){if(!e)return!1;var t=K.getOwnerDocument(e);try{return t.implementation.hasFeature("HTML","2.0")}catch(e){return!0}},K.prototype.evaluate=function(e,t,r){return this.context.expressionContextNode=e,this.context.caseInsensitive=K.detectHtmlDom(e),new re(this.xpath.evaluate(this.context),t)},ee.prototype={},ee.prototype.constructor=ee,ee.superclass=Object.prototype,ee.prototype.getNamespace=function(e,t){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(e)},te.prototype={},te.prototype.constructor=te,te.superclass=Object.prototype,te.prototype.lookupNamespaceURI=function(e){return this.namespaceResolver.getNamespace(e,this.node)},re.prototype={},re.prototype.constructor=re,re.superclass=Object.prototype,re.prototype.iterateNext=function(){if(this.resultType!=re.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=re.ORDERED_NODE_ITERATOR_TYPE)throw new Z(Z.TYPE_ERR);return this.nodes[this.iteratorIndex++]},re.prototype.snapshotItem=function(e){if(this.resultType!=re.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=re.ORDERED_NODE_SNAPSHOT_TYPE)throw new Z(Z.TYPE_ERR);return this.nodes[e]},re.ANY_TYPE=0,re.NUMBER_TYPE=1,re.STRING_TYPE=2,re.BOOLEAN_TYPE=3,re.UNORDERED_NODE_ITERATOR_TYPE=4,re.ORDERED_NODE_ITERATOR_TYPE=5,re.UNORDERED_NODE_SNAPSHOT_TYPE=6,re.ORDERED_NODE_SNAPSHOT_TYPE=7,re.ANY_UNORDERED_NODE_TYPE=8,re.FIRST_ORDERED_NODE_TYPE=9;try{var oe=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(oe=!1)}catch(e){}oe&&ne(document,new c)}catch(e){}ne(e,new c),function(){var t=new c,r=new J,n=new Q,o=new X;function i(e){return{getNamespace:function(t,n){return e(t,n)||r.getNamespace(t,n)}}}function s(e){if(null==e||e instanceof V||e instanceof H||e instanceof B||e instanceof j)return e;switch(typeof e){case"string":return new V(e);case"boolean":return new H(e);case"number":return new B(e)}var t=new j;return t.addArray([].concat(e)),t}function a(e){return{getFunction:function(t,r){var o=e(t,r);return o?function(e){return function(t){var r=Array.prototype.slice.call(arguments,1).map((function(e){return e.evaluate(t)}));return s(e.apply(this,[].concat(t,r)))}}(o):n.getFunction(t,r)}}}function u(e){return{getVariable:function(t,r){return s(e(t,r))}}}function l(e,t,r){e in r&&(t[e]=r[e])}function p(e){var t,s,c=new W;return e?(c.namespaceResolver=(t=e.namespaces)&&"function"==typeof t.getNamespace?i((s=t).getNamespace.bind(s)):"function"==typeof t?i(t):"object"==typeof t?function(e){return i((function(t){return e[t]}))}(t):r,c.functionResolver=function(e){return e&&"function"==typeof e.getFunction?a((t=e).getFunction.bind(t)):"function"==typeof e?a(e):"object"==typeof e?function(e){return a((function(t){return e[t]}))}(e):n;var t}(e.functions),c.variableResolver=function(e){if(e){if("function"==typeof e.getVariable)return u(e.getVariable.bind(e));if("function"==typeof e)return u(e);if("object"==typeof e)return u((function(t){return e[t]}))}return o}(e.variables),c.expressionContextNode=e.node,l("allowAnyNamespaceForNoPrefix",c,e),l("isHtml",c,e)):c.namespaceResolver=r,c}var h={evaluate:function(e){return function(e,t){var r=p(t);return e.evaluate(r)}(this.expression,e)},evaluateNumber:function(e){return this.evaluate(e).numberValue()},evaluateString:function(e){return this.evaluate(e).stringValue()},evaluateBoolean:function(e){return this.evaluate(e).booleanValue()},evaluateNodeSet:function(e){return this.evaluate(e).nodeset()},select:function(e){return this.evaluateNodeSet(e).toArray()},select1:function(e){return this.select(e)[0]}};e.parse=function(e){var r=t.parse(e);return Object.create(h,{expression:{value:r}})}}(),u(e,{XPath:l,XPathParser:c,XPathResult:re,Step:P,PathExpr:L,NodeTest:M,LocationPath:_,OrOperation:g,AndOperation:N,BarOperation:O,EqualsOperation:b,NotEqualOperation:y,LessThanOperation:E,GreaterThanOperation:v,LessThanOrEqualOperation:w,GreaterThanOrEqualOperation:T,PlusOperation:A,MinusOperation:S,MultiplyOperation:D,DivOperation:x,ModOperation:R,UnaryMinusOperation:d,FunctionCall:F,VariableReference:U,XPathContext:W,XNodeSet:j,XBoolean:H,XString:V,XNumber:B,NamespaceResolver:J,FunctionResolver:Q,VariableResolver:X,Utilities:$}),e.select=function(t,r,n){return e.selectWithResolver(t,r,null,n)},e.useNamespaces=function(t){var r={mappings:t||{},lookupNamespaceURI:function(e){return this.mappings[e]}};return function(t,n,o){return e.selectWithResolver(t,n,r,o)}},e.selectWithResolver=function(e,t,r,n){var o=new K(e,r,new c),i=re.ANY_TYPE,s=o.evaluate(t,i,null);return s.resultType==re.STRING_TYPE?s=s.stringValue:s.resultType==re.NUMBER_TYPE?s=s.numberValue:s.resultType==re.BOOLEAN_TYPE?s=s.booleanValue:(s=s.nodes,n&&(s=s[0])),s},e.select1=function(t,r){return e.select(t,r,!0)};var ie=function(e){return e&&"number"==typeof e.nodeType&&Number.isInteger(e.nodeType)&&e.nodeType>=1&&e.nodeType<=11&&"string"==typeof e.nodeName},se=function(e){return function(t){return ie(t)&&t.nodeType===e}};u(e,{isNodeLike:ie,isArrayOfNodes:function(e){return Array.isArray(e)&&e.every(ie)},isElement:se(1),isAttribute:se(2),isTextNode:se(3),isCDATASection:se(4),isProcessingInstruction:se(7),isComment:se(8),isDocumentNode:se(9),isDocumentTypeNode:se(10),isDocumentFragment:se(11)})}(t)}},t={};!function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(451)})();