summaryrefslogtreecommitdiffstats
path: root/docs/64.bdf75bfb.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/64.bdf75bfb.js')
-rw-r--r--docs/64.bdf75bfb.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/docs/64.bdf75bfb.js b/docs/64.bdf75bfb.js
deleted file mode 100644
index c03564f..0000000
--- a/docs/64.bdf75bfb.js
+++ /dev/null
@@ -1 +0,0 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{190:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"DocSearchModal",(function(){return St}));var o=function(){},s=0;function i(e){return 0===e.suggestions.length?0:e.suggestions.reduce((function(e,t){return e+t.items.length}),0)}function c(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getInputValue:function(e){return e.state.query},getSuggestionUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onHighlight:o},e)}function u(e,t,n,r){if(null===t&&e<0)return n-1;if(null!==r&&0===t&&e<0)return n-1;var a=(null===t?-1:t)+e;return a<=-1||a>=n?null===r?null:0:a}function l(e){var t=e.state,n=function(e){var t=e.state,n=t.suggestions.map((function(e){return e.items.length})).reduce((function(e,t,n){var r=(e[n-1]||0)+t;return e.push(r),e}),[]).reduce((function(e,n){return n<=t.highlightedIndex?e+1:e}),0);return t.suggestions[n]}({state:t});if(!n)return null;var r=n.items[function(e){for(var t=e.state,n=e.suggestion,r=!1,a=0,o=0;!1===r;){var s=t.suggestions[a];if(s===n){r=!0;break}o+=s.items.length,a++}return t.highlightedIndex-o}({state:t,suggestion:n})],a=n.source;return{item:r,itemValue:a.getInputValue({suggestion:r,state:t}),itemUrl:a.getSuggestionUrl({suggestion:r,state:t}),source:a}}function h(e,t){return e===t||e.contains&&e.contains(t)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=null;function b(e){var t,n=e.query,r=e.store,a=e.props,o=e.setHighlightedIndex,s=e.setQuery,i=e.setSuggestions,c=e.setIsOpen,u=e.setStatus,l=e.setContext,h=e.nextState,g=void 0===h?{}:h;return a.onInput?Promise.resolve(a.onInput({query:n,state:r.getState(),setHighlightedIndex:o,setQuery:s,setSuggestions:i,setIsOpen:c,setStatus:u,setContext:l})):(y&&clearTimeout(y),o(a.defaultHighlightedIndex),s(n),0===n.length&&!1===a.openOnFocus?(u("idle"),i(r.getState().suggestions.map((function(e){return d(d({},e),{},{items:[]})}))),c(null!==(t=g.isOpen)&&void 0!==t?t:a.shouldDropdownShow({state:r.getState()})),Promise.resolve()):(u("loading"),y=a.environment.setTimeout((function(){u("stalled")}),a.stallThreshold),a.getSources({query:n,state:r.getState(),setHighlightedIndex:o,setQuery:s,setSuggestions:i,setIsOpen:c,setStatus:u,setContext:l}).then((function(e){return u("loading"),Promise.all(e.map((function(e){return Promise.resolve(e.getSuggestions({query:n,state:r.getState(),setHighlightedIndex:o,setQuery:s,setSuggestions:i,setIsOpen:c,setStatus:u,setContext:l})).then((function(t){return{source:e,items:t}}))}))).then((function(e){var t;u("idle"),i(e),c(null!==(t=g.isOpen)&&void 0!==t?t:0===n.length&&a.openOnFocus||a.shouldDropdownShow({state:r.getState()}))})).catch((function(e){throw u("error"),e})).finally((function(){y&&clearTimeout(y)}))}))))}function O(e){var t=e.state;if(!1===e.props.showCompletion||!1===t.isOpen||null===t.highlightedIndex||"stalled"===t.status)return null;var n=l({state:t}).itemValue;if(t.query.length>0&&0===n.toLocaleLowerCase().indexOf(t.query.toLocaleLowerCase())){var r=t.query+n.slice(t.query.length);return r===t.query?null:r}return null}function S(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=e.store,n=e.props,r=e.setHighlightedIndex,a=e.setQuery,o=e.setSuggestions,s=e.setIsOpen,i=e.setStatus,c=e.setContext;return{getEnvironmentProps:function(e){return{onTouchStart:function(r){!1!==t.getState().isOpen&&r.target!==e.inputElement&&(!1===[e.searchBoxElement,e.dropdownElement].some((function(e){return e&&(h(e,r.target)||h(e,n.environment.document.activeElement))}))&&t.send("blur",null))},onTouchMove:function(r){!1!==t.getState().isOpen&&e.inputElement===n.environment.document.activeElement&&r.target!==e.inputElement&&e.inputElement.blur()}}},getRootProps:function(e){return w({role:"combobox","aria-expanded":t.getState().isOpen,"aria-haspopup":"listbox","aria-owns":t.getState().isOpen?"".concat(n.id,"-menu"):void 0,"aria-labelledby":"".concat(n.id,"-label")},e)},getFormProps:function(e){e.inputElement;return w({onSubmit:function(u){u.preventDefault(),n.onSubmit({state:t.getState(),setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c,event:u}),t.send("submit",null),e.inputElement&&e.inputElement.blur()},onReset:function(u){u.preventDefault(),n.openOnFocus&&b({query:"",store:t,props:n,setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c}),t.send("reset",null),e.inputElement&&e.inputElement.focus()}},S(e,["inputElement"]))},getLabelProps:function(e){return w({htmlFor:"".concat(n.id,"-input"),id:"".concat(n.id,"-label")},e)},getInputProps:function(e){function u(){(n.openOnFocus||t.getState().query.length>0)&&b({query:t.getState().query,store:t,props:n,setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c}),t.send("focus",null)}var h="ontouchstart"in n.environment,g=(e.inputElement,e.maxLength),m=void 0===g?512:g,p=S(e,["inputElement","maxLength"]);return w({"aria-autocomplete":n.showCompletion?"both":"list","aria-activedescendant":t.getState().isOpen&&null!==t.getState().highlightedIndex?"".concat(n.id,"-item-").concat(t.getState().highlightedIndex):void 0,"aria-controls":t.getState().isOpen?"".concat(n.id,"-menu"):void 0,"aria-labelledby":"".concat(n.id,"-label"),value:t.getState().query,id:"".concat(n.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,autoFocus:n.autoFocus,placeholder:n.placeholder,maxLength:m,onChange:function(e){b({query:e.currentTarget.value.slice(0,m),store:t,props:n,setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c})},onKeyDown:function(e){!function(e){var t=e.event,n=e.store,r=e.props,a=e.setHighlightedIndex,o=e.setQuery,s=e.setSuggestions,i=e.setIsOpen,c=e.setStatus,u=e.setContext;if("ArrowUp"===t.key||"ArrowDown"===t.key){t.preventDefault(),n.send(t.key,{shiftKey:t.shiftKey});var h=r.environment.document.getElementById("".concat(r.id,"-item-").concat(n.getState().highlightedIndex));null==h||h.scrollIntoView(!1);var g=l({state:n.getState()});if(null!==n.getState().highlightedIndex&&g){var m=g.item,p=g.itemValue,f=g.itemUrl,d=g.source;d.onHighlight({suggestion:m,suggestionValue:p,suggestionUrl:f,source:d,state:n.getState(),setHighlightedIndex:a,setQuery:o,setSuggestions:s,setIsOpen:i,setStatus:c,setContext:u,event:t})}}else if(("Tab"===t.key||"ArrowRight"===t.key&&t.target.selectionStart===n.getState().query.length)&&r.showCompletion&&null!==n.getState().highlightedIndex){t.preventDefault();var v=O({state:n.getState(),props:r});v&&b({query:v,store:n,props:r,setHighlightedIndex:a,setQuery:o,setSuggestions:s,setIsOpen:i,setStatus:c,setContext:u})}else if("Escape"===t.key)t.preventDefault(),n.send(t.key,null);else if("Enter"===t.key){if(null===n.getState().highlightedIndex||n.getState().suggestions.every((function(e){return 0===e.items.length})))return;t.preventDefault();var y=l({state:n.getState()}),S=y.item,E=y.itemValue,w=y.itemUrl,P=y.source;t.metaKey||t.ctrlKey?void 0!==w&&r.navigator.navigateNewTab({suggestionUrl:w,suggestion:S,state:n.getState()}):t.shiftKey?void 0!==w&&r.navigator.navigateNewWindow({suggestionUrl:w,suggestion:S,state:n.getState()}):t.altKey||(b({query:E,store:n,props:r,setHighlightedIndex:a,setQuery:o,setSuggestions:s,setIsOpen:i,setStatus:c,setContext:u,nextState:{isOpen:!1}}).then((function(){P.onSelect({suggestion:S,suggestionValue:E,suggestionUrl:w,source:P,state:n.getState(),setHighlightedIndex:a,setQuery:o,setSuggestions:s,setIsOpen:i,setStatus:c,setContext:u,event:t})})),void 0!==w&&r.navigator.navigate({suggestionUrl:w,suggestion:S,state:n.getState()}))}}({event:e,store:t,props:n,setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c})},onFocus:u,onBlur:function(){h||t.send("blur",null)},onClick:function(){e.inputElement!==n.environment.document.activeElement||t.getState().isOpen||u()}},p)},getDropdownProps:function(e){return w({onMouseLeave:function(){t.send("mouseleave",null)}},e)},getMenuProps:function(e){return w({role:"listbox","aria-labelledby":"".concat(n.id,"-label"),id:"".concat(n.id,"-menu")},e)},getItemProps:function(e){var u=e.item,h=e.source,g=S(e,["item","source"]);return w({id:"".concat(n.id,"-item-").concat(u.__autocomplete_id),role:"option","aria-selected":t.getState().highlightedIndex===u.__autocomplete_id,onMouseMove:function(e){if(u.__autocomplete_id!==t.getState().highlightedIndex){t.send("mousemove",u.__autocomplete_id);var n=l({state:t.getState()});if(null!==t.getState().highlightedIndex&&n){var h=n.item,g=n.itemValue,m=n.itemUrl,p=n.source;p.onHighlight({suggestion:h,suggestionValue:g,suggestionUrl:m,source:p,state:t.getState(),setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c,event:e})}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){if(void 0===h.getSuggestionUrl({suggestion:u,state:t.getState()})&&!function(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)){var l=h.getInputValue({suggestion:u,state:t.getState()});b({query:l,store:t,props:n,setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c,nextState:{isOpen:!1}}).then((function(){h.onSelect({suggestion:u,suggestionValue:l,suggestionUrl:h.getSuggestionUrl({suggestion:u,state:t.getState()}),source:h,state:t.getState(),setHighlightedIndex:r,setQuery:a,setSuggestions:o,setIsOpen:s,setStatus:i,setContext:c,event:e})}))}}},g)}}}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e,t,n){switch(e.type){case"setHighlightedIndex":return k(k({},t),{},{highlightedIndex:e.value});case"setQuery":return k(k({},t),{},{query:e.value});case"setSuggestions":return k(k({},t),{},{suggestions:e.value});case"setIsOpen":return k(k({},t),{},{isOpen:e.value});case"setStatus":return k(k({},t),{},{status:e.value});case"setContext":return k(k({},t),{},{context:k(k({},t.context),e.value)});case"ArrowDown":return k(k({},t),{},{highlightedIndex:u(1,t.highlightedIndex,i(t),n.defaultHighlightedIndex)});case"ArrowUp":return k(k({},t),{},{highlightedIndex:u(-1,t.highlightedIndex,i(t),n.defaultHighlightedIndex)});case"Escape":return t.isOpen?k(k({},t),{},{isOpen:!1}):k(k({},t),{},{query:"",status:"idle",statusContext:{},suggestions:[]});case"submit":return k(k({},t),{},{highlightedIndex:null,isOpen:!1,status:"idle",statusContext:{}});case"reset":return k(k({},t),{},{highlightedIndex:!0===n.openOnFocus?n.defaultHighlightedIndex:null,isOpen:n.openOnFocus,status:"idle",statusContext:{},query:""});case"focus":return k(k({},t),{},{highlightedIndex:n.defaultHighlightedIndex,isOpen:n.openOnFocus||t.query.length>0});case"blur":return k(k({},t),{},{isOpen:!1,highlightedIndex:null});case"mousemove":return k(k({},t),{},{highlightedIndex:e.value});case"mouseleave":return k(k({},t),{},{highlightedIndex:n.defaultHighlightedIndex});default:return t}};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){return{state:t.initialState,getState:function(){return this.state},send:function(n,r){this.state=function(e,t){return A(A({},e),{},{completion:O({state:e,props:t})})}(e({type:n,value:r},this.state,t),t),t.onStateChange({state:this.state})}}}function M(e){var t=function(e){var t,n,r="undefined"!=typeof window?window:{};return m(m({openOnFocus:!1,placeholder:"",autoFocus:!1,defaultHighlightedIndex:null,showCompletion:!1,stallThreshold:300,environment:r,shouldDropdownShow:function(e){return i(e.state)>0},onStateChange:o,onSubmit:o},e),{},{id:null!==(t=e.id)&&void 0!==t?t:"autocomplete-".concat(s++),initialState:m({highlightedIndex:null,query:"",completion:null,suggestions:[],isOpen:!1,status:"idle",statusContext:{},context:{}},e.initialState),getSources:(n=e.getSources,function(e){return Promise.resolve(n(e)).then((function(e){return Promise.all(e.filter(Boolean).map((function(e){return Promise.resolve(c(e))})))}))}),navigator:m({navigate:function(e){var t=e.suggestionUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.suggestionUrl,n=r.open(t,"_blank","noopener");n&&n.focus()},navigateNewWindow:function(e){var t=e.suggestionUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e),n=T(H,t),r=function(e){var t=e.store;return{setHighlightedIndex:function(e){t.send("setHighlightedIndex",e)},setQuery:function(e){t.send("setQuery",e)},setSuggestions:function(e){var n=0,r=e.map((function(e){return I(I({},e),{},{items:e.items.map((function(e){return I(I({},e),{},{__autocomplete_id:n++})}))})}));t.send("setSuggestions",r)},setIsOpen:function(e){t.send("setIsOpen",e)},setStatus:function(e){t.send("setStatus",e)},setContext:function(e){t.send("setContext",e)}}}({store:n}),a=r.setHighlightedIndex,u=r.setQuery,l=r.setSuggestions,h=r.setIsOpen,g=r.setStatus,p=r.setContext,f=j({store:n,props:t,setHighlightedIndex:a,setQuery:u,setSuggestions:l,setIsOpen:h,setStatus:g,setContext:p}),d=f.getEnvironmentProps,v=f.getRootProps,y=f.getFormProps,O=f.getLabelProps,S=f.getInputProps,E=f.getDropdownProps,w=f.getMenuProps,P=f.getItemProps;return{setHighlightedIndex:a,setQuery:u,setSuggestions:l,setIsOpen:h,setStatus:g,setContext:p,getEnvironmentProps:d,getRootProps:v,getFormProps:y,getInputProps:S,getLabelProps:O,getDropdownProps:E,getMenuProps:w,getItemProps:P,refresh:function(){return b({query:n.getState().query,store:n,props:t,setHighlightedIndex:a,setQuery:u,setSuggestions:l,setIsOpen:h,setStatus:g,setContext:p})}}}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){var t=e.searchClient,n=e.queries;return"function"==typeof t.addAlgoliaAgent&&t.addAlgoliaAgent("autocomplete-core","1.0.0-alpha.25"),t.search(n.map((function(e){return{indexName:e.indexName,query:e.query,params:_({hitsPerPage:5,highlightPreTag:"<mark>",highlightPostTag:"</mark>"},e.params)}})))}var U=n(0),Q=n.n(U);function V(){return Q.a.createElement("a",{href:"https://www.algolia.com/docsearch",target:"_blank",rel:"noopener noreferrer"},Q.a.createElement("span",{className:"DocSearch-Label"},"Search by"),Q.a.createElement("svg",{width:"77",height:"19"},Q.a.createElement("path",{d:"M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z",fill:"currentColor",fillRule:"evenodd"})))}function B(){return Q.a.createElement(Q.a.Fragment,null,Q.a.createElement("div",{className:"DocSearch-Logo"},Q.a.createElement(V,null)),Q.a.createElement("ul",{className:"DocSearch-Commands"},Q.a.createElement("li",null,Q.a.createElement("span",{className:"DocSearch-Commands-Key"},Q.a.createElement(J,null,Q.a.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),Q.a.createElement("span",{className:"DocSearch-Label"},"to select")),Q.a.createElement("li",null,Q.a.createElement("span",{className:"DocSearch-Commands-Key"},Q.a.createElement(J,null,Q.a.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),Q.a.createElement("span",{className:"DocSearch-Commands-Key"},Q.a.createElement(J,null,Q.a.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),Q.a.createElement("span",{className:"DocSearch-Label"},"to navigate")),Q.a.createElement("li",null,Q.a.createElement("span",{className:"DocSearch-Commands-Key"},Q.a.createElement(J,null,Q.a.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),Q.a.createElement("span",{className:"DocSearch-Label"},"to close"))))}function J(e){return Q.a.createElement("svg",{width:"15",height:"15"},Q.a.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},e.children))}function K(e){var t=e.hit,n=e.children;return Q.a.createElement("a",{href:t.url},n)}function W(){return Q.a.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},Q.a.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function $(){return Q.a.createElement("div",{className:"DocSearch-ErrorScreen"},Q.a.createElement("div",{className:"DocSearch-Screen-Icon"},Q.a.createElement(W,null)),Q.a.createElement("p",{className:"DocSearch-Title"},"Unable to fetch results"),Q.a.createElement("p",{className:"DocSearch-Help"},"You might want to check your network connection."))}function Y(){return Q.a.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},Q.a.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}function G(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e){var t=e.state.context.searchSuggestions;return Q.a.createElement("div",{className:"DocSearch-NoResults"},Q.a.createElement("div",{className:"DocSearch-Screen-Icon"},Q.a.createElement(Y,null)),Q.a.createElement("p",{className:"DocSearch-Title"},'No results for "',Q.a.createElement("strong",null,e.state.query),'"'),t&&t.length>0&&Q.a.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},Q.a.createElement("p",{className:"DocSearch-Help"},"Try searching for:"),Q.a.createElement("ul",null,t.slice(0,3).reduce((function(t,n){return[].concat(G(t),[Q.a.createElement("li",{key:n},Q.a.createElement("button",{className:"DocSearch-Prefill",key:n,onClick:function(){e.setQuery(n.toLowerCase()+" "),e.refresh(),e.inputRef.current.focus()}},n))])}),[]))),Q.a.createElement("p",{className:"DocSearch-Help"},"Believe this query should return results?"," ",Q.a.createElement("a",{href:"https://github.com/algolia/docsearch-configs/issues/new?template=Missing_results.md",target:"_blank",rel:"noopener noreferrer"},"Let us know"),"."))}function ee(e){switch(e.type){case"lvl1":return Q.a.createElement(te,null);case"content":return Q.a.createElement(re,null);default:return Q.a.createElement(ne,null)}}function te(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function ne(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function re(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function ae(){return Q.a.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},Q.a.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),Q.a.createElement("path",{d:"M8 17l-6-6 6-6"})))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ue(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function le(e){var t=e.hit,n=e.attribute,r=e.tagName,a=void 0===r?"span":r,o=ce(e,["hit","attribute","tagName"]);return Object(U.createElement)(a,se(se({},o),{},{dangerouslySetInnerHTML:{__html:ue(t,"_snippetResult.".concat(n,".value"))||ue(t,n)}}))}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){a=!0,o=c}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(){return(me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pe(e){return e.suggestion&&0!==e.suggestion.items.length?Q.a.createElement("section",{className:"DocSearch-Hits"},Q.a.createElement("div",{className:"DocSearch-Hit-source"},e.title),Q.a.createElement("ul",e.getMenuProps(),e.suggestion.items.map((function(t,n){return Q.a.createElement(fe,me({key:[e.title,t.objectID].join(":"),item:t,index:n},e))})))):null}function fe(e){var t=e.item,n=e.index,r=e.renderIcon,a=e.renderAction,o=e.getItemProps,s=e.onItemClick,i=e.suggestion,c=e.hitComponent,u=he(Q.a.useState(!1),2),l=u[0],h=u[1],g=he(Q.a.useState(!1),2),m=g[0],p=g[1],f=Q.a.useRef(null),d=c;return Q.a.createElement("li",me({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",l&&"DocSearch-Hit--deleting",m&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){f.current&&f.current()}},o({item:t,source:i.source,onClick:function(){s(t)}})),Q.a.createElement(d,{hit:t},Q.a.createElement("div",{className:"DocSearch-Hit-Container"},r({item:t,index:n}),t.hierarchy[t.type]&&"lvl1"===t.type&&Q.a.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Q.a.createElement(le,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&Q.a.createElement(le,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&("lvl2"===t.type||"lvl3"===t.type||"lvl4"===t.type||"lvl5"===t.type||"lvl6"===t.type)&&Q.a.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Q.a.createElement(le,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),Q.a.createElement(le,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),"content"===t.type&&Q.a.createElement("div",{className:"DocSearch-Hit-content-wrapper"},Q.a.createElement(le,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),Q.a.createElement(le,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),a({item:t,runDeleteTransition:function(e){h(!0),f.current=e},runFavoriteTransition:function(e){p(!0),f.current=e}}))))}function de(){return(de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ve(e){return Q.a.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.suggestions.map((function(t,n){if(0===t.items.length)return null;var r=t.items[0].hierarchy.lvl0;return Q.a.createElement(pe,de({},e,{key:n,title:r,suggestion:t,renderIcon:function(e){var n,r=e.item,a=e.index;return Q.a.createElement(Q.a.Fragment,null,r.__docsearch_parent&&Q.a.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},Q.a.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},r.__docsearch_parent!==(null===(n=t.items[a+1])||void 0===n?void 0:n.__docsearch_parent)?Q.a.createElement("path",{d:"M8 6v21M20 27H8.3"}):Q.a.createElement("path",{d:"M8 6v42M20 27H8.3"}))),Q.a.createElement("div",{className:"DocSearch-Hit-icon"},Q.a.createElement(ee,{type:r.type})))},renderAction:function(){return Q.a.createElement("div",{className:"DocSearch-Hit-action"},Q.a.createElement(ae,null))}}))})),Q.a.createElement("section",{className:"DocSearch-HitsFooter"},Q.a.createElement(e.resultsFooterComponent,{state:e.state})))}function ye(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},Q.a.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),Q.a.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function be(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Oe(){return Q.a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},Q.a.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Se(){return(Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ee(e){return"idle"===e.state.status&&!1===e.hasSuggestions?e.disableUserPersonalization?null:Q.a.createElement("div",{className:"DocSearch-StartScreen"},Q.a.createElement("p",{className:"DocSearch-Help"},"No recent searches")):!1===e.hasSuggestions?null:Q.a.createElement("div",{className:"DocSearch-Dropdown-Container"},Q.a.createElement(pe,Se({},e,{title:"Recent",suggestion:e.state.suggestions[0],renderIcon:function(){return Q.a.createElement("div",{className:"DocSearch-Hit-icon"},Q.a.createElement(ye,null))},renderAction:function(t){var n=t.item,r=t.runFavoriteTransition,a=t.runDeleteTransition;return Q.a.createElement(Q.a.Fragment,null,Q.a.createElement("div",{className:"DocSearch-Hit-action"},Q.a.createElement("button",{"data-cy":"fav-recent",className:"DocSearch-Hit-action-button",title:"Save this search",onClick:function(t){t.preventDefault(),t.stopPropagation(),r((function(){e.favoriteSearches.add(n),e.recentSearches.remove(n),e.refresh()}))}},Q.a.createElement(be,null))),Q.a.createElement("div",{className:"DocSearch-Hit-action"},Q.a.createElement("button",{"data-cy":"remove-recent",className:"DocSearch-Hit-action-button",title:"Remove this search from history",onClick:function(t){t.preventDefault(),t.stopPropagation(),a((function(){e.recentSearches.remove(n),e.refresh()}))}},Q.a.createElement(Oe,null))))}})),Q.a.createElement(pe,Se({},e,{title:"Favorites",suggestion:e.state.suggestions[1],renderIcon:function(){return Q.a.createElement("div",{className:"DocSearch-Hit-icon"},Q.a.createElement(be,null))},renderAction:function(t){var n=t.item,r=t.runDeleteTransition;return Q.a.createElement("div",{className:"DocSearch-Hit-action"},Q.a.createElement("button",{"data-cy":"remove-fav",className:"DocSearch-Hit-action-button",title:"Remove this search from favorites",onClick:function(t){t.preventDefault(),t.stopPropagation(),r((function(){e.favoriteSearches.remove(n),e.refresh()}))}},Q.a.createElement(Oe,null)))}})))}function we(){return(we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pe=Q.a.memo((function(e){if("error"===e.state.status)return Q.a.createElement($,null);var t=e.state.suggestions.some((function(e){return e.items.length>0}));return e.state.query?!1===t?Q.a.createElement(Z,e):Q.a.createElement(ve,e):Q.a.createElement(Ee,we({},e,{hasSuggestions:t}))}),(function(e,t){return"loading"===t.state.status||"stalled"===t.state.status}));function je(){return Q.a.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},Q.a.createElement("g",{fill:"none",fillRule:"evenodd"},Q.a.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},Q.a.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),Q.a.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},Q.a.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}var xe=n(150);function Ie(){return(Ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function De(e){var t=e.getFormProps({inputElement:e.inputRef.current}).onReset;return Q.a.useEffect((function(){e.autoFocus&&e.inputRef.current&&e.inputRef.current.focus()}),[e.autoFocus,e.inputRef]),Q.a.createElement(Q.a.Fragment,null,Q.a.createElement("form",{action:"",role:"search",noValidate:!0,className:"DocSearch-Form",onSubmit:function(e){e.preventDefault()},onReset:t},Q.a.createElement("label",Ie({className:"DocSearch-MagnifierLabel"},e.getLabelProps()),Q.a.createElement(xe.a,null)),Q.a.createElement("div",{className:"DocSearch-LoadingIndicator"},Q.a.createElement(je,null)),Q.a.createElement("input",Ie({className:"DocSearch-Input",ref:e.inputRef},e.getInputProps({inputElement:e.inputRef.current,type:"search",autoFocus:e.autoFocus,maxLength:64}))),Q.a.createElement("button",{type:"reset",title:"Clear the query",className:"DocSearch-Reset",hidden:!e.state.query,onClick:t},Q.a.createElement(Oe,null))),Q.a.createElement("button",{className:"DocSearch-Cancel",onClick:e.onClose},"Cancel"))}function Ce(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ke(e){return!1===function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(t){return!1}}()?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function Ne(e){var t=e.key,n=e.limit,r=void 0===n?5:n,a=ke(t),o=a.getItem().slice(0,r);return{add:function(e){var t=e,n=(t._highlightResult,t._snippetResult,Ce(t,["_highlightResult","_snippetResult"])),s=o.findIndex((function(e){return e.objectID===n.objectID}));s>-1&&o.splice(s,1),o.unshift(n),o=o.slice(0,r),a.setItem(o)},remove:function(e){o=o.filter((function(t){return t.objectID!==e.objectID})),a.setItem(o)},getAll:function(){return o}}}function He(e){const t="algoliasearch-client-js-"+e.key;let n;const r=()=>(void 0===n&&(n=e.localStorage||window.localStorage),n),a=()=>JSON.parse(r().getItem(t)||"{}");return{get:(e,t,n={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>{const n=JSON.stringify(e),r=a()[n];return Promise.all([r||t(),void 0!==r])}).then(([e,t])=>Promise.all([e,t||n.miss(e)])).then(([e])=>e),set:(e,n)=>Promise.resolve().then(()=>{const o=a();return o[JSON.stringify(e)]=n,r().setItem(t,JSON.stringify(o)),n}),delete:e=>Promise.resolve().then(()=>{const n=a();delete n[JSON.stringify(e)],r().setItem(t,JSON.stringify(n))}),clear:()=>Promise.resolve().then(()=>{r().removeItem(t)})}}function qe(e){const t=[...e.caches],n=t.shift();return void 0===n?{get:(e,t,n={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,n.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,r,a={miss:()=>Promise.resolve()})=>n.get(e,r,a).catch(()=>qe({caches:t}).get(e,r,a)),set:(e,r)=>n.set(e,r).catch(()=>qe({caches:t}).set(e,r)),delete:e=>n.delete(e).catch(()=>qe({caches:t}).delete(e)),clear:()=>n.clear().catch(()=>qe({caches:t}).clear())}}function Ae(e={serializable:!0}){let t={};return{get(n,r,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const s=r(),i=a&&a.miss||(()=>Promise.resolve());return s.then(e=>i(e)).then(()=>s)},set:(n,r)=>(t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function Re(e){let t=e.length-1;for(;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function Te(e,t){return Object.keys(void 0!==t?t:{}).forEach(n=>{e[n]=t[n](e)}),e}function Me(e,...t){let n=0;return e.replace(/%s/g,()=>encodeURIComponent(t[n++]))}const Le={WithinQueryParameters:0,WithinHeaders:1};function _e(e,t){const n=e||{},r=n.data||{};return Object.keys(n).forEach(e=>{-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])}),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}const Fe={Read:1,Write:2,Any:3},ze=1,Ue=2,Qe=3;function Ve(e,t=ze){return{...e,status:t,lastUpdate:Date.now()}}function Be(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||Fe.Any}}const Je="GET",Ke="POST";function We(e,t){return Promise.all(t.map(t=>e.get(t,()=>Promise.resolve(Ve(t))))).then(e=>{const n=e.filter(e=>function(e){return e.status===ze||Date.now()-e.lastUpdate>12e4}(e)),r=e.filter(e=>function(e){return e.status===Qe&&Date.now()-e.lastUpdate<=12e4}(e)),a=[...n,...r];return{getTimeout:(e,t)=>(0===r.length&&0===e?1:r.length+3+e)*t,statelessHosts:a.length>0?a.map(e=>Be(e)):t}})}function $e(e,t,n,r){const a=[],o=function(e,t){if(e.method===Je||void 0===e.data&&void 0===t.data)return;const n=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(n)}(n,r),s=function(e,t){const n={...e.headers,...t.headers},r={};return Object.keys(n).forEach(e=>{const t=n[e];r[e.toLowerCase()]=t}),r}(e,r),i=n.method,c=n.method!==Je?{}:{...n.data,...r.data},u={"x-algolia-agent":e.userAgent.value,...e.queryParameters,...c,...r.queryParameters};let l=0;const h=(t,c)=>{const g=t.pop();if(void 0===g)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:Ze(a)};const m={data:o,headers:s,method:i,url:Ge(g,n.path,u),connectTimeout:c(l,e.timeouts.connect),responseTimeout:c(l,r.timeout)},p=e=>{const n={request:m,response:e,host:g,triesLeft:t.length};return a.push(n),n},f={onSucess:e=>function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e),onRetry(n){const r=p(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",et(r)),e.hostsCache.set(g,Ve(g,n.isTimedOut?Qe:Ue))]).then(()=>h(t,c))},onFail(e){throw p(e),function({content:e,status:t},n){let r=e;try{r=JSON.parse(e).message}catch(a){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(r,t,n)}(e,Ze(a))}};return e.requester.send(m).then(e=>((e,t)=>(e=>{const t=e.status;return e.isTimedOut||(({isTimedOut:e,status:t})=>!e&&0==~~t)(e)||2!=~~(t/100)&&4!=~~(t/100)})(e)?t.onRetry(e):(({status:e})=>2==~~(e/100))(e)?t.onSucess(e):t.onFail(e))(e,f))};return We(e.hostsCache,t).then(e=>h([...e.statelessHosts].reverse(),e.getTimeout))}function Ye(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const n=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(n)&&(t.value=`${t.value}${n}`),t}};return t}function Ge(e,t,n){const r=Xe(n);let a=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return r.length&&(a+="?"+r),a}function Xe(e){return Object.keys(e).map(t=>{return Me("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n}).join("&")}function Ze(e){return e.map(e=>et(e))}function et(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}const tt=e=>{const t=e.appId,n=function(e,t,n){const r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:()=>e===Le.WithinHeaders?r:{},queryParameters:()=>e===Le.WithinQueryParameters?r:{}}}(void 0!==e.authMode?e.authMode:Le.WithinHeaders,t,e.apiKey),r=function(e){const{hostsCache:t,logger:n,requester:r,requestsCache:a,responsesCache:o,timeouts:s,userAgent:i,hosts:c,queryParameters:u,headers:l}=e,h={hostsCache:t,logger:n,requester:r,requestsCache:a,responsesCache:o,timeouts:s,userAgent:i,headers:l,queryParameters:u,hosts:c.map(e=>Be(e)),read(e,t){const n=_e(t,h.timeouts.read),r=()=>$e(h,h.hosts.filter(e=>0!=(e.accept&Fe.Read)),e,n);if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();const a={request:e,mappedRequestOptions:n,transporter:{queryParameters:h.queryParameters,headers:h.headers}};return h.responsesCache.get(a,()=>h.requestsCache.get(a,()=>h.requestsCache.set(a,r()).then(e=>Promise.all([h.requestsCache.delete(a),e]),e=>Promise.all([h.requestsCache.delete(a),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>h.responsesCache.set(a,e)})},write:(e,t)=>$e(h,h.hosts.filter(e=>0!=(e.accept&Fe.Write)),e,_e(t,h.timeouts.write))};return h}({hosts:[{url:t+"-dsn.algolia.net",accept:Fe.Read},{url:t+".algolia.net",accept:Fe.Write}].concat(Re([{url:t+"-1.algolianet.com"},{url:t+"-2.algolianet.com"},{url:t+"-3.algolianet.com"}])),...e,headers:{...n.headers(),"content-type":"application/x-www-form-urlencoded",...e.headers},queryParameters:{...n.queryParameters(),...e.queryParameters}});return Te({transporter:r,appId:t,addAlgoliaAgent(e,t){r.userAgent.add({segment:e,version:t})},clearCache:()=>Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then(()=>{})},e.methods)},nt=e=>(t,n={})=>Te({transporter:e.transporter,appId:e.appId,indexName:t},n.methods),rt=e=>(t,n)=>{const r=t.map(e=>({...e,params:Xe(e.params||{})}));return e.transporter.read({method:Ke,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},n)},at=e=>(t,n)=>Promise.all(t.map(t=>{const{facetName:r,facetQuery:a,...o}=t.params;return nt(e)(t.indexName,{methods:{searchForFacetValues:st}}).searchForFacetValues(r,a,{...n,...o})})),ot=e=>(t,n)=>e.transporter.read({method:Ke,path:Me("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n),st=e=>(t,n,r)=>e.transporter.read({method:Ke,path:Me("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r),it=1,ct=2,ut=3;function lt(e,t,n){const r={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:e=>new Promise(t=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>n.setRequestHeader(t,e.headers[t]));const r=(e,r)=>setTimeout(()=>{n.abort(),t({status:0,content:r,isTimedOut:!0})},1e3*e),a=r(e.connectTimeout,"Connection timeout");let o;n.onreadystatechange=()=>{n.readyState>n.OPENED&&void 0===o&&(clearTimeout(a),o=r(e.responseTimeout,"Socket timeout"))},n.onerror=()=>{0===n.status&&(clearTimeout(a),clearTimeout(o),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})},logger:(a=ut,{debug:(e,t)=>(it>=a&&console.debug(e,t),Promise.resolve()),info:(e,t)=>(ct>=a&&console.info(e,t),Promise.resolve()),error:(e,t)=>(console.error(e,t),Promise.resolve())}),responsesCache:Ae(),requestsCache:Ae({serializable:!1}),hostsCache:qe({caches:[He({key:"4.3.1-"+e}),Ae()]}),userAgent:Ye("4.3.1").add({segment:"Browser",version:"lite"}),authMode:Le.WithinQueryParameters};var a;return tt({...r,...n,methods:{search:rt,searchForFacetValues:at,multipleQueries:rt,multipleSearchForFacetValues:at,initIndex:e=>t=>nt(e)(t,{methods:{search:ot,searchForFacetValues:st}})}})}lt.version="4.3.1";var ht=lt;function gt(){}function mt(e){return e}function pt(e,t){return e.reduce((function(e,n){var r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].length<5&&e[r].push(n),e}),{})}function ft(){return(ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){a=!0,o=c}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function St(e){var t=e.appId,n=void 0===t?"BH4D9OD16A":t,r=e.apiKey,a=e.indexName,o=e.placeholder,s=void 0===o?"Search docs":o,i=e.searchParameters,c=e.onClose,u=void 0===c?gt:c,l=e.transformItems,h=void 0===l?mt:l,g=e.hitComponent,m=void 0===g?K:g,p=e.resultsFooterComponent,f=void 0===p?function(){return null}:p,d=e.navigator,v=e.initialScrollY,y=void 0===v?0:v,b=e.transformSearchClient,O=void 0===b?mt:b,S=e.disableUserPersonalization,E=void 0!==S&&S,w=e.initialQuery,P=void 0===w?"":w,j=bt(Q.a.useState({query:"",suggestions:[]}),2),x=j[0],I=j[1],D=Q.a.useRef(null),C=Q.a.useRef(null),k=Q.a.useRef(null),N=Q.a.useRef(null),H=Q.a.useRef(10),q=Q.a.useRef(P||"undefined"!=typeof window?window.getSelection().toString().slice(0,64):"").current,A=function(e,t,n){return Q.a.useMemo((function(){var r=ht(e,t);return r.addAlgoliaAgent("docsearch","1.0.0-alpha.25"),!1===/docsearch.js \(.*\)/.test(r.transporter.userAgent.value)&&r.addAlgoliaAgent("docsearch-react","1.0.0-alpha.25"),n(r)}),[e,t,n])}(n,r,O),R=Q.a.useRef(Ne({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(a),limit:10})).current,T=Q.a.useRef(Ne({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(a),limit:0===R.getAll().length?7:4})).current,L=Q.a.useCallback((function(e){if(!E){var t="content"===e.type?e.__docsearch_parent:e;t&&-1===R.getAll().findIndex((function(e){return e.objectID===t.objectID}))&&T.add(t)}}),[R,T,E]),_=Q.a.useMemo((function(){return M({id:"docsearch",defaultHighlightedIndex:0,placeholder:s,openOnFocus:!0,initialState:{query:q,context:{searchSuggestions:[]}},navigator:d,onStateChange:function(e){var t=e.state;I(t)},getSources:function(e){var t,n=e.query,r=e.state,o=e.setContext,s=e.setStatus;return n?(t={searchClient:A,queries:[{indexName:a,query:n,params:vt({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(H.current),"hierarchy.lvl2:".concat(H.current),"hierarchy.lvl3:".concat(H.current),"hierarchy.lvl4:".concat(H.current),"hierarchy.lvl5:".concat(H.current),"hierarchy.lvl6:".concat(H.current),"content:".concat(H.current)],snippetEllipsisText:"\u2026",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20},i)}]},z({searchClient:t.searchClient,queries:t.queries}).then((function(e){return e.results}))).catch((function(e){throw"RetryError"===e.name&&s("error"),e})).then((function(e){var t=e[0].hits,n=e[0].nbHits,a=pt(t,(function(e){return e.hierarchy.lvl0}));return r.context.searchSuggestions.length<Object.keys(a).length&&o({searchSuggestions:Object.keys(a)}),o({nbHits:n}),Object.values(a).map((function(e){return{onSelect:function(e){var t=e.suggestion;L(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return Object.values(pt(e,(function(e){return e.hierarchy.lvl1}))).map(h).map((function(e){return e.map((function(t){return vt(vt({},t),{},{__docsearch_parent:"lvl1"!==t.type&&e.find((function(e){return"lvl1"===e.type&&e.hierarchy.lvl1===t.hierarchy.lvl1}))})}))})).flat()}}}))})):E?[]:[{onSelect:function(e){var t=e.suggestion;L(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return T.getAll()}},{onSelect:function(e){var t=e.suggestion;L(t),u()},getSuggestionUrl:function(e){return e.suggestion.url},getSuggestions:function(){return R.getAll()}}]}})}),[a,i,A,u,T,R,L,q,s,d,h,E]),F=_.getEnvironmentProps,U=_.getRootProps,V=_.refresh;return function(e){var t=e.getEnvironmentProps,n=e.dropdownElement,r=e.searchBoxElement,a=e.inputElement;Q.a.useEffect((function(){if(n&&r&&a){var e=t({dropdownElement:n,searchBoxElement:r,inputElement:a}),o=e.onTouchStart,s=e.onTouchMove;return window.addEventListener("touchstart",o),window.addEventListener("touchmove",s),function(){window.removeEventListener("touchstart",o),window.removeEventListener("touchmove",s)}}}),[t,n,r,a])}({getEnvironmentProps:F,dropdownElement:k.current,searchBoxElement:C.current,inputElement:N.current}),function(e){var t=e.container;Q.a.useEffect((function(){if(t){var e=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),n=e[0],r=e[e.length-1];return t.addEventListener("keydown",a),function(){t.removeEventListener("keydown",a)}}function a(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus()))}}),[t])}({container:D.current}),Q.a.useEffect((function(){return document.body.classList.add("DocSearch--active"),function(){var e,t;document.body.classList.remove("DocSearch--active"),null===(e=(t=window).scrollTo)||void 0===e||e.call(t,0,y)}}),[]),Q.a.useEffect((function(){window.matchMedia("(max-width: 750px)").matches&&(H.current=5)}),[]),Q.a.useEffect((function(){k.current&&(k.current.scrollTop=0)}),[x.query]),Q.a.useEffect((function(){q.length>0&&(V(),N.current&&N.current.focus())}),[q,V]),Q.a.createElement("div",ft({ref:D},U({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container","stalled"===x.status&&"DocSearch-Container--Stalled","error"===x.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),onClick:function(e){e.target===e.currentTarget&&u()}}),Q.a.createElement("div",{className:"DocSearch-Modal"},Q.a.createElement("header",{className:"DocSearch-SearchBar",ref:C},Q.a.createElement(De,ft({},_,{state:x,autoFocus:0===q.length,onClose:u,inputRef:N}))),Q.a.createElement("div",{className:"DocSearch-Dropdown",ref:k},Q.a.createElement(Pe,ft({},_,{state:x,hitComponent:m,resultsFooterComponent:f,disableUserPersonalization:E,recentSearches:T,favoriteSearches:R,onItemClick:function(e){L(e),u()},inputRef:N}))),Q.a.createElement("footer",{className:"DocSearch-Footer"},Q.a.createElement(B,null))))}}}]); \ No newline at end of file