1(self.webpackChunk=self.webpackChunk||[]).push([["npm.xml-js"],{
vendor: 174 bytes, line 1
1"../node_modules/xml-js/lib/array-helper.js":K=>{K.exports={isArray:function(g){return Array.isArray?Array.isArray(g):Object.prototype.toString.call(g)==="[object Array]"}}},
vendor: 285 bytes, line 1
1"../node_modules/xml-js/lib/index.js":(K,g,E)=>{var c=E("../node_modules/xml-js/lib/xml2js.js"),l=E("../node_modules/xml-js/lib/xml2json.js"),s=E("../node_modules/xml-js/lib/js2xml.js"),f=E("../node_modules/xml-js/lib/json2xml.js");K.exports={xml2js:c,xml2json:l,js2xml:s,json2xml:f}},
vendor: 6,365 bytes, lines 1-3
1"../node_modules/xml-js/lib/js2xml.js":(K,g,E)=>{var c=E("../node_modules/xml-js/lib/options-helper.js"),l=E("../node_modules/xml-js/lib/array-helper.js").isArray,s,f;function n(r){var e=c.copyOptions(r);return c.ensureFlagExists("ignoreDeclaration",e),c.ensureFlagExists("ignoreInstruction",e),c.ensureFlagExists("ignoreAttributes",e),c.ensureFlagExists("ignoreText",e),c.ensureFlagExists("ignoreComment",e),c.ensureFlagExists("ignoreCdata",e),c.ensureFlagExists("ignoreDoctype",e),c.ensureFlagExists("compact",e),c.ensureFlagExists("indentText",e),c.ensureFlagExists("indentCdata",e),c.ensureFlagExists("indentAttributes",e),c.ensureFlagExists("indentInstruction",e),c.ensureFlagExists("fullTagEmptyElement",e),c.ensureFlagExists("noQuotesForNativeAttributes",e),c.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),c.ensureKeyExists("declaration",e),c.ensureKeyExists("instruction",e),c.ensureKeyExists("attributes",e),c.ensureKeyExists("text",e),c.ensureKeyExists("comment",e),c.ensureKeyExists("cdata",e),c.ensureKeyExists("doctype",e),c.ensureKeyExists("type",e),c.ensureKeyExists("name",e),c.ensureKeyExists("elements",e),c.checkFnExists("doctype",e),c.checkFnExists("instruction",e),c.checkFnExists("cdata",e),c.checkFnExists("comment",e),c.checkFnExists("text",e),c.checkFnExists("instructionName",e),c.checkFnExists("elementName",e),c.checkFnExists("attributeName",e),c.checkFnExists("attributeValue",e),c.checkFnExists("attributes",e),c.checkFnExists("fullTagEmptyElement",e),e}function x(r,e,t){return(!t&&r.spaces?` 2`:"")+Array(e+1).join(r.spaces)}function i(r,e,t){if(e.ignoreAttributes)return"";"attributesFn"in e&&(r=e.attributesFn(r,f,s));var a,u,y,m,d=[];for(a in r)r.hasOwnProperty(a)&&r[a]!==null&&r[a]!==void 0&&(m=e.noQuotesForNativeAttributes&&typeof r[a]!="string"?"":'"',u=""+r[a],u=u.replace(/"/g,"""),y="attributeNameFn"in e?e.attributeNameFn(a,u,f,s):a,d.push(e.spaces&&e.indentAttributes?x(e,t+1,!1):" "),d.push(y+"="+m+("attributeValueFn"in e?e.attributeValueFn(u,a,f,s):u)+m));return r&&Object.keys(r).length&&e.spaces&&e.indentAttributes&&d.push(x(e,t,!1)),d.join("")}function b(r,e,t){return s=r,f="xml",e.ignoreDeclaration?"":"<?xml"+i(r[e.attributesKey],e,t)+"?>"}function h(r,e,t){if(e.ignoreInstruction)return"";var a;for(a in r)if(r.hasOwnProperty(a))break;var u="instructionNameFn"in e?e.instructionNameFn(a,r[a],f,s):a;if(typeof r[a]=="object")return s=r,f=u,"<?"+u+i(r[a][e.attributesKey],e,t)+"?>";var y=r[a]?r[a]:"";return"instructionFn"in e&&(y=e.instructionFn(y,a,f,s)),"<?"+u+(y?" "+y:"")+"?>"}function F(r,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(r,f,s):r)+"-->"}function o(r,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(r,f,s):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function p(r,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(r,f,s):r)+">"}function j(r,e){return e.ignoreText?"":(r=""+r,r=r.replace(/&/g,"&"),r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in e?e.textFn(r,f,s):r)}function v(r,e){var t;if(r.elements&&r.elements.length)for(t=0;t<r.elements.length;++t)switch(r.elements[t][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function N(r,e,t){s=r,f=r.name;var a=[],u="elementNameFn"in e?e.elementNameFn(r.name,r):r.name;a.push("<"+u),r[e.attributesKey]&&a.push(i(r[e.attributesKey],e,t));var y=r[e.elementsKey]&&r[e.elementsKey].length||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";return y||("fullTagEmptyElementFn"in e?y=e.fullTagEmptyElementFn(r.name,r):y=e.fullTagEmptyElement),y?(a.push(">"),r[e.elementsKey]&&r[e.elementsKey].length&&(a.push(w(r[e.elementsKey],e,t+1)),s=r,f=r.name),a.push(e.spaces&&v(r,e)?` 3`+Array(t+1).join(e.spaces):""),a.push("</"+u+">")):a.push("/>"),a.join("")}function w(r,e,t,a){return r.reduce(function(u,y){var m=x(e,t,a&&!u);switch(y.type){case"element":return u+m+N(y,e,t);case"comment":return u+m+F(y[e.commentKey],e);case"doctype":return u+m+p(y[e.doctypeKey],e);case"cdata":return u+(e.indentCdata?m:"")+o(y[e.cdataKey],e);case"text":return u+(e.indentText?m:"")+j(y[e.textKey],e);case"instruction":var d={};return d[y[e.nameKey]]=y[e.attributesKey]?y:y[e.instructionKey],u+(e.indentInstruction?m:"")+h(d,e,t)}},"")}function k(r,e,t){var a;for(a in r)if(r.hasOwnProperty(a))switch(a){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||t)return!0;break;case e.cdataKey:if(e.indentCdata||t)return!0;break;case e.instructionKey:if(e.indentInstruction||t)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function T(r,e,t,a,u){s=r,f=e;var y="elementNameFn"in t?t.elementNameFn(e,r):e;if(typeof r>"u"||r===null||r==="")return"fullTagEmptyElementFn"in t&&t.fullTagEmptyElementFn(e,r)||t.fullTagEmptyElement?"<"+y+"></"+y+">":"<"+y+"/>";var m=[];if(e){if(m.push("<"+y),typeof r!="object")return m.push(">"+j(r,t)+"</"+y+">"),m.join("");r[t.attributesKey]&&m.push(i(r[t.attributesKey],t,a));var d=k(r,t,!0)||r[t.attributesKey]&&r[t.attributesKey]["xml:space"]==="preserve";if(d||("fullTagEmptyElementFn"in t?d=t.fullTagEmptyElementFn(e,r):d=t.fullTagEmptyElement),d)m.push(">");else return m.push("/>"),m.join("")}return m.push(A(r,t,a+1,!1)),s=r,f=e,e&&m.push((u?x(t,a,!1):"")+"</"+y+">"),m.join("")}function A(r,e,t,a){var u,y,m,d=[];for(y in r)if(r.hasOwnProperty(y))for(m=l(r[y])?r[y]:[r[y]],u=0;u<m.length;++u){switch(y){case e.declarationKey:d.push(b(m[u],e,t));break;case e.instructionKey:d.push((e.indentInstruction?x(e,t,a):"")+h(m[u],e,t));break;case e.attributesKey:case e.parentKey:break;case e.textKey:d.push((e.indentText?x(e,t,a):"")+j(m[u],e));break;case e.cdataKey:d.push((e.indentCdata?x(e,t,a):"")+o(m[u],e));break;case e.doctypeKey:d.push(x(e,t,a)+p(m[u],e));break;case e.commentKey:d.push(x(e,t,a)+F(m[u],e));break;default:d.push(x(e,t,a)+T(m[u],y,e,t,k(m[u],e)))}a=a&&!d.length}return d.join("")}K.exports=function(r,e){e=n(e);var t=[];return s=r,f="_root_",e.compact?t.push(A(r,e,0,!0)):(r[e.declarationKey]&&t.push(b(r[e.declarationKey],e,0)),r[e.elementsKey]&&r[e.elementsKey].length&&t.push(w(r[e.elementsKey],e,0,!t.length))),t.join("")}},
vendor: 294 bytes, line 3
3"../node_modules/xml-js/lib/json2xml.js":(K,g,E)=>{var c=E("../node_modules/xml-js/lib/js2xml.js");K.exports=function(l,s){l instanceof Buffer&&(l=l.toString());var f=null;if(typeof l=="string")try{f=JSON.parse(l)}catch{throw new Error("The JSON structure is invalid")}else f=l;return c(f,s)}},
vendor: 706 bytes, line 3
3"../node_modules/xml-js/lib/options-helper.js":(K,g,E)=>{var c=E("../node_modules/xml-js/lib/array-helper.js").isArray;K.exports={copyOptions:function(l){var s,f={};for(s in l)l.hasOwnProperty(s)&&(f[s]=l[s]);return f},ensureFlagExists:function(l,s){(!(l in s)||typeof s[l]!="boolean")&&(s[l]=!1)},ensureSpacesExists:function(l){(!("spaces"in l)||typeof l.spaces!="number"&&typeof l.spaces!="string")&&(l.spaces=0)},ensureAlwaysArrayExists:function(l){(!("alwaysArray"in l)||typeof l.alwaysArray!="boolean"&&!c(l.alwaysArray))&&(l.alwaysArray=!1)},ensureKeyExists:function(l,s){(!(l+"Key"in s)||typeof s[l+"Key"]!="string")&&(s[l+"Key"]=s.compact?"_"+l:l)},checkFnExists:function(l,s){return l+"Fn"in s}}},
vendor: 5,555 bytes, line 3
3"../node_modules/xml-js/lib/xml2js.js":(K,g,E)=>{var c=E("../node_modules/sax/lib/sax.js"),l={on:function(){},parse:function(){}},s=E("../node_modules/xml-js/lib/options-helper.js"),f=E("../node_modules/xml-js/lib/array-helper.js").isArray,n,x=!0,i;function b(r){return n=s.copyOptions(r),s.ensureFlagExists("ignoreDeclaration",n),s.ensureFlagExists("ignoreInstruction",n),s.ensureFlagExists("ignoreAttributes",n),s.ensureFlagExists("ignoreText",n),s.ensureFlagExists("ignoreComment",n),s.ensureFlagExists("ignoreCdata",n),s.ensureFlagExists("ignoreDoctype",n),s.ensureFlagExists("compact",n),s.ensureFlagExists("alwaysChildren",n),s.ensureFlagExists("addParent",n),s.ensureFlagExists("trim",n),s.ensureFlagExists("nativeType",n),s.ensureFlagExists("nativeTypeAttributes",n),s.ensureFlagExists("sanitize",n),s.ensureFlagExists("instructionHasAttributes",n),s.ensureFlagExists("captureSpacesBetweenElements",n),s.ensureAlwaysArrayExists(n),s.ensureKeyExists("declaration",n),s.ensureKeyExists("instruction",n),s.ensureKeyExists("attributes",n),s.ensureKeyExists("text",n),s.ensureKeyExists("comment",n),s.ensureKeyExists("cdata",n),s.ensureKeyExists("doctype",n),s.ensureKeyExists("type",n),s.ensureKeyExists("name",n),s.ensureKeyExists("elements",n),s.ensureKeyExists("parent",n),s.checkFnExists("doctype",n),s.checkFnExists("instruction",n),s.checkFnExists("cdata",n),s.checkFnExists("comment",n),s.checkFnExists("text",n),s.checkFnExists("instructionName",n),s.checkFnExists("elementName",n),s.checkFnExists("attributeName",n),s.checkFnExists("attributeValue",n),s.checkFnExists("attributes",n),n}function h(r){var e=Number(r);if(!isNaN(e))return e;var t=r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}function F(r,e){var t;if(n.compact){if(!i[n[r+"Key"]]&&(f(n.alwaysArray)?n.alwaysArray.indexOf(n[r+"Key"])!==-1:n.alwaysArray)&&(i[n[r+"Key"]]=[]),i[n[r+"Key"]]&&!f(i[n[r+"Key"]])&&(i[n[r+"Key"]]=[i[n[r+"Key"]]]),r+"Fn"in n&&typeof e=="string"&&(e=n[r+"Fn"](e,i)),r==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(t in e)if(e.hasOwnProperty(t))if("instructionFn"in n)e[t]=n.instructionFn(e[t],t,i);else{var a=e[t];delete e[t],e[n.instructionNameFn(t,a,i)]=a}}f(i[n[r+"Key"]])?i[n[r+"Key"]].push(e):i[n[r+"Key"]]=e}else{i[n.elementsKey]||(i[n.elementsKey]=[]);var u={};if(u[n.typeKey]=r,r==="instruction"){for(t in e)if(e.hasOwnProperty(t))break;u[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(t,e,i):t,n.instructionHasAttributes?(u[n.attributesKey]=e[t][n.attributesKey],"instructionFn"in n&&(u[n.attributesKey]=n.instructionFn(u[n.attributesKey],t,i))):("instructionFn"in n&&(e[t]=n.instructionFn(e[t],t,i)),u[n.instructionKey]=e[t])}else r+"Fn"in n&&(e=n[r+"Fn"](e,i)),u[n[r+"Key"]]=e;n.addParent&&(u[n.parentKey]=i),i[n.elementsKey].push(u)}}function o(r){if("attributesFn"in n&&r&&(r=n.attributesFn(r,i)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&r){var e;for(e in r)if(r.hasOwnProperty(e)&&(n.trim&&(r[e]=r[e].trim()),n.nativeTypeAttributes&&(r[e]=h(r[e])),"attributeValueFn"in n&&(r[e]=n.attributeValueFn(r[e],e,i)),"attributeNameFn"in n)){var t=r[e];delete r[e],r[n.attributeNameFn(e,r[e],i)]=t}}return r}function p(r){var e={};if(r.body&&(r.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var t=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=t.exec(r.body))!==null;)e[a[1]]=a[2]||a[3]||a[4];e=o(e)}if(r.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;i[n.declarationKey]={},Object.keys(e).length&&(i[n.declarationKey][n.attributesKey]=e),n.addParent&&(i[n.declarationKey][n.parentKey]=i)}else{if(n.ignoreInstruction)return;n.trim&&(r.body=r.body.trim());var u={};n.instructionHasAttributes&&Object.keys(e).length?(u[r.name]={},u[r.name][n.attributesKey]=e):u[r.name]=r.body,F("instruction",u)}}function j(r,e){var t;if(typeof r=="object"&&(e=r.attributes,r=r.name),e=o(e),"elementNameFn"in n&&(r=n.elementNameFn(r,i)),n.compact){if(t={},!n.ignoreAttributes&&e&&Object.keys(e).length){t[n.attributesKey]={};var a;for(a in e)e.hasOwnProperty(a)&&(t[n.attributesKey][a]=e[a])}!(r in i)&&(f(n.alwaysArray)?n.alwaysArray.indexOf(r)!==-1:n.alwaysArray)&&(i[r]=[]),i[r]&&!f(i[r])&&(i[r]=[i[r]]),f(i[r])?i[r].push(t):i[r]=t}else i[n.elementsKey]||(i[n.elementsKey]=[]),t={},t[n.typeKey]="element",t[n.nameKey]=r,!n.ignoreAttributes&&e&&Object.keys(e).length&&(t[n.attributesKey]=e),n.alwaysChildren&&(t[n.elementsKey]=[]),i[n.elementsKey].push(t);t[n.parentKey]=i,i=t}function v(r){n.ignoreText||!r.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(r=r.trim()),n.nativeType&&(r=h(r)),n.sanitize&&(r=r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),F("text",r))}function N(r){n.ignoreComment||(n.trim&&(r=r.trim()),F("comment",r))}function w(r){var e=i[n.parentKey];n.addParent||delete i[n.parentKey],i=e}function k(r){n.ignoreCdata||(n.trim&&(r=r.trim()),F("cdata",r))}function T(r){n.ignoreDoctype||(r=r.replace(/^ /,""),n.trim&&(r=r.trim()),F("doctype",r))}function A(r){r.note=r}K.exports=function(r,e){var t=x?c.parser(!0,{}):t=new l.Parser("UTF-8"),a={};if(i=a,n=b(e),x?(t.opt={strictEntities:!0},t.onopentag=j,t.ontext=v,t.oncomment=N,t.onclosetag=w,t.onerror=A,t.oncdata=k,t.ondoctype=T,t.onprocessinginstruction=p):(t.on("startElement",j),t.on("text",v),t.on("comment",N),t.on("endElement",w),t.on("error",A)),x)t.write(r).close();else if(!t.parse(r))throw new Error("XML parsing error: "+t.getError());if(a[n.elementsKey]){var u=a[n.elementsKey];delete a[n.elementsKey],a[n.elementsKey]=u,delete a.text}return a}},
vendor: 513 bytes, line 3
3"../node_modules/xml-js/lib/xml2json.js":(K,g,E)=>{var c=E("../node_modules/xml-js/lib/options-helper.js"),l=E("../node_modules/xml-js/lib/xml2js.js");function s(f){var n=c.copyOptions(f);return c.ensureSpacesExists(n),n}K.exports=function(f,n){var x,i,b,h;return x=s(n),i=l(f,x),h="compact"in x&&x.compact?"_parent":"parent","addParent"in x&&x.addParent?b=JSON.stringify(i,function(F,o){return F===h?"_":o},x.spaces):b=JSON.stringify(i,null,x.spaces),b.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}
3}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.