zs-extract
Version:
Zippyshare download data extractor
11 lines (9 loc) • 30.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WINDOW = void 0;
// This file contains compile-time defined variables.
const WINDOW = "function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=1)}([function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(!(r instanceof t)){function i(){}i.prototype=t.prototype,n(r,i=new i),e.prototype=r=i}r.constructor!=e&&(\"function\"!=typeof e&&console.error(\"unknow Class:\"+e),r.constructor=e)}var i={},a=i.ELEMENT_NODE=1,o=i.ATTRIBUTE_NODE=2,u=i.TEXT_NODE=3,s=i.CDATA_SECTION_NODE=4,c=i.ENTITY_REFERENCE_NODE=5,l=i.ENTITY_NODE=6,d=i.PROCESSING_INSTRUCTION_NODE=7,m=i.COMMENT_NODE=8,p=i.DOCUMENT_NODE=9,f=i.DOCUMENT_TYPE_NODE=10,h=i.DOCUMENT_FRAGMENT_NODE=11,g=i.NOTATION_NODE=12,N={},v={},w=(N.INDEX_SIZE_ERR=(v[1]=\"Index size error\",1),N.DOMSTRING_SIZE_ERR=(v[2]=\"DOMString size error\",2),N.HIERARCHY_REQUEST_ERR=(v[3]=\"Hierarchy request error\",3)),b=(N.WRONG_DOCUMENT_ERR=(v[4]=\"Wrong document\",4),N.INVALID_CHARACTER_ERR=(v[5]=\"Invalid character\",5),N.NO_DATA_ALLOWED_ERR=(v[6]=\"No data allowed\",6),N.NO_MODIFICATION_ALLOWED_ERR=(v[7]=\"No modification allowed\",7),N.NOT_FOUND_ERR=(v[8]=\"Not found\",8)),E=(N.NOT_SUPPORTED_ERR=(v[9]=\"Not supported\",9),N.INUSE_ATTRIBUTE_ERR=(v[10]=\"Attribute in use\",10));N.INVALID_STATE_ERR=(v[11]=\"Invalid state\",11),N.SYNTAX_ERR=(v[12]=\"Syntax error\",12),N.INVALID_MODIFICATION_ERR=(v[13]=\"Invalid modification\",13),N.NAMESPACE_ERR=(v[14]=\"Invalid namespace\",14),N.INVALID_ACCESS_ERR=(v[15]=\"Invalid access\",15);function y(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,y);return n.code=e,t&&(this.message=this.message+\": \"+t),n}function x(){}function D(e,t){this._node=e,this._refresh=t,T(this)}function T(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,\"length\",r.length),n(r,e),e._inc=t}}function S(){}function C(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function I(e,t,n,r){if(r?t[C(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&F(i,e,r),function(e,t,n){e&&e._inc++,\"http://www.w3.org/2000/xmlns/\"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:\"\"]=n.value)}(i,e,n))}}function A(e,t,n){var r=C(t,n);if(!(r>=0))throw y(b,new Error(e.tagName+\"@\"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var a=e.ownerDocument;a&&(F(a,e,n),n.ownerElement=null)}}function _(e){if(this._features={},e)for(var t in e)this._features=e[t]}function O(){}function R(e){return(\"<\"==e?\"<\":\">\"==e&&\">\")||\"&\"==e&&\"&\"||'\"'==e&&\""\"||\"&#\"+e.charCodeAt()+\";\"}function M(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(M(e,t))return!0}while(e=e.nextSibling)}function U(){}function F(e,t,n,r){e&&e._inc++,\"http://www.w3.org/2000/xmlns/\"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:\"\"]}function P(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,a=0;i;)r[a++]=i,i=i.nextSibling;r.length=a}}}function k(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,P(e.ownerDocument,e),t}function L(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===h){var i=t.firstChild;if(null==i)return t;var a=t.lastChild}else i=a=t;var o=n?n.previousSibling:e.lastChild;i.previousSibling=o,a.nextSibling=n,o?o.nextSibling=i:e.firstChild=i,null==n?e.lastChild=a:n.previousSibling=a;do{i.parentNode=e}while(i!==a&&(i=i.nextSibling));return P(e.ownerDocument||e,e),t.nodeType==h&&(t.firstChild=t.lastChild=null),t}function q(){this._nsMap={}}function B(){}function $(){}function j(){}function V(){}function z(){}function X(){}function H(){}function Y(){}function G(){}function W(){}function Z(){}function Q(){}function K(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,a=r.namespaceURI;if(a&&null==i&&null==(i=r.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ee(this,n,e,t,o),n.join(\"\")}function J(e,t,n){var r=e.prefix||\"\",i=e.namespaceURI;if(!r&&!i)return!1;if(\"xml\"===r&&\"http://www.w3.org/XML/1998/namespace\"===i||\"http://www.w3.org/2000/xmlns/\"==i)return!1;for(var a=n.length;a--;){var o=n[a];if(o.prefix==r)return o.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if(\"string\"==typeof e)return void t.push(e)}switch(e.nodeType){case a:i||(i=[]);i.length;var l=e.attributes,g=l.length,N=e.firstChild,v=e.tagName;n=\"http://www.w3.org/1999/xhtml\"===e.namespaceURI||n,t.push(\"<\",v);for(var w=0;w<g;w++){\"xmlns\"==(b=l.item(w)).prefix?i.push({prefix:b.localName,namespace:b.value}):\"xmlns\"==b.nodeName&&i.push({prefix:\"\",namespace:b.value})}for(w=0;w<g;w++){var b;if(J(b=l.item(w),0,i)){var E=b.prefix||\"\",y=b.namespaceURI,x=E?\" xmlns:\"+E:\" xmlns\";t.push(x,'=\"',y,'\"'),i.push({prefix:E,namespace:y})}ee(b,t,n,r,i)}if(J(e,0,i)){E=e.prefix||\"\",y=e.namespaceURI,x=E?\" xmlns:\"+E:\" xmlns\";t.push(x,'=\"',y,'\"'),i.push({prefix:E,namespace:y})}if(N||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(\">\"),n&&/^script$/i.test(v))for(;N;)N.data?t.push(N.data):ee(N,t,n,r,i),N=N.nextSibling;else for(;N;)ee(N,t,n,r,i),N=N.nextSibling;t.push(\"</\",v,\">\")}else t.push(\"/>\");return;case p:case h:for(N=e.firstChild;N;)ee(N,t,n,r,i),N=N.nextSibling;return;case o:return t.push(\" \",e.name,'=\"',e.value.replace(/[<&\"]/g,R),'\"');case u:return t.push(e.data.replace(/[<&]/g,R));case s:return t.push(\"<![CDATA[\",e.data,\"]]>\");case m:return t.push(\"\\x3c!--\",e.data,\"--\\x3e\");case f:var D=e.publicId,T=e.systemId;if(t.push(\"<!DOCTYPE \",e.name),D)t.push(' PUBLIC \"',D),T&&\".\"!=T&&t.push('\" \"',T),t.push('\">');else if(T&&\".\"!=T)t.push(' SYSTEM \"',T,'\">');else{var S=e.internalSubset;S&&t.push(\" [\",S,\"]\"),t.push(\">\")}return;case d:return t.push(\"<?\",e.target,\" \",e.data,\"?>\");case c:return t.push(\"&\",e.nodeName,\";\");default:t.push(\"??\",e.nodeName)}}function te(e,t,n){e[t]=n}y.prototype=Error.prototype,n(N,y),x.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ee(this[r],n,e,t);return n.join(\"\")}},D.prototype.item=function(e){return T(this),this[e]},r(D,x),S.prototype={length:0,item:x.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new y(E);var n=this.getNamedItem(e.nodeName);return I(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new y(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),I(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},_.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new U;if(r.implementation=this,r.childNodes=new x,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new X;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},O.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 L(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return k(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var u in n){var s=n[u];\"object\"!=typeof s&&s!=i[u]&&(i[u]=s)}n.childNodes&&(i.childNodes=new x);switch(i.ownerDocument=t,i.nodeType){case a:var c=n.attributes,l=i.attributes=new S,d=c.length;l._ownerElement=i;for(var m=0;m<d;m++)i.setAttributeNode(e(t,c.item(m),!0));break;case o:r=!0}if(r)for(var p=n.firstChild;p;)i.appendChild(e(t,p,r)),p=p.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==u&&e.nodeType==u?(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 n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==o?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==o?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,O),n(i,O.prototype),U.prototype={nodeName:\"#document\",nodeType:p,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==h){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==a&&(this.documentElement=e),L(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),k(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case a:(i=n.cloneNode(!1)).ownerDocument=t;case h:break;case o:r=!0}i||(i=n.cloneNode(!1));if(i.ownerDocument=t,i.parentNode=null,r)for(var u=n.firstChild;u;)i.appendChild(e(t,u,r)),u=u.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return M(this.documentElement,(function(n){if(n.nodeType==a&&n.getAttribute(\"id\")==e)return t=n,!0})),t},getElementsByClassName:function(e){const t=new RegExp(`(^|\\\\s)${e}(\\\\s|$)`);return new D(this,e=>{var n=[];return M(e.documentElement,r=>{r!==e&&r.nodeType==a&&t.test(r.getAttribute(\"class\"))&&n.push(r)}),n})},createElement:function(e){var t=new q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new x,(t.attributes=new S)._ownerElement=t,t},createDocumentFragment:function(){var e=new W;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new j;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new G;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new q,r=t.split(\":\"),i=n.attributes=new S;return n.childNodes=new x,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new B,r=t.split(\":\");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(U,O),q.prototype={nodeType:a,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 n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=\"\"+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===h?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,P(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 n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||\"\"},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=\"\"+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new D(this,(function(t){var n=[];return M(t,(function(r){r===t||r.nodeType!=a||\"*\"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new D(this,(function(n){var r=[];return M(n,(function(i){i===n||i.nodeType!==a||\"*\"!==e&&i.namespaceURI!==e||\"*\"!==t&&i.localName!=t||r.push(i)})),r}))}},U.prototype.getElementsByTagName=q.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,r(q,O),B.prototype.nodeType=o,r(B,O),$.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(v[w])},deleteData:function(e,t){this.replaceData(e,t,\"\")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r($,O),j.prototype={nodeName:\"#text\",nodeType:u,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(j,$),V.prototype={nodeName:\"#comment\",nodeType:m},r(V,$),z.prototype={nodeName:\"#cdata-section\",nodeType:s},r(z,$),X.prototype.nodeType=f,r(X,O),H.prototype.nodeType=g,r(H,O),Y.prototype.nodeType=l,r(Y,O),G.prototype.nodeType=c,r(G,O),W.prototype.nodeName=\"#document-fragment\",W.prototype.nodeType=h,r(W,O),Z.prototype.nodeType=d,r(Z,O),Q.prototype.serializeToString=function(e,t,n){return K.call(e,t,n)},O.prototype.toString=K;try{if(Object.defineProperty){Object.defineProperty(D.prototype,\"length\",{get:function(){return T(this),this.$$length}}),Object.defineProperty(O.prototype,\"textContent\",{get:function(){return function e(t){switch(t.nodeType){case a:case h:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join(\"\");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case a:case h: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}}}),te=function(e,t,n){e[\"$$\"+t]=n}}}catch(e){}t.Node=O,t.DOMImplementation=_,t.XMLSerializer=Q},function(e,t,n){\"use strict\";var r=n(2),i=function(){};e.exports=function(e,t){e.window=e,e.self=e,e.top=e,e.parent=e;var n=new r.DOMParser({errorHandler:{warning:i,error:i,fatalError:i}}).parseFromString(t,\"text/html\");e.document=n}},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function a(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function o(e){if(e)return\"\\n@\"+(e.systemId||\"\")+\"#[line:\"+e.lineNumber+\",col:\"+e.columnNumber+\"]\"}function u(e,t,n){return\"string\"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+\"\":e}function s(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new l,a=n.domBuilder||new i,u=n.errorHandler,s=n.locator,d=n.xmlns||{},m=/\\/x?html?$/.test(t),p=m?c.entityMap:{lt:\"<\",gt:\">\",amp:\"&\",quot:'\"',apos:\"'\"};return s&&a.setDocumentLocator(s),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},a=e instanceof Function;function u(t){var i=e[t];!i&&a&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i(\"[xmldom \"+t+\"]\\t\"+e+o(n))}||function(){}}return n=n||{},u(\"warning\"),u(\"error\"),u(\"fatalError\"),r}(u,a,s),r.domBuilder=n.domBuilder||a,m&&(d[\"\"]=\"http://www.w3.org/1999/xhtml\"),d.xml=d.xml||\"http://www.w3.org/XML/1998/namespace\",e?r.parse(e,d,p):r.errorHandler.error(\"invalid doc source\"),a.doc},i.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),u=r.length;s(this,o),this.currentElement=o,this.locator&&a(this.locator,o);for(var c=0;c<u;c++){e=r.getURI(c);var l=r.getValue(c),d=(n=r.getQName(c),i.createAttributeNS(e,n));this.locator&&a(r.getLocator(c),d),d.value=d.nodeValue=l,o.setAttributeNode(d)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&a(this.locator,n),s(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=u.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&a(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=u.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&a(this.locator,r),s(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&a(this.locator,i),s(this,i)}},warning:function(e){console.warn(\"[xmldom warning]\\t\"+e,o(this.locator))},error:function(e){console.error(\"[xmldom error]\\t\"+e,o(this.locator))},fatalError:function(e){throw console.error(\"[xmldom fatalError]\\t\"+e,o(this.locator)),e}},\"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl\".replace(/\\w+/g,(function(e){i.prototype[e]=function(){return null}}));var c=n(3),l=n(4).XMLReader,d=t.DOMImplementation=n(0).DOMImplementation;t.XMLSerializer=n(0).XMLSerializer,t.DOMParser=r},function(e,t){t.entityMap={lt:\"<\",gt:\">\",amp:\"&\",quot:'\"',apos:\"'\",Agrave:\"À\",Aacute:\"Á\",Acirc:\"Â\",Atilde:\"Ã\",Auml:\"Ä\",auml:\"ä\",Aring:\"Å\",aring:\"å\",AElig:\"Æ\",Ccedil:\"Ç\",Egrave:\"È\",Eacute:\"É\",Ecirc:\"Ê\",Euml:\"Ë\",Igrave:\"Ì\",Iacute:\"Í\",Icirc:\"Î\",Iuml:\"Ï\",ETH:\"Ð\",Ntilde:\"Ñ\",Ograve:\"Ò\",Oacute:\"Ó\",Ocirc:\"Ô\",Otilde:\"Õ\",Ouml:\"Ö\",ouml:\"ö\",Oslash:\"Ø\",Ugrave:\"Ù\",Uacute:\"Ú\",Ucirc:\"Û\",Uuml:\"Ü\",Yacute:\"Ý\",THORN:\"Þ\",szlig:\"ß\",agrave:\"à\",aacute:\"á\",acirc:\"â\",atilde:\"ã\",auml:\"ä\",aring:\"å\",aelig:\"æ\",ccedil:\"ç\",egrave:\"è\",eacute:\"é\",ecirc:\"ê\",euml:\"ë\",igrave:\"ì\",iacute:\"í\",icirc:\"î\",iuml:\"ï\",eth:\"ð\",ntilde:\"ñ\",ograve:\"ò\",oacute:\"ó\",ocirc:\"ô\",otilde:\"õ\",ouml:\"ö\",oslash:\"ø\",ugrave:\"ù\",uacute:\"ú\",ucirc:\"û\",uuml:\"ü\",yacute:\"ý\",thorn:\"þ\",yuml:\"ÿ\",nbsp:\" \",iexcl:\"¡\",cent:\"¢\",pound:\"£\",curren:\"¤\",yen:\"¥\",brvbar:\"¦\",sect:\"§\",uml:\"¨\",copy:\"©\",ordf:\"ª\",laquo:\"«\",not:\"¬\",shy:\"\",reg:\"®\",macr:\"¯\",deg:\"°\",plusmn:\"±\",sup2:\"²\",sup3:\"³\",acute:\"´\",micro:\"µ\",para:\"¶\",middot:\"·\",cedil:\"¸\",sup1:\"¹\",ordm:\"º\",raquo:\"»\",frac14:\"¼\",frac12:\"½\",frac34:\"¾\",iquest:\"¿\",times:\"×\",divide:\"÷\",forall:\"∀\",part:\"∂\",exist:\"∃\",empty:\"∅\",nabla:\"∇\",isin:\"∈\",notin:\"∉\",ni:\"∋\",prod:\"∏\",sum:\"∑\",minus:\"−\",lowast:\"∗\",radic:\"√\",prop:\"∝\",infin:\"∞\",ang:\"∠\",and:\"∧\",or:\"∨\",cap:\"∩\",cup:\"∪\",int:\"∫\",there4:\"∴\",sim:\"∼\",cong:\"≅\",asymp:\"≈\",ne:\"≠\",equiv:\"≡\",le:\"≤\",ge:\"≥\",sub:\"⊂\",sup:\"⊃\",nsub:\"⊄\",sube:\"⊆\",supe:\"⊇\",oplus:\"⊕\",otimes:\"⊗\",perp:\"⊥\",sdot:\"⋅\",Alpha:\"Α\",Beta:\"Β\",Gamma:\"Γ\",Delta:\"Δ\",Epsilon:\"Ε\",Zeta:\"Ζ\",Eta:\"Η\",Theta:\"Θ\",Iota:\"Ι\",Kappa:\"Κ\",Lambda:\"Λ\",Mu:\"Μ\",Nu:\"Ν\",Xi:\"Ξ\",Omicron:\"Ο\",Pi:\"Π\",Rho:\"Ρ\",Sigma:\"Σ\",Tau:\"Τ\",Upsilon:\"Υ\",Phi:\"Φ\",Chi:\"Χ\",Psi:\"Ψ\",Omega:\"Ω\",alpha:\"α\",beta:\"β\",gamma:\"γ\",delta:\"δ\",epsilon:\"ε\",zeta:\"ζ\",eta:\"η\",theta:\"θ\",iota:\"ι\",kappa:\"κ\",lambda:\"λ\",mu:\"μ\",nu:\"ν\",xi:\"ξ\",omicron:\"ο\",pi:\"π\",rho:\"ρ\",sigmaf:\"ς\",sigma:\"σ\",tau:\"τ\",upsilon:\"υ\",phi:\"φ\",chi:\"χ\",psi:\"ψ\",omega:\"ω\",thetasym:\"ϑ\",upsih:\"ϒ\",piv:\"ϖ\",OElig:\"Œ\",oelig:\"œ\",Scaron:\"Š\",scaron:\"š\",Yuml:\"Ÿ\",fnof:\"ƒ\",circ:\"ˆ\",tilde:\"˜\",ensp:\" \",emsp:\" \",thinsp:\" \",zwnj:\"\",zwj:\"\",lrm:\"\",rlm:\"\",ndash:\"–\",mdash:\"—\",lsquo:\"‘\",rsquo:\"’\",sbquo:\"‚\",ldquo:\"“\",rdquo:\"”\",bdquo:\"„\",dagger:\"†\",Dagger:\"‡\",bull:\"•\",hellip:\"…\",permil:\"‰\",prime:\"′\",Prime:\"″\",lsaquo:\"‹\",rsaquo:\"›\",oline:\"‾\",euro:\"€\",trade:\"™\",larr:\"←\",uarr:\"↑\",rarr:\"→\",darr:\"↓\",harr:\"↔\",crarr:\"↵\",lceil:\"⌈\",rceil:\"⌉\",lfloor:\"⌊\",rfloor:\"⌋\",loz:\"◊\",spades:\"♠\",clubs:\"♣\",hearts:\"♥\",diams:\"♦\"}},function(e,t){var n=/[A-Z_a-z\\xC0-\\xD6\\xD8-\\xF6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]/,r=new RegExp(\"[\\\\-\\\\.0-9\"+n.source.slice(1,-1)+\"\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]\"),i=new RegExp(\"^\"+n.source+r.source+\"*(?::\"+n.source+r.source+\"*)?$\");function a(){}function o(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,n,r,i,a){for(var o,u=++t,s=0;;){var c=e.charAt(u);switch(c){case\"=\":if(1===s)o=e.slice(t,u),s=3;else{if(2!==s)throw new Error(\"attribute equal must after attrName\");s=3}break;case\"'\":case'\"':if(3===s||1===s){if(1===s&&(a.warning('attribute value must after \"=\"'),o=e.slice(t,u)),t=u+1,!((u=e.indexOf(c,t))>0))throw new Error(\"attribute value no end '\"+c+\"' match\");l=e.slice(t,u).replace(/&#?\\w+;/g,i),n.add(o,l,t-1),s=5}else{if(4!=s)throw new Error('attribute value must after \"=\"');l=e.slice(t,u).replace(/&#?\\w+;/g,i),n.add(o,l,t),a.warning('attribute \"'+o+'\" missed start quot('+c+\")!!\"),t=u+1,s=5}break;case\"/\":switch(s){case 0:n.setTagName(e.slice(t,u));case 5:case 6:case 7:s=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error(\"attribute invalid close char('/')\")}break;case\"\":return a.error(\"unexpected end of input\"),0==s&&n.setTagName(e.slice(t,u)),u;case\">\":switch(s){case 0:n.setTagName(e.slice(t,u));case 5:case 6:case 7:break;case 4:case 1:\"/\"===(l=e.slice(t,u)).slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case 2:2===s&&(l=o),4==s?(a.warning('attribute \"'+l+'\" missed quot(\")!!'),n.add(o,l.replace(/&#?\\w+;/g,i),t)):(\"http://www.w3.org/1999/xhtml\"===r[\"\"]&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute \"'+l+'\" missed value!! \"'+l+'\" instead!!'),n.add(l,l,t));break;case 3:throw new Error(\"attribute value missed!!\")}return u;case\"\":c=\" \";default:if(c<=\" \")switch(s){case 0:n.setTagName(e.slice(t,u)),s=6;break;case 1:o=e.slice(t,u),s=2;break;case 4:var l=e.slice(t,u).replace(/&#?\\w+;/g,i);a.warning('attribute \"'+l+'\" missed quot(\")!!'),n.add(o,l,t);case 5:s=6}else switch(s){case 2:n.tagName;\"http://www.w3.org/1999/xhtml\"===r[\"\"]&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute \"'+o+'\" missed value!! \"'+o+'\" instead2!!'),n.add(o,o,t),t=u,s=1;break;case 5:a.warning('attribute space is required\"'+o+'\"!!');case 6:s=1,t=u;break;case 3:s=4,t=u;break;case 7:throw new Error(\"elements closed character '/' and '>' must be connected to\")}}u++}}function s(e,t,n){for(var r=e.tagName,i=null,a=e.length;a--;){var o=e[a],u=o.qName,s=o.value;if((p=u.indexOf(\":\"))>0)var c=o.prefix=u.slice(0,p),l=u.slice(p+1),m=\"xmlns\"===c&&l;else l=u,c=null,m=\"xmlns\"===u&&\"\";o.localName=l,!1!==m&&(null==i&&(i={},d(n,n={})),n[m]=i[m]=s,o.uri=\"http://www.w3.org/2000/xmlns/\",t.startPrefixMapping(m,s))}for(a=e.length;a--;){(c=(o=e[a]).prefix)&&(\"xml\"===c&&(o.uri=\"http://www.w3.org/XML/1998/namespace\"),\"xmlns\"!==c&&(o.uri=n[c||\"\"]))}var p;(p=r.indexOf(\":\"))>0?(c=e.prefix=r.slice(0,p),l=e.localName=r.slice(p+1)):(c=null,l=e.localName=r);var f=e.uri=n[c||\"\"];if(t.startElement(f,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(f,l,r),i)for(c in i)t.endPrefixMapping(c)}function c(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf(\"</\"+n+\">\",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\\w+;/g,r),i.characters(o,0,o.length),a)}return t+1}function l(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf(\"</\"+n+\">\"))<t&&(i=e.lastIndexOf(\"</\"+n)),r[n]=i),i<t}function d(e,t){for(var n in e)t[n]=e[n]}function m(e,t,n,r){switch(e.charAt(t+2)){case\"-\":return\"-\"===e.charAt(t+3)?(i=e.indexOf(\"--\\x3e\",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error(\"Unclosed comment\"),-1):-1;default:if(\"CDATA[\"==e.substr(t+3,6)){var i=e.indexOf(\"]]>\",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var a=function(e,t){var n,r=[],i=/'[^']+'|\"[^\"]+\"|[^\\s<>\\/=]+=?|(\\/?\\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var u=a[1][0],s=o>3&&/^public$/i.test(a[2][0])&&a[3][0],c=o>4&&a[4][0],l=a[o-1];return n.startDTD(u,s&&s.replace(/^(['\"])(.*?)\\1$/,\"$2\"),c&&c.replace(/^(['\"])(.*?)\\1$/,\"$2\")),n.endDTD(),l.index+l[0].length}}return-1}function p(e,t,n){var r=e.indexOf(\"?>\",t);if(r){var i=e.substring(t,r).match(/^<\\?(\\S*)\\s*([\\s\\S]*?)\\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function f(e){}a.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),d(t,t={}),function(e,t,n,r,i){function a(e){var t=e.slice(1,-1);return t in n?n[t]:\"#\"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace(\"x\",\"0x\"))):(i.error(\"entity not found:\"+e),e)}function d(t){if(t>y){var n=e.substring(y,t).replace(/&#?\\w+;/g,a);w&&h(y),r.characters(n,0,t-y),y=t}}function h(t,n){for(;t>=N&&(n=v.exec(e));)g=n.index,N=g+n[0].length,w.lineNumber++;w.columnNumber=t-g+1}var g=0,N=0,v=/.*(?:\\r\\n?|\\n)|.*$/g,w=r.locator,b=[{currentNSMap:t}],E={},y=0;for(;;){try{var x=e.indexOf(\"<\",y);if(x<0){if(!e.substr(y).match(/^\\s*$/)){var D=r.doc,T=D.createTextNode(e.substr(y));D.appendChild(T),r.currentElement=T}return}switch(x>y&&d(x),e.charAt(x+1)){case\"/\":var S=e.indexOf(\">\",x+3),C=e.substring(x+2,S),I=b.pop();S<0?(C=e.substring(x+2).replace(/[\\s<].*/,\"\"),i.error(\"end tag name: \"+C+\" is not complete:\"+I.tagName),S=x+1+C.length):C.match(/\\s</)&&(C=C.replace(/[\\s<].*/,\"\"),i.error(\"end tag name: \"+C+\" maybe not complete\"),S=x+1+C.length);var A=I.localNSMap,_=I.tagName==C;if(_||I.tagName&&I.tagName.toLowerCase()==C.toLowerCase()){if(r.endElement(I.uri,I.localName,C),A)for(var O in A)r.endPrefixMapping(O);_||i.fatalError(\"end tag name: \"+C+\" is not match the current start tagName:\"+I.tagName)}else b.push(I);S++;break;case\"?\":w&&h(x),S=p(e,x,r);break;case\"!\":w&&h(x),S=m(e,x,r,i);break;default:w&&h(x);var R=new f,M=b[b.length-1].currentNSMap,U=(S=u(e,x,R,M,a,i),R.length);if(!R.closed&&l(e,S,R.tagName,E)&&(R.closed=!0,n.nbsp||i.warning(\"unclosed xml attribute\")),w&&U){for(var F=o(w,{}),P=0;P<U;P++){var k=R[P];h(k.offset),k.locator=o(w,{})}r.locator=F,s(R,r,M)&&b.push(R),r.locator=w}else s(R,r,M)&&b.push(R);\"http://www.w3.org/1999/xhtml\"!==R.uri||R.closed?S++:S=c(e,S,R.tagName,a,r)}}catch(e){i.error(\"element parse error: \"+e),S=-1}S>y?y=S:d(Math.max(x,y)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error(\"invalid tagName:\"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error(\"invalid attribute:\"+e);this[this.length++]={qName:e,value:t,offset:n}},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=a}])";
exports.WINDOW = WINDOW;
//# sourceMappingURL=data.js.map