UNPKG

@layers/react-native

Version:

React Native SDK for Layers Analytics with SKAN and ATT support

1,248 lines (1,224 loc) 1.22 MB
import { createRequire } from "node:module"; //#region rolldown:runtime var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$4 = 0, n = keys.length, key$3; i$4 < n; i$4++) { key$3 = keys[i$4]; if (!__hasOwnProp.call(to, key$3) && key$3 !== except) __defProp(to, key$3, { get: ((k) => from[k]).bind(null, key$3), enumerable: !(desc = __getOwnPropDesc(from, key$3)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); var __require = /* @__PURE__ */ createRequire(import.meta.url); //#endregion //#region ../../node_modules/xml2js/lib/defaults.js var require_defaults = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/lib/defaults.js": ((exports) => { (function() { exports.defaults = { "0.1": { explicitCharkey: false, trim: true, normalize: true, normalizeTags: false, attrkey: "@", charkey: "#", explicitArray: false, ignoreAttrs: false, mergeAttrs: false, explicitRoot: false, validator: null, xmlns: false, explicitChildren: false, childkey: "@@", charsAsChildren: false, includeWhiteChars: false, async: false, strict: true, attrNameProcessors: null, attrValueProcessors: null, tagNameProcessors: null, valueProcessors: null, emptyTag: "" }, "0.2": { explicitCharkey: false, trim: false, normalize: false, normalizeTags: false, attrkey: "$", charkey: "_", explicitArray: true, ignoreAttrs: false, mergeAttrs: false, explicitRoot: true, validator: null, xmlns: false, explicitChildren: false, preserveChildrenOrder: false, childkey: "$$", charsAsChildren: false, includeWhiteChars: false, async: false, strict: true, attrNameProcessors: null, attrValueProcessors: null, tagNameProcessors: null, valueProcessors: null, rootName: "root", xmldec: { "version": "1.0", "encoding": "UTF-8", "standalone": true }, doctype: null, renderOpts: { "pretty": true, "indent": " ", "newline": "\n" }, headless: false, chunkSize: 1e4, emptyTag: "", cdata: false } }; }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js var require_Utility$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js": ((exports, module) => { (function() { var assign, getValue, isArray$3, isEmpty, isFunction, isObject$1, isPlainObject, slice$1 = [].slice, hasProp = {}.hasOwnProperty; assign = function() { var i$4, key$3, len$1, source$1, sources, target = arguments[0]; sources = 2 <= arguments.length ? slice$1.call(arguments, 1) : []; if (isFunction(Object.assign)) Object.assign.apply(null, arguments); else for (i$4 = 0, len$1 = sources.length; i$4 < len$1; i$4++) { source$1 = sources[i$4]; if (source$1 != null) for (key$3 in source$1) { if (!hasProp.call(source$1, key$3)) continue; target[key$3] = source$1[key$3]; } } return target; }; isFunction = function(val) { return !!val && Object.prototype.toString.call(val) === "[object Function]"; }; isObject$1 = function(val) { var ref; return !!val && ((ref = typeof val) === "function" || ref === "object"); }; isArray$3 = function(val) { if (isFunction(Array.isArray)) return Array.isArray(val); else return Object.prototype.toString.call(val) === "[object Array]"; }; isEmpty = function(val) { var key$3; if (isArray$3(val)) return !val.length; else { for (key$3 in val) { if (!hasProp.call(val, key$3)) continue; return false; } return true; } }; isPlainObject = function(val) { var ctor, proto$2; return isObject$1(val) && (proto$2 = Object.getPrototypeOf(val)) && (ctor = proto$2.constructor) && typeof ctor === "function" && ctor instanceof ctor && Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object); }; getValue = function(obj) { if (isFunction(obj.valueOf)) return obj.valueOf(); else return obj; }; module.exports.assign = assign; module.exports.isFunction = isFunction; module.exports.isObject = isObject$1; module.exports.isArray = isArray$3; module.exports.isEmpty = isEmpty; module.exports.isPlainObject = isPlainObject; module.exports.getValue = getValue; }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js var require_XMLDOMImplementation$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js": ((exports, module) => { (function() { module.exports = (function() { function XMLDOMImplementation() {} XMLDOMImplementation.prototype.hasFeature = function(feature, version$1) { return true; }; XMLDOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) { throw new Error("This DOM method is not implemented."); }; XMLDOMImplementation.prototype.createDocument = function(namespaceURI, qualifiedName, doctype) { throw new Error("This DOM method is not implemented."); }; XMLDOMImplementation.prototype.createHTMLDocument = function(title) { throw new Error("This DOM method is not implemented."); }; XMLDOMImplementation.prototype.getFeature = function(feature, version$1) { throw new Error("This DOM method is not implemented."); }; return XMLDOMImplementation; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js var require_XMLDOMErrorHandler$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js": ((exports, module) => { (function() { module.exports = (function() { function XMLDOMErrorHandler() {} XMLDOMErrorHandler.prototype.handleError = function(error) { throw new Error(error); }; return XMLDOMErrorHandler; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js var require_XMLDOMStringList$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js": ((exports, module) => { (function() { module.exports = (function() { function XMLDOMStringList(arr) { this.arr = arr || []; } Object.defineProperty(XMLDOMStringList.prototype, "length", { get: function() { return this.arr.length; } }); XMLDOMStringList.prototype.item = function(index) { return this.arr[index] || null; }; XMLDOMStringList.prototype.contains = function(str) { return this.arr.indexOf(str) !== -1; }; return XMLDOMStringList; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js var require_XMLDOMConfiguration$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js": ((exports, module) => { (function() { var XMLDOMErrorHandler = require_XMLDOMErrorHandler$1(), XMLDOMStringList = require_XMLDOMStringList$1(); module.exports = (function() { function XMLDOMConfiguration() { this.defaultParams = { "canonical-form": false, "cdata-sections": false, "comments": false, "datatype-normalization": false, "element-content-whitespace": true, "entities": true, "error-handler": new XMLDOMErrorHandler(), "infoset": true, "validate-if-schema": false, "namespaces": true, "namespace-declarations": true, "normalize-characters": false, "schema-location": "", "schema-type": "", "split-cdata-sections": true, "validate": false, "well-formed": true }; this.params = Object.create(this.defaultParams); } Object.defineProperty(XMLDOMConfiguration.prototype, "parameterNames", { get: function() { return new XMLDOMStringList(Object.keys(this.defaultParams)); } }); XMLDOMConfiguration.prototype.getParameter = function(name) { if (this.params.hasOwnProperty(name)) return this.params[name]; else return null; }; XMLDOMConfiguration.prototype.canSetParameter = function(name, value) { return true; }; XMLDOMConfiguration.prototype.setParameter = function(name, value) { if (value != null) return this.params[name] = value; else return delete this.params[name]; }; return XMLDOMConfiguration; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js var require_NodeType$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js": ((exports, module) => { (function() { module.exports = { Element: 1, Attribute: 2, Text: 3, CData: 4, EntityReference: 5, EntityDeclaration: 6, ProcessingInstruction: 7, Comment: 8, Document: 9, DocType: 10, DocumentFragment: 11, NotationDeclaration: 12, Declaration: 201, Raw: 202, AttributeDeclaration: 203, ElementDeclaration: 204, Dummy: 205 }; }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js var require_XMLAttribute$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js": ((exports, module) => { (function() { var NodeType$1 = require_NodeType$1(); require_XMLNode$1(); module.exports = (function() { function XMLAttribute(parent, name, value) { this.parent = parent; if (this.parent) { this.options = this.parent.options; this.stringify = this.parent.stringify; } if (name == null) throw new Error("Missing attribute name. " + this.debugInfo(name)); this.name = this.stringify.name(name); this.value = this.stringify.attValue(value); this.type = NodeType$1.Attribute; this.isId = false; this.schemaTypeInfo = null; } Object.defineProperty(XMLAttribute.prototype, "nodeType", { get: function() { return this.type; } }); Object.defineProperty(XMLAttribute.prototype, "ownerElement", { get: function() { return this.parent; } }); Object.defineProperty(XMLAttribute.prototype, "textContent", { get: function() { return this.value; }, set: function(value) { return this.value = value || ""; } }); Object.defineProperty(XMLAttribute.prototype, "namespaceURI", { get: function() { return ""; } }); Object.defineProperty(XMLAttribute.prototype, "prefix", { get: function() { return ""; } }); Object.defineProperty(XMLAttribute.prototype, "localName", { get: function() { return this.name; } }); Object.defineProperty(XMLAttribute.prototype, "specified", { get: function() { return true; } }); XMLAttribute.prototype.clone = function() { return Object.create(this); }; XMLAttribute.prototype.toString = function(options) { return this.options.writer.attribute(this, this.options.writer.filterOptions(options)); }; XMLAttribute.prototype.debugInfo = function(name) { name = name || this.name; if (name == null) return "parent: <" + this.parent.name + ">"; else return "attribute: {" + name + "}, parent: <" + this.parent.name + ">"; }; XMLAttribute.prototype.isEqualNode = function(node) { if (node.namespaceURI !== this.namespaceURI) return false; if (node.prefix !== this.prefix) return false; if (node.localName !== this.localName) return false; if (node.value !== this.value) return false; return true; }; return XMLAttribute; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js var require_XMLNamedNodeMap$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js": ((exports, module) => { (function() { module.exports = (function() { function XMLNamedNodeMap(nodes) { this.nodes = nodes; } Object.defineProperty(XMLNamedNodeMap.prototype, "length", { get: function() { return Object.keys(this.nodes).length || 0; } }); XMLNamedNodeMap.prototype.clone = function() { return this.nodes = null; }; XMLNamedNodeMap.prototype.getNamedItem = function(name) { return this.nodes[name]; }; XMLNamedNodeMap.prototype.setNamedItem = function(node) { var oldNode = this.nodes[node.nodeName]; this.nodes[node.nodeName] = node; return oldNode || null; }; XMLNamedNodeMap.prototype.removeNamedItem = function(name) { var oldNode = this.nodes[name]; delete this.nodes[name]; return oldNode || null; }; XMLNamedNodeMap.prototype.item = function(index) { return this.nodes[Object.keys(this.nodes)[index]] || null; }; XMLNamedNodeMap.prototype.getNamedItemNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented."); }; XMLNamedNodeMap.prototype.setNamedItemNS = function(node) { throw new Error("This DOM method is not implemented."); }; XMLNamedNodeMap.prototype.removeNamedItemNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented."); }; return XMLNamedNodeMap; })(); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js var require_XMLElement$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js": ((exports, module) => { (function() { var NodeType$1, XMLAttribute, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject$1, ref, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; ref = require_Utility$1(), isObject$1 = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); XMLAttribute = require_XMLAttribute$1(); XMLNamedNodeMap = require_XMLNamedNodeMap$1(); module.exports = (function(superClass) { extend$1(XMLElement, superClass); function XMLElement(parent, name, attributes) { var child, j, len$1, ref1; XMLElement.__super__.constructor.call(this, parent); if (name == null) throw new Error("Missing element name. " + this.debugInfo()); this.name = this.stringify.name(name); this.type = NodeType$1.Element; this.attribs = {}; this.schemaTypeInfo = null; if (attributes != null) this.attribute(attributes); if (parent.type === NodeType$1.Document) { this.isRoot = true; this.documentObject = parent; parent.rootObject = this; if (parent.children) { ref1 = parent.children; for (j = 0, len$1 = ref1.length; j < len$1; j++) { child = ref1[j]; if (child.type === NodeType$1.DocType) { child.name = this.name; break; } } } } } Object.defineProperty(XMLElement.prototype, "tagName", { get: function() { return this.name; } }); Object.defineProperty(XMLElement.prototype, "namespaceURI", { get: function() { return ""; } }); Object.defineProperty(XMLElement.prototype, "prefix", { get: function() { return ""; } }); Object.defineProperty(XMLElement.prototype, "localName", { get: function() { return this.name; } }); Object.defineProperty(XMLElement.prototype, "id", { get: function() { throw new Error("This DOM method is not implemented." + this.debugInfo()); } }); Object.defineProperty(XMLElement.prototype, "className", { get: function() { throw new Error("This DOM method is not implemented." + this.debugInfo()); } }); Object.defineProperty(XMLElement.prototype, "classList", { get: function() { throw new Error("This DOM method is not implemented." + this.debugInfo()); } }); Object.defineProperty(XMLElement.prototype, "attributes", { get: function() { if (!this.attributeMap || !this.attributeMap.nodes) this.attributeMap = new XMLNamedNodeMap(this.attribs); return this.attributeMap; } }); XMLElement.prototype.clone = function() { var att, attName, clonedSelf = Object.create(this), ref1; if (clonedSelf.isRoot) clonedSelf.documentObject = null; clonedSelf.attribs = {}; ref1 = this.attribs; for (attName in ref1) { if (!hasProp.call(ref1, attName)) continue; att = ref1[attName]; clonedSelf.attribs[attName] = att.clone(); } clonedSelf.children = []; this.children.forEach(function(child) { var clonedChild = child.clone(); clonedChild.parent = clonedSelf; return clonedSelf.children.push(clonedChild); }); return clonedSelf; }; XMLElement.prototype.attribute = function(name, value) { var attName, attValue; if (name != null) name = getValue(name); if (isObject$1(name)) for (attName in name) { if (!hasProp.call(name, attName)) continue; attValue = name[attName]; this.attribute(attName, attValue); } else { if (isFunction(value)) value = value.apply(); if (this.options.keepNullAttributes && value == null) this.attribs[name] = new XMLAttribute(this, name, ""); else if (value != null) this.attribs[name] = new XMLAttribute(this, name, value); } return this; }; XMLElement.prototype.removeAttribute = function(name) { var attName, j, len$1; if (name == null) throw new Error("Missing attribute name. " + this.debugInfo()); name = getValue(name); if (Array.isArray(name)) for (j = 0, len$1 = name.length; j < len$1; j++) { attName = name[j]; delete this.attribs[attName]; } else delete this.attribs[name]; return this; }; XMLElement.prototype.toString = function(options) { return this.options.writer.element(this, this.options.writer.filterOptions(options)); }; XMLElement.prototype.att = function(name, value) { return this.attribute(name, value); }; XMLElement.prototype.a = function(name, value) { return this.attribute(name, value); }; XMLElement.prototype.getAttribute = function(name) { if (this.attribs.hasOwnProperty(name)) return this.attribs[name].value; else return null; }; XMLElement.prototype.setAttribute = function(name, value) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getAttributeNode = function(name) { if (this.attribs.hasOwnProperty(name)) return this.attribs[name]; else return null; }; XMLElement.prototype.setAttributeNode = function(newAttr) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.removeAttributeNode = function(oldAttr) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getElementsByTagName = function(name) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getAttributeNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.removeAttributeNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getAttributeNodeNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.setAttributeNodeNS = function(newAttr) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.hasAttribute = function(name) { return this.attribs.hasOwnProperty(name); }; XMLElement.prototype.hasAttributeNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.setIdAttribute = function(name, isId) { if (this.attribs.hasOwnProperty(name)) return this.attribs[name].isId; else return isId; }; XMLElement.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.setIdAttributeNode = function(idAttr, isId) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getElementsByTagName = function(tagname) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.getElementsByClassName = function(classNames) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLElement.prototype.isEqualNode = function(node) { var i$4, j, ref1; if (!XMLElement.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) return false; if (node.namespaceURI !== this.namespaceURI) return false; if (node.prefix !== this.prefix) return false; if (node.localName !== this.localName) return false; if (node.attribs.length !== this.attribs.length) return false; for (i$4 = j = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j <= ref1 : j >= ref1; i$4 = 0 <= ref1 ? ++j : --j) if (!this.attribs[i$4].isEqualNode(node.attribs[i$4])) return false; return true; }; return XMLElement; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js var require_XMLCharacterData$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js": ((exports, module) => { (function() { var XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; XMLNode = require_XMLNode$1(); module.exports = (function(superClass) { extend$1(XMLCharacterData, superClass); function XMLCharacterData(parent) { XMLCharacterData.__super__.constructor.call(this, parent); this.value = ""; } Object.defineProperty(XMLCharacterData.prototype, "data", { get: function() { return this.value; }, set: function(value) { return this.value = value || ""; } }); Object.defineProperty(XMLCharacterData.prototype, "length", { get: function() { return this.value.length; } }); Object.defineProperty(XMLCharacterData.prototype, "textContent", { get: function() { return this.value; }, set: function(value) { return this.value = value || ""; } }); XMLCharacterData.prototype.clone = function() { return Object.create(this); }; XMLCharacterData.prototype.substringData = function(offset, count) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLCharacterData.prototype.appendData = function(arg) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLCharacterData.prototype.insertData = function(offset, arg) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLCharacterData.prototype.deleteData = function(offset, count) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLCharacterData.prototype.replaceData = function(offset, count, arg) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLCharacterData.prototype.isEqualNode = function(node) { if (!XMLCharacterData.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) return false; if (node.data !== this.data) return false; return true; }; return XMLCharacterData; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js var require_XMLCData$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js": ((exports, module) => { (function() { var NodeType$1, XMLCharacterData, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; NodeType$1 = require_NodeType$1(); XMLCharacterData = require_XMLCharacterData$1(); module.exports = (function(superClass) { extend$1(XMLCData, superClass); function XMLCData(parent, text) { XMLCData.__super__.constructor.call(this, parent); if (text == null) throw new Error("Missing CDATA text. " + this.debugInfo()); this.name = "#cdata-section"; this.type = NodeType$1.CData; this.value = this.stringify.cdata(text); } XMLCData.prototype.clone = function() { return Object.create(this); }; XMLCData.prototype.toString = function(options) { return this.options.writer.cdata(this, this.options.writer.filterOptions(options)); }; return XMLCData; })(XMLCharacterData); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js var require_XMLComment$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js": ((exports, module) => { (function() { var NodeType$1, XMLCharacterData, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; NodeType$1 = require_NodeType$1(); XMLCharacterData = require_XMLCharacterData$1(); module.exports = (function(superClass) { extend$1(XMLComment, superClass); function XMLComment(parent, text) { XMLComment.__super__.constructor.call(this, parent); if (text == null) throw new Error("Missing comment text. " + this.debugInfo()); this.name = "#comment"; this.type = NodeType$1.Comment; this.value = this.stringify.comment(text); } XMLComment.prototype.clone = function() { return Object.create(this); }; XMLComment.prototype.toString = function(options) { return this.options.writer.comment(this, this.options.writer.filterOptions(options)); }; return XMLComment; })(XMLCharacterData); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js var require_XMLDeclaration$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, isObject$1, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; isObject$1 = require_Utility$1().isObject; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); module.exports = (function(superClass) { extend$1(XMLDeclaration, superClass); function XMLDeclaration(parent, version$1, encoding, standalone) { var ref; XMLDeclaration.__super__.constructor.call(this, parent); if (isObject$1(version$1)) ref = version$1, version$1 = ref.version, encoding = ref.encoding, standalone = ref.standalone; if (!version$1) version$1 = "1.0"; this.type = NodeType$1.Declaration; this.version = this.stringify.xmlVersion(version$1); if (encoding != null) this.encoding = this.stringify.xmlEncoding(encoding); if (standalone != null) this.standalone = this.stringify.xmlStandalone(standalone); } XMLDeclaration.prototype.toString = function(options) { return this.options.writer.declaration(this, this.options.writer.filterOptions(options)); }; return XMLDeclaration; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js var require_XMLDTDAttList$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); module.exports = (function(superClass) { extend$1(XMLDTDAttList, superClass); function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) { XMLDTDAttList.__super__.constructor.call(this, parent); if (elementName == null) throw new Error("Missing DTD element name. " + this.debugInfo()); if (attributeName == null) throw new Error("Missing DTD attribute name. " + this.debugInfo(elementName)); if (!attributeType) throw new Error("Missing DTD attribute type. " + this.debugInfo(elementName)); if (!defaultValueType) throw new Error("Missing DTD attribute default. " + this.debugInfo(elementName)); if (defaultValueType.indexOf("#") !== 0) defaultValueType = "#" + defaultValueType; if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(elementName)); if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(elementName)); this.elementName = this.stringify.name(elementName); this.type = NodeType$1.AttributeDeclaration; this.attributeName = this.stringify.name(attributeName); this.attributeType = this.stringify.dtdAttType(attributeType); if (defaultValue) this.defaultValue = this.stringify.dtdAttDefault(defaultValue); this.defaultValueType = defaultValueType; } XMLDTDAttList.prototype.toString = function(options) { return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(options)); }; return XMLDTDAttList; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js var require_XMLDTDEntity$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, isObject$1, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; isObject$1 = require_Utility$1().isObject; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); module.exports = (function(superClass) { extend$1(XMLDTDEntity, superClass); function XMLDTDEntity(parent, pe, name, value) { XMLDTDEntity.__super__.constructor.call(this, parent); if (name == null) throw new Error("Missing DTD entity name. " + this.debugInfo(name)); if (value == null) throw new Error("Missing DTD entity value. " + this.debugInfo(name)); this.pe = !!pe; this.name = this.stringify.name(name); this.type = NodeType$1.EntityDeclaration; if (!isObject$1(value)) { this.value = this.stringify.dtdEntityValue(value); this.internal = true; } else { if (!value.pubID && !value.sysID) throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(name)); if (value.pubID && !value.sysID) throw new Error("System identifier is required for a public external entity. " + this.debugInfo(name)); this.internal = false; if (value.pubID != null) this.pubID = this.stringify.dtdPubID(value.pubID); if (value.sysID != null) this.sysID = this.stringify.dtdSysID(value.sysID); if (value.nData != null) this.nData = this.stringify.dtdNData(value.nData); if (this.pe && this.nData) throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(name)); } } Object.defineProperty(XMLDTDEntity.prototype, "publicId", { get: function() { return this.pubID; } }); Object.defineProperty(XMLDTDEntity.prototype, "systemId", { get: function() { return this.sysID; } }); Object.defineProperty(XMLDTDEntity.prototype, "notationName", { get: function() { return this.nData || null; } }); Object.defineProperty(XMLDTDEntity.prototype, "inputEncoding", { get: function() { return null; } }); Object.defineProperty(XMLDTDEntity.prototype, "xmlEncoding", { get: function() { return null; } }); Object.defineProperty(XMLDTDEntity.prototype, "xmlVersion", { get: function() { return null; } }); XMLDTDEntity.prototype.toString = function(options) { return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options)); }; return XMLDTDEntity; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js var require_XMLDTDElement$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); module.exports = (function(superClass) { extend$1(XMLDTDElement, superClass); function XMLDTDElement(parent, name, value) { XMLDTDElement.__super__.constructor.call(this, parent); if (name == null) throw new Error("Missing DTD element name. " + this.debugInfo()); if (!value) value = "(#PCDATA)"; if (Array.isArray(value)) value = "(" + value.join(",") + ")"; this.name = this.stringify.name(name); this.type = NodeType$1.ElementDeclaration; this.value = this.stringify.dtdElementValue(value); } XMLDTDElement.prototype.toString = function(options) { return this.options.writer.dtdElement(this, this.options.writer.filterOptions(options)); }; return XMLDTDElement; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js var require_XMLDTDNotation$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); module.exports = (function(superClass) { extend$1(XMLDTDNotation, superClass); function XMLDTDNotation(parent, name, value) { XMLDTDNotation.__super__.constructor.call(this, parent); if (name == null) throw new Error("Missing DTD notation name. " + this.debugInfo(name)); if (!value.pubID && !value.sysID) throw new Error("Public or system identifiers are required for an external entity. " + this.debugInfo(name)); this.name = this.stringify.name(name); this.type = NodeType$1.NotationDeclaration; if (value.pubID != null) this.pubID = this.stringify.dtdPubID(value.pubID); if (value.sysID != null) this.sysID = this.stringify.dtdSysID(value.sysID); } Object.defineProperty(XMLDTDNotation.prototype, "publicId", { get: function() { return this.pubID; } }); Object.defineProperty(XMLDTDNotation.prototype, "systemId", { get: function() { return this.sysID; } }); XMLDTDNotation.prototype.toString = function(options) { return this.options.writer.dtdNotation(this, this.options.writer.filterOptions(options)); }; return XMLDTDNotation; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js var require_XMLDocType$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js": ((exports, module) => { (function() { var NodeType$1, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLNamedNodeMap, XMLNode, isObject$1, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; isObject$1 = require_Utility$1().isObject; XMLNode = require_XMLNode$1(); NodeType$1 = require_NodeType$1(); XMLDTDAttList = require_XMLDTDAttList$1(); XMLDTDEntity = require_XMLDTDEntity$1(); XMLDTDElement = require_XMLDTDElement$1(); XMLDTDNotation = require_XMLDTDNotation$1(); XMLNamedNodeMap = require_XMLNamedNodeMap$1(); module.exports = (function(superClass) { extend$1(XMLDocType, superClass); function XMLDocType(parent, pubID, sysID) { var child, i$4, len$1, ref, ref1, ref2; XMLDocType.__super__.constructor.call(this, parent); this.type = NodeType$1.DocType; if (parent.children) { ref = parent.children; for (i$4 = 0, len$1 = ref.length; i$4 < len$1; i$4++) { child = ref[i$4]; if (child.type === NodeType$1.Element) { this.name = child.name; break; } } } this.documentObject = parent; if (isObject$1(pubID)) ref1 = pubID, pubID = ref1.pubID, sysID = ref1.sysID; if (sysID == null) ref2 = [pubID, sysID], sysID = ref2[0], pubID = ref2[1]; if (pubID != null) this.pubID = this.stringify.dtdPubID(pubID); if (sysID != null) this.sysID = this.stringify.dtdSysID(sysID); } Object.defineProperty(XMLDocType.prototype, "entities", { get: function() { var child, i$4, len$1, nodes = {}, ref = this.children; for (i$4 = 0, len$1 = ref.length; i$4 < len$1; i$4++) { child = ref[i$4]; if (child.type === NodeType$1.EntityDeclaration && !child.pe) nodes[child.name] = child; } return new XMLNamedNodeMap(nodes); } }); Object.defineProperty(XMLDocType.prototype, "notations", { get: function() { var child, i$4, len$1, nodes = {}, ref = this.children; for (i$4 = 0, len$1 = ref.length; i$4 < len$1; i$4++) { child = ref[i$4]; if (child.type === NodeType$1.NotationDeclaration) nodes[child.name] = child; } return new XMLNamedNodeMap(nodes); } }); Object.defineProperty(XMLDocType.prototype, "publicId", { get: function() { return this.pubID; } }); Object.defineProperty(XMLDocType.prototype, "systemId", { get: function() { return this.sysID; } }); Object.defineProperty(XMLDocType.prototype, "internalSubset", { get: function() { throw new Error("This DOM method is not implemented." + this.debugInfo()); } }); XMLDocType.prototype.element = function(name, value) { var child = new XMLDTDElement(this, name, value); this.children.push(child); return this; }; XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) { var child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue); this.children.push(child); return this; }; XMLDocType.prototype.entity = function(name, value) { var child = new XMLDTDEntity(this, false, name, value); this.children.push(child); return this; }; XMLDocType.prototype.pEntity = function(name, value) { var child = new XMLDTDEntity(this, true, name, value); this.children.push(child); return this; }; XMLDocType.prototype.notation = function(name, value) { var child = new XMLDTDNotation(this, name, value); this.children.push(child); return this; }; XMLDocType.prototype.toString = function(options) { return this.options.writer.docType(this, this.options.writer.filterOptions(options)); }; XMLDocType.prototype.ele = function(name, value) { return this.element(name, value); }; XMLDocType.prototype.att = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) { return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue); }; XMLDocType.prototype.ent = function(name, value) { return this.entity(name, value); }; XMLDocType.prototype.pent = function(name, value) { return this.pEntity(name, value); }; XMLDocType.prototype.not = function(name, value) { return this.notation(name, value); }; XMLDocType.prototype.up = function() { return this.root() || this.documentObject; }; XMLDocType.prototype.isEqualNode = function(node) { if (!XMLDocType.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) return false; if (node.name !== this.name) return false; if (node.publicId !== this.publicId) return false; if (node.systemId !== this.systemId) return false; return true; }; return XMLDocType; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js var require_XMLRaw$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; NodeType$1 = require_NodeType$1(); XMLNode = require_XMLNode$1(); module.exports = (function(superClass) { extend$1(XMLRaw, superClass); function XMLRaw(parent, text) { XMLRaw.__super__.constructor.call(this, parent); if (text == null) throw new Error("Missing raw text. " + this.debugInfo()); this.type = NodeType$1.Raw; this.value = this.stringify.raw(text); } XMLRaw.prototype.clone = function() { return Object.create(this); }; XMLRaw.prototype.toString = function(options) { return this.options.writer.raw(this, this.options.writer.filterOptions(options)); }; return XMLRaw; })(XMLNode); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js var require_XMLText$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js": ((exports, module) => { (function() { var NodeType$1, XMLCharacterData, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; NodeType$1 = require_NodeType$1(); XMLCharacterData = require_XMLCharacterData$1(); module.exports = (function(superClass) { extend$1(XMLText, superClass); function XMLText(parent, text) { XMLText.__super__.constructor.call(this, parent); if (text == null) throw new Error("Missing element text. " + this.debugInfo()); this.name = "#text"; this.type = NodeType$1.Text; this.value = this.stringify.text(text); } Object.defineProperty(XMLText.prototype, "isElementContentWhitespace", { get: function() { throw new Error("This DOM method is not implemented." + this.debugInfo()); } }); Object.defineProperty(XMLText.prototype, "wholeText", { get: function() { var next, prev, str = ""; prev = this.previousSibling; while (prev) { str = prev.data + str; prev = prev.previousSibling; } str += this.data; next = this.nextSibling; while (next) { str = str + next.data; next = next.nextSibling; } return str; } }); XMLText.prototype.clone = function() { return Object.create(this); }; XMLText.prototype.toString = function(options) { return this.options.writer.text(this, this.options.writer.filterOptions(options)); }; XMLText.prototype.splitText = function(offset) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; XMLText.prototype.replaceWholeText = function(content) { throw new Error("This DOM method is not implemented." + this.debugInfo()); }; return XMLText; })(XMLCharacterData); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js var require_XMLProcessingInstruction$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js": ((exports, module) => { (function() { var NodeType$1, XMLCharacterData, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; NodeType$1 = require_NodeType$1(); XMLCharacterData = require_XMLCharacterData$1(); module.exports = (function(superClass) { extend$1(XMLProcessingInstruction, superClass); function XMLProcessingInstruction(parent, target, value) { XMLProcessingInstruction.__super__.constructor.call(this, parent); if (target == null) throw new Error("Missing instruction target. " + this.debugInfo()); this.type = NodeType$1.ProcessingInstruction; this.target = this.stringify.insTarget(target); this.name = this.target; if (value) this.value = this.stringify.insValue(value); } XMLProcessingInstruction.prototype.clone = function() { return Object.create(this); }; XMLProcessingInstruction.prototype.toString = function(options) { return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options)); }; XMLProcessingInstruction.prototype.isEqualNode = function(node) { if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) return false; if (node.target !== this.target) return false; return true; }; return XMLProcessingInstruction; })(XMLCharacterData); }).call(exports); }) }); //#endregion //#region ../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js var require_XMLDummy$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js": ((exports, module) => { (function() { var NodeType$1, XMLNode, extend$1 = function(child, parent) { for (var key$3 in parent) if (hasProp.call(parent, key$3)) child[key$3] = parent[key$3]; function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return