/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = "./options/ObjTree.js");
/******/ })
/************************************************************************/
/******/ ({

/***/ "./options/ObjTree.js":
/*!****************************!*\
  !*** ./options/ObjTree.js ***!
  \****************************/
/*! no static exports found */
/***/ (function(module, exports) {

eval("// ========================================================================\n//  XML.ObjTree -- XML source code from/to JavaScript object like E4X\n// ========================================================================\nif (typeof XML == 'undefined') XML = function () {}; //  constructor\n\nXML.ObjTree = function () {\n  return this;\n}; //  class variables\n\n\nXML.ObjTree.VERSION = '0.24'; //  object prototype\n\nXML.ObjTree.prototype.xmlDecl = '<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\\n';\nXML.ObjTree.prototype.attr_prefix = '-';\nXML.ObjTree.prototype.overrideMimeType = 'text/xml'; //  method: parseXML( xmlsource )\n\nXML.ObjTree.prototype.parseXML = function (xml) {\n  var root;\n\n  if (window.DOMParser) {\n    var xmldom = new DOMParser(); //      xmldom.async = false;           // DOMParser is always sync-mode\n\n    var dom = xmldom.parseFromString(xml, 'application/xml');\n    if (!dom) return;\n    root = dom.documentElement;\n  } else if (window.ActiveXObject) {\n    xmldom = new ActiveXObject('Microsoft.XMLDOM');\n    xmldom.async = false;\n    xmldom.loadXML(xml);\n    root = xmldom.documentElement;\n  }\n\n  if (!root) return;\n  return this.parseDOM(root);\n}; //  method: parseHTTP( url, options, callback )\n\n\nXML.ObjTree.prototype.parseHTTP = function (url, options, callback) {\n  var myopt = {};\n\n  for (var key in options) {\n    myopt[key] = options[key]; // copy object\n  }\n\n  if (!myopt.method) {\n    if (typeof myopt.postBody == 'undefined' && typeof myopt.postbody == 'undefined' && typeof myopt.parameters == 'undefined') {\n      myopt.method = 'get';\n    } else {\n      myopt.method = 'post';\n    }\n  }\n\n  if (callback) {\n    myopt.asynchronous = true; // async-mode\n\n    var __this = this;\n\n    var __func = callback;\n    var __save = myopt.onComplete;\n\n    myopt.onComplete = function (trans) {\n      var tree;\n\n      if (trans && trans.responseXML && trans.responseXML.documentElement) {\n        tree = __this.parseDOM(trans.responseXML.documentElement);\n      } else if (trans && trans.responseText) {\n        tree = __this.parseXML(trans.responseText);\n      }\n\n      __func(tree, trans);\n\n      if (__save) __save(trans);\n    };\n  } else {\n    myopt.asynchronous = false; // sync-mode\n  }\n\n  var trans;\n\n  if (typeof HTTP != 'undefined' && HTTP.Request) {\n    myopt.uri = url;\n    var req = new HTTP.Request(myopt); // JSAN\n\n    if (req) trans = req.transport;\n  } else if (typeof Ajax != 'undefined' && Ajax.Request) {\n    var req = new Ajax.Request(url, myopt); // ptorotype.js\n\n    if (req) trans = req.transport;\n  } //  if ( trans && typeof(trans.overrideMimeType) != \"undefined\" ) {\n  //      trans.overrideMimeType( this.overrideMimeType );\n  //  }\n\n\n  if (callback) return trans;\n\n  if (trans && trans.responseXML && trans.responseXML.documentElement) {\n    return this.parseDOM(trans.responseXML.documentElement);\n  } else if (trans && trans.responseText) {\n    return this.parseXML(trans.responseText);\n  }\n}; //  method: parseDOM( documentroot )\n\n\nXML.ObjTree.prototype.parseDOM = function (root) {\n  if (!root) return;\n  this.__force_array = {};\n\n  if (this.force_array) {\n    for (var i = 0; i < this.force_array.length; i++) {\n      this.__force_array[this.force_array[i]] = 1;\n    }\n  }\n\n  var json = this.parseElement(root); // parse root node\n\n  if (this.__force_array[root.nodeName]) {\n    json = [json];\n  }\n\n  if (root.nodeType != 11) {\n    // DOCUMENT_FRAGMENT_NODE\n    var tmp = {};\n    tmp[root.nodeName] = json; // root nodeName\n\n    json = tmp;\n  }\n\n  return json;\n}; //  method: parseElement( element )\n\n\nXML.ObjTree.prototype.parseElement = function (elem) {\n  //  COMMENT_NODE\n  if (elem.nodeType == 7) {\n    return;\n  } //  TEXT_NODE CDATA_SECTION_NODE\n\n\n  if (elem.nodeType == 3 || elem.nodeType == 4) {\n    var bool = elem.nodeValue.match(/[^\\x00-\\x20]/);\n    if (bool == null) return; // ignore white spaces\n\n    return elem.nodeValue;\n  }\n\n  var retval;\n  var cnt = {}; //  parse attributes\n\n  if (elem.attributes && elem.attributes.length) {\n    retval = {};\n\n    for (var i = 0; i < elem.attributes.length; i++) {\n      var key = elem.attributes[i].nodeName;\n      if (typeof key != 'string') continue;\n      var val = elem.attributes[i].nodeValue;\n      if (!val) continue;\n      key = this.attr_prefix + key;\n      if (typeof cnt[key] == 'undefined') cnt[key] = 0;\n      cnt[key]++;\n      this.addNode(retval, key, cnt[key], val);\n    }\n  } //  parse child nodes (recursive)\n\n\n  if (elem.childNodes && elem.childNodes.length) {\n    var textonly = true;\n    if (retval) textonly = false; // some attributes exists\n\n    for (var i = 0; i < elem.childNodes.length && textonly; i++) {\n      var ntype = elem.childNodes[i].nodeType;\n      if (ntype == 3 || ntype == 4) continue;\n      textonly = false;\n    }\n\n    if (textonly) {\n      if (!retval) retval = '';\n\n      for (var i = 0; i < elem.childNodes.length; i++) {\n        retval += elem.childNodes[i].nodeValue;\n      }\n    } else {\n      if (!retval) retval = {};\n\n      for (var i = 0; i < elem.childNodes.length; i++) {\n        var key = elem.childNodes[i].nodeName;\n        if (typeof key != 'string') continue;\n        var val = this.parseElement(elem.childNodes[i]);\n        if (!val) continue;\n        if (typeof cnt[key] == 'undefined') cnt[key] = 0;\n        cnt[key]++;\n        this.addNode(retval, key, cnt[key], val);\n      }\n    }\n  }\n\n  return retval;\n}; //  method: addNode( hash, key, count, value )\n\n\nXML.ObjTree.prototype.addNode = function (hash, key, cnts, val) {\n  if (this.__force_array[key]) {\n    if (cnts == 1) hash[key] = [];\n    hash[key][hash[key].length] = val; // push\n  } else if (cnts == 1) {\n    // 1st sibling\n    hash[key] = val;\n  } else if (cnts == 2) {\n    // 2nd sibling\n    hash[key] = [hash[key], val];\n  } else {\n    // 3rd sibling and more\n    hash[key][hash[key].length] = val;\n  }\n}; //  method: writeXML( tree )\n\n\nXML.ObjTree.prototype.writeXML = function (tree) {\n  var xml = this.hash_to_xml(null, tree);\n  return this.xmlDecl + xml;\n}; //  method: hash_to_xml( tagName, tree )\n\n\nXML.ObjTree.prototype.hash_to_xml = function (name, tree) {\n  var elem = [];\n  var attr = [];\n\n  for (var key in tree) {\n    if (!tree.hasOwnProperty(key)) continue;\n    var val = tree[key];\n\n    if (key.charAt(0) != this.attr_prefix) {\n      if (typeof val == 'undefined' || val == null) {\n        elem[elem.length] = '<' + key + ' />';\n      } else if (typeof val == 'object' && val.constructor == Array) {\n        elem[elem.length] = this.array_to_xml(key, val);\n      } else if (typeof val == 'object') {\n        elem[elem.length] = this.hash_to_xml(key, val);\n      } else {\n        elem[elem.length] = this.scalar_to_xml(key, val);\n      }\n    } else {\n      attr[attr.length] = ' ' + key.substring(1) + '=\"' + this.xml_escape(val) + '\"';\n    }\n  }\n\n  var jattr = attr.join('');\n  var jelem = elem.join('');\n\n  if (typeof name == 'undefined' || name == null) {// no tag\n  } else if (elem.length > 0) {\n    if (jelem.match(/\\n/)) {\n      jelem = '<' + name + jattr + '>\\n' + jelem + '</' + name + '>\\n';\n    } else {\n      jelem = '<' + name + jattr + '>' + jelem + '</' + name + '>\\n';\n    }\n  } else {\n    jelem = '<' + name + jattr + ' />\\n';\n  }\n\n  return jelem;\n}; //  method: array_to_xml( tagName, array )\n\n\nXML.ObjTree.prototype.array_to_xml = function (name, array) {\n  var out = [];\n\n  for (var i = 0; i < array.length; i++) {\n    var val = array[i];\n\n    if (typeof val == 'undefined' || val == null) {\n      out[out.length] = '<' + name + ' />';\n    } else if (typeof val == 'object' && val.constructor == Array) {\n      out[out.length] = this.array_to_xml(name, val);\n    } else if (typeof val == 'object') {\n      out[out.length] = this.hash_to_xml(name, val);\n    } else {\n      out[out.length] = this.scalar_to_xml(name, val);\n    }\n  }\n\n  return out.join('');\n}; //  method: scalar_to_xml( tagName, text )\n\n\nXML.ObjTree.prototype.scalar_to_xml = function (name, text) {\n  if (name == '#text') {\n    return this.xml_escape(text);\n  } else {\n    return '<' + name + '>' + this.xml_escape(text) + '</' + name + '>\\n';\n  }\n}; //  method: xml_escape( text )\n\n\nXML.ObjTree.prototype.xml_escape = function (text) {\n  return String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');\n};\n/*\n// ========================================================================\n\n=head1 NAME\n\nXML.ObjTree -- XML source code from/to JavaScript object like E4X\n\n=head1 SYNOPSIS\n\n    var xotree = new XML.ObjTree();\n    var tree1 = {\n        root: {\n            node: \"Hello, World!\"\n        }\n    };\n    var xml1 = xotree.writeXML( tree1 );        // object tree to XML source\n    alert( \"xml1: \"+xml1 );\n\n    var xml2 = '<?xml version=\"1.0\"?><response><error>0</error></response>';\n    var tree2 = xotree.parseXML( xml2 );        // XML source to object tree\n    alert( \"error: \"+tree2.response.error );\n\n=head1 DESCRIPTION\n\nXML.ObjTree class is a parser/generater between XML source code\nand JavaScript object like E4X, ECMAScript for XML.\nThis is a JavaScript version of the XML::TreePP module for Perl.\nThis also works as a wrapper for XMLHTTPRequest and successor to JKL.ParseXML class\nwhen this is used with prototype.js or JSAN's HTTP.Request class.\n\n=head2 JavaScript object tree format\n\nA sample XML source:\n\n    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <family name=\"Kawasaki\">\n        <father>Yasuhisa</father>\n        <mother>Chizuko</mother>\n        <children>\n            <girl>Shiori</girl>\n            <boy>Yusuke</boy>\n            <boy>Kairi</boy>\n        </children>\n    </family>\n\nIts JavaScript object tree like JSON/E4X:\n\n    {\n        'family': {\n            '-name':    'Kawasaki',\n            'father':   'Yasuhisa',\n            'mother':   'Chizuko',\n            'children': {\n                'girl': 'Shiori'\n                'boy': [\n                    'Yusuke',\n                    'Kairi'\n                ]\n            }\n        }\n    };\n\nEach elements are parsed into objects:\n\n    tree.family.father;             # the father's given name.\n\nPrefix '-' is inserted before every attributes' name.\n\n    tree.family[\"-name\"];           # this family's family name\n\nA array is used because this family has two boys.\n\n    tree.family.children.boy[0];    # first boy's name\n    tree.family.children.boy[1];    # second boy's name\n    tree.family.children.girl;      # (girl has no other sisiters)\n\n=head1 METHODS\n\n=head2 xotree = new XML.ObjTree()\n\nThis constructor method returns a new XML.ObjTree object.\n\n=head2 xotree.force_array = [ \"rdf:li\", \"item\", \"-xmlns\" ];\n\nThis property allows you to specify a list of element names\nwhich should always be forced into an array representation.\nThe default value is null, it means that context of the elements\nwill determine to make array or to keep it scalar.\n\n=head2 xotree.attr_prefix = '@';\n\nThis property allows you to specify a prefix character which is\ninserted before each attribute names.\nInstead of default prefix '-', E4X-style prefix '@' is also available.\nThe default character is '-'.\nOr set '@' to access attribute values like E4X, ECMAScript for XML.\nThe length of attr_prefix must be just one character and not be empty.\n\n=head2 xotree.xmlDecl = '';\n\nThis library generates an XML declaration on writing an XML code per default.\nThis property forces to change or leave it empty.\n\n=head2 tree = xotree.parseXML( xmlsrc );\n\nThis method loads an XML document using the supplied string\nand returns its JavaScript object converted.\n\n=head2 tree = xotree.parseDOM( domnode );\n\nThis method parses a DOM tree (ex. responseXML.documentElement)\nand returns its JavaScript object converted.\n\n=head2 tree = xotree.parseHTTP( url, options );\n\nThis method loads a XML file from remote web server\nand returns its JavaScript object converted.\nXMLHTTPRequest's synchronous mode is always used.\nThis mode blocks the process until the response is completed.\n\nFirst argument is a XML file's URL\nwhich must exist in the same domain as parent HTML file's.\nCross-domain loading is not available for security reasons.\n\nSecond argument is options' object which can contains some parameters:\nmethod, postBody, parameters, onLoading, etc.\n\nThis method requires JSAN's L<HTTP.Request> class or prototype.js's Ajax.Request class.\n\n=head2 xotree.parseHTTP( url, options, callback );\n\nIf a callback function is set as third argument,\nXMLHTTPRequest's asynchronous mode is used.\n\nThis mode calls a callback function with XML file's JavaScript object converted\nafter the response is completed.\n\n=head2 xmlsrc = xotree.writeXML( tree );\n\nThis method parses a JavaScript object tree\nand returns its XML source generated.\n\n=head1 EXAMPLES\n\n=head2 Text node and attributes\n\nIf a element has both of a text node and attributes\nor both of a text node and other child nodes,\ntext node's value is moved to a special node named \"#text\".\n\n    var xotree = new XML.ObjTree();\n    var xmlsrc = '<span class=\"author\">Kawasaki Yusuke</span>';\n    var tree = xotree.parseXML( xmlsrc );\n    var class = tree.span[\"-class\"];        # attribute\n    var name  = tree.span[\"#text\"];         # text node\n\n=head2 parseHTTP() method with HTTP-GET and sync-mode\n\nHTTP/Request.js or prototype.js must be loaded before calling this method.\n\n    var xotree = new XML.ObjTree();\n    var url = \"http://example.com/index.html\";\n    var tree = xotree.parseHTTP( url );\n    xotree.attr_prefix = '@';                   // E4X-style\n    alert( tree.html[\"@lang\"] );\n\nThis code shows C<lang=\"\"> attribute from a X-HTML source code.\n\n=head2 parseHTTP() method with HTTP-POST and async-mode\n\nThird argument is a callback function which is called on onComplete.\n\n    var xotree = new XML.ObjTree();\n    var url = \"http://example.com/mt-tb.cgi\";\n    var opts = {\n        postBody:   \"title=...&excerpt=...&url=...&blog_name=...\"\n    };\n    var func = function ( tree ) {\n        alert( tree.response.error );\n    };\n    xotree.parseHTTP( url, opts, func );\n\nThis code send a trackback ping and shows its response code.\n\n=head2 Simple RSS reader\n\nThis is a RSS reader which loads RDF file and displays all items.\n\n    var xotree = new XML.ObjTree();\n    xotree.force_array = [ \"rdf:li\", \"item\" ];\n    var url = \"http://example.com/news-rdf.xml\";\n    var func = function( tree ) {\n        var elem = document.getElementById(\"rss_here\");\n        for( var i=0; i<tree[\"rdf:RDF\"].item.length; i++ ) {\n            var divtag = document.createElement( \"div\" );\n            var atag = document.createElement( \"a\" );\n            atag.href = tree[\"rdf:RDF\"].item[i].link;\n            var title = tree[\"rdf:RDF\"].item[i].title;\n            var tnode = document.createTextNode( title );\n            atag.appendChild( tnode );\n            divtag.appendChild( atag );\n            elem.appendChild( divtag );\n        }\n    };\n    xotree.parseHTTP( url, {}, func );\n\n=head2  XML-RPC using writeXML, prototype.js and parseDOM\n\nIf you wish to use prototype.js's Ajax.Request class by yourself:\n\n    var xotree = new XML.ObjTree();\n    var reqtree = {\n        methodCall: {\n            methodName: \"weblogUpdates.ping\",\n            params: {\n                param: [\n                    { value: \"Kawa.net xp top page\" },  // 1st param\n                    { value: \"http://www.kawa.net/\" }   // 2nd param\n                ]\n            }\n        }\n    };\n    var reqxml = xotree.writeXML( reqtree );       // JS-Object to XML code\n    var url = \"http://example.com/xmlrpc\";\n    var func = function( req ) {\n        var resdom = req.responseXML.documentElement;\n        xotree.force_array = [ \"member\" ];\n        var restree = xotree.parseDOM( resdom );   // XML-DOM to JS-Object\n        alert( restree.methodResponse.params.param.value.struct.member[0].value.string );\n    };\n    var opt = {\n        method:         \"post\",\n        postBody:       reqxml,\n        asynchronous:   true,\n        onComplete:     func\n    };\n    new Ajax.Request( url, opt );\n\n=head1 AUTHOR\n\nYusuke Kawasaki http://www.kawa.net/\n\n=head1 COPYRIGHT AND LICENSE\n\nCopyright (c) 2005-2006 Yusuke Kawasaki. All rights reserved.\nThis program is free software; you can redistribute it and/or\nmodify it under the Artistic license. Or whatever license I choose,\nwhich I will do instead of keeping this documentation like it is.\n\n=cut\n// ========================================================================\n*/\n\n//# sourceURL=webpack:///./options/ObjTree.js?");

/***/ })

/******/ });