talib-wasm
Version:
ta-lib.org package parsed with emscripten, that can be added to browser
1 lines • 3.76 MB
JavaScript
module.exports=function(A){var _={};function E(I){if(_[I])return _[I].exports;var t=_[I]={i:I,l:!1,exports:{}};return A[I].call(t.exports,t,t.exports,E),t.l=!0,t.exports}return E.m=A,E.c=_,E.d=function(A,_,I){E.o(A,_)||Object.defineProperty(A,_,{enumerable:!0,get:I})},E.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},E.t=function(A,_){if(1&_&&(A=E(A)),8&_)return A;if(4&_&&"object"==typeof A&&A&&A.__esModule)return A;var I=Object.create(null);if(E.r(I),Object.defineProperty(I,"default",{enumerable:!0,value:A}),2&_&&"string"!=typeof A)for(var t in A)E.d(I,t,function(_){return A[_]}.bind(null,t));return I},E.n=function(A){var _=A&&A.__esModule?function(){return A.default}:function(){return A};return E.d(_,"a",_),_},E.o=function(A,_){return Object.prototype.hasOwnProperty.call(A,_)},E.p="",E(E.s=30)}([function(A,_){(function(){A.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},function(A,_,E){(function(){var _,I,t,g,a,i,e,C,r,Q,B,l,o,s,c,n,N,S={}.hasOwnProperty;N=E(2),n=N.isObject,c=N.isFunction,s=N.isEmpty,o=N.getValue,C=null,t=null,g=null,a=null,i=null,B=null,l=null,Q=null,e=null,I=null,r=null,_=null,A.exports=function(){function A(A){this.parent=A,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,C||(C=E(6),t=E(8),g=E(9),a=E(10),i=E(11),B=E(16),l=E(17),Q=E(18),e=E(26),I=E(0),r=E(42),E(7),_=E(43))}return Object.defineProperty(A.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(A.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(A.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(A.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(A.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(A.prototype,"previousSibling",{get:function(){var A;return A=this.parent.children.indexOf(this),this.parent.children[A-1]||null}}),Object.defineProperty(A.prototype,"nextSibling",{get:function(){var A;return A=this.parent.children.indexOf(this),this.parent.children[A+1]||null}}),Object.defineProperty(A.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(A.prototype,"textContent",{get:function(){var A,_,E,t,g;if(this.nodeType===I.Element||this.nodeType===I.DocumentFragment){for(g="",_=0,E=(t=this.children).length;_<E;_++)(A=t[_]).textContent&&(g+=A.textContent);return g}return null},set:function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),A.prototype.setParent=function(A){var _,E,I,t,g;for(this.parent=A,A&&(this.options=A.options,this.stringify=A.stringify),g=[],E=0,I=(t=this.children).length;E<I;E++)_=t[E],g.push(_.setParent(this));return g},A.prototype.element=function(A,_,E){var I,t,g,a,i,e,C,r,Q,B,l;if(e=null,null===_&&null==E&&(_=(Q=[{},null])[0],E=Q[1]),null==_&&(_={}),_=o(_),n(_)||(E=(B=[_,E])[0],_=B[1]),null!=A&&(A=o(A)),Array.isArray(A))for(g=0,C=A.length;g<C;g++)t=A[g],e=this.element(t);else if(c(A))e=this.element(A.apply());else if(n(A)){for(i in A)if(S.call(A,i))if(l=A[i],c(l)&&(l=l.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===i.indexOf(this.stringify.convertAttKey))e=this.attribute(i.substr(this.stringify.convertAttKey.length),l);else if(!this.options.separateArrayItems&&Array.isArray(l)&&s(l))e=this.dummy();else if(n(l)&&s(l))e=this.element(i);else if(this.options.keepNullNodes||null!=l)if(!this.options.separateArrayItems&&Array.isArray(l))for(a=0,r=l.length;a<r;a++)t=l[a],(I={})[i]=t,e=this.element(I);else n(l)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===i.indexOf(this.stringify.convertTextKey)?e=this.element(l):(e=this.element(i)).element(l):e=this.element(i,l);else e=this.dummy()}else e=this.options.keepNullNodes||null!==E?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===A.indexOf(this.stringify.convertTextKey)?this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===A.indexOf(this.stringify.convertCDataKey)?this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===A.indexOf(this.stringify.convertCommentKey)?this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===A.indexOf(this.stringify.convertRawKey)?this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===A.indexOf(this.stringify.convertPIKey)?this.instruction(A.substr(this.stringify.convertPIKey.length),E):this.node(A,_,E):this.dummy();if(null==e)throw new Error("Could not create any elements with: "+A+". "+this.debugInfo());return e},A.prototype.insertBefore=function(A,_,E){var I,t,g,a,i;if(null!=A?A.type:void 0)return a=_,(g=A).setParent(this),a?(t=children.indexOf(a),i=children.splice(t),children.push(g),Array.prototype.push.apply(children,i)):children.push(g),g;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return t=this.parent.children.indexOf(this),i=this.parent.children.splice(t),I=this.parent.element(A,_,E),Array.prototype.push.apply(this.parent.children,i),I},A.prototype.insertAfter=function(A,_,E){var I,t,g;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return t=this.parent.children.indexOf(this),g=this.parent.children.splice(t+1),I=this.parent.element(A,_,E),Array.prototype.push.apply(this.parent.children,g),I},A.prototype.remove=function(){var A;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return A=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[A,A-A+1].concat([])),this.parent},A.prototype.node=function(A,_,E){var I,t;return null!=A&&(A=o(A)),_||(_={}),_=o(_),n(_)||(E=(t=[_,E])[0],_=t[1]),I=new C(this,A,_),null!=E&&I.text(E),this.children.push(I),I},A.prototype.text=function(A){var _;return n(A)&&this.element(A),_=new l(this,A),this.children.push(_),this},A.prototype.cdata=function(A){var _;return _=new t(this,A),this.children.push(_),this},A.prototype.comment=function(A){var _;return _=new g(this,A),this.children.push(_),this},A.prototype.commentBefore=function(A){var _,E;return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_),this.parent.comment(A),Array.prototype.push.apply(this.parent.children,E),this},A.prototype.commentAfter=function(A){var _,E;return _=this.parent.children.indexOf(this),E=this.parent.children.splice(_+1),this.parent.comment(A),Array.prototype.push.apply(this.parent.children,E),this},A.prototype.raw=function(A){var _;return _=new B(this,A),this.children.push(_),this},A.prototype.dummy=function(){return new e(this)},A.prototype.instruction=function(A,_){var E,I,t,g,a;if(null!=A&&(A=o(A)),null!=_&&(_=o(_)),Array.isArray(A))for(g=0,a=A.length;g<a;g++)E=A[g],this.instruction(E);else if(n(A))for(E in A)S.call(A,E)&&(I=A[E],this.instruction(E,I));else c(_)&&(_=_.apply()),t=new Q(this,A,_),this.children.push(t);return this},A.prototype.instructionBefore=function(A,_){var E,I;return E=this.parent.children.indexOf(this),I=this.parent.children.splice(E),this.parent.instruction(A,_),Array.prototype.push.apply(this.parent.children,I),this},A.prototype.instructionAfter=function(A,_){var E,I;return E=this.parent.children.indexOf(this),I=this.parent.children.splice(E+1),this.parent.instruction(A,_),Array.prototype.push.apply(this.parent.children,I),this},A.prototype.declaration=function(A,_,E){var t,g;return t=this.document(),g=new a(t,A,_,E),0===t.children.length?t.children.unshift(g):t.children[0].type===I.Declaration?t.children[0]=g:t.children.unshift(g),t.root()||t},A.prototype.dtd=function(A,_){var E,t,g,a,e,C,r,Q,B;for(E=this.document(),t=new i(E,A,_),g=a=0,C=(Q=E.children).length;a<C;g=++a)if(Q[g].type===I.DocType)return E.children[g]=t,t;for(g=e=0,r=(B=E.children).length;e<r;g=++e)if(B[g].isRoot)return E.children.splice(g,0,t),t;return E.children.push(t),t},A.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},A.prototype.root=function(){var A;for(A=this;A;){if(A.type===I.Document)return A.rootObject;if(A.isRoot)return A;A=A.parent}},A.prototype.document=function(){var A;for(A=this;A;){if(A.type===I.Document)return A;A=A.parent}},A.prototype.end=function(A){return this.document().end(A)},A.prototype.prev=function(){var A;if((A=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[A-1]},A.prototype.next=function(){var A;if(-1===(A=this.parent.children.indexOf(this))||A===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[A+1]},A.prototype.importDocument=function(A){var _;return(_=A.root().clone()).parent=this,_.isRoot=!1,this.children.push(_),this},A.prototype.debugInfo=function(A){var _,E;return null!=(A=A||this.name)||(null!=(_=this.parent)?_.name:void 0)?null==A?"parent: <"+this.parent.name+">":(null!=(E=this.parent)?E.name:void 0)?"node: <"+A+">, parent: <"+this.parent.name+">":"node: <"+A+">":""},A.prototype.ele=function(A,_,E){return this.element(A,_,E)},A.prototype.nod=function(A,_,E){return this.node(A,_,E)},A.prototype.txt=function(A){return this.text(A)},A.prototype.dat=function(A){return this.cdata(A)},A.prototype.com=function(A){return this.comment(A)},A.prototype.ins=function(A,_){return this.instruction(A,_)},A.prototype.doc=function(){return this.document()},A.prototype.dec=function(A,_,E){return this.declaration(A,_,E)},A.prototype.e=function(A,_,E){return this.element(A,_,E)},A.prototype.n=function(A,_,E){return this.node(A,_,E)},A.prototype.t=function(A){return this.text(A)},A.prototype.d=function(A){return this.cdata(A)},A.prototype.c=function(A){return this.comment(A)},A.prototype.r=function(A){return this.raw(A)},A.prototype.i=function(A,_){return this.instruction(A,_)},A.prototype.u=function(){return this.up()},A.prototype.importXMLBuilder=function(A){return this.importDocument(A)},A.prototype.replaceChild=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.removeChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.appendChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.hasChildNodes=function(){return 0!==this.children.length},A.prototype.cloneNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.isSupported=function(A,_){return!0},A.prototype.hasAttributes=function(){return 0!==this.attribs.length},A.prototype.compareDocumentPosition=function(A){var E;return this,this===A?0:this.document()!==A.document()?(E=_.Disconnected|_.ImplementationSpecific,Math.random()<.5?E|=_.Preceding:E|=_.Following,E):this.isAncestor(A)?_.Contains|_.Preceding:this.isDescendant(A)?_.Contains|_.Following:this.isPreceding(A)?_.Preceding:_.Following},A.prototype.isSameNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.lookupPrefix=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.isDefaultNamespace=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.lookupNamespaceURI=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.isEqualNode=function(A){var _,E,I;if(A.nodeType!==this.nodeType)return!1;if(A.children.length!==this.children.length)return!1;for(_=E=0,I=this.children.length-1;0<=I?E<=I:E>=I;_=0<=I?++E:--E)if(!this.children[_].isEqualNode(A.children[_]))return!1;return!0},A.prototype.getFeature=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.setUserData=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.getUserData=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},A.prototype.contains=function(A){return!!A&&(A===this||this.isDescendant(A))},A.prototype.isDescendant=function(A){var _,E,I,t;for(E=0,I=(t=this.children).length;E<I;E++){if(A===(_=t[E]))return!0;if(_.isDescendant(A))return!0}return!1},A.prototype.isAncestor=function(A){return A.isDescendant(this)},A.prototype.isPreceding=function(A){var _,E;return _=this.treePosition(A),E=this.treePosition(this),-1!==_&&-1!==E&&_<E},A.prototype.isFollowing=function(A){var _,E;return _=this.treePosition(A),E=this.treePosition(this),-1!==_&&-1!==E&&_>E},A.prototype.treePosition=function(A){var _,E;return E=0,_=!1,this.foreachTreeNode(this.document(),(function(I){if(E++,!_&&I===A)return _=!0})),_?E:-1},A.prototype.foreachTreeNode=function(A,_){var E,I,t,g,a;for(A||(A=this.document()),I=0,t=(g=A.children).length;I<t;I++){if(a=_(E=g[I]))return a;if(a=this.foreachTreeNode(E,_))return a}},A}()}).call(this)},function(A,_){(function(){var _,E,I,t,g,a,i,e=[].slice,C={}.hasOwnProperty;_=function(){var A,_,E,I,t,a;if(a=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],g(Object.assign))Object.assign.apply(null,arguments);else for(A=0,E=t.length;A<E;A++)if(null!=(I=t[A]))for(_ in I)C.call(I,_)&&(a[_]=I[_]);return a},g=function(A){return!!A&&"[object Function]"===Object.prototype.toString.call(A)},a=function(A){var _;return!!A&&("function"==(_=typeof A)||"object"===_)},I=function(A){return g(Array.isArray)?Array.isArray(A):"[object Array]"===Object.prototype.toString.call(A)},t=function(A){var _;if(I(A))return!A.length;for(_ in A)if(C.call(A,_))return!1;return!0},i=function(A){var _,E;return a(A)&&(E=Object.getPrototypeOf(A))&&(_=E.constructor)&&"function"==typeof _&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},E=function(A){return g(A.valueOf)?A.valueOf():A},A.exports.assign=_,A.exports.isFunction=g,A.exports.isObject=a,A.exports.isArray=I,A.exports.isEmpty=t,A.exports.isPlainObject=i,A.exports.getValue=E}).call(this)},function(A,_,E){(function(){var _,I={}.hasOwnProperty;_=E(1),A.exports=function(A){function _(A){_.__super__.constructor.call(this,A),this.value=""}return function(A,_){for(var E in _)I.call(_,E)&&(A[E]=_[E]);function t(){this.constructor=A}t.prototype=_.prototype,A.prototype=new t,A.__super__=_.prototype}(_,A),Object.defineProperty(_.prototype,"data",{get:function(){return this.value},set:function(A){return this.value=A||""}}),Object.defineProperty(_.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return this.value},set:function(A){return this.value=A||""}}),_.prototype.clone=function(){return Object.create(this)},_.prototype.substringData=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.appendData=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.insertData=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.deleteData=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.replaceData=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},_.prototype.isEqualNode=function(A){return!!_.__super__.isEqualNode.apply(this,arguments).isEqualNode(A)&&A.data===this.data},_}(_)}).call(this)},function(A,_){(function(){A.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},function(A,_){(function(){_.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},function(A,_,E){(function(){var _,I,t,g,a,i,e,C,r={}.hasOwnProperty;C=E(2),e=C.isObject,i=C.isFunction,a=C.getValue,g=E(1),_=E(0),I=E(25),t=E(7),A.exports=function(A){function E(A,I,t){var g,a,i,e;if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(I),this.type=_.Element,this.attribs={},this.schemaTypeInfo=null,null!=t&&this.attribute(t),A.type===_.Document&&(this.isRoot=!0,this.documentObject=A,A.rootObject=this,A.children))for(a=0,i=(e=A.children).length;a<i;a++)if((g=e[a]).type===_.DocType){g.name=this.name;break}}return function(A,_){for(var E in _)r.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(E.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(E.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(E.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(E.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new t(this.attribs)),this.attributeMap}}),E.prototype.clone=function(){var A,_,E,I;for(_ in(E=Object.create(this)).isRoot&&(E.documentObject=null),E.attribs={},I=this.attribs)r.call(I,_)&&(A=I[_],E.attribs[_]=A.clone());return E.children=[],this.children.forEach((function(A){var _;return(_=A.clone()).parent=E,E.children.push(_)})),E},E.prototype.attribute=function(A,_){var E,t;if(null!=A&&(A=a(A)),e(A))for(E in A)r.call(A,E)&&(t=A[E],this.attribute(E,t));else i(_)&&(_=_.apply()),this.options.keepNullAttributes&&null==_?this.attribs[A]=new I(this,A,""):null!=_&&(this.attribs[A]=new I(this,A,_));return this},E.prototype.removeAttribute=function(A){var _,E,I;if(null==A)throw new Error("Missing attribute name. "+this.debugInfo());if(A=a(A),Array.isArray(A))for(E=0,I=A.length;E<I;E++)_=A[E],delete this.attribs[_];else delete this.attribs[A];return this},E.prototype.toString=function(A){return this.options.writer.element(this,this.options.writer.filterOptions(A))},E.prototype.att=function(A,_){return this.attribute(A,_)},E.prototype.a=function(A,_){return this.attribute(A,_)},E.prototype.getAttribute=function(A){return this.attribs.hasOwnProperty(A)?this.attribs[A].value:null},E.prototype.setAttribute=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getAttributeNode=function(A){return this.attribs.hasOwnProperty(A)?this.attribs[A]:null},E.prototype.setAttributeNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.removeAttributeNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getAttributeNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.setAttributeNS=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.removeAttributeNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getAttributeNodeNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.setAttributeNodeNS=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagNameNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.hasAttribute=function(A){return this.attribs.hasOwnProperty(A)},E.prototype.hasAttributeNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.setIdAttribute=function(A,_){return this.attribs.hasOwnProperty(A)?this.attribs[A].isId:_},E.prototype.setIdAttributeNS=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.setIdAttributeNode=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagNameNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByClassName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.isEqualNode=function(A){var _,I,t;if(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(A))return!1;if(A.namespaceURI!==this.namespaceURI)return!1;if(A.prefix!==this.prefix)return!1;if(A.localName!==this.localName)return!1;if(A.attribs.length!==this.attribs.length)return!1;for(_=I=0,t=this.attribs.length-1;0<=t?I<=t:I>=t;_=0<=t?++I:--I)if(!this.attribs[_].isEqualNode(A.attribs[_]))return!1;return!0},E}(g)}).call(this)},function(A,_){(function(){A.exports=function(){function A(A){this.nodes=A}return Object.defineProperty(A.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),A.prototype.clone=function(){return this.nodes=null},A.prototype.getNamedItem=function(A){return this.nodes[A]},A.prototype.setNamedItem=function(A){var _;return _=this.nodes[A.nodeName],this.nodes[A.nodeName]=A,_||null},A.prototype.removeNamedItem=function(A){var _;return _=this.nodes[A],delete this.nodes[A],_||null},A.prototype.item=function(A){return this.nodes[Object.keys(this.nodes)[A]]||null},A.prototype.getNamedItemNS=function(A,_){throw new Error("This DOM method is not implemented.")},A.prototype.setNamedItemNS=function(A){throw new Error("This DOM method is not implemented.")},A.prototype.removeNamedItemNS=function(A,_){throw new Error("This DOM method is not implemented.")},A}()}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;_=E(0),I=E(3),A.exports=function(A){function E(A,I){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=_.CData,this.value=this.stringify.cdata(I)}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return this.options.writer.cdata(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;_=E(0),I=E(3),A.exports=function(A){function E(A,I){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=_.Comment,this.value=this.stringify.comment(I)}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return this.options.writer.comment(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t,g={}.hasOwnProperty;t=E(2).isObject,I=E(1),_=E(0),A.exports=function(A){function E(A,I,g,a){var i;E.__super__.constructor.call(this,A),t(I)&&(I=(i=I).version,g=i.encoding,a=i.standalone),I||(I="1.0"),this.type=_.Declaration,this.version=this.stringify.xmlVersion(I),null!=g&&(this.encoding=this.stringify.xmlEncoding(g)),null!=a&&(this.standalone=this.stringify.xmlStandalone(a))}return function(A,_){for(var E in _)g.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.toString=function(A){return this.options.writer.declaration(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t,g,a,i,e,C,r={}.hasOwnProperty;C=E(2).isObject,e=E(1),_=E(0),I=E(12),g=E(13),t=E(14),a=E(15),i=E(7),A.exports=function(A){function E(A,I,t){var g,a,i,e,r,Q;if(E.__super__.constructor.call(this,A),this.type=_.DocType,A.children)for(a=0,i=(e=A.children).length;a<i;a++)if((g=e[a]).type===_.Element){this.name=g.name;break}this.documentObject=A,C(I)&&(I=(r=I).pubID,t=r.sysID),null==t&&(t=(Q=[I,t])[0],I=Q[1]),null!=I&&(this.pubID=this.stringify.dtdPubID(I)),null!=t&&(this.sysID=this.stringify.dtdSysID(t))}return function(A,_){for(var E in _)r.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"entities",{get:function(){var A,E,I,t,g;for(t={},E=0,I=(g=this.children).length;E<I;E++)(A=g[E]).type!==_.EntityDeclaration||A.pe||(t[A.name]=A);return new i(t)}}),Object.defineProperty(E.prototype,"notations",{get:function(){var A,E,I,t,g;for(t={},E=0,I=(g=this.children).length;E<I;E++)(A=g[E]).type===_.NotationDeclaration&&(t[A.name]=A);return new i(t)}}),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(E.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),E.prototype.element=function(A,_){var E;return E=new t(this,A,_),this.children.push(E),this},E.prototype.attList=function(A,_,E,t,g){var a;return a=new I(this,A,_,E,t,g),this.children.push(a),this},E.prototype.entity=function(A,_){var E;return E=new g(this,!1,A,_),this.children.push(E),this},E.prototype.pEntity=function(A,_){var E;return E=new g(this,!0,A,_),this.children.push(E),this},E.prototype.notation=function(A,_){var E;return E=new a(this,A,_),this.children.push(E),this},E.prototype.toString=function(A){return this.options.writer.docType(this,this.options.writer.filterOptions(A))},E.prototype.ele=function(A,_){return this.element(A,_)},E.prototype.att=function(A,_,E,I,t){return this.attList(A,_,E,I,t)},E.prototype.ent=function(A,_){return this.entity(A,_)},E.prototype.pent=function(A,_){return this.pEntity(A,_)},E.prototype.not=function(A,_){return this.notation(A,_)},E.prototype.up=function(){return this.root()||this.documentObject},E.prototype.isEqualNode=function(A){return!!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(A)&&(A.name===this.name&&(A.publicId===this.publicId&&A.systemId===this.systemId))},E}(e)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;I=E(1),_=E(0),A.exports=function(A){function E(A,I,t,g,a,i){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==t)throw new Error("Missing DTD attribute name. "+this.debugInfo(I));if(!g)throw new Error("Missing DTD attribute type. "+this.debugInfo(I));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(I));if(0!==a.indexOf("#")&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(I));if(i&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(I));this.elementName=this.stringify.name(I),this.type=_.AttributeDeclaration,this.attributeName=this.stringify.name(t),this.attributeType=this.stringify.dtdAttType(g),i&&(this.defaultValue=this.stringify.dtdAttDefault(i)),this.defaultValueType=a}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.toString=function(A){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t,g={}.hasOwnProperty;t=E(2).isObject,I=E(1),_=E(0),A.exports=function(A){function E(A,I,g,a){if(E.__super__.constructor.call(this,A),null==g)throw new Error("Missing DTD entity name. "+this.debugInfo(g));if(null==a)throw new Error("Missing DTD entity value. "+this.debugInfo(g));if(this.pe=!!I,this.name=this.stringify.name(g),this.type=_.EntityDeclaration,t(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(g));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(g));if(this.internal=!1,null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(g))}else this.value=this.stringify.dtdEntityValue(a),this.internal=!0}return function(A,_){for(var E in _)g.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(E.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(E.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"xmlVersion",{get:function(){return null}}),E.prototype.toString=function(A){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;I=E(1),_=E(0),A.exports=function(A){function E(A,I,t){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing DTD element name. "+this.debugInfo());t||(t="(#PCDATA)"),Array.isArray(t)&&(t="("+t.join(",")+")"),this.name=this.stringify.name(I),this.type=_.ElementDeclaration,this.value=this.stringify.dtdElementValue(t)}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.toString=function(A){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;I=E(1),_=E(0),A.exports=function(A){function E(A,I,t){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing DTD notation name. "+this.debugInfo(I));if(!t.pubID&&!t.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(I));this.name=this.stringify.name(I),this.type=_.NotationDeclaration,null!=t.pubID&&(this.pubID=this.stringify.dtdPubID(t.pubID)),null!=t.sysID&&(this.sysID=this.stringify.dtdSysID(t.sysID))}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(A){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;_=E(0),I=E(1),A.exports=function(A){function E(A,I){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing raw text. "+this.debugInfo());this.type=_.Raw,this.value=this.stringify.raw(I)}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return this.options.writer.raw(this,this.options.writer.filterOptions(A))},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;_=E(0),I=E(3),A.exports=function(A){function E(A,I){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=_.Text,this.value=this.stringify.text(I)}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"wholeText",{get:function(){var A,_,E;for(E="",_=this.previousSibling;_;)E=_.data+E,_=_.previousSibling;for(E+=this.data,A=this.nextSibling;A;)E+=A.data,A=A.nextSibling;return E}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return this.options.writer.text(this,this.options.writer.filterOptions(A))},E.prototype.splitText=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(I)}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;_=E(0),I=E(3),A.exports=function(A){function E(A,I,t){if(E.__super__.constructor.call(this,A),null==I)throw new Error("Missing instruction target. "+this.debugInfo());this.type=_.ProcessingInstruction,this.target=this.stringify.insTarget(I),this.name=this.target,t&&(this.value=this.stringify.insValue(t))}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(A))},E.prototype.isEqualNode=function(A){return!!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(A)&&A.target===this.target},E}(I)}).call(this)},function(A,_,E){(function(){var _,I={}.hasOwnProperty;_=E(28),A.exports=function(A){function _(A){_.__super__.constructor.call(this,A)}return function(A,_){for(var E in _)I.call(_,E)&&(A[E]=_[E]);function t(){this.constructor=A}t.prototype=_.prototype,A.prototype=new t,A.__super__=_.prototype}(_,A),_.prototype.document=function(A,_){var E,I,t,g,a;for(_=this.filterOptions(_),g="",I=0,t=(a=A.children).length;I<t;I++)E=a[I],g+=this.writeChildNode(E,_,0);return _.pretty&&g.slice(-_.newline.length)===_.newline&&(g=g.slice(0,-_.newline.length)),g},_}(_)}).call(this)},function(A,_){A.exports=require("path")},function(A,_){A.exports=require("fs")},function(A,_){A.exports=require("")},function(A,_){(function(){A.exports=function(){function A(){}return A.prototype.hasFeature=function(A,_){return!0},A.prototype.createDocumentType=function(A,_,E){throw new Error("This DOM method is not implemented.")},A.prototype.createDocument=function(A,_,E){throw new Error("This DOM method is not implemented.")},A.prototype.createHTMLDocument=function(A){throw new Error("This DOM method is not implemented.")},A.prototype.getFeature=function(A,_){throw new Error("This DOM method is not implemented.")},A}()}).call(this)},function(A,_,E){(function(){var _,I,t,g,a,i,e,C={}.hasOwnProperty;e=E(2).isPlainObject,t=E(23),I=E(39),g=E(1),_=E(0),i=E(27),a=E(19),A.exports=function(A){function E(A){E.__super__.constructor.call(this,null),this.name="#document",this.type=_.Document,this.documentURI=null,this.domConfig=new I,A||(A={}),A.writer||(A.writer=new a),this.options=A,this.stringify=new i(A)}return function(A,_){for(var E in _)C.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),Object.defineProperty(E.prototype,"implementation",{value:new t}),Object.defineProperty(E.prototype,"doctype",{get:function(){var A,E,I,t;for(E=0,I=(t=this.children).length;E<I;E++)if((A=t[E]).type===_.DocType)return A;return null}}),Object.defineProperty(E.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(E.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(E.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===_.Declaration?this.children[0].encoding:null}}),Object.defineProperty(E.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===_.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(E.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===_.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(E.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(E.prototype,"origin",{get:function(){return null}}),Object.defineProperty(E.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(E.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(E.prototype,"contentType",{get:function(){return null}}),E.prototype.end=function(A){var _;return _={},A?e(A)&&(_=A,A=this.options.writer):A=this.options.writer,A.document(this,A.filterOptions(_))},E.prototype.toString=function(A){return this.options.writer.document(this,this.options.writer.filterOptions(A))},E.prototype.createElement=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createTextNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createComment=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createCDATASection=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createProcessingInstruction=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createAttribute=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createEntityReference=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.importNode=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createElementNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createAttributeNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagNameNS=function(A,_){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementById=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.adoptNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.renameNode=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByClassName=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createEvent=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createNodeIterator=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createTreeWalker=function(A,_,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(g)}).call(this)},function(A,_,E){(function(){var _;_=E(0),E(1),A.exports=function(){function A(A,E,I){if(this.parent=A,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==E)throw new Error("Missing attribute name. "+this.debugInfo(E));this.name=this.stringify.name(E),this.value=this.stringify.attValue(I),this.type=_.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(A.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(A.prototype,"textContent",{get:function(){return this.value},set:function(A){return this.value=A||""}}),Object.defineProperty(A.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(A.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(A.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"specified",{get:function(){return!0}}),A.prototype.clone=function(){return Object.create(this)},A.prototype.toString=function(A){return this.options.writer.attribute(this,this.options.writer.filterOptions(A))},A.prototype.debugInfo=function(A){return null==(A=A||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+A+"}, parent: <"+this.parent.name+">"},A.prototype.isEqualNode=function(A){return A.namespaceURI===this.namespaceURI&&(A.prefix===this.prefix&&(A.localName===this.localName&&A.value===this.value))},A}()}).call(this)},function(A,_,E){(function(){var _,I,t={}.hasOwnProperty;I=E(1),_=E(0),A.exports=function(A){function E(A){E.__super__.constructor.call(this,A),this.type=_.Dummy}return function(A,_){for(var E in _)t.call(_,E)&&(A[E]=_[E]);function I(){this.constructor=A}I.prototype=_.prototype,A.prototype=new I,A.__super__=_.prototype}(E,A),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(A){return""},E}(I)}).call(this)},function(A,_){(function(){var _=function(A,_){return function(){return A.apply(_,arguments)}},E={}.hasOwnProperty;A.exports=function(){function A(A){var I,t,g;for(I in this.assertLegalName=_(this.assertLegalName,this),this.assertLegalChar=_(this.assertLegalChar,this),A||(A={}),this.options=A,this.options.version||(this.options.version="1.0"),t=A.stringify||{})E.call(t,I)&&(g=t[I],this[I]=g)}return A.prototype.name=function(A){return this.options.noValidation?A:this.assertLegalName(""+A||"")},A.prototype.text=function(A){return this.options.noValidation?A:this.assertLegalChar(this.textEscape(""+A||""))},A.prototype.cdata=function(A){return this.options.noValidation?A:(A=(A=""+A||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(A))},A.prototype.comment=function(A){if(this.options.noValidation)return A;if((A=""+A||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+A);return this.assertLegalChar(A)},A.prototype.raw=function(A){return this.options.noValidation?A:""+A||""},A.prototype.attValue=function(A){return this.options.noValidation?A:this.assertLegalChar(this.attEscape(A=""+A||""))},A.prototype.insTarget=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.insValue=function(A){if(this.options.noValidation)return A;if((A=""+A||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+A);return this.assertLegalChar(A)},A.prototype.xmlVersion=function(A){if(this.options.noValidation)return A;if(!(A=""+A||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+A);return A},A.prototype.xmlEncoding=function(A){if(this.options.noValidation)return A;if(!(A=""+A||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+A);return this.assertLegalChar(A)},A.prototype.xmlStandalone=function(A){return this.options.noValidation?A:A?"yes":"no"},A.prototype.dtdPubID=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdSysID=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdElementValue=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdAttType=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdAttDefault=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdEntityValue=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.dtdNData=function(A){return this.options.noValidation?A:this.assertLegalChar(""+A||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(A){var _,E;if(this.options.noValidation)return A;if(_="","1.0"===this.options.version){if(_=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=A.match(_))throw new Error("Invalid character in string: "+A+" at index "+E.index)}else if("1.1"===this.options.version&&(_=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=A.match(_)))throw new Error("Invalid character in string: "+A+" at index "+E.index);return A},A.prototype.assertLegalName=function(A){var _;if(this.options.noValidation)return A;if(this.assertLegalChar(A),_=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!A.match(_))throw new Error("Invalid character in name");return A},A.prototype.textEscape=function(A){var _;return this.options.noValidation?A:(_=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,A.replace(_,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},A.prototype.attEscape=function(A){var _;return this.options.noValidation?A:(_=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,A.replace(_,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},A}()}).call(this)},function(A,_,E){(function(){var _,I,t,g={}.hasOwnProperty;t=E(2).assign,_=E(0),E(10),E(11),E(8),E(9),E(6),E(16),E(17),E(18),E(26),E(12),E(14),E(13),E(15),I=E(4),A.exports=function(){function A(A){var _,E,I;for(_ in A||(A={}),this.options=A,E=A.writer||{})g.call(E,_)&&(I=E[_],this["_"+_]=this[_],this[_]=I)}return A.prototype.filterOptions=function(A){var _,E,g,a,i,e,C,r;return A||(A={}),A=t({},this.options,A),(_={writer:this}).pretty=A.pretty||!1,_.allowEmpty=A.allowEmpty||!1,_.indent=null!=(E=A.indent)?E:" ",_.newline=null!=(g=A.newline)?g:"\n",_.offset=null!=(a=A.offset)?a:0,_.dontPrettyTextNodes=null!=(i=null!=(e=A.dontPrettyTextNodes)?e:A.dontprettytextnodes)?i:0,_.spaceBeforeSlash=null!=(C=null!=(r=A.spaceBeforeSlash)?r:A.spacebeforeslash)?C:"",!0===_.spaceBeforeSlash&&(_.spaceBeforeSlash=" "),_.suppressPrettyCount=0,_.user={},_.state=I.None,_},A.prototype.indent=function(A,_,E){var I;return!_.pretty||_.suppressPrettyCount?"":_.pretty&&(I=(E||0)+_.offset+1)>0?new Array(I).join(_.indent):""},A.prototype.endline=function(A,_,E){return!_.pretty||_.suppressPrettyCount?"":_.newline},A.prototype.attribute=function(A,_,E){var I;return this.openAttribute(A,_,E),I=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,_,E),I},A.prototype.cdata=function(A,_,E){var t;return this.openNode(A,_,E),_.state=I.OpenTag,t=this.indent(A,_,E)+"<![CDATA[",_.state=I.InsideTag,t+=A.value,_.state=I.CloseTag,t+="]]>"+this.endline(A,_,E),_.state=I.None,this.closeNode(A,_,E),t},A.prototype.comment=function(A,_,E){var t;return this.openNode(A,_,E),_.state=I.OpenTag,t=this.indent(A,_,E)+"\x3c!-- ",_.state=I.InsideTag,t+=A.value,_.state=I.CloseTag,t+=" --\x3e"+this.endline(A,_,E),_.state=I.None,this.closeNode(A,_,E),t},A.prototype.declaration=function(A,_,E){var t;return this.openNode(A,_,E),_.state=I.OpenTag,t=this.indent(A,_,E)+"<?xml",_.state=I.InsideTag,t+=' version="'+A.version+'"',null!=A.encoding&&(t+=' encoding="'+A.encoding+'"'),null!=A.standalone&&(t+=' standalo