text: /*! algoliasearch 3.5.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
  (function(h){var l;"undefined"!==typeof window?l=window:"undefined"!==typeof self&&(l=self);l.ALGOLIA_MIGRATION_LAYER=h()})(function(){return function l(f,e,k){function c(a,n){if(!e[a]){if(!f[a]){var g="function"==typeof require&&require;if(!n&&g)return g(a,!0);if(b)return b(a,!0);g=Error("Cannot find module '"+a+"'");throw g.code="MODULE_NOT_FOUND",g;}g=e[a]={exports:{}};f[a][0].call(g.exports,function(b){var g=f[a][1][b];return c(g?g:b)},g,g.exports,l,f,e,k)}return e[a].exports}for(var b="function"==
  typeof require&&require,a=0;a<k.length;a++)c(k[a]);return c}({1:[function(l,f,e){function k(a,b){for(var c in b)a.setAttribute(c,b[c])}function c(a,b){a.onload=function(){this.onerror=this.onload=null;b(null,a)};a.onerror=function(){this.onerror=this.onload=null;b(Error("Failed to load "+this.src),a)}}function b(a,b){a.onreadystatechange=function(){if("complete"==this.readyState||"loaded"==this.readyState)this.onreadystatechange=null,b(null,a)}}f.exports=function(a,m,e){var g=document.head||document.getElementsByTagName("head")[0],
  f=document.createElement("script");"function"===typeof m&&(e=m,m={});m=m||{};e=e||function(){};f.type=m.type||"text/javascript";f.charset=m.charset||"utf8";f.async="async"in m?!!m.async:!0;f.src=a;m.attrs&&k(f,m.attrs);m.text&&(f.text=""+m.text);("onload"in f?c:b)(f,e);f.onload||c(f,e);g.appendChild(f)}},{}],2:[function(l,f,e){f.exports=function(e){e=new RegExp("cdn\\.jsdelivr\\.net/algoliasearch/latest/"+e.replace(".","\\.")+"(?:\\.min)?\\.js$");for(var c=document.getElementsByTagName("script"),
  b=!1,a=0,m=c.length;a<m;a++)if(c[a].src&&e.test(c[a].src)){b=!0;break}return b}},{}],3:[function(l,f,e){function k(c){return function(){var b="AlgoliaSearch: loaded V2 script using "+c;window.console&&window.console.log&&window.console.log(b)}}f.exports=function(c){var b=l(1);c="//cdn.jsdelivr.net/algoliasearch/2/"+c+".min.js";window.console&&(window.console.warn?window.console.warn("-- AlgoliaSearch `latest` warning --\nWarning, you are using the `latest` version string from jsDelivr to load the AlgoliaSearch library.\nUsing `latest` is no more recommended, you should load //cdn.jsdelivr.net/algoliasearch/2/algoliasearch.min.js\n\nAlso, we updated the AlgoliaSearch JavaScript client to V3. If you want to upgrade,\nplease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch  `latest` warning --"):
  window.console.log&&window.console.log("-- AlgoliaSearch `latest` warning --\nWarning, you are using the `latest` version string from jsDelivr to load the AlgoliaSearch library.\nUsing `latest` is no more recommended, you should load //cdn.jsdelivr.net/algoliasearch/2/algoliasearch.min.js\n\nAlso, we updated the AlgoliaSearch JavaScript client to V3. If you want to upgrade,\nplease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch  `latest` warning --"));
  try{document.write("<script>window.ALGOLIA_SUPPORTS_DOCWRITE = true\x3c/script>"),!0===window.ALGOLIA_SUPPORTS_DOCWRITE?(document.write('<script src="'+c+'">\x3c/script>'),k("document.write")()):b(c,k("DOMElement"))}catch(a){b(c,k("DOMElement"))}}},{1:1}],4:[function(l,f,e){f.exports=function(){window.AlgoliaSearch=function(){throw Error("-- AlgoliaSearch V2 => V3 error --\nYou are trying to use a new version of the AlgoliaSearch JavaScript client with an old notation.\nPlease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch V2 => V3 error --");
  };window.AlgoliaSearchHelper=function(){throw Error("-- AlgoliaSearch V2 => V3 error --\nYou are trying to use a new version of the AlgoliaSearch JavaScript client with an old notation.\nPlease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch V2 => V3 error --");};AlgoliaExplainResults=function(){throw Error("-- AlgoliaSearch V2 => V3 error --\nYou are trying to use a new version of the AlgoliaSearch JavaScript client with an old notation.\nPlease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch V2 => V3 error --");
  }}},{}],5:[function(l,f,e){f=l(2);e=l(3);l=l(4);f("algoliasearch.jquery")?e("algoliasearch.jquery"):l()},{2:2,3:3,4:4}]},{},[5])(5)});
  (function e$$0(l,f,e){function k(a,b){if(!f[a]){if(!l[a]){var n="function"==typeof require&&require;if(!b&&n)return n(a,!0);if(c)return c(a,!0);n=Error("Cannot find module '"+a+"'");throw n.code="MODULE_NOT_FOUND",n;}n=f[a]={exports:{}};l[a][0].call(n.exports,function(b){var c=l[a][1][b];return k(c?c:b)},n,n.exports,e$$0,l,f,e)}return f[a].exports}for(var c="function"==typeof require&&require,b=0;b<e.length;b++)k(e[b]);return k})({1:[function(h,l,f){function e(){this._events=this._events||{};this._maxListeners=
  this._maxListeners||void 0}function k(b){return"function"===typeof b}function c(b){return"object"===typeof b&&null!==b}l.exports=e;e.EventEmitter=e;e.prototype._events=void 0;e.prototype._maxListeners=void 0;e.defaultMaxListeners=10;e.prototype.setMaxListeners=function(b){if("number"!==typeof b||0>b||isNaN(b))throw TypeError("n must be a positive number");this._maxListeners=b;return this};e.prototype.emit=function(b){var a,e,f,g;this._events||(this._events={});if("error"===b&&(!this._events.error||
  c(this._events.error)&&!this._events.error.length)){a=arguments[1];if(a instanceof Error)throw a;throw TypeError('Uncaught, unspecified "error" event.');}e=this._events[b];if(void 0===e)return!1;if(k(e))switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:a=arguments.length;f=Array(a-1);for(g=1;g<a;g++)f[g-1]=arguments[g];e.apply(this,f)}else if(c(e)){a=arguments.length;f=Array(a-1);for(g=1;g<a;g++)f[g-
  1]=arguments[g];e=e.slice();a=e.length;for(g=0;g<a;g++)e[g].apply(this,f)}return!0};e.prototype.addListener=function(b,a){var f;if(!k(a))throw TypeError("listener must be a function");this._events||(this._events={});this._events.newListener&&this.emit("newListener",b,k(a.listener)?a.listener:a);this._events[b]?c(this._events[b])?this._events[b].push(a):this._events[b]=[this._events[b],a]:this._events[b]=a;c(this._events[b])&&!this._events[b].warned&&(f=void 0!==this._maxListeners?this._maxListeners:
  e.defaultMaxListeners)&&0<f&&this._events[b].length>f&&(this._events[b].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[b].length),"function"===typeof console.trace&&console.trace());return this};e.prototype.on=e.prototype.addListener;e.prototype.once=function(b,a){function c(){this.removeListener(b,c);e||(e=!0,a.apply(this,arguments))}if(!k(a))throw TypeError("listener must be a function");
  var e=!1;c.listener=a;this.on(b,c);return this};e.prototype.removeListener=function(b,a){var e,f,g;if(!k(a))throw TypeError("listener must be a function");if(!this._events||!this._events[b])return this;e=this._events[b];g=e.length;f=-1;if(e===a||k(e.listener)&&e.listener===a)delete this._events[b],this._events.removeListener&&this.emit("removeListener",b,a);else if(c(e)){for(;0<g--;)if(e[g]===a||e[g].listener&&e[g].listener===a){f=g;break}if(0>f)return this;1===e.length?(e.length=0,delete this._events[b]):
  e.splice(f,1);this._events.removeListener&&this.emit("removeListener",b,a)}return this};e.prototype.removeAllListeners=function(b){var a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[b]&&delete this._events[b],this;if(0===arguments.length){for(a in this._events)"removeListener"!==a&&this.removeAllListeners(a);this.removeAllListeners("removeListener");this._events={};return this}a=this._events[b];if(k(a))this.removeListener(b,
  a);else for(;a.length;)this.removeListener(b,a[a.length-1]);delete this._events[b];return this};e.prototype.listeners=function(b){return this._events&&this._events[b]?k(this._events[b])?[this._events[b]]:this._events[b].slice():[]};e.listenerCount=function(b,a){return b._events&&b._events[a]?k(b._events[a])?1:b._events[a].length:0}},{}],2:[function(h,l,f){function e(){m=!1;n.length?a=n.concat(a):g=-1;a.length&&k()}function k(){if(!m){var b=setTimeout(e);m=!0;for(var c=a.length;c;){n=a;for(a=[];++g<
  c;)n[g].run();g=-1;c=a.length}n=null;m=!1;clearTimeout(b)}}function c(a,b){this.fun=a;this.array=b}function b(){}h=l.exports={};var a=[],m=!1,n,g=-1;h.nextTick=function(b){var e=Array(arguments.length-1);if(1<arguments.length)for(var g=1;g<arguments.length;g++)e[g-1]=arguments[g];a.push(new c(b,e));1!==a.length||m||setTimeout(k,0)};c.prototype.run=function(){this.fun.apply(null,this.array)};h.title="browser";h.browser=!0;h.env={};h.argv=[];h.version="";h.versions={};h.on=b;h.addListener=b;h.once=
  b;h.off=b;h.removeListener=b;h.removeAllListeners=b;h.emit=b;h.binding=function(a){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(a){throw Error("process.chdir is not supported");};h.umask=function(){return 0}},{}],3:[function(h,l,f){l.exports=function(f,c,b,a){b=b||"=";var h={};if("string"!==typeof f||0===f.length)return h;var n=/\+/g;f=f.split(c||"&");c=1E3;a&&"number"===typeof a.maxKeys&&(c=a.maxKeys);a=f.length;0<c&&a>c&&(a=c);for(c=0;c<a;++c){var g=
  f[c].replace(n,"%20"),l=g.indexOf(b),r;0<=l?(r=g.substr(0,l),g=g.substr(l+1)):(r=g,g="");r=decodeURIComponent(r);g=decodeURIComponent(g);Object.prototype.hasOwnProperty.call(h,r)?e(h[r])?h[r].push(g):h[r]=[h[r],g]:h[r]=g}return h};var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],4:[function(h,l,f){function e(a,b){if(a.map)return a.map(b);for(var e=[],c=0;c<a.length;c++)e.push(b(a[c],c));return e}var k=function(a){switch(typeof a){case "string":return a;
  case "boolean":return a?"true":"false";case "number":return isFinite(a)?a:"";default:return""}};l.exports=function(a,f,h,g){f=f||"&";h=h||"=";null===a&&(a=void 0);return"object"===typeof a?e(b(a),function(b){var g=encodeURIComponent(k(b))+h;return c(a[b])?e(a[b],function(a){return g+encodeURIComponent(k(a))}).join(f):g+encodeURIComponent(k(a[b]))}).join(f):g?encodeURIComponent(k(g))+h+encodeURIComponent(k(a)):""};var c=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},
  b=Object.keys||function(a){var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}},{}],5:[function(h,l,f){f.decode=f.parse=h(3);f.encode=f.stringify=h(4)},{3:3,4:4}],6:[function(h,l,f){function e(){var b;try{b=f.storage.debug}catch(a){}return b}f=l.exports=h(7);f.log=function(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)};f.formatArgs=function(){var b=arguments,a=this.useColors;b[0]=(a?"%c":"")+this.namespace+
  (a?" %c":" ")+b[0]+(a?"%c ":" ")+"+"+f.humanize(this.diff);if(!a)return b;var a="color: "+this.color,b=[b[0],a,"color: inherit"].concat(Array.prototype.slice.call(b,1)),c=0,e=0;b[0].replace(/%[a-z%]/g,function(a){"%%"!==a&&(c++,"%c"===a&&(e=c))});b.splice(e,0,a);return b};f.save=function(b){try{null==b?f.storage.removeItem("debug"):f.storage.debug=b}catch(a){}};f.load=e;f.useColors=function(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&
  console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)};var k;if("undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage)k=chrome.storage.local;else a:{try{k=window.localStorage;break a}catch(c){}k=void 0}f.storage=k;f.colors="lightseagreen forestgreen goldenrod dodgerblue darkorchid crimson".split(" ");f.formatters.j=function(b){return JSON.stringify(b)};f.enable(e())},{7:7}],7:[function(h,l,f){f=l.exports=function(c){function b(){}function a(){var b=
  +new Date;a.diff=b-(k||b);a.prev=k;k=a.curr=b;null==a.useColors&&(a.useColors=f.useColors());null==a.color&&a.useColors&&(a.color=f.colors[e++%f.colors.length]);var c=Array.prototype.slice.call(arguments);c[0]=f.coerce(c[0]);"string"!==typeof c[0]&&(c=["%o"].concat(c));var h=0;c[0]=c[0].replace(/%([a-z%])/g,function(b,e){if("%%"===b)return b;h++;var d=f.formatters[e];"function"===typeof d&&(b=d.call(a,c[h]),c.splice(h,1),h--);return b});"function"===typeof f.formatArgs&&(c=f.formatArgs.apply(a,c));
  (a.log||f.log||console.log.bind(console)).apply(a,c)}b.enabled=!1;a.enabled=!0;var h=f.enabled(c)?a:b;h.namespace=c;return h};f.coerce=function(c){return c instanceof Error?c.stack||c.message:c};f.disable=function(){f.enable("")};f.enable=function(c){f.save(c);for(var b=(c||"").split(/[\s,]+/),a=b.length,e=0;e<a;e++)b[e]&&(c=b[e].replace(/\*/g,".*?"),"-"===c[0]?f.skips.push(new RegExp("^"+c.substr(1)+"$")):f.names.push(new RegExp("^"+c+"$")))};f.enabled=function(c){var b,a;b=0;for(a=f.skips.length;b<
  a;b++)if(f.skips[b].test(c))return!1;b=0;for(a=f.names.length;b<a;b++)if(f.names[b].test(c))return!0;return!1};f.humanize=h(8);f.names=[];f.skips=[];f.formatters={};var e=0,k},{8:8}],8:[function(h,l,f){function e(c){c=""+c;if(!(1E4<c.length)&&(c=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c))){var b=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case "years":case "year":case "yrs":case "yr":case "y":return 315576E5*
  b;case "days":case "day":case "d":return 864E5*b;case "hours":case "hour":case "hrs":case "hr":case "h":return 36E5*b;case "minutes":case "minute":case "mins":case "min":case "m":return 6E4*b;case "seconds":case "second":case "secs":case "sec":case "s":return 1E3*b;case "milliseconds":case "millisecond":case "msecs":case "msec":case "ms":return b}}}function k(c,b,a){if(!(c<b))return c<1.5*b?Math.floor(c/b)+" "+a:Math.ceil(c/b)+" "+a+"s"}l.exports=function(c,b){b=b||{};return"string"==typeof c?e(c):
  b.long?k(c,864E5,"day")||k(c,36E5,"hour")||k(c,6E4,"minute")||k(c,1E3,"second")||c+" ms":864E5<=c?Math.round(c/864E5)+"d":36E5<=c?Math.round(c/36E5)+"h":6E4<=c?Math.round(c/6E4)+"m":1E3<=c?Math.round(c/1E3)+"s":c+"ms"}},{}],9:[function(h,l,f){(function(e,f){(function(){function c(d){return"function"===typeof d}function b(){var d=e.nextTick,a=e.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);Array.isArray(a)&&"0"===a[1]&&"10"===a[2]&&(d=setImmediate);return function(){d(w)}}function a(){return function(){M(w)}}
  function m(){var d=0,a=new N(w),b=document.createTextNode("");a.observe(b,{characterData:!0});return function(){b.data=d=++d%2}}function n(){var d=new MessageChannel;d.port1.onmessage=w;return function(){d.port2.postMessage(0)}}function g(){return function(){setTimeout(w,1)}}function w(){for(var d=0;d<B;d+=2)(0,C[d])(C[d+1]),C[d]=void 0,C[d+1]=void 0;B=0}function r(){try{var d=h("vertx");M=d.runOnLoop||d.runOnContext;return a()}catch(b){return g()}}function t(){}function d(d,a,b,q){try{d.call(a,b,
  q)}catch(c){return c}}function q(a,b,q){E(function(a){var c=!1,p=d(q,b,function(d){c||(c=!0,b!==d?u(a,d):y(a,d))},function(d){c||(c=!0,v(a,d))},"Settle: "+(a._label||" unknown promise"));!c&&p&&(c=!0,v(a,p))},a)}function p(d,a){1===a._state?y(d,a._result):2===a._state?v(d,a._result):H(a,void 0,function(a){u(d,a)},function(a){v(d,a)})}function u(d,a){if(d===a)v(d,new TypeError("You cannot resolve a promise with itself"));else if("function"===typeof a||"object"===typeof a&&null!==a)if(a.constructor===
  d.constructor)p(d,a);else{var b;try{b=a.then}catch(e){I.error=e,b=I}b===I?v(d,I.error):void 0===b?y(d,a):c(b)?q(d,a,b):y(d,a)}else y(d,a)}function F(d){d._onerror&&d._onerror(d._result);x(d)}function y(d,a){void 0===d._state&&(d._result=a,d._state=1,0!==d._subscribers.length&&E(x,d))}function v(d,a){void 0===d._state&&(d._state=2,d._result=a,E(F,d))}function H(d,a,b,q){var c=d._subscribers,p=c.length;d._onerror=null;c[p]=a;c[p+1]=b;c[p+2]=q;0===p&&d._state&&E(x,d)}function x(d){var a=d._subscribers,
  b=d._state;if(0!==a.length){for(var q,c,p=d._result,e=0;e<a.length;e+=3)q=a[e],c=a[e+b],q?O(b,q,c,p):c(p);d._subscribers.length=0}}function D(){this.error=null}function O(d,a,b,q){var p=c(b),e,f,g,h;if(p){try{e=b(q)}catch(k){K.error=k,e=K}e===K?(h=!0,f=e.error,e=null):g=!0;if(a===e){v(a,new TypeError("A promises callback cannot return that same promise."));return}}else e=q,g=!0;void 0===a._state&&(p&&g?u(a,e):h?v(a,f):1===d?y(a,e):2===d&&v(a,e))}function R(d,a){try{a(function(a){u(d,a)},function(a){v(d,
  a)})}catch(b){v(d,b)}}function A(d,a){this._instanceConstructor=d;this.promise=new d(t);this._validateInput(a)?(this._input=a,this._remaining=this.length=a.length,this._init(),0===this.length?y(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&y(this.promise,this._result))):v(this.promise,this._validationError())}function z(d){this._id=S++;this._result=this._state=void 0;this._subscribers=[];if(t!==d){if(!c(d))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
  if(!(this instanceof z))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");R(this,d)}}var P=Array.isArray?Array.isArray:function(d){return"[object Array]"===Object.prototype.toString.call(d)},B=0,M,E=function(d,a){C[B]=d;C[B+1]=a;B+=2;2===B&&Q()},G="undefined"!==typeof window?window:void 0,J=G||{},N=J.MutationObserver||J.WebKitMutationObserver,J="undefined"!==typeof e&&"[object process]"==={}.toString.call(e),
  T="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel,C=Array(1E3),Q;Q=J?b():N?m():T?n():void 0===G&&"function"===typeof h?r():g();var I=new D,K=new D;A.prototype._validateInput=function(d){return P(d)};A.prototype._validationError=function(){return Error("Array Methods must be provided an Array")};A.prototype._init=function(){this._result=Array(this.length)};A.prototype._enumerate=function(){for(var d=this.length,a=this.promise,b=this._input,
  q=0;void 0===a._state&&q<d;q++)this._eachEntry(b[q],q)};A.prototype._eachEntry=function(d,a){var b=this._instanceConstructor;"object"===typeof d&&null!==d?d.constructor===b&&void 0!==d._state?(d._onerror=null,this._settledAt(d._state,a,d._result)):this._willSettleAt(b.resolve(d),a):(this._remaining--,this._result[a]=d)};A.prototype._settledAt=function(d,a,b){var q=this.promise;void 0===q._state&&(this._remaining--,2===d?v(q,b):this._result[a]=b);0===this._remaining&&y(q,this._result)};A.prototype._willSettleAt=
  function(d,a){var b=this;H(d,void 0,function(d){b._settledAt(1,a,d)},function(d){b._settledAt(2,a,d)})};var S=0;z.all=function(d){return(new A(this,d)).promise};z.race=function(d){function a(d){u(q,d)}function b(d){v(q,d)}var q=new this(t);if(!P(d))return v(q,new TypeError("You must pass an array to race.")),q;for(var c=d.length,p=0;void 0===q._state&&p<c;p++)H(this.resolve(d[p]),void 0,a,b);return q};z.resolve=function(d){if(d&&"object"===typeof d&&d.constructor===this)return d;var a=new this(t);
  u(a,d);return a};z.reject=function(d){var a=new this(t);v(a,d);return a};z.prototype={constructor:z,then:function(d,a){var b=this._state;if(1===b&&!d||2===b&&!a)return this;var q=new this.constructor(t),c=this._result;if(b){var p=arguments[b-1];E(function(){O(b,q,p,c)})}else H(this,q,d,a);return q},"catch":function(d){return this.then(null,d)}};var G=function(){var d;if("undefined"!==typeof f)d=f;else if("undefined"!==typeof self)d=self;else try{d=Function("return this")()}catch(a){throw Error("polyfill failed because global object is unavailable in this environment");
  }var b=d.Promise;if(!b||"[object Promise]"!==Object.prototype.toString.call(b.resolve())||b.cast)d.Promise=z},L={Promise:z,polyfill:G};"function"===typeof define&&define.amd?define(function(){return L}):"undefined"!==typeof l&&l.exports?l.exports=L:"undefined"!==typeof this&&(this.ES6Promise=L);G()}).call(this)}).call(this,h(2),"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{2:2}],10:[function(h,l,f){var e=Object.prototype.hasOwnProperty,
  k=Object.prototype.toString,c=function(a){return"function"===typeof Array.isArray?Array.isArray(a):"[object Array]"===k.call(a)},b=function(a){if(!a||"[object Object]"!==k.call(a))return!1;var b=e.call(a,"constructor"),c=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!b&&!c)return!1;for(var f in a);return void 0===f||e.call(a,f)};l.exports=function m(){var e,f,h,k,l,d=arguments[0],q=1,p=arguments.length,u=!1;if("boolean"===typeof d)u=d,d=
  arguments[1]||{},q=2;else if("object"!==typeof d&&"function"!==typeof d||null==d)d={};for(;q<p;++q)if(e=arguments[q],null!=e)for(f in e)h=d[f],k=e[f],d!==k&&(u&&k&&(b(k)||(l=c(k)))?(l?(l=!1,h=h&&c(h)?h:[]):h=h&&b(h)?h:{},d[f]=m(u,h,k)):void 0!==k&&(d[f]=k));return d}},{}],11:[function(h,l,f){var e=Object.prototype.hasOwnProperty,k=Object.prototype.toString;l.exports=function(c,b,a){if("[object Function]"!==k.call(b))throw new TypeError("iterator must be a function");var f=c.length;if(f===+f)for(var h=
  0;h<f;h++)b.call(a,c[h],h,c);else for(h in c)e.call(c,h)&&b.call(a,c[h],h,c)}},{}],12:[function(h,l,f){l.exports="function"===typeof Object.create?function(e,f){e.super_=f;e.prototype=Object.create(f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,f){e.super_=f;var c=function(){};c.prototype=f.prototype;e.prototype=new c;e.prototype.constructor=e}},{}],13:[function(h,l,f){(function(e){function f(d,a,p){var e=h(10);if(!d)throw new t.AlgoliaSearchError("Please provide an application ID. Usage: algoliasearch(applicationID, apiKey, opts)");
  if(!a)throw new t.AlgoliaSearchError("Please provide an API key. Usage: algoliasearch(applicationID, apiKey, opts)");this.applicationID=d;this.apiKey=a;d=[this.applicationID+"-1.algolianet.com",this.applicationID+"-2.algolianet.com",this.applicationID+"-3.algolianet.com"];this.hosts={read:[],write:[]};this.hostIndex={read:0,write:0};p=p||{};a=p.protocol||"https:";var g=void 0===p.timeout?2E3:p.timeout;/:$/.test(a)||(a+=":");if("http:"!==p.protocol&&"https:"!==p.protocol)throw new t.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+
  p.protocol+"`)");p.hosts?(this.hosts.read=e([],p.hosts),this.hosts.write=e([],p.hosts)):(this.hosts.read=[this.applicationID+"-dsn.algolia.net"].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d));this.hosts.read=c(this.hosts.read,b(a));this.hosts.write=c(this.hosts.write,b(a));this.requestTimeout=g;this.extraHeaders=[];this.cache={};this._ua=p._ua;this._useCache=void 0===p._useCache?!0:p._useCache;this._setTimeout=p._setTimeout;w("init done, %j",this)}function c(d,a){for(var b=
  [],c=0;c<d.length;++c)b.push(a(d[c],c));return b}function b(d){return function(a){return d+"//"+a.toLowerCase()}}function a(){throw new t.AlgoliaSearchError("Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com");}function m(d,a){var b=d.toLowerCase().replace(".","").replace("()","");return"algoliasearch: `"+d+"` was replaced by `"+a+"`. Please see https://github.com/algolia/algoliasearch-client-js/wiki/Deprecated#"+b}function n(d,a){a(d,0)}function g(d,
  a){var b=!1;return function(){b||(console.log(a),b=!0);return d.apply(this,arguments)}}l.exports=f;var w=h(6)("algoliasearch"),r=h(11),t=h(19);f.prototype={deleteIndex:function(d,a){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(d),hostType:"write",callback:a})},moveIndex:function(d,a,b){a={operation:"move",destination:a};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(d)+"/operation",body:a,hostType:"write",callback:b})},copyIndex:function(d,
  a,b){a={operation:"copy",destination:a};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(d)+"/operation",body:a,hostType:"write",callback:b})},getLogs:function(d,a,b){if(0===arguments.length||"function"===typeof d)b=d,d=0,a=10;else if(1===arguments.length||"function"===typeof a)b=a,a=10;return this._jsonRequest({method:"GET",url:"/1/logs?offset="+d+"&length="+a,hostType:"read",callback:b})},listIndexes:function(d,a){var b="";void 0===d||"function"===typeof d?a=d:b="?page="+
  d;return this._jsonRequest({method:"GET",url:"/1/indexes"+b,hostType:"read",callback:a})},initIndex:function(d){return new this.Index(this,d)},listUserKeys:function(d){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:d})},getUserKeyACL:function(d,a){return this._jsonRequest({method:"GET",url:"/1/keys/"+d,hostType:"read",callback:a})},deleteUserKey:function(d,a){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+d,hostType:"write",callback:a})},addUserKey:function(d,
  a,b){if(1===arguments.length||"function"===typeof a)b=a,a=null;var c={acl:d};a&&(c.validity=a.validity,c.maxQueriesPerIPPerHour=a.maxQueriesPerIPPerHour,c.maxHitsPerQuery=a.maxHitsPerQuery,c.indexes=a.indexes,c.description=a.description,a.queryParameters&&(c.queryParameters=this._getSearchParams(a.queryParameters,"")),c.referers=a.referers);return this._jsonRequest({method:"POST",url:"/1/keys",body:c,hostType:"write",callback:b})},addUserKeyWithValidity:g(function(d,a,b){return this.addUserKey(d,
  a,b)},m("client.addUserKeyWithValidity()","client.addUserKey()")),updateUserKey:function(d,a,b,c){if(2===arguments.length||"function"===typeof b)c=b,b=null;var e={acl:a};b&&(e.validity=b.validity,e.maxQueriesPerIPPerHour=b.maxQueriesPerIPPerHour,e.maxHitsPerQuery=b.maxHitsPerQuery,e.indexes=b.indexes,e.description=b.description,b.queryParameters&&(e.queryParameters=this._getSearchParams(b.queryParameters,"")),e.referers=b.referers);return this._jsonRequest({method:"PUT",url:"/1/keys/"+d,body:e,hostType:"write",
  callback:c})},setSecurityTags:function(d){if("[object Array]"===Object.prototype.toString.call(d)){for(var a=[],b=0;b<d.length;++b)if("[object Array]"===Object.prototype.toString.call(d[b])){for(var c=[],e=0;e<d[b].length;++e)c.push(d[b][e]);a.push("("+c.join(",")+")")}else a.push(d[b]);d=a.join(",")}this.securityTags=d},setUserToken:function(d){this.userToken=d},startQueriesBatch:g(function(){this._batch=[]},m("client.startQueriesBatch()","client.search()")),addQueryInBatch:g(function(d,a,b){this._batch.push({indexName:d,
  query:a,params:b})},m("client.addQueryInBatch()","client.search()")),clearCache:function(){this.cache={}},sendQueriesBatch:g(function(d){return this.search(this._batch,d)},m("client.sendQueriesBatch()","client.search()")),setRequestTimeout:function(d){d&&(this.requestTimeout=parseInt(d,10))},search:function(d,a){var b=this,e={requests:c(d,function(d){var a="";void 0!==d.query&&(a+="query="+encodeURIComponent(d.query));return{indexName:d.indexName,params:b._getSearchParams(d.params,a)}})};return this._jsonRequest({cache:this.cache,
  method:"POST",url:"/1/indexes/*/queries",body:e,hostType:"read",callback:a})},batch:function(d,a){return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:d},hostType:"write",callback:a})},destroy:a,enableRateLimitForward:a,disableRateLimitForward:a,useSecuredAPIKey:a,disableSecuredAPIKey:a,generateSecuredApiKey:a,Index:function(d,a){this.indexName=a;this.as=d;this.typeAheadValueOption=this.typeAheadArgs=null;this.cache={}},setExtraHeader:function(d,a){this.extraHeaders.push({name:d.toLowerCase(),
  value:a})},_sendQueriesBatch:function(d,a){return this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:d,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:function(){for(var a="",b=0;b<d.requests.length;++b)var c="/1/indexes/"+encodeURIComponent(d.requests[b].indexName)+"?"+d.requests[b].params,a=a+(b+"="+encodeURIComponent(c)+"&");return a}()}},callback:a})},_jsonRequest:function(d){function a(h,m){function n(){g.hostIndex[d.hostType]=++g.hostIndex[d.hostType]%
  g.hosts[d.hostType].length;m.timeout=g.requestTimeout*(k+1);return a(h,m)}var r;g._useCache&&(r=d.url);g._useCache&&c&&(r+="_body_"+m.body);if(g._useCache&&f&&void 0!==f[r])return b("serving response from cache"),g._promise.resolve(JSON.parse(JSON.stringify(f[r])));if(k>=g.hosts[d.hostType].length||g.useFallback&&!l){if(!d.fallback||!g._request.fallback||l)return b("could not get any response"),g._promise.reject(new t.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue."));
  b("switching to fallback");k=0;m.method=d.fallback.method;m.url=d.fallback.url;m.jsonBody=d.fallback.body;m.jsonBody&&(m.body=JSON.stringify(m.jsonBody));m.timeout=g.requestTimeout*(k+1);g.hostIndex[d.hostType]=0;l=!0;return a(g._request.fallback,m)}var w=g.hosts[d.hostType][g.hostIndex[d.hostType]]+m.url,x={body:c,jsonBody:d.body,method:m.method,headers:g._computeRequestHeaders(),timeout:m.timeout,debug:b};b("method: %s, url: %s, headers: %j, timeout: %d",x.method,w,x.headers,x.timeout);h===g._request.fallback&&
  b("using fallback");return h.call(g,w,x).then(function(d){var a=d&&d.body&&d.body.message&&d.body.status||d.statusCode||d&&d.body&&200;b("received response: statusCode: %s, computed statusCode: %d, headers: %j",d.statusCode,a,d.headers);e.env.DEBUG&&-1!==e.env.DEBUG.indexOf("debugBody")&&b("body: %j",d.body);var c=200===a||201===a,a=!c&&4!==Math.floor(a/100)&&1!==Math.floor(a/100);g._useCache&&c&&f&&(f[r]=d.body);if(c)return d.body;if(a)return k+=1,n();d=new t.AlgoliaSearchError(d.body&&d.body.message);
  return g._promise.reject(d)},function(c){b("error: %s, stack: %s",c.message,c.stack);c instanceof t.AlgoliaSearchError||(c=new t.Unknown(c&&c.message,c));k+=1;if(c instanceof t.Unknown||c instanceof t.UnparsableJSON||!h.fallback&&c instanceof t.Network||k>=g.hosts[d.hostType].length&&(l||!d.fallback||!g._request.fallback))return g._promise.reject(c);g.hostIndex[d.hostType]=++g.hostIndex[d.hostType]%g.hosts[d.hostType].length;if(c instanceof t.RequestTimeout)return n();g._request.fallback&&!g.useFallback&&
  (g.useFallback=!0);return a(h,m)})}var b=h(6)("algoliasearch:"+d.url),c,f=d.cache,g=this,k=0,l=!1;void 0!==d.body&&(c=JSON.stringify(d.body));b("request start");var m=g.useFallback&&d.fallback,r=m?d.fallback:d,m=a(m?g._request.fallback:g._request,{url:r.url,method:r.method,body:c,jsonBody:d.body,timeout:g.requestTimeout*(k+1)});if(d.callback)m.then(function(a){n(function(){d.callback(null,a)},g._setTimeout||setTimeout)},function(a){n(function(){d.callback(a)},g._setTimeout||setTimeout)});else return m},
  _getSearchParams:function(d,a){if(this._isUndefined(d)||null===d)return a;for(var b in d)null!==b&&d.hasOwnProperty(b)&&(a+=""===a?"":"&",a+=b+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(d[b])?JSON.stringify(d[b]):d[b]));return a},_isUndefined:function(a){return void 0===a},_computeRequestHeaders:function(){var a={"x-algolia-api-key":this.apiKey,"x-algolia-application-id":this.applicationID,"x-algolia-agent":this._ua};this.userToken&&(a["x-algolia-usertoken"]=this.userToken);
  this.securityTags&&(a["x-algolia-tagfilters"]=this.securityTags);this.extraHeaders&&r(this.extraHeaders,function(b){a[b.name]=b.value});return a}};f.prototype.Index.prototype={clearCache:function(){this.cache={}},addObject:function(a,b,c){if(1===arguments.length||"function"===typeof b)c=b,b=void 0;return this.as._jsonRequest({method:void 0!==b?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+(void 0!==b?"/"+encodeURIComponent(b):""),body:a,hostType:"write",callback:c})},addObjects:function(a,
  b){for(var c={requests:[]},e=0;e<a.length;++e)c.requests.push({action:"addObject",body:a[e]});return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:c,hostType:"write",callback:b})},getObject:function(a,b,c){if(1===arguments.length||"function"===typeof b)c=b,b=void 0;var e="";if(void 0!==b)for(var e="?attributes=",f=0;f<b.length;++f)0!==f&&(e+=","),e+=b[f];return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+
  "/"+encodeURIComponent(a)+e,hostType:"read",callback:c})},getObjects:function(a,b,e){var f=this;if(1===arguments.length||"function"===typeof b)e=b,b=void 0;var g={requests:c(a,function(a){a={indexName:f.indexName,objectID:a};b&&(a.attributesToRetrieve=b.join(","));return a})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:g,callback:e})},partialUpdateObject:function(a,b){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+
  "/"+encodeURIComponent(a.objectID)+"/partial",body:a,hostType:"write",callback:b})},partialUpdateObjects:function(a,b){for(var c={requests:[]},e=0;e<a.length;++e)c.requests.push({action:"partialUpdateObject",objectID:a[e].objectID,body:a[e]});return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:c,hostType:"write",callback:b})},saveObject:function(a,b){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+
  "/"+encodeURIComponent(a.objectID),body:a,hostType:"write",callback:b})},saveObjects:function(a,b){for(var c={requests:[]},e=0;e<a.length;++e)c.requests.push({action:"updateObject",objectID:a[e].objectID,body:a[e]});return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:c,hostType:"write",callback:b})},deleteObject:function(a,b){if("function"===typeof a||"string"!==typeof a&&"number"!==typeof a){var c=new t.AlgoliaSearchError("Cannot delete an object without an objectID");
  b=a;return"function"===typeof b?b(c):this.as._promise.reject(c)}return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(a),hostType:"write",callback:b})},deleteObjects:function(a,b){var e={requests:c(a,function(a){return{action:"deleteObject",objectID:a,body:{objectID:a}}})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:e,hostType:"write",callback:b})},deleteByQuery:function(a,
  b,e){function f(a){return h.waitTask(a.taskID)}function g(){return h.deleteByQuery(a,b)}var h=this,k=h.as;if(1===arguments.length||"function"===typeof b)e=b,b={};b.attributesToRetrieve="objectID";b.hitsPerPage=1E3;this.clearCache();var l=this.search(a,b).then(function(a){if(0===a.nbHits)return a;a=c(a.hits,function(a){return a.objectID});return h.deleteObjects(a).then(f).then(g)});if(!e)return l;l.then(function(){n(function(){e(null)},k._setTimeout||setTimeout)},function(a){n(function(){e(a)},k._setTimeout||
  setTimeout)})},search:function(a,b,c){if("function"===typeof a&&"object"===typeof b||"object"===typeof c)throw new t.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");if(0===arguments.length||"function"===typeof a)c=a,a="";else if(1===arguments.length||"function"===typeof b)c=b,b=void 0;if("object"===typeof a&&null!==a)b=a,a=void 0;else if(void 0===a||null===a)a="";var e="";void 0!==a&&(e+="query="+encodeURIComponent(a));void 0!==b&&(e=this.as._getSearchParams(b,e));return this._search(e,
  c)},browse:function(a,b,c){var e=h(10),f,g;0===arguments.length||1===arguments.length&&"function"===typeof arguments[0]?(f=0,c=arguments[0],a=void 0):"number"===typeof arguments[0]?(f=arguments[0],"number"===typeof arguments[1]?g=arguments[1]:"function"===typeof arguments[1]&&(c=arguments[1],g=void 0),b=a=void 0):"object"===typeof arguments[0]?("function"===typeof arguments[1]&&(c=arguments[1]),b=arguments[0],a=void 0):"string"===typeof arguments[0]&&"function"===typeof arguments[1]&&(c=arguments[1],
  b=void 0);b=e({},b||{},{page:f,hitsPerPage:g,query:a});e=this.as._getSearchParams(b,"");return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse?"+e,hostType:"read",callback:c})},browseFrom:function(a,b){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse?cursor="+a,hostType:"read",callback:b})},browseAll:function(a,b){function c(a){g._stopped||(a=void 0!==a?"cursor="+encodeURIComponent(a):m,k._jsonRequest({method:"GET",
  url:"/1/indexes/"+encodeURIComponent(l.indexName)+"/browse?"+a,hostType:"read",callback:e}))}function e(a,b){g._stopped||(a?g._error(a):(g._result(b),void 0===b.cursor?g._end():c(b.cursor)))}"object"===typeof a&&(b=a,a=void 0);var f=h(10),g=new (h(14)),k=this.as,l=this,m=k._getSearchParams(f({},b||{},{query:a}),"");c();return g},ttAdapter:function(a){var b=this;return function(c,e,f){var g;g="function"===typeof f?f:e;b.search(c,a,function(a,b){a?g(a):g(b.hits)})}},waitTask:function(a,b){function c(){return g._jsonRequest({method:"GET",
  hostType:"read",url:"/1/indexes/"+encodeURIComponent(f.indexName)+"/task/"+a}).then(function(a){e++;var b=100*e*e;5E3<b&&(b=5E3);return"published"!==a.status?g._promise.delay(b).then(function(){return c()}):a})}var e=0,f=this,g=f.as,h=c();if(!b)return h;h.then(function(a){n(function(){b(null,a)},g._setTimeout||setTimeout)},function(a){n(function(){b(a)},g._setTimeout||setTimeout)})},clearIndex:function(a){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+
  "/clear",hostType:"write",callback:a})},getSettings:function(a){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/settings",hostType:"read",callback:a})},setSettings:function(a,b){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/settings",hostType:"write",body:a,callback:b})},listUserKeys:function(a){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",hostType:"read",
  callback:a})},getUserKeyACL:function(a,b){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+a,hostType:"read",callback:b})},deleteUserKey:function(a,b){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+a,hostType:"write",callback:b})},addUserKey:function(a,b,c){if(1===arguments.length||"function"===typeof b)c=b,b=null;var e={acl:a};b&&(e.validity=b.validity,e.maxQueriesPerIPPerHour=b.maxQueriesPerIPPerHour,
  e.maxHitsPerQuery=b.maxHitsPerQuery,e.description=b.description,b.queryParameters&&(e.queryParameters=this.as._getSearchParams(b.queryParameters,"")),e.referers=b.referers);return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:e,hostType:"write",callback:c})},addUserKeyWithValidity:g(function(a,b,c){return this.addUserKey(a,b,c)},m("index.addUserKeyWithValidity()","index.addUserKey()")),updateUserKey:function(a,b,c,e){if(2===arguments.length||
  "function"===typeof c)e=c,c=null;var f={acl:b};c&&(f.validity=c.validity,f.maxQueriesPerIPPerHour=c.maxQueriesPerIPPerHour,f.maxHitsPerQuery=c.maxHitsPerQuery,f.description=c.description,c.queryParameters&&(f.queryParameters=this.as._getSearchParams(c.queryParameters,"")),f.referers=c.referers);return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+a,body:f,hostType:"write",callback:e})},_search:function(a,b){return this.as._jsonRequest({cache:this.cache,
  method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:a},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:a}},callback:b})},as:null,indexName:null,typeAheadArgs:null,typeAheadValueOption:null}}).call(this,h(2))},{10:10,11:11,14:14,19:19,2:2,6:6}],14:[function(h,l,f){function e(){}l.exports=e;l=h(12);h=h(1).EventEmitter;l(e,h);e.prototype.stop=function(){this._stopped=!0;this._clean()};e.prototype._end=function(){this.emit("end");
  this._clean()};e.prototype._error=function(e){this.emit("error",e);this._clean()};e.prototype._result=function(e){this.emit("result",e)};e.prototype._clean=function(){this.removeAllListeners("stop");this.removeAllListeners("end");this.removeAllListeners("error");this.removeAllListeners("result")}},{1:1,12:12}],15:[function(h,l,f){l.exports=function(c,b,a){function f(){b.debug("JSONP: success");F||d||(F=!0,t||(b.debug("JSONP: Fail. Script loaded but did not call the callback"),g(),a(new e.JSONPScriptFail)))}
  function h(){"loaded"!==this.readyState&&"complete"!==this.readyState||f()}function g(){clearTimeout(y);p.onload=null;p.onreadystatechange=null;p.onerror=null;q.removeChild(p);try{delete window[u],delete window[u+"_loaded"]}catch(a){window[u]=null,window[u+"_loaded"]=null}}function l(){b.debug("JSONP: Script timeout");d=!0;g();a(new e.RequestTimeout)}function r(){b.debug("JSONP: Script error");F||d||(g(),a(new e.JSONPScriptError))}if("GET"!==b.method)a(Error("Method "+b.method+" "+c+" is not supported by JSONP."));
  else{b.debug("JSONP: start");var t=!1,d=!1;k+=1;var q=document.getElementsByTagName("head")[0],p=document.createElement("script"),u="algoliaJSONP_"+k,F=!1;window[u]=function(b){try{delete window[u]}catch(c){window[u]=void 0}d||(t=!0,g(),a(null,{body:b}))};c+="&callback="+u;b.jsonBody&&b.jsonBody.params&&(c+="&"+b.jsonBody.params);var y=setTimeout(l,b.timeout);p.onreadystatechange=h;p.onload=f;p.onerror=r;p.async=!0;p.defer=!0;p.src=c;q.appendChild(p)}};var e=h(19),k=0},{19:19}],16:[function(h,l,f){function e(a,
  b,c){var f=h(10),g=h(17);c=f(!0,{},c)||{};void 0===c.protocol&&(c.protocol=g());c._ua=e.ua;return new k(a,b,c)}function k(){b.apply(this,arguments)}l.exports=e;l=h(12);var c=window.Promise||h(9).Promise,b=h(13),a=h(19),m=h(18),n=h(15);e.version=h(20);e.ua="Algolia for vanilla JavaScript "+e.version;var g="XDomainRequest"in window,w="withCredentials"in new XMLHttpRequest,r="timeout"in new XMLHttpRequest;l(k,b);k.prototype._request=function(b,d){return new c(function(c,e){function f(){if(!D){r||clearTimeout(x);
  var b;try{b={body:JSON.parse(n.responseText),statusCode:n.status,headers:n.getAllResponseHeaders&&n.getAllResponseHeaders()||{}}}catch(d){b=new a.UnparsableJSON({more:n.responseText})}b instanceof a.UnparsableJSON?e(b):c(b)}}function h(b){D||(r||clearTimeout(x),e(new a.Network({more:b})))}function k(){r||(D=!0,n.abort());e(new a.RequestTimeout)}if(w||g){b=m(b,d.headers);var l=d.body,n=w?new XMLHttpRequest:new XDomainRequest,x,D;n instanceof XMLHttpRequest?n.open(d.method,b,!0):n.open(d.method,b);
  w&&l&&"GET"!==d.method&&n.setRequestHeader("content-type","application/x-www-form-urlencoded");n.onprogress=function(){};n.onload=f;n.onerror=h;r?(n.timeout=d.timeout,n.ontimeout=k):x=setTimeout(k,d.timeout);n.send(l)}else e(new a.Network("CORS not supported"))})};k.prototype._request.fallback=function(a,b){a=m(a,b.headers);return new c(function(c,e){n(a,b,function(a,b){a?e(a):c(b)})})};k.prototype._promise={reject:function(a){return c.reject(a)},resolve:function(a){return c.resolve(a)},delay:function(a){return new c(function(b){setTimeout(b,
  a)})}}},{10:10,12:12,13:13,15:15,17:17,18:18,19:19,20:20,9:9}],17:[function(h,l,f){l.exports=function(){var e=window.document.location.protocol;"http:"!==e&&"https:"!==e&&(e="http:");return e}},{}],18:[function(h,l,f){l.exports=function(f,c){f=/\?/.test(f)?f+"&":f+"?";return f+e.encode(c)};var e=h(5)},{5:5}],19:[function(h,l,f){function e(a,b){var e=this;"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):e.stack=Error().stack||"Cannot get a stacktrace, browser is too old";
  this.name=this.constructor.name;this.message=a||"Unknown error";b&&c(b,function(a,b){e[b]=a})}function k(a,c){function f(){var b=Array.prototype.slice.call(arguments,0);"string"!==typeof b[0]&&b.unshift(c);e.apply(this,b);this.name="AlgoliaSearch"+a+"Error"}b(f,e);return f}var c=h(11),b=h(12);b(e,Error);l.exports={AlgoliaSearchError:e,UnparsableJSON:k("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:k("RequestTimeout","Request timedout before getting a response"),
  Network:k("Network","Network issue, see err.more for details"),JSONPScriptFail:k("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:k("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:k("Unknown","Unknown error occured")}},{11:11,12:12}],20:[function(h,l,f){l.exports="3.5.0"},{}],21:[function(h,l,f){function e(a,b,c){var f=h(10),d=h(17);c=f(!0,{},c)||{};void 0===c.protocol&&(c.protocol=d());c._ua=e.ua;return new k(a,b,
  c)}function k(){c.apply(this,arguments)}l=h(12);var c=h(13),b=h(19),a=h(18),m=h(15);window.algoliasearch=h(16);e.version=h(20);e.ua="Algolia for jQuery "+e.version;var n=window.jQuery;n.algolia={Client:e,ua:e.ua,version:e.version};l(k,c);k.prototype._request=function(c,e){return n.Deferred(function(f){var h=e.body;c=a(c,e.headers);n.ajax(c,{type:e.method,timeout:e.timeout,dataType:"json",data:h,complete:function(a,c){"timeout"===c?f.reject(new b.RequestTimeout):0===a.status?f.reject(new b.Network({more:a})):
  f.resolve({statusCode:a.status,body:a.responseJSON,headers:a.getAllResponseHeaders()})}})}).promise()};k.prototype._request.fallback=function(b,c){b=a(b,c.headers);return n.Deferred(function(a){m(b,c,function(b,c){b?a.reject(b):a.resolve(c)})}).promise()};k.prototype._promise={reject:function(a){return n.Deferred(function(b){b.reject(a)}).promise()},resolve:function(a){return n.Deferred(function(b){b.resolve(a)}).promise()},delay:function(a){return n.Deferred(function(b){setTimeout(function(){b.resolve()},
  a)}).promise()}}},{10:10,12:12,13:13,15:15,16:16,17:17,18:18,19:19,20:20}]},{},[21]);
  