/*! Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. */!function(){"use strict";vara=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=functionb(c){functiond(){!a&&this._init&&this._init.apply(this,arguments)}vare=this.prototype;a=!0;varf=newthis;a=!1;for(varginc)if("function"==typeofc[g]&&"function"==typeofe[g])f[g]=function(a,b){returnfunction(){varc=this._super;this._super=function(b){returne[a].apply(this,b||[])};vard=b.apply(this,arguments);returnthis._super=c,d}}(g,c[g]);elseif("object"==typeofc[g]&&"object"==typeofe[g]&&"defaultOptions"===g){varh,i=e[g],j=c[g],k={};for(hini)k[h]=i[h];for(hinj)k[h]=j[h];f[g]=k}elsef[g]=c[g];returnd.prototype=f,d.prototype.constructor=d,d.extend=b,d}}(),/*! Abstract base class for collection plugins v1.0.2. Written by Keith Wood (wood.keith{at}optusnet.com.au) December 2013. Licensed under the MIT license (http://keith-wood.name/licence.html). */function($){"use strict";functioncamelCase(a){returna.replace(/-([a-z])/g,function(a,b){returnb.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},deepMerge:!0,_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});vara=camelCase(this.name);$[a]=this,$.fn[a]=function(b){varc=Array.prototype.slice.call(arguments,1),d=this,e=this;returnthis.each(function(){if("string"==typeofb){if("_"===b[0]||!$[a][b])throw"Unknown method: "+b;varf=$[a][b].apply($[a],[this].concat(c));if(f!==d&&void0!==f)returne=f,!1}else$[a]._attach(this,b)}),e}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_attach:function(a,b){if(a=$(a),!a.hasClass(this._getMarker())){a.addClass(this._getMarker()),b=$.extend(this.deepMerge,{},this.defaultOptions,this._getMetadata(a),b||{});varc=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c),this._postAttach(a,c),this.option(a,b)}},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(elem){try{vardata=elem.data(this.name.toLowerCase())||"";data=data.replace(/(\\?)'/g,function(a,b){returnb?"'":'"'}).replace(/([a-zA-Z0-9]+):/g,function(a,b,c){vard=data.substring(0,c).match(/"/g);returnd&&d.length%2!==0?b+":":'"'+b+'":'}).replace(/\\:/g,":"),data=$.parseJSON("{"+data+"}");for(varkeyindata)if(data.hasOwnProperty(key)){varvalue=data[key];"string"==typeofvalue&&value.match(/^new Date\(([-0-9,\s]*)\)$/)&&(data[key]=eval(value))}returndata}catch(a){return{}}},_getInst:function(a){return$(a).data(this.name)||{}},option:function(a,b,c){a=$(a);vard=a.data(this.name),e=b||{};return!b||"string"==typeofb&&"undefined"==typeofc?(e=(d||{}).options,e&&b?e[b]:e):void(a.hasClass(this._getMarker())&&("string"==typeofb&&(e={},e[b]=c),this._optionsChanged(a,d,e),$.extend(d.options,e)))},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a),a.hasClass(this._getMarker())&&(this._preDestroy(a,this._getInst(a)),a.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(a,b){}}),$.JQPlugin={createPlugin:function(a,b){"object"==typeofa&&(b=a,a="JQPlugin"),a=camelCase(a);varc=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b),newJQClass.classes[c]}}}(jQuery);//# sourceMappingURL=jquery.plugin.min.map