import{ah as dt,ai as mn}from"./index-CIeBS4lG.js";function vn(ut,Et){for(var P=0;Poe[R]})}}}return Object.freeze(Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"}))}function bt(ut){throw new Error('Could not dynamically require "'+ut+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xt={exports:{}},hr;function yn(){return hr||(hr=1,(function(ut,Et){(function(P){ut.exports=P()})(function(){return(function P(oe,R,M){function E(p,u){if(!R[p]){if(!oe[p]){var i=typeof bt=="function"&&bt;if(!u&&i)return i(p,!0);if(a)return a(p,!0);var e=new Error("Cannot find module '"+p+"'");throw e.code="MODULE_NOT_FOUND",e}var s=R[p]={exports:{}};oe[p][0].call(s.exports,function(d){var y=oe[p][1][d];return E(y||d)},s,s.exports,P,oe,R,M)}return R[p].exports}for(var a=typeof bt=="function"&&bt,g=0;g0&&(Ee=X.concat(Ee),X=[]),r.map(ne(fe),K(Ee),function(Se,Me){return new a.Paragraph(Me,Se)}).insertExtra()},"w:r":function(re){return r.map(ie(re.firstOrEmpty("w:rPr")),K(re.children),function(fe,_e){var Ee=Ie();return Ee!==null&&(_e=[new a.Hyperlink(_e,Ee)]),new a.Run(_e,fe)})},"w:fldChar":be,"w:instrText":Le,"w:t":function(re){return c(new a.Text(re.text()))},"w:tab":function(re){return c(new a.Tab)},"w:noBreakHyphen":function(){return c(new a.Text("‑"))},"w:softHyphen":function(re){return c(new a.Text("­"))},"w:sym":Be,"w:hyperlink":function(re){var fe=re.attributes["r:id"],_e=re.attributes["w:anchor"];return K(re.children).map(function(Ee){function Se(Pe){var Fe=re.attributes["w:tgtFrame"]||null;return new a.Hyperlink(Ee,E.extend({targetFrame:Fe},Pe))}if(fe){var Me=x.findTargetByRelationshipId(fe);return _e&&(Me=e.replaceFragment(Me,_e)),Se({href:Me})}else return _e?Se({anchor:_e}):Ee})},"w:tbl":l,"w:tr":o,"w:tc":D,"w:footnoteReference":f("footnote"),"w:endnoteReference":f("endnote"),"w:commentReference":$,"w:br":function(re){var fe=re.attributes["w:type"];return fe==null||fe==="textWrapping"?c(a.lineBreak):fe==="page"?c(a.pageBreak):fe==="column"?c(a.columnBreak):h([p("Unsupported break type: "+fe)])},"w:bookmarkStart":function(re){var fe=re.attributes["w:name"];return fe==="_GoBack"?_():c(new a.BookmarkStart({name:fe}))},"mc:AlternateContent":function(re){return V(re.firstOrEmpty("mc:Fallback"))},"w:sdt":function(re){var fe=K(re.firstOrEmpty("w:sdtContent").children);return fe.map(function(_e){var Ee=re.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(Ee){var Se=Ee.first("wordml:checked"),Me=!!Se&&Q(Se.attributes["wordml:val"]),Pe=a.checkbox({checked:Me}),Fe=!1,Ze=_e.map(i._elementsOfType(a.types.text,function(N){return N.value.length>0&&!Fe?(Fe=!0,Pe):N}));return Fe?Ze:Pe}else return _e})},"w:customXml":V,"w:ins":V,"w:moveFromRangeEnd":V,"w:moveFromRangeStart":V,"w:moveTo":V,"w:moveToRangeEnd":V,"w:moveToRangeStart":V,"w:object":V,"w:smartTag":V,"w:drawing":V,"w:pict":function(re){return V(re).toExtra()},"v:roundrect":V,"v:shape":V,"v:textbox":V,"w:txbxContent":V,"wp:inline":ae,"wp:anchor":ae,"v:imagedata":Ae,"v:group":V,"v:rect":V};return{readXmlElement:pe,readXmlElements:K};function l(re){var fe=t(re.firstOrEmpty("w:tblPr"));return K(re.children).flatMap(G).flatMap(function(_e){return fe.map(function(Ee){return a.Table(_e,Ee)})})}function t(re){return Re(re).map(function(fe){return{styleId:fe.styleId,styleName:fe.name}})}function o(re){var fe=re.firstOrEmpty("w:trPr"),_e=!!fe.first("w:del");if(_e)return _();var Ee=!!fe.first("w:tblHeader");return K(re.children).map(function(Se){return a.TableRow(Se,{isHeader:Ee})})}function D(re){return K(re.children).map(function(fe){var _e=re.firstOrEmpty("w:tcPr"),Ee=_e.firstOrEmpty("w:gridSpan").attributes["w:val"],Se=Ee?parseInt(Ee,10):1,Me=a.TableCell(fe,{colSpan:Se});return Me._vMerge=C(_e),Me})}function C(re){var fe=re.first("w:vMerge");if(fe){var _e=fe.attributes["w:val"];return _e==="continue"||!_e}else return null}function G(re){var fe=E.any(re,function(Se){return Se.type!==a.types.tableRow});if(fe)return te(re),n(re,[p("unexpected non-row element in table, cell merging may be incorrect")]);var _e=E.any(re,function(Se){return E.any(Se.children,function(Me){return Me.type!==a.types.tableCell})});if(_e)return te(re),n(re,[p("unexpected non-cell element in table row, cell merging may be incorrect")]);var Ee={};return re.forEach(function(Se){var Me=0;Se.children.forEach(function(Pe){Pe._vMerge&&Ee[Me]?Ee[Me].rowSpan++:(Ee[Me]=Pe,Pe._vMerge=!1),Me+=Pe.colSpan})}),re.forEach(function(Se){Se.children=Se.children.filter(function(Me){return!Me._vMerge}),Se.children.forEach(function(Me){delete Me._vMerge})}),c(re)}function te(re){re.forEach(function(fe){var _e=i.getDescendantsOfType(fe,a.types.tableCell);_e.forEach(function(Ee){delete Ee._vMerge})})}function ae(re){var fe=re.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return m(fe.map(de.bind(null,re)))}function de(re,fe){var _e=re.firstOrEmpty("wp:docPr"),Ee=_e.attributes,Se=Te(Ee.descr)?Ee.title:Ee.descr,Me=me(fe);return Me===null?h([p("Could not find image file for a:blip element")]):ze(Me,Se).map(function(Pe){var Fe=_e.firstOrEmpty("a:hlinkClick"),Ze=Fe.attributes["r:id"];if(Ze){var N=x.findTargetByRelationshipId(Ze);return new a.Hyperlink([Pe],{href:N})}else return Pe})}function Te(re){return re==null||/^\s*$/.test(re)}function me(re){var fe=re.attributes["r:embed"],_e=re.attributes["r:link"];if(fe)return Ue(fe);if(_e){var Ee=x.findTargetByRelationshipId(_e);return{path:Ee,read:B.read.bind(B,Ee)}}else return null}function Ae(re){var fe=re.attributes["r:id"];return fe?ze(Ue(fe),re.attributes["o:title"]):h([p("A v:imagedata element without a relationship ID was ignored")])}function Ue(re){var fe=e.uriToZipEntryName("word",x.findTargetByRelationshipId(re));return{path:fe,read:ee.read.bind(ee,fe)}}function ze(re,fe){var _e=W.findContentType(re.path),Ee=a.Image({readImage:re.read,altText:fe,contentType:_e}),Se=w[_e]?[]:p("Image of type "+_e+" is unlikely to display in web browsers");return n(Ee,Se)}function He(re,fe){return p(re+" style with ID "+fe+" was referenced but not defined in the document")}}function y(k,A,O){var X=A.firstOrEmpty("w:ilvl").attributes["w:val"],x=A.firstOrEmpty("w:numId").attributes["w:val"];if(X!==void 0&&x!==void 0)return O.findLevel(x,X);if(k!=null){var W=O.findLevelByParagraphStyleId(k);if(W!=null)return W}return x!==void 0?O.findLevel(x,"0"):null}var w={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},v={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:moveFrom":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function h(k){return new r(null,null,k)}function _(){return new r(null)}function c(k){return new r(k)}function n(k,A){return new r(k,null,A)}function r(k,A,O){this.value=k||[],this.extra=A||[],this._result=new g({element:this.value,extra:A},O),this.messages=this._result.messages}r.prototype.toExtra=function(){return new r(null,I(this.extra,this.value),this.messages)},r.prototype.insertExtra=function(){var k=this.extra;return k&&k.length?new r(I(this.value,k),null,this.messages):this},r.prototype.map=function(k){var A=this._result.map(function(O){return k(O.element)});return new r(A.value,this.extra,A.messages)},r.prototype.flatMap=function(k){var A=this._result.flatMap(function(O){return k(O.element)._result});return new r(A.value.element,I(this.extra,A.value.extra),A.messages)},r.map=function(k,A,O){return new r(O(k.value,A.value),I(k.extra,A.extra),k.messages.concat(A.messages))};function m(k){var A=g.combine(E.pluck(k,"_result"));return new r(E.flatten(E.pluck(A.value,"element")),E.filter(E.flatten(E.pluck(A.value,"extra")),U),A.messages)}function I(k,A){return E.flatten([k,A])}function U(k){return k}},{"../documents":4,"../results":25,"../transforms":30,"../xml":35,"./uris":16,"dingbat-to-unicode":50,underscore:67}],6:[function(P,oe,R){var M=P("../documents"),E=P("../results").Result;function a(g){function p(i){return E.combine(i.getElementsByTagName("w:comment").map(u))}function u(i){var e=i.attributes["w:id"];function s(d){return(i.attributes[d]||"").trim()||null}return g.readXmlElements(i.children).map(function(d){return M.comment({commentId:e,body:d,authorName:s("w:author"),authorInitials:s("w:initials")})})}return p}R.createCommentsReader=a},{"../documents":4,"../results":25}],7:[function(P,oe,R){R.readContentTypesFromXml=E;var M={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};R.defaultContentTypes=a({},{});function E(g){var p=Object.create(null),u=Object.create(null);return g.children.forEach(function(i){if(i.name==="content-types:Default"&&(p[i.attributes.Extension]=i.attributes.ContentType),i.name==="content-types:Override"){var e=i.attributes.PartName;e.charAt(0)==="/"&&(e=e.substring(1)),u[e]=i.attributes.ContentType}}),a(u,p)}function a(g,p){return{findContentType:function(u){var i=g[u];if(i)return i;var e=u.split("."),s=e[e.length-1];if(Object.prototype.hasOwnProperty.call(p,s))return p[s];var d=M[s.toLowerCase()];return d?"image/"+d:null}}}},{}],8:[function(P,oe,R){R.DocumentXmlReader=a;var M=P("../documents"),E=P("../results").Result;function a(g){var p=g.bodyReader;function u(i){var e=i.first("w:body");if(e==null)throw new Error("Could not find the body element: are you sure this is a docx file?");var s=p.readXmlElements(e.children).map(function(d){return new M.Document(d,{notes:g.notes,comments:g.comments})});return new E(s.value,s.messages)}return{convertXmlToDocument:u}}},{"../documents":4,"../results":25}],9:[function(P,oe,R){R.read=_,R._findPartPaths=c;var M=P("../promises"),E=P("../documents"),a=P("../results").Result,g=P("../zipfile"),p=P("./office-xml-reader").readXmlFromZipFile,u=P("./body-reader").createBodyReader,i=P("./document-xml-reader").DocumentXmlReader,e=P("./relationships-reader"),s=P("./content-types-reader"),d=P("./numbering-xml"),y=P("./styles-reader"),w=P("./notes-reader"),v=P("./comments-reader"),h=P("./files").Files;function _(x,W,ee){W=W||{},ee=ee||{};var B=new h({externalFileAccess:ee.externalFileAccess,relativeToFile:W.path});return M.props({contentTypes:k(x),partPaths:c(x),docxFile:x,files:B}).also(function(Y){return{styles:O(x,Y.partPaths.styles)}}).also(function(Y){return{numbering:A(x,Y.partPaths.numbering,Y.styles)}}).also(function(Y){return{footnotes:I(Y.partPaths.footnotes,Y,function(T,K){return K?w.createFootnotesReader(T)(K):new a([])}),endnotes:I(Y.partPaths.endnotes,Y,function(T,K){return K?w.createEndnotesReader(T)(K):new a([])}),comments:I(Y.partPaths.comments,Y,function(T,K){return K?v.createCommentsReader(T)(K):new a([])})}}).also(function(Y){return{notes:Y.footnotes.flatMap(function(T){return Y.endnotes.map(function(K){return new E.Notes(T.concat(K))})})}}).then(function(Y){return I(Y.partPaths.mainDocument,Y,function(T,K){return Y.notes.flatMap(function(pe){return Y.comments.flatMap(function(ne){var ce=new i({bodyReader:T,notes:pe,comments:ne});return ce.convertXmlToDocument(K)})})})})}function c(x){return X(x).then(function(W){var ee=n({docxFile:x,relationships:W,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!x.exists(ee))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return m({filename:U(ee),readElement:e.readRelationships,defaultValue:e.defaultValue})(x).then(function(B){function Y(T){return n({docxFile:x,relationships:B,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+T,basePath:g.splitPath(ee).dirname,fallbackPath:"word/"+T+".xml"})}return{mainDocument:ee,comments:Y("comments"),endnotes:Y("endnotes"),footnotes:Y("footnotes"),numbering:Y("numbering"),styles:Y("styles")}})})}function n(x){var W=x.docxFile,ee=x.relationships,B=x.relationshipType,Y=x.basePath,T=x.fallbackPath,K=ee.findTargetsByType(B),pe=K.map(function(ce){return r(g.joinPath(Y,ce),"/")}),ne=pe.filter(function(ce){return W.exists(ce)});return ne.length===0?T:ne[0]}function r(x,W){return x.substring(0,W.length)===W?x.substring(W.length):x}function m(x){return function(W){return p(W,x.filename).then(function(ee){return ee?x.readElement(ee):x.defaultValue})}}function I(x,W,ee){var B=m({filename:U(x),readElement:e.readRelationships,defaultValue:e.defaultValue});return B(W.docxFile).then(function(Y){var T=new u({relationships:Y,contentTypes:W.contentTypes,docxFile:W.docxFile,numbering:W.numbering,styles:W.styles,files:W.files});return p(W.docxFile,x).then(function(K){return ee(T,K)})})}function U(x){var W=g.splitPath(x);return g.joinPath(W.dirname,"_rels",W.basename+".rels")}var k=m({filename:"[Content_Types].xml",readElement:s.readContentTypesFromXml,defaultValue:s.defaultContentTypes});function A(x,W,ee){return m({filename:W,readElement:function(B){return d.readNumberingXml(B,{styles:ee})},defaultValue:d.defaultNumbering})(x)}function O(x,W){return m({filename:W,readElement:y.readStylesXml,defaultValue:y.defaultStyles})(x)}var X=m({filename:"_rels/.rels",readElement:e.readRelationships,defaultValue:e.defaultValue})},{"../documents":4,"../promises":23,"../results":25,"../zipfile":40,"./body-reader":5,"./comments-reader":6,"./content-types-reader":7,"./document-xml-reader":8,"./files":1,"./notes-reader":10,"./numbering-xml":11,"./office-xml-reader":12,"./relationships-reader":13,"./styles-reader":15}],10:[function(P,oe,R){var M=P("../documents"),E=P("../results").Result;R.createFootnotesReader=a.bind(this,"footnote"),R.createEndnotesReader=a.bind(this,"endnote");function a(g,p){function u(s){return E.combine(s.getElementsByTagName("w:"+g).filter(i).map(e))}function i(s){var d=s.attributes["w:type"];return d!=="continuationSeparator"&&d!=="separator"}function e(s){var d=s.attributes["w:id"];return p.readXmlElements(s.children).map(function(y){return M.Note({noteType:g,noteId:d,body:y})})}return u}},{"../documents":4,"../results":25}],11:[function(P,oe,R){var M=P("underscore");R.readNumberingXml=a,R.Numbering=E,R.defaultNumbering=new E({},{});function E(i,e,s){var d=M.flatten(M.values(e).map(function(_){return M.values(_.levels)})),y=M.indexBy(d.filter(function(_){return _.paragraphStyleId!=null}),"paragraphStyleId");function w(_,c){return v(_,c,Object.create(null))}function v(_,c,n){if(n[_])return null;n[_]=!0;var r=i[_];if(!r)return null;var m=e[r.abstractNumId];if(m){if(m.numStyleLink==null)return e[r.abstractNumId].levels[c];var I=s.findNumberingStyleById(m.numStyleLink);return v(I.numId,c,n)}else return null}function h(_){return y[_]||null}return{findLevel:w,findLevelByParagraphStyleId:h}}function a(i,e){if(!e||!e.styles)throw new Error("styles is missing");var s=g(i),d=u(i);return new E(d,s,e.styles)}function g(i){var e=Object.create(null);return i.getElementsByTagName("w:abstractNum").forEach(function(s){var d=s.attributes["w:abstractNumId"];e[d]=p(s)}),e}function p(i){var e=Object.create(null),s=null;i.getElementsByTagName("w:lvl").forEach(function(y){var w=y.attributes["w:ilvl"],v=y.firstOrEmpty("w:numFmt").attributes["w:val"],h=v!=="bullet",_=y.firstOrEmpty("w:pStyle").attributes["w:val"];w===void 0?s={isOrdered:h,level:"0",paragraphStyleId:_}:e[w]={isOrdered:h,level:w,paragraphStyleId:_}}),s!==null&&e[s.level]===void 0&&(e[s.level]=s);var d=i.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:e,numStyleLink:d}}function u(i){var e=Object.create(null);return i.getElementsByTagName("w:num").forEach(function(s){var d=s.attributes["w:numId"],y=s.first("w:abstractNumId").attributes["w:val"];e[d]={abstractNumId:y}}),e}},{underscore:67}],12:[function(P,oe,R){var M=P("underscore"),E=P("../promises"),a=P("../xml");R.read=p,R.readXmlFromZipFile=u;var g={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function p(s){return a.readString(s,g).then(function(d){return e(d)[0]})}function u(s,d){return s.exists(d)?s.read(d,"utf-8").then(i).then(p):E.resolve(null)}function i(s){return s.replace(/^\uFEFF/g,"")}function e(s){return s.type==="element"?s.name==="mc:AlternateContent"?s.firstOrEmpty("mc:Fallback").children:(s.children=M.flatten(s.children.map(e,!0)),[s]):[s]}},{"../promises":23,"../xml":35,underscore:67}],13:[function(P,oe,R){R.readRelationships=M,R.defaultValue=new E([]),R.Relationships=E;function M(a){var g=[];return a.children.forEach(function(p){if(p.name==="relationships:Relationship"){var u={relationshipId:p.attributes.Id,target:p.attributes.Target,type:p.attributes.Type};g.push(u)}}),new E(g)}function E(a){var g=Object.create(null);a.forEach(function(u){g[u.relationshipId]=u.target});var p=Object.create(null);return a.forEach(function(u){p[u.type]||(p[u.type]=[]),p[u.type].push(u.target)}),{findTargetByRelationshipId:function(u){return g[u]},findTargetsByType:function(u){return p[u]||[]}}}},{}],14:[function(P,oe,R){var M=P("underscore"),E=P("../promises"),a=P("../xml");R.writeStyleMap=i,R.readStyleMap=y;var g="http://schemas.zwobble.org/mammoth/style-map",p="mammoth/style-map",u="/"+p;function i(w,v){return w.write(p,v),e(w).then(function(){return s(w)})}function e(w){var v="word/_rels/document.xml.rels",h="http://schemas.openxmlformats.org/package/2006/relationships",_="{"+h+"}Relationship";return w.read(v,"utf8").then(a.readString).then(function(c){var n=c.children;d(n,_,"Id",{Id:"rMammothStyleMap",Type:g,Target:u});var r={"":h};return w.write(v,a.writeString(c,r))})}function s(w){var v="[Content_Types].xml",h="http://schemas.openxmlformats.org/package/2006/content-types",_="{"+h+"}Override";return w.read(v,"utf8").then(a.readString).then(function(c){var n=c.children;d(n,_,"PartName",{PartName:u,ContentType:"text/prs.mammoth.style-map"});var r={"":h};return w.write(v,a.writeString(c,r))})}function d(w,v,h,_){var c=M.find(w,function(n){return n.name===v&&n.attributes[h]===_[h]});c?c.attributes=_:w.push(a.element(v,_))}function y(w){return w.exists(p)?w.read(p,"utf8"):E.resolve(null)}},{"../promises":23,"../xml":35,underscore:67}],15:[function(P,oe,R){R.readStylesXml=E,R.Styles=M,R.defaultStyles=new M({},{});function M(i,e,s,d){return{findParagraphStyleById:function(y){return i[y]},findCharacterStyleById:function(y){return e[y]},findTableStyleById:function(y){return s[y]},findNumberingStyleById:function(y){return d[y]}}}M.EMPTY=new M({},{},{},{});function E(i){var e=Object.create(null),s=Object.create(null),d=Object.create(null),y=Object.create(null);return i.getElementsByTagName("w:style").forEach(function(w){var v=a(w),h;switch(v.type){case"paragraph":h=e;break;case"character":h=s;break;case"table":h=d;break;case"numbering":h=y;break}h&&h[v.styleId]===void 0&&(h[v.styleId]=v)}),new M(e,s,d,y)}function a(i){var e=i.attributes["w:type"];if(e==="numbering")return p(e,i);var s=u(i),d=g(i);return{type:e,styleId:s,name:d}}function g(i){var e=i.first("w:name");return e?e.attributes["w:val"]:null}function p(i,e){var s=u(e),d=e.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:i,numId:d,styleId:s}}function u(i){return i.attributes["w:styleId"]}},{}],16:[function(P,oe,R){R.uriToZipEntryName=M,R.replaceFragment=E;function M(a,g){return g.charAt(0)==="/"?g.substr(1):a+"/"+g}function E(a,g){var p=a.indexOf("#");return p!==-1&&(a=a.substring(0,p)),a+"#"+g}},{}],17:[function(P,oe,R){var M=P("../styles/html-paths");function E(s,d,y){return g(M.element(s,d,{fresh:!1}),y)}function a(s,d,y){var w=M.element(s,d,{fresh:!0});return g(w,y)}function g(s,d){return{type:"element",tag:s,children:d||[]}}function p(s){return{type:"text",value:s}}var u={type:"forceWrite"};R.freshElement=a,R.nonFreshElement=E,R.elementWithTag=g,R.text=p,R.forceWrite=u;var i={br:!0,hr:!0,img:!0,input:!0};function e(s){return s.children.length===0&&i[s.tag.tagName]}R.isVoidElement=e},{"../styles/html-paths":28}],18:[function(P,oe,R){var M=P("./ast");R.freshElement=M.freshElement,R.nonFreshElement=M.nonFreshElement,R.elementWithTag=M.elementWithTag,R.text=M.text,R.forceWrite=M.forceWrite,R.simplify=P("./simplify");function E(i,e){e.forEach(function(s){a(i,s)})}function a(i,e){g[e.type](i,e)}var g={element:p,text:u,forceWrite:function(){}};function p(i,e){M.isVoidElement(e)?i.selfClosing(e.tag.tagName,e.tag.attributes):(i.open(e.tag.tagName,e.tag.attributes),E(i,e.children),i.close(e.tag.tagName))}function u(i,e){i.text(e.value)}R.write=E},{"./ast":17,"./simplify":19}],19:[function(P,oe,R){var M=P("underscore"),E=P("./ast");function a(c){return g(d(c))}function g(c){var n=[];return c.map(p).forEach(function(r){s(n,r)}),n}function p(c){return u[c.type](c)}var u={element:i,text:e,forceWrite:e};function i(c){return E.elementWithTag(c.tag,g(c.children))}function e(c){return c}function s(c,n){var r=c[c.length-1];n.type==="element"&&!n.tag.fresh&&r&&r.type==="element"&&n.tag.matchesElement(r.tag)?(n.tag.separator&&s(r.children,E.text(n.tag.separator)),n.children.forEach(function(m){s(r.children,m)})):c.push(n)}function d(c){return y(c,function(n){return w[n.type](n)})}function y(c,n){return M.flatten(M.map(c,n),!0)}var w={element:h,text:_,forceWrite:v};function v(c){return[c]}function h(c){var n=d(c.children);return n.length===0&&!E.isVoidElement(c)?[]:[E.elementWithTag(c.tag,n)]}function _(c){return c.value.length===0?[]:[c]}oe.exports=a},{"./ast":17,underscore:67}],20:[function(P,oe,R){var M=P("underscore"),E=P("./promises"),a=P("./html");R.imgElement=g;function g(u){return function(i,e){return E.resolve(u(i)).then(function(s){var d={};return i.altText&&(d.alt=i.altText),M.extend(d,s),[a.freshElement("img",d)]})}}R.inline=R.imgElement,R.dataUri=g(function(u){return u.readAsBase64String().then(function(i){return{src:"data:"+u.contentType+";base64,"+i}})});function p(u){return u.contentType.split(/\/|\\/)[1]}R.imageFilenameExtension=p},{"./html":18,"./promises":23,underscore:67}],21:[function(P,oe,R){(function(M){var E=P("underscore"),a=P("./docx/docx-reader"),g=P("./docx/style-map"),p=P("./document-to-html").DocumentConverter,u=P("./raw-text").convertElementToRawText,i=P("./style-reader").readStyle,e=P("./options-reader").readOptions,s=P("./promises"),d=P("./unzip"),y=P("./results").Result;R.convertToHtml=w,R.convertToMarkdown=v,R.convert=h,R.extractRawText=r,R.images=P("./images"),R.transforms=P("./transforms"),R.underline=P("./underline"),R.embedStyleMap=m,R.readEmbeddedStyleMap=_;function w(I,U){return h(I,U)}function v(I,U){var k=Object.create(U||{});return k.outputFormat="markdown",h(I,k)}function h(I,U){U=e(U);var k=d.openZip(I).then(function(A){return g.readStyleMap(A).then(function(O){return U.embeddedStyleMap=O,A})}).then(function(A){return a.read(A,I,U).then(function(O){return O.map(U.transformDocument)}).then(function(O){return c(O,U)})});return s.toExternalPromise(k)}function _(I){var U=d.openZip(I).then(g.readStyleMap);return s.toExternalPromise(U)}function c(I,U){var k=n(U.readStyleMap()),A=E.extend({},U,{styleMap:k.value}),O=new p(A);return I.flatMapThen(function(X){return k.flatMapThen(function(x){return O.convertToHtml(X)})})}function n(I){return y.combine((I||[]).map(i)).map(function(U){return U.filter(function(k){return!!k})})}function r(I){var U=d.openZip(I).then(a.read).then(function(k){return k.map(u)});return s.toExternalPromise(U)}function m(I,U){var k=d.openZip(I).then(function(A){return g.writeStyleMap(A,U).then(function(){return A})}).then(function(A){return A.toArrayBuffer()}).then(function(A){return{toArrayBuffer:function(){return A},toBuffer:function(){return M.from(A)}}});return s.toExternalPromise(k)}R.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}}).call(this,P("buffer").Buffer)},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./promises":23,"./raw-text":24,"./results":25,"./style-reader":26,"./transforms":30,"./underline":31,"./unzip":2,buffer:48,underscore:67}],22:[function(P,oe,R){R.readOptions=g;var M=P("underscore"),E=R._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],a=R._standardOptions={externalFileAccess:!1,transformDocument:u,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function g(i){return i=i||{},M.extend({},a,i,{customStyleMap:p(i.styleMap),readStyleMap:function(){var e=this.customStyleMap;return this.includeEmbeddedStyleMap&&(e=e.concat(p(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(e=e.concat(E)),e}})}function p(i){return i?M.isString(i)?i.split(` `).map(function(e){return e.trim()}).filter(function(e){return e!==""&&e.charAt(0)!=="#"}):i:[]}function u(i){return i}},{underscore:67}],23:[function(P,oe,R){(function(M){var E=P("underscore");R.defer=u,R.Promise=Promise,R.resolve=Promise.resolve.bind(Promise),R.reject=Promise.reject.bind(Promise),R.forEachSeries=function(d,y){var w=0,v=u(),h=function(){if(w"u"?!1:{}.toString.call(M).toLowerCase()==="[object process]"}}).call(this,P("_process"))},{_process:66,underscore:67}],24:[function(P,oe,R){var M=P("./documents");function E(a){if(a.type==="text")return a.value;if(a.type===M.types.tab)return" ";var g=a.type==="paragraph"?` `:"";return(a.children||[]).map(E).join("")+g}R.convertElementToRawText=E},{"./documents":4}],25:[function(P,oe,R){var M=P("underscore");R.Result=E,R.success=a,R.warning=g,R.error=p;function E(s,d){this.value=s,this.messages=d||[]}E.prototype.map=function(s){return new E(s(this.value),this.messages)},E.prototype.flatMap=function(s){var d=s(this.value);return new E(d.value,u([this,d]))},E.prototype.flatMapThen=function(s){var d=this;return s(this.value).then(function(y){return new E(y.value,u([d,y]))})},E.combine=function(s){var d=M.flatten(M.pluck(s,"value")),y=u(s);return new E(d,y)};function a(s){return new E(s,[])}function g(s){return{type:"warning",message:s}}function p(s){return{type:"error",message:s.message,error:s}}function u(s){var d=[];return M.flatten(M.pluck(s,"messages"),!0).forEach(function(y){i(d,y)||d.push(y)}),d}function i(s,d){return M.find(s,e.bind(null,d))!==void 0}function e(s,d){return s.type===d.type&&s.message===d.message}},{underscore:67}],26:[function(P,oe,R){var M=P("underscore"),E=P("lop"),a=P("./styles/document-matchers"),g=P("./styles/html-paths"),p=P("./styles/parser/tokeniser").tokenise,u=P("./results");R.readHtmlPath=y,R.readDocumentMatcher=s,R.readStyle=i;function i(X){return U(O,X)}function e(){return E.rules.sequence(E.rules.sequence.capture(d()),E.rules.tokenOfType("whitespace"),E.rules.tokenOfType("arrow"),E.rules.sequence.capture(E.rules.optional(E.rules.sequence(E.rules.tokenOfType("whitespace"),E.rules.sequence.capture(w())).head())),E.rules.tokenOfType("end")).map(function(X,x){return{from:X,to:x.valueOrElse(g.empty)}})}function s(X){return U(d(),X)}function d(){var X=E.rules.sequence,x=function(ke,xe){return E.rules.then(E.rules.token("identifier",ke),function(){return xe})},W=x("p",a.paragraph),ee=x("r",a.run),B=E.rules.firstOf("p or r or table",W,ee),Y=E.rules.sequence(E.rules.tokenOfType("dot"),E.rules.sequence.cut(),E.rules.sequence.capture(v)).map(function(ke){return{styleId:ke}}),T=E.rules.firstOf("style name matcher",E.rules.then(E.rules.sequence(E.rules.tokenOfType("equals"),E.rules.sequence.cut(),E.rules.sequence.capture(_)).head(),function(ke){return{styleName:a.equalTo(ke)}}),E.rules.then(E.rules.sequence(E.rules.tokenOfType("startsWith"),E.rules.sequence.cut(),E.rules.sequence.capture(_)).head(),function(ke){return{styleName:a.startsWith(ke)}})),K=E.rules.sequence(E.rules.tokenOfType("open-square-bracket"),E.rules.sequence.cut(),E.rules.token("identifier","style-name"),E.rules.sequence.capture(T),E.rules.tokenOfType("close-square-bracket")).head(),pe=E.rules.firstOf("list type",x("ordered-list",{isOrdered:!0}),x("unordered-list",{isOrdered:!1})),ne=X(E.rules.tokenOfType("colon"),X.capture(pe),X.cut(),E.rules.tokenOfType("open-paren"),X.capture(h),E.rules.tokenOfType("close-paren")).map(function(ke,xe){return{list:{isOrdered:ke.isOrdered,levelIndex:xe-1}}});function ce(ke){var xe=E.rules.firstOf.apply(E.rules.firstOf,["matcher suffix"].concat(ke)),Le=E.rules.zeroOrMore(xe);return E.rules.then(Le,function(Be){var f={};return Be.forEach(function($){M.extend(f,$)}),f})}var ie=X(X.capture(B),X.capture(ce([Y,K,ne]))).map(function(ke,xe){return ke(xe)}),ve=X(E.rules.token("identifier","table"),X.capture(ce([Y,K]))).map(function(ke){return a.table(ke)}),j=x("b",a.bold),Q=x("i",a.italic),we=x("u",a.underline),he=x("strike",a.strikethrough),le=x("all-caps",a.allCaps),Re=x("small-caps",a.smallCaps),Ce=X(E.rules.token("identifier","highlight"),E.rules.sequence.capture(E.rules.optional(E.rules.sequence(E.rules.tokenOfType("open-square-bracket"),E.rules.sequence.cut(),E.rules.token("identifier","color"),E.rules.tokenOfType("equals"),E.rules.sequence.capture(_),E.rules.tokenOfType("close-square-bracket")).head()))).map(function(ke){return a.highlight({color:ke.valueOrElse(void 0)})}),be=x("comment-reference",a.commentReference),Ie=X(E.rules.token("identifier","br"),X.cut(),E.rules.tokenOfType("open-square-bracket"),E.rules.token("identifier","type"),E.rules.tokenOfType("equals"),X.capture(_),E.rules.tokenOfType("close-square-bracket")).map(function(ke){switch(ke){case"line":return a.lineBreak;case"page":return a.pageBreak;case"column":return a.columnBreak}});return E.rules.firstOf("element type",ie,ve,j,Q,we,he,le,Re,Ce,be,Ie)}function y(X){return U(w(),X)}function w(){var X=E.rules.sequence.capture,x=E.rules.tokenOfType("whitespace"),W=E.rules.then(E.rules.optional(E.rules.sequence(E.rules.tokenOfType("colon"),E.rules.token("identifier","fresh"))),function(T){return T.map(function(){return!0}).valueOrElse(!1)}),ee=E.rules.then(E.rules.optional(E.rules.sequence(E.rules.tokenOfType("colon"),E.rules.token("identifier","separator"),E.rules.tokenOfType("open-paren"),X(_),E.rules.tokenOfType("close-paren")).head()),function(T){return T.valueOrElse("")}),B=E.rules.oneOrMoreWithSeparator(v,E.rules.tokenOfType("choice")),Y=E.rules.sequence(X(B),X(E.rules.zeroOrMore(I)),X(W),X(ee)).map(function(T,K,pe,ne){var ce=Object.create(null),ie={};return K.forEach(function(ve){ve.append&&ce[ve.name]?ce[ve.name]+=" "+ve.value:ce[ve.name]=ve.value}),pe&&(ie.fresh=!0),ne&&(ie.separator=ne),g.element(T,ce,ie)});return E.rules.firstOf("html path",E.rules.then(E.rules.tokenOfType("bang"),function(){return g.ignore}),E.rules.then(E.rules.zeroOrMoreWithSeparator(Y,E.rules.sequence(x,E.rules.tokenOfType("gt"),x)),g.elements))}var v=E.rules.then(E.rules.tokenOfType("identifier"),n),h=E.rules.tokenOfType("integer"),_=E.rules.then(E.rules.tokenOfType("string"),n),c={n:` `,r:"\r",t:" "};function n(X){return X.replace(/\\(.)/g,function(x,W){return c[W]||W})}var r=E.rules.sequence(E.rules.tokenOfType("open-square-bracket"),E.rules.sequence.cut(),E.rules.sequence.capture(v),E.rules.tokenOfType("equals"),E.rules.sequence.capture(_),E.rules.tokenOfType("close-square-bracket")).map(function(X,x){return{name:X,value:x,append:!1}}),m=E.rules.sequence(E.rules.tokenOfType("dot"),E.rules.sequence.cut(),E.rules.sequence.capture(v)).map(function(X){return{name:"class",value:X,append:!0}}),I=E.rules.firstOf("attribute or class",r,m);function U(X,x){var W=p(x),ee=E.Parser(),B=ee.parseTokens(X,W);return B.isSuccess()?u.success(B.value()):new u.Result(null,[u.warning(k(x,B))])}function k(X,x){return"Did not understand this style mapping, so ignored it: "+X+` `+x.errors().map(A).join(` `)}function A(X){return"Error was at character number "+X.characterNumber()+": Expected "+X.expected+" but got "+X.actual}var O=e()},{"./results":25,"./styles/document-matchers":27,"./styles/html-paths":28,"./styles/parser/tokeniser":29,lop:54,underscore:67}],27:[function(P,oe,R){R.paragraph=M,R.run=E,R.table=a,R.bold=new p("bold"),R.italic=new p("italic"),R.underline=new p("underline"),R.strikethrough=new p("strikethrough"),R.allCaps=new p("allCaps"),R.smallCaps=new p("smallCaps"),R.highlight=g,R.commentReference=new p("commentReference"),R.lineBreak=new i({breakType:"line"}),R.pageBreak=new i({breakType:"page"}),R.columnBreak=new i({breakType:"column"}),R.equalTo=s,R.startsWith=d;function M(v){return new p("paragraph",v)}function E(v){return new p("run",v)}function a(v){return new p("table",v)}function g(v){return new u(v)}function p(v,h){h=h||{},this._elementType=v,this._styleId=h.styleId,this._styleName=h.styleName,h.list&&(this._listIndex=h.list.levelIndex,this._listIsOrdered=h.list.isOrdered)}p.prototype.matches=function(v){return v.type===this._elementType&&(this._styleId===void 0||v.styleId===this._styleId)&&(this._styleName===void 0||v.styleName&&this._styleName.operator(this._styleName.operand,v.styleName))&&(this._listIndex===void 0||e(v,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===v.breakType)};function u(v){v=v||{},this._color=v.color}u.prototype.matches=function(v){return v.type==="highlight"&&(this._color===void 0||v.color===this._color)};function i(v){v=v||{},this._breakType=v.breakType}i.prototype.matches=function(v){return v.type==="break"&&(this._breakType===void 0||v.breakType===this._breakType)};function e(v,h,_){return v.numbering&&v.numbering.level==h&&v.numbering.isOrdered==_}function s(v){return{operator:y,operand:v}}function d(v){return{operator:w,operand:v}}function y(v,h){return v.toUpperCase()===h.toUpperCase()}function w(v,h){return h.toUpperCase().indexOf(v.toUpperCase())===0}},{}],28:[function(P,oe,R){var M=P("underscore"),E=P("../html");R.topLevelElement=a,R.elements=g,R.element=u;function a(e,s){return g([u(e,s,{fresh:!0})])}function g(e){return new p(e.map(function(s){return M.isString(s)?u(s):s}))}function p(e){this._elements=e}p.prototype.wrap=function(s){for(var d=s(),y=this._elements.length-1;y>=0;y--)d=this._elements[y].wrapNodes(d);return d};function u(e,s,d){return d=d||{},new i(e,s,d)}function i(e,s,d){var y=Object.create(null);M.isArray(e)?(e.forEach(function(w){y[w]=!0}),e=e[0]):y[e]=!0,this.tagName=e,this.tagNames=y,this.attributes=s||{},this.fresh=d.fresh,this.separator=d.separator}i.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&M.isEqual(this.attributes||{},e.attributes||{})},i.prototype.wrap=function(s){return this.wrapNodes(s())},i.prototype.wrapNodes=function(s){return[E.elementWithTag(this,s)]},R.empty=g([]),R.ignore={wrap:function(){return[]}}},{"../html":18,underscore:67}],29:[function(P,oe,R){var M=P("lop"),E=M.RegexTokeniser;R.tokenise=g;var a="'((?:\\\\(?:.|$)|[^'\\\\])*)";function g(p){var u="(?:[a-zA-Z\\-_]|\\\\.)",i=new E([{name:"identifier",regex:new RegExp("("+u+"(?:"+u+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(a+"'")},{name:"unterminated-string",regex:new RegExp(a)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return i.tokenise(p)}},{lop:54}],30:[function(P,oe,R){var M=P("underscore");R.paragraph=E,R.run=a,R._elements=p,R._elementsOfType=g,R.getDescendantsOfType=u,R.getDescendants=i;function E(s){return g("paragraph",s)}function a(s){return g("run",s)}function g(s,d){return p(function(y){return y.type===s?d(y):y})}function p(s){return function d(y){if(y.children){var w=M.map(y.children,d);y=M.extend(y,{children:w})}return s(y)}}function u(s,d){return i(s).filter(function(y){return y.type===d})}function i(s){var d=[];return e(s,function(y){d.push(y)}),d}function e(s,d){s.children&&s.children.forEach(function(y){e(y,d),d(y)})}},{underscore:67}],31:[function(P,oe,R){var M=P("./styles/html-paths"),E=P("./html");R.element=a;function a(g){return function(p){return E.elementWithTag(M.element(g),[p])}}},{"./html":18,"./styles/html-paths":28}],32:[function(P,oe,R){var M=P("underscore");R.writer=E;function E(e){return e=e||{},e.prettyPrint?g():p()}var a={div:!0,p:!0,ul:!0,li:!0};function g(){var e=0,s=" ",d=[],y=!0,w=!1,v=p();function h(k,A){a[k]&&I(),d.push(k),v.open(k,A),a[k]&&e++,y=!1}function _(k){a[k]&&(e--,I()),d.pop(),v.close(k)}function c(k){m();var A=U()?k:k.replace(` `,` `+s);v.text(A)}function n(k,A){I(),v.selfClosing(k,A)}function r(){return d.length===0||a[d[d.length-1]]}function m(){w||(I(),w=!0)}function I(){if(w=!1,!y&&r()&&!U()){v._append(` `);for(var k=0;k")}function d(c){e.push("")}function y(c,n){var r=w(n);e.push("<"+c+r+" />")}function w(c){return M.map(c,function(n,r){return" "+r+'="'+i(n)+'"'}).join("")}function v(c){e.push(u(c))}function h(c){e.push(c)}function _(){return e.join("")}return{asString:_,open:s,close:d,text:v,selfClosing:y,_append:h}}function u(e){return e.replace(/&/g,"&").replace(//g,">")}function i(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")}},{underscore:67}],33:[function(P,oe,R){var M=P("./html-writer"),E=P("./markdown-writer");R.writer=a;function a(g){return g=g||{},g.outputFormat==="markdown"?E.writer():M.writer(g)}},{"./html-writer":32,"./markdown-writer":34}],34:[function(P,oe,R){var M=P("underscore"),E=P("./html-writer");function a(v){return g(v,v)}function g(v,h){return function(){return{start:v,end:h}}}function p(v){var h=v.href||"";return h?{start:"[",end:"]("+w(h)+")",anchorPosition:"before"}:{}}function u(v){var h=v.src||"",_=v.alt||"";return h||_?{start:"!["+w(_)+"]("+w(h)+")"}:{}}function i(v){return function(h,_){return{start:_?` `:"",end:_?"":` `,list:{isOrdered:v.isOrdered,indent:_?_.indent+1:0,count:0}}}}function e(v,h,_){h=h||{indent:0,isOrdered:!1,count:0},h.count++,_.hasClosed=!1;var c=h.isOrdered?h.count+".":"-",n=d(" ",h.indent)+c+" ";return{start:n,end:function(){if(!_.hasClosed)return _.hasClosed=!0,` `}}}var s={p:g("",` `),br:g("",` `),ul:i({isOrdered:!1}),ol:i({isOrdered:!0}),li:e,strong:a("__"),em:a("*"),a:p,img:u};(function(){for(var v=1;v<=6;v++)s["h"+v]=g(d("#",v)+" ",` `)})();function d(v,h){return new Array(h+1).join(v)}function y(){var v=[],h=[],_=null,c={};function n(A,O){O=O||{};var X=s[A]||function(){return{}},x=X(O,_,c);h.push({end:x.end,list:_}),x.list&&(_=x.list);var W=x.anchorPosition==="before";W&&r(O),v.push(x.start||""),W||r(O)}function r(A){if(A.id){var O=E.writer();O.open("a",{id:A.id}),O.close("a"),v.push(O.asString())}}function m(A){var O=h.pop();_=O.list;var X=M.isFunction(O.end)?O.end():O.end;v.push(X||"")}function I(A,O){n(A,O),m()}function U(A){v.push(w(A))}function k(){return v.join("")}return{asString:k,open:n,close:m,text:U,selfClosing:I}}R.writer=y;function w(v){return v.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}},{"./html-writer":32,underscore:67}],35:[function(P,oe,R){var M=P("./nodes");R.Element=M.Element,R.element=M.element,R.emptyElement=M.emptyElement,R.text=M.text,R.readString=P("./reader").readString,R.writeString=P("./writer").writeString},{"./nodes":36,"./reader":37,"./writer":38}],36:[function(P,oe,R){var M=P("underscore");R.Element=a,R.element=function(u,i,e){return new a(u,i,e)},R.text=function(u){return{type:"text",value:u}};var E=R.emptyElement={first:function(){return null},firstOrEmpty:function(){return E},attributes:{},children:[]};function a(u,i,e){this.type="element",this.name=u,this.attributes=i||{},this.children=e||[]}a.prototype.first=function(u){return M.find(this.children,function(i){return i.name===u})},a.prototype.firstOrEmpty=function(u){return this.first(u)||E},a.prototype.getElementsByTagName=function(u){var i=M.filter(this.children,function(e){return e.name===u});return p(i)},a.prototype.text=function(){if(this.children.length===0)return"";if(this.children.length!==1||this.children[0].type!=="text")throw new Error("Not implemented");return this.children[0].value};var g={getElementsByTagName:function(u){return p(M.flatten(this.map(function(i){return i.getElementsByTagName(u)},!0)))}};function p(u){return M.extend(u,g)}},{underscore:67}],37:[function(P,oe,R){var M=P("../promises"),E=P("underscore"),a=P("./xmldom"),g=P("./nodes"),p=g.Element;R.readString=i;var u=a.Node;function i(e,s){s=s||{};try{var d=a.parseFromString(e,"text/xml")}catch(h){return M.reject(h)}if(d.documentElement.tagName==="parsererror")return M.resolve(new Error(d.documentElement.textContent));function y(h){switch(h.nodeType){case u.ELEMENT_NODE:return w(h);case u.TEXT_NODE:return g.text(h.nodeValue)}}function w(h){var _=v(h),c=[];E.forEach(h.childNodes,function(r){var m=y(r);m&&c.push(m)});var n=Object.create(null);return E.forEach(h.attributes,function(r){n[v(r)]=r.value}),new p(_,n,c)}function v(h){if(h.namespaceURI){var _=s[h.namespaceURI],c;return _?c=_+":":c="{"+h.namespaceURI+"}",c+h.localName}else return h.localName}return M.resolve(y(d.documentElement))}},{"../promises":23,"./nodes":36,"./xmldom":39,underscore:67}],38:[function(P,oe,R){var M=P("underscore"),E=P("xmlbuilder");R.writeString=a;function a(p,u){var i=M.invert(u),e={element:d,text:g};function s(v,h){return e[h.type](v,h)}function d(v,h){var _=v.element(y(h.name),h.attributes);h.children.forEach(function(c){s(_,c)})}function y(v){var h=/^\{(.*)\}(.*)$/.exec(v);if(h){var _=i[h[1]];return _+(_===""?"":":")+h[2]}else return v}function w(v){var h=E.create(y(v.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return M.forEach(u,function(_,c){var n="xmlns"+(c===""?"":":"+c);h.attribute(n,_)}),v.children.forEach(function(_){s(h,_)}),h.end()}return w(p)}function g(p,u){p.text(u.value)}},{underscore:67,xmlbuilder:89}],39:[function(P,oe,R){var M=P("@xmldom/xmldom"),E=P("@xmldom/xmldom/lib/dom");function a(g){var p=null,u=new M.DOMParser({errorHandler:function(e,s){p={level:e,message:s}}}),i=u.parseFromString(g);if(p===null)return i;throw new Error(p.level+": "+p.message)}R.parseFromString=a,R.Node=E.Node},{"@xmldom/xmldom":45,"@xmldom/xmldom/lib/dom":43}],40:[function(P,oe,R){var M=P("base64-js"),E=P("jszip");R.openArrayBuffer=a,R.splitPath=g,R.joinPath=p;function a(u){return E.loadAsync(u).then(function(i){function e(w){return i.file(w)!==null}function s(w,v){return i.file(w).async("uint8array").then(function(h){if(v==="base64")return M.fromByteArray(h);if(v){var _=new TextDecoder(v);return _.decode(h)}else return h})}function d(w,v){i.file(w,v)}function y(){return i.generateAsync({type:"arraybuffer"})}return{exists:e,read:s,write:d,toArrayBuffer:y}})}function g(u){var i=u.lastIndexOf("/");return i===-1?{dirname:"",basename:u}:{dirname:u.substring(0,i),basename:u.substring(i+1)}}function p(){var u=Array.prototype.filter.call(arguments,function(e){return e}),i=[];return u.forEach(function(e){/^\//.test(e)?i=[e]:i.push(e)}),i.join("/")}},{"base64-js":47,jszip:53}],41:[function(P,oe,R){function M(u,i,e){if(e===void 0&&(e=Array.prototype),u&&typeof e.find=="function")return e.find.call(u,i);for(var s=0;s=r+m||r?new java.lang.String(n,r,m)+"":n}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(n){w.prototype[n]=function(){return null}});function c(n,r){n.currentElement?n.currentElement.appendChild(r):n.doc.appendChild(r)}R.__DOMHandler=w,R.normalizeLineEndings=s,R.DOMParser=d},{"./conventions":41,"./dom":43,"./entities":44,"./sax":46}],43:[function(P,oe,R){var M=P("./conventions"),E=M.find,a=M.NAMESPACE;function g(N){return N!==""}function p(N){return N?N.split(/[\t\n\f\r ]+/).filter(g):[]}function u(N,L){return N.hasOwnProperty(L)||(N[L]=!0),N}function i(N){if(!N)return[];var L=p(N);return Object.keys(L.reduce(u,{}))}function e(N){return function(L){return N&&N.indexOf(L)!==-1}}function s(N,L){for(var Z in N)Object.prototype.hasOwnProperty.call(N,Z)&&(L[Z]=N[Z])}function d(N,L){var Z=N.prototype;if(!(Z instanceof L)){let se=function(){};se.prototype=L.prototype,se=new se,s(Z,se),N.prototype=Z=se}Z.constructor!=N&&(typeof N!="function"&&console.error("unknown Class:"+N),Z.constructor=N)}var y={},w=y.ELEMENT_NODE=1,v=y.ATTRIBUTE_NODE=2,h=y.TEXT_NODE=3,_=y.CDATA_SECTION_NODE=4,c=y.ENTITY_REFERENCE_NODE=5,n=y.ENTITY_NODE=6,r=y.PROCESSING_INSTRUCTION_NODE=7,m=y.COMMENT_NODE=8,I=y.DOCUMENT_NODE=9,U=y.DOCUMENT_TYPE_NODE=10,k=y.DOCUMENT_FRAGMENT_NODE=11,A=y.NOTATION_NODE=12,O={},X={};O.INDEX_SIZE_ERR=(X[1]="Index size error",1),O.DOMSTRING_SIZE_ERR=(X[2]="DOMString size error",2);var x=O.HIERARCHY_REQUEST_ERR=(X[3]="Hierarchy request error",3);O.WRONG_DOCUMENT_ERR=(X[4]="Wrong document",4),O.INVALID_CHARACTER_ERR=(X[5]="Invalid character",5),O.NO_DATA_ALLOWED_ERR=(X[6]="No data allowed",6),O.NO_MODIFICATION_ALLOWED_ERR=(X[7]="No modification allowed",7);var W=O.NOT_FOUND_ERR=(X[8]="Not found",8);O.NOT_SUPPORTED_ERR=(X[9]="Not supported",9);var ee=O.INUSE_ATTRIBUTE_ERR=(X[10]="Attribute in use",10);O.INVALID_STATE_ERR=(X[11]="Invalid state",11),O.SYNTAX_ERR=(X[12]="Syntax error",12),O.INVALID_MODIFICATION_ERR=(X[13]="Invalid modification",13),O.NAMESPACE_ERR=(X[14]="Invalid namespace",14),O.INVALID_ACCESS_ERR=(X[15]="Invalid access",15);function B(N,L){if(L instanceof Error)var Z=L;else Z=this,Error.call(this,X[N]),this.message=X[N],Error.captureStackTrace&&Error.captureStackTrace(this,B);return Z.code=N,L&&(this.message=this.message+": "+L),Z}B.prototype=Error.prototype,s(O,B);function Y(){}Y.prototype={length:0,item:function(N){return this[N]||null},toString:function(N,L){for(var Z=[],se=0;se=0){for(var ge=L.length-1;se0},lookupPrefix:function(N){for(var L=this;L;){var Z=L._nsMap;if(Z){for(var se in Z)if(Object.prototype.hasOwnProperty.call(Z,se)&&Z[se]===N)return se}L=L.nodeType==v?L.ownerDocument:L.parentNode}return null},lookupNamespaceURI:function(N){for(var L=this;L;){var Z=L._nsMap;if(Z&&Object.prototype.hasOwnProperty.call(Z,N))return Z[N];L=L.nodeType==v?L.ownerDocument:L.parentNode}return null},isDefaultNamespace:function(N){var L=this.lookupPrefix(N);return L==null}};function Q(N){return N=="<"&&"<"||N==">"&&">"||N=="&"&&"&"||N=='"'&&"""||"&#"+N.charCodeAt()+";"}s(y,j),s(y,j.prototype);function we(N,L){if(L(N))return!0;if(N=N.firstChild)do if(we(N,L))return!0;while(N=N.nextSibling)}function he(){this.ownerDocument=this}function le(N,L,Z){N&&N._inc++;var se=Z.namespaceURI;se===a.XMLNS&&(L._nsMap[Z.prefix?Z.localName:""]=Z.value)}function Re(N,L,Z,se){N&&N._inc++;var ge=Z.namespaceURI;ge===a.XMLNS&&delete L._nsMap[Z.prefix?Z.localName:""]}function Ce(N,L,Z){if(N&&N._inc){N._inc++;var se=L.childNodes;if(Z)se[se.length++]=Z;else{for(var ge=L.firstChild,De=0;ge;)se[De++]=ge,ge=ge.nextSibling;se.length=De,delete se[se.length]}}}function be(N,L){var Z=L.previousSibling,se=L.nextSibling;return Z?Z.nextSibling=se:N.firstChild=se,se?se.previousSibling=Z:N.lastChild=Z,L.parentNode=null,L.previousSibling=null,L.nextSibling=null,Ce(N.ownerDocument,N),L}function Ie(N){return N&&(N.nodeType===j.DOCUMENT_NODE||N.nodeType===j.DOCUMENT_FRAGMENT_NODE||N.nodeType===j.ELEMENT_NODE)}function ke(N){return N&&(Le(N)||Be(N)||xe(N)||N.nodeType===j.DOCUMENT_FRAGMENT_NODE||N.nodeType===j.COMMENT_NODE||N.nodeType===j.PROCESSING_INSTRUCTION_NODE)}function xe(N){return N&&N.nodeType===j.DOCUMENT_TYPE_NODE}function Le(N){return N&&N.nodeType===j.ELEMENT_NODE}function Be(N){return N&&N.nodeType===j.TEXT_NODE}function f(N,L){var Z=N.childNodes||[];if(E(Z,Le)||xe(L))return!1;var se=E(Z,xe);return!(L&&se&&Z.indexOf(se)>Z.indexOf(L))}function $(N,L){var Z=N.childNodes||[];function se(De){return Le(De)&&De!==L}if(E(Z,se))return!1;var ge=E(Z,xe);return!(L&&ge&&Z.indexOf(ge)>Z.indexOf(L))}function V(N,L,Z){if(!Ie(N))throw new B(x,"Unexpected parent node type "+N.nodeType);if(Z&&Z.parentNode!==N)throw new B(W,"child not in parent");if(!ke(L)||xe(L)&&N.nodeType!==j.DOCUMENT_NODE)throw new B(x,"Unexpected node type "+L.nodeType+" for parent node type "+N.nodeType)}function z(N,L,Z){var se=N.childNodes||[],ge=L.childNodes||[];if(L.nodeType===j.DOCUMENT_FRAGMENT_NODE){var De=ge.filter(Le);if(De.length>1||E(ge,Be))throw new B(x,"More than one element or text in fragment");if(De.length===1&&!f(N,Z))throw new B(x,"Element in fragment can not be inserted before doctype")}if(Le(L)&&!f(N,Z))throw new B(x,"Only one element can be added and only after doctype");if(xe(L)){if(E(se,xe))throw new B(x,"Only one doctype is allowed");var Xe=E(se,Le);if(Z&&se.indexOf(Xe)1||E(ge,Be))throw new B(x,"More than one element or text in fragment");if(De.length===1&&!$(N,Z))throw new B(x,"Element in fragment can not be inserted before doctype")}if(Le(L)&&!$(N,Z))throw new B(x,"Only one element can be added and only after doctype");if(xe(L)){if(E(se,function($e){return xe($e)&&$e!==Z}))throw new B(x,"Only one doctype is allowed");var Xe=E(se,Le);if(Z&&se.indexOf(Xe)0&&we(Z.documentElement,function(ge){if(ge!==Z&&ge.nodeType===w){var De=ge.getAttribute("class");if(De){var Xe=N===De;if(!Xe){var Ve=i(De);Xe=L.every(e(Ve))}Xe&&se.push(ge)}}}),se})},createElement:function(N){var L=new D;L.ownerDocument=this,L.nodeName=N,L.tagName=N,L.localName=N,L.childNodes=new Y;var Z=L.attributes=new pe;return Z._ownerElement=L,L},createDocumentFragment:function(){var N=new ze;return N.ownerDocument=this,N.childNodes=new Y,N},createTextNode:function(N){var L=new te;return L.ownerDocument=this,L.appendData(N),L},createComment:function(N){var L=new ae;return L.ownerDocument=this,L.appendData(N),L},createCDATASection:function(N){var L=new de;return L.ownerDocument=this,L.appendData(N),L},createProcessingInstruction:function(N,L){var Z=new He;return Z.ownerDocument=this,Z.tagName=Z.target=N,Z.nodeValue=Z.data=L,Z},createAttribute:function(N){var L=new C;return L.ownerDocument=this,L.name=N,L.nodeName=N,L.localName=N,L.specified=!0,L},createEntityReference:function(N){var L=new Ue;return L.ownerDocument=this,L.nodeName=N,L},createElementNS:function(N,L){var Z=new D,se=L.split(":"),ge=Z.attributes=new pe;return Z.childNodes=new Y,Z.ownerDocument=this,Z.nodeName=L,Z.tagName=L,Z.namespaceURI=N,se.length==2?(Z.prefix=se[0],Z.localName=se[1]):Z.localName=L,ge._ownerElement=Z,Z},createAttributeNS:function(N,L){var Z=new C,se=L.split(":");return Z.ownerDocument=this,Z.nodeName=L,Z.name=L,Z.namespaceURI=N,Z.specified=!0,se.length==2?(Z.prefix=se[0],Z.localName=se[1]):Z.localName=L,Z}},d(he,j);function D(){this._nsMap={}}D.prototype={nodeType:w,hasAttribute:function(N){return this.getAttributeNode(N)!=null},getAttribute:function(N){var L=this.getAttributeNode(N);return L&&L.value||""},getAttributeNode:function(N){return this.attributes.getNamedItem(N)},setAttribute:function(N,L){var Z=this.ownerDocument.createAttribute(N);Z.value=Z.nodeValue=""+L,this.setAttributeNode(Z)},removeAttribute:function(N){var L=this.getAttributeNode(N);L&&this.removeAttributeNode(L)},appendChild:function(N){return N.nodeType===k?this.insertBefore(N,null):o(this,N)},setAttributeNode:function(N){return this.attributes.setNamedItem(N)},setAttributeNodeNS:function(N){return this.attributes.setNamedItemNS(N)},removeAttributeNode:function(N){return this.attributes.removeNamedItem(N.nodeName)},removeAttributeNS:function(N,L){var Z=this.getAttributeNodeNS(N,L);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function(N,L){return this.getAttributeNodeNS(N,L)!=null},getAttributeNS:function(N,L){var Z=this.getAttributeNodeNS(N,L);return Z&&Z.value||""},setAttributeNS:function(N,L,Z){var se=this.ownerDocument.createAttributeNS(N,L);se.value=se.nodeValue=""+Z,this.setAttributeNode(se)},getAttributeNodeNS:function(N,L){return this.attributes.getNamedItemNS(N,L)},getElementsByTagName:function(N){return new T(this,function(L){var Z=[];return we(L,function(se){se!==L&&se.nodeType==w&&(N==="*"||se.tagName==N)&&Z.push(se)}),Z})},getElementsByTagNameNS:function(N,L){return new T(this,function(Z){var se=[];return we(Z,function(ge){ge!==Z&&ge.nodeType===w&&(N==="*"||ge.namespaceURI===N)&&(L==="*"||ge.localName==L)&&se.push(ge)}),se})}},he.prototype.getElementsByTagName=D.prototype.getElementsByTagName,he.prototype.getElementsByTagNameNS=D.prototype.getElementsByTagNameNS,d(D,j);function C(){}C.prototype.nodeType=v,d(C,j);function G(){}G.prototype={data:"",substringData:function(N,L){return this.data.substring(N,N+L)},appendData:function(N){N=this.data+N,this.nodeValue=this.data=N,this.length=N.length},insertData:function(N,L){this.replaceData(N,0,L)},appendChild:function(N){throw new Error(X[x])},deleteData:function(N,L){this.replaceData(N,L,"")},replaceData:function(N,L,Z){var se=this.data.substring(0,N),ge=this.data.substring(N+L);Z=se+Z+ge,this.nodeValue=this.data=Z,this.length=Z.length}},d(G,j);function te(){}te.prototype={nodeName:"#text",nodeType:h,splitText:function(N){var L=this.data,Z=L.substring(N);L=L.substring(0,N),this.data=this.nodeValue=L,this.length=L.length;var se=this.ownerDocument.createTextNode(Z);return this.parentNode&&this.parentNode.insertBefore(se,this.nextSibling),se}},d(te,G);function ae(){}ae.prototype={nodeName:"#comment",nodeType:m},d(ae,G);function de(){}de.prototype={nodeName:"#cdata-section",nodeType:_},d(de,G);function Te(){}Te.prototype.nodeType=U,d(Te,j);function me(){}me.prototype.nodeType=A,d(me,j);function Ae(){}Ae.prototype.nodeType=n,d(Ae,j);function Ue(){}Ue.prototype.nodeType=c,d(Ue,j);function ze(){}ze.prototype.nodeName="#document-fragment",ze.prototype.nodeType=k,d(ze,j);function He(){}He.prototype.nodeType=r,d(He,j);function re(){}re.prototype.serializeToString=function(N,L,Z){return fe.call(N,L,Z)},j.prototype.toString=fe;function fe(N,L){var Z=[],se=this.nodeType==9&&this.documentElement||this,ge=se.prefix,De=se.namespaceURI;if(De&&ge==null){var ge=se.lookupPrefix(De);if(ge==null)var Xe=[{namespace:De,prefix:null}]}return Se(this,Z,N,L,Xe),Z.join("")}function _e(N,L,Z){var se=N.prefix||"",ge=N.namespaceURI;if(!ge||se==="xml"&&ge===a.XML||ge===a.XMLNS)return!1;for(var De=Z.length;De--;){var Xe=Z[De];if(Xe.prefix===se)return Xe.namespace!==ge}return!0}function Ee(N,L,Z){N.push(" ",L,'="',Z.replace(/[<>&"\t\n\r]/g,Q),'"')}function Se(N,L,Z,se,ge){if(ge||(ge=[]),se)if(N=se(N),N){if(typeof N=="string"){L.push(N);return}}else return;switch(N.nodeType){case w:var De=N.attributes,Xe=De.length,We=N.firstChild,Ve=N.tagName;Z=a.isHTML(N.namespaceURI)||Z;var $e=Ve;if(!Z&&!N.prefix&&N.namespaceURI){for(var Qe,qe=0;qe=0;et--){var rt=ge[et];if(rt.prefix===""&&rt.namespace===N.namespaceURI){Qe=rt.namespace;break}}if(Qe!==N.namespaceURI)for(var et=ge.length-1;et>=0;et--){var rt=ge[et];if(rt.namespace===N.namespaceURI){rt.prefix&&($e=rt.prefix+":"+Ve);break}}}L.push("<",$e);for(var nt=0;nt"),Z&&/^script$/i.test(Ve))for(;We;)We.data?L.push(We.data):Se(We,L,Z,se,ge.slice()),We=We.nextSibling;else for(;We;)Se(We,L,Z,se,ge.slice()),We=We.nextSibling;L.push("")}else L.push("/>");return;case I:case k:for(var We=N.firstChild;We;)Se(We,L,Z,se,ge.slice()),We=We.nextSibling;return;case v:return Ee(L,N.name,N.value);case h:return L.push(N.data.replace(/[<&>]/g,Q));case _:return L.push("");case m:return L.push("");case U:var mt=N.publicId,tt=N.systemId;if(L.push("");else if(tt&&tt!=".")L.push(" SYSTEM ",tt,">");else{var ft=N.internalSubset;ft&&L.push(" [",ft,"]"),L.push(">")}return;case r:return L.push("");case c:return L.push("&",N.nodeName,";");default:L.push("??",N.nodeName)}}function Me(N,L,Z){var se;switch(L.nodeType){case w:se=L.cloneNode(!1),se.ownerDocument=N;case k:break;case v:Z=!0;break}if(se||(se=L.cloneNode(!1)),se.ownerDocument=N,se.parentNode=null,Z)for(var ge=L.firstChild;ge;)se.appendChild(Me(N,ge,Z)),ge=ge.nextSibling;return se}function Pe(N,L,Z){var se=new L.constructor;for(var ge in L)if(Object.prototype.hasOwnProperty.call(L,ge)){var De=L[ge];typeof De!="object"&&De!=se[ge]&&(se[ge]=De)}switch(L.childNodes&&(se.childNodes=new Y),se.ownerDocument=N,se.nodeType){case w:var Xe=L.attributes,Ve=se.attributes=new pe,$e=Xe.length;Ve._ownerElement=se;for(var Qe=0;Qe<$e;Qe++)se.setAttributeNode(Pe(N,Xe.item(Qe),!0));break;case v:Z=!0}if(Z)for(var qe=L.firstChild;qe;)se.appendChild(Pe(N,qe,Z)),qe=qe.nextSibling;return se}function Fe(N,L,Z){N[L]=Z}try{if(Object.defineProperty){let N=function(L){switch(L.nodeType){case w:case k:var Z=[];for(L=L.firstChild;L;)L.nodeType!==7&&L.nodeType!==8&&Z.push(N(L)),L=L.nextSibling;return Z.join("");default:return L.nodeValue}};var Ze=N;Object.defineProperty(T.prototype,"length",{get:function(){return K(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return N(this)},set:function(L){switch(this.nodeType){case w:case k:for(;this.firstChild;)this.removeChild(this.firstChild);(L||String(L))&&this.appendChild(this.ownerDocument.createTextNode(L));break;default:this.data=L,this.value=L,this.nodeValue=L}}}),Fe=function(L,Z,se){L["$$"+Z]=se}}}catch{}R.DocumentType=Te,R.DOMException=B,R.DOMImplementation=ve,R.Element=D,R.Node=j,R.NodeList=Y,R.XMLSerializer=re},{"./conventions":41}],44:[function(P,oe,R){var M=P("./conventions").freeze;R.XML_ENTITIES=M({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),R.HTML_ENTITIES=M({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",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:"Þ",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:"♦"}),R.entityMap=R.HTML_ENTITIES},{"./conventions":41}],45:[function(P,oe,R){var M=P("./dom");R.DOMImplementation=M.DOMImplementation,R.XMLSerializer=M.XMLSerializer,R.DOMParser=P("./dom-parser").DOMParser},{"./dom":43,"./dom-parser":42}],46:[function(P,oe,R){var M=P("./conventions").NAMESPACE,E=/[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]/,a=new RegExp("[\\-\\.0-9"+E.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),g=new RegExp("^"+E.source+a.source+"*(?::"+E.source+a.source+"*)?$"),p=0,u=1,i=2,e=3,s=4,d=5,y=6,w=7;function v(x,W){this.message=x,this.locator=W,Error.captureStackTrace&&Error.captureStackTrace(this,v)}v.prototype=new Error,v.prototype.name=v.name;function h(){}h.prototype={parse:function(x,W,ee){var B=this.domBuilder;B.startDocument(),U(W,W={}),_(x,W,ee,B,this.errorHandler),B.endDocument()}};function _(x,W,ee,B,Y){function T(D){if(D>65535){D-=65536;var C=55296+(D>>10),G=56320+(D&1023);return String.fromCharCode(C,G)}else return String.fromCharCode(D)}function K(D){var C=D.slice(1,-1);return Object.hasOwnProperty.call(ee,C)?ee[C]:C.charAt(0)==="#"?T(parseInt(C.substr(1).replace("x","0x"))):(Y.error("entity not found:"+D),D)}function pe(D){if(D>he){var C=x.substring(he,D).replace(/&#?\w+;/g,K);j&&ne(he),B.characters(C,0,D-he),he=D}}function ne(D,C){for(;D>=ie&&(C=ve.exec(x));)ce=C.index,ie=ce+C[0].length,j.lineNumber++;j.columnNumber=D-ce+1}for(var ce=0,ie=0,ve=/.*(?:\r\n?|\n)|.*$/g,j=B.locator,Q=[{currentNSMap:W}],we={},he=0;;){try{var le=x.indexOf("<",he);if(le<0){if(!x.substr(he).match(/^\s*$/)){var Re=B.doc,Ce=Re.createTextNode(x.substr(he));Re.appendChild(Ce),B.currentElement=Ce}return}switch(le>he&&pe(le),x.charAt(le+1)){case"/":var V=x.indexOf(">",le+3),be=x.substring(le+2,V).replace(/[ \t\n\r]+$/g,""),Ie=Q.pop();V<0?(be=x.substring(le+2).replace(/[\s<].*/,""),Y.error("end tag name: "+be+" is not complete:"+Ie.tagName),V=le+1+be.length):be.match(/\she?he=V:pe(Math.max(le,he)+1)}}function c(x,W){return W.lineNumber=x.lineNumber,W.columnNumber=x.columnNumber,W}function n(x,W,ee,B,Y,T){function K(j,Q,we){ee.attributeNames.hasOwnProperty(j)&&T.fatalError("Attribute "+j+" redefined"),ee.addValue(j,Q.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,Y),we)}for(var pe,ne,ce=++W,ie=p;;){var ve=x.charAt(ce);switch(ve){case"=":if(ie===u)pe=x.slice(W,ce),ie=e;else if(ie===i)ie=e;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ie===e||ie===u)if(ie===u&&(T.warning('attribute value must after "="'),pe=x.slice(W,ce)),W=ce+1,ce=x.indexOf(ve,W),ce>0)ne=x.slice(W,ce),K(pe,ne,W-1),ie=d;else throw new Error("attribute value no end '"+ve+"' match");else if(ie==s)ne=x.slice(W,ce),K(pe,ne,W),T.warning('attribute "'+pe+'" missed start quot('+ve+")!!"),W=ce+1,ie=d;else throw new Error('attribute value must after "="');break;case"/":switch(ie){case p:ee.setTagName(x.slice(W,ce));case d:case y:case w:ie=w,ee.closed=!0;case s:case u:case i:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return T.error("unexpected end of input"),ie==p&&ee.setTagName(x.slice(W,ce)),ce;case">":switch(ie){case p:ee.setTagName(x.slice(W,ce));case d:case y:case w:break;case s:case u:ne=x.slice(W,ce),ne.slice(-1)==="/"&&(ee.closed=!0,ne=ne.slice(0,-1));case i:ie===i&&(ne=pe),ie==s?(T.warning('attribute "'+ne+'" missed quot(")!'),K(pe,ne,W)):((!M.isHTML(B[""])||!ne.match(/^(?:disabled|checked|selected)$/i))&&T.warning('attribute "'+ne+'" missed value!! "'+ne+'" instead!!'),K(ne,ne,W));break;case e:throw new Error("attribute value missed!!")}return ce;case"€":ve=" ";default:if(ve<=" ")switch(ie){case p:ee.setTagName(x.slice(W,ce)),ie=y;break;case u:pe=x.slice(W,ce),ie=i;break;case s:var ne=x.slice(W,ce);T.warning('attribute "'+ne+'" missed quot(")!!'),K(pe,ne,W);case d:ie=y;break}else switch(ie){case i:ee.tagName,(!M.isHTML(B[""])||!pe.match(/^(?:disabled|checked|selected)$/i))&&T.warning('attribute "'+pe+'" missed value!! "'+pe+'" instead2!!'),K(pe,pe,W),W=ce,ie=u;break;case d:T.warning('attribute space is required"'+pe+'"!!');case y:ie=u,W=ce;break;case e:ie=s,W=ce;break;case w:throw new Error("elements closed character '/' and '>' must be connected to")}}ce++}}function r(x,W,ee){for(var B=x.tagName,Y=null,ve=x.length;ve--;){var T=x[ve],K=T.qName,pe=T.value,j=K.indexOf(":");if(j>0)var ne=T.prefix=K.slice(0,j),ce=K.slice(j+1),ie=ne==="xmlns"&&ce;else ce=K,ne=null,ie=K==="xmlns"&&"";T.localName=ce,ie!==!1&&(Y==null&&(Y={},U(ee,ee={})),ee[ie]=Y[ie]=pe,T.uri=M.XMLNS,W.startPrefixMapping(ie,pe))}for(var ve=x.length;ve--;){T=x[ve];var ne=T.prefix;ne&&(ne==="xml"&&(T.uri=M.XML),ne!=="xmlns"&&(T.uri=ee[ne||""]))}var j=B.indexOf(":");j>0?(ne=x.prefix=B.slice(0,j),ce=x.localName=B.slice(j+1)):(ne=null,ce=x.localName=B);var Q=x.uri=ee[ne||""];if(W.startElement(Q,ce,B,x),x.closed){if(W.endElement(Q,ce,B),Y)for(ne in Y)Object.prototype.hasOwnProperty.call(Y,ne)&&W.endPrefixMapping(ne)}else return x.currentNSMap=ee,x.localNSMap=Y,!0}function m(x,W,ee,B,Y){if(/^(?:script|textarea)$/i.test(ee)){var T=x.indexOf("",W),K=x.substring(W+1,T);if(/[&<]/.test(K))return/^script$/i.test(ee)?(Y.characters(K,0,K.length),T):(K=K.replace(/&#?\w+;/g,B),Y.characters(K,0,K.length),T)}return W+1}function I(x,W,ee,B){var Y=B[ee];return Y==null&&(Y=x.lastIndexOf(""),Y",W+4);return T>W?(ee.comment(x,W+4,T-W-4),T+3):(B.error("Unclosed comment"),-1)}else return-1;default:if(x.substr(W+3,6)=="CDATA["){var T=x.indexOf("]]>",W+9);return ee.startCDATA(),ee.characters(x,W+9,T-W-9),ee.endCDATA(),T+3}var K=X(x,W),pe=K.length;if(pe>1&&/!doctype/i.test(K[0][0])){var ne=K[1][0],ce=!1,ie=!1;pe>3&&(/^public$/i.test(K[2][0])?(ce=K[3][0],ie=pe>4&&K[4][0]):/^system$/i.test(K[2][0])&&(ie=K[3][0]));var ve=K[pe-1];return ee.startDTD(ne,ce,ie),ee.endDTD(),ve.index+ve[0].length}}return-1}function A(x,W,ee){var B=x.indexOf("?>",W);if(B){var Y=x.substring(W,B).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return Y?(Y[0].length,ee.processingInstruction(Y[1],Y[2]),B+2):-1}return-1}function O(){this.attributeNames={}}O.prototype={setTagName:function(x){if(!g.test(x))throw new Error("invalid tagName:"+x);this.tagName=x},addValue:function(x,W,ee){if(!g.test(x))throw new Error("invalid attribute:"+x);this.attributeNames[x]=this.length,this[this.length++]={qName:x,value:W,offset:ee}},length:0,getLocalName:function(x){return this[x].localName},getLocator:function(x){return this[x].locator},getQName:function(x){return this[x].qName},getURI:function(x){return this[x].uri},getValue:function(x){return this[x].value}};function X(x,W){var ee,B=[],Y=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(Y.lastIndex=W,Y.exec(x);ee=Y.exec(x);)if(B.push(ee),ee[1])return B}R.XMLReader=h,R.ParseError=v},{"./conventions":41}],47:[function(P,oe,R){R.byteLength=e,R.toByteArray=d,R.fromByteArray=v;for(var M=[],E=[],a=typeof Uint8Array<"u"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,u=g.length;p0)throw new Error("Invalid string. Length must be a multiple of 4");var c=h.indexOf("=");c===-1&&(c=_);var n=c===_?0:4-c%4;return[c,n]}function e(h){var _=i(h),c=_[0],n=_[1];return(c+n)*3/4-n}function s(h,_,c){return(_+c)*3/4-c}function d(h){var _,c=i(h),n=c[0],r=c[1],m=new a(s(h,n,r)),I=0,U=r>0?n-4:n,k;for(k=0;k>16&255,m[I++]=_>>8&255,m[I++]=_&255;return r===2&&(_=E[h.charCodeAt(k)]<<2|E[h.charCodeAt(k+1)]>>4,m[I++]=_&255),r===1&&(_=E[h.charCodeAt(k)]<<10|E[h.charCodeAt(k+1)]<<4|E[h.charCodeAt(k+2)]>>2,m[I++]=_>>8&255,m[I++]=_&255),m}function y(h){return M[h>>18&63]+M[h>>12&63]+M[h>>6&63]+M[h&63]}function w(h,_,c){for(var n,r=[],m=_;mU?U:I+m));return n===1?(_=h[c-1],r.push(M[_>>2]+M[_<<4&63]+"==")):n===2&&(_=(h[c-2]<<8)+h[c-1],r.push(M[_>>10]+M[_>>4&63]+M[_<<2&63]+"=")),r.join("")}},{}],48:[function(P,oe,R){(function(M){var E=P("base64-js"),a=P("ieee754"),g=P("isarray");R.Buffer=e,R.SlowBuffer=r,R.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=M.TYPED_ARRAY_SUPPORT!==void 0?M.TYPED_ARRAY_SUPPORT:p(),R.kMaxLength=u();function p(){try{var l=new Uint8Array(1);return l.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},l.foo()===42&&typeof l.subarray=="function"&&l.subarray(1,1).byteLength===0}catch{return!1}}function u(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(l,t){if(u()=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return l|0}function r(l){return+l!=l&&(l=0),e.alloc(+l)}e.isBuffer=function(t){return!!(t!=null&&t._isBuffer)},e.compare=function(t,o){if(!e.isBuffer(t)||!e.isBuffer(o))throw new TypeError("Arguments must be Buffers");if(t===o)return 0;for(var D=t.length,C=o.length,G=0,te=Math.min(D,C);G>>1;case"base64":return $(l).length;default:if(D)return Le(l).length;t=(""+t).toLowerCase(),D=!0}}e.byteLength=m;function I(l,t,o){var D=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,t>>>=0,o<=t))return"";for(l||(l="utf8");;)switch(l){case"hex":return ie(this,t,o);case"utf8":case"utf-8":return T(this,t,o);case"ascii":return ne(this,t,o);case"latin1":case"binary":return ce(this,t,o);case"base64":return Y(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,t,o);default:if(D)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),D=!0}}e.prototype._isBuffer=!0;function U(l,t,o){var D=l[t];l[t]=l[o],l[o]=D}e.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var o=0;o0&&(t=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(t+=" ... ")),""},e.prototype.compare=function(t,o,D,C,G){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(o===void 0&&(o=0),D===void 0&&(D=t?t.length:0),C===void 0&&(C=0),G===void 0&&(G=this.length),o<0||D>t.length||C<0||G>this.length)throw new RangeError("out of range index");if(C>=G&&o>=D)return 0;if(C>=G)return-1;if(o>=D)return 1;if(o>>>=0,D>>>=0,C>>>=0,G>>>=0,this===t)return 0;for(var te=G-C,ae=D-o,de=Math.min(te,ae),Te=this.slice(C,G),me=t.slice(o,D),Ae=0;Ae2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=C?0:l.length-1),o<0&&(o=l.length+o),o>=l.length){if(C)return-1;o=l.length-1}else if(o<0)if(C)o=0;else return-1;if(typeof t=="string"&&(t=e.from(t,D)),e.isBuffer(t))return t.length===0?-1:A(l,t,o,D,C);if(typeof t=="number")return t=t&255,e.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(l,t,o):Uint8Array.prototype.lastIndexOf.call(l,t,o):A(l,[t],o,D,C);throw new TypeError("val must be string, number or Buffer")}function A(l,t,o,D,C){var G=1,te=l.length,ae=t.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(l.length<2||t.length<2)return-1;G=2,te/=2,ae/=2,o/=2}function de(ze,He){return G===1?ze[He]:ze.readUInt16BE(He*G)}var Te;if(C){var me=-1;for(Te=o;Tete&&(o=te-ae),Te=o;Te>=0;Te--){for(var Ae=!0,Ue=0;UeC&&(D=C)):D=C;var G=t.length;if(G%2!==0)throw new TypeError("Invalid hex string");D>G/2&&(D=G/2);for(var te=0;teG)&&(D=G),t.length>0&&(D<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");for(var te=!1;;)switch(C){case"hex":return O(this,t,o,D);case"utf8":case"utf-8":return X(this,t,o,D);case"ascii":return x(this,t,o,D);case"latin1":case"binary":return W(this,t,o,D);case"base64":return ee(this,t,o,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,o,D);default:if(te)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),te=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(l,t,o){return t===0&&o===l.length?E.fromByteArray(l):E.fromByteArray(l.slice(t,o))}function T(l,t,o){o=Math.min(l.length,o);for(var D=[],C=t;C239?4:G>223?3:G>191?2:1;if(C+ae<=o){var de,Te,me,Ae;switch(ae){case 1:G<128&&(te=G);break;case 2:de=l[C+1],(de&192)===128&&(Ae=(G&31)<<6|de&63,Ae>127&&(te=Ae));break;case 3:de=l[C+1],Te=l[C+2],(de&192)===128&&(Te&192)===128&&(Ae=(G&15)<<12|(de&63)<<6|Te&63,Ae>2047&&(Ae<55296||Ae>57343)&&(te=Ae));break;case 4:de=l[C+1],Te=l[C+2],me=l[C+3],(de&192)===128&&(Te&192)===128&&(me&192)===128&&(Ae=(G&15)<<18|(de&63)<<12|(Te&63)<<6|me&63,Ae>65535&&Ae<1114112&&(te=Ae))}}te===null?(te=65533,ae=1):te>65535&&(te-=65536,D.push(te>>>10&1023|55296),te=56320|te&1023),D.push(te),C+=ae}return pe(D)}var K=4096;function pe(l){var t=l.length;if(t<=K)return String.fromCharCode.apply(String,l);for(var o="",D=0;DD)&&(o=D);for(var C="",G=t;GD&&(t=D),o<0?(o+=D,o<0&&(o=0)):o>D&&(o=D),oo)throw new RangeError("Trying to access beyond buffer length")}e.prototype.readUIntLE=function(t,o,D){t=t|0,o=o|0,D||j(t,o,this.length);for(var C=this[t],G=1,te=0;++te0&&(G*=256);)C+=this[t+--o]*G;return C},e.prototype.readUInt8=function(t,o){return o||j(t,1,this.length),this[t]},e.prototype.readUInt16LE=function(t,o){return o||j(t,2,this.length),this[t]|this[t+1]<<8},e.prototype.readUInt16BE=function(t,o){return o||j(t,2,this.length),this[t]<<8|this[t+1]},e.prototype.readUInt32LE=function(t,o){return o||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},e.prototype.readUInt32BE=function(t,o){return o||j(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},e.prototype.readIntLE=function(t,o,D){t=t|0,o=o|0,D||j(t,o,this.length);for(var C=this[t],G=1,te=0;++te=G&&(C-=Math.pow(2,8*o)),C},e.prototype.readIntBE=function(t,o,D){t=t|0,o=o|0,D||j(t,o,this.length);for(var C=o,G=1,te=this[t+--C];C>0&&(G*=256);)te+=this[t+--C]*G;return G*=128,te>=G&&(te-=Math.pow(2,8*o)),te},e.prototype.readInt8=function(t,o){return o||j(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},e.prototype.readInt16LE=function(t,o){o||j(t,2,this.length);var D=this[t]|this[t+1]<<8;return D&32768?D|4294901760:D},e.prototype.readInt16BE=function(t,o){o||j(t,2,this.length);var D=this[t+1]|this[t]<<8;return D&32768?D|4294901760:D},e.prototype.readInt32LE=function(t,o){return o||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},e.prototype.readInt32BE=function(t,o){return o||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},e.prototype.readFloatLE=function(t,o){return o||j(t,4,this.length),a.read(this,t,!0,23,4)},e.prototype.readFloatBE=function(t,o){return o||j(t,4,this.length),a.read(this,t,!1,23,4)},e.prototype.readDoubleLE=function(t,o){return o||j(t,8,this.length),a.read(this,t,!0,52,8)},e.prototype.readDoubleBE=function(t,o){return o||j(t,8,this.length),a.read(this,t,!1,52,8)};function Q(l,t,o,D,C,G){if(!e.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>C||tl.length)throw new RangeError("Index out of range")}e.prototype.writeUIntLE=function(t,o,D,C){if(t=+t,o=o|0,D=D|0,!C){var G=Math.pow(2,8*D)-1;Q(this,t,o,D,G,0)}var te=1,ae=0;for(this[o]=t&255;++ae=0&&(ae*=256);)this[o+te]=t/ae&255;return o+D},e.prototype.writeUInt8=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[o]=t&255,o+1};function we(l,t,o,D){t<0&&(t=65535+t+1);for(var C=0,G=Math.min(l.length-o,2);C>>(D?C:1-C)*8}e.prototype.writeUInt16LE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[o]=t&255,this[o+1]=t>>>8):we(this,t,o,!0),o+2},e.prototype.writeUInt16BE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=t&255):we(this,t,o,!1),o+2};function he(l,t,o,D){t<0&&(t=4294967295+t+1);for(var C=0,G=Math.min(l.length-o,4);C>>(D?C:3-C)*8&255}e.prototype.writeUInt32LE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[o+3]=t>>>24,this[o+2]=t>>>16,this[o+1]=t>>>8,this[o]=t&255):he(this,t,o,!0),o+4},e.prototype.writeUInt32BE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=t&255):he(this,t,o,!1),o+4},e.prototype.writeIntLE=function(t,o,D,C){if(t=+t,o=o|0,!C){var G=Math.pow(2,8*D-1);Q(this,t,o,D,G-1,-G)}var te=0,ae=1,de=0;for(this[o]=t&255;++te>0)-de&255;return o+D},e.prototype.writeIntBE=function(t,o,D,C){if(t=+t,o=o|0,!C){var G=Math.pow(2,8*D-1);Q(this,t,o,D,G-1,-G)}var te=D-1,ae=1,de=0;for(this[o+te]=t&255;--te>=0&&(ae*=256);)t<0&&de===0&&this[o+te+1]!==0&&(de=1),this[o+te]=(t/ae>>0)-de&255;return o+D},e.prototype.writeInt8=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[o]=t&255,o+1},e.prototype.writeInt16LE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[o]=t&255,this[o+1]=t>>>8):we(this,t,o,!0),o+2},e.prototype.writeInt16BE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[o]=t>>>8,this[o+1]=t&255):we(this,t,o,!1),o+2},e.prototype.writeInt32LE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[o]=t&255,this[o+1]=t>>>8,this[o+2]=t>>>16,this[o+3]=t>>>24):he(this,t,o,!0),o+4},e.prototype.writeInt32BE=function(t,o,D){return t=+t,o=o|0,D||Q(this,t,o,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[o]=t>>>24,this[o+1]=t>>>16,this[o+2]=t>>>8,this[o+3]=t&255):he(this,t,o,!1),o+4};function le(l,t,o,D,C,G){if(o+D>l.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function Re(l,t,o,D,C){return C||le(l,t,o,4),a.write(l,t,o,D,23,4),o+4}e.prototype.writeFloatLE=function(t,o,D){return Re(this,t,o,!0,D)},e.prototype.writeFloatBE=function(t,o,D){return Re(this,t,o,!1,D)};function Ce(l,t,o,D,C){return C||le(l,t,o,8),a.write(l,t,o,D,52,8),o+8}e.prototype.writeDoubleLE=function(t,o,D){return Ce(this,t,o,!0,D)},e.prototype.writeDoubleBE=function(t,o,D){return Ce(this,t,o,!1,D)},e.prototype.copy=function(t,o,D,C){if(D||(D=0),!C&&C!==0&&(C=this.length),o>=t.length&&(o=t.length),o||(o=0),C>0&&C=this.length)throw new RangeError("sourceStart out of bounds");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),t.length-o=0;--te)t[te+o]=this[te+D];else if(G<1e3||!e.TYPED_ARRAY_SUPPORT)for(te=0;te>>0,D=D===void 0?this.length:D>>>0,t||(t=0);var te;if(typeof t=="number")for(te=o;te55295&&o<57344){if(!C){if(o>56319){(t-=3)>-1&&G.push(239,191,189);continue}else if(te+1===D){(t-=3)>-1&&G.push(239,191,189);continue}C=o;continue}if(o<56320){(t-=3)>-1&&G.push(239,191,189),C=o;continue}o=(C-55296<<10|o-56320)+65536}else C&&(t-=3)>-1&&G.push(239,191,189);if(C=null,o<128){if((t-=1)<0)break;G.push(o)}else if(o<2048){if((t-=2)<0)break;G.push(o>>6|192,o&63|128)}else if(o<65536){if((t-=3)<0)break;G.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((t-=4)<0)break;G.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return G}function Be(l){for(var t=[],o=0;o>8,C=o%256,G.push(C),G.push(D);return G}function $(l){return E.toByteArray(Ie(l))}function V(l,t,o,D){for(var C=0;C=t.length||C>=l.length);++C)t[C+o]=l[C];return C}function z(l){return l!==l}}).call(this,typeof dt<"u"?dt:typeof self<"u"?self:typeof window<"u"?window:{})},{"base64-js":47,ieee754:51,isarray:52}],49:[function(P,oe,R){Object.defineProperty(R,"__esModule",{value:!0});var M={SYMBOL:{32:32,33:33,34:8704,35:35,36:8707,37:37,38:38,39:8717,40:40,41:41,42:42,43:43,44:44,45:8722,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:8773,65:913,66:914,67:935,68:916,69:917,70:934,71:915,72:919,73:921,74:977,75:922,76:923,77:924,78:925,79:927,80:928,81:920,82:929,83:931,84:932,85:933,86:962,87:937,88:926,89:936,90:918,91:91,92:8756,93:93,94:8869,95:95,96:8254,97:945,98:946,99:967,100:948,101:949,102:966,103:947,104:951,105:953,106:981,107:954,108:955,109:956,110:957,111:959,112:960,113:952,114:961,115:963,116:964,117:965,118:982,119:969,120:958,121:968,122:950,123:123,124:124,125:125,126:126,160:8364,161:978,162:8242,163:8804,164:8260,165:8734,166:402,167:9827,168:9830,169:9829,170:9824,171:8596,172:8592,173:8593,174:8594,175:8595,176:176,177:177,178:8243,179:8805,180:215,181:8733,182:8706,183:8226,184:247,185:8800,186:8801,187:8776,188:8230,189:9168,190:9135,191:8629,192:8501,193:8465,194:8476,195:8472,196:8855,197:8853,198:8709,199:8745,200:8746,201:8835,202:8839,203:8836,204:8834,205:8838,206:8712,207:8713,208:8736,209:8711,210:174,211:169,212:8482,213:8719,214:8730,215:8901,216:172,217:8743,218:8744,219:8660,220:8656,221:8657,222:8658,223:8659,224:9674,225:12296,226:174,227:169,228:8482,229:8721,230:9115,231:9116,232:9117,233:9121,234:9122,235:9123,236:9127,237:9128,238:9129,239:9130,240:63743,241:12297,242:8747,243:8992,244:9134,245:8993,246:9118,247:9119,248:9120,249:9124,250:9125,251:9126,252:9131,253:9132,254:9133},WEBDINGS:{32:32,33:128375,34:128376,35:128370,36:128374,37:127942,38:127894,39:128391,40:128488,41:128489,42:128496,43:128497,44:127798,45:127895,46:128638,47:128636,48:128469,49:128470,50:128471,51:9204,52:9205,53:9206,54:9207,55:9194,56:9193,57:9198,58:9197,59:9208,60:9209,61:9210,62:128474,63:128499,64:128736,65:127959,66:127960,67:127961,68:127962,69:127964,70:127981,71:127963,72:127968,73:127958,74:127965,75:128739,76:128269,77:127956,78:128065,79:128066,80:127966,81:127957,82:128740,83:127967,84:128755,85:128364,86:128363,87:128360,88:128264,89:127892,90:127893,91:128492,92:128637,93:128493,94:128490,95:128491,96:11156,97:10004,98:128690,99:11036,100:128737,101:128230,102:128753,103:11035,104:128657,105:128712,106:128745,107:128752,108:128968,109:128372,110:11044,111:128741,112:128660,113:128472,114:128473,115:10067,116:128754,117:128647,118:128653,119:9971,120:10680,121:8854,122:128685,123:128494,124:9168,125:128495,126:128498,128:128697,129:128698,130:128713,131:128714,132:128700,133:128125,134:127947,135:9975,136:127938,137:127948,138:127946,139:127940,140:127949,141:127950,142:128664,143:128480,144:128738,145:128176,146:127991,147:128179,148:128106,149:128481,150:128482,151:128483,152:10031,153:128388,154:128389,155:128387,156:128390,157:128441,158:128442,159:128443,160:128373,161:128368,162:128445,163:128446,164:128203,165:128466,166:128467,167:128366,168:128218,169:128478,170:128479,171:128451,172:128450,173:128444,174:127917,175:127900,176:127896,177:127897,178:127911,179:128191,180:127902,181:128247,182:127903,183:127916,184:128253,185:128249,186:128254,187:128251,188:127898,189:127899,190:128250,191:128187,192:128421,193:128422,194:128423,195:128377,196:127918,197:128379,198:128380,199:128223,200:128385,201:128384,202:128424,203:128425,204:128447,205:128426,206:128476,207:128274,208:128275,209:128477,210:128229,211:128228,212:128371,213:127779,214:127780,215:127781,216:127782,217:9729,218:127784,219:127783,220:127785,221:127786,222:127788,223:127787,224:127772,225:127777,226:128715,227:128719,228:127869,229:127864,230:128718,231:128717,232:9413,233:9855,234:128710,235:128392,236:127891,237:128484,238:128485,239:128486,240:128487,241:128746,242:128063,243:128038,244:128031,245:128021,246:128008,247:128620,248:128622,249:128621,250:128623,251:128506,252:127757,253:127759,254:127758,255:128330},WINGDINGS:{32:32,33:128393,34:9986,35:9985,36:128083,37:128365,38:128366,39:128367,40:128383,41:9990,42:128386,43:128387,44:128234,45:128235,46:128236,47:128237,48:128448,49:128449,50:128462,51:128463,52:128464,53:128452,54:8987,55:128430,56:128432,57:128434,58:128435,59:128436,60:128427,61:128428,62:9991,63:9997,64:128398,65:9996,66:128399,67:128077,68:128078,69:9756,70:9758,71:9757,72:9759,73:128400,74:9786,75:128528,76:9785,77:128163,78:128369,79:127987,80:127985,81:9992,82:9788,83:127778,84:10052,85:128326,86:10014,87:128328,88:10016,89:10017,90:9770,91:9775,92:128329,93:9784,94:9800,95:9801,96:9802,97:9803,98:9804,99:9805,100:9806,101:9807,102:9808,103:9809,104:9810,105:9811,106:128624,107:128629,108:9899,109:128318,110:9724,111:128911,112:128912,113:10065,114:10066,115:128927,116:10731,117:9670,118:10070,119:11049,120:8999,121:11193,122:8984,123:127989,124:127990,125:128630,126:128631,127:9647,128:127243,129:10112,130:10113,131:10114,132:10115,133:10116,134:10117,135:10118,136:10119,137:10120,138:10121,139:127244,140:10122,141:10123,142:10124,143:10125,144:10126,145:10127,146:10128,147:10129,148:10130,149:10131,150:128610,151:128608,152:128609,153:128611,154:128606,155:128604,156:128605,157:128607,158:8729,159:8226,160:11037,161:11096,162:128902,163:128904,164:128906,165:128907,166:128319,167:9642,168:128910,169:128961,170:128965,171:9733,172:128971,173:128975,174:128979,175:128977,176:11216,177:8982,178:11214,179:11215,180:11217,181:10026,182:10032,183:128336,184:128337,185:128338,186:128339,187:128340,188:128341,189:128342,190:128343,191:128344,192:128345,193:128346,194:128347,195:11184,196:11185,197:11186,198:11187,199:11188,200:11189,201:11190,202:11191,203:128618,204:128619,205:128597,206:128596,207:128599,208:128598,209:128592,210:128593,211:128594,212:128595,213:9003,214:8998,215:11160,216:11162,217:11161,218:11163,219:11144,220:11146,221:11145,222:11147,223:129128,224:129130,225:129129,226:129131,227:129132,228:129133,229:129135,230:129134,231:129144,232:129146,233:129145,234:129147,235:129148,236:129149,237:129151,238:129150,239:8678,240:8680,241:8679,242:8681,243:11012,244:8691,245:11009,246:11008,247:11011,248:11010,249:129196,250:129197,251:128502,252:10003,253:128503,254:128505},"WINGDINGS 2":{32:32,33:128394,34:128395,35:128396,36:128397,37:9988,38:9984,39:128382,40:128381,41:128453,42:128454,43:128455,44:128456,45:128457,46:128458,47:128459,48:128460,49:128461,50:128203,51:128465,52:128468,53:128437,54:128438,55:128439,56:128440,57:128429,58:128431,59:128433,60:128402,61:128403,62:128408,63:128409,64:128410,65:128411,66:128072,67:128073,68:128412,69:128413,70:128414,71:128415,72:128416,73:128417,74:128070,75:128071,76:128418,77:128419,78:128401,79:128500,80:128504,81:128501,82:9745,83:11197,84:9746,85:11198,86:11199,87:128711,88:10680,89:128625,90:128628,91:128626,92:128627,93:8253,94:128633,95:128634,96:128635,97:128614,98:128612,99:128613,100:128615,101:128602,102:128600,103:128601,104:128603,105:9450,106:9312,107:9313,108:9314,109:9315,110:9316,111:9317,112:9318,113:9319,114:9320,115:9321,116:9471,117:10102,118:10103,119:10104,120:10105,121:10106,122:10107,123:10108,124:10109,125:10110,126:10111,128:9737,129:127765,130:9789,131:9790,132:11839,133:10013,134:128327,135:128348,136:128349,137:128350,138:128351,139:128352,140:128353,141:128354,142:128355,143:128356,144:128357,145:128358,146:128359,147:128616,148:128617,149:8901,150:128900,151:10625,152:9679,153:9675,154:128901,155:128903,156:128905,157:8857,158:10687,159:128908,160:128909,161:9726,162:9632,163:9633,164:128913,165:128914,166:128915,167:128916,168:9635,169:128917,170:128918,171:128919,172:128920,173:11049,174:11045,175:9671,176:128922,177:9672,178:128923,179:128924,180:128925,181:128926,182:11050,183:11047,184:9674,185:128928,186:9686,187:9687,188:11210,189:11211,190:11200,191:11201,192:11039,193:11202,194:11043,195:11042,196:11203,197:11204,198:128929,199:128930,200:128931,201:128932,202:128933,203:128934,204:128935,205:128936,206:128937,207:128938,208:128939,209:128940,210:128941,211:128942,212:128943,213:128944,214:128945,215:128946,216:128947,217:128948,218:128949,219:128950,220:128951,221:128952,222:128953,223:128954,224:128955,225:128956,226:128957,227:128958,228:128959,229:128960,230:128962,231:128964,232:128966,233:128969,234:128970,235:10038,236:128972,237:128974,238:128976,239:128978,240:10041,241:128963,242:128967,243:10031,244:128973,245:128980,246:11212,247:11213,248:8251,249:8258},"WINGDINGS 3":{32:32,33:11104,34:11106,35:11105,36:11107,37:11110,38:11111,39:11113,40:11112,41:11120,42:11122,43:11121,44:11123,45:11126,46:11128,47:11131,48:11133,49:11108,50:11109,51:11114,52:11116,53:11115,54:11117,55:11085,56:11168,57:11169,58:11170,59:11171,60:11172,61:11173,62:11174,63:11175,64:11152,65:11153,66:11154,67:11155,68:11136,69:11139,70:11134,71:11135,72:11140,73:11142,74:11141,75:11143,76:11151,77:11149,78:11150,79:11148,80:11118,81:11119,82:9099,83:8996,84:8963,85:8997,86:9251,87:9085,88:8682,89:11192,90:129184,91:129185,92:129186,93:129187,94:129188,95:129189,96:129190,97:129191,98:129192,99:129193,100:129194,101:129195,102:129104,103:129106,104:129105,105:129107,106:129108,107:129109,108:129111,109:129110,110:129112,111:129113,112:9650,113:9660,114:9651,115:9661,116:9664,117:9654,118:9665,119:9655,120:9699,121:9698,122:9700,123:9701,124:128896,125:128898,126:128897,128:128899,129:11205,130:11206,131:11207,132:11208,133:11164,134:11166,135:11165,136:11167,137:129040,138:129042,139:129041,140:129043,141:129044,142:129046,143:129045,144:129047,145:129048,146:129050,147:129049,148:129051,149:129052,150:129054,151:129053,152:129055,153:129024,154:129026,155:129025,156:129027,157:129028,158:129030,159:129029,160:129031,161:129032,162:129034,163:129033,164:129035,165:129056,166:129058,167:129060,168:129062,169:129064,170:129066,171:129068,172:129180,173:129181,174:129182,175:129183,176:129070,177:129072,178:129074,179:129076,180:129078,181:129080,182:129082,183:129081,184:129083,185:129176,186:129178,187:129177,188:129179,189:129084,190:129086,191:129085,192:129087,193:129088,194:129090,195:129089,196:129091,197:129092,198:129094,199:129093,200:129095,201:11176,202:11177,203:11178,204:11179,205:11180,206:11181,207:11182,208:11183,209:129120,210:129122,211:129121,212:129123,213:129124,214:129125,215:129127,216:129126,217:129136,218:129138,219:129137,220:129139,221:129140,222:129141,223:129143,224:129142,225:129152,226:129154,227:129153,228:129155,229:129156,230:129157,231:129159,232:129158,233:129168,234:129170,235:129169,236:129171,237:129172,238:129174,239:129173,240:129175}};R.default=M},{}],50:[function(P,oe,R){var M=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R,"__esModule",{value:!0}),R.hex=R.dec=R.codePoint=void 0;var E=M(P("./dingbats")),a=String.fromCodePoint?String.fromCodePoint:i;function g(e,s){var d=E.default[e.toUpperCase()];if(d!==void 0){var y=d[s];if(y!==void 0)return{codePoint:y,string:a(y)}}}R.codePoint=g;function p(e,s){return g(e,parseInt(s,10))}R.dec=p;function u(e,s){return g(e,parseInt(s,16))}R.hex=u;function i(e){if(e<=65535)return String.fromCharCode(e);var s=Math.floor((e-65536)/1024)+55296,d=(e-65536)%1024+56320;return String.fromCharCode(s,d)}},{"./dingbats":49}],51:[function(P,oe,R){R.read=function(M,E,a,g,p){var u,i,e=p*8-g-1,s=(1<>1,y=-7,w=a?p-1:0,v=a?-1:1,h=M[E+w];for(w+=v,u=h&(1<<-y)-1,h>>=-y,y+=e;y>0;u=u*256+M[E+w],w+=v,y-=8);for(i=u&(1<<-y)-1,u>>=-y,y+=g;y>0;i=i*256+M[E+w],w+=v,y-=8);if(u===0)u=1-d;else{if(u===s)return i?NaN:(h?-1:1)*(1/0);i=i+Math.pow(2,g),u=u-d}return(h?-1:1)*i*Math.pow(2,u-g)},R.write=function(M,E,a,g,p,u){var i,e,s,d=u*8-p-1,y=(1<>1,v=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=g?0:u-1,_=g?1:-1,c=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(e=isNaN(E)?1:0,i=y):(i=Math.floor(Math.log(E)/Math.LN2),E*(s=Math.pow(2,-i))<1&&(i--,s*=2),i+w>=1?E+=v/s:E+=v*Math.pow(2,1-w),E*s>=2&&(i++,s/=2),i+w>=y?(e=0,i=y):i+w>=1?(e=(E*s-1)*Math.pow(2,p),i=i+w):(e=E*Math.pow(2,w-1)*Math.pow(2,p),i=0));p>=8;M[a+h]=e&255,h+=_,e/=256,p-=8);for(i=i<0;M[a+h]=i&255,h+=_,i/=256,d-=8);M[a+h-_]|=c*128}},{}],52:[function(P,oe,R){var M={}.toString;oe.exports=Array.isArray||function(E){return M.call(E)=="[object Array]"}},{}],53:[function(P,oe,R){(function(M,E){/*! JSZip v3.7.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */(function(a){typeof R=="object"&&typeof oe<"u"?oe.exports=a():(typeof window<"u"?window:typeof M<"u"?M:typeof self<"u"?self:this).JSZip=a()})(function(){return(function a(g,p,u){function i(d,y){if(!p[d]){if(!g[d]){var w=typeof P=="function"&&P;if(!y&&w)return w(d,!0);if(e)return e(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var h=p[d]={exports:{}};g[d][0].call(h.exports,function(_){var c=g[d][1][_];return i(c||_)},h,h.exports,a,g,p,u)}return p[d].exports}for(var e=typeof P=="function"&&P,s=0;s>2,h=(3&d)<<4|y>>4,_=1>6:64,c=2>4,y=(15&v)<<4|(h=e.indexOf(s.charAt(c++)))>>2,w=(3&h)<<6|(_=e.indexOf(s.charAt(c++))),m[n++]=d,h!==64&&(m[n++]=y),_!==64&&(m[n++]=w);return m}},{"./support":30,"./utils":32}],2:[function(a,g,p){var u=a("./external"),i=a("./stream/DataWorker"),e=a("./stream/Crc32Probe"),s=a("./stream/DataLengthProbe");function d(y,w,v,h,_){this.compressedSize=y,this.uncompressedSize=w,this.crc32=v,this.compression=h,this.compressedContent=_}d.prototype={getContentWorker:function(){var y=new i(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),w=this;return y.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new i(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(y,w,v){return y.pipe(new e).pipe(new s("uncompressedSize")).pipe(w.compressWorker(v)).pipe(new s("compressedSize")).withStreamInfo("compression",w)},g.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,g,p){var u=a("./stream/GenericWorker");p.STORE={magic:"\0\0",compressWorker:function(i){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},p.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,g,p){var u=a("./utils"),i=(function(){for(var e,s=[],d=0;d<256;d++){e=d;for(var y=0;y<8;y++)e=1&e?3988292384^e>>>1:e>>>1;s[d]=e}return s})();g.exports=function(e,s){return e!==void 0&&e.length?u.getTypeOf(e)!=="string"?(function(d,y,w,v){var h=i,_=v+w;d^=-1;for(var c=v;c<_;c++)d=d>>>8^h[255&(d^y[c])];return-1^d})(0|s,e,e.length,0):(function(d,y,w,v){var h=i,_=v+w;d^=-1;for(var c=v;c<_;c++)d=d>>>8^h[255&(d^y.charCodeAt(c))];return-1^d})(0|s,e,e.length,0):0}},{"./utils":32}],5:[function(a,g,p){p.base64=!1,p.binary=!1,p.dir=!1,p.createFolders=!0,p.date=null,p.compression=null,p.compressionOptions=null,p.comment=null,p.unixPermissions=null,p.dosPermissions=null},{}],6:[function(a,g,p){var u=null;u=typeof Promise<"u"?Promise:a("lie"),g.exports={Promise:u}},{lie:37}],7:[function(a,g,p){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=a("pako"),e=a("./utils"),s=a("./stream/GenericWorker"),d=u?"uint8array":"array";function y(w,v){s.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=v,this.meta={}}p.magic="\b\0",e.inherits(y,s),y.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(e.transformTo(d,w.data),!1)},y.prototype.flush=function(){s.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(v){w.push({data:v,meta:w.meta})}},p.compressWorker=function(w){return new y("Deflate",w)},p.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,g,p){function u(h,_){var c,n="";for(c=0;c<_;c++)n+=String.fromCharCode(255&h),h>>>=8;return n}function i(h,_,c,n,r,m){var I,U,k=h.file,A=h.compression,O=m!==d.utf8encode,X=e.transformTo("string",m(k.name)),x=e.transformTo("string",d.utf8encode(k.name)),W=k.comment,ee=e.transformTo("string",m(W)),B=e.transformTo("string",d.utf8encode(W)),Y=x.length!==k.name.length,T=B.length!==W.length,K="",pe="",ne="",ce=k.dir,ie=k.date,ve={crc32:0,compressedSize:0,uncompressedSize:0};_&&!c||(ve.crc32=h.crc32,ve.compressedSize=h.compressedSize,ve.uncompressedSize=h.uncompressedSize);var j=0;_&&(j|=8),O||!Y&&!T||(j|=2048);var Q=0,we=0;ce&&(Q|=16),r==="UNIX"?(we=798,Q|=(function(le,Re){var Ce=le;return le||(Ce=Re?16893:33204),(65535&Ce)<<16})(k.unixPermissions,ce)):(we=20,Q|=(function(le){return 63&(le||0)})(k.dosPermissions)),I=ie.getUTCHours(),I<<=6,I|=ie.getUTCMinutes(),I<<=5,I|=ie.getUTCSeconds()/2,U=ie.getUTCFullYear()-1980,U<<=4,U|=ie.getUTCMonth()+1,U<<=5,U|=ie.getUTCDate(),Y&&(pe=u(1,1)+u(y(X),4)+x,K+="up"+u(pe.length,2)+pe),T&&(ne=u(1,1)+u(y(ee),4)+B,K+="uc"+u(ne.length,2)+ne);var he="";return he+=` \0`,he+=u(j,2),he+=A.magic,he+=u(I,2),he+=u(U,2),he+=u(ve.crc32,4),he+=u(ve.compressedSize,4),he+=u(ve.uncompressedSize,4),he+=u(X.length,2),he+=u(K.length,2),{fileRecord:w.LOCAL_FILE_HEADER+he+X+K,dirRecord:w.CENTRAL_FILE_HEADER+u(we,2)+he+u(ee.length,2)+"\0\0\0\0"+u(Q,4)+u(n,4)+X+K+ee}}var e=a("../utils"),s=a("../stream/GenericWorker"),d=a("../utf8"),y=a("../crc32"),w=a("../signature");function v(h,_,c,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=c,this.encodeFileName=n,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(v,s),v.prototype.push=function(h){var _=h.meta.percent||0,c=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,s.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:c?(_+100*(c-n-1))/c:100}}))},v.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var _=this.streamFiles&&!h.file.dir;if(_){var c=i(h,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(h){this.accumulate=!1;var _=this.streamFiles&&!h.file.dir,c=i(h,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),_)this.push({data:(function(n){return w.DATA_DESCRIPTOR+u(n.crc32,4)+u(n.compressedSize,4)+u(n.uncompressedSize,4)})(h),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var h=this.bytesWritten,_=0;_=this.index;s--)d=(d<<8)+this.byteAt(s);return this.index+=e,d},readString:function(e){return u.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},g.exports=i},{"../utils":32}],19:[function(a,g,p){var u=a("./Uint8ArrayReader");function i(e){u.call(this,e)}a("../utils").inherits(i,u),i.prototype.readData=function(e){this.checkOffset(e);var s=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,s},g.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,g,p){var u=a("./DataReader");function i(e){u.call(this,e)}a("../utils").inherits(i,u),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var s=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,s},g.exports=i},{"../utils":32,"./DataReader":18}],21:[function(a,g,p){var u=a("./ArrayReader");function i(e){u.call(this,e)}a("../utils").inherits(i,u),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var s=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,s},g.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(a,g,p){var u=a("../utils"),i=a("../support"),e=a("./ArrayReader"),s=a("./StringReader"),d=a("./NodeBufferReader"),y=a("./Uint8ArrayReader");g.exports=function(w){var v=u.getTypeOf(w);return u.checkSupport(v),v!=="string"||i.uint8array?v==="nodebuffer"?new d(w):i.uint8array?new y(u.transformTo("uint8array",w)):new e(u.transformTo("array",w)):new s(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,g,p){p.LOCAL_FILE_HEADER="PK",p.CENTRAL_FILE_HEADER="PK",p.CENTRAL_DIRECTORY_END="PK",p.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",p.ZIP64_CENTRAL_DIRECTORY_END="PK",p.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,g,p){var u=a("./GenericWorker"),i=a("../utils");function e(s){u.call(this,"ConvertWorker to "+s),this.destType=s}i.inherits(e,u),e.prototype.processChunk=function(s){this.push({data:i.transformTo(this.destType,s.data),meta:s.meta})},g.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(a,g,p){var u=a("./GenericWorker"),i=a("../crc32");function e(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(e,u),e.prototype.processChunk=function(s){this.streamInfo.crc32=i(s.data,this.streamInfo.crc32||0),this.push(s)},g.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,g,p){var u=a("../utils"),i=a("./GenericWorker");function e(s){i.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}u.inherits(e,i),e.prototype.processChunk=function(s){if(s){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+s.data.length}i.prototype.processChunk.call(this,s)},g.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(a,g,p){var u=a("../utils"),i=a("./GenericWorker");function e(s){i.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,s.then(function(y){d.dataIsReady=!0,d.data=y,d.max=y&&y.length||0,d.type=u.getTypeOf(y),d.isPaused||d._tickAndRepeat()},function(y){d.error(y)})}u.inherits(e,i),e.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var s=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":s=this.data.substring(this.index,d);break;case"uint8array":s=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":s=this.data.slice(this.index,d)}return this.index=d,this.push({data:s,meta:{percent:this.max?this.index/this.max*100:0}})},g.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(a,g,p){function u(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}u.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,e){return this._listeners[i].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,e){if(this._listeners[i])for(var s=0;s "+i:i}},g.exports=u},{}],29:[function(a,g,p){var u=a("../utils"),i=a("./ConvertWorker"),e=a("./GenericWorker"),s=a("../base64"),d=a("../support"),y=a("../external"),w=null;if(d.nodestream)try{w=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(_,c){return new y.Promise(function(n,r){var m=[],I=_._internalType,U=_._outputType,k=_._mimeType;_.on("data",function(A,O){m.push(A),c&&c(O)}).on("error",function(A){m=[],r(A)}).on("end",function(){try{var A=(function(O,X,x){switch(O){case"blob":return u.newBlob(u.transformTo("arraybuffer",X),x);case"base64":return s.encode(X);default:return u.transformTo(O,X)}})(U,(function(O,X){var x,W=0,ee=null,B=0;for(x=0;x"u")p.blob=!1;else{var u=new ArrayBuffer(0);try{p.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(u),p.blob=i.getBlob("application/zip").size===0}catch{p.blob=!1}}}try{p.nodestream=!!a("readable-stream").Readable}catch{p.nodestream=!1}},{"readable-stream":16}],31:[function(a,g,p){for(var u=a("./utils"),i=a("./support"),e=a("./nodejsUtils"),s=a("./stream/GenericWorker"),d=new Array(256),y=0;y<256;y++)d[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;d[254]=d[254]=1;function w(){s.call(this,"utf-8 decode"),this.leftOver=null}function v(){s.call(this,"utf-8 encode")}p.utf8encode=function(h){return i.nodebuffer?e.newBufferFrom(h,"utf-8"):(function(_){var c,n,r,m,I,U=_.length,k=0;for(m=0;m>>6:(n<65536?c[I++]=224|n>>>12:(c[I++]=240|n>>>18,c[I++]=128|n>>>12&63),c[I++]=128|n>>>6&63),c[I++]=128|63&n);return c})(h)},p.utf8decode=function(h){return i.nodebuffer?u.transformTo("nodebuffer",h).toString("utf-8"):(function(_){var c,n,r,m,I=_.length,U=new Array(2*I);for(c=n=0;c>10&1023,U[n++]=56320|1023&r)}return U.length!==n&&(U.subarray?U=U.subarray(0,n):U.length=n),u.applyFromCharCode(U)})(h=u.transformTo(i.uint8array?"uint8array":"array",h))},u.inherits(w,s),w.prototype.processChunk=function(h){var _=u.transformTo(i.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var c=_;(_=new Uint8Array(c.length+this.leftOver.length)).set(this.leftOver,0),_.set(c,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var n=(function(m,I){var U;for((I=I||m.length)>m.length&&(I=m.length),U=I-1;0<=U&&(192&m[U])==128;)U--;return U<0||U===0?I:U+d[m[U]]>I?U:I})(_),r=_;n!==_.length&&(i.uint8array?(r=_.subarray(0,n),this.leftOver=_.subarray(n,_.length)):(r=_.slice(0,n),this.leftOver=_.slice(n,_.length))),this.push({data:p.utf8decode(r),meta:h.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:p.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},p.Utf8DecodeWorker=w,u.inherits(v,s),v.prototype.processChunk=function(h){this.push({data:p.utf8encode(h.data),meta:h.meta})},p.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,g,p){var u=a("./support"),i=a("./base64"),e=a("./nodejsUtils"),s=a("set-immediate-shim"),d=a("./external");function y(n){return n}function w(n,r){for(var m=0;m>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(h){if(this.extraFields[1]){var _=u(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=_.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=_.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=_.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=_.readInt(4))}},readExtraFields:function(h){var _,c,n,r=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4>>6:(h<65536?v[n++]=224|h>>>12:(v[n++]=240|h>>>18,v[n++]=128|h>>>12&63),v[n++]=128|h>>>6&63),v[n++]=128|63&h);return v},p.buf2binstring=function(w){return y(w,w.length)},p.binstring2buf=function(w){for(var v=new u.Buf8(w.length),h=0,_=v.length;h<_;h++)v[h]=w.charCodeAt(h);return v},p.buf2string=function(w,v){var h,_,c,n,r=v||w.length,m=new Array(2*r);for(h=_=0;h>10&1023,m[_++]=56320|1023&c)}return y(m,_)},p.utf8border=function(w,v){var h;for((v=v||w.length)>w.length&&(v=w.length),h=v-1;0<=h&&(192&w[h])==128;)h--;return h<0||h===0?v:h+s[w[h]]>v?h:v}},{"./common":41}],43:[function(a,g,p){g.exports=function(u,i,e,s){for(var d=65535&u|0,y=u>>>16&65535|0,w=0;e!==0;){for(e-=w=2e3>>1:i>>>1;e[s]=i}return e})();g.exports=function(i,e,s,d){var y=u,w=d+s;i^=-1;for(var v=d;v>>8^y[255&(i^e[v])];return-1^i}},{}],46:[function(a,g,p){var u,i=a("../utils/common"),e=a("./trees"),s=a("./adler32"),d=a("./crc32"),y=a("./messages"),w=0,v=4,h=0,_=-2,c=-1,n=4,r=2,m=8,I=9,U=286,k=30,A=19,O=2*U+1,X=15,x=3,W=258,ee=W+x+1,B=42,Y=113,T=1,K=2,pe=3,ne=4;function ce(f,$){return f.msg=y[$],$}function ie(f){return(f<<1)-(4f.avail_out&&(V=f.avail_out),V!==0&&(i.arraySet(f.output,$.pending_buf,$.pending_out,V,f.next_out),f.next_out+=V,$.pending_out+=V,f.total_out+=V,f.avail_out-=V,$.pending-=V,$.pending===0&&($.pending_out=0))}function Q(f,$){e._tr_flush_block(f,0<=f.block_start?f.block_start:-1,f.strstart-f.block_start,$),f.block_start=f.strstart,j(f.strm)}function we(f,$){f.pending_buf[f.pending++]=$}function he(f,$){f.pending_buf[f.pending++]=$>>>8&255,f.pending_buf[f.pending++]=255&$}function le(f,$){var V,z,l=f.max_chain_length,t=f.strstart,o=f.prev_length,D=f.nice_match,C=f.strstart>f.w_size-ee?f.strstart-(f.w_size-ee):0,G=f.window,te=f.w_mask,ae=f.prev,de=f.strstart+W,Te=G[t+o-1],me=G[t+o];f.prev_length>=f.good_match&&(l>>=2),D>f.lookahead&&(D=f.lookahead);do if(G[(V=$)+o]===me&&G[V+o-1]===Te&&G[V]===G[t]&&G[++V]===G[t+1]){t+=2,V++;do;while(G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&G[++t]===G[++V]&&tC&&--l!=0);return o<=f.lookahead?o:f.lookahead}function Re(f){var $,V,z,l,t,o,D,C,G,te,ae=f.w_size;do{if(l=f.window_size-f.lookahead-f.strstart,f.strstart>=ae+(ae-ee)){for(i.arraySet(f.window,f.window,ae,ae,0),f.match_start-=ae,f.strstart-=ae,f.block_start-=ae,$=V=f.hash_size;z=f.head[--$],f.head[$]=ae<=z?z-ae:0,--V;);for($=V=ae;z=f.prev[--$],f.prev[$]=ae<=z?z-ae:0,--V;);l+=ae}if(f.strm.avail_in===0)break;if(o=f.strm,D=f.window,C=f.strstart+f.lookahead,G=l,te=void 0,te=o.avail_in,G=x)for(t=f.strstart-f.insert,f.ins_h=f.window[t],f.ins_h=(f.ins_h<=x&&(f.ins_h=(f.ins_h<=x)if(z=e._tr_tally(f,f.strstart-f.match_start,f.match_length-x),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=x){for(f.match_length--;f.strstart++,f.ins_h=(f.ins_h<=x&&(f.ins_h=(f.ins_h<=x&&f.match_length<=f.prev_length){for(l=f.strstart+f.lookahead-x,z=e._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-x),f.lookahead-=f.prev_length-1,f.prev_length-=2;++f.strstart<=l&&(f.ins_h=(f.ins_h<f.pending_buf_size-5&&(V=f.pending_buf_size-5);;){if(f.lookahead<=1){if(Re(f),f.lookahead===0&&$===w)return T;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var z=f.block_start+V;if((f.strstart===0||f.strstart>=z)&&(f.lookahead=f.strstart-z,f.strstart=z,Q(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-ee&&(Q(f,!1),f.strm.avail_out===0))return T}return f.insert=0,$===v?(Q(f,!0),f.strm.avail_out===0?pe:ne):(f.strstart>f.block_start&&(Q(f,!1),f.strm.avail_out),T)}),new Ie(4,4,8,4,Ce),new Ie(4,5,16,8,Ce),new Ie(4,6,32,32,Ce),new Ie(4,4,16,16,be),new Ie(8,16,32,32,be),new Ie(8,16,128,128,be),new Ie(8,32,128,256,be),new Ie(32,128,258,1024,be),new Ie(32,258,258,4096,be)],p.deflateInit=function(f,$){return Be(f,$,m,15,8,0)},p.deflateInit2=Be,p.deflateReset=Le,p.deflateResetKeep=xe,p.deflateSetHeader=function(f,$){return f&&f.state?f.state.wrap!==2?_:(f.state.gzhead=$,h):_},p.deflate=function(f,$){var V,z,l,t;if(!f||!f.state||5<$||$<0)return f?ce(f,_):_;if(z=f.state,!f.output||!f.input&&f.avail_in!==0||z.status===666&&$!==v)return ce(f,f.avail_out===0?-5:_);if(z.strm=f,V=z.last_flush,z.last_flush=$,z.status===B)if(z.wrap===2)f.adler=0,we(z,31),we(z,139),we(z,8),z.gzhead?(we(z,(z.gzhead.text?1:0)+(z.gzhead.hcrc?2:0)+(z.gzhead.extra?4:0)+(z.gzhead.name?8:0)+(z.gzhead.comment?16:0)),we(z,255&z.gzhead.time),we(z,z.gzhead.time>>8&255),we(z,z.gzhead.time>>16&255),we(z,z.gzhead.time>>24&255),we(z,z.level===9?2:2<=z.strategy||z.level<2?4:0),we(z,255&z.gzhead.os),z.gzhead.extra&&z.gzhead.extra.length&&(we(z,255&z.gzhead.extra.length),we(z,z.gzhead.extra.length>>8&255)),z.gzhead.hcrc&&(f.adler=d(f.adler,z.pending_buf,z.pending,0)),z.gzindex=0,z.status=69):(we(z,0),we(z,0),we(z,0),we(z,0),we(z,0),we(z,z.level===9?2:2<=z.strategy||z.level<2?4:0),we(z,3),z.status=Y);else{var o=m+(z.w_bits-8<<4)<<8;o|=(2<=z.strategy||z.level<2?0:z.level<6?1:z.level===6?2:3)<<6,z.strstart!==0&&(o|=32),o+=31-o%31,z.status=Y,he(z,o),z.strstart!==0&&(he(z,f.adler>>>16),he(z,65535&f.adler)),f.adler=1}if(z.status===69)if(z.gzhead.extra){for(l=z.pending;z.gzindex<(65535&z.gzhead.extra.length)&&(z.pending!==z.pending_buf_size||(z.gzhead.hcrc&&z.pending>l&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),j(f),l=z.pending,z.pending!==z.pending_buf_size));)we(z,255&z.gzhead.extra[z.gzindex]),z.gzindex++;z.gzhead.hcrc&&z.pending>l&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),z.gzindex===z.gzhead.extra.length&&(z.gzindex=0,z.status=73)}else z.status=73;if(z.status===73)if(z.gzhead.name){l=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>l&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),j(f),l=z.pending,z.pending===z.pending_buf_size)){t=1;break}t=z.gzindexl&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),t===0&&(z.gzindex=0,z.status=91)}else z.status=91;if(z.status===91)if(z.gzhead.comment){l=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>l&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),j(f),l=z.pending,z.pending===z.pending_buf_size)){t=1;break}t=z.gzindexl&&(f.adler=d(f.adler,z.pending_buf,z.pending-l,l)),t===0&&(z.status=103)}else z.status=103;if(z.status===103&&(z.gzhead.hcrc?(z.pending+2>z.pending_buf_size&&j(f),z.pending+2<=z.pending_buf_size&&(we(z,255&f.adler),we(z,f.adler>>8&255),f.adler=0,z.status=Y)):z.status=Y),z.pending!==0){if(j(f),f.avail_out===0)return z.last_flush=-1,h}else if(f.avail_in===0&&ie($)<=ie(V)&&$!==v)return ce(f,-5);if(z.status===666&&f.avail_in!==0)return ce(f,-5);if(f.avail_in!==0||z.lookahead!==0||$!==w&&z.status!==666){var D=z.strategy===2?(function(C,G){for(var te;;){if(C.lookahead===0&&(Re(C),C.lookahead===0)){if(G===w)return T;break}if(C.match_length=0,te=e._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,te&&(Q(C,!1),C.strm.avail_out===0))return T}return C.insert=0,G===v?(Q(C,!0),C.strm.avail_out===0?pe:ne):C.last_lit&&(Q(C,!1),C.strm.avail_out===0)?T:K})(z,$):z.strategy===3?(function(C,G){for(var te,ae,de,Te,me=C.window;;){if(C.lookahead<=W){if(Re(C),C.lookahead<=W&&G===w)return T;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=x&&0C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=x?(te=e._tr_tally(C,1,C.match_length-x),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(te=e._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),te&&(Q(C,!1),C.strm.avail_out===0))return T}return C.insert=0,G===v?(Q(C,!0),C.strm.avail_out===0?pe:ne):C.last_lit&&(Q(C,!1),C.strm.avail_out===0)?T:K})(z,$):u[z.level].func(z,$);if(D!==pe&&D!==ne||(z.status=666),D===T||D===pe)return f.avail_out===0&&(z.last_flush=-1),h;if(D===K&&($===1?e._tr_align(z):$!==5&&(e._tr_stored_block(z,0,0,!1),$===3&&(ve(z.head),z.lookahead===0&&(z.strstart=0,z.block_start=0,z.insert=0))),j(f),f.avail_out===0))return z.last_flush=-1,h}return $!==v?h:z.wrap<=0?1:(z.wrap===2?(we(z,255&f.adler),we(z,f.adler>>8&255),we(z,f.adler>>16&255),we(z,f.adler>>24&255),we(z,255&f.total_in),we(z,f.total_in>>8&255),we(z,f.total_in>>16&255),we(z,f.total_in>>24&255)):(he(z,f.adler>>>16),he(z,65535&f.adler)),j(f),0=V.w_size&&(t===0&&(ve(V.head),V.strstart=0,V.block_start=0,V.insert=0),G=new i.Buf8(V.w_size),i.arraySet(G,$,te-V.w_size,V.w_size,0),$=G,te=V.w_size),o=f.avail_in,D=f.next_in,C=f.input,f.avail_in=te,f.next_in=0,f.input=$,Re(V);V.lookahead>=x;){for(z=V.strstart,l=V.lookahead-(x-1);V.ins_h=(V.ins_h<>>=x=X>>>24,I-=x,(x=X>>>16&255)===0)K[y++]=65535&X;else{if(!(16&x)){if((64&x)==0){X=U[(65535&X)+(m&(1<>>=x,I-=x),I<15&&(m+=T[s++]<>>=x=X>>>24,I-=x,!(16&(x=X>>>16&255))){if((64&x)==0){X=k[(65535&X)+(m&(1<>>=x,I-=x,(x=y-w)>3,m&=(1<<(I-=W<<3))-1,u.next_in=s,u.next_out=y,u.avail_in=s>>24&255)+(B>>>8&65280)+((65280&B)<<8)+((255&B)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(B){var Y;return B&&B.state?(Y=B.state,B.total_in=B.total_out=Y.total=0,B.msg="",Y.wrap&&(B.adler=1&Y.wrap),Y.mode=_,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new u.Buf32(c),Y.distcode=Y.distdyn=new u.Buf32(n),Y.sane=1,Y.back=-1,v):h}function U(B){var Y;return B&&B.state?((Y=B.state).wsize=0,Y.whave=0,Y.wnext=0,I(B)):h}function k(B,Y){var T,K;return B&&B.state?(K=B.state,Y<0?(T=0,Y=-Y):(T=1+(Y>>4),Y<48&&(Y&=15)),Y&&(Y<8||15=ne.wsize?(u.arraySet(ne.window,Y,T-ne.wsize,ne.wsize,0),ne.wnext=0,ne.whave=ne.wsize):(K<(pe=ne.wsize-ne.wnext)&&(pe=K),u.arraySet(ne.window,Y,T-K,pe,ne.wnext),(K-=pe)?(u.arraySet(ne.window,Y,T-K,K,0),ne.wnext=K,ne.whave=ne.wsize):(ne.wnext+=pe,ne.wnext===ne.wsize&&(ne.wnext=0),ne.whave>>8&255,T.check=e(T.check,t,2,0),Q=j=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&j)<<8)+(j>>8))%31){B.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){B.msg="unknown compression method",T.mode=30;break}if(Q-=4,f=8+(15&(j>>>=4)),T.wbits===0)T.wbits=f;else if(f>T.wbits){B.msg="invalid window size",T.mode=30;break}T.dmax=1<>8&1),512&T.flags&&(t[0]=255&j,t[1]=j>>>8&255,T.check=e(T.check,t,2,0)),Q=j=0,T.mode=3;case 3:for(;Q<32;){if(ie===0)break e;ie--,j+=K[ne++]<>>8&255,t[2]=j>>>16&255,t[3]=j>>>24&255,T.check=e(T.check,t,4,0)),Q=j=0,T.mode=4;case 4:for(;Q<16;){if(ie===0)break e;ie--,j+=K[ne++]<>8),512&T.flags&&(t[0]=255&j,t[1]=j>>>8&255,T.check=e(T.check,t,2,0)),Q=j=0,T.mode=5;case 5:if(1024&T.flags){for(;Q<16;){if(ie===0)break e;ie--,j+=K[ne++]<>>8&255,T.check=e(T.check,t,2,0)),Q=j=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(ie<(le=T.length)&&(le=ie),le&&(T.head&&(f=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),u.arraySet(T.head.extra,K,ne,le,f)),512&T.flags&&(T.check=e(T.check,K,le,ne)),ie-=le,ne+=le,T.length-=le),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(ie===0)break e;for(le=0;f=K[ne+le++],T.head&&f&&T.length<65536&&(T.head.name+=String.fromCharCode(f)),f&&le>9&1,T.head.done=!0),B.adler=T.check=0,T.mode=12;break;case 10:for(;Q<32;){if(ie===0)break e;ie--,j+=K[ne++]<>>=7&Q,Q-=7&Q,T.mode=27;break}for(;Q<3;){if(ie===0)break e;ie--,j+=K[ne++]<>>=1)){case 0:T.mode=14;break;case 1:if(W(T),T.mode=20,Y!==6)break;j>>>=2,Q-=2;break e;case 2:T.mode=17;break;case 3:B.msg="invalid block type",T.mode=30}j>>>=2,Q-=2;break;case 14:for(j>>>=7&Q,Q-=7&Q;Q<32;){if(ie===0)break e;ie--,j+=K[ne++]<>>16^65535)){B.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&j,Q=j=0,T.mode=15,Y===6)break e;case 15:T.mode=16;case 16:if(le=T.length){if(ie>>=5,Q-=5,T.ndist=1+(31&j),j>>>=5,Q-=5,T.ncode=4+(15&j),j>>>=4,Q-=4,286>>=3,Q-=3}for(;T.have<19;)T.lens[o[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,V={bits:T.lenbits},$=d(0,T.lens,0,19,T.lencode,0,T.work,V),T.lenbits=V.bits,$){B.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have>>16&255,ke=65535&l,!((be=l>>>24)<=Q);){if(ie===0)break e;ie--,j+=K[ne++]<>>=be,Q-=be,T.lens[T.have++]=ke;else{if(ke===16){for(z=be+2;Q>>=be,Q-=be,T.have===0){B.msg="invalid bit length repeat",T.mode=30;break}f=T.lens[T.have-1],le=3+(3&j),j>>>=2,Q-=2}else if(ke===17){for(z=be+3;Q>>=be)),j>>>=3,Q-=3}else{for(z=be+7;Q>>=be)),j>>>=7,Q-=7}if(T.have+le>T.nlen+T.ndist){B.msg="invalid bit length repeat",T.mode=30;break}for(;le--;)T.lens[T.have++]=f}}if(T.mode===30)break;if(T.lens[256]===0){B.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,V={bits:T.lenbits},$=d(y,T.lens,0,T.nlen,T.lencode,0,T.work,V),T.lenbits=V.bits,$){B.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,V={bits:T.distbits},$=d(w,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,V),T.distbits=V.bits,$){B.msg="invalid distances set",T.mode=30;break}if(T.mode=20,Y===6)break e;case 20:T.mode=21;case 21:if(6<=ie&&258<=ve){B.next_out=ce,B.avail_out=ve,B.next_in=ne,B.avail_in=ie,T.hold=j,T.bits=Q,s(B,he),ce=B.next_out,pe=B.output,ve=B.avail_out,ne=B.next_in,K=B.input,ie=B.avail_in,j=T.hold,Q=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;Ie=(l=T.lencode[j&(1<>>16&255,ke=65535&l,!((be=l>>>24)<=Q);){if(ie===0)break e;ie--,j+=K[ne++]<>xe)])>>>16&255,ke=65535&l,!(xe+(be=l>>>24)<=Q);){if(ie===0)break e;ie--,j+=K[ne++]<>>=xe,Q-=xe,T.back+=xe}if(j>>>=be,Q-=be,T.back+=be,T.length=ke,Ie===0){T.mode=26;break}if(32&Ie){T.back=-1,T.mode=12;break}if(64&Ie){B.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Ie,T.mode=22;case 22:if(T.extra){for(z=T.extra;Q>>=T.extra,Q-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;Ie=(l=T.distcode[j&(1<>>16&255,ke=65535&l,!((be=l>>>24)<=Q);){if(ie===0)break e;ie--,j+=K[ne++]<>xe)])>>>16&255,ke=65535&l,!(xe+(be=l>>>24)<=Q);){if(ie===0)break e;ie--,j+=K[ne++]<>>=xe,Q-=xe,T.back+=xe}if(j>>>=be,Q-=be,T.back+=be,64&Ie){B.msg="invalid distance code",T.mode=30;break}T.offset=ke,T.extra=15&Ie,T.mode=24;case 24:if(T.extra){for(z=T.extra;Q>>=T.extra,Q-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){B.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(ve===0)break e;if(le=he-ve,T.offset>le){if((le=T.offset-le)>T.whave&&T.sane){B.msg="invalid distance too far back",T.mode=30;break}Re=le>T.wnext?(le-=T.wnext,T.wsize-le):T.wnext-le,le>T.length&&(le=T.length),Ce=T.window}else Ce=pe,Re=ce-T.offset,le=T.length;for(veO?(x=Re[Ce+n[Y]],Q[we+n[Y]]):(x=96,0),m=1<>ce)+(I-=m)]=X<<24|x<<16|W|0,I!==0;);for(m=1<>=1;if(m!==0?(j&=m-1,j+=m):j=0,Y++,--he[B]==0){if(B===K)break;B=w[v+n[Y]]}if(pe>>7)]}function we(l,t){l.pending_buf[l.pending++]=255&t,l.pending_buf[l.pending++]=t>>>8&255}function he(l,t,o){l.bi_valid>r-o?(l.bi_buf|=t<>r-l.bi_valid,l.bi_valid+=o-r):(l.bi_buf|=t<>>=1,o<<=1,0<--t;);return o>>>1}function Ce(l,t,o){var D,C,G=new Array(n+1),te=0;for(D=1;D<=n;D++)G[D]=te=te+o[D-1]<<1;for(C=0;C<=t;C++){var ae=l[2*C+1];ae!==0&&(l[2*C]=Re(G[ae]++,ae))}}function be(l){var t;for(t=0;t>1;1<=o;o--)xe(l,G,o);for(C=de;o=l.heap[1],l.heap[1]=l.heap[l.heap_len--],xe(l,G,1),D=l.heap[1],l.heap[--l.heap_max]=o,l.heap[--l.heap_max]=D,G[2*C]=G[2*o]+G[2*D],l.depth[C]=(l.depth[o]>=l.depth[D]?l.depth[o]:l.depth[D])+1,G[2*o+1]=G[2*D+1]=C,l.heap[1]=C++,xe(l,G,1),2<=l.heap_len;);l.heap[--l.heap_max]=l.heap[1],(function(me,Ae){var Ue,ze,He,re,fe,_e,Ee=Ae.dyn_tree,Se=Ae.max_code,Me=Ae.stat_desc.static_tree,Pe=Ae.stat_desc.has_stree,Fe=Ae.stat_desc.extra_bits,Ze=Ae.stat_desc.extra_base,N=Ae.stat_desc.max_length,L=0;for(re=0;re<=n;re++)me.bl_count[re]=0;for(Ee[2*me.heap[me.heap_max]+1]=0,Ue=me.heap_max+1;Ue>=7;C>>=1)if(1&Te&&ae.dyn_ltree[2*de]!==0)return i;if(ae.dyn_ltree[18]!==0||ae.dyn_ltree[20]!==0||ae.dyn_ltree[26]!==0)return e;for(de=32;de>>3,(G=l.static_len+3+7>>>3)<=C&&(C=G)):C=G=o+5,o+4<=C&&t!==-1?z(l,t,o,D):l.strategy===4||G===C?(he(l,2+(D?1:0),3),Le(l,ee,B)):(he(l,4+(D?1:0),3),(function(ae,de,Te,me){var Ae;for(he(ae,de-257,5),he(ae,Te-1,5),he(ae,me-4,4),Ae=0;Ae>>8&255,l.pending_buf[l.d_buf+2*l.last_lit+1]=255&t,l.pending_buf[l.l_buf+l.last_lit]=255&o,l.last_lit++,t===0?l.dyn_ltree[2*o]++:(l.matches++,t--,l.dyn_ltree[2*(T[o]+w+1)]++,l.dyn_dtree[2*Q(t)]++),l.last_lit===l.lit_bufsize-1},p._tr_align=function(l){he(l,2,3),le(l,I,ee),(function(t){t.bi_valid===16?(we(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(l)}},{"../utils/common":41}],53:[function(a,g,p){g.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,g,p){g.exports=typeof setImmediate=="function"?setImmediate:function(){var u=[].slice.apply(arguments);u.splice(1,0,0),setTimeout.apply(null,u)}},{}]},{},[10])(10)})}).call(this,typeof dt<"u"?dt:typeof self<"u"?self:typeof window<"u"?window:{},P("buffer").Buffer)},{buffer:48}],54:[function(P,oe,R){R.Parser=P("./lib/parser").Parser,R.rules=P("./lib/rules"),R.errors=P("./lib/errors"),R.results=P("./lib/parsing-results"),R.StringSource=P("./lib/StringSource"),R.Token=P("./lib/Token"),R.bottomUp=P("./lib/bottom-up"),R.RegexTokeniser=P("./lib/regex-tokeniser").RegexTokeniser,R.rule=function(M){var E;return function(a){return E||(E=M()),E(a)}}},{"./lib/StringSource":55,"./lib/Token":56,"./lib/bottom-up":58,"./lib/errors":59,"./lib/parser":61,"./lib/parsing-results":62,"./lib/regex-tokeniser":63,"./lib/rules":64}],55:[function(P,oe,R){oe.exports=function(E,a){var g={asString:function(){return E},range:function(p,u){return new M(E,a,p,u)}};return g};var M=function(E,a,g,p){this._string=E,this._description=a,this._startIndex=g,this._endIndex=p};M.prototype.to=function(E){return new M(this._string,this._description,this._startIndex,E._endIndex)},M.prototype.describe=function(){var E=this._position(),a=this._description?this._description+` `:"";return a+"Line number: "+E.lineNumber+` Character number: `+E.characterNumber},M.prototype.lineNumber=function(){return this._position().lineNumber},M.prototype.characterNumber=function(){return this._position().characterNumber},M.prototype._position=function(){for(var E=this,a=0,g=function(){return E._string.indexOf(` `,a)},p=1;g()!==-1&&g()s){var h=v[1],c=new M(g[y].name,h,d.range(s,_));return{token:c,endIndex:_}}}}var _=s+1,c=new M("unrecognisedCharacter",e.substring(s,_),d.range(s,_));return{token:c,endIndex:_}}function i(e,s){return new M("end",null,s.range(e.length,e.length))}return{tokenise:p}}},{"./StringSource":55,"./Token":56}],64:[function(P,oe,R){var M=P("underscore"),E=P("option"),a=P("./parsing-results"),g=P("./errors"),p=P("./lazy-iterators");R.token=function(w,v){var h=v!==void 0;return function(_){var c=_.head();if(c&&c.name===w&&(!h||c.value===v))return a.success(c.value,_.tail(),c.source);var n=d({name:w,value:v});return y(_,n)}},R.tokenOfType=function(w){return R.token(w)},R.firstOf=function(w,v){return M.isArray(v)||(v=Array.prototype.slice.call(arguments,1)),function(h){return p.fromArray(v).map(function(_){return _(h)}).filter(function(_){return _.isSuccess()||_.isError()}).first()||y(h,w)}},R.then=function(w,v){return function(h){var _=w(h);return _.map||console.log(_),_.map(v)}},R.sequence=function(){var w=Array.prototype.slice.call(arguments,0),v=function(_){var c=M.foldl(w,function(r,m){var I=r.result,U=r.hasCut;if(!I.isSuccess())return{result:I,hasCut:U};var k=m(I.remaining());if(k.isCut())return{result:I,hasCut:!0};if(k.isSuccess()){var A;m.isCaptured?A=I.value().withValue(m,k.value()):A=I.value();var O=k.remaining(),X=_.to(O);return{result:a.success(A,O,X),hasCut:U}}else return U?{result:a.error(k.errors(),k.remaining()),hasCut:U}:{result:k,hasCut:U}},{result:a.success(new u,_),hasCut:!1}).result,n=_.to(c.remaining());return c.map(function(r){return r.withValue(R.sequence.source,n)})};v.head=function(){var _=M.find(w,h);return R.then(v,R.sequence.extract(_))},v.map=function(_){return R.then(v,function(c){return _.apply(this,c.toArray())})};function h(_){return _.isCaptured}return v};var u=function(w,v){this._values=w||{},this._valuesArray=v||[]};u.prototype.withValue=function(w,v){if(w.captureName&&w.captureName in this._values)throw new Error('Cannot add second value for capture "'+w.captureName+'"');var h=M.clone(this._values);h[w.captureName]=v;var _=this._valuesArray.concat([v]);return new u(h,_)},u.prototype.get=function(w){if(w.captureName in this._values)return this._values[w.captureName];throw new Error('No value for capture "'+w.captureName+'"')},u.prototype.toArray=function(){return this._valuesArray},R.sequence.capture=function(w,v){var h=function(){return w.apply(this,arguments)};return h.captureName=v,h.isCaptured=!0,h},R.sequence.extract=function(w){return function(v){return v.get(w)}},R.sequence.applyValues=function(w){var v=Array.prototype.slice.call(arguments,1);return function(h){var _=v.map(function(c){return h.get(c)});return w.apply(this,_)}},R.sequence.source={captureName:"☃source☃"},R.sequence.cut=function(){return function(w){return a.cut(w)}},R.optional=function(w){return function(v){var h=w(v);return h.isSuccess()?h.map(E.some):h.isFailure()?a.success(E.none,v):h}},R.zeroOrMoreWithSeparator=function(w,v){return s(w,v,!1)},R.oneOrMoreWithSeparator=function(w,v){return s(w,v,!0)};var i=R.zeroOrMore=function(w){return function(v){for(var h=[],_;(_=w(v))&&_.isSuccess();)v=_.remaining(),h.push(_.value());return _.isError()?_:a.success(h,v)}};R.oneOrMore=function(w){return R.oneOrMoreWithSeparator(w,e)};function e(w){return a.success(null,w)}var s=function(w,v,h){return function(_){var c=w(_);if(c.isSuccess()){var n=R.sequence.capture(w,"main"),r=i(R.then(R.sequence(v,n),R.sequence.extract(n))),m=r(c.remaining());return a.success([c.value()].concat(m.value()),m.remaining())}else return h||c.isError()?c:a.success([],_)}};R.leftAssociative=function(w,v,h){var _;h?_=[{func:h,rule:v}]:_=v,_=_.map(function(n){return R.then(n.rule,function(r){return function(m,I){return n.func(m,r,I)}})});var c=R.firstOf.apply(null,["rules"].concat(_));return function(n){var r=n,m=w(n);if(!m.isSuccess())return m;for(var I=c(m.remaining());I.isSuccess();){var U=I.remaining(),k=r.to(I.remaining()),A=I.value();m=a.success(A(m.value(),k),U,k),I=c(m.remaining())}return I.isError()?I:m}},R.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},R.nonConsuming=function(w){return function(v){return w(v).changeRemaining(v)}};var d=function(w){return w.value?w.name+' "'+w.value+'"':w.name};function y(w,v){var h,_=w.head();return _?h=g.error({expected:v,actual:d(_),location:_.source}):h=g.error({expected:v,actual:"end of tokens"}),a.failure([h],w)}},{"./errors":59,"./lazy-iterators":60,"./parsing-results":62,option:65,underscore:67}],65:[function(P,oe,R){R.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return R.none},flatMap:function(){return R.none},filter:function(){return R.none},toArray:function(){return[]},orElse:M,valueOrElse:M});function M(a){return typeof a=="function"?a():a}R.some=function(a){return new E(a)};var E=function(a){this._value=a};E.prototype.value=function(){return this._value},E.prototype.isNone=function(){return!1},E.prototype.isSome=function(){return!0},E.prototype.map=function(a){return new E(a(this._value))},E.prototype.flatMap=function(a){return a(this._value)},E.prototype.filter=function(a){return a(this._value)?this:R.none},E.prototype.toArray=function(){return[this._value]},E.prototype.orElse=function(a){return this},E.prototype.valueOrElse=function(a){return this._value},R.isOption=function(a){return a===R.none||a instanceof E},R.fromNullable=function(a){return a==null?R.none:new E(a)}},{}],66:[function(P,oe,R){var M=oe.exports={},E,a;function g(){throw new Error("setTimeout has not been defined")}function p(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=g}catch{E=g}try{typeof clearTimeout=="function"?a=clearTimeout:a=p}catch{a=p}})();function u(c){if(E===setTimeout)return setTimeout(c,0);if((E===g||!E)&&setTimeout)return E=setTimeout,setTimeout(c,0);try{return E(c,0)}catch{try{return E.call(null,c,0)}catch{return E.call(this,c,0)}}}function i(c){if(a===clearTimeout)return clearTimeout(c);if((a===p||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(c);try{return a(c)}catch{try{return a.call(null,c)}catch{return a.call(this,c)}}}var e=[],s=!1,d,y=-1;function w(){!s||!d||(s=!1,d.length?e=d.concat(e):y=-1,e.length&&v())}function v(){if(!s){var c=u(w);s=!0;for(var n=e.length;n;){for(d=e,e=[];++y1)for(var r=1;r=0&&F<=U}}function V(b){return function(S){return S==null?void 0:S[b]}}var z=V("byteLength"),l=$(z),t=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function o(b){return c?c(b)&&!Ce(b):l(b)&&t.test(s.call(b))}var D=y?o:f(!1),C=V("length");function G(b){for(var S={},F=b.length,H=0;H":">",'"':""","'":"'","`":"`"},gr=Wt(jt),wr=Ve(jt),_r=Wt(wr),br=me.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},xt=/(.)^/,Er={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Tr=/\\|'|\r|\n|\u2028|\u2029/g;function Ir(b){return"\\"+Er[b]}var kr=/^\s*(\w|\$)+\s*$/;function Dr(b,S,F){!S&&F&&(S=F),S=rt({},S,me.templateSettings);var H=RegExp([(S.escape||xt).source,(S.interpolate||xt).source,(S.evaluate||xt).source].join("|")+"|$","g"),q=0,J="__p+='";b.replace(H,function(Ne,je,Ye,cr,fr){return J+=b.slice(q,fr).replace(Tr,Ir),q=fr+Ne.length,je?J+=`'+ ((__t=(`+je+`))==null?'':_.escape(__t))+ '`:Ye?J+=`'+ ((__t=(`+Ye+`))==null?'':__t)+ '`:cr&&(J+=`'; `+cr+` __p+='`),Ne}),J+=`'; `;var ue=S.variable;if(ue){if(!kr.test(ue))throw new Error("variable is not a bare identifier: "+ue)}else J=`with(obj||{}){ `+J+`} `,ue="obj";J=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; `+J+`return __p; `;var ye;try{ye=new Function(ue,"_",J)}catch(Ne){throw Ne.source=J,Ne}var Oe=function(Ne){return ye.call(this,Ne,me)};return Oe.source="function("+ue+`){ `+J+"}",Oe}function xr(b,S,F){S=tt(S);var H=S.length;if(!H)return j(F)?F.call(b):F;for(var q=0;q1)lt(ye,S-1,F,H),q=H.length;else for(var Oe=0,Ne=ye.length;OeS?(H&&(clearTimeout(H),H=null),ye=je,ue=b.apply(q,J),H||(q=J=null)):!H&&F.trailing!==!1&&(H=setTimeout(Oe,Ye)),ue};return Ne.cancel=function(){clearTimeout(H),ye=0,H=q=J=null},Ne}function Lr(b,S,F){var H,q,J,ue,ye,Oe=function(){var je=gt()-q;S>je?H=setTimeout(Oe,S-je):(H=null,F||(ue=b.apply(ye,J)),H||(J=ye=null))},Ne=k(function(je){return ye=this,J=je,q=gt(),H||(H=setTimeout(Oe,S),F&&(ue=b.apply(ye,J))),ue});return Ne.cancel=function(){clearTimeout(H),H=J=ye=null},Ne}function Pr(b,S){return ht(S,b)}function St(b){return function(){return!b.apply(this,arguments)}}function Br(){var b=arguments,S=b.length-1;return function(){for(var F=S,H=b[S].apply(this,arguments);F--;)H=b[F].call(this,H);return H}}function Xr(b,S){return function(){if(--b<1)return S.apply(this,arguments)}}function Yt(b,S){var F;return function(){return--b>0&&(F=S.apply(this,arguments)),b<=1&&(S=null),F}}var zr=ht(Yt,2);function Gt(b,S,F){S=Ge(S,F);for(var H=ae(b),q,J=0,ue=H.length;J0?0:q-1;J>=0&&J0?ue=J>=0?J:Math.max(J+ye,ue):ye=J>=0?Math.min(J+1,ye):J+ye+1;else if(F&&J&&ye)return J=F(H,q),H[J]===q?J:-1;if(q!==q)return J=S(e.call(H,ue,ye),Be),J>=0?J+ue:-1;for(J=b>0?ue:ye-1;J>=0&&J0?0:ye-1;for(J||(q=F[ue?ue[Oe]:Oe],Oe+=b);Oe>=0&&Oe=3;return S(F,yt(H,J,4),q,ue)}}var Ot=er(1),tr=er(-1);function pt(b,S,F){var H=[];return S=Ge(S,F),at(b,function(q,J,ue){S(q,J,ue)&&H.push(q)}),H}function Wr(b,S,F){return pt(b,St(Ge(S)),F)}function rr(b,S,F){S=Ge(S,F);for(var H=!Ke(b)&&ae(b),q=(H||b).length,J=0;J=0}var jr=k(function(b,S,F){var H,q;return j(S)?q=S:(S=tt(S),H=S.slice(0,-1),S=S[S.length-1]),ct(b,function(J){var ue=q;if(!ue){if(H&&H.length&&(J=ft(J,H)),J==null)return;ue=J[S]}return ue==null?ue:ue.apply(J,F)})});function Ct(b,S){return ct(b,It(S))}function Hr(b,S){return pt(b,vt(S))}function ir(b,S,F){var H=-1/0,q=-1/0,J,ue;if(S==null||typeof S=="number"&&typeof b[0]!="object"&&b!=null){b=Ke(b)?b:De(b);for(var ye=0,Oe=b.length;yeH&&(H=J)}else S=Ge(S,F),at(b,function(Ne,je,Ye){ue=S(Ne,je,Ye),(ue>q||ue===-1/0&&H===-1/0)&&(H=Ne,q=ue)});return H}function Vr(b,S,F){var H=1/0,q=1/0,J,ue;if(S==null||typeof S=="number"&&typeof b[0]!="object"&&b!=null){b=Ke(b)?b:De(b);for(var ye=0,Oe=b.length;yeye||ue===void 0)return 1;if(ue1&&(H=yt(H,S[1])),S=fe(b)):(H=tn,S=lt(S,!1,!1),b=Object(b));for(var q=0,J=S.length;q1&&(H=S[1])):(S=ct(lt(S,!1,!1),String),F=function(q,J){return!ot(S,J)}),or(b,F,H)});function sr(b,S,F){return e.call(b,0,Math.max(0,b.length-(S==null||F?1:S)))}function Rt(b,S,F){return b==null||b.length<1?S==null||F?void 0:[]:S==null||F?b[0]:sr(b,b.length-S)}function _t(b,S,F){return e.call(b,S==null||F?1:S)}function nn(b,S,F){return b==null||b.length<1?S==null||F?void 0:[]:S==null||F?b[b.length-1]:_t(b,Math.max(0,b.length-S))}function an(b){return pt(b,Boolean)}function on(b,S){return lt(b,S,!1)}var ur=k(function(b,S){return S=lt(S,!0,!0),pt(b,function(F){return!ot(S,F)})}),sn=k(function(b,S){return ur(b,S)});function Mt(b,S,F,H){x(S)||(H=F,F=S,S=!1),F!=null&&(F=Ge(F,H));for(var q=[],J=[],ue=0,ye=C(b);ue":(g=this.parent)!=null&&g.name?"attribute: {"+E+"}, parent: <"+this.parent.name+">":"attribute: {"+E+"}"},M})()}).call(this)},{}],70:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(i)}return p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(u){return this.options.writer.set(u).cdata(this)},p})(M)}).call(this)},{"./XMLNode":81}],71:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(i)}return p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(u){return this.options.writer.set(u).comment(this)},p})(M)}).call(this)},{"./XMLNode":81}],72:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i,e,s,d,y){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(e==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!s)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!d)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i));if(y&&!d.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.eleName(i),this.attributeName=this.stringify.attName(e),this.attributeType=this.stringify.dtdAttType(s),this.defaultValue=this.stringify.dtdAttDefault(y),this.defaultValueType=d}return p.prototype.toString=function(u){return this.options.writer.set(u).dtdAttList(this)},p})(M)}).call(this)},{"./XMLNode":81}],73:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i,e){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());e||(e="(#PCDATA)"),Array.isArray(e)&&(e="("+e.join(",")+")"),this.name=this.stringify.eleName(i),this.value=this.stringify.dtdElementValue(e)}return p.prototype.toString=function(u){return this.options.writer.set(u).dtdElement(this)},p})(M)}).call(this)},{"./XMLNode":81}],74:[function(P,oe,R){(function(){var M,E,a=function(p,u){for(var i in u)g.call(u,i)&&(p[i]=u[i]);function e(){this.constructor=p}return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},g={}.hasOwnProperty;E=P("./Utility").isObject,M=P("./XMLNode"),oe.exports=(function(p){a(u,p);function u(i,e,s,d){if(u.__super__.constructor.call(this,i),s==null)throw new Error("Missing DTD entity name. "+this.debugInfo(s));if(d==null)throw new Error("Missing DTD entity value. "+this.debugInfo(s));if(this.pe=!!e,this.name=this.stringify.eleName(s),!E(d))this.value=this.stringify.dtdEntityValue(d);else{if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s));if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s));if(d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}}return u.prototype.toString=function(i){return this.options.writer.set(i).dtdEntity(this)},u})(M)}).call(this)},{"./Utility":68,"./XMLNode":81}],75:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i,e){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing DTD notation name. "+this.debugInfo(i));if(!e.pubID&&!e.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i));this.name=this.stringify.eleName(i),e.pubID!=null&&(this.pubID=this.stringify.dtdPubID(e.pubID)),e.sysID!=null&&(this.sysID=this.stringify.dtdSysID(e.sysID))}return p.prototype.toString=function(u){return this.options.writer.set(u).dtdNotation(this)},p})(M)}).call(this)},{"./XMLNode":81}],76:[function(P,oe,R){(function(){var M,E,a=function(p,u){for(var i in u)g.call(u,i)&&(p[i]=u[i]);function e(){this.constructor=p}return e.prototype=u.prototype,p.prototype=new e,p.__super__=u.prototype,p},g={}.hasOwnProperty;E=P("./Utility").isObject,M=P("./XMLNode"),oe.exports=(function(p){a(u,p);function u(i,e,s,d){var y;u.__super__.constructor.call(this,i),E(e)&&(y=e,e=y.version,s=y.encoding,d=y.standalone),e||(e="1.0"),this.version=this.stringify.xmlVersion(e),s!=null&&(this.encoding=this.stringify.xmlEncoding(s)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return u.prototype.toString=function(i){return this.options.writer.set(i).declaration(this)},u})(M)}).call(this)},{"./Utility":68,"./XMLNode":81}],77:[function(P,oe,R){(function(){var M,E,a,g,p,u,i=function(s,d){for(var y in d)e.call(d,y)&&(s[y]=d[y]);function w(){this.constructor=s}return w.prototype=d.prototype,s.prototype=new w,s.__super__=d.prototype,s},e={}.hasOwnProperty;u=P("./Utility").isObject,p=P("./XMLNode"),M=P("./XMLDTDAttList"),a=P("./XMLDTDEntity"),E=P("./XMLDTDElement"),g=P("./XMLDTDNotation"),oe.exports=(function(s){i(d,s);function d(y,w,v){var h,_;d.__super__.constructor.call(this,y),this.name="!DOCTYPE",this.documentObject=y,u(w)&&(h=w,w=h.pubID,v=h.sysID),v==null&&(_=[w,v],v=_[0],w=_[1]),w!=null&&(this.pubID=this.stringify.dtdPubID(w)),v!=null&&(this.sysID=this.stringify.dtdSysID(v))}return d.prototype.element=function(y,w){var v;return v=new E(this,y,w),this.children.push(v),this},d.prototype.attList=function(y,w,v,h,_){var c;return c=new M(this,y,w,v,h,_),this.children.push(c),this},d.prototype.entity=function(y,w){var v;return v=new a(this,!1,y,w),this.children.push(v),this},d.prototype.pEntity=function(y,w){var v;return v=new a(this,!0,y,w),this.children.push(v),this},d.prototype.notation=function(y,w){var v;return v=new g(this,y,w),this.children.push(v),this},d.prototype.toString=function(y){return this.options.writer.set(y).docType(this)},d.prototype.ele=function(y,w){return this.element(y,w)},d.prototype.att=function(y,w,v,h,_){return this.attList(y,w,v,h,_)},d.prototype.ent=function(y,w){return this.entity(y,w)},d.prototype.pent=function(y,w){return this.pEntity(y,w)},d.prototype.not=function(y,w){return this.notation(y,w)},d.prototype.up=function(){return this.root()||this.documentObject},d})(p)}).call(this)},{"./Utility":68,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLNode":81}],78:[function(P,oe,R){(function(){var M,E,a,g,p=function(i,e){for(var s in e)u.call(e,s)&&(i[s]=e[s]);function d(){this.constructor=i}return d.prototype=e.prototype,i.prototype=new d,i.__super__=e.prototype,i},u={}.hasOwnProperty;g=P("./Utility").isPlainObject,M=P("./XMLNode"),a=P("./XMLStringifier"),E=P("./XMLStringWriter"),oe.exports=(function(i){p(e,i);function e(s){e.__super__.constructor.call(this,null),this.name="?xml",s||(s={}),s.writer||(s.writer=new E),this.options=s,this.stringify=new a(s),this.isDocument=!0}return e.prototype.end=function(s){var d;return s?g(s)&&(d=s,s=this.options.writer.set(d)):s=this.options.writer,s.document(this)},e.prototype.toString=function(s){return this.options.writer.set(s).document(this)},e})(M)}).call(this)},{"./Utility":68,"./XMLNode":81,"./XMLStringWriter":85,"./XMLStringifier":86}],79:[function(P,oe,R){(function(){var M,E,a,g,p,u,i,e,s,d,y,w,v,h,_,c,n,r,m,I,U={}.hasOwnProperty;I=P("./Utility"),r=I.isObject,n=I.isFunction,m=I.isPlainObject,c=I.getValue,d=P("./XMLElement"),E=P("./XMLCData"),a=P("./XMLComment"),w=P("./XMLRaw"),_=P("./XMLText"),y=P("./XMLProcessingInstruction"),e=P("./XMLDeclaration"),s=P("./XMLDocType"),g=P("./XMLDTDAttList"),u=P("./XMLDTDEntity"),p=P("./XMLDTDElement"),i=P("./XMLDTDNotation"),M=P("./XMLAttribute"),h=P("./XMLStringifier"),v=P("./XMLStringWriter"),oe.exports=(function(){function k(A,O,X){var x;this.name="?xml",A||(A={}),A.writer?m(A.writer)&&(x=A.writer,A.writer=new v(x)):A.writer=new v(A),this.options=A,this.writer=A.writer,this.stringify=new h(A),this.onDataCallback=O||function(){},this.onEndCallback=X||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return k.prototype.node=function(A,O,X){var x;if(A==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(A));return this.openCurrent(),A=c(A),O==null&&(O={}),O=c(O),r(O)||(x=[O,X],X=x[0],O=x[1]),this.currentNode=new d(this,A,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,X!=null&&this.text(X),this},k.prototype.element=function(A,O,X){return this.currentNode&&this.currentNode instanceof s?this.dtdElement.apply(this,arguments):this.node(A,O,X)},k.prototype.attribute=function(A,O){var X,x;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(A));if(A!=null&&(A=c(A)),r(A))for(X in A)U.call(A,X)&&(x=A[X],this.attribute(X,x));else n(O)&&(O=O.apply()),(!this.options.skipNullAttributes||O!=null)&&(this.currentNode.attributes[A]=new M(this,A,O));return this},k.prototype.text=function(A){var O;return this.openCurrent(),O=new _(this,A),this.onData(this.writer.text(O,this.currentLevel+1),this.currentLevel+1),this},k.prototype.cdata=function(A){var O;return this.openCurrent(),O=new E(this,A),this.onData(this.writer.cdata(O,this.currentLevel+1),this.currentLevel+1),this},k.prototype.comment=function(A){var O;return this.openCurrent(),O=new a(this,A),this.onData(this.writer.comment(O,this.currentLevel+1),this.currentLevel+1),this},k.prototype.raw=function(A){var O;return this.openCurrent(),O=new w(this,A),this.onData(this.writer.raw(O,this.currentLevel+1),this.currentLevel+1),this},k.prototype.instruction=function(A,O){var X,x,W,ee,B;if(this.openCurrent(),A!=null&&(A=c(A)),O!=null&&(O=c(O)),Array.isArray(A))for(X=0,ee=A.length;X=0;)this.up();return this.onEnd()},k.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},k.prototype.openNode=function(A){if(!A.isOpen)return!this.root&&this.currentLevel===0&&A instanceof d&&(this.root=A),this.onData(this.writer.openNode(A,this.currentLevel),this.currentLevel),A.isOpen=!0},k.prototype.closeNode=function(A){if(!A.isClosed)return this.onData(this.writer.closeNode(A,this.currentLevel),this.currentLevel),A.isClosed=!0},k.prototype.onData=function(A,O){return this.documentStarted=!0,this.onDataCallback(A,O+1)},k.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},k.prototype.debugInfo=function(A){return A==null?"":"node: <"+A+">"},k.prototype.ele=function(){return this.element.apply(this,arguments)},k.prototype.nod=function(A,O,X){return this.node(A,O,X)},k.prototype.txt=function(A){return this.text(A)},k.prototype.dat=function(A){return this.cdata(A)},k.prototype.com=function(A){return this.comment(A)},k.prototype.ins=function(A,O){return this.instruction(A,O)},k.prototype.dec=function(A,O,X){return this.declaration(A,O,X)},k.prototype.dtd=function(A,O,X){return this.doctype(A,O,X)},k.prototype.e=function(A,O,X){return this.element(A,O,X)},k.prototype.n=function(A,O,X){return this.node(A,O,X)},k.prototype.t=function(A){return this.text(A)},k.prototype.d=function(A){return this.cdata(A)},k.prototype.c=function(A){return this.comment(A)},k.prototype.r=function(A){return this.raw(A)},k.prototype.i=function(A,O){return this.instruction(A,O)},k.prototype.att=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},k.prototype.a=function(){return this.currentNode&&this.currentNode instanceof s?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},k.prototype.ent=function(A,O){return this.entity(A,O)},k.prototype.pent=function(A,O){return this.pEntity(A,O)},k.prototype.not=function(A,O){return this.notation(A,O)},k})()}).call(this)},{"./Utility":68,"./XMLAttribute":69,"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLStringWriter":85,"./XMLStringifier":86,"./XMLText":87}],80:[function(P,oe,R){(function(){var M,E,a,g,p,u,i=function(s,d){for(var y in d)e.call(d,y)&&(s[y]=d[y]);function w(){this.constructor=s}return w.prototype=d.prototype,s.prototype=new w,s.__super__=d.prototype,s},e={}.hasOwnProperty;u=P("./Utility"),p=u.isObject,g=u.isFunction,a=u.getValue,E=P("./XMLNode"),M=P("./XMLAttribute"),oe.exports=(function(s){i(d,s);function d(y,w,v){if(d.__super__.constructor.call(this,y),w==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(w),this.attributes={},v!=null&&this.attribute(v),y.isDocument&&(this.isRoot=!0,this.documentObject=y,y.rootObject=this)}return d.prototype.clone=function(){var y,w,v,h;v=Object.create(this),v.isRoot&&(v.documentObject=null),v.attributes={},h=this.attributes;for(w in h)e.call(h,w)&&(y=h[w],v.attributes[w]=y.clone());return v.children=[],this.children.forEach(function(_){var c;return c=_.clone(),c.parent=v,v.children.push(c)}),v},d.prototype.attribute=function(y,w){var v,h;if(y!=null&&(y=a(y)),p(y))for(v in y)e.call(y,v)&&(h=y[v],this.attribute(v,h));else g(w)&&(w=w.apply()),(!this.options.skipNullAttributes||w!=null)&&(this.attributes[y]=new M(this,y,w));return this},d.prototype.removeAttribute=function(y){var w,v,h;if(y==null)throw new Error("Missing attribute name. "+this.debugInfo());if(y=a(y),Array.isArray(y))for(v=0,h=y.length;v":(r=this.parent)!=null&&r.name?"node: <"+c+">, parent: <"+this.parent.name+">":"node: <"+c+">"},_.prototype.ele=function(c,n,r){return this.element(c,n,r)},_.prototype.nod=function(c,n,r){return this.node(c,n,r)},_.prototype.txt=function(c){return this.text(c)},_.prototype.dat=function(c){return this.cdata(c)},_.prototype.com=function(c){return this.comment(c)},_.prototype.ins=function(c,n){return this.instruction(c,n)},_.prototype.doc=function(){return this.document()},_.prototype.dec=function(c,n,r){return this.declaration(c,n,r)},_.prototype.dtd=function(c,n){return this.doctype(c,n)},_.prototype.e=function(c,n,r){return this.element(c,n,r)},_.prototype.n=function(c,n,r){return this.node(c,n,r)},_.prototype.t=function(c){return this.text(c)},_.prototype.d=function(c){return this.cdata(c)},_.prototype.c=function(c){return this.comment(c)},_.prototype.r=function(c){return this.raw(c)},_.prototype.i=function(c,n){return this.instruction(c,n)},_.prototype.u=function(){return this.up()},_.prototype.importXMLBuilder=function(c){return this.importDocument(c)},_})()}).call(this)},{"./Utility":68,"./XMLCData":70,"./XMLComment":71,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87}],82:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i,e){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(i),e&&(this.value=this.stringify.insValue(e))}return p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(u){return this.options.writer.set(u).processingInstruction(this)},p})(M)}).call(this)},{"./XMLNode":81}],83:[function(P,oe,R){(function(){var M,E=function(g,p){for(var u in p)a.call(p,u)&&(g[u]=p[u]);function i(){this.constructor=g}return i.prototype=p.prototype,g.prototype=new i,g.__super__=p.prototype,g},a={}.hasOwnProperty;M=P("./XMLNode"),oe.exports=(function(g){E(p,g);function p(u,i){if(p.__super__.constructor.call(this,u),i==null)throw new Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(i)}return p.prototype.clone=function(){return Object.create(this)},p.prototype.toString=function(u){return this.options.writer.set(u).raw(this)},p})(M)}).call(this)},{"./XMLNode":81}],84:[function(P,oe,R){(function(){var M,E,a,g,p,u,i,e,s,d,y,w,v,h=function(c,n){for(var r in n)_.call(n,r)&&(c[r]=n[r]);function m(){this.constructor=c}return m.prototype=n.prototype,c.prototype=new m,c.__super__=n.prototype,c},_={}.hasOwnProperty;i=P("./XMLDeclaration"),e=P("./XMLDocType"),M=P("./XMLCData"),E=P("./XMLComment"),s=P("./XMLElement"),y=P("./XMLRaw"),w=P("./XMLText"),d=P("./XMLProcessingInstruction"),a=P("./XMLDTDAttList"),g=P("./XMLDTDElement"),p=P("./XMLDTDEntity"),u=P("./XMLDTDNotation"),v=P("./XMLWriterBase"),oe.exports=(function(c){h(n,c);function n(r,m){n.__super__.constructor.call(this,m),this.stream=r}return n.prototype.document=function(r){var m,I,U,k,A,O,X,x;for(O=r.children,I=0,k=O.length;I"+this.endline(r))},n.prototype.comment=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.declaration=function(r,m){return this.stream.write(this.space(m)),this.stream.write('"),this.stream.write(this.endline(r))},n.prototype.docType=function(r,m){var I,U,k,A;if(m||(m=0),this.stream.write(this.space(m)),this.stream.write("0){for(this.stream.write(" ["),this.stream.write(this.endline(r)),A=r.children,U=0,k=A.length;U"),this.stream.write(this.endline(r))},n.prototype.element=function(r,m){var I,U,k,A,O,X,x,W;m||(m=0),W=this.space(m),this.stream.write(W+"<"+r.name),X=r.attributes;for(O in X)_.call(X,O)&&(I=X[O],this.attribute(I));if(r.children.length===0||r.children.every(function(ee){return ee.value===""}))this.allowEmpty?this.stream.write(">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&r.children.length===1&&r.children[0].value!=null)this.stream.write(">"),this.stream.write(r.children[0].value),this.stream.write("");else{for(this.stream.write(">"+this.newline),x=r.children,k=0,A=x.length;k")}return this.stream.write(this.endline(r))},n.prototype.processingInstruction=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.raw=function(r,m){return this.stream.write(this.space(m)+r.value+this.endline(r))},n.prototype.text=function(r,m){return this.stream.write(this.space(m)+r.value+this.endline(r))},n.prototype.dtdAttList=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.dtdElement=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.dtdEntity=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.dtdNotation=function(r,m){return this.stream.write(this.space(m)+""+this.endline(r))},n.prototype.endline=function(r){return r.isLastRootNode?"":this.newline},n})(v)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],85:[function(P,oe,R){(function(){var M,E,a,g,p,u,i,e,s,d,y,w,v,h=function(c,n){for(var r in n)_.call(n,r)&&(c[r]=n[r]);function m(){this.constructor=c}return m.prototype=n.prototype,c.prototype=new m,c.__super__=n.prototype,c},_={}.hasOwnProperty;i=P("./XMLDeclaration"),e=P("./XMLDocType"),M=P("./XMLCData"),E=P("./XMLComment"),s=P("./XMLElement"),y=P("./XMLRaw"),w=P("./XMLText"),d=P("./XMLProcessingInstruction"),a=P("./XMLDTDAttList"),g=P("./XMLDTDElement"),p=P("./XMLDTDEntity"),u=P("./XMLDTDNotation"),v=P("./XMLWriterBase"),oe.exports=(function(c){h(n,c);function n(r){n.__super__.constructor.call(this,r)}return n.prototype.document=function(r){var m,I,U,k,A;for(this.textispresent=!1,k="",A=r.children,I=0,U=A.length;I"+this.newline},n.prototype.comment=function(r,m){return this.space(m)+""+this.newline},n.prototype.declaration=function(r,m){var I;return I=this.space(m),I+='",I+=this.newline,I},n.prototype.docType=function(r,m){var I,U,k,A,O;if(m||(m=0),A=this.space(m),A+="0){for(A+=" [",A+=this.newline,O=r.children,U=0,k=O.length;U",A+=this.newline,A},n.prototype.element=function(r,m){var I,U,k,A,O,X,x,W,ee,B,Y,T,K;m||(m=0),K=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),T=this.space(m),W="",W+=T+"<"+r.name,ee=r.attributes;for(x in ee)_.call(ee,x)&&(I=ee[x],W+=this.attribute(I));if(r.children.length===0||r.children.every(function(pe){return pe.value===""}))this.allowEmpty?W+=">"+this.newline:W+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&r.children.length===1&&r.children[0].value!=null)W+=">",W+=r.children[0].value,W+=""+this.newline;else{if(this.dontprettytextnodes){for(B=r.children,k=0,O=B.length;k"+this.newline,Y=r.children,A=0,X=Y.length;A"+this.newline}return W},n.prototype.processingInstruction=function(r,m){var I;return I=this.space(m)+""+this.newline,I},n.prototype.raw=function(r,m){return this.space(m)+r.value+this.newline},n.prototype.text=function(r,m){return this.space(m)+r.value+this.newline},n.prototype.dtdAttList=function(r,m){var I;return I=this.space(m)+""+this.newline,I},n.prototype.dtdElement=function(r,m){return this.space(m)+""+this.newline},n.prototype.dtdEntity=function(r,m){var I;return I=this.space(m)+""+this.newline,I},n.prototype.dtdNotation=function(r,m){var I;return I=this.space(m)+""+this.newline,I},n.prototype.openNode=function(r,m){var I,U,k,A;if(m||(m=0),r instanceof s){k=this.space(m)+"<"+r.name,A=r.attributes;for(U in A)_.call(A,U)&&(I=A[U],k+=this.attribute(I));return k+=(r.children?">":"/>")+this.newline,k}else return k=this.space(m)+"")+this.newline,k},n.prototype.closeNode=function(r,m){switch(m||(m=0),!1){case!(r instanceof s):return this.space(m)+""+this.newline;case!(r instanceof e):return this.space(m)+"]>"+this.newline}},n})(v)}).call(this)},{"./XMLCData":70,"./XMLComment":71,"./XMLDTDAttList":72,"./XMLDTDElement":73,"./XMLDTDEntity":74,"./XMLDTDNotation":75,"./XMLDeclaration":76,"./XMLDocType":77,"./XMLElement":80,"./XMLProcessingInstruction":82,"./XMLRaw":83,"./XMLText":87,"./XMLWriterBase":88}],86:[function(P,oe,R){(function(){var M=function(a,g){return function(){return a.apply(g,arguments)}},E={}.hasOwnProperty;oe.exports=(function(){function a(g){this.assertLegalChar=M(this.assertLegalChar,this);var p,u,i;g||(g={}),this.noDoubleEncoding=g.noDoubleEncoding,u=g.stringify||{};for(p in u)E.call(u,p)&&(i=u[p],this[p]=i)}return a.prototype.eleName=function(g){return g=""+g||"",this.assertLegalChar(g)},a.prototype.eleText=function(g){return g=""+g||"",this.assertLegalChar(this.elEscape(g))},a.prototype.cdata=function(g){return g=""+g||"",g=g.replace("]]>","]]]]>"),this.assertLegalChar(g)},a.prototype.comment=function(g){if(g=""+g||"",g.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+g);return this.assertLegalChar(g)},a.prototype.raw=function(g){return""+g||""},a.prototype.attName=function(g){return g=""+g||""},a.prototype.attValue=function(g){return g=""+g||"",this.attEscape(g)},a.prototype.insTarget=function(g){return""+g||""},a.prototype.insValue=function(g){if(g=""+g||"",g.match(/\?>/))throw new Error("Invalid processing instruction value: "+g);return g},a.prototype.xmlVersion=function(g){if(g=""+g||"",!g.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+g);return g},a.prototype.xmlEncoding=function(g){if(g=""+g||"",!g.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+g);return g},a.prototype.xmlStandalone=function(g){return g?"yes":"no"},a.prototype.dtdPubID=function(g){return""+g||""},a.prototype.dtdSysID=function(g){return""+g||""},a.prototype.dtdElementValue=function(g){return""+g||""},a.prototype.dtdAttType=function(g){return""+g||""},a.prototype.dtdAttDefault=function(g){return g!=null?""+g||"":g},a.prototype.dtdEntityValue=function(g){return""+g||""},a.prototype.dtdNData=function(g){return""+g||""},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(g){var p;if(p=g.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),p)throw new Error("Invalid character in string: "+g+" at index "+p.index);return g},a.prototype.elEscape=function(g){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(p,"&").replace(//g,">").replace(/\r/g," ")},a.prototype.attEscape=function(g){var p;return p=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(p,"&").replace(/0?new Array(g).join(this.indent):""):""},E})()}).call(this)},{}],89:[function(P,oe,R){(function(){var M,E,a,g,p,u,i;i=P("./Utility"),p=i.assign,u=i.isFunction,M=P("./XMLDocument"),E=P("./XMLDocumentCB"),g=P("./XMLStringWriter"),a=P("./XMLStreamWriter"),oe.exports.create=function(e,s,d,y){var w,v;if(e==null)throw new Error("Root element needs a name.");return y=p({},s,d,y),w=new M(y),v=w.element(e),y.headless||(w.declaration(y),(y.pubID!=null||y.sysID!=null)&&w.doctype(y)),v},oe.exports.begin=function(e,s,d){var y;return u(e)&&(y=[e,s],s=y[0],d=y[1],e={}),s?new E(e,s,d):new M(e)},oe.exports.stringWriter=function(e){return new g(e)},oe.exports.streamWriter=function(e,s){return new a(e,s)}}).call(this)},{"./Utility":68,"./XMLDocument":78,"./XMLDocumentCB":79,"./XMLStreamWriter":84,"./XMLStringWriter":85}]},{},[21])(21)})})(Xt)),Xt.exports}var pr=yn();const gn=mn(pr),_n=vn({__proto__:null,default:gn},[pr]);export{_n as m};