{ "version": 3, "file": "aerogear.js", "sources": [ "src/microlib/banner.js", "dist/aerogear.core.js", "dist/aerogear.ajax.js", "dist/aerogear.authz.js", "dist/oauth2.js", "src/microlib/footer.js" ], "names": [], "mappings": "AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oB;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAkBgB;AAC4B;AACd;AAC+B;AAC3D;AAAA;AAEE;AACwG;AACxF;AACX;AAC4K;AAC5G;AACrE;AAC4B;AACvB;AACI;AACuC;AACR;AAAA;AAEzB;AACF;AAC4B;AACS;AACoC;AAChD;AACuB;AACrB;AACf;AAAA;AAEc;AACqD;AACjF;AACc;AAAA;AAE4D;AACJ;AAAA;AAEgD;AAC3H;AACF;AACF;AACK;AACc;AACN;AACb;AAAA;AAE6E;AAClC;AAC4B;AAAA;AAE8C;AACvH;AAAA;AAE+B;AACS;AAAA;AAE7B;AACZ;AACC;AACqH;AAClG;AACd;AAC2L;AAC3H;AACrE;AAC+B;AAC1B;AACI;AACuC;AAAA;AAEd;AACgB;AACrB;AACS;AACuB;AACrB;AACf;AAAA;AAEc;AACL;AACvB;AAC4B;AACnC;AACF;AACmB;AACwB;AACX;AAClC;AAAA;AAE+B;AACS;AAAA;AAE7B;AACZ;AACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOwB;AACH;AACM;AACW;AACX;AACD;AACW;AACjC;AACF;AACa;AACd;AAAA;AAEc;AACH;AACG;AACf;AAAA;AAEY;AAAU;AAAQ;AAAA;AAAA,E;AC/I9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKgC;AACoB;AACnB;AAAA;AAES;AACnB;AAC2C;AACM;AACI;AACgD;AACtC;AACpE;AACF;AACe;AACD;AACE;AAAA;AAED;AACJ;AACkG;AAC9E;AACkF;AACjH;AACwB;AACqB;AAC5B;AACc;AACQ;AAC3C;AACJ;AAAA;AAE2D;AAC3C;AACY;AAC4E;AAChG;AACJ;AACiC;AACrC;AAAA;AAE2D;AACF;AACd;AAC3C;AAAA;AAE4E;AAAA;AAEzC;AACoB;AACX;AAAA;AAErB;AACgB;AAC+B;AAClE;AACJ;AAAA;AAEmB;AACS;AACmC;AACF;AAAA;AAE9B;AACO;AAClC;AAAA;AAE6B;AAChC;AAAA;AAEe;AACa;AACL;AAAA;AAE4B;AACnD;AAAA;AAEyB;AACsB;AACC;AACgE;AAAA;AAEtG;AACc;AACK;AACT;AAChB;AACJ;AAAA;AAEmB;AACtB;AACL;AAAA;AAEiB;AAAA;AAAA;AAAA,E;AC5IlB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGkC;AACS;AACG;AACJ;AACtC;AAAA;AAEmB;AACF;AAAA;AAES;AAC6B;AAAA;AAErD;AACyF;AACxD;AACpB;AACK;AAClB;AAC8B;AAAA;AAEd;AACtB;AAAA;AAE8B;AACgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAMnB;AAAA;AAEW;AAAA;AAEjB;AAAA;AAAA;AAAA,E;ACjErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BqE;AAC3C;AACyC;AACX;AAAA;AAEzC;AACI;AACU;AACK;AAC1B;AACmC;AAC3C;AAAA;AAE0C;AAAA;AAAA;AAAA,E;AChR3C;AACA;AACA;AACA;AACA;AACA;AACA;A", "sourcesContent": [ null, "/* AeroGear JavaScript Library\n * https://github.com/aerogear/aerogear-js\n * JBoss, Home of Professional Open Source\n * Copyright Red Hat, Inc., and individual contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n The AeroGear namespace provides a way to encapsulate the library's properties and methods away from the global namespace\n @namespace\n */\n\n/**\n AeroGear.Core is a base for all of the library modules to extend. It is not to be instantiated and will throw an error when attempted\n @class\n @private\n */\nfunction Core() {\n // Prevent instantiation of this base class\n if ( this instanceof Core ) {\n throw \"Invalid instantiation of base class AeroGear.Core\";\n }\n\n /**\n This function is used by the different parts of AeroGear to add a new Object to its respective collection.\n @name AeroGear.add\n @method\n @param {String|Array|Object} config - This can be a variety of types specifying how to create the object. See the particular constructor for the object calling .add for more info.\n @returns {Object} The object containing the collection that was updated\n */\n this.add = function( config ) {\n var i,\n current,\n collection = this[ this.collectionName ] || {};\n this[ this.collectionName ] = collection;\n\n if ( !config ) {\n return this;\n } else if ( typeof config === \"string\" ) {\n // config is a string so use default adapter type\n collection[ config ] = Core[ this.lib ].adapters[ this.type ]( config, this.config );\n } else if ( Array.isArray( config ) ) {\n // config is an array so loop through each item in the array\n for ( i = 0; i < config.length; i++ ) {\n current = config[ i ];\n\n if ( typeof current === \"string\" ) {\n collection[ current ] = Core[ this.lib ].adapters[ this.type ]( current, this.config );\n } else {\n if( current.name ) {\n\n // Merge the Module( authz, datamanger, ... )config with the adapters settings\n current.settings = AeroGear.extend( current.settings || {}, this.config );\n\n collection[ current.name ] = AeroGear[ this.lib ].adapters[ current.type || this.type ]( current.name, current.settings );\n }\n }\n }\n } else {\n if( !config.name ) {\n return this;\n }\n\n // Merge the Module( authz, datamanger, ... )config with the adapters settings\n // config is an object so use that signature\n config.settings = AeroGear.extend( config.settings || {}, this.config );\n\n collection[ config.name ] = AeroGear[ this.lib ].adapters[ config.type || this.type ]( config.name, config.settings );\n }\n\n // reset the collection instance\n this[ this.collectionName ] = collection;\n\n return this;\n };\n /**\n This function is used internally by datamanager, etc. to remove an Object (store, etc.) from the respective collection.\n @name AeroGear.remove\n @method\n @param {String|String[]|Object[]|Object} config - This can be a variety of types specifying how to remove the object. See the particular constructor for the object calling .remove for more info.\n @returns {Object} The object containing the collection that was updated\n */\n this.remove = function( config ) {\n var i,\n current,\n collection = this[ this.collectionName ] || {};\n\n if ( typeof config === \"string\" ) {\n // config is a string so delete that item by name\n delete collection[ config ];\n } else if ( Array.isArray( config ) ) {\n // config is an array so loop through each item in the array\n for ( i = 0; i < config.length; i++ ) {\n current = config[ i ];\n\n if ( typeof current === \"string\" ) {\n delete collection[ current ];\n } else {\n delete collection[ current.name ];\n }\n }\n } else if ( config ) {\n // config is an object so use that signature\n delete collection[ config.name ];\n }\n\n // reset the collection instance\n this[ this.collectionName ] = collection;\n\n return this;\n };\n};\n\n/**\n Utility function to merge many Objects in one target Object which is the first object in arguments list.\n @private\n @method\n */\nvar extend = function() {\n var name, i, source,\n target = arguments[ 0 ];\n for( i=1; i