text: function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t,r=e(require("axios")),n=e(require("axios-jsonp")),a={calendar:function(e){return t.get("calendars/"+e+".json")},categories:function(){return t.get("categories.json")},category:function(e,r){void 0===r&&(r=1);var n="categories/"+e+".json";return r=parseInt(r,10),(isNaN(r)||r<1)&&(r=1),t.get(n,{params:{page:r}})},efforts:function(e,r){void 0===r&&(r=1);var n="efforts/"+e+".json";return r=parseInt(r,10),(isNaN(r)||r<1)&&(r=1),t.get(n,{params:{page:r}})},featuredPetitions:function(){return t.get("petitions/featured.json")},locations:function(){return t.get("api/local/points.json")},locationDetails:function(e,r){void 0===e&&(e=1),void 0===r&&(r=10),e=parseInt(e,10),r=parseInt(r,10);var n={};return e&&(n.page=e),r&&(n.per_page=r),t.get("api/local.json",{params:n})},partnerships:function(e,r){return void 0===r&&(r=0),r=parseInt(r,10),(isNaN(r)||r<1)&&(r=1),t.get("/partnerships/${slug}/petitions.json",{params:{page:r}})},petition:function(e){return t.get("petitions/"+e+".json")},search:function(e,r,n){var a="efforts/"+e+"/lookup/query.json",o={};return r&&(o.location_query=r),n&&(o.query=n),t.get(a,{params:o})}};module.exports=function(e){return(t=r.create({timeout:1e3,adapter:n,callbackParamName:"callback"})).interceptors.request.use(function(t){return t.url="https://"+e+"/"+t.url,t}),t.interceptors.response.use(function(e){return 200===e.status?e.data:e}),a};
  //# sourceMappingURL=index.js.map
  