1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1670],{40730:(t,e,n)=>{n.d(e,{$:()=>a,s:()=>o});var i=n(95635),s=n(68458),r=n(28306),o=class extends s.k{#t;#e;#n;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#s({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#s({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let i="pending"===this.state.status,s=!this.#i.canStart();try{if(i)e();else{this.#s({type:"pending",variables:t,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);let e=await this.options.onMutate?.(t,n);e!==this.state.context&&this.#s({type:"pending",context:e,variables:t,isPaused:s})}let r=await this.#i.start();return await this.#n.config.onSuccess?.(r,t,this.state.context,this,n),await this.options.onSuccess?.(r,t,this.state.context,n),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(r,null,t,this.state.context,n),this.#s({type:"success",data:r}),r}catch(e){try{await this.#n.config.onError?.(e,t,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,n)}catch(t){Promise.reject(t)}try{await this.#n.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,n)}catch(t){Promise.reject(t)}throw this.#s({type:"error",error:e}),e}finally{this.#n.runNext(this)}}#s(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},75201:(t,e,n)=>{n.d(e,{Ay:()=>Y});var i="2.17.3";function s(t){return t.reduce(function(t,e){var n=t.events,t=t.additionalParams;return"index"in e?{additionalParams:t,events:n.concat([e])}:{events:n,additionalParams:e}},{events:[],additionalParams:void 0})}var r=function(){try{return!!navigator.cookieEnabled}catch(t){return!1}},o=function(){try{return!!navigator.sendBeacon}catch(t){return!1}},a=function(){try{return!!XMLHttpRequest}catch(t){return!1}},u=function(){try{return void 0!==fetch}catch(t){return!1}},h=function(){};h.get=function(t){var e=null==(e=this.store)?void 0:e.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},h.set=function(t,e){var n;try{null!=(n=this.store)&&n.setItem(t,JSON.stringify(e))}catch(e){console.error("Unable to set "+t+" in localStorage, storage may be full.")}},h.remove=function(t){var e;null!=(e=this.store)&&e.removeItem(t)},h.store=function(){try{var t="__test_localStorage__";return globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),globalThis.localStorage}catch(t){}}();var c="AlgoliaObjectQueryCache";function l(){var t;return null!=(t=h.get(c))?t:{}}function d(t){var e,n;h.set(c,Object.keys(e=t).length>5e3?(n=Object.entries(n=e).sort(function(t,e){return t=t[1][1],e[1][1]-t})).slice(0,n.length-1e3-1).reduce(function(t,e){var n=e[0],e=e[1];return Object.assign(Object.assign({},t),((t={})[n]=e,t))},{}):e)}function v(t,e,n){var i=l();i[t+"_"+e]=[n,Date.now()],d(i)}var f=function(t){return void 0===t},p=function(t){return"function"==typeof t},m=["insights-js ("+i+")","insights-js-browser-esm ("+i+")"];function b(t){-1===this._ua.indexOf(t)&&this._ua.push(t)}function g(t){return p(t)&&t(this.version),this.version}function y(t,e){var n={};for(s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)0>e.indexOf(s[i])&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]]);return n}function k(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}var O="_ALGOLIA",T=function(t,e,n){var i=new Date,n=(i.setTime(i.getTime()+n),"expires="+i.toUTCString());document.cookie=t+"="+e+";"+n+";path=/"},_=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var s=n[i];" "===s.charAt(0);)s=s.substring(1);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return""};function C(){var t=_(O);!this._userToken||t&&""!==t&&0===t.indexOf("anonymous-")||T(O,this._userToken,this._cookieDuration)}function x(t){(t=void 0!==t&&t)?this.setUserToken("anonymous-"+k()):r()&&((t=_(O))&&""!==t&&0===t.indexOf("anonymous-")?this.setUserToken(t):T(O,t=this.setUserToken("anonymous-"+k()),this._cookieDuration))}function j(t){return this._userToken=t,p(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken),this._userToken}function w(t,e){return p(e)&&e(null,this._userToken),this._userToken}function A(t,e){this._onUserTokenChangeCallback=t,e&&e.immediate&&p(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken)}function I(t){return this._authenticatedUserToken=t,p(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken),this._authenticatedUserToken}function P(t,e){return p(e)&&e(null,this._authenticatedUserToken),this._authenticatedUserToken}function U(t,e){this._onAuthenticatedUserTokenChangeCallback=t,e&&e.immediate&&p(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken)}function D(t,e){return e.map(function(e){return Object.assign({eventType:t},e)})}function E(t,e,n){return n.map(function(n){return Object.assign({eventType:t,eventSubtype:e},n)})}function S(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=s(e),r=i.events,i=i.additionalParams;return r.forEach(function(e){var n=e.index,i=e.queryID;return e.objectIDs.forEach(function(e){return!t._userHasOptedOut&&v(n,e,i)})}),this.sendEvents(D("click",r),i)}function M(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("click",i),n)}function R(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("click",i),n)}function K(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("conversion",i),n)}function q(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=s(e),r=i.events,i=i.additionalParams;return r.forEach(function(e){var n=e.index,i=e.queryID,s=e.objectIDs,r=e.objectData;
1return s.forEach(function(e,s){s=null!=(s=null==(s=null==r?void 0:r[s])?void 0:s.queryID)?s:i,!t._userHasOptedOut&&s&&v(n,e,s)})}),this.sendEvents(E("conversion","addToCart",r),i)}function H(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(E("conversion","purchase",i),n)}function N(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("conversion",i),n)}function X(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=s(e),r=i.events,i=i.additionalParams;return r.forEach(function(e){var n=e.index,i=e.objectIDs,s=e.objectData;return i.forEach(function(e,i){i=null==(i=null==s?void 0:s[i])?void 0:i.queryID,!t._userHasOptedOut&&i&&v(n,e,i)})}),this.sendEvents(E("conversion","addToCart",r),i)}function F(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(E("conversion","purchase",i),n)}function G(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("conversion",i),n)}var L=["de","us"];function Q(t){var e,n,i,s,r,o,a,u;if(!f((t=void 0===t?{}:t).region)&&-1===L.indexOf(t.region))throw Error("optional region is incorrect, please provide either one of: "+L.join(", ")+".");if(!(f(t.cookieDuration)||"number"==typeof t.cookieDuration&&isFinite(t.cookieDuration)&&Math.floor(t.cookieDuration)===t.cookieDuration))throw Error("optional cookieDuration is incorrect, expected an integer.");n=this,i=t,s={_userHasOptedOut:!!t.userHasOptedOut,_region:t.region,_host:t.host,_anonymousUserToken:null==(e=t.anonymousUserToken)||e,_useCookie:null!=(e=t.useCookie)&&e,_cookieDuration:t.cookieDuration||15552e6},r=i.partial,o=y(i,["partial"]),r||Object.assign(n,s),Object.assign(n,Object.keys(o).reduce(function(t,e){return Object.assign(Object.assign({},t),((t={})["_"+e]=o[e],t))},{})),this._endpointOrigin=this._host||(this._region?"https://insights."+this._region+".algolia.io":"https://insights.algolia.io"),this._ua=[].concat(m),t.authenticatedUserToken&&this.setAuthenticatedUserToken(t.authenticatedUserToken),t.userToken?this.setUserToken(t.userToken):this._userToken||this._userHasOptedOut||!this._useCookie?(a=this,void 0!==a._userToken&&"number"!=typeof(u=a._userToken)&&0===u.indexOf("anonymous-")&&a._useCookie&&!a._userHasOptedOut&&this.saveTokenAsCookie()):this.setAnonymousUserToken()}function J(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("view",i),n)}function B(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s(t),i=n.events,n=n.additionalParams;return this.sendEvents(D("view",i),n)}var $=function(t){var e;t=t.requestFn,this._endpointOrigin="https://insights.algolia.io",this._anonymousUserToken=!0,this._userHasOptedOut=!1,this._useCookie=!1,this._cookieDuration=15552e6,this._ua=[],this.version=i,this.sendEvents=(e=t,function(t,n){var i,s,r,o,a,u,h,c,v,p,m,b,g=this;if(this._userHasOptedOut)return Promise.resolve(!1);if(!(!f(this._apiKey)&&!f(this._appId)||(null==(k=null==n?void 0:n.headers)?void 0:k["X-Algolia-Application-Id"])&&(null==(k=null==n?void 0:n.headers)?void 0:k["X-Algolia-API-Key"])))throw Error("Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters or provide custom credentials in additional parameters.");!this._userToken&&this._anonymousUserToken&&this.setAnonymousUserToken(!0);var k=(null!=n&&n.inferQueryID?t.map(function(t){var e,n,i;return(i=t).queryID||"conversion"!==i.eventType||(e=[],n=null==(n=t.objectIDs)?void 0:n.map(function(n,i){var s,r,o=null==(o=t.objectData)?void 0:o[i];return null!=o&&o.queryID?o:((i=(null!=(s=t.index,r=n,i=l()[s+"_"+r])?i:[])[0])&&e.push(n),Object.assign(Object.assign({},o),{queryID:i}))}),0===e.length)?t:Object.assign(Object.assign({},t),{objectData:n,objectIDsWithInferredQueryID:e})}):t).map(function(t){var e=t.filters,n=y(t,["filters"]),t=Object.assign(Object.assign({},n),{userToken:null!=(n=null==t?void 0:t.userToken)?n:g._userToken,authenticatedUserToken:null!=(n=null==t?void 0:t.authenticatedUserToken)?n:g._authenticatedUserToken});return f(e)||(t.filters=e.map(encodeURIComponent)),t});return 0===k.length?Promise.resolve(!1):"function"==typeof(null==(i=e,s=this._ua,r=this._endpointOrigin,o=k,a=this._appId,u=this._apiKey,h=(v=void 0===(v=null==n?void 0:n.headers)?{}:v)["X-Algolia-Application-Id"],c=v["X-Algolia-API-Key"],v=y(v,["X-Algolia-Application-Id","X-Algolia-API-Key"]),b=t=i(r+"/1/events?"+Object.keys(p=Object.assign({"X-Algolia-Application-Id":null!=h?h:a,"X-Algolia-API-Key":null!=c?c:u,"X-Algolia-Agent":encodeURIComponent(s.join("; "))},v)).map(function(t){return t+"="+p[t]}).join("&"),{events:o}))?void 0:b.then)?t.then((m=k,function(t){return t&&m.filter(function(t){var e=t.eventType,n=t.eventSubtype,t=t.objectIDs;return"conversion"===e&&"purchase"===n&&(null==t?void 0:t.length)}
1).forEach(function(t){var e,n,i;return e=t.index,n=t.objectIDs,i=l(),void(n.forEach(function(t){delete i[e+"_"+t]}),d(i))}),t})):t}).bind(this),this.init=Q.bind(this),this.addAlgoliaAgent=b.bind(this),this.saveTokenAsCookie=C.bind(this),this.setUserToken=j.bind(this),this.setAnonymousUserToken=x.bind(this),this.getUserToken=w.bind(this),this.onUserTokenChange=A.bind(this),this.setAuthenticatedUserToken=I.bind(this),this.getAuthenticatedUserToken=P.bind(this),this.onAuthenticatedUserTokenChange=U.bind(this),this.clickedObjectIDsAfterSearch=S.bind(this),this.clickedObjectIDs=M.bind(this),this.clickedFilters=R.bind(this),this.convertedObjectIDsAfterSearch=K.bind(this),this.purchasedObjectIDsAfterSearch=H.bind(this),this.addedToCartObjectIDsAfterSearch=q.bind(this),this.convertedObjectIDs=N.bind(this),this.addedToCartObjectIDs=X.bind(this),this.purchasedObjectIDs=F.bind(this),this.convertedFilters=G.bind(this),this.viewedObjectIDs=J.bind(this),this.viewedFilters=B.bind(this),this.getVersion=g.bind(this)},V=function(t,e){return new Promise(function(n,i){var s=JSON.stringify(e),r=new XMLHttpRequest;r.addEventListener("readystatechange",function(){4===r.readyState&&200===r.status?n(!0):4===r.readyState&&n(!1)}),r.addEventListener("error",function(){return i()}),r.addEventListener("timeout",function(){return n(!1)}),r.open("POST",t),r.setRequestHeader("Content-Type","application/json"),r.send(s)})},W=function(t,e){var n=JSON.stringify(e),n=navigator.sendBeacon(t,n);return Promise.resolve(!!n||V(t,e))},z=function(t,e){return new Promise(function(n,i){fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(function(t){n(200===t.status)}).catch(function(t){i(t)})})};let Y=function(t){var e,n,t=(e=new $({requestFn:t}),function(t){for(var n=[],i=arguments.length-1;0<i--;)n[i]=arguments[i+1];if(t&&p(e[t]))return e[t].apply(e,n);console.warn("The method `"+t+"` doesn't exist.")});if("object"==typeof window&&!window.AlgoliaAnalyticsObject){for(;n=k(),void 0!==window[n];);window.AlgoliaAnalyticsObject=n,window[window.AlgoliaAnalyticsObject]=t}return t.version=i,t}(function(){if(o())return W;if(a())return V;if(u())return z;throw Error("Could not find a supported HTTP request client in this environment.")}())},81562:(t,e,n)=>{n.d(e,{useMutation:()=>c});var i=n(7620),s=n(40730),r=n(95635),o=n(22844),a=n(69950),u=class extends o.Q{#t;#r=void 0;#o;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#h(t)}getCurrentResult(){return this.#r}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#u(),this.#h()}mutate(t,e){return this.#a=e,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(t)}#u(){let t=this.#o?.state??(0,s.$)();this.#r={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#h(t){r.jG.batch(()=>{if(this.#a&&this.hasListeners()){let e=this.#r.variables,n=this.#r.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,n,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,n,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,n,i)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,n,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#r)})})}},h=n(4869);function c(t,e){let n=(0,h.useQueryClient)(e),[s]=i.useState(()=>new u(n,t));i.useEffect(()=>{s.setOptions(t)},[s,t]);let o=i.useSyncExternalStore(i.useCallback(t=>s.subscribe(r.jG.batchCalls(t)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=i.useCallback((t,e)=>{s.mutate(t,e).catch(a.lQ)},[s]);if(o.error&&(0,a.GU)(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.