// source --> https://homeofficecanella.com.gt/wp-content/plugins/fibofilters-pro/build/front-pro/front.js?ver=1.10.0 
var fiboFilters;!function(){var e={31:function(e,t,n){"use strict";n.d(t,{td:function(){return m},bF:function(){return O}});var r=n(847),o=n(619);function i(){throw new Error("Cycle detected")}function s(){if(u>1)u--;else{for(var e,t=!1;void 0!==c;){var n=c;for(c=void 0,d++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&_(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(d=0,u--,t)throw e}}var l,a=void 0,c=void 0,u=0,d=0,f=0;function p(e){if(void 0!==a){var t=e.n;if(void 0===t||t.t!==a)return t={i:0,S:e,p:a.s,n:void 0,t:a,e:void 0,x:void 0,r:t},void 0!==a.s&&(a.s.n=t),a.s=t,e.n=t,32&a.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=a.s,t.n=void 0,a.s.n=t,a.s=t),t}}function h(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function m(e){return new h(e)}function _(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function v(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function g(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function b(e){h.call(this,void 0),this.x=e,this.s=void 0,this.g=f-1,this.f=4}function y(e){var t=e.u;if(e.u=void 0,"function"==typeof t){u++;var n=a;a=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,w(e),t}finally{a=n,s()}}}function w(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,y(e)}function E(e){if(a!==this)throw new Error("Out-of-order effect");g(this),a=e,this.f&=-2,8&this.f&&w(this),s()}function x(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function S(e){var t=new x(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function k(e,t){r.YM[e]=t.bind(null,r.YM[e]||function(){})}function I(e){l&&l(),l=e&&e.S()}function P(e){var t=this,n=e.data,r=function(e){return(0,o.Ye)((function(){return m(e)}),[])}(n);r.value=n;var i=(0,o.Ye)((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){t.base.data=i.peek()},new b((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return i.value}function C(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=m(n);return{o:function(e,t){i.value=e,r=t},d:S((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function O(e){var t=(0,o.sO)(e);t.current=e,(0,o.d4)((function(){return S((function(){return t.current()}))}),[])}h.prototype.h=function(){return!0},h.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},h.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},h.prototype.subscribe=function(e){var t=this;return S((function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}}))},h.prototype.valueOf=function(){return this.value},h.prototype.toString=function(){return this.value+""},h.prototype.peek=function(){return this.v},Object.defineProperty(h.prototype,"value",{get:function(){var e=p(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){d>100&&i(),this.v=e,this.i++,f++,u++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{s()}}}}),(b.prototype=new h).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===f)return!0;if(this.g=f,this.f|=1,this.i>0&&!_(this))return this.f&=-2,!0;var e=a;try{v(this),a=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return a=e,g(this),this.f&=-2,!0},b.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}h.prototype.S.call(this,e)},b.prototype.U=function(e){if(void 0!==this.t&&(h.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},b.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},b.prototype.peek=function(){if(this.h()||i(),16&this.f)throw this.v;return this.v},Object.defineProperty(b.prototype,"value",{get:function(){1&this.f&&i();var e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),x.prototype.c=function(){var e=this.S();try{8&this.f||void 0===this.x||(this.u=this.x())}finally{e()}},x.prototype.S=function(){1&this.f&&i(),this.f|=1,this.f&=-9,y(this),v(this),u++;var e=a;return a=this,E.bind(this,e)},x.prototype.N=function(){2&this.f||(this.f|=2,this.o=c,c=this)},x.prototype.d=function(){this.f|=8,1&this.f||w(this)},P.displayName="_st",Object.defineProperties(h.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:P},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),k("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof h&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),k("__r",(function(e,t){I();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e){var t;return S((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),I(n),e(t)})),k("__e",(function(e,t,n,r){I(),e(t,n,r)})),k("diffed",(function(e,t){var n;if(I(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var l=i[s];void 0===l||s in r||(l.d(),i[s]=void 0)}else n.U=i={};for(var a in r){var c=i[a],u=r[a];void 0===c?(c=C(n,a,u,o),i[a]=c):c.o(u,o)}}}e(t)})),k("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var l=s.__$u;l&&(s.__$u=void 0,l.d())}}e(t)})),k("__h",(function(e,t,n,r){r<3&&(t.__$f|=2),e(t,n,r)})),r.wA.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if("__source"!==o&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1}},82:function(e,t,n){"use strict";n.d(t,{Hu:function(){return p},JQ:function(){return h}});var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},i=function(e,t){return function(n,i,s){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const a=e[t];if(!o(n))return;if(!r(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof l)return void console.error("If specified, the hook priority must be a number.");const c={callback:s,priority:l,namespace:i};if(a[n]){const e=a[n].handlers;let t;for(t=e.length;t>0&&!(l>=e[t-1].priority);t--);t===e.length?e[t]=c:e.splice(t,0,c),a.__current.forEach((e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++}))}else a[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,s,l)}},s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){const l=e[t];if(!o(i))return;if(!n&&!r(s))return;if(!l[i])return 0;let a=0;if(n)a=l[i].handlers.length,l[i]={runs:l[i].runs,handlers:[]};else{const e=l[i].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===s&&(e.splice(t,1),a++,l.__current.forEach((e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--})))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),a}},l=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some((e=>e.namespace===r)):n in o}},a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){const o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;const i=o[r].handlers;for(var s=arguments.length,l=new Array(s>1?s-1:0),a=1;a<s;a++)l[a-1]=arguments[a];if(!i||!i.length)return n?l[0]:void 0;const c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){const e=i[c.currentIndex].callback.apply(null,l);n&&(l[0]=e),c.currentIndex++}return o.__current.pop(),n?l[0]:void 0}},c=function(e,t){return function(){var n,r;const o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}},u=function(e,t){return function(n){const r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}},d=function(e,t){return function(n){const r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}};class f{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=s(this,"actions"),this.removeFilter=s(this,"filters"),this.hasAction=l(this,"actions"),this.hasFilter=l(this,"filters"),this.removeAllActions=s(this,"actions",!0),this.removeAllFilters=s(this,"filters",!0),this.doAction=a(this,"actions"),this.applyFilters=a(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")}}var p=function(){return new f};const h=p(),{addAction:m,addFilter:_,removeAction:v,removeFilter:g,hasAction:b,hasFilter:y,removeAllActions:w,removeAllFilters:E,doAction:x,applyFilters:S,currentAction:k,currentFilter:I,doingAction:P,doingFilter:C,didAction:O,didFilter:A,actions:F,filters:$}=h},68:function(e,t,n){"use strict";n.d(t,{Z:function(){return cd}});var r=n(741),o=n(31),i=n(619),s=function(e){let{icon:t,size:n=24,...o}=e;return(0,r.cloneElement)(t,{width:n,height:n,...o})},l=n(779),a=n.n(l);const c=e=>(0,r.createElement)("circle",e),u=e=>(0,r.createElement)("path",e),d=e=>{let{className:t,isPressed:n,...o}=e;const i={...o,className:a()(t,{"is-pressed":n})||void 0,"aria-hidden":!0,focusable:!1};return(0,r.createElement)("svg",i)};var f=(0,r.createElement)(d,{fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u,{d:"M11 1 1 11M1 1l10 10",stroke:"#767676",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),p=n(522),h=n(797);const{appState:m}=(0,h.W5)(),_=e=>{m.value=e},v=()=>{_({...m.value,offcanvasIsVisible:!0})},g=({peek:e=!1})=>{e?m.value={...m.peek(),offcanvasIsVisible:!1}:_({...m.value,offcanvasIsVisible:!1})},b=e=>{_({...m.value,appliedFiltersCount:e})},y=e=>{_({...m.value,appliedFiltersValues:e})},w=e=>{window.document.body.style.overflowY=e?"":"hidden"},E=(e,{peek:t=!1})=>{_(t?{...m.peek(),currentMobileFilter:e}:{...m.value,currentMobileFilter:e}),w(!e)},x=(e,{peek:t=!1})=>{_(t?{...m.peek(),mobileOverlayAllIsVisible:e}:{...m.value,mobileOverlayAllIsVisible:e}),w(!e)},S=e=>{_({...m.peek(),showMoreButtonIsVisible:e})},k=e=>{_({...m.peek(),showPreviousButtonIsVisible:e})},I=e=>{_({...m.peek(),currentPage:e})},P=e=>{_({...m.peek(),firstVisiblePage:e})},C=e=>{_({...m.peek(),orderby:e})};let O;function A(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===O&&(O=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),O.innerHTML=e;const t=O.textContent;return O.innerHTML="",t}var F,$,N,j,R=n(770),D=n.n(R),L=n(131),T=n.n(L),M=D()(console.error);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===V(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}F={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},$=["(","?"],N={")":["("],":":["?","?:"]},j=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Z={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var B={contextDelimiter:"",onMissingKey:null};function H(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},B)this.options[n]=void 0!==t&&n in t?t[n]:B[n]}function z(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 q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}H.prototype.getPluralForm=function(e,t){var n,r,o,i,s=this.pluralForms[e];return s||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=function(e){for(var t,n,r,o,i=[],s=[];t=e.match(j);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=s.pop();){if(N[n]){if(N[n][0]===o){n=N[n][1]||n;break}}else if($.indexOf(o)>=0||F[o]<F[n]){s.push(o);break}i.push(o)}N[n]||s.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(s.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,s,l,a=[];for(n=0;n<e.length;n++){if(s=e[n],i=Z[s]){for(r=i.length,o=Array(r);r--;)o[r]=a.pop();try{l=i.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(s)?t[s]:+s;a.push(l)}return a[0]}(t,e)}}(r),o=function(e){return+i({n:e})}),s=this.pluralForms[e]=o),s(t)},H.prototype.dcnpgettext=function(e,t,n,r,o){var i,s,l;return i=void 0===o?0:this.getPluralForm(e,o),s=n,t&&(s=t+this.options.contextDelimiter+n),(l=this.data[e][s])&&l[i]?l[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var W={"":{plural_forms:function(e){return 1===e?0:1}}},Y=/^i18n\.(n?gettext|has_translation)(_|$)/,J=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},K=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},Q=function(e,t){return function(n,r,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,s=e[t];if(K(n)&&J(r))if("function"==typeof o)if("number"==typeof i){var l={callback:o,priority:i,namespace:r};if(s[n]){var a,c=s[n].handlers;for(a=c.length;a>0&&!(i>=c[a-1].priority);a--);a===c.length?c[a]=l:c.splice(a,0,l),s.__current.forEach((function(e){e.name===n&&e.currentIndex>=a&&e.currentIndex++}))}else s[n]={handlers:[l],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}},X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r,o){var i=e[t];if(K(r)&&(n||J(o))){if(!i[r])return 0;var s=0;if(n)s=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else for(var l=i[r].handlers,a=function(e){l[e].namespace===o&&(l.splice(e,1),s++,i.__current.forEach((function(t){t.name===r&&t.currentIndex>=e&&t.currentIndex--})))},c=l.length-1;c>=0;c--)a(c);return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),s}}},G=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}},ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;for(var i=o[r].handlers,s=arguments.length,l=new Array(s>1?s-1:0),a=1;a<s;a++)l[a-1]=arguments[a];if(!i||!i.length)return n?l[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex].callback.apply(null,l);n&&(l[0]=u),c.currentIndex++}return o.__current.pop(),n?l[0]:void 0}},te=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}},ne=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}},re=function(e,t){return function(n){var r=e[t];if(K(n))return r[n]&&r[n].runs?r[n].runs:0}},oe=new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Q(this,"actions"),this.addFilter=Q(this,"filters"),this.removeAction=X(this,"actions"),this.removeFilter=X(this,"filters"),this.hasAction=G(this,"actions"),this.hasFilter=G(this,"filters"),this.removeAllActions=X(this,"actions",!0),this.removeAllFilters=X(this,"filters",!0),this.doAction=ee(this,"actions"),this.applyFilters=ee(this,"filters",!0),this.currentAction=te(this,"actions"),this.currentFilter=te(this,"filters"),this.doingAction=ne(this,"actions"),this.doingFilter=ne(this,"filters"),this.didAction=re(this,"actions"),this.didFilter=re(this,"filters")},ie=(oe.addAction,oe.addFilter,oe.removeAction,oe.removeFilter,oe.hasAction,oe.hasFilter,oe.removeAllActions,oe.removeAllFilters,oe.doAction),se=(oe.applyFilters,oe.currentAction,oe.currentFilter,oe.doingAction,oe.doingFilter,oe.didAction,oe.didFilter,oe.actions,oe.filters,function(e,t,n){var r=new H({}),o=new Set,i=function(){o.forEach((function(e){return e()}))},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[t]=q(q(q({},W),r.data[t]),e),r.data[t][""]=q(q({},W[""]),r.data[t][""])},l=function(e,t){s(e,t),i()},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||s(void 0,e),r.dcnpgettext(e,t,n,o,i)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},_x=function(e,t,r){var o=a(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),o,e,t,r)):o};if(n){var u=function(e){Y.test(e)&&i()};n.addAction("hookAdded","core/i18n",u),n.addAction("hookRemoved","core/i18n",u)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:l,resetLocaleData:function(e,t){r.data={},r.pluralForms={},l(e,t)},subscribe:function(e){return o.add(e),function(){return o.delete(e)}},__:function(e,t){var r=a(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:_x,_n:function(e,t,r,o){var i=a(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+c(o),i,e,t,r,o)):i},_nx:function(e,t,r,o,i){var s=a(i,o,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+c(i),s,e,t,r,o,i)):s},isRTL:function(){return"rtl"===_x("ltr","text direction")},hasTranslation:function(e,t,o){var i,s,l=t?t+""+e:e,a=!(null===(i=r.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[l]);return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+c(o),a,e,t,o)),a}}}(0,0,oe)),le=(se.getLocaleData.bind(se),se.setLocaleData.bind(se),se.resetLocaleData.bind(se),se.subscribe.bind(se),se.__.bind(se),se._x.bind(se),se._n.bind(se),se._nx.bind(se),se.isRTL.bind(se),se.hasTranslation.bind(se),n(69)),ae=n.n(le);var ce=Object.create(null),ue=function(e){let t;function n(e){if(e.priceFormat)return function(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}(e.priceFormat.toString());switch(e.symbolPosition){case"left":return"%1$s%2$s";case"right":return"%2$s%1$s";case"left_space":return"%1$s %2$s";case"right_space":return"%2$s %1$s"}return"%1$s%2$s"}function o(e){const r={code:"USD",symbol:"$",symbolPosition:"left",thousandSeparator:",",decimalSeparator:".",precision:2,...e};let o=r.precision;null===o?(console.warn("Currency precision is null"),o=NaN):"string"==typeof o&&(o=parseInt(o,10)),t={code:r.code.toString(),symbol:r.symbol.toString(),symbolPosition:r.symbolPosition.toString(),decimalSeparator:r.decimalSeparator.toString(),priceFormat:n(r),thousandSeparator:r.thousandSeparator.toString(),precision:o}}function i(e,n=!1){const r=function({precision:e=null,decimalSeparator:t=".",thousandSeparator:n=","},r){if(void 0===r)return"";if("number"!=typeof r&&(r=parseFloat(r)),isNaN(r))return"";let o=null===e?NaN:Number(e);if(isNaN(o)){const[,e]=r.toString().split(".");o=e?e.length:0}return ae()(r,o,t,n)}(t,e);if(""===r)return r;const{priceFormat:o,symbol:i,code:s}=t;return function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T().sprintf.apply(T(),[e].concat(n))}catch(t){return M("sprintf error: \n\n"+t.toString()),e}}(o,n?s:i,r)}return o(e),{getCurrencyConfig:()=>({...t}),getDataForCountry:function(e,t={},n={}){const r=t[e];if(!r)return{};const o=n[r.currency_code];return o?{code:r.currency_code,symbol:A(o),symbolPosition:r.currency_pos,thousandSeparator:r.thousand_sep,decimalSeparator:r.decimal_sep,precision:r.num_decimals}:{}},setCurrency:o,formatAmount:i,formatCurrency:function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.since,r=t.version,o=t.alternative,i=t.plugin,s=t.link,l=t.hint,a=i?" from ".concat(i):"",c=n?" since version ".concat(n):"",u=r?" and will be removed".concat(a," in version ").concat(r):"",d=o?" Please use ".concat(o," instead."):"",f=s?" See: ".concat(s):"",p=l?" Note: ".concat(l):"",h="".concat(e," is deprecated").concat(c).concat(u,".").concat(d).concat(f).concat(p);h in ce||(ie("deprecated",e,t,h),console.warn(h),ce[h]=!0)}("Currency().formatCurrency",{version:"5.0.0",alternative:"Currency().formatAmount",plugin:"WooCommerce",hint:"`formatAmount` accepts the same arguments as formatCurrency"}),i(e)},getPriceFormat:n,formatDecimal(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return 0;const{precision:n}=t;return Math.round(e*Math.pow(10,n))/Math.pow(10,n)},formatDecimalString(e){if("number"!=typeof e&&(e=parseFloat(e)),Number.isNaN(e))return"";const{precision:n}=t;return e.toFixed(n)},render(e){return"number"!=typeof e&&(e=parseFloat(e)),e<0?(0,r.createElement)("span",{className:"is-negative"},i(e)):i(e)}}},de=n(400),fe=/iPhone/i,pe=/iPod/i,he=/iPad/i,me=/\biOS-universal(?:.+)Mac\b/i,_e=/\bAndroid(?:.+)Mobile\b/i,ve=/Android/i,ge=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,be=/Silk/i,ye=/Windows Phone/i,we=/\bWindows(?:.+)ARM\b/i,Ee=/BlackBerry/i,xe=/BB10/i,Se=/Opera Mini/i,ke=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ie=/Mobile(?:.+)Firefox\b/i,Pe=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};var Ce,Oe=Array.isArray,Ae="object"==typeof global&&global&&global.Object===Object&&global,Fe="object"==typeof self&&self&&self.Object===Object&&self,$e=Ae||Fe||Function("return this")(),Ne=$e.Symbol,je=Object.prototype,Re=je.hasOwnProperty,De=je.toString,Le=Ne?Ne.toStringTag:void 0,Te=Object.prototype.toString,Me=Ne?Ne.toStringTag:void 0,Ve=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Me&&Me in Object(e)?function(e){var t=Re.call(e,Le),n=e[Le];try{e[Le]=void 0;var r=!0}catch(e){}var o=De.call(e);return r&&(t?e[Le]=n:delete e[Le]),o}(e):function(e){return Te.call(e)}(e)},Ue=function(e){return null!=e&&"object"==typeof e},Ze=function(e){return"symbol"==typeof e||Ue(e)&&"[object Symbol]"==Ve(e)},Be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,He=/^\w*$/,ze=function(e,t){if(Oe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ze(e))||He.test(e)||!Be.test(e)||null!=t&&e in Object(t)},qe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},We=function(e){if(!qe(e))return!1;var t=Ve(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ye=$e["__core-js_shared__"],Je=(Ce=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||""))?"Symbol(src)_1."+Ce:"",Ke=Function.prototype.toString,Qe=function(e){if(null!=e){try{return Ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Xe=/^\[object .+?Constructor\]$/,Ge=Function.prototype,et=Object.prototype,tt=Ge.toString,nt=et.hasOwnProperty,rt=RegExp("^"+tt.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=function(e){return!(!qe(e)||(t=e,Je&&Je in t))&&(We(e)?rt:Xe).test(Qe(e));var t},it=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ot(n)?n:void 0},st=it(Object,"create"),lt=Object.prototype.hasOwnProperty,at=Object.prototype.hasOwnProperty;function ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ct.prototype.clear=function(){this.__data__=st?st(null):{},this.size=0},ct.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ct.prototype.get=function(e){var t=this.__data__;if(st){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return lt.call(t,e)?t[e]:void 0},ct.prototype.has=function(e){var t=this.__data__;return st?void 0!==t[e]:at.call(t,e)},ct.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=st&&void 0===t?"__lodash_hash_undefined__":t,this};var ut=ct,dt=function(e,t){return e===t||e!=e&&t!=t},ft=function(e,t){for(var n=e.length;n--;)if(dt(e[n][0],t))return n;return-1},pt=Array.prototype.splice;function ht(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=function(){this.__data__=[],this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=ft(t,e);return!(n<0||(n==t.length-1?t.pop():pt.call(t,n,1),--this.size,0))},ht.prototype.get=function(e){var t=this.__data__,n=ft(t,e);return n<0?void 0:t[n][1]},ht.prototype.has=function(e){return ft(this.__data__,e)>-1},ht.prototype.set=function(e,t){var n=this.__data__,r=ft(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var mt=ht,_t=it($e,"Map"),vt=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function gt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=function(){this.size=0,this.__data__={hash:new ut,map:new(_t||mt),string:new ut}},gt.prototype.delete=function(e){var t=vt(this,e).delete(e);return this.size-=t?1:0,t},gt.prototype.get=function(e){return vt(this,e).get(e)},gt.prototype.has=function(e){return vt(this,e).has(e)},gt.prototype.set=function(e,t){var n=vt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var bt=gt;function yt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(yt.Cache||bt),n}yt.Cache=bt;var wt,Et,xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/\\(\\)?/g,kt=(wt=yt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xt,(function(e,n,r,o){t.push(r?o.replace(St,"$1"):n||e)})),t}),(function(e){return 500===Et.size&&Et.clear(),e})),Et=wt.cache,wt),It=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Pt=Ne?Ne.prototype:void 0,Ct=Pt?Pt.toString:void 0,Ot=function e(t){if("string"==typeof t)return t;if(Oe(t))return It(t,e)+"";if(Ze(t))return Ct?Ct.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},At=function(e){return null==e?"":Ot(e)},Ft=function(e,t){return Oe(e)?e:ze(e,t)?[e]:kt(At(e))},$t=function(e){if("string"==typeof e||Ze(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Nt=function(e,t){for(var n=0,r=(t=Ft(t,e)).length;null!=e&&n<r;)e=e[$t(t[n++])];return n&&n==r?e:void 0},jt=function(e,t,n){var r=null==e?void 0:Nt(e,t);return void 0===r?n:r};function Rt(e){var t=this.__data__=new mt(e);this.size=t.size}Rt.prototype.clear=function(){this.__data__=new mt,this.size=0},Rt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Rt.prototype.get=function(e){return this.__data__.get(e)},Rt.prototype.has=function(e){return this.__data__.has(e)},Rt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof mt){var r=n.__data__;if(!_t||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bt(r)}return n.set(e,t),this.size=n.size,this};var Dt=Rt,Lt=function(){try{var e=it(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Tt=function(e,t,n){"__proto__"==t&&Lt?Lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Mt=Object.prototype.hasOwnProperty,Vt=function(e,t,n){var r=e[t];Mt.call(e,t)&&dt(r,n)&&(void 0!==n||t in e)||Tt(e,t,n)},Ut=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],a=r?r(n[l],e[l],l,n,e):void 0;void 0===a&&(a=e[l]),o?Tt(n,l,a):Vt(n,l,a)}return n},Zt=function(e){return Ue(e)&&"[object Arguments]"==Ve(e)},Bt=Object.prototype,Ht=Bt.hasOwnProperty,zt=Bt.propertyIsEnumerable,qt=Zt(function(){return arguments}())?Zt:function(e){return Ue(e)&&Ht.call(e,"callee")&&!zt.call(e,"callee")},Wt=qt,Yt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Jt=Yt&&"object"==typeof module&&module&&!module.nodeType&&module,Kt=Jt&&Jt.exports===Yt?$e.Buffer:void 0,Qt=(Kt?Kt.isBuffer:void 0)||function(){return!1},Xt=/^(?:0|[1-9]\d*)$/,Gt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Xt.test(e))&&e>-1&&e%1==0&&e<t},en=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},tn={};tn["[object Float32Array]"]=tn["[object Float64Array]"]=tn["[object Int8Array]"]=tn["[object Int16Array]"]=tn["[object Int32Array]"]=tn["[object Uint8Array]"]=tn["[object Uint8ClampedArray]"]=tn["[object Uint16Array]"]=tn["[object Uint32Array]"]=!0,tn["[object Arguments]"]=tn["[object Array]"]=tn["[object ArrayBuffer]"]=tn["[object Boolean]"]=tn["[object DataView]"]=tn["[object Date]"]=tn["[object Error]"]=tn["[object Function]"]=tn["[object Map]"]=tn["[object Number]"]=tn["[object Object]"]=tn["[object RegExp]"]=tn["[object Set]"]=tn["[object String]"]=tn["[object WeakMap]"]=!1;var nn=function(e){return function(t){return e(t)}},rn="object"==typeof exports&&exports&&!exports.nodeType&&exports,on=rn&&"object"==typeof module&&module&&!module.nodeType&&module,sn=on&&on.exports===rn&&Ae.process,ln=function(){try{return on&&on.require&&on.require("util").types||sn&&sn.binding&&sn.binding("util")}catch(e){}}(),an=ln&&ln.isTypedArray,cn=an?nn(an):function(e){return Ue(e)&&en(e.length)&&!!tn[Ve(e)]},un=Object.prototype.hasOwnProperty,dn=function(e,t){var n=Oe(e),r=!n&&Wt(e),o=!n&&!r&&Qt(e),i=!n&&!r&&!o&&cn(e),s=n||r||o||i,l=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=l.length;for(var c in e)!t&&!un.call(e,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Gt(c,a))||l.push(c);return l},fn=Object.prototype,pn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fn)},hn=function(e,t){return function(n){return e(t(n))}},mn=hn(Object.keys,Object),vn=Object.prototype.hasOwnProperty,gn=function(e){return null!=e&&en(e.length)&&!We(e)},bn=function(e){return gn(e)?dn(e):function(e){if(!pn(e))return mn(e);var t=[];for(var n in Object(e))vn.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},yn=Object.prototype.hasOwnProperty,wn=function(e){if(!qe(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=pn(e),n=[];for(var r in e)("constructor"!=r||!t&&yn.call(e,r))&&n.push(r);return n},En=function(e){return gn(e)?dn(e,!0):wn(e)},xn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Sn=xn&&"object"==typeof module&&module&&!module.nodeType&&module,kn=Sn&&Sn.exports===xn?$e.Buffer:void 0,In=kn?kn.allocUnsafe:void 0,Pn=function(){return[]},Cn=Object.prototype.propertyIsEnumerable,On=Object.getOwnPropertySymbols,An=On?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(On(e),(function(t){return Cn.call(e,t)})))}:Pn,Fn=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},$n=hn(Object.getPrototypeOf,Object),Nn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fn(t,An(e)),e=$n(e);return t}:Pn,jn=function(e,t,n){var r=t(e);return Oe(e)?r:Fn(r,n(e))},Rn=function(e){return jn(e,bn,An)},Dn=function(e){return jn(e,En,Nn)},Ln=it($e,"DataView"),Tn=it($e,"Promise"),Mn=it($e,"Set"),Vn=it($e,"WeakMap"),Un="[object Map]",Zn="[object Promise]",Bn="[object Set]",Hn="[object WeakMap]",zn="[object DataView]",qn=Qe(Ln),Wn=Qe(_t),Yn=Qe(Tn),Jn=Qe(Mn),Kn=Qe(Vn),Qn=Ve;(Ln&&Qn(new Ln(new ArrayBuffer(1)))!=zn||_t&&Qn(new _t)!=Un||Tn&&Qn(Tn.resolve())!=Zn||Mn&&Qn(new Mn)!=Bn||Vn&&Qn(new Vn)!=Hn)&&(Qn=function(e){var t=Ve(e),n="[object Object]"==t?e.constructor:void 0,r=n?Qe(n):"";if(r)switch(r){case qn:return zn;case Wn:return Un;case Yn:return Zn;case Jn:return Bn;case Kn:return Hn}return t});var Xn=Qn,Gn=Object.prototype.hasOwnProperty,er=$e.Uint8Array,tr=function(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t},nr=/\w*$/,rr=Ne?Ne.prototype:void 0,or=rr?rr.valueOf:void 0,ir=function(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return tr(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,nr.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,or?Object(or.call(r)):{}}},sr=Object.create,lr=function(){function e(){}return function(t){if(!qe(t))return{};if(sr)return sr(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ar=ln&&ln.isMap,cr=ar?nn(ar):function(e){return Ue(e)&&"[object Map]"==Xn(e)},ur=ln&&ln.isSet,dr=ur?nn(ur):function(e){return Ue(e)&&"[object Set]"==Xn(e)},fr="[object Arguments]",pr="[object Function]",hr="[object Object]",mr={};mr[fr]=mr["[object Array]"]=mr["[object ArrayBuffer]"]=mr["[object DataView]"]=mr["[object Boolean]"]=mr["[object Date]"]=mr["[object Float32Array]"]=mr["[object Float64Array]"]=mr["[object Int8Array]"]=mr["[object Int16Array]"]=mr["[object Int32Array]"]=mr["[object Map]"]=mr["[object Number]"]=mr[hr]=mr["[object RegExp]"]=mr["[object Set]"]=mr["[object String]"]=mr["[object Symbol]"]=mr["[object Uint8Array]"]=mr["[object Uint8ClampedArray]"]=mr["[object Uint16Array]"]=mr["[object Uint32Array]"]=!0,mr["[object Error]"]=mr[pr]=mr["[object WeakMap]"]=!1;var _r=function e(t,n,r,o,i,s){var l,a=1&n,c=2&n,u=4&n;if(r&&(l=i?r(t,o,i,s):r(t)),void 0!==l)return l;if(!qe(t))return t;var d=Oe(t);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Gn.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!a)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,l)}else{var f=Xn(t),p=f==pr||"[object GeneratorFunction]"==f;if(Qt(t))return function(e,t){if(t)return e.slice();var n=e.length,r=In?In(n):new e.constructor(n);return e.copy(r),r}(t,a);if(f==hr||f==fr||p&&!i){if(l=c||p?{}:function(e){return"function"!=typeof e.constructor||pn(e)?{}:lr($n(e))}(t),!a)return c?function(e,t){return Ut(e,Nn(e),t)}(t,function(e,t){return e&&Ut(t,En(t),e)}(l,t)):function(e,t){return Ut(e,An(e),t)}(t,function(e,t){return e&&Ut(t,bn(t),e)}(l,t))}else{if(!mr[f])return i?t:{};l=ir(t,f,a)}}s||(s=new Dt);var h=s.get(t);if(h)return h;s.set(t,l),dr(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,s))})):cr(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,s))}));var m=d?void 0:(u?c?Dn:Rn:c?En:bn)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(m||t,(function(o,i){m&&(o=t[i=o]),Vt(l,i,e(o,n,r,i,t,s))})),l},vr=function(e){return _r(e,4)};const gr="fibofilters",br={item:`${gr}-item`,headline:`${gr}-block__headline`,content:`${gr}-block__content`,counter:`${gr}-block__counter`,filterCollapsible:`${gr}-block--collapsible`,filterCollapsed:`${gr}-block--collapsed`,selected:`${gr}-selected`,disabled:`${gr}-disabled`,alwaysSelected:`${gr}-always-selected`},yr=(e,t="",n=!1)=>0===t.length&&void 0!==window.fiboFiltersData&&void 0!==window.fiboFiltersData[e]?window.fiboFiltersData[e]:t.length>0&&void 0!==window.fiboFiltersData&&void 0!==window.fiboFiltersData[e]&&void 0!==window.fiboFiltersData[e][t]?window.fiboFiltersData[e][t]:n,wr=(e,t=!1,n="")=>{const r=yr("config","overrides");return!1!==r&&void 0!==r[n]&&void 0!==r[n][e]?"number_format"===e?{...yr("config",e,{}),...t,...r[n][e]}:r[n][e]:"number_format"===e?{...yr("config",e,{}),...t}:yr("config",e,t)},Er=(e,t=!1)=>yr("html",e,t),xr=(e,t)=>{const n=wr("override_ordering_enabled",!1),r=wr("always_selected_values",{}),o=new URL(document.location).searchParams,i=[];n&&""!==t&&i.push({key:"orderby",valueEncoded:encodeURIComponent(t),valueRaw:t});const s=[];Object.values(e.filters).forEach((e=>{switch(s.push(e.url_slug),e.type){case"color":case"checkboxes":case"buttons":case"radio":case"select":case"toggle":let t=e.values.filter((e=>e.selected&&e.label_url.length>0)).map((e=>e.label_url));const n=jt(r,e.url_slug,[]);n.length>0&&(t=t.filter((e=>!n.map((e=>e.label_url)).includes(e)))),t.length>0&&i.push({key:e.url_slug,valueEncoded:encodeURIComponent(t.join(",")),valueRaw:t.join(",")});break;case"range":let o=parseFloat(e.range.min),s=parseFloat(e.range.max);if((isNaN(o)||!isNaN(o)&&o<0)&&(o=""),(isNaN(s)||!isNaN(s)&&s<0)&&(s=""),""===o&&""===s)break;i.push({key:e.url_slug,valueEncoded:encodeURIComponent(`${o}-${s}`),valueRaw:`${o}-${s}`});break;case"search":const l=jt(e,"phrase","");l.length>0&&i.push({key:e.url_slug,valueEncoded:encodeURIComponent(l),valueRaw:l})}}));const l=vr(wr("removable_url_params",[]));return o.forEach(((e,t)=>{i.map((e=>e.key)).includes(t)||s.includes(t)||l.includes(t)||null!==e&&i.push({key:t,valueEncoded:encodeURIComponent(e),valueRaw:e})})),i},Sr=e=>{try{sessionStorage.setItem("fibofilters-pr",e)}catch(e){}},kr=(e,t,n=!1)=>{if(history.pushState){const r=""===e?t:`${t}?${e}`;n?history.replaceState(null,null,r):history.pushState(null,null,r)}},Ir=e=>{let{html:t="",defaultSelector:n="",nestedLevels:r=1}=e||{},o="",i=0,s=0;if(0===t.length)return{selector:n,levelsToSkip:i};let l=(0,de.Z)(t);for(;s<r&&l&&l.length;){s>0&&(o+=" "),s++,l=l.last();const{tagName:e,id:t,className:n}=l;let a=n?n.replace(/(^\s)/gm,"").replace(/(\s{2,})/gm," ").split(/\s/):[];const c=wr("ignored_classes_in_css_selectors");c.length>0&&(a=a.filter((e=>{let t=!0;return c.forEach((n=>{e.indexOf(n)>=0&&(t=!1)})),t}))),a=a.filter((e=>{try{return document.createDocumentFragment().querySelector(`.${e}`),!0}catch(e){return!1}})),o+=e.toLowerCase(),""!==t&&t.match(/^[A-Za-z]+[\w\-:.]*$/)?o+=`#${t}`:n&&(o+="."+a.join(".")),a.includes("container")&&(r++,i++,l=(0,de.Z)(l).children())}return{selector:o,levelsToSkip:i}},Pr=e=>{let{html:t="",selector:n="",levelsToSkip:r=0,replace:o=!1,append:i=!1,prepend:s=!1,firstMatchedElement:l=!0,errorType:a="warning"}=e||{},c=(0,de.Z)(t);if(!i&&!s){const e=0;for(;e<r&&c&&c.length;)c=(0,de.Z)(c.last()),c=c.children(),r--}const u=c.nodes.map((e=>e.outerHTML)).join("");return(0,de.Z)(n).length>0&&(i?l?(0,de.Z)((0,de.Z)(n).first()).append(u):(0,de.Z)(n).append(u):s?l?(0,de.Z)((0,de.Z)(n).first()).prepend(u):(0,de.Z)(n).prepend(u):o?l?(0,de.Z)((0,de.Z)(n).first()).replace(u):(0,de.Z)(n).replace(u):l?(0,de.Z)((0,de.Z)(n).first()).html(u):(0,de.Z)(n).html(u),!0)},Cr=e=>{let{html:t="",selector:n="",levelsToSkip:r=0,show:o=!1,hide:i=!1}=e;if(0===t.length)return;let s=(0,de.Z)(t);for(;0<r&&s&&s.length;)s=(0,de.Z)(s.last()),s=s.children(),r--;return(0,de.Z)(n).length>0&&(i&&(0,de.Z)(n).hide(),o&&(0,de.Z)(n).show(),!0)},Or=(e,t)=>{const n=(0,de.Z)(e);n.length>0&&(n.nodes[0].style.scrollMarginTop=t+"px",n.nodes[0].scrollIntoView({behavior:"smooth",block:"start"}))},Ar=()=>function(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,r=n.split("[FBAN");void 0!==r[1]&&(n=r[0]),void 0!==(r=n.split("Twitter"))[1]&&(n=r[0]);var o=function(e){return function(t){return t.test(e)}}(n),i={apple:{phone:o(fe)&&!o(ye),ipod:o(pe),tablet:!o(fe)&&(o(he)||Pe(t))&&!o(ye),universal:o(me),device:(o(fe)||o(pe)||o(he)||o(me)||Pe(t))&&!o(ye)},amazon:{phone:o(ge),tablet:!o(ge)&&o(be),device:o(ge)||o(be)},android:{phone:!o(ye)&&o(ge)||!o(ye)&&o(_e),tablet:!o(ye)&&!o(ge)&&!o(_e)&&(o(be)||o(ve)),device:!o(ye)&&(o(ge)||o(be)||o(_e)||o(ve))||o(/\bokhttp\b/i)},windows:{phone:o(ye),tablet:o(we),device:o(ye)||o(we)},other:{blackberry:o(Ee),blackberry10:o(xe),opera:o(Se),firefox:o(Ie),chrome:o(ke),device:o(Ee)||o(xe)||o(Se)||o(Ie)||o(ke)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}(window.navigator),Fr=e=>{const t=document.querySelectorAll(e),n=[];if(t.length>0)for(let e=0;e<t.length;e++)n.push(t[e]);return n},$r=ue(wr("currency")),Nr=e=>$r.formatAmount(e),jr=e=>{if(Object.keys(wr("multicurrency",[])).length>0&&/^[A-Z]{3}$/.test(wr("multicurrency",[])?.baseCurrency)&&$r.getCurrencyConfig().code!==wr("multicurrency",[])?.baseCurrency){const t=Object.keys(wr("multicurrency",[])?.priceSources).length>0?wr("multicurrency",[])?.priceSources:{};t.hasOwnProperty(`price_${$r.getCurrencyConfig().code}`)&&(e=t[`price_${$r.getCurrencyConfig().code}`])}return e},Rr=(e,t,n=0,r="",o="")=>{const i={};null!==n&&(i.precision=n),null!==r&&(i.prefix=r),null!==o&&(i.suffix=o);const s=vr(wr("number_format",i,t));return jt(s,"prefix","")+function({precision:e=null,decimalSeparator:t=".",thousandSeparator:n=","},r){if(void 0===r)return"";if("number"!=typeof r&&(r=parseFloat(r)),isNaN(r))return"";let o=null===e?NaN:Number(e);if(isNaN(o)){const[,e]=r.toString().split(".");o=e?e.length:0}return ae()(r,o,t,n)}({precision:-1===jt(s,"precision",0)?null:jt(s,"precision",0),decimalSeparator:jt(s,"decimal_point","."),thousandSeparator:jt(s,"thousands_sep",",")},e)+jt(s,"suffix","")},Dr=e=>{const t={},n=[];return e.forEach(((n,r)=>{t[n.value]=r,e[r].children=[]})),e.forEach((r=>"0"!==r.parent_value?e[t[r.parent_value]].children.push(r):n.push(r))),n},Lr=e=>{let t=[];return e.forEach((e=>{t.push(e),e.children.length>0&&(t=[...t,...Lr(e.children)])})),t},Tr=(e,t)=>void 0===e[t]||"0"===e[t]?0:1+Tr(e,e[t]),Mr=(e,t)=>{let n=[];return e.forEach((r=>{t.includes(r.value)&&"0"!==r.parent_value&&!n.includes(r.parent_value)&&(n.push(r.parent_value),n=[...n,...Mr(e,[r.parent_value])])})),n},Vr=e=>{const t=[];return e.forEach((e=>{t.push(e.index),e.children.length>0&&t.push(...Vr(e.children))})),t};function Ur(e,t,n,r){!e||t>n||(e.classList.forEach((e=>{const t=e.match(/^post-([0-9]+)$/);t&&r.push(parseInt(t[1]))})),t<n&&Array.from(e.children).forEach((e=>{Ur(e,t+1,n,r)})))}const Zr="undefined"!=typeof navigator&&/iP(hone|ad|od)/.test(navigator.userAgent),Br=D()(console.error),Hr={plural_forms(e){return 1===e?0:1}},zr=/^i18n\.(n?gettext|has_translation)(_|$)/,qr=(e,t,n)=>{const r=new H({}),o=new Set,i=()=>{o.forEach((e=>e()))},s=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[n]={...r.data[n],...e},r.data[n][""]={...Hr,...null===(t=r.data[n])||void 0===t?void 0:t[""]},delete r.pluralForms[n]},l=(e,t)=>{s(e,t),i()},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return r.data[e]||s(void 0,e),r.dcnpgettext(e,t,n,o,i)},c=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},_x=(e,t,r)=>{let o=a(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+c(r),o,e,t,r)):o};if(e&&l(e,t),n){const e=e=>{zr.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return r.data[e]},setLocaleData:l,addLocaleData:function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";r.data[n]={...r.data[n],...e,"":{...Hr,...null===(t=r.data[n])||void 0===t?void 0:t[""],...null==e?void 0:e[""]}},delete r.pluralForms[n],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},l(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=a(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+c(t),r,e,t)):r},_x:_x,_n:(e,t,r,o)=>{let i=a(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+c(o),i,e,t,r,o)):i},_nx:(e,t,r,o,i)=>{let s=a(i,o,e,t,r);return n?(s=n.applyFilters("i18n.ngettext_with_context",s,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+c(i),s,e,t,r,o,i)):s},isRTL:()=>"rtl"===_x("ltr","text direction"),hasTranslation:(e,t,o)=>{var i,s;const l=t?t+""+e:e;let a=!(null===(i=r.data)||void 0===i||null===(s=i[null!=o?o:"default"])||void 0===s||!s[l]);return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+c(o),a,e,t,o)),a}}},Wr=qr(void 0,void 0,n(82).JQ);Wr.getLocaleData.bind(Wr),Wr.setLocaleData.bind(Wr),Wr.resetLocaleData.bind(Wr),Wr.subscribe.bind(Wr),Wr.__.bind(Wr),Wr._x.bind(Wr),Wr._n.bind(Wr),Wr._nx.bind(Wr),Wr.isRTL.bind(Wr),Wr.hasTranslation.bind(Wr);var Yr=n(816);const Jr=qr(void 0,void 0,Yr.P),Kr=yr("translations");!1!==Kr&&Jr.setLocaleData(Kr,"fibofilters"),Jr.__,Jr._n;const Qr=Jr._x,Xr=Jr._nx,Gr=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T().sprintf(e,...n)}catch(t){return t instanceof Error&&Br("sprintf error: \n\n"+t.toString()),e}};var eo=n(847);const to=(0,r.forwardRef)(((e,t)=>{const{nodeName:n="div",children:r,className:o="",disabled:i,onClick:s,icon:l,...a}=e,c=[`${gr}-button`];i&&c.push(`${gr}-button--disabled`),l&&c.push(`${gr}-button--has-icon`),o.length>0&&c.push(o);const u=e=>{"function"==typeof s&&s(e)},d={className:`${c.join(" ")}`,onClick:e=>u(e),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),u())},tabIndex:i?-1:0,"aria-disabled":i,ref:t,...a};return"button"!==n&&"undefined"===d.role&&(d.role="button"),(0,eo.h)(n,d,r,l)}));var no=to,ro=({value:e,deletable:t,onClick:n})=>{const[o,l]=(0,i.eJ)(!1),a=e=>l(e);return t?(0,r.createElement)("div",{className:`${gr}-applied-filter ${o?gr+"-applied-filter--outlined":""}`},(0,r.createElement)(no,{onClick:()=>n(e),className:`${gr}-applied-filter-icon`,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),onFocus:()=>a(!0),onBlur:()=>a(!1)},(0,r.createElement)(s,{icon:f,size:12})),(0,r.createElement)("span",null,e._label_in_applied_filters?`${e._label_in_applied_filters}: `:null,(0,r.createElement)("strong",null,A(e.label)))):(0,r.createElement)(no,{className:`${gr}-applied-filter ${gr}-applied-filter--clear-all`,onClick:()=>n(e)},(0,r.createElement)("span",null,e._label_in_applied_filters?`${e._label_in_applied_filters}: `:null,(0,r.createElement)("strong",null,A(e.label))))},oo=n(819),io=n.n(oo),so=function(e){return _r(e,5)},lo=n(743),ao=n(134),co=n.n(ao);const uo={"Ά":"Α","ά":"α","Έ":"Ε","έ":"α","Ί":"Ι","ί":"ι","ΐ":"ϊ","Ύ":"Υ","ύ":"υ","ΰ":"ϋ","Ή":"Η","ή":"η","Ό":"Ο","ό":"ο","Ώ":"Ω","ώ":"ω"},fo=Object.keys(uo).join("|"),po=new RegExp(fo,"g");function ho(e){return uo[e]}const mo=e=>e?function(e){return e.replace(po,ho)}(co()(e)).replace(/[\s/]+/g,"-").replace(/[^.\p{L}\p{N}_-]+/gu,"").toLowerCase().replace(/-+/g,"-"):"";function _o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new bt;++t<n;)this.add(e[t])}_o.prototype.add=_o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_o.prototype.has=function(e){return this.__data__.has(e)};var vo,go,bo,yo,wo=_o,Eo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},xo=function(e,t){return e.has(t)},So=function(e,t,n,r,o,i){var s=1&n,l=e.length,a=t.length;if(l!=a&&!(s&&a>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new wo:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],m=t[d];if(r)var _=s?r(m,h,d,t,e,i):r(h,m,d,e,t,i);if(void 0!==_){if(_)continue;f=!1;break}if(p){if(!Eo(t,(function(e,t){if(!xo(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f},ko=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Po=Ne?Ne.prototype:void 0,Co=Po?Po.valueOf:void 0,Oo=Object.prototype.hasOwnProperty,Ao="[object Arguments]",Fo="[object Array]",$o="[object Object]",No=Object.prototype.hasOwnProperty,jo=function(e,t,n,r,o,i){var s=Oe(e),l=Oe(t),a=s?Fo:Xn(e),c=l?Fo:Xn(t),u=(a=a==Ao?$o:a)==$o,d=(c=c==Ao?$o:c)==$o,f=a==c;if(f&&Qt(e)){if(!Qt(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new Dt),s||cn(e)?So(e,t,n,r,o,i):function(e,t,n,r,o,i,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new er(e),new er(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return dt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=ko;case"[object Set]":var a=1&r;if(l||(l=Io),e.size!=t.size&&!a)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=So(l(e),l(t),r,o,i,s);return s.delete(e),u;case"[object Symbol]":if(Co)return Co.call(e)==Co.call(t)}return!1}(e,t,a,n,r,o,i);if(!(1&n)){var p=u&&No.call(e,"__wrapped__"),h=d&&No.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,_=h?t.value():t;return i||(i=new Dt),o(m,_,n,r,i)}}return!!f&&(i||(i=new Dt),function(e,t,n,r,o,i){var s=1&n,l=Rn(e),a=l.length;if(a!=Rn(t).length&&!s)return!1;for(var c=a;c--;){var u=l[c];if(!(s?u in t:Oo.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=s;++c<a;){var m=e[u=l[c]],_=t[u];if(r)var v=s?r(_,m,u,t,e,i):r(m,_,u,e,t,i);if(!(void 0===v?m===_||o(m,_,n,r,i):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))},Ro=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Ue(t)&&!Ue(n)?t!=t&&n!=n:jo(t,n,r,o,e,i))},Do=function(e){return e==e&&!qe(e)},Lo=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},To=function(e){var t=function(e){for(var t=bn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Do(o)]}return t}(e);return 1==t.length&&t[0][2]?Lo(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var a=(l=n[o])[0],c=e[a],u=l[1];if(s&&l[2]){if(void 0===c&&!(a in e))return!1}else{var d=new Dt;if(r)var f=r(c,u,a,e,t,d);if(!(void 0===f?Ro(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},Mo=function(e,t){return null!=e&&t in Object(e)},Vo=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Ft(t,e)).length,i=!1;++r<o;){var s=$t(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&en(o)&&Gt(s,o)&&(Oe(e)||Wt(e))}(e,t,Mo)},Uo=function(e){return e},Zo=function(e){return ze(e)?(t=$t(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Nt(t,e)}}(e);var t},Bo=function(e){return"function"==typeof e?e:null==e?Uo:"object"==typeof e?Oe(e)?(t=e[0],n=e[1],ze(t)&&Do(n)?Lo($t(t),n):function(e){var r=jt(e,t);return void 0===r&&r===n?Vo(e,t):Ro(n,r,3)}):To(e):Zo(e);var t,n},Ho=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),s=i.length;s--;){var l=i[vo?s:++r];if(!1===t(o[l],l,o))break}return e},zo=function(e,t){return e&&Ho(e,t,bn)},qo=function(e,t){return function(n,r){if(null==n)return n;if(!gn(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}(zo),Wo=function(e,t){var n=-1,r=gn(e)?Array(e.length):[];return qo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r},Yo=function(e,t){return(Oe(e)?It:Wo)(e,Bo(t))},Jo=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},Ko=/\s/,Qo=/^\s+/,Xo=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ko.test(e.charAt(t)););return t}(e)+1).replace(Qo,""):e},Go=/^[-+]0x[0-9a-f]+$/i,ei=/^0b[01]+$/i,ti=/^0o[0-7]+$/i,ni=parseInt,ri=function(e){if("number"==typeof e)return e;if(Ze(e))return NaN;if(qe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xo(e);var n=ei.test(e);return n||ti.test(e)?ni(e.slice(2),n?2:8):Go.test(e)?NaN:+e},oi=function(e){return e?Infinity===(e=ri(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},ii=function(e){var t=oi(e),n=t%1;return t==t?n?t-n:t:0},si=Math.max,li=(go=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ii(n);return o<0&&(o=si(r+o,0)),Jo(e,Bo(t),o)},function(e,t,n){var r=Object(e);if(!gn(e)){var o=Bo(t);e=bn(e),t=function(e){return o(r[e],e,r)}}var i=go(e,t,n);return i>-1?r[o?e[i]:i]:void 0}),ai=new class{filters;constructor(){this.filters=[]}setFilters(e){this.filters=e}getAllFilters(){return this.filters}getAllFilterIds(){return Yo(this.getAllFilters(),"id")}getAllFilterTypes(){return Yo(this.getAllFilters(),"type")}getAllFilterUrlSlugs(){return Yo(this.getAllFilters(),"url_slug")}getAllFilterSources(){return Yo(this.getAllFilters(),"source")}getAllFilterSourceIds(){return Yo(this.getAllFilters(),"source_id")}getFilterType(e){const t=this.getFilterProps(e);return jt(t,"type",!1)}getFilterProps(e){const t=li(this.getAllFilters(),["id",e]);return void 0!==t&&t}getFilterIdBySourceId(e){const t=[];return this.getAllFilters().forEach((n=>{n.source_id===e&&t.push(n.id)})),t.length>0?t[0]:""}getFilterIdByUrlSlug(e){const t=[];return this.getAllFilters().forEach((n=>{n.url_slug===e&&t.push(n.id)})),t.length>0?t[0]:""}getFilterPropByAnother(e,t,n){const r=[];return this.getAllFilters().forEach((o=>{void 0!==o[t]&&o[t]===n&&r.push(o[e])})),r.length>0?r[0]:""}getAllFilterSourceIdsAlwaysToShow(){const e=[];return this.getAllFilters().forEach((t=>{"always"===t.when_to_show&&e.push(t.source_id)})),e}},ci=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r},ui=function(e,t,n,r){return qo(e,(function(e,o,i){t(r,e,n(e),i)})),r},di=Object.prototype.hasOwnProperty,fi=(bo=function(e,t,n){di.call(e,n)?e[n].push(t):Tt(e,n,[t])},function(e,t){var n=Oe(e)?ci:ui,r=yo?yo():{};return n(e,bo,Bo(t),r)}),pi=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Ze(e),s=void 0!==t,l=null===t,a=t==t,c=Ze(t);if(!l&&!c&&!i&&e>t||i&&s&&a&&!l&&!c||r&&s&&a||!n&&a||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||l&&n&&o||!s&&o||!a)return-1}return 0},hi=function(e,t,n){t=t.length?It(t,(function(e){return Oe(e)?function(t){return Nt(t,1===e.length?e[0]:e)}:e})):[Uo];var r=-1;return t=It(t,nn(Bo)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Wo(e,(function(e,n,o){return{criteria:It(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,l=n.length;++r<s;){var a=pi(o[r],i[r]);if(a)return r>=l?a:a*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))},mi=function(e,t,n,r){return null==e?[]:(Oe(t)||(t=null==t?[]:[t]),Oe(n=r?void 0:n)||(n=null==n?[]:[n]),hi(e,t,n))};const _i=ue(wr("currency"));var vi=class{id;filter_type;user_input;data;context;constructor(){this.filter_type="",this.user_input="",this.id="",this.data={label:"",source:"",source_id:0,type:"",logic:"",desc:"",order:0,values:[],is_collapsible:[],is_initially_collapsed:[],is_hierarchical:!1}}getId(){return this.id}setId(e){this.id=e}getUserInput(){return this.user_input}setUserInput(e){this.user_input=e}getProp(e){let t=null;return void 0!==this.data[e]&&(t=this.data[e]),t}setProp(e,t){"values"===e&&t.length>0?this.setValues(t):this.data[e]=t}setContext(e){this.context=e}beforeSetValues(){}afterSetValues(){}filterValues(e){return e}setValues(e){this.data.values=[],this.beforeSetValues(),e=e.map((e=>{var t,n,r,o;return{value_id:parseInt(e.value_id),value:e.value,parent_value:e.parent_value,label:e.label,label_url:e.label_url,description:"",selected:e.selected,alwaysSelected:!1,indeterminate:!1,disabled:!0,counter:0,group:e.group?e.group:"",default:e.default,order:e.order?parseInt(e.order):0,index:e.index?e.index:0,url:e.url?e.url:"",color:null!==(t=e.color)&&void 0!==t?t:"",img_url:null!==(n=e.img_url)&&void 0!==n?n:"",label_image:null!==(r=e.label_image)&&void 0!==r?r:"",label_image_position:null!==(o=e.label_image_position)&&void 0!==o?o:""}})),"numerically"===this.getProp("orderby")&&(e=e.map((e=>({label_num:Number.isNaN(Number(e.label))?0:Number(e.label),...e})))),this.data.values=[...this.data.values,...e],this.afterSetValues()}setProps(e){Object.keys(e).forEach((t=>{this.setProp(t,e[t])}))}getLogic(){return this.getProp("logic")}getType(){return this.filter_type}isSelected(){return""!==this.user_input}hasAlwaysSelectedValues(){return this.getAlwaysSelectedValues().length>0}getAlwaysSelectedValues(){const e=wr("always_selected_values",{});return jt(e,this.getProp("url_slug"),[])}getElementaryQuery(){let e=this.convertUserInputToValues();if(Array.isArray(e)&&e.length>0&&(e=e.filter((e=>!(void 0===e)))),0===e.length)return{};let t=this.getProp("source_id");return"price"===this.getProp("source")&&(t=jr(t)),{source:this.getProp("source"),source_id:t,values:e,logic:this.getProp("logic")}}convertUserInputToValues(){if("price_range"===this.getProp("user_input_type")){const e=this.getUserInput().split("-");if(2===e.length){let t=Number.isNaN(parseFloat(e[0]))?-1:_i.formatDecimal(e[0]);const n=Number.isNaN(parseFloat(e[1]))?-1:_i.formatDecimal(e[1]);return n>=0&&t>n&&(t=n),[t,n]}return[-1,-1]}if("number_range"===this.getProp("user_input_type")){const e=this.getUserInput().split("-");if(2===e.length){let t=Number.isNaN(parseFloat(e[0]))?-1:parseFloat(e[0]);const n=Number.isNaN(parseFloat(e[1]))?-1:parseFloat(e[1]);return n>=0&&t>n&&(t=n),[t,n]}return[-1,-1]}return"search"===this.getProp("user_input_type")?this.getUserInput():this.getUserInput().split(",").map((e=>{const t=this.getValueId(e);return t>0?t:void 0}))}getCounterType(){const e=this.getLogic(),t=this.isSelected();let n="no-counter";return"or"===e&&t&&(n="extended-counter"),("or"===e&&!t||"and"===e&&t||"and"===e&&!t)&&(n="default-counter"),n}getValueId(e){let t=-1;return this.getProp("values").every((n=>n.label_url!==e||(t=parseInt(n.value_id),!1))),t}updateValue(e,t,n){this.getProp("values").every(((r,o)=>r.value_id!==e||!r.hasOwnProperty(t)||(this.data.values[o][t]=n,!1)))}updateCounters(e){Object.keys(e).forEach((t=>{const n=parseInt(t),r=e[n];this.updateValue(n,"counter",e[n]),0===r?this.updateValue(n,"disabled",!0):this.updateValue(n,"disabled",!1)}))}getData(e="all"){const t=this.getDataInternal();return{id:this.getId(),...t}}getDataInternal(){return this.data}getOrder(){return this.getProp("order")}setSelectedValues(){if(this.isSelected()){const e=this.convertUserInputToValues();e.length>0&&this.selectValues(e)}if(this.hasAlwaysSelectedValues()){const e=[];this.getAlwaysSelectedValues().forEach((t=>{e.push(t.value_id)})),e.length>0&&this.selectValues(e,!0)}}selectValues(e,t=!1){if(0===e.length)return;if(0===this.data.values.length)return;const n=[];if(this.data.values.forEach(((r,o)=>{e.includes(r.value_id)&&(this.data.values[o].selected=!0,this.data.values[o].disabled=!1,this.data.values[o].alwaysSelected=t,"0"!==this.data.values[o].parent_value&&n.push(this.data.values[o].parent_value))})),n.length>0){const e=[...new Set([...n,...Mr(this.data.values,n)])];e.length>0&&this.data.values.forEach(((t,n)=>{e.includes(t.value)&&(this.data.values[n].indeterminate=!0,this.data.values[n].disabled=!1)}))}this.getProp("is_hierarchical")&&this.data.values.forEach(((e,t)=>{e.selected&&(this.data.values[t].indeterminate=!0,this.data.values[t].disabled=!1)})),this.afterSelectValues()}afterSelectValues(e){}maybeHideZeroValues(){if(!1===this.getProp("show_zero_values")){let e=this.getProp("values"),t=[];if(this.getProp("is_hierarchical")){const n=e.filter((e=>void 0!==e.counter&&e.counter>0)).map((e=>e.value));t=Mr(e,n)}e=e.filter((e=>!(void 0!==e.counter&&0===e.counter&&void 0!==e.disabled&&e.disabled&&!t.includes(e.value)))),this.data.values=e}}numberValues(){this.data.values.forEach(((e,t)=>{this.data.values[t].index=t}))}calcValuesLevels(){this.data.values=(e=>{const t={};return e.forEach((e=>{var n;t[e.value]=null!==(n=e.parent_value)&&void 0!==n?n:"0"})),e.forEach(((n,r)=>{e[r].level=Tr(t,n.value)})),e})(this.data.values)}sortValues(){this.data.values=this.sortValueList(this.data.values)}sortValueList(e){if("range"===this.getType())return e;let t=this.getProp("orderby");"string"!=typeof t&&(t="label");const n=fi(e,"parent_value");let r=[];for(const e of Object.values(n)){let n=e.filter((e=>e.counter>0)),o=e.filter((e=>0===e.counter));switch(t){case"counter":n=mi(n,["counter"],["desc"]),o=o.sort(((e,t)=>e.label.localeCompare(t.label)));break;case"term_order":n=mi(n,["order"],["asc"]),o=mi(o,["order"],["asc"]);break;case"numerically":n=mi(n,["label_num"],["asc"]),o=mi(o,["label_num"],["asc"]);break;default:n=n.sort(((e,t)=>e.label.localeCompare(t.label))),o=o.sort(((e,t)=>e.label.localeCompare(t.label)))}r=[...r,...n,...o]}return r}},gi=class extends vi{constructor(e){super(),this.filter_type="category",this.setId(e)}getCounterType(){return"category-counter"}setSelectedValues(){jt(this.context,"conditions.is_product_taxonomy")&&"product_cat"===jt(this.context,"details.taxonomy")&&this.data.values.forEach(((e,t)=>{jt(this.context,"details.term_id").toString()===e.value&&(this.data.values[t].selected=!0)}))}},bi=class extends vi{constructor(e){super(),this.filter_type="checkboxes",this.setId(e)}afterSetValues(){super.afterSetValues(),this.data.values.filter((e=>"0"!==e.parent_value)).length>0&&this.setProp("is_hierarchical",!0)}},yi=class extends vi{constructor(e){super(),this.filter_type="buttons",this.setId(e)}},wi=class extends vi{constructor(e){super(),this.filter_type="color",this.setId(e)}},Ei=class extends vi{constructor(e){super(),this.filter_type="radio",this.setId(e)}afterSelectValues(e){super.afterSelectValues(e),this.data.values.forEach(((e,t)=>{-1===e.value_id&&(this.data.values[t].selected=!1)}))}sortValues(){this.data.values.length>1&&-1===this.data.values[0].value_id?this.data.values=[this.data.values[0],...this.sortValueList(this.data.values.slice(1,this.data.values.length))]:super.sortValues()}},xi=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],s=t(i);if(null!=s&&(void 0===l?s==s&&!Ze(s):n(s,l)))var l=s,a=i}return a},Si=function(e,t){return e<t},ki=function(e){return e&&e.length?xi(e,Uo,Si):void 0},Ii=function(e,t){return e>t},Pi=function(e){return e&&e.length?xi(e,Uo,Ii):void 0},Ci=0,Oi=function(e){var t=++Ci;return At(e)+t},Ai=function(e,t){var n={};return t=Bo(t),zo(e,(function(e,r,o){Tt(n,r,t(e,r,o))})),n},Fi=function(e){return null==e?[]:function(e,t){return It(t,(function(t){return e[t]}))}(e,bn(e))},$i=class extends vi{artificial_no_value;constructor(e){super(),this.filter_type="range",this.artificial_no_value=-1,this.setId(e)}getCounterType(){return"range-counter"}setSelectedValues(){}setValues(e){let t=this.getProp("source_id");this.data.values=[],this.beforeSetValues();const n=this.convertUserInputToValues();if(this.data.range={min:n[0],max:n[1]},"price"===this.getProp("source")&&(t=jr(t)),e.forEach((e=>{e[2].hasOwnProperty(t)&&this.data.values.push({group:e[0]!==e[1]?String(e[1]):"",value:e[2][t][0]})})),this.sortNumValues(),this.setProp("slider_data",{min:0,max:0,histogramValues:[]}),this.setProp("radio_range",[]),this.getProp("show_slider")&&this.setProp("slider_data",this.getSliderData(this.data.values)),this.getProp("show_radio_ranges")){let e=this.getProp("custom_range_thresholds");Array.isArray(e)&&e.length>0&&(e=e.filter((e=>!isNaN(parseFloat(e)))),e.sort(((e,t)=>e-t))),Array.isArray(e)&&e.length>0?this.setProp("radio_range",this.getCustomRadioRanges(this.data.values,e)):this.setProp("radio_range",this.getRadioRanges(this.data.values))}this.afterSetValues(),this.data.values=[]}getSliderData(e){if(0===e.length)return{min:0,max:0,histogramValues:[]};const t=[];for(let n=0;n<e.length;n++)t.push(parseFloat(e[n].value));return{min:ki(t),max:Pi(t),histogramValues:this.quantitativeHistogram(e,wr("range_slider_histogram_ranges_limit"))}}getCustomRadioRanges(e,t){const n=[];let r=0;return 0===e.length||t.length<1||(t=[...t,Number.MAX_SAFE_INTEGER]).forEach(((o,i)=>{const{label:s,selected:l}=this.getLabelAndSelected({rangesTotal:t.length,rangeIndex:i,maxValue:o,prevMaxValue:r}),a=e.filter((e=>0===i?e.value<=o:i<t.length-1?e.value<=o&&e.value>=r:e.value>=r)).map((e=>""===e.group?Oi("group_"):e.group)),c=[...new Set(a)];n.push({label:s,title:s,counter:c.length,min:0===r?"":r,max:i===t.length-1?"":o,selected:l,disabled:!1}),r=o})),n}getRadioRanges(e){const t=[];let n=0;if(0===e.length)return t;const r=this.equalizedHistogram(e,5);return r.length<2||r.forEach(((e,o)=>{const i=e.rounded_max,{label:s,selected:l}=this.getLabelAndSelected({rangesTotal:r.length,rangeIndex:o,maxValue:i,prevMaxValue:n});t.push({label:s,title:s,counter:e.items,min:0===n?"":n,max:o===r.length-1?"":i,selected:l,disabled:!1}),n=i})),t}getLabelAndSelected({rangesTotal:e,rangeIndex:t,maxValue:n,prevMaxValue:r}){const o=this.getProp("range").min,i=this.getProp("range").max,s=this.getProp("use_global_number_format",!0),l=s||null===this.getProp("number_precision")?null:this.getProp("number_precision"),a=s||null===this.getProp("number_prefix")?null:this.getProp("number_prefix"),c=s||null===this.getProp("number_suffix")?null:this.getProp("number_suffix");let u="",d=!1;return 0===t?(
/* translators: %s: price */
u="price"===this.getProp("source")?Gr(Qr("less than %s","[front] Price e.g. less than $49","fibofilters"),Nr(n)):Gr(/* translators: %s: number */
Qr("less than %s","[front] Number e.g less than 49","fibofilters"),Rr(n,this.getId(),l,a,c)),d=o===this.artificial_no_value&&n===i):t<e-1?(u="price"===this.getProp("source")?Nr(r)+" "+Qr("to","[front] Used in price range e.g. from $20 to $50.","fibofilters")+" "+Nr(n):Rr(r,this.getId(),l,a,c)+" "+Qr("to","[front] Used in number range e.g. from 20 to 50.","fibofilters")+" "+Rr(n,this.getId(),l,a,c),d=r===o&&n===i):t===e-1&&(
/* translators: %s: price */
u="price"===this.getProp("source")?Gr(Qr("more than %s","[front] Price e.g. more than $49","fibofilters"),Nr(r)):Gr(/* translators: %s: number */
Qr("more than %s","[front] Number e.g. more than 49","fibofilters"),Rr(r,this.getId(),l,a,c)),d=r===o&&i===this.artificial_no_value),{label:u,selected:d}}sortNumValues(){this.data.values.sort(((e,t)=>e.value<t.value?-1:e.value>t.value?1:0))}equalizedHistogram(e,t=5){if(0===e.length)return{};const n=this.histogramDataProcessing(e),r=[],o=1/t;for(let e=0;e<t;e++){const t=[];Object.keys(n.histogram).forEach((r=>{const i=n.histogram[r];i.cumulative_frequency>o*e&&i.cumulative_frequency<=o*(e+1)&&t.push(parseFloat(r))})),t.length>0&&r.push({values:[],min:ki(t),max:Pi(t)})}return r.length>1&&0===r[0].min&&0===r[0].max&&(r[1].values=[...r[0].values,...r[1].values],r[1].min=0,r[1].rounded_min=0,r.shift()),r.forEach(((t,n)=>{const o=void 0!==r[n+1]&&void 0!==r[n+1].max&&void 0!==r[n+1].min&&r[n+1].min>0?.5*(r[n+1].max-r[n+1].min)+r[n+1].min:1/0,i=0===n?0:r[n-1].rounded_max;r[n].rounded_min=i;const{rounded:s,step:l}=this.getRounded(i,t.max,o);r[n].rounded_max=s,r[n].step=l,r[n].values=e.filter((e=>e.value>=t.rounded_min&&e.value<=t.rounded_max));const a=r[n].values.map((e=>""===e.group?Oi("group_"):e.group)),c=[...new Set(a)];r[n].items=c.length})),r.filter((e=>e.values.length>0))}quantitativeHistogram(e,t=16){if(0===e.length)return[];const n=[];e.forEach((e=>{n.push(parseFloat(e.value))}));const r=ki(n),o=Pi(n);if(o-r==0)return[];const i=n.map((e=>(e-r)/(o-r)*t)),s=fi(i,Math.floor),l=Ai(s,(e=>e.length));for(let e=0;e<t;e++){var a;l[e]=null!==(a=l[e])&&void 0!==a?a:0}l[t-1]+=l[t],delete l[t];const c=Pi(Fi(l)),u=Ai(l,(e=>o>0?e/c*100:0));return Fi(u)}histogramDataProcessing(e){const t={numbers:[],total_items:0,histogram:[]},n=[];e.forEach((e=>{const r=e.value+e.group;0===e.group.length?t.numbers.push(e.value):e.group.length>0&&!n.includes(r)&&(t.numbers.push(e.value),n.push(r))})),t.total_items=t.numbers.length,t.numbers.forEach((e=>{let n=String(e);n=n.includes(".")?n:n+".00",t.histogram.hasOwnProperty(n)?(t.histogram[n].items++,t.histogram[n].frequency=t.histogram[n].items/t.total_items):t.histogram[n]={items:1,frequency:1/t.total_items}})),delete t.numbers;let r=0;return Object.keys(t.histogram).forEach((e=>{const n=t.histogram[e],o=ki([r+n.frequency,1]);t.histogram[e].cumulative_frequency=o,r=o})),t}getRounded(e,t,n=1/0){let r={rounded:0,step:1};return[[1e-5,5e-6],[1e-4,5e-5],[.001,5e-4],[.002,.001],[.01,.005],[.02,.01],[.1,.05],[.2,.1],[1,1],[5,2],[10,5],[20,10],[40,20],[50,25],[100,50],[500,250],[1e3,500],[1e4,5e3],[1e5,5e4],[1e6,5e5],[1e7,5e6],[1e8,5e7],[1e9,5e8]].forEach((o=>{const i=o[0],s=o[1],l=this.ceilStep(Pi([e,t]),s);t>i&&l<n&&(r={rounded:l,step:s})})),r}ceilStep(e,t=1){return Math.ceil(e/t)*t}},Ni=class extends vi{constructor(e){super(),this.filter_type="search",this.setId(e)}setSelectedValues(){this.data.phrase=this.convertUserInputToValues()}},ji=class extends vi{constructor(e){super(),this.filter_type="select",this.setId(e)}};const Ri=e=>"range"===e.type&&(e.range.min>-1||e.range.max>-1)||("category"===e.type&&!1!==e.current||(e.data&&e.data.values?e.data.values:e.values).filter((e=>-1!==e.value_id&&e.selected)).length>0),Di=e=>(e=e.toString().toLowerCase(),["yes","1","true","on"].includes(e));var Li=class extends vi{constructor(e){super(),this.filter_type="toggle",this.setId(e)}filterValues(e){if(e.length<=1)return e;const t=this.getProp("source");return t.indexOf("cf_")>=0?e=e.filter((e=>Di(e.value))):t.indexOf("tax_")>=0&&(e=e.filter((e=>Di(e.label)))),e}},Ti=new class{createFilterInstance(e){if(void 0===e)throw new Error("Empty filter ID.");let t;switch(ai.getFilterType(e)){case"category":t=new gi(e);break;case"checkboxes":t=new bi(e);break;case"buttons":t=new yi(e);break;case"color":t=new wi(e);break;case"radio":t=new Ei(e);break;case"range":t=new $i(e);break;case"search":t=new Ni(e);break;case"select":t=new ji(e);break;case"toggle":t=new Li(e);break;default:throw new Error("Invalid filter type.")}const n=ai.getFilterProps(e);return n&&t.setProps(n),t}},Mi=n(846),Vi=function(e){return e!=e},Ui=function(e,t){return!(null==e||!e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Jo(e,Vi,n)}(e,t,0)>-1},Zi=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},Bi=Mn&&1/Io(new Mn([,-0]))[1]==1/0?function(e){return new Mn(e)}:function(){},Hi=function(e){return e&&e.length?function(e,t,n){var r=-1,o=Ui,i=e.length,s=!0,l=[],a=l;if(n)s=!1,o=Zi;else if(i>=200){var c=t?null:Bi(e);if(c)return Io(c);s=!1,o=xo,a=new wo}else a=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d==d){for(var f=a.length;f--;)if(a[f]===d)continue e;t&&a.push(d),l.push(u)}else o(a,d,n)||(a!==l&&a.push(d),l.push(u))}return l}(e):[]},zi=new class{filterLinearly(e,t=!1,n=!1){const r=[];let o=[];return(!n||Mi.Z.hasStoreProductDescriptorsArray()&&0!==e.length)&&Mi.Z.hasBaseDescriptors()&&0!==e.length?(o=n?Mi.Z.getStoreProductDescriptorsArray():Mi.Z.getBaseProductDescriptors(),o.forEach(((n,o)=>{const i=n[2];let s=0;e.every((e=>{let t=!1;return i.hasOwnProperty(e.source_id)?("search"===e.logic&&i[e.source_id].some((t=>t.toLowerCase().includes(e.values.toLowerCase())))&&(s++,t=!0),(["or","and"].includes(e.logic)&&this.doesDescriptorMatch(e.values,i[e.source_id],e.logic)||"range"===e.logic&&this.isWithinRange(e.values,i[e.source_id][0]))&&(s++,t=!0),t):(s=0,!1)})),s===e.length&&(t?r.push(o):r.push({index:o,doc_id:n[0],...void 0!==n[2]?.type&&{type:n[2].type}}))})),r):r}doesDescriptorMatch(e,t,n){let r=!1,o=0;return e.every((e=>!t.includes(e)||(o++,"or"!==n))),"or"===n&&o>0&&(r=!0),"and"===n&&o===e.length&&(r=!0),r}isWithinRange(e,t){let n=-1===e[0],r=-1===e[1];return!n&&t>=e[0]&&(n=!0),!r&&t<=e[1]&&(r=!0),n&&r}getSourcesToShow(e=[],t=[]){const n=[...new Set([...ai.getAllFilterSourceIdsAlwaysToShow(),...e,...t])],r=Mi.Z.getDescriptorsOfFilteredProducts(),o=Mi.Z.countMainProductsInDescriptors(r),i=wr("content_aware_filters_ratio",.9),s=wr("content_aware_filters_ratio_per_source",{}),l={},a=ai.getAllFilterSourceIds();a.forEach((e=>l[e]=jt(s,e,i)));const c={};a.forEach((e=>c[e]=Math.floor(o-l[e]*o)));const u=Math.min(...Object.values(c)),d=[],f={},p=[];let h=-1;if(Object.keys(wr("multicurrency",[])).length>0){const e=Object.keys(wr("multicurrency",[])?.priceSources).length>0?wr("multicurrency",[])?.priceSources:{};Object.keys(e).forEach((t=>{d.push(e[t])}))}if(Object.keys(wr("orderby_sources_map",{})).length>0){const e=wr("orderby_sources_map",{});Hi(Object.keys(e).map((t=>e[t].source_id))).forEach((e=>{a.includes(e)||d.push(e)}))}return r.forEach((e=>{if(p.includes(e[1]))return!0;p.push(e[1]),h++,Object.keys(e[2]).includes("-1")?a.forEach((e=>{void 0===f[e]&&(f[e]=0),f[e]++})):Object.keys(e[2]).every((e=>(e=parseInt(e),n.includes(e)||d.includes(e)||(void 0===f[e]&&(f[e]=0),f[e]++),!0))),(h>u+100&&h%100==0||h+1===o)&&Object.keys(f).forEach((e=>{const t=f[e];h+1-t>c[e]&&(d.push(parseInt(e)),delete f[e])}))})),[...n,...Object.keys(f).map(Number)]}};const qi="vertical",Wi="off-canvas",Yi="horizontal-popover",Ji="mobile-overlay-all",Ki="mobile-overlay-single";var Qi=new class{constructor(){this.instances=[]}getInstances(){return this.instances}clearInstances(){this.instances=[]}getInstanceBySourceId(e){let t;if(this.instances.every((n=>n.getProp("source_id")!==e||(t=n,!1))),void 0===t)throw new Error("There is no such filter instance.");return t}instanceExists(e){let t=!1;return this.instances.forEach((n=>{n.getId()===e&&(t=!0)})),t}setFilterInstancesByHttpGetParams(e){if(0===e.length)return;const t=ai.getAllFilterUrlSlugs();Object.keys(e).forEach((n=>{if(t.includes(n))try{const t=Ti.createFilterInstance(ai.getFilterIdByUrlSlug(n));t.setUserInput(e[n]),this.instances.push(t)}catch(e){}}))}setFilterInstancesByContext(e){const t=ai.getAllFilterIds();ai.getAllFilterSources().forEach(((n,r)=>{if(!this.instanceExists(t[r])&&"tax_product_cat"===n)try{const n=Ti.createFilterInstance(t[r]);n.setContext(e),this.instances.push(n)}catch(e){}}))}setFilterInstancesBySourceIds(e){const t=[],n=ai.getAllFilterIds();e.forEach((e=>{const n=ai.getFilterIdBySourceId(e);n.length>0&&t.push(n)})),t.forEach((e=>{if(n.includes(e)&&!this.instanceExists(e))try{const t=Ti.createFilterInstance(e);this.instances.push(t)}catch(e){}}))}createComplexQuery(e=[]){const t=[];return this.instances.forEach((n=>{if(!n.isSelected())return;if(e.includes(n.getId()))return;const r=n.getElementaryQuery();r.constructor===Object&&Object.keys(r).length>0&&t.push(r)})),t}getSourceIdsOfCurrentFilters(){return this.instances.map((e=>e.getProp("source_id")))}groupFiltersByCounterType(){const e={};return this.instances.forEach((t=>{const n=t.getCounterType();void 0===e[n]&&(e[n]=[]),e[n].push(t)})),e}calcDefaultCounters(e){const t=e.map((function(e){return e.getProp("source_id")}));return this.calcCountersFromDescriptors(Mi.Z.getDescriptorsOfFilteredProducts(),t)}calcExtendedCounters(e){const t=e.getProp("source_id"),n=this.createComplexQuery([e.getId()]);return this.calcCountersFromDescriptors(this.getDescriptorsForExclusiveQuery(n),[t])[t]}getCategoryCounters(e){const t=e.getProp("source_id"),n=e.getProp("showing_sibling_categories"),r=this.createComplexQuery([e.getId()]);let o=[];if(n){if(r.length>0)return o=this.getStoreDescriptorsForExclusiveQuery(r),this.calcCountersFromDescriptors(o,[t])[t];const n=e.getProp("values");return this.calcCountersInStoreScope(t,n.map((e=>e.value_id)),!0)}return r.length>0?(o=this.getDescriptorsForExclusiveQuery(r),this.calcCountersFromDescriptors(o,[t])[t]):0===r.length?(o=Mi.Z.getBaseProductDescriptors(),this.calcCountersFromDescriptors(o,[t])[t]):{}}calcCountersInStoreScope(e,t,n=!1){const r={},o=Mi.Z.getRootBaseProductsIds();return t.forEach((e=>{r[e]=0})),Object.keys(Mi.Z.getStoreProductDescriptors()).forEach((t=>{const i=Mi.Z.getStoreProductDescriptors()[t],s=Object.values(i)[0];n&&!o.includes(parseInt(t))||!s.hasOwnProperty(e)||Object.keys(r).forEach((t=>{s[e].includes(parseInt(t))&&r[t]++}))})),r}getDescriptorsForRange(e){const t=this.createComplexQuery([e]);return this.getDescriptorsForExclusiveQuery(t)}getDescriptorsForExclusiveQuery(e){return e.length>0?Mi.Z.getDescriptors(zi.filterLinearly(e,!0)):Mi.Z.getBaseProductDescriptors()}getStoreDescriptorsForExclusiveQuery(e){return e.length>0?Mi.Z.getStoreDescriptors(zi.filterLinearly(e,!0,!0),!0):[]}calcCountersFromDescriptors(e,t){const n={},r={},o={};return t.forEach((e=>{n[e]={},o[e]=new Set([])})),e.forEach((e=>{const i=e[1],s=e[0]!==i;t.every((t=>"object"!=typeof e[2]||!e[2].hasOwnProperty(t)||(e[2][t].every((e=>(s&&r.hasOwnProperty(i)&&r[i].includes(e)||(n.hasOwnProperty(t)&&n[t].hasOwnProperty(e)?n[t][e]++:n[t][e]=1,s&&(r.hasOwnProperty(i)||(r[i]=[]),r[i].push(e)),o[t].has(i)||o[t].add(i)),!0))),!0)))})),t.forEach((e=>{n[e][-1]=o[e].length})),n}getFiltersData(e="all"){const t={filters:{},total_products_count:Mi.Z.getOutputProductIds().length};return this.instances.forEach((n=>{n.getData(),t.filters[n.getId()]=n.getData(e)})),t}setSelectedFilterValues(){this.instances.forEach((e=>{(e.isSelected()||"category"===e.getType()||e.hasAlwaysSelectedValues())&&e.setSelectedValues()}))}removeEmptyFilters(e,t=!1){this.instances=this.instances.filter((n=>{if("range"===n.getProp("type")){if(!t&&!n.isSelected())return!1;const e=n.getProp("show_radio_ranges"),r=n.getProp("show_slider"),o=n.getProp("radio_range").length>0,i=n.getProp("slider_data").histogramValues.length>0;if(e&&!o&&r&&!i||e&&!o&&!r||!e&&r&&!i)return!1}return 0===n.getProp("values").length&&"range"===n.getProp("type")||!("category"!==n.getType()||!e.conditions.is_product_taxonomy)||("radio"===n.getType()||"select"===n.getType()?1!==n.getProp("values").length:"search"===n.getType()||n.getProp("values").length>0)}))}sortFiltersByOrder(){this.instances.sort(((e,t)=>e.getOrder()-t.getOrder()))}hideZeroValues(){wr("show_empty_values",!0)||this.instances.forEach((e=>{e.maybeHideZeroValues()}))}numberFilterValues(){this.instances.forEach((e=>{e.numberValues()}))}calcValuesLevels(){this.instances.forEach((e=>{e.calcValuesLevels()}))}sortFilterValues(){this.instances.forEach((e=>{e.sortValues()}))}collapseFilters(){const e=wr("collapsing",{}),t=void 0===e?.collapse_after||isNaN(parseInt(e.collapse_after))?-1:parseInt(e.collapse_after),n=void 0===e?.off_canvas_collapse_after||isNaN(parseInt(e.off_canvas_collapse_after))?-1:parseInt(e.off_canvas_collapse_after),r=void 0===e?.mobile_collapse_after||isNaN(parseInt(e.mobile_collapse_after))?-1:parseInt(e.mobile_collapse_after);t<0&&n<0&&r<0?this.instances.forEach((e=>{e.setProp("is_collapsible",[])})):this.instances.forEach(((e,o)=>{if(["category","toggle"].includes(e.getType()))return;const i=[],s=[];t>=0&&(i.push(qi),o>=t&&!Ri(e)&&s.push(qi)),n>=0&&(i.push(Wi),o>=n&&!Ri(e)&&s.push(Wi)),r>=0&&(i.push(Ji),o>=r&&!Ri(e)&&s.push(Ji)),e.setProp("is_collapsible",i),e.setProp("is_initially_collapsed",s)}))}collapseFiltersOverrides(){const e=wr("collapsing_overrides",{});0!==Object.keys(e).length&&this.instances.forEach((t=>{const n=t.getId();if(!e.hasOwnProperty(n))return;const r=e[n];if(!1===r.is_collapsible)return t.setProp("is_collapsible",[]),void t.setProp("is_initially_collapsed",[]);const o=[qi,Wi,Ji],i=r.is_initially_collapsed?o:[];t.setProp("is_collapsible",o),t.setProp("is_initially_collapsed",i)}))}},Xi=new class{sortProducts(e){const t=wr("orderby_sources_map",{}),n=wr("orderby_in_stock_first",!1),r=wr("orderby_in_stock_first_exceptions",[]),o=wr("orderby_featured_first",!1),i=wr("orderby_featured_first_exceptions",[]);if(void 0===t[e]);else if(!1===t[e]);else{let s=Mi.Z.getDescriptorsOfFilteredProducts().map((s=>({product_id:s[0],sort_value:jt(s,`[2].${t[e].source_id}.[0]`,0),stock_status:!(!n||r.includes(e))&&jt(s,`[2].${t.order_by_stock_status.source_id}.[0]`,!1),featured:!(!o||i.includes(e))&&jt(s,`[2].${t.order_by_featured.source_id}.[0]`,!1)})));"price"===e&&(s=s.map((e=>(0===e.sort_value&&(e.sort_value=Number.MAX_SAFE_INTEGER),e))));let l=[];["title","title-desc"].includes(e)?l="asc"===t[e].order?[...s].sort(((e,t)=>e.sort_value.localeCompare(t.sort_value))):[...s].sort(((e,t)=>t.sort_value.localeCompare(e.sort_value))):!1===t[e].orderby_product_id?l="asc"===t[e].order?[...s].sort(((e,t)=>e.sort_value-t.sort_value)):[...s].sort(((e,t)=>t.sort_value-e.sort_value)):"asc"===t[e].order?l=[...s].sort(((n,r)=>n.sort_value===r.sort_value?"asc"===t[e].orderby_product_id?n.product_id-r.product_id:r.product_id-n.product_id:n.sort_value-r.sort_value)):"desc"===t[e].order&&(l=[...s].sort(((n,r)=>n.sort_value===r.sort_value?"asc"===t[e].orderby_product_id?n.product_id-r.product_id:r.product_id-n.product_id:r.sort_value-n.sort_value))),l.length>0&&(o&&n?l=[...l].sort(((e,t)=>e.stock_status===t.stock_status?t.featured-e.featured:t.stock_status-e.stock_status)):o?l=[...l].sort(((e,t)=>t.featured-e.featured)):n&&(l=[...l].sort(((e,t)=>t.stock_status-e.stock_status))),Mi.Z.setFilteredProductIds(l.map((e=>({productId:e.product_id})))))}}},Gi=function(){return $e.Date.now()},es=Math.max,ts=Math.min,ns=function(e,t,n){var r,o,i,s,l,a,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,s=e.apply(i,n)}function h(e){var n=e-a;return void 0===a||n>=t||n<0||d&&e-c>=i}function m(){var e=Gi();if(h(e))return _(e);l=setTimeout(m,function(e){var n=t-(e-a);return d?ts(n,i-(e-c)):n}(e))}function _(e){return l=void 0,f&&r?p(e):(r=o=void 0,s)}function v(){var e=Gi(),n=h(e);if(r=arguments,o=this,a=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(m,t),u?p(e):s}(a);if(d)return clearTimeout(l),l=setTimeout(m,t),p(a)}return void 0===l&&(l=setTimeout(m,t)),s}return t=ri(t)||0,qe(n)&&(u=!!n.leading,i=(d="maxWait"in n)?es(ri(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=a=o=l=void 0},v.flush=function(){return void 0===l?s:_(Gi())},v};const rs=(e,t={})=>Pr({html:e.elements,...e.loopStartSelector,append:!0,...t}),os=({loopStartSelector:e})=>{const t=wr("per_row",3);(0,de.Z)((0,de.Z)(e.selector).first()).children().nodes.forEach(((e,n)=>{(0,de.Z)(e).removeClass(["first","last"]),0!=n%t&&1!==t||(0,de.Z)(e).addClass("first"),0==(n+1)%t&&(0,de.Z)(e).addClass("last")}))},is=({loopStartSelector:e})=>{(0,de.Z)((0,de.Z)(e.selector).first()).children(wr("clear_product_container_exceptions",":not(style):not(link)")).remove()},ss=e=>{if(!wr("scroll_top_on_page_change",!0))return;const t=Ar().any?wr("scroll_top_offset_mobile",200):wr("scroll_top_offset_desktop",200);Or(e.selector,t)};var ls=new class{cache={};keySuffix="";get(e){return Mi.Z.getBaseProductVariableIds().includes(parseInt(e))&&this.cache.hasOwnProperty(`${e.toString()}${this.keySuffix}`)?this.cache[`${e.toString()}${this.keySuffix}`]:this.cache.hasOwnProperty(`${e.toString()}`)?this.cache[`${e.toString()}`]:null}set(e,t){Mi.Z.getBaseProductVariableIds().includes(parseInt(e))?this.cache[`${e.toString()}${this.keySuffix}`]=t:this.cache[`${e.toString()}`]=t}has(e){return Mi.Z.getBaseProductVariableIds().includes(parseInt(e))?this.cache.hasOwnProperty(`${e.toString()}${this.keySuffix}`):this.cache.hasOwnProperty(`${e.toString()}`)}clear(){this.cache={}}setKeySuffixByQueryItems(e){const t=wr("filters_affecting_variation_images_and_urls");if(0===t.length)return void(this.keySuffix="");let n="";e.forEach((e=>{t.includes(e.key)&&(n+=`_${e.key}_${e.valueRaw}`)})),this.keySuffix=n}isEmpty(){return 0===Object.keys(this.cache).length}},as=new class{productsCache;visibleProductIds;paginationStrategy;notRenderedIds;currentLoadedIds;placeholderIds;missingCacheIds;missingVisibleIds;fetchedNowIds;productIntersectionObservers;lastProductIntersectionObserver;pr;lastScrollTop;loopStartSelector;loadNextPageImmediately;hasUserQuery;scrollTopOnChangeDebounced;constructor(){this.visibleProductIds=[],this.notRenderedIds=[],this.currentLoadedIds=[],this.placeholderIds=[],this.missingCacheIds=[],this.missingVisibleIds=0,this.fetchedNowIds=[],this.paginationStrategy=yr("config","pagination_strategy","show-more-button"),this.productIntersectionObservers={},this.lastProductIntersectionObserver=null,this.visibleProductCategories=[],this.lastScrollTop=window.scrollY||document.documentElement.scrollTop,this.loadNextPageImmediately=!1,ls.clear(),this.scrollTopOnChangeDebounced=ns((()=>{(e=>{const t=wr("scroll_top");if("disabled"!==t&&("both"===t||"mobile"===t&&Ar().any||"desktop"===t&&!Ar().any)){const t=Ar().any?wr("scroll_top_offset_mobile",200):wr("scroll_top_offset_desktop",200);Or(e.selector,t)}})(this.loopStartSelector)}),wr("scroll_top_wait",450)),this.registerExternalInteractions()}async process(e){const{clearProductsCache:t=!1,firstLoad:n=!0,queryItems:r=[],inputChange:o=!1,hasUserQuery:i=!1}=e||{};if(this.hasUserQuery=i,n)try{this.loopStartSelector=(()=>{let e=!1,t=!1;const n=e=>{if(e.length>1)throw new Error("The product loop selector matches more than one element in the DOM.")};if(wr("products_loop_selectors",[]).length>0&&wr("products_loop_selectors",[]).forEach((function(n){e||(t=(0,de.Z)(n),t.length>0&&(e={selector:n,levelsToSkip:0}))})),e)return n(t),e;if(e=Ir({html:Er("loopStart")}),t=(0,de.Z)(e.selector),e.selector.length>0&&t.length>0)return n(t),e;if(e={selector:'ul.products[class*="columns-"]',levelsToSkip:0},t=(0,de.Z)(e.selector),n(t),t.length>0)return e;if(e={selector:"ul.products",levelsToSkip:0},t=(0,de.Z)(e.selector),n(t),t.length>0)return e;if(0===t.length)throw new Error("Unable to determine the product loop selector.");return e})()}catch(e){const t=Er("noProductsFound"),n=Ir({html:t});n.selector.length>0&&0===(0,de.Z)(n.selector).length&&(s=e.message,_({...m.peek(),criticalErrors:[...m.peek().criticalErrors,s]}))}else if(void 0===this.loopStartSelector){const e=Er("noProductsFound");Ir({html:e}).selector.length>0&&document.location.reload()}var s;if(void 0!==this.loopStartSelector){if(n?(this.visibleProductCategories=(({loopStartSelector:e})=>{const t=[],n=wr("product_categories_selectors",[]);return n.length>0&&n.forEach((function(n){if((0,de.Z)((0,de.Z)(e.selector).first()).children(n).nodes.forEach((e=>{t.push(e.outerHTML)})),t.length>0)return t})),t})({loopStartSelector:this.loopStartSelector}),"show-more-button"!==this.paginationStrategy&&"infinite-scroll"!==this.paginationStrategy||(this.removePrParamFromSessionStorageOnTop(),this.hasUserQuery&&this.removeDefaultPagination())):(this.visibleProductIds=[],this.notRenderedIds=[],this.placeholderIds=[],this.missingCacheIds=[],this.fetchedNowIds=[],"show-more-button"!==this.paginationStrategy&&"infinite-scroll"!==this.paginationStrategy||(Object.keys(this.productIntersectionObservers).forEach((e=>{this.productIntersectionObservers[e].disconnect()})),this.productIntersectionObservers={},Sr(-1)),this.updateFilterInputsInOrderingForm(r)),t&&ls.clear(),ls.setKeySuffixByQueryItems(ws()),"show-more-button"===this.paginationStrategy||"infinite-scroll"===this.paginationStrategy){this.pr=-1;try{const e=sessionStorage.getItem("fibofilters-pr"),t=sessionStorage.getItem("fibofilters-last-page"),n=jt(window.performance.getEntriesByType("navigation"),"[0].type");isNaN(parseInt(e))||"back_forward"!==n||"product"!==t||(this.pr=parseInt(e)),sessionStorage.removeItem("fibofilters-last-page")}catch(e){}}Yr.P.doAction("fiboFilters.renderer.before_get_visible_products"),n&&this.addProductsToCache((({loopStartSelector:e})=>{const t=wr("early_products_caching",!1),n={};return(0,de.Z)(t&&void 0!==window.fibofiltersPageBody?(0,de.Z)(e.selector,window.fibofiltersPageBody).first():(0,de.Z)(e.selector).first()).children().nodes.forEach((e=>{const t=[];Ur(e,0,3,t),t.forEach((t=>{n[t]=e.outerHTML}))})),n})({loopStartSelector:this.loopStartSelector})),n&&this.visibleProductCategories.length>0&&ls.isEmpty()?_({...m.peek(),globalAppVisibility:!1}):(is({loopStartSelector:this.loopStartSelector}),this.insertProductCategories(),Mi.Z.getOutputProductIds().length>0&&"show-more-button"===this.paginationStrategy?(this.loadMoreProducts(),this.loadMoreProductsByUrl(),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.observeProducts()):Mi.Z.getOutputProductIds().length>0&&"infinite-scroll"===this.paginationStrategy?(this.loadMoreProducts(),this.loadMoreProductsByUrl(),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.observeProducts(),this.loadNextPageImmediately&&(this.showMoreProductsClicked(),this.triggerFetchMissingProducts())):"pagination"===this.paginationStrategy?(this.loadMoreProducts({append:!1}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.observeProducts(),this.observeLastProduct()):((()=>{S(!1),k(!1);const e=Er("noProductsFound");Pr({html:e,...Ir({html:Er("loopStart")})}),Cr({html:Er("paginationDummy"),hide:!0,...Ir({html:Er("paginationDummy")})}),Cr({html:Er("orderby"),hide:!0,...Ir({html:Er("orderby")})})})(),Yr.P.doAction("fiboFilters.renderer.no_results")),this.refreshResultsCount(),n&&wr("override_ordering_enabled",!1)&&(()=>{if((0,de.Z)(".woocommerce-ordering").attr("onsubmit","return false"),"function"==typeof jQuery){const e=jQuery(".woocommerce-ordering");e.on("submit",(function(){return!1})),e.find(".orderby").on("change",(function(){return!1}))}})(),o&&this.scrollTopOnChangeDebounced(),Yr.P.doAction("fiboFilters.renderer.completed"))}}insertProductCategories(){if((!this.hasUserQuery||!0!==wr("hide_categories_when_filters_active",!0))&&!("pagination"===this.paginationStrategy&&(0,h.FZ)()>1)&&this.visibleProductCategories.length>0){const e={elements:this.visibleProductCategories.map((e=>(0,de.Z)(e).nodes[0])),loopStartSelector:this.loopStartSelector};rs(e,{errorType:"error"})}}refreshResultsCount(){if(!wr("override_result_count_enabled",!0))return;const e=Mi.Z.getOutputProductIds().length;let t,n,r="";const o=wr("products_per_page",12);if("show-more-button"===this.paginationStrategy||"infinite-scroll"===this.paginationStrategy?(t=o*(0,h.AS)()-o+1,n=Math.min(e,o*((0,h.FZ)()-1))):(t=o*(0,h.FZ)()-o+1,n=Math.min(e,o*(0,h.FZ)())),0===e)return r=Er("resultCountSingleDummy"),void Cr({html:r,hide:!0,...Ir({html:r})});1===e?r=Er("resultCountSingleDummy"):1===t&&e===n?(r=Er("resultCountAllDummy"),r=r.replace("99",e)):(r=Er("resultCountRangeDummy"),r=r.replace(/(\d+)(?:\s|&nbsp;|\u00A0)*(?:&ndash;|&#8211;|&#x2013;|–|—|-)(?:\s|&nbsp;|\u00A0)*(\d+)/,`${t}&ndash;${n}`),r=r.replace(/(^|[^\d])(\d+)(?!.*\d)/,((t,n)=>`${n}${e}`)));const i=Ir({html:r});if(""===i.selector)return;const s={html:r,replace:!0,firstMatchedElement:!1,...i};Pr(s)}showMoreProductsClicked(){void 0!==this.loopStartSelector&&(this.loadMoreProducts({append:!0}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.refreshResultsCount())}showPreviousProductsClicked(){void 0!==this.loopStartSelector&&(this.loadMoreProducts({append:!1,prepend:!0}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.refreshResultsCount())}paginationClicked(e){const{page:t=1}=e||{};void 0!==this.loopStartSelector&&(I(parseInt(t+"")),vs(),this.loadMoreProducts({append:!1}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.refreshResultsCount(),this.observeLastProduct(),ss(this.loopStartSelector))}paginationPrevPageClicked(){void 0!==this.loopStartSelector&&(I((0,h.FZ)()-1),vs(),this.loadMoreProducts({append:!1}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.refreshResultsCount(),this.observeLastProduct(),ss(this.loopStartSelector))}paginationNextPageClicked(){void 0!==this.loopStartSelector&&(I((0,h.FZ)()+1),vs(),this.loadMoreProducts({append:!1}),Yr.P.doAction("fiboFilters.renderer.products_loaded",this.currentLoadedIds),this.currentLoadedIds=[],this.refreshResultsCount(),this.observeLastProduct(),ss(this.loopStartSelector))}paginationPrecacheNextPage(){(0,h.FZ)()<(0,h.gc)()&&(this.paginate({previous:!1,forcedPage:(0,h.FZ)()}),this.triggerFetchMissingProducts())}orderbyChanged(e){void 0!==this.loopStartSelector&&_s(e)}loadMoreProducts(e){const{append:t=!0,prepend:n=!1}=e||{},r=(0,h.FZ)(),o=(0,h.AS)();this.paginate({previous:n});const i={elements:this.notRenderedIds.map(((e,t)=>{if(ls.has(e)){this.currentLoadedIds.push(e);const i=ls.get(e),s=(0,de.Z)(i).data("ff-post-id",e);return 0===t&&s.data("ff-page",n?o-1:r),s.nodes[0]}this.placeholderIds.push(e);const i=(0,de.Z)(Er("productPlaceholder")).data("ff-post-id",e);return 0===t&&i.data("ff-page",n?o-1:r),i.nodes[0]})),loopStartSelector:this.loopStartSelector};this.notRenderedIds=[],n?((e,t={})=>{Pr({html:e.elements,...e.loopStartSelector,prepend:!0,...t})})(i,{errorType:"error"}):(t&&!n||(is({loopStartSelector:this.loopStartSelector}),this.insertProductCategories()),rs(i,{errorType:"error"})),os({loopStartSelector:this.loopStartSelector}),this.missingVisibleIds>0&&this.triggerFetchMissingProducts(),this.observeProducts(),_({...m.peek(),pageCounter:m.peek().pageCounter+1})}triggerFetchMissingProducts(){this.fetchMissingProducts({loopStartSelector:this.loopStartSelector})}loadMoreProductsByUrl(){if(-1===this.pr||!Mi.Z.getOutputProductIds().includes(this.pr))return;let e=0;for(;!this.visibleProductIds.includes(this.pr)&&e<100;)this.loadMoreProducts(),e+=1,this.triggerFetchMissingProducts();const t=document.querySelector(`[data-ff-post-id="${this.pr}"]`);null!==t&&t.scrollIntoView({behavior:"instant",block:"center"})}observeProducts(){"pagination"!==this.paginationStrategy&&(Object.keys(this.productIntersectionObservers).forEach((e=>{this.productIntersectionObservers[e].disconnect()})),(0,de.Z)((0,de.Z)(this.loopStartSelector.selector).first()).children(".first, [data-ff-page]").nodes.forEach((e=>{const t=(0,de.Z)(e).data("ff-post-id"),n=(0,de.Z)(e).data("ff-page");this.productIntersectionObservers[t]=new IntersectionObserver((e=>{e[0].intersectionRatio<1||(isNaN(parseInt(n))||gs(n),Sr(t))}),{root:null,threshold:1}),this.productIntersectionObservers[t].observe(e)})))}observeLastProduct(){if("pagination"!==this.paginationStrategy)return;null!==this.lastProductIntersectionObserver&&this.lastProductIntersectionObserver.disconnect();const e=(0,de.Z)((0,de.Z)(this.loopStartSelector.selector).first()).children().last();e&&!(0,de.Z)(e).hasClass("fibofilters-product-placeholder")&&setTimeout((()=>{this.lastProductIntersectionObserver=new IntersectionObserver((e=>{e[0].intersectionRatio<1||this.paginationPrecacheNextPage()}),{root:null,threshold:1}),this.lastProductIntersectionObserver.observe(e)}),400)}paginate(e){const{previous:t=!1,forcedPage:n=-1}=e||{},r=wr("products_per_page",12);let o=0,i=[];if(t?(o=((0,h.AS)()-2)*r,i=Mi.Z.getOutputProductIds().slice(o,o+r)):(o=(n>-1?n:(0,h.FZ)()-1)*r,i=Mi.Z.getOutputProductIds().slice(o,o+r)),"pagination"===this.paginationStrategy){this.visibleProductIds=[...new Set([...i])],-1===n&&(this.notRenderedIds=[...this.notRenderedIds,...i]);const e=i.filter((e=>!ls.has(e)));this.missingCacheIds=[...this.missingCacheIds,...e],this.missingVisibleIds=e.length,s=Math.ceil(Mi.Z.getOutputProductIds().length/r),_({...m.peek(),totalPages:s})}else if("show-more-button"===this.paginationStrategy||"infinite-scroll"===this.paginationStrategy)if(t){this.visibleProductIds=[...new Set([...i,...this.visibleProductIds])],this.notRenderedIds=[...this.notRenderedIds,...i];const e=i.filter((e=>!ls.has(e)));this.missingCacheIds=[...this.missingCacheIds,...e],this.missingVisibleIds=e.length,P((0,h.AS)()-1),k((0,h.AS)()>1)}else{if(this.visibleProductIds=[...new Set([...this.visibleProductIds,...i])],this.notRenderedIds=[...this.notRenderedIds,...i],1===(0,h.FZ)()){const e=i.filter((e=>!ls.has(e)));this.missingCacheIds=[...this.missingCacheIds,...e],this.missingVisibleIds=e.length}else this.missingVisibleIds=0;const e=(0,h.FZ)()*r,t=Mi.Z.getOutputProductIds().slice(e,e+r),n=t.filter((e=>!ls.has(e)));this.missingCacheIds=[...this.missingCacheIds,...n],I((0,h.FZ)()+1),S(t.length>0),k((0,h.AS)()>1)}var s}async fetchMissingProducts({loopStartSelector:e}){if(0===this.missingCacheIds.length)return;const t=this.missingCacheIds.filter((e=>!this.fetchedNowIds.includes(e)));if(0===t.length)return;const n=wr("use_trailing_slash",!0);let r=window.location.origin+"/shop"+(n?"/":"");const o=wr("single_products_fetch_url",r);""!==o&&(r=o);let i=new URL(r);i=Yr.P.applyFilters("fiboFilters.renderer.single_products_fetch_url",i),this.fetchedNowIds=[...this.fetchedNowIds,...t];const s=wr("products_fetching_strategy","single"),l=ws();"page"===s?await fetch(i.toString(),{method:"POST",cache:"no-cache",headers:{"Content-Type":"text/html"},body:JSON.stringify({"fibofilters-products":"1",ids:t,queryItems:l})}).then((e=>e.text())).then((t=>{const n=(0,de.Z)(t).find(e.selector).children(),r={};n.nodes.forEach((e=>{const t=[];Ur(e,0,3,t),t.forEach((t=>{r[t]=e.outerHTML}))})),this.addProductsToCache(r),this.overwriteProductPlaceholders(r),this.observeProducts();const o=Object.keys(r);this.fetchedNowIds=this.fetchedNowIds.filter((e=>!o.includes(e)))})).catch((()=>{this.fetchedNowIds=[]})):await fetch(i.toString(),{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({"fibofilters-products":"1",ids:t,queryItems:l})}).then((e=>e.json())).then((e=>{const t=jt(e,"products",[]);this.addProductsToCache(t),this.overwriteProductPlaceholders(t),this.observeProducts();const n=Object.keys(t);this.fetchedNowIds=this.fetchedNowIds.filter((e=>!n.includes(e)))})).catch((e=>{this.fetchedNowIds=[]}))}addProductsToCache(e){const t=Object.keys(e);0!==t.length&&(t.forEach((t=>{ls.set(t,e[t])})),this.missingCacheIds=this.missingCacheIds.filter((e=>!t.includes(e.toString()))))}overwriteProductPlaceholders(e){const t=Object.keys(e);if(0===t.length)return;const n=this.placeholderIds.filter((e=>t.includes(e.toString())));if(n.length>0){if(this.replacePlaceholders(n),os({loopStartSelector:this.loopStartSelector}),this.pr>0&&n.includes(this.pr)){const e=document.querySelector(`[data-ff-post-id="${this.pr}"]`);null!==e&&e.scrollIntoView({behavior:"instant",block:"center"})}this.observeLastProduct(),Yr.P.doAction("fiboFilters.renderer.product_placeholders_overwritten",n)}}replacePlaceholders(e){e.forEach((e=>{const t=(0,de.Z)(`.fibofilters-product-placeholder[data-ff-post-id="${e}"]`).data("ff-page"),n=ls.get(e),r=(0,de.Z)(n).data("ff-post-id",e);var o;isNaN(parseInt(t))||r.data("ff-page",t),o={html:r.nodes[0],selector:`.fibofilters-product-placeholder[data-ff-post-id="${e}"]`,levelsToSkip:0},Pr({html:o.html,selector:o.selector,levelsToSkip:o.levelsToSkip,replace:!0})}))}updateFilterInputsInOrderingForm(e){if(wr("override_ordering_enabled",!1))return;const t=ai.getAllFilterUrlSlugs();ai.getAllFilterUrlSlugs().forEach((e=>{(0,de.Z)(`.woocommerce-ordering input[name="${e}"]`).remove()}));const n=e.filter((e=>t.includes(e.key)));if(n.length>0){const e={html:n.map((e=>`<input type="hidden" name="${e.key}" value="${e.valueRaw}">`)).join(""),firstMatchedElement:!1,selector:".woocommerce-ordering",levelsToSkip:0,append:!0};Pr(e)}}removePrParamFromSessionStorageOnTop(){window.addEventListener("scroll",function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ns(e,t,{leading:r,maxWait:t,trailing:o})}((()=>{const e=window.scrollY||document.documentElement.scrollTop;e<this.lastScrollTop&&window.scrollY<100&&window.scrollY<100&&Sr(-1),this.lastScrollTop=e<=0?0:e}),300))}removeDefaultPagination(){(0,de.Z)(".woocommerce-pagination").remove()}registerExternalInteractions(){Yr.P.addAction("fiboFilters.renderer.fix_product_classes","fibofilters",(()=>{void 0!==this.loopStartSelector&&os({loopStartSelector:this.loopStartSelector})})),Yr.P.addAction("fiboFilters.renderer.open_offcanvas","fibofilters",(()=>{v()})),(0,de.Z)(document).on("click keydown",'[data-fibofilters="open-offcanvas"]',(e=>{("click"===e.type||"keydown"===e.type&&"Enter"===e.key)&&(e.preventDefault(),v())})),Yr.P.addAction("fiboFilters.renderer.open_mobile_overlay","fibofilters",(()=>{x(!0,{})})),(0,de.Z)(document).on("click keydown",'[data-fibofilters="open-mobile-overlay"]',(e=>{("click"===e.type||"keydown"===e.type&&"Enter"===e.key)&&(e.preventDefault(),x(!0,{}))}))}},cs=new class{filtersCache={};context;getVars;user_query;async handleRequest(e){const{firstLoad:t=!0,clearProductsCache:n=!1,queryItems:r=[],inputChange:o=!1}=e;if(this.getVars={},this.user_query=[],t||(Qi.clearInstances(),Mi.Z.clear()),t){let e=yr("filters","",[]);const t=wr("hidden_filters_by_id",[]);Array.isArray(t)&&t.length>0&&(e=e.filter((e=>!t.includes(e.id))));const n=wr("hidden_filters_by_slug",[]);Array.isArray(n)&&n.length>0&&(e=e.filter((e=>!n.includes(e.url_slug)))),ai.setFilters(e),this.context=yr("context","",[])}this.sanitizeAndSetGetVars({firstLoad:t});const i=((e,t=0)=>{let n=3735928559^t,r=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),n=Math.imul(n^t,2654435761),r=Math.imul(r^t,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),4294967296*(2097151&r)+(n>>>0)})(JSON.stringify(this.getVars));if(void 0!==this.filtersCache[`${i}-filters`]&&void 0!==this.filtersCache[`${i}-query-data-store`])return ds(so(this.filtersCache[`${i}-filters`])),Mi.Z.setDataFromCache(so(this.filtersCache[`${i}-query-data-store`])),void as.process({firstLoad:t,clearProductsCache:n,queryItems:r});if(t){let e=await this.getStoreDescriptors();if(wr("single_variations_support",!1)){const t=yr("base_products_ids","",[]),n={};Object.keys(e).forEach((r=>{if(void 0===e[r][r]){if(t.includes(parseInt(r))){for(const t in e[r])e[r].hasOwnProperty(t)&&(e[r][t].type="variable");n[r]={...e[r]}}Object.keys(e[r]).forEach((o=>{t.includes(parseInt(o))&&(n.hasOwnProperty(o)||(n[o]={}),n[o][o]={...e[r][o],type:"variation"})}))}else n[r]={},n[r][r]={...e[r][r],type:"simple"}})),e=n}Mi.Z.setStoreProductDescriptors(e),Object.keys(e).length>0&&Yr.P.doAction("fiboFilters.core.descriptors_loaded"),Mi.Z.setBaseProductsData(yr("base_products_ids","",[])),Mi.Z.setRootBaseProductsIds(yr("root_base_products_ids","",[]))}const s=new Date;Qi.setFilterInstancesByHttpGetParams(this.getVars);const l=Qi.getSourceIdsOfCurrentFilters();Qi.setFilterInstancesByContext(this.context);const a=Qi.getSourceIdsOfCurrentFilters().filter((e=>!l.includes(e)));if(this.user_query=Qi.createComplexQuery(),0===this.user_query.length?Mi.Z.setFilteredAsBaseProducts():Mi.Z.setFilteredProducts(zi.filterLinearly(this.user_query)),wr("override_ordering_enabled",!1)){const e=(0,h.tV)();!t&&e.length>0&&Xi.sortProducts(e)}Mi.Z.setOutputProductIds();const c=zi.getSourcesToShow(l,a);Qi.setFilterInstancesBySourceIds(c);const u=Qi.groupFiltersByCounterType();if(u.hasOwnProperty("default-counter")){const e=Qi.calcDefaultCounters(u["default-counter"]);Object.keys(e).forEach((t=>{Qi.getInstanceBySourceId(parseInt(t)).updateCounters(e[t])}))}u.hasOwnProperty("extended-counter")&&u["extended-counter"].forEach((e=>{const t=Qi.calcExtendedCounters(e);e.updateCounters(t)})),u.hasOwnProperty("category-counter")&&u["category-counter"].forEach((e=>{const t=Qi.getCategoryCounters(e);e.updateCounters(t)})),u.hasOwnProperty("range-counter")&&u["range-counter"].forEach((e=>{e.setValues(Qi.getDescriptorsForRange(e.getId()))})),Qi.setSelectedFilterValues(),Qi.hideZeroValues(),Qi.removeEmptyFilters(this.context,Mi.Z.hasFilteredProducts()),Qi.sortFiltersByOrder(),Qi.sortFilterValues(),Qi.numberFilterValues(),Qi.calcValuesLevels(),Qi.collapseFilters(),Qi.collapseFiltersOverrides(),new Date-s>100?(this.filtersCache[`${i}-filters`]=Qi.getFiltersData("front"),this.filtersCache[`${i}-query-data-store`]=Mi.Z.getDataToCache(),ds(so(this.filtersCache[`${i}-filters`]))):ds(Qi.getFiltersData("front")),Yr.P.doAction("fiboFilters.core.filters_calculated"),(0,de.Z)(".fibofilters-skeleton").remove(),as.process({firstLoad:t,clearProductsCache:n,queryItems:r,inputChange:o,hasUserQuery:this.user_query.length>0})}sanitizeAndSetGetVars(e){const{firstLoad:t=!0}=e||{},n=new URL(document.location.href),r=n.searchParams.keys();let o=!1;if("pagination"===wr("pagination_strategy")||"show-more-button"===wr("pagination_strategy")||"infinite-scroll"===wr("pagination_strategy")){const e=wr("pagination_base"),t=n.pathname.match(new RegExp(e+"/(?<page>\\d+)")),r=parseInt(jt(t,"groups.page",-1));!isNaN(r)&&r>0&&(I(r),P(r),o=!0)}for(const e of r){const t=n.searchParams.get(e),r=ai.getFilterPropByAnother("type","url_slug",e);this.getVars[mo(e)]="search"===r?t:t.split(",").map((e=>mo(e))).join(",")}if(wr("override_ordering_enabled",!1)&&this.getVars.hasOwnProperty("orderby")){const e=wr("catalog_orderedby",{});"object"==typeof e&&Object.keys(e).includes(this.getVars.orderby)&&C(this.getVars.orderby)}t||o||"pagination"!==wr("pagination_strategy")||I(1)}async clearDescriptorsCache(e){const t=await e.keys();if(t.length>0)for(let n=0;n<t.length;n++)(t[n].url.includes("filters-descriptors-")||t[n].url.includes("filters/descriptors"))&&await e.delete(t[n])}async getStoreDescriptors(){const e=wr("descriptors_endpoint").toString(),t=wr("descriptors_json_url").toString(),n=wr("updated_descriptors_endpoint").toString(),r=wr("descriptors_data_fake_url").toString();try{void 0!==window.fibofiltersFetchingDescriptors&&window.fibofiltersFetchingDescriptors&&await(o=()=>!window.fibofiltersFetchingDescriptors,new Promise(((e,t)=>{let n=!0;const r=async()=>{const t=await o();if(t)return e(t);n&&setTimeout(r,20)};r()})));const i=await caches.open("fibofilters"),s=await i.match(r);let l;void 0!==s?(l=await s.json(),(jt(l,"indexBuildId","")!==wr("index_build_id")||wr("refetch_descriptors_after_update",!1)&&wr("last_updated_date").length>0&&jt(l,"lastUpdatedDate","")!==wr("last_updated_date"))&&await this.clearDescriptorsCache(i)):await this.clearDescriptorsCache(i);let a=await i.match(e);if(void 0===a){let n;try{if(0===t.length)throw new TypeError("Undefined JSON URL");const e=new URL(t);if(wr("last_updated_date").length>0&&e.searchParams.append("last-modified",wr("last_updated_date").replace(/[: -]/g,"")),n=await fetch(e.href),!n.ok)throw new TypeError("Invalid server response (JSON)")}catch(t){if(n=await fetch(e),!n.ok)throw new TypeError("Invalid server response (REST API)")}a=n.clone(),await i.put(r,new Response(JSON.stringify({indexBuildId:wr("index_build_id"),lastUpdatedDate:wr("last_updated_date")}))),await i.put(e,n)}else if(wr("last_updated_date").length>0&&jt(l,"lastUpdatedDate","")!==wr("last_updated_date")){const t=new URL(n);jt(l,"lastUpdatedDate","").length>0&&t.searchParams.append("date_start",jt(l,"lastUpdatedDate","")),t.searchParams.append("date_end",wr("last_updated_date"));const o=await fetch(t.href);if(!o.ok)throw new TypeError("Invalid server response");const s=await a.json(),c=await o.json();c.deleted.length>0&&c.deleted.map((e=>delete s[e])),Object.keys(c.descriptors).length>0&&Object.keys(c.descriptors).forEach((e=>{s[e]=c.descriptors[e]})),await i.put(e,new Response(JSON.stringify(s))),a=new Response(JSON.stringify(s)),await i.put(r,new Response(JSON.stringify({indexBuildId:wr("index_build_id"),lastUpdatedDate:wr("last_updated_date")})))}return a.json()}catch(t){if("Invalid server response (REST API)"===t.message)return{};try{const t=await fetch(e);if(!t.ok)throw new TypeError("Invalid server response");return t.json()}catch(e){return{}}}var o}};const{filtersState:us}=(0,lo.G)(),ds=e=>{us.value=e},fs=e=>{const{filterID:t,type:n,skipProcess:r=!1}=e;let o={};switch(n){case"range":const{value:n}=e;o=io()(us.value,{filters:{[t]:{range:{$set:n}}}});break;case"search":const{phrase:r}=e;o=io()(us.value,{filters:{[t]:{phrase:{$set:r}}}});break;case"checkboxes":case"color":case"buttons":case"radio":case"select":case"toggle":const{index:i,newState:s,unselectOthers:l=!1}=e;o=ps({filterID:t,index:i,newState:s,unselectOthers:l})}I(1),P(1),Yr.P.hasAction("fiboFilters.core.state_updated")&&Yr.P.doAction("fiboFilters.core.state_updated",e,so(us.value),so(o)),ds(o),r||ms(o)},ps=({filterID:e,index:t,newState:n,unselectOthers:r=!1,initialFiltersState:o=!1})=>{let i=!1;return o=o||us.value,r&&(i=io()(o,{filters:{[e]:{values:{$apply:e=>e.map((e=>(e.selected=!1,e)))}}}})),!1!==t&&(i=io()(i||o,{filters:{[e]:{values:{[t]:{selected:{$set:n}}}}}})),i},hs=(e,t=!1)=>{let n=us.value;e.map((e=>{switch(e._filterType){case"range":n=t?io()(n,{filters:{[e._filterID]:{range:{$set:{min:"",max:""}}}}}):io()(n,{filters:{[e._filterID]:{range:{$set:e.value}}}});break;case"search":n=io()(n,{filters:{[e._filterID]:{phrase:{$set:""}}}});break;default:n=void 0!==e._defaultValueIndex?ps({filterID:e._filterID,index:e._defaultValueIndex,newState:!0,unselectOthers:!0,initialFiltersState:n}):ps({filterID:e._filterID,index:e._index,newState:!1,unselectOthers:!1,initialFiltersState:n})}return!0})),Yr.P.hasAction("fiboFilters.core.state_updated_after_clearing_applied_filters")&&Yr.P.doAction("fiboFilters.core.state_updated_after_clearing_applied_filters",e,so(us.value),so(n)),I(1),ds(n),ms(n)},ms=e=>{const{queryString:t,pathname:n,queryItems:r}=ys(e);kr(t,n),cs.handleRequest({firstLoad:!1,queryItems:r,inputChange:!0})},_s=e=>{I(1),P(1),C(e);const{queryString:t,pathname:n,queryItems:r}=ys();kr(t,n),cs.handleRequest({firstLoad:!1,queryItems:r,inputChange:!0})},vs=()=>{const{queryString:e,pathname:t}=ys();kr(e,t)},gs=(e=-1)=>{const{queryString:t,pathname:n}=ys(!1,e);kr(t,n,!0)},bs=(e=-1)=>{const{queryString:t,pathname:n}=ys(!1,e);return""===t?n:`${n}?${t}`},ys=(e=!1,t=-1)=>{e=e||us.value;let n="pagination"===wr("pagination_strategy")?(0,h.FZ)():-1;t>0&&(n=t);const r=(0,h.tV)(),o=xr(e,r),i=o.length>0?o.map((e=>`${e.key}=${e.valueEncoded}`)).join("&"):"",s=((e=-1)=>{let t=window.location.pathname;const n=wr("pagination_base"),r=wr("use_trailing_slash",!0),o=t.indexOf(`/${n}/`);return o>-1&&(t=t.substring(0,o+1)),e>1&&(t+=`${t.endsWith("/")?"":"/"}${n}/${e}`),t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&(t+="/"),t})(n);return{queryString:i,pathname:s,queryItems:o}},ws=()=>xr(us.value,"");var Es=n(34),xs=()=>{const{appState:e}=(0,p.Ix)(),{filtersState:t}=(0,Es.F0)(),n=t.value.filters,o=e.value.appliedFiltersCount,s=e.value.appliedFiltersValues;(0,i.d4)((()=>{const e={};if(0===n.length)return y([]),void b(0);Object.keys(n).map((t=>n[t].values.map(((n,r)=>(n.default&&(e[t]=r),n)))));const t=Object.keys(n).map((t=>{if("category"===n[t].type)return[];if("range"===n[t].type&&"price"===n[t].source&&(n[t].range.min>0||n[t].range.max>0)){const e=[];return n[t].range.min>0&&e.push({_filterID:t,_filterType:n[t].type,_label_in_applied_filters:n[t].label,label:Gr(/* translators: %s: range from */
Qr("from %s","[front] Used in price range e.g. from $20 to $50.","fibofilters"),Nr(n[t].range.min)),value:{min:"",max:n[t].range.max>0?n[t].range.max:""}}),n[t].range.max>0&&e.push({_filterID:t,_filterType:n[t].type,_label_in_applied_filters:n[t].label,label:Gr(/* translators: %s: range to */
Qr("to %s","[front] Used in price range e.g. from $20 to $50.","fibofilters"),Nr(n[t].range.max)),value:{min:n[t].range.min>0?n[t].range.min:"",max:""}}),e}if("range"===n[t].type&&(n[t].range.min>0||n[t].range.max>0)){var r;const e=[],o=null===(r=n[t].use_global_number_format)||void 0===r||r,i=o||null===n[t].number_precision?0:n[t].number_precision,s=o||null===n[t].number_prefix?"":n[t].number_prefix,l=o||null===n[t].number_suffix?"":n[t].number_suffix;return n[t].range.min>0&&e.push({_filterID:t,_filterType:n[t].type,_label_in_applied_filters:n[t].label,label:Gr(/* translators: %s: range from */
Qr("from %s","[front] Used in number range e.g. from 20 to 50.","fibofilters"),Rr(n[t].range.min,t,i,s,l)),value:{min:"",max:n[t].range.max>0?n[t].range.max:""}}),n[t].range.max>0&&e.push({_filterID:t,_filterType:n[t].type,_label_in_applied_filters:n[t].label,label:Gr(/* translators: %s: range to */
Qr("to %s","[front] Used in number range e.g. from 20 to 50.","fibofilters"),Rr(n[t].range.max,t,i,s,l)),value:{min:n[t].range.min>0?n[t].range.min:"",max:""}}),e}return"search"===n[t].type&&n[t]?.phrase?.length>0?[{_filterID:t,_filterType:n[t].type,_label_in_applied_filters:!!n[t].label_in_applied_filters&&n[t].label,label:n[t].phrase}]:n[t].values.map(((r,o)=>(r._filterID=t,r._filterType=n[t].type,r._index=o,r._label_in_applied_filters=!!n[t].label_in_applied_filters&&n[t].label,void 0!==e[t]&&(r._defaultValueIndex=e[t]),r))).filter((e=>!e.alwaysSelected)).filter((e=>e.value.length>0&&e.selected))})),r=t.reduce(((e,t)=>e.concat(t)));y(r),b(r.length)}),[n]);const l=[`${gr}-applied-filters`];return 0===s.length?null:(0,r.createElement)("div",{className:l.join(" ")},s.map((e=>(0,r.createElement)(ro,{deletable:!0,key:`${e._filterID}-${e.label}`,onClick:()=>hs([e]),value:e}))),o>1?(0,r.createElement)(ro,{onClick:()=>hs(s,!0),value:{label:Qr("Clear all","[front]","fibofilters"),_label_in_applied_filters:!1}}):null)},Ss=({counter:e})=>{const t="brackets"===wr("counter_format");return(0,r.createElement)("div",{className:`${br.item}__counter`},t&&(0,r.createElement)("span",{className:`${br.item}__counter_bracket`},"("),e,t&&(0,r.createElement)("span",{className:`${br.item}__counter_bracket`},")"))},ks=({item:e,queryString:t=""})=>{const n=[br.item,`${br.item}--link`];return e.selected&&n.push(br.selected),e.disabled&&n.push(br.disabled),(0,r.createElement)("li",{className:n.join(" ")},(0,r.createElement)("a",{className:`${br.item}__interactive`,href:t.length>0?`${e.url}?${t}`:e.url,title:A(e.label),tabIndex:"0"},(0,r.createElement)("div",{className:`${br.item}__label`},(0,r.createElement)("span",null,A(e.label)))),wr("show_count")&&(0,r.createElement)(Ss,{counter:e.counter}))};function Is(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Is(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ps(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Is(e))&&(r&&(r+=" "),r+=t);return r}var Cs=Ps,Os=(0,r.createElement)(d,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 8"},(0,r.createElement)(u,{d:"M13 7 7 1 1 7",stroke:"#767676",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),As=(0,r.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u,{d:"M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"}));function Fs(e){return js(e)?(e.nodeName||"").toLowerCase():"#document"}function $s(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ns(e){var t;return null==(t=(js(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function js(e){return e instanceof Node||e instanceof $s(e).Node}function Rs(e){return e instanceof Element||e instanceof $s(e).Element}function Ds(e){return e instanceof HTMLElement||e instanceof $s(e).HTMLElement}function Ls(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof $s(e).ShadowRoot)}function Ts(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ms(e){return["table","td","th"].includes(Fs(e))}function Vs(e){const t=Us(),n=Bs(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Us(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Zs(e){return["html","body","#document"].includes(Fs(e))}function Bs(e){return $s(e).getComputedStyle(e)}function Hs(e){return Rs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zs(e){if("html"===Fs(e))return e;const t=e.assignedSlot||e.parentNode||Ls(e)&&e.host||Ns(e);return Ls(t)?t.host:t}function qs(e){const t=zs(e);return Zs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ds(t)&&Ts(t)?t:qs(t)}function Ws(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=qs(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=$s(o);return i?t.concat(s,s.visualViewport||[],Ts(o)?o:[],s.frameElement&&n?Ws(s.frameElement):[]):t.concat(o,Ws(o,[],n))}function Ys(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Js(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ls(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ks(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Qs(e){return!(0!==e.mozInputSource||!e.isTrusted)||(el()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Xs(e){return!el()&&0===e.width&&0===e.height||el()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType}function Gs(){return/apple/i.test(navigator.vendor)}function el(){const e=/android/i;return e.test(Ks())||e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())}function tl(){return Ks().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function nl(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function rl(e){return(null==e?void 0:e.ownerDocument)||document}function ol(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function il(e){return"composedPath"in e?e.composedPath()[0]:e.target}const sl="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ll(e){return Ds(e)&&e.matches(sl)}function al(e){e.preventDefault(),e.stopPropagation()}function cl(e){return!!e&&"combobox"===e.getAttribute("role")&&ll(e)}const ul=Math.min,dl=Math.max,fl=Math.round,pl=Math.floor,hl=e=>({x:e,y:e}),ml={left:"right",right:"left",bottom:"top",top:"bottom"},_l={start:"end",end:"start"};function vl(e,t,n){return dl(e,ul(t,n))}function gl(e,t){return"function"==typeof e?e(t):e}function bl(e){return e.split("-")[0]}function yl(e){return e.split("-")[1]}function wl(e){return"x"===e?"y":"x"}function El(e){return"y"===e?"height":"width"}function xl(e){return["top","bottom"].includes(bl(e))?"y":"x"}function Sl(e){return wl(xl(e))}function kl(e){return e.replace(/start|end/g,(e=>_l[e]))}function Il(e){return e.replace(/left|right|bottom|top/g,(e=>ml[e]))}function Pl(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ol(e,t,n){let{reference:r,floating:o}=e;const i=xl(t),s=Sl(t),l=El(s),a=bl(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(yl(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1)}return p}async function Al(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=gl(t,e),h=Pl(p),m=l[f?"floating"===d?"reference":"floating":d],_=Cl(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),v="floating"===d?{...s.floating,x:r,y:o}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},y=Cl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:a}):v);return{top:(_.top-y.top+h.top)/b.y,bottom:(y.bottom-_.bottom+h.bottom)/b.y,left:(_.left-y.left+h.left)/b.x,right:(y.right-_.right+h.right)/b.x}}const Fl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=bl(n),l=yl(n),a="y"===xl(n),c=["left","top"].includes(s)?-1:1,u=i&&a?-1:1,d=gl(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),a?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}};function $l(e){const t=Bs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ds(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=fl(n)!==i||fl(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Nl(e){return Rs(e)?e:e.contextElement}function jl(e){const t=Nl(e);if(!Ds(t))return hl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$l(t);let s=(i?fl(n.width):n.width)/r,l=(i?fl(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Rl=hl(0);function Dl(e){const t=$s(e);return Us()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Rl}function Ll(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Nl(e);let s=hl(1);t&&(r?Rs(r)&&(s=jl(r)):s=jl(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$s(e))&&t}(i,n,r)?Dl(i):hl(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=$s(i),t=r&&Rs(r)?$s(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=jl(n),t=n.getBoundingClientRect(),r=Bs(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;a*=e.x,c*=e.y,u*=e.x,d*=e.y,a+=o,c+=i,n=$s(n).frameElement}}return Cl({width:u,height:d,x:a,y:c})}function Tl(e){return Ll(Ns(e)).left+Hs(e).scrollLeft}function Ml(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$s(e),r=Ns(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const e=Us();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}(e,n);else if("document"===t)r=function(e){const t=Ns(e),n=Hs(e),r=e.ownerDocument.body,o=dl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=dl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Tl(e);const l=-n.scrollTop;return"rtl"===Bs(r).direction&&(s+=dl(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}(Ns(e));else if(Rs(t))r=function(e,t){const n=Ll(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ds(e)?jl(e):hl(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Dl(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cl(r)}function Vl(e,t){const n=zs(e);return!(n===t||!Rs(n)||Zs(n))&&("fixed"===Bs(n).position||Vl(n,t))}function Ul(e,t,n){const r=Ds(t),o=Ns(t),i="fixed"===n,s=Ll(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=hl(0);if(r||!r&&!i)if(("body"!==Fs(t)||Ts(o))&&(l=Hs(t)),r){const e=Ll(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=Tl(o));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Zl(e,t){return Ds(e)&&"fixed"!==Bs(e).position?t?t(e):e.offsetParent:null}function Bl(e,t){const n=$s(e);if(!Ds(e))return n;let r=Zl(e,t);for(;r&&Ms(r)&&"static"===Bs(r).position;)r=Zl(r,t);return r&&("html"===Fs(r)||"body"===Fs(r)&&"static"===Bs(r).position&&!Vs(r))?n:r||function(e){let t=zs(e);for(;Ds(t)&&!Zs(t);){if(Vs(t))return t;t=zs(t)}return null}(e)||n}const Hl={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ds(n),i=Ns(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},l=hl(1);const a=hl(0);if((o||!o&&"fixed"!==r)&&(("body"!==Fs(n)||Ts(i))&&(s=Hs(n)),Ds(n))){const e=Ll(n);l=jl(n),a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+a.x,y:t.y*l.y-s.scrollTop*l.y+a.y}},getDocumentElement:Ns,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Ws(e,[],!1).filter((e=>Rs(e)&&"body"!==Fs(e))),o=null;const i="fixed"===Bs(e).position;let s=i?zs(e):e;for(;Rs(s)&&!Zs(s);){const t=Bs(s),n=Vs(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ts(s)&&!n&&Vl(e,s))?r=r.filter((e=>e!==s)):o=t,s=zs(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],l=i.reduce(((e,n)=>{const r=Ml(t,n,o);return e.top=dl(r.top,e.top),e.right=ul(r.right,e.right),e.bottom=ul(r.bottom,e.bottom),e.left=dl(r.left,e.left),e}),Ml(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Bl,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Bl,i=this.getDimensions;return{reference:Ul(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$l(e);return{width:t,height:n}},getScale:jl,isElement:Rs,isRTL:function(e){return"rtl"===Bs(e).direction}};function zl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,c=Nl(e),u=o||i?[...c?Ws(c):[],...Ws(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const o=Ns(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(l,a){void 0===l&&(l=!1),void 0===a&&(a=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-pl(u)+"px "+-pl(o.clientWidth-(c+d))+"px "+-pl(o.clientHeight-(u+f))+"px "+-pl(c)+"px",threshold:dl(0,ul(1,a))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==a){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),c&&!a&&h.observe(c),h.observe(t));let m=a?Ll(e):null;return a&&function t(){const r=Ll(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),h&&h.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const ql=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=gl(e,t),c={x:n,y:r},u=await Al(t,a),d=xl(bl(o)),f=wl(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=vl(p+u["y"===f?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";h=vl(h+u["y"===d?"top":"left"],h,h-u[e])}const m=l.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Wl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,..._}=gl(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=bl(o),g=bl(l)===l,b=await(null==a.isRTL?void 0:a.isRTL(c.floating)),y=f||(g||!m?[Il(l)]:function(e){const t=Il(e);return[kl(e),t,kl(t)]}(l));f||"none"===h||y.push(...function(e,t,n,r){const o=yl(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(bl(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(kl)))),i}(l,m,h,b));const w=[l,...y],E=await Al(t,_),x=[];let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&x.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=yl(e),o=Sl(e),i=El(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Il(s)),[s,Il(s)]}(o,s,b);x.push(E[e[0]],E[e[1]])}if(S=[...S,{placement:o,overflows:x}],!x.every((e=>e<=0))){var k,I;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(I=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},Yl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:c,padding:u=0}=gl(e,t)||{};if(null==c)return{};const d=Pl(u),f={x:n,y:r},p=Sl(o),h=El(p),m=await s.getDimensions(c),_="y"===p,v=_?"top":"left",g=_?"bottom":"right",b=_?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let x=E?E[b]:0;x&&await(null==s.isElement?void 0:s.isElement(E))||(x=l.floating[b]||i.floating[h]);const S=y/2-w/2,k=x/2-m[h]/2-1,I=ul(d[v],k),P=ul(d[g],k),C=I,O=x-m[h]-P,A=x/2-m[h]/2+S,F=vl(C,A,O),$=!a.arrow&&null!=yl(o)&&A!=F&&i.reference[h]/2-(A<C?I:P)-m[h]/2<0,N=$?A<C?A-C:A-O:0;return{[p]:f[p]+N,data:{[p]:F,centerOffset:A-F-N,...$&&{alignmentOffset:N}},reset:$}}}),Jl=(e,t,n)=>{const r=new Map,o={platform:Hl,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ol(c,r,a),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:_,y:v,data:g,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=_?_:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...g}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=Ol(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},Kl=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Yl({element:n.current,padding:r}).fn(t):{}:n?Yl({element:n,padding:r}).fn(t):{};var o}});var Ql="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Xl(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Xl(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Gl(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ea(e,t){const n=Gl(e);return Math.round(t*n)/n}function ta(e){const t=r.useRef(e);return Ql((()=>{t.current=e})),t}var na=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ra="undefined"==typeof Element,oa=ra?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ia=!ra&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},sa=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},la=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!sa(s,!1))if("SLOT"===s.tagName){var l=s.assignedElements(),a=e(l.length?l:s.children,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else{oa.call(s,na)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!sa(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},aa=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ca=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!aa(e)?0:e.tabIndex},ua=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},da=function(e){return"INPUT"===e.tagName},fa=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},pa=function(e,t){return!(t.disabled||sa(t)||function(e){return da(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=oa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(oa.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return fa(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,l=ia(e);if(s&&!s.shadowRoot&&!0===r(s))return fa(e);e=e.assignedSlot?e.assignedSlot:s||l===e.ownerDocument?s:l.host}e=i}if(function(e){var t,n,r,o,i=e&&ia(e),s=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&s;){var a,c,u;l=!(null===(c=s=null===(a=i=ia(s))||void 0===a?void 0:a.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!oa.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},ha=function(e,t){return!(function(e){return function(e){return da(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ia(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||ca(t)<0||!pa(e,t))},ma=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},_a=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,l=function(e,t){var n=ca(e);return n<0&&t&&!aa(e)?0:n}(s,i),a=i?e(t.candidates):s;0===l?i?n.push.apply(n,a):n.push(s):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:a})})),r.sort(ua).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},va=function(e,t){var n;return n=(t=t||{}).getShadowRoot?la([e],t.includeContainer,{filter:ha.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ma}):function(e,t,n){if(sa(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(na));return t&&oa.call(e,na)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,ha.bind(null,t)),_a(n)};function ga(e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ba=r["useInsertionEffect".toString()]||(e=>e());function ya(e){const t=r.useRef((()=>{}));return ba((()=>{t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const wa="ArrowUp",Ea="ArrowDown",xa="ArrowLeft",Sa="ArrowRight";function ka(e,t,n){return Math.floor(e/t)!==n}function Ia(e,t){return t<0||t>=e.current.length}function Pa(e,t){return Oa(e,{disabledIndices:t})}function Ca(e,t){return Oa(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Oa(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current,l=o?e=>o.includes(e):e=>{const t=s[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&l(a));return a}function Aa(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e);switch(o){case"tl":return i;case"tr":return i+t[e].width-1;case"bl":return i+(t[e].height-1)*r;case"br":return n.lastIndexOf(e)}}function Fa(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}let $a=0;function Na(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame($a);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():$a=requestAnimationFrame(i)}var ja="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Ra(){return Ra=Object.assign?Object.assign.bind():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},Ra.apply(this,arguments)}let Da=!1,La=0;const Ta=()=>"floating-ui-"+La++,Ma=r["useId".toString()]||function(){const[e,t]=r.useState((()=>Da?Ta():void 0));return ja((()=>{null==e&&t(Ta())}),[]),r.useEffect((()=>{Da||(Da=!0)}),[]),e};const Va=r.createContext(null),Ua=r.createContext(null),Za=()=>{var e;return(null==(e=r.useContext(Va))?void 0:e.id)||null},Ba=()=>r.useContext(Ua);function Ha(e){return"data-floating-ui-"+e}function za(e){const t=(0,r.useRef)(e);return ja((()=>{t.current=e})),t}const qa=Ha("safe-polygon");function Wa(e,t,n){return n&&!nl(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ya(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Ja=new WeakMap,Ka=new WeakSet,Qa={},Xa=0;const Ga=e=>e&&(e.host||Ga(e.parentNode)),ec=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Ga(t);return e.contains(n)?n:null})).filter((e=>null!=e));function tc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=rl(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=ec(t,e),l=new Set,a=new Set(s),c=[];Qa[o]||(Qa[o]=new WeakMap);const u=Qa[o];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!a.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Ja.get(t)||0)+1,s=(u.get(t)||0)+1;Ja.set(t,r),u.set(t,s),c.push(t),1===r&&n&&Ka.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Xa++,()=>{c.forEach((e=>{const t=(Ja.get(e)||0)-1,n=(u.get(e)||0)-1;Ja.set(e,t),u.set(e,n),t||(!Ka.has(e)&&i&&e.removeAttribute(i),Ka.delete(e)),n||e.removeAttribute(o)})),Xa--,Xa||(Ja=new WeakMap,Ja=new WeakMap,Ka=new WeakSet,Qa={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const nc=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function rc(e,t){const n=va(e,nc());"prev"===t&&n.reverse();const r=n.indexOf(Ys(rl(e)));return n.slice(r+1)[0]}function oc(){return rc(document.body,"next")}function ic(){return rc(document.body,"prev")}function sc(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Js(n,r)}function lc(e){va(e,nc()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ac(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const cc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function uc(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const dc=r.forwardRef((function(e,t){const[n,o]=r.useState();ja((()=>(Gs()&&o("button"),document.addEventListener("keydown",uc),()=>{document.removeEventListener("keydown",uc)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ha("focus-guard")]:"",style:cc};return r.createElement("span",Ra({},e,i))})),fc=r.createContext(null);function pc(e){let{children:t,id:n,root:o=null,preserveTabOrder:i=!0}=e;const s=function(e){let{id:t,root:n}=void 0===e?{}:e;const[o,i]=r.useState(null),s=Ma(),l=hc(),a=r.useMemo((()=>({id:t,root:n,portalContext:l,uniqueId:s})),[t,n,l,s]),c=r.useRef();return ja((()=>()=>{null==o||o.remove()}),[o,a]),ja((()=>{if(c.current===a)return;c.current=a;const{id:e,root:t,portalContext:n,uniqueId:r}=a,o=e?document.getElementById(e):null,s=Ha("portal");if(o){const e=document.createElement("div");e.id=r,e.setAttribute(s,""),o.appendChild(e),i(e)}else{let o=t||(null==n?void 0:n.portalNode);o&&!Rs(o)&&(o=o.current),o=o||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,o.appendChild(l));const a=document.createElement("div");a.id=r,a.setAttribute(s,""),o=l||o,o.appendChild(a),i(a)}}),[a]),o}({id:n,root:o}),[l,a]=r.useState(null),c=r.useRef(null),u=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=!!l&&!l.modal&&l.open&&i&&!(!o&&!s);return r.useEffect((()=>{if(s&&i&&(null==l||!l.modal))return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&sc(e)&&("focusin"===e.type?ac:lc)(s)}}),[s,i,null==l?void 0:l.modal]),r.createElement(fc.Provider,{value:r.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:s,setFocusManagerState:a})),[i,s])},p&&s&&r.createElement(dc,{"data-type":"outside",ref:c,onFocus:e=>{if(sc(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=ic()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),p&&s&&r.createElement("span",{"aria-owns":s.id,style:cc}),s&&(0,r.createPortal)(t,s),p&&s&&r.createElement(dc,{"data-type":"outside",ref:u,onFocus:e=>{if(sc(e,s)){var t;null==(t=f.current)||t.focus()}else{const t=oc()||(null==l?void 0:l.refs.domReference.current);null==t||t.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1,e.nativeEvent))}}}))}const hc=()=>r.useContext(fc),mc=20;let _c=[];function vc(e){_c=_c.filter((e=>e.isConnected)),e&&"body"!==Fs(e)&&(_c.push(e),_c.length>mc&&(_c=_c.slice(-mc)))}function gc(){return _c.slice().reverse().find((e=>e.isConnected))}const bc=r.forwardRef((function(e,t){return r.createElement("button",Ra({},e,{type:"button",ref:t,tabIndex:-1,style:cc}))}));function yc(e){const{context:t,children:n,disabled:o=!1,order:i=["content"],guards:s=!0,initialFocus:l=0,returnFocus:a=!0,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:f,refs:p,nodeId:h,onOpenChange:m,events:_,dataRef:v,elements:{domReference:g,floating:b}}=t,y="number"==typeof l&&l<0,w=cl(g)&&y,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||s,x=za(i),S=za(l),k=za(a),I=Ba(),P=hc(),C=r.useRef(null),O=r.useRef(null),A=r.useRef(!1),F=r.useRef(!1),$=null!=P,N=r.useCallback((function(e){return void 0===e&&(e=b),e?va(e,nc()):[]}),[b]),j=r.useCallback((e=>{const t=N(e);return x.current.map((e=>g&&"reference"===e?g:b&&"floating"===e?b:t)).filter(Boolean).flat()}),[g,b,x,N]);function R(e){return!o&&u&&c?r.createElement(bc,{ref:"start"===e?C:O,onClick:e=>m(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}r.useEffect((()=>{if(o||!c)return;function e(e){if("Tab"===e.key){Js(b,Ys(rl(b)))&&0===N().length&&!w&&al(e);const t=j(),n=il(e);"reference"===x.current[0]&&n===g&&(al(e),e.shiftKey?Na(t[t.length-1]):Na(t[1])),"floating"===x.current[1]&&n===b&&e.shiftKey&&(al(e),Na(t[0]))}}const t=rl(b);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,g,b,c,x,p,w,N,j]),r.useEffect((()=>{if(!o&&d)return b&&Ds(g)?(g.addEventListener("focusout",t),g.addEventListener("pointerdown",e),!c&&b.addEventListener("focusout",t),()=>{g.removeEventListener("focusout",t),g.removeEventListener("pointerdown",e),!c&&b.removeEventListener("focusout",t)}):void 0;function e(){F.current=!0,setTimeout((()=>{F.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(Js(g,t)||Js(b,t)||Js(t,b)||Js(null==P?void 0:P.portalNode,t)||null!=t&&t.hasAttribute(Ha("focus-guard"))||I&&(Ya(I.nodesRef.current,h).find((e=>{var n,r;return Js(null==(n=e.context)?void 0:n.elements.floating,t)||Js(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(I.nodesRef.current,h).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!F.current&&t!==gc()&&(A.current=!0,m(!1,e))}))}}),[o,g,b,c,h,I,P,m,d]),r.useEffect((()=>{var e;if(o)return;const t=Array.from((null==P||null==(e=P.portalNode)?void 0:e.querySelectorAll("["+Ha("portal")+"]"))||[]);if(b){const e=[b,...t,C.current,O.current,x.current.includes("reference")||w?g:null].filter((e=>null!=e)),n=c||w?tc(e,E,!E):tc(e);return()=>{n()}}}),[o,g,b,c,x,P,w,E]),ja((()=>{if(o||!b)return;const e=Ys(rl(b));queueMicrotask((()=>{const t=j(b),n=S.current,r=("number"==typeof n?t[n]:n.current)||b,o=Js(b,e);y||o||!f||Na(r,{preventScroll:r===b})}))}),[o,f,b,y,j,S]),ja((()=>{if(o||!b)return;let e=!1;const t=rl(b),n=Ys(t),r=v.current;function i(t){let{reason:n,event:r,nested:o}=t;"escape-key"===n&&p.domReference.current&&vc(p.domReference.current),"hover"===n&&"mouseleave"===r.type&&(A.current=!0),"outside-press"===n&&(o?(A.current=!1,e=!0):A.current=!(Qs(r)||Xs(r)))}return vc(n),_.on("openchange",i),()=>{_.off("openchange",i);const n=Ys(t),o=Js(b,n)||I&&Ya(I.nodesRef.current,h).some((e=>{var t;return Js(null==(t=e.context)?void 0:t.elements.floating,n)}));(o||r.openEvent&&["click","mousedown"].includes(r.openEvent.type))&&p.domReference.current&&vc(p.domReference.current);const s=gc();k.current&&!A.current&&Ds(s)&&(s===n||n===t.body||o)&&Na(s,{cancelPrevious:!1,preventScroll:e})}}),[o,b,k,v,p,_,I,h]),ja((()=>{if(!o&&P)return P.setFocusManagerState({modal:c,closeOnFocusOut:d,open:f,onOpenChange:m,refs:p}),()=>{P.setFocusManagerState(null)}}),[o,P,c,f,m,p,d]),ja((()=>{if(o||!b||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=b.getAttribute("tabindex");x.current.includes("floating")||Ys(rl(b))!==p.domReference.current&&0===N().length?"0"!==e&&b.setAttribute("tabindex","0"):"-1"!==e&&b.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(b,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,b,p,x,N,y]);const D=!o&&E&&($||c);return r.createElement(r.Fragment,null,D&&r.createElement(dc,{"data-type":"inside",ref:null==P?void 0:P.beforeInsideRef,onFocus:e=>{if(c){const e=j();Na("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(A.current=!1,sc(e,P.portalNode)){const e=oc()||g;null==e||e.focus()}else{var t;null==(t=P.beforeOutsideRef.current)||t.focus()}}}),!w&&R("start"),n,R("end"),D&&r.createElement(dc,{"data-type":"inside",ref:null==P?void 0:P.afterInsideRef,onFocus:e=>{if(c)Na(j()[0]);else if(null!=P&&P.preserveTabOrder&&P.portalNode)if(d&&(A.current=!0),sc(e,P.portalNode)){const e=ic()||g;null==e||e.focus()}else{var t;null==(t=P.afterOutsideRef.current)||t.focus()}}}))}function wc(e){return Ds(e.target)&&"BUTTON"===e.target.tagName}function Ec(e){return ll(e)}function xc(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,elements:{domReference:s}}=e,{enabled:l=!0,event:a="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,f=r.useRef(),p=r.useRef(!1);return r.useMemo((()=>l?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(nl(f.current,!0)&&u||"click"!==a&&(!n||!c||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===a&&f.current?f.current=void 0:nl(f.current,!0)&&u||(!n||!c||i.current.openEvent&&"click"!==i.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||wc(e)||(" "!==e.key||Ec(s)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||wc(e)||Ec(s)||" "===e.key&&p.current&&(p.current=!1,o(!n||!c,e.nativeEvent,"click"))}}}:{}),[l,i,a,u,d,s,c,n,o])}const Sc={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},kc={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ic=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Pc(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,nodeId:i,elements:{reference:s,domReference:l,floating:a},dataRef:c}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:_=!1,bubbles:v,capture:g}=t,b=Ba(),y=ya("function"==typeof f?f:()=>!1),w="function"==typeof f?y:f,E=r.useRef(!1),x=r.useRef(!1),{escapeKey:S,outsidePress:k}=Ic(v),{escapeKey:I,outsidePress:P}=Ic(g),C=ya((e=>{if(!n||!u||!d||"Escape"!==e.key)return;const t=b?Ya(b.nodesRef.current,i):[];if(!S&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),O=ya((e=>{var t;const n=()=>{var t;C(e),null==(t=il(e))||t.removeEventListener("keydown",n)};null==(t=il(e))||t.addEventListener("keydown",n)})),A=ya((e=>{const t=E.current;E.current=!1;const n=x.current;if(x.current=!1,"click"===p&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const r=il(e),s="["+Ha("inert")+"]",c=rl(a).querySelectorAll(s);let u=Rs(r)?r:null;for(;u&&!Zs(u);){const e=zs(u);if(Zs(e)||!Rs(e))break;u=e}if(c.length&&Rs(r)&&!r.matches("html,body")&&!Js(r,a)&&Array.from(c).every((e=>!Js(u,e))))return;if(Ds(r)&&a){const t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight;let o=n&&e.offsetX>r.clientWidth;if(n&&"rtl"===Bs(r).direction&&(o=e.offsetX<=r.offsetWidth-r.clientWidth),o||t&&e.offsetY>r.clientHeight)return}const d=b&&Ya(b.nodesRef.current,i).some((t=>{var n;return ol(e,null==(n=t.context)?void 0:n.elements.floating)}));if(ol(e,a)||ol(e,l)||d)return;const f=b?Ya(b.nodesRef.current,i):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),F=ya((e=>{var t;const n=()=>{var t;A(e),null==(t=il(e))||t.removeEventListener(p,n)};null==(t=il(e))||t.addEventListener(p,n)}));return r.useEffect((()=>{if(!n||!u)return;function e(e){o(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=S,c.current.__outsidePressBubbles=k;const t=rl(a);d&&t.addEventListener("keydown",I?O:C,I),w&&t.addEventListener(p,P?F:A,P);let r=[];return _&&(Rs(l)&&(r=Ws(l)),Rs(a)&&(r=r.concat(Ws(a))),!Rs(s)&&s&&s.contextElement&&(r=r.concat(Ws(s.contextElement)))),r=r.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),r.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{d&&t.removeEventListener("keydown",I?O:C,I),w&&t.removeEventListener(p,P?F:A,P),r.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,a,l,s,d,w,p,n,o,_,u,S,k,C,I,O,A,P,F]),r.useEffect((()=>{E.current=!1}),[w,p]),r.useMemo((()=>u?{reference:{onKeyDown:C,[Sc[m]]:e=>{h&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:C,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[kc[p]]:()=>{E.current=!0}}}:{}),[u,h,p,m,o,C])}function Cc(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:o,nodeId:i}=e,[s,l]=r.useState(null),a=(null==(t=e.elements)?void 0:t.reference)||s,c=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:l}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);Xl(p,o)||h(o);const[m,_]=r.useState(null),[v,g]=r.useState(null),b=r.useCallback((e=>{e!=x.current&&(x.current=e,_(e))}),[_]),y=r.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[g]),w=s||m,E=l||v,x=r.useRef(null),S=r.useRef(null),k=r.useRef(d),I=ta(c),P=ta(i),C=r.useCallback((()=>{if(!x.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),Jl(x.current,S.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Xl(k.current,t)&&(k.current=t,r.flushSync((()=>{f(t)})))}))}),[p,t,n,P]);Ql((()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const O=r.useRef(!1);Ql((()=>(O.current=!0,()=>{O.current=!1})),[]),Ql((()=>{if(w&&(x.current=w),E&&(S.current=E),w&&E){if(I.current)return I.current(w,E,C);C()}}),[w,E,C,I]);const A=r.useMemo((()=>({reference:x,floating:S,setReference:b,setFloating:y})),[b,y]),F=r.useMemo((()=>({reference:w,floating:E})),[w,E]),$=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=ea(F.floating,d.x),r=ea(F.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...Gl(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,F.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:C,refs:A,elements:F,floatingStyles:$})),[d,C,A,F,$])}(e),u=Ba(),d=null!=Za(),f=ya(((e,t,n)=>{e&&(h.current.openEvent=t),m.emit("openchange",{open:e,event:t,reason:n,nested:d}),null==o||o(e,t,n)})),p=r.useRef(null),h=r.useRef({}),m=r.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}()))[0],_=Ma(),v=r.useCallback((e=>{const t=Rs(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c.refs.setReference(t)}),[c.refs]),g=r.useCallback((e=>{(Rs(e)||null===e)&&(p.current=e,l(e)),(Rs(c.refs.reference.current)||null===c.refs.reference.current||null!==e&&!Rs(e))&&c.refs.setReference(e)}),[c.refs]),b=r.useMemo((()=>({...c.refs,setReference:g,setPositionReference:v,domReference:p})),[c.refs,g,v]),y=r.useMemo((()=>({...c.elements,domReference:a})),[c.elements,a]),w=r.useMemo((()=>({...c,refs:b,elements:y,dataRef:h,nodeId:i,floatingId:_,events:m,open:n,onOpenChange:f})),[c,i,_,m,n,f,b,y]);return ja((()=>{const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===i));e&&(e.context=w)})),r.useMemo((()=>({...c,context:w,refs:b,elements:y})),[c,b,y,w])}const Oc="active",Ac="selected";function Fc(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Oc]:t,[Ac]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[Oc,Ac].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function $c(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>Fc(t,e,"reference")),t),o=r.useCallback((t=>Fc(t,e,"floating")),t),i=r.useCallback((t=>Fc(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}let Nc=!1;function jc(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Rc(e,t){return jc(t,e===wa||e===Ea,e===xa||e===Sa)}function Dc(e,t,n){return jc(t,e===Ea,n?e===xa:e===Sa)||"Enter"===e||" "==e||""===e}function Lc(e,t,n){return jc(t,n?e===Sa:e===xa,e===wa)}function Tc(e,t){const{open:n,onOpenChange:o,refs:i,elements:{domReference:s,floating:l}}=e,{listRef:a,activeIndex:c,onNavigate:u=(()=>{}),enabled:d=!0,selectedIndex:f=null,allowEscape:p=!1,loop:h=!1,nested:m=!1,rtl:_=!1,virtual:v=!1,focusItemOnOpen:g="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:E="vertical",cols:x=1,scrollItemIntoView:S=!0,virtualItemRef:k,itemSizes:I,dense:P=!1}=t,C=Za(),O=Ba(),A=ya(u),F=r.useRef(g),$=r.useRef(null!=f?f:-1),N=r.useRef(null),j=r.useRef(!0),R=r.useRef(A),D=r.useRef(!!l),L=r.useRef(!1),T=r.useRef(!1),M=za(w),V=za(n),U=za(S),[Z,B]=r.useState(),[H,z]=r.useState(),q=ya((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(v?(B(r.id),null==O||O.events.emit("virtualfocus",r),k&&(k.current=r)):Na(r,{preventScroll:!0,sync:!(!tl()||!Gs())&&(Nc||L.current)}),requestAnimationFrame((()=>{const e=U.current;e&&r&&(n||!j.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));ja((()=>{document.createElement("div").focus({get preventScroll(){return Nc=!0,!1}})}),[]),ja((()=>{d&&(n&&l?F.current&&null!=f&&(T.current=!0,A(f)):D.current&&($.current=-1,R.current(null)))}),[d,n,l,f,A]),ja((()=>{if(d&&n&&l)if(null==c){if(L.current=!1,null!=f)return;if(D.current&&($.current=-1,q(a,$)),!D.current&&F.current&&(null!=N.current||!0===F.current&&null==N.current)){let e=0;const t=()=>{null==a.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):($.current=null==N.current||Dc(N.current,E,_)||m?Pa(a,M.current):Ca(a,M.current),N.current=null,A($.current))};t()}}else Ia(a,c)||($.current=c,q(a,$,T.current),T.current=!1)}),[d,n,l,c,f,m,a,E,_,A,q,M]),ja((()=>{var e;if(!d||l||!O||v||!D.current)return;const t=O.nodesRef.current,n=null==(e=t.find((e=>e.id===C)))||null==(e=e.context)?void 0:e.elements.floating,r=Ys(rl(l)),o=t.some((e=>e.context&&Js(e.context.elements.floating,r)));n&&!o&&j.current&&n.focus({preventScroll:!0})}),[d,l,O,C,v]),ja((()=>{if(d&&O&&v&&!C)return O.events.on("virtualfocus",e),()=>{O.events.off("virtualfocus",e)};function e(e){z(e.id),k&&(k.current=e)}}),[d,O,v,C,k]),ja((()=>{R.current=A,D.current=!!l})),ja((()=>{n||(N.current=null)}),[n]);const W=null!=c,Y=r.useMemo((()=>{function e(e){if(!n)return;const t=a.current.indexOf(e);-1!==t&&A(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...b&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;j.current&&"touch"!==t&&($.current=-1,q(a,$),A(null),v||Na(i.floating.current,{preventScroll:!0}))}}}}),[n,i,q,b,a,A,v]);return r.useMemo((()=>{if(!d)return{};const e=M.current;function t(t){if(j.current=!1,L.current=!0,!V.current&&t.currentTarget===i.floating.current)return;if(m&&Lc(t.key,E,_))return al(t),o(!1,t.nativeEvent,"list-navigation"),void(Ds(s)&&!v&&s.focus());const r=$.current,l=Pa(a,e),c=Ca(a,e);if("Home"===t.key&&(al(t),$.current=l,A($.current)),"End"===t.key&&(al(t),$.current=c,A($.current)),x>1){const n=I||Array.from({length:a.current.length},(()=>({width:1,height:1}))),r=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:s,height:l}=e,a=!1;for(n&&(o=0);!a;){const e=[];for(let n=0;n<s;n++)for(let r=0;r<l;r++)e.push(o+n+r*t);o%t+s<=t&&e.every((e=>void 0===r[e]))?(e.forEach((e=>r[e]=i)),a=!0):o++}})),[...r]}(n,x,P),o=r.findIndex((t=>null!=t&&!(null!=e&&e.includes(t)))),i=r.reduce(((t,n,r)=>null==n||null!=e&&e.includes(n)?t:r),-1);if($.current=r[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:l,maxIndex:a,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===wa){if(u&&al(n),-1===c)d=a;else if(d=Oa(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:s}),o&&(c-i<l||d<0)){const e=c%i,t=a%i,n=a-(t-e);d=t===e?a:t>e?n:n-i}Ia(e,d)&&(d=c)}if(n.key===Ea&&(u&&al(n),-1===c?d=l:(d=Oa(e,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>a&&(d=Oa(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),Ia(e,d)&&(d=c)),"both"===r){const t=pl(c/i);n.key===Sa&&(u&&al(n),c%i!=i-1?(d=Oa(e,{startingIndex:c,disabledIndices:s}),o&&ka(d,i,t)&&(d=Oa(e,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(d=Oa(e,{startingIndex:c-c%i-1,disabledIndices:s})),ka(d,i,t)&&(d=c)),n.key===xa&&(u&&al(n),c%i!=0?(d=Oa(e,{startingIndex:c,disabledIndices:s,decrement:!0}),o&&ka(d,i,t)&&(d=Oa(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(d=Oa(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),ka(d,i,t)&&(d=c));const r=pl(a/i)===t;Ia(e,d)&&(d=o&&r?n.key===xa?a:Oa(e,{startingIndex:c-c%i-1,disabledIndices:s}):c)}return d}({current:r.map((e=>null!=e?a.current[e]:null))},{event:t,orientation:E,loop:h,cols:x,disabledIndices:Fa([...e||[],void 0],r),minIndex:o,maxIndex:i,prevIndex:Aa($.current,n,r,x,t.key===Ea?"bl":t.key===Sa?"tr":"tl"),stopEvent:!0})],A($.current),"both"===E)return}if(Rc(t.key,E)){if(al(t),n&&!v&&Ys(t.currentTarget.ownerDocument)===t.currentTarget)return $.current=Dc(t.key,E,_)?l:c,void A($.current);Dc(t.key,E,_)?$.current=h?r>=c?p&&r!==a.current.length?-1:l:Oa(a,{startingIndex:r,disabledIndices:e}):Math.min(c,Oa(a,{startingIndex:r,disabledIndices:e})):$.current=h?r<=l?p&&-1!==r?a.current.length:c:Oa(a,{startingIndex:r,decrement:!0,disabledIndices:e}):Math.max(l,Oa(a,{startingIndex:r,decrement:!0,disabledIndices:e})),Ia(a,$.current)?A(null):A($.current)}}function r(e){"auto"===g&&Qs(e.nativeEvent)&&(F.current=!0)}const l=v&&n&&W&&{"aria-activedescendant":H||Z},c=a.current.find((e=>(null==e?void 0:e.id)===Z));return{reference:{...l,onKeyDown(r){j.current=!1;const i=0===r.key.indexOf("Arrow"),s=function(e,t,n){return jc(t,n?e===xa:e===Sa,e===Ea)}(r.key,E,_),l=Lc(r.key,E,_),u=Rc(r.key,E),d=(m?s:u)||"Enter"===r.key||""===r.key.trim();if(v&&n){const e=null==O?void 0:O.nodesRef.current.find((e=>null==e.parentId)),n=O&&e?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Ya(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(O.nodesRef.current,e.id):null;if(i&&n&&k){const e=new KeyboardEvent("keydown",{key:r.key,bubbles:!0});if(s||l){var p,h;const t=(null==(p=n.context)?void 0:p.elements.domReference)===r.currentTarget,o=l&&!t?null==(h=n.context)?void 0:h.elements.domReference:s?c:null;o&&(al(r),o.dispatchEvent(e),z(void 0))}var g;if(u&&n.context&&n.context.open&&n.parentId&&r.currentTarget!==n.context.elements.domReference)return al(r),void(null==(g=n.context.elements.domReference)||g.dispatchEvent(e))}return t(r)}(n||y||!i)&&(d&&(N.current=m&&u?null:r.key),m?s&&(al(r),n?($.current=Pa(a,e),A($.current)):o(!0,r.nativeEvent,"list-navigation")):u&&(null!=f&&($.current=f),al(r),!n&&y?o(!0,r.nativeEvent,"list-navigation"):t(r),n&&A($.current)))},onFocus(){n&&A(null)},onPointerDown:function(e){F.current=g,"auto"===g&&Xs(e.nativeEvent)&&(F.current=!0)},onMouseDown:r,onClick:r},floating:{"aria-orientation":"both"===E?void 0:E,...!cl(s)&&l,onKeyDown:t,onPointerMove(){j.current=!0}},item:Y}}),[s,i,Z,H,M,V,a,d,E,_,v,n,W,m,f,y,p,x,h,g,A,o,Y,O,k,I,P])}const Mc=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Vc(e,t){var n;void 0===t&&(t={});const{open:o,floatingId:i}=e,{enabled:s=!0,role:l="dialog"}=t,a=null!=(n=Mc.get(l))?n:l,c=Ma(),u=null!=Za();return r.useMemo((()=>{if(!s)return{};const e={id:i,...a&&{role:a}};return"tooltip"===a||"label"===l?{reference:{["aria-"+("label"===l?"labelledby":"describedby")]:o?i:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===a?"dialog":a,"aria-controls":o?i:void 0,..."listbox"===a&&{role:"combobox"},..."menu"===a&&{id:c},..."menu"===a&&u&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===a&&{"aria-labelledby":c}},item(e){let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(l){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}}}),[s,l,a,o,i,c,u])}function Uc(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e<i;s=e++){const[i,l]=t[e]||[0,0],[a,c]=t[s]||[0,0];l>=r!=c>=r&&n<=(a-i)*(r-l)/(c-l)+i&&(o=!o)}return o}function Zc(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,l=null,a=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:p,tree:h}=e;return function(e){function m(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:_,clientY:v}=e,g=[_,v],b=il(e),y="mouseleave"===e.type,w=Js(d.floating,b),E=Js(d.domReference,b),x=d.domReference.getBoundingClientRect(),S=d.floating.getBoundingClientRect(),k=u.split("-")[0],I=n>S.right-S.width/2,P=c>S.bottom-S.height/2,C=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(g,x),O=S.width>x.width,A=S.height>x.height,F=(O?x:S).left,$=(O?x:S).right,N=(A?x:S).top,j=(A?x:S).bottom;if(w&&(i=!0,!y))return;if(E&&(i=!1),E&&!y)return void(i=!0);if(y&&Rs(e.relatedTarget)&&Js(d.floating,e.relatedTarget))return;if(h&&Ya(h.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=x.bottom-1||"bottom"===k&&c<=x.top+1||"left"===k&&n>=x.right-1||"right"===k&&n<=x.left+1)return m();let R=[];switch(k){case"top":R=[[F,x.top+1],[F,S.bottom-1],[$,S.bottom-1],[$,x.top+1]];break;case"bottom":R=[[F,S.top+1],[F,x.bottom-1],[$,x.bottom-1],[$,S.top+1]];break;case"left":R=[[S.right-1,j],[S.right-1,N],[x.left+1,N],[x.left+1,j]];break;case"right":R=[[x.right-1,j],[x.right-1,N],[S.left+1,N],[S.left+1,j]]}if(!Uc([_,v],R)){if(i&&!C)return m();if(!y&&r){const t=function(e,t){const n=performance.now(),r=n-a;if(null===s||null===l||0===r)return s=e,l=t,a=n,null;const o=e-s,i=t-l,c=Math.sqrt(o*o+i*i);return s=e,l=t,a=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}Uc([_,v],function(e){let[n,r]=e;switch(k){case"top":return[[O?n+t/2:I?n+4*t:n-4*t,r+t+1],[O?n-t/2:I?n+4*t:n-4*t,r+t+1],[S.left,I||O?S.bottom-t:S.top],[S.right,I?O?S.bottom-t:S.top:S.bottom-t]];case"bottom":return[[O?n+t/2:I?n+4*t:n-4*t,r-t],[O?n-t/2:I?n+4*t:n-4*t,r-t],[S.left,I||O?S.top+t:S.bottom],[S.right,I?O?S.top+t:S.bottom:S.top+t]];case"left":{const e=[n+t+1,A?r+t/2:P?r+4*t:r-4*t],o=[n+t+1,A?r-t/2:P?r+4*t:r-4*t];return[[P||A?S.right-t:S.left,S.top],[P?A?S.right-t:S.left:S.right-t,S.bottom],e,o]}case"right":return[[n-t,A?r+t/2:P?r+4*t:r-4*t],[n-t,A?r-t/2:P?r+4*t:r-4*t],[P||A?S.left+t:S.right,S.top],[P?A?S.left+t:S.right:S.left+t,S.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:n},c}const Bc=(0,r.createContext)(null),Hc=()=>{const e=(0,i.qp)(Bc);if(null===e)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e};function zc({children:e,...t}){const n=function(e){var t;const{initialOpen:n=!1,placement:o="top"}=e,[s,l]=(0,i.eJ)(n),a=(0,i.sO)(null),c=s,u=l,d=Cc({placement:o,open:c,onOpenChange:u,whileElementsMounted:zl,middleware:[Fl(8),Wl({crossAxis:o.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ql({padding:5}),Kl({element:a})]}),f=d.context,p=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,dataRef:i,events:s,elements:{domReference:l,floating:a},refs:c}=e,{enabled:u=!0,delay:d=0,handleClose:f=null,mouseOnly:p=!1,restMs:h=0,move:m=!0}=t,_=Ba(),v=Za(),g=za(f),b=za(d),y=r.useRef(),w=r.useRef(),E=r.useRef(),x=r.useRef(),S=r.useRef(!0),k=r.useRef(!1),I=r.useRef((()=>{})),P=r.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);r.useEffect((()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(x.current),S.current=!0)}}),[u,s]),r.useEffect((()=>{if(!u||!g.current||!n)return;function e(e){P()&&o(!1,e,"hover")}const t=rl(a).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a,n,o,u,g,i,P]);const C=r.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Wa(b.current,"close",y.current);r&&!E.current?(clearTimeout(w.current),w.current=setTimeout((()=>o(!1,e,n)),r)):t&&(clearTimeout(w.current),o(!1,e,n))}),[b,o]),O=r.useCallback((()=>{I.current(),E.current=void 0}),[]),A=r.useCallback((()=>{if(k.current){const e=rl(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(qa),k.current=!1}}),[c]);return r.useEffect((()=>{if(u&&Rs(l)){const e=l;return n&&e.addEventListener("mouseleave",c),null==a||a.addEventListener("mouseleave",c),m&&e.addEventListener("mousemove",r,{once:!0}),e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",s),()=>{n&&e.removeEventListener("mouseleave",c),null==a||a.removeEventListener("mouseleave",c),m&&e.removeEventListener("mousemove",r),e.removeEventListener("mouseenter",r),e.removeEventListener("mouseleave",s)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function r(e){if(clearTimeout(w.current),S.current=!1,p&&!nl(y.current)||h>0&&0===Wa(b.current,"open"))return;const t=Wa(b.current,"open",y.current);t?w.current=setTimeout((()=>{o(!0,e,"hover")}),t):o(!0,e,"hover")}function s(r){if(t())return;I.current();const o=rl(a);if(clearTimeout(x.current),g.current){n||clearTimeout(w.current),E.current=g.current({...e,tree:_,x:r.clientX,y:r.clientY,onClose(){A(),O(),C(r,!0,"safe-polygon")}});const t=E.current;return o.addEventListener("mousemove",t),void(I.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==y.current||!Js(a,r.relatedTarget))&&C(r)}function c(n){t()||null==g.current||g.current({...e,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),O(),C(n)}})(n)}}),[l,a,u,e,p,h,m,C,O,A,o,n,_,b,g,i]),ja((()=>{var e;if(u&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&P()){const e=rl(a).body;if(e.setAttribute(qa,""),e.style.pointerEvents="none",k.current=!0,Rs(l)&&a){var t;const e=l,n=null==_||null==(t=_.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",a.style.pointerEvents="auto",()=>{e.style.pointerEvents="",a.style.pointerEvents=""}}}}),[u,n,v,a,l,_,g,i,P]),ja((()=>{n||(y.current=void 0,O(),A())}),[n,O,A]),r.useEffect((()=>()=>{O(),clearTimeout(w.current),clearTimeout(x.current),A()}),[u,l,O,A]),r.useMemo((()=>{if(!u)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===h||(clearTimeout(x.current),x.current=setTimeout((()=>{S.current||o(!0,e.nativeEvent,"hover")}),h))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){C(e.nativeEvent,!1)}}}}),[u,h,n,o,C])}(f,{move:!1,enabled:!0,delay:{open:null!==(t=e.delay)&&void 0!==t?t:300,close:0},handleClose:Zc()}),h=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:o,events:i,refs:s,elements:{floating:l,domReference:a}}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=r.useRef(!1),f=r.useRef(),p=r.useRef(!0);return r.useEffect((()=>{if(!c)return;const e=$s(a);function t(){!n&&Ds(a)&&a===Ys(rl(a))&&(d.current=!0)}function r(){p.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[l,a,n,c]),r.useEffect((()=>{if(c)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}}),[i,c]),r.useEffect((()=>()=>{clearTimeout(f.current)}),[]),r.useMemo((()=>c?{reference:{onPointerDown(e){Xs(e.nativeEvent)||(p.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=il(e.nativeEvent);if(u&&Rs(t))try{if(Gs()&&tl())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!p.current&&!ll(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,n=Rs(t)&&t.hasAttribute(Ha("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout((()=>{const r=Ys(a?a.ownerDocument:document);(t||r!==a)&&(Js(s.floating.current,t)||Js(a,t)||n||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[c,u,a,s,o])}(f,{enabled:!0}),m=$c([p,h,Pc(f),Vc(f,{role:"tooltip"})]);return(0,i.Ye)((()=>({open:c,setOpen:u,arrowRef:a,...m,...d})),[c,u,a,m,d])}(t);return(0,r.createElement)(Bc.Provider,{value:n},e)}const qc=(0,r.forwardRef)((function({children:e,disabled:t,asChild:n=!1,...o},i){const s=Hc(),l=e.ref,a=ga([s.refs.setReference,i,l]);return t?e:n&&(0,r.isValidElement)(e)?(0,r.cloneElement)(e,s.getReferenceProps({ref:a,...o,...e.props,"data-state":s.open?"open":"closed"})):(0,r.createElement)("button",{ref:a,"data-state":s.open?"open":"closed",...s.getReferenceProps(o)},e)})),Wc=(0,r.forwardRef)((function({style:e,...t},n){var o,i;const s=Hc(),l=ga([s.refs.setFloating,n]),{x:a,y:c}=null!==(o=s.middlewareData.arrow)&&void 0!==o?o:{},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[s.placement.split("-")[0]])&&void 0!==i?i:"";return s.open?(0,r.createElement)("div",{ref:l,style:{...s.floatingStyles,...e},...s.getFloatingProps(t)},t.htmlContent?(0,r.createElement)("div",{className:"fibofilters-tooltip__content",dangerouslySetInnerHTML:{__html:t.htmlContent}}):(0,r.createElement)("div",{className:"fibofilters-tooltip__content"},t.children),(0,r.createElement)("div",{ref:s.arrowRef,style:{position:"absolute",width:"10px",height:"10px",background:"inherit",left:null!==a?`${a}px`:"",top:null!==c?`${c}px`:"",[u]:"-5px",transform:"rotate(45deg)"}})):null}));var Yc=({type:e,beforeLabel:t,label:n,afterLabel:o,beforeChildren:l,children:a,afterChildren:c,showLabel:u,isCollapsible:d,isInitiallyCollapsed:f,source:p="",urlSlug:h="",tooltip:m=""})=>{const[_,v]=(0,i.eJ)(f);let g=[`${gr}-block`,`${gr}-block--${e}`];return p.length>0&&(g=[...g,`${gr}-block--source--${p}`]),h.length>0&&(g=[...g,`${gr}-block--url-slug--${h}`]),d&&(g=[...g,br.filterCollapsible],_&&(g=[...g,br.filterCollapsed])),(0,r.createElement)("div",{className:g.join(" ")},(0,r.createElement)("div",{className:`${br.headline}`},t,n&&u&&(0,r.createElement)("div",{className:`${gr}-block__headline-box`,onClick:d?()=>v(!_):()=>{},onKeyPress:d?()=>v(!_):()=>{}},(0,r.createElement)((({children:e})=>{let t=wr("filter_headline_tag","h3");return t=["h1","h2","h3","h4","h5","h6","span","div","p"].includes(t)?t:"h3",(0,eo.h)(t,{className:`${br.headline}-box-inner`},e)}),null,A(n)),m?.length>0&&(0,r.createElement)(zc,null,(0,r.createElement)(qc,{asChild:!0},(0,r.createElement)("span",{className:`${br.headline}-box-icon`},(0,r.createElement)(s,{icon:As,width:18,height:18}))),(0,r.createElement)(Wc,{className:`${gr}-tooltip`,htmlContent:m})),d?(0,r.createElement)("div",{className:`${gr}-block__chevron-btn`},(0,r.createElement)(s,{className:`${gr}-block__chevron-btn-icon`,icon:Os,width:14,height:8})):null),o?(0,r.createElement)("div",{className:`${gr}-block__headline-desc`},o):null),(0,r.createElement)("div",{className:`${br.content}`},(0,r.createElement)("div",{className:`${br.content}-inner`},l,a,c)))},Jc=e=>{const[t,n]=(0,i.eJ)(!1);return(0,i.d4)((()=>{if(e?.current){n(e.current.scrollHeight>e.current.clientHeight);const t=new ResizeObserver((e=>{for(const t of e)n(t.target.scrollHeight>t.target.clientHeight)}));return t.observe(e.current),()=>t.disconnect()}}),[]),t},Kc=({beforeLabel:e,label:t,afterLabel:n,beforeChildren:o,children:s,afterChildren:l,type:a,showLabel:c,isCollapsible:u,isInitiallyCollapsed:d,role:f,source:p="",urlSlug:h="",groupedValues:m,className:_,tooltip:v=""})=>{const g=(0,i.sO)(null),b=Jc(g);return(0,r.createElement)(Yc,{beforeLabel:e,label:t,afterLabel:n,beforeChildren:o,afterChildren:l,type:a,showLabel:c,isCollapsible:u,isInitiallyCollapsed:d,source:p,urlSlug:h,tooltip:v},(0,r.createElement)("div",{ref:g,className:Cs(_,b&&"string"==typeof _&&_.includes(`${gr}-block__items-list-wrapper--limited`)?`${gr}-block__items-list-wrapper--has-scrollbar`:null),role:"undefined"!==f?f:null},(0,r.createElement)("ul",{className:`${gr}-block__items-list`},s)),m&&(0,r.createElement)("div",{className:`${gr}-items-grouped`},m))};const Qc=wr("show_more_less",!1),Xc=(e,t,n,r=!1)=>{if(e.selected)return!0;const o=wr("organize_values_force_search",!1,n);if(!r&&o)return!1;const i=wr("show_more_less_number",7,n);return!(Qc&&t>=i)},Gc=(e,t,n)=>{if(!Qc)return 0;const r=wr("organize_values_force_search",!1,t);if(!n&&r)return 0;const o=wr("show_more_less_number",7,t);if(e.length<=o)return 0;const i=e.slice(o).filter((e=>e.selected&&-1!==e.value_id)).length;return e.length-o-i};var eu=({onClick:e,numberOfValues:t,showHiddenValues:n,showAll:o=!1})=>{const i=[br.item,`${br.item}--more-less`];return(0,r.createElement)("li",{className:i.join(" ")},(0,r.createElement)(no,{onClick:e,className:`${gr}-more-less`},n?Qr("show less","[front]","fibofilters"):(0,r.createElement)(r.Fragment,null,Qr(o?"show all":"more","[front]","fibofilters"),t>0&&(0,r.createElement)("span",{className:`${gr}-more-less__counter`}," (",t,")"))))},tu=({item:e,position:t})=>{const n=e?.label_image_position||"before-label";return e?.label_image&&n===t&&(0,r.createElement)("img",{className:Cs(`${br.item}__label_image`,`${br.item}__label_image--${t}`),src:e.label_image,alt:""})},nu=({item:e,filterID:t,onStateChange:n,type:o})=>{const i=()=>{e.disabled||e.selected||n({filterID:t,index:e.index,newState:!e.selected,unselectOthers:!0,type:o})},s=[br.item,`${br.item}--radio`];return e.selected&&s.push(br.selected),e.disabled&&s.push(br.disabled),(0,r.createElement)("li",{className:s.join(" ")},(0,r.createElement)("div",{className:`${br.item}__interactive`,title:A(e?.title?e.title:e.label),role:"radio","aria-checked":e.selected?"true":"false",onClick:i,onKeyPress:i,tabIndex:"0"},(0,r.createElement)("div",{className:`${br.item}__control`}," "),(0,r.createElement)(tu,{item:e,position:"before-label"}),(0,r.createElement)("div",{className:`${br.item}__label`},(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:e.label}})),(0,r.createElement)(tu,{item:e,position:"after-label"}),wr("show_count")&&null!==e.counter?(0,r.createElement)(Ss,{counter:e.counter}):null))},ru=({updateSearchPhrase:e})=>{const[t,n]=(0,i.eJ)(""),o=(0,i.sO)(null);return(0,r.createElement)("div",{className:`${gr}-items-search`},(0,r.createElement)("input",{type:"search",onChange:t=>{n(t.target.value),e(t.target.value.toLowerCase())},value:t,placeholder:Qr("Search…","[front]","fibofilters"),autoComplete:"off"}),(0,r.createElement)("div",{className:`${gr}-items-search__controls`},t.length>0&&(0,r.createElement)(no,{className:Cs(`${gr}-items-search__controls--close`,t.length>0&&`${gr}-items-search__controls--close-show`),"aria-label":Qr("Clear","[front]","fibofilters"),ref:o,onClick:()=>{n(""),e("")}},(0,r.createElement)(r.Fragment,null,"×"))))},ou=(0,r.createElement)(d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(u,{d:"M5 11.25h14v1.5H5z"})),iu=(0,r.createElement)(d,{fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(u,{d:"m9 1.5-5.5 8L1 5.864",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));const su=({item:e,filterID:t,onStateChange:n,type:o,isHierarchical:l,parentItemIndexes:a,children:c,expandedOnInit:u=!1,expandToLevel:d=1})=>{const f=Gc(c,t,l),[p,h]=(0,i.eJ)(!1),[m,_]=(0,i.eJ)(!e.indeterminate);(0,i.d4)((()=>{l&&(u||d>=0)&&_(!1)}),[u]);const v=()=>{e.disabled||(l&&!e.selected&&(_(!1),a.length>0&&a.forEach((e=>{n({filterID:t,index:e,newState:!1,unselectOthers:!1,type:o,skipProcess:!0})})),Vr(c).forEach((e=>{n({filterID:t,index:e,newState:!1,unselectOthers:!1,type:o,skipProcess:!0})}))),n({filterID:t,index:e.index,newState:!e.selected,unselectOthers:!1,type:o}))},g=[br.item,`${br.item}--checkbox`];return e.selected&&g.push(br.selected),e.disabled&&g.push(br.disabled),e.alwaysSelected&&g.push(br.alwaysSelected),(0,r.createElement)("li",{className:g.join(" ")},(0,r.createElement)((({children:e})=>l?(0,r.createElement)("div",{className:`${gr}-collapser-container`},(0,r.createElement)("div",{className:Cs(`${gr}-collapser`,!m&&`${gr}-collapser--open`)},c.length>0&&(0,r.createElement)(no,{onClick:()=>_(!m),icon:(0,r.createElement)(s,{icon:Os,width:10,height:8})})),e):(0,r.createElement)(r.Fragment,null,e)),null,(0,r.createElement)("div",{className:`${br.item}__interactive`,title:A(e.label),role:"checkbox","aria-checked":e.selected||e.alwaysSelected?"true":"false",onClick:v,onKeyPress:v,tabIndex:"0"},(0,r.createElement)("div",{className:`${br.item}__control`},e.selected||e.alwaysSelected?(0,r.createElement)(s,{width:10,height:11,icon:iu}):null,!e.selected&&e.indeterminate?(0,r.createElement)(s,{width:10,height:11,icon:ou}):null),(0,r.createElement)(tu,{item:e,position:"before-label"}),(0,r.createElement)("div",{className:`${br.item}__label`},(0,r.createElement)("span",null,A(e.label))),(0,r.createElement)(tu,{item:e,position:"after-label"}),wr("show_count")&&(0,r.createElement)(Ss,{counter:e.counter}))),c.length>0&&(0,r.createElement)("ul",{className:Cs(`${gr}-block__items-list`,m&&`${gr}-block__items-list--hidden`)},c.filter(p?()=>!0:(e,n)=>Xc(e,n,t,l)).map((e=>(0,r.createElement)(su,{key:`${t}-${e.value}`,item:e,type:o,filterID:t,onStateChange:n,isHierarchical:l,children:jt(c.filter((t=>t.value===e.value)),"[0].children",[]),parentItemIndexes:[...a,e.index],expandedOnInit:u,expandToLevel:d-1}))),f>0?(0,r.createElement)(eu,{numberOfValues:f,showHiddenValues:p,onClick:()=>h(!p)}):null))};var lu=su,au=({item:e,filterID:t,onStateChange:n,type:o,showCounters:i})=>{const s=()=>{e.disabled||n({filterID:t,index:e.index,newState:!e.selected,unselectOthers:!1,type:o})},l=[br.item,`${br.item}--button`];return e.selected&&l.push(br.selected),e.disabled&&l.push(br.disabled),(0,r.createElement)("li",{className:l.join(" ")},(0,r.createElement)("div",{className:`${br.item}__interactive`,title:A(e?.title?e.title:e.label),role:"checkbox","aria-checked":e.selected?"true":"false",onClick:s,onKeyPress:s,tabIndex:"0"},(0,r.createElement)("div",{className:`${br.item}__label`},(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:e.label}})),wr("show_count")&&null!==e.counter&&i?(0,r.createElement)(Ss,{counter:e.counter}):null))};const cu=200;var uu=({filter:e,onStateChange:t,role:n,type:o})=>{const[s,l]=(0,i.eJ)(""),a=(0,i.sO)(null),c=Jc(a),u=wr("show_all_grouping_by_first_char",!0,e.id);let d=[],f=[],p={};if(e.values.length>1&&-1===e.values[0].value_id?(d=[e.values[0]],f=e.values.slice(1,e.values.length)):f=e.values,u){const e=f.filter((e=>0===s.length||e.label.toLowerCase().includes(s.toLowerCase()))),t=0===s.length?e.slice(0,cu):e;p=fi(t,(e=>e.label[0].toUpperCase()))}else{const e=[...d,...f].filter((e=>0===s.length||e.label.toLowerCase().includes(s.toLowerCase())));d=0===s.length?e.slice(0,cu):e}return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ru,{filter:e,updateSearchPhrase:e=>{l(e)}}),(0,r.createElement)("div",{ref:a,className:Cs(`${gr}-items-grouped__groups-wrapper`,c&&`${gr}-items-grouped__groups-wrapper--has-scrollbar`)},d.length>0&&(0,r.createElement)("div",{className:`${gr}-items-grouped__group`,role:"undefined"!==n?n:null},(0,r.createElement)("ul",{className:`${gr}-block__items-list`},d.map((n=>(0,r.createElement)(r.Fragment,null,"radio"===o&&(0,r.createElement)(nu,{key:`${e.id}-non-sortable-group-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type}),"checkbox"===o&&(0,r.createElement)(lu,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,isHierarchical:e.is_hierarchical,parentItemIndexes:[n.index],children:[]}),"button"===o&&(0,r.createElement)(au,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,showCounters:e.show_counters}),"category-link"===o&&(0,r.createElement)(ks,{key:`${e.id}-${n.value}`,item:n})))))),u&&Object.keys(p).sort(((e,t)=>e.localeCompare(t))).map(((i,s)=>(0,r.createElement)("div",{className:`${gr}-items-grouped__group`,key:`${e.id}-sortable-group-${s}`,role:"undefined"!==n?n:null},(0,r.createElement)("div",{className:`${gr}-items-grouped__group-name`},i),(0,r.createElement)("ul",{className:`${gr}-block__items-list`},p[i].map((n=>(0,r.createElement)(r.Fragment,null,"radio"===o&&(0,r.createElement)(nu,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type}),"checkbox"===o&&(0,r.createElement)(lu,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,isHierarchical:e.is_hierarchical,parentItemIndexes:[n.index],children:[]}),"button"===o&&(0,r.createElement)(au,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,showCounters:e.show_counters}),"category-link"===o&&(0,r.createElement)(ks,{key:`${e.id}-${n.value}`,item:n})))))))),0===s.length&&f.length>cu&&(0,r.createElement)("div",{className:`${gr}-items-grouped__more-values-info`},Gr(/* translators: %s: number of hidden filter values */
Qr("There are %s more filter values, but they've been hidden. Use the search bar within this filter to find the remaining options.","[front] Message about hidden filter values in filter group","fibofilters"),(f.length-cu).toLocaleString("en-US")))))},du=({path:e,className:t})=>{let n="";const o=wr("extra_html",{key:"value"});if("string"==typeof e)n=jt(o,e,"");else if(Array.isArray(e))for(const t of e)if(n=jt(o,t,""),""!==n)break;return""===n?null:(0,r.createElement)("div",{className:Ps("fibofilters-custom-html",t),dangerouslySetInnerHTML:{__html:n}})},fu=({filter:e,showLabel:t=!0,location:n=""})=>{var o;const{label:s,type:l,is_collapsible:a,is_initially_collapsed:c,source:u,url_slug:d}=e,f=wr("organize_values_force_search",!1,e.id),p=Gc(e.values,e.id),[h,m]=(0,i.eJ)(!1),[_,v]=(0,i.eJ)(f),g=f?0:wr("show_all_number",15,e.id),b=ys(!1,1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Kc,{beforeLabel:e.is_subcategory?(0,r.createElement)("span",{className:"fibofilters-block__pre-headline"},A(e.label_subcategory)):e.parent?(0,r.createElement)("span",{className:"fibofilters-block__pre-headline"},A(e.label_category)):null,beforeChildren:e.parent?(0,r.createElement)("span",{className:`${gr}-block__breadcrumbs`},Qr("go back to","[front]","fibofilters")," ",(0,r.createElement)("a",{title:A(e.parent.name),href:b.queryString.length>0?`${e.parent.url}?${b.queryString}`:e.parent.url},A(e.parent.name))):null,label:e.is_subcategory||e.parent?e.current.name:s,type:l,showLabel:t,isCollapsible:a.includes(n),isInitiallyCollapsed:c.includes(n),source:u,urlSlug:d,groupedValues:_?(0,r.createElement)(uu,{type:"category-link",filter:e}):null,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(o=e.tooltip)&&void 0!==o?o:""},e.values.filter(h?()=>!0:(t,n)=>Xc(t,n,e.id)).map((t=>(0,r.createElement)(ks,{key:`${e.id}-${t.value}`,item:t,queryString:b.queryString}))),p>0&&e.values.length<g?(0,r.createElement)(eu,{numberOfValues:p,showHiddenValues:h,onClick:()=>m(!h)}):null,p>0&&e.values.length>=g?(0,r.createElement)(eu,{numberOfValues:e.values.length,showHiddenValues:_,onClick:()=>v(!_),showAll:!0}):null))},pu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var s;const{label:l,type:a,is_collapsible:c,is_initially_collapsed:u,source:d,url_slug:f}=e,p=wr("organize_values_force_search",!1,e.id),[h,m]=(0,i.eJ)(!1),[_,v]=(0,i.eJ)(p),[g,b]=(0,i.eJ)(""),y=p?0:wr("show_all_number",15,e.id),w=wr("expand_to_level",0,e.id),E=!e.is_hierarchical&&e.values.length>=y,x=e.is_hierarchical&&e.values.length>=y;let S=[],k=[],I=0;if(x&&g.length>0){const t=e.values.filter((e=>e.label.toLowerCase().includes(g.toLowerCase()))).map((e=>e.value)),n=Mr(e.values,t),r=[...t,...n],o=e.values.filter((e=>r.includes(e.value)));S=o.filter((e=>"0"===e.parent_value)),I=Gc(S,e.id),k=Dr(o)}else S=e.values.filter((e=>"0"===e.parent_value)),I=Gc(S,e.id),k=Dr(e.values);return(0,r.createElement)(Kc,{label:l,type:a,showLabel:n,source:d,urlSlug:f,isCollapsible:c.includes(o),isInitiallyCollapsed:u.includes(o),beforeChildren:x&&(0,r.createElement)(ru,{filter:e,updateSearchPhrase:e=>{b(e)}}),groupedValues:E&&_?(0,r.createElement)(uu,{onStateChange:t,type:"checkbox",filter:e}):null,className:x?`${gr}-block__items-list-wrapper--limited`:"",afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(s=e.tooltip)&&void 0!==s?s:""},S.filter(h||x?()=>!0:(t,n)=>Xc(t,n,e.id)).map((n=>(0,r.createElement)(lu,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,isHierarchical:e.is_hierarchical,children:jt(k.filter((e=>e.value===n.value)),"[0].children",[]),parentItemIndexes:[n.index],expandedOnInit:x&&g.length>0,expandToLevel:w-1}))),!E&&!x&&I>0?(0,r.createElement)(eu,{numberOfValues:I,showHiddenValues:h,onClick:()=>m(!h)}):null,E&&I>0?(0,r.createElement)(eu,{numberOfValues:e.values.length,showHiddenValues:_,onClick:()=>v(!_),showAll:!0}):null)},hu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var s;const{label:l,type:a,is_collapsible:c,is_initially_collapsed:u,source:d,url_slug:f}=e,p=wr("organize_values_force_search",!1,e.id),h=Gc(e.values,e.id),[m,_]=(0,i.eJ)(!1),[v,g]=(0,i.eJ)(p),b=wr("show_all_number",15,e.id);return(0,r.createElement)(Kc,{label:l,type:a,showLabel:n,isCollapsible:c.includes(o),isInitiallyCollapsed:u.includes(o),source:d,urlSlug:f,groupedValues:v?(0,r.createElement)(uu,{onStateChange:t,type:"button",filter:e,role:"radiogroup"}):null,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(s=e.tooltip)&&void 0!==s?s:""},e.values.filter(m?()=>!0:(t,n)=>Xc(t,n,e.id)).map((n=>(0,r.createElement)(au,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,showCounters:e.show_counters}))),h>0&&e.values.length<b?(0,r.createElement)(eu,{numberOfValues:h,showHiddenValues:m,onClick:()=>_(!m)}):null,h>0&&e.values.length>=b?(0,r.createElement)(eu,{numberOfValues:e.values.length,showHiddenValues:v,onClick:()=>g(!v),showAll:!0}):null)},mu=(0,r.createElement)(d,{fill:"none",className:"fibofilters-icon-checkmark-stroke",xmlns:"http://www.w3.org/2000/svg",width:14,height:12.25,viewBox:"0 0 14 12.25","aria-hidden":"true"},(0,r.createElement)(u,{d:"M10.938 2.188 5.25 10.063 2.188 6.125",stroke:"black",strokeWidth:3.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.createElement)(u,{d:"M10.938 2.188 5.25 10.063 2.188 6.125",stroke:"white",strokeWidth:2.625,strokeLinecap:"round",strokeLinejoin:"round"})),_u=({item:e,filterID:t,onStateChange:n,type:o,multipleSelection:i})=>{const l=()=>{e.disabled||n({filterID:t,index:e.index,newState:!e.selected,unselectOthers:!i,type:o})},a=[br.item,`${br.item}--color`];e.selected&&a.push(br.selected),e.disabled&&a.push(br.disabled);let c={};e.color.length>0&&(c={background:e.color}),e.img_url.length>0&&(c={backgroundImage:`url(${e.img_url})`});let u=A(e.label);return wr("show_count")&&(u=`${u} (${e.counter})`),(0,r.createElement)("li",{className:a.join(" ")},(0,r.createElement)(zc,{delay:100},(0,r.createElement)("div",{className:`${br.item}__interactive-wrapper`},(0,r.createElement)("div",{className:`${br.item}__interactive`,role:i?"checkbox":"radio","aria-checked":e.selected?"true":"false",onClick:l,onKeyPress:l,onTouchStart:l,tabIndex:"0"},(0,r.createElement)("div",{className:Cs(`${br.item}__color`),"aria-label":u},(0,r.createElement)(qc,{asChild:!0,disabled:e.disabled},(0,r.createElement)("div",{className:`${br.item}__color-inner`,style:c},e.selected?(0,r.createElement)(s,{width:14,height:12.25,icon:mu}):null,!e.selected&&e.indeterminate?(0,r.createElement)(s,{width:14,height:12.25,icon:ou}):null))))),(0,r.createElement)(Wc,{className:`${gr}-tooltip`,htmlContent:u})))},vu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var s;const{label:l,type:a,is_collapsible:c,is_initially_collapsed:u,source:d,url_slug:f}=e,p=Gc(e.values,e.id),[h,m]=(0,i.eJ)(!1);return(0,r.createElement)(Kc,{label:l,type:a,showLabel:n,source:d,urlSlug:f,isCollapsible:c.includes(o),isInitiallyCollapsed:u.includes(o),afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(s=e.tooltip)&&void 0!==s?s:""},e.values.filter(h?()=>!0:(t,n)=>Xc(t,n,e.id)).map((n=>{var o;return(0,r.createElement)(_u,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type,multipleSelection:null!==(o=e.multiple_selection)&&void 0!==o&&o})})),p>0&&(0,r.createElement)(eu,{numberOfValues:p,showHiddenValues:h,onClick:()=>m(!h)}))},gu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var s;const{label:l,type:a,is_collapsible:c,is_initially_collapsed:u,source:d,url_slug:f}=e,p=Gc(e.values,e.id),h=wr("organize_values_force_search",!1,e.id),[m,_]=(0,i.eJ)(!1),[v,g]=(0,i.eJ)(h),b=h?0:wr("show_all_number",15,e.id);return(0,r.createElement)(Kc,{label:l,type:a,showLabel:n,source:d,urlSlug:f,isCollapsible:c.includes(o),isInitiallyCollapsed:u.includes(o),role:"radiogroup",groupedValues:v?(0,r.createElement)(uu,{onStateChange:t,type:"radio",filter:e,role:"radiogroup"}):null,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(s=e.tooltip)&&void 0!==s?s:""},e.values.filter(m?()=>!0:(t,n)=>Xc(t,n,e.id)).map((n=>(0,r.createElement)(nu,{key:`${e.id}-${n.value}`,item:n,filterID:e.id,onStateChange:t,type:e.type}))),p>0&&e.values.length<b?(0,r.createElement)(eu,{numberOfValues:p,showHiddenValues:m,onClick:()=>_(!m)}):null,p>0&&e.values.length>=b?(0,r.createElement)(eu,{numberOfValues:e.values.length,showHiddenValues:v,onClick:()=>g(!v),showAll:!0}):null)},bu=({onClick:e,className:t})=>(0,r.createElement)(no,{onClick:e,className:`${gr}-clear-filter-btn ${t}`},(0,r.createElement)(s,{icon:f,size:12})),yu=({filter:e,onStateChange:t})=>{const[n,o]=(0,i.eJ)(!1),[s,l]=(0,i.eJ)(!1),a=(0,i.sO)(null),c=(0,i.sO)(null),u=e=>{"Enter"===e.key&&f()},d=(e,t)=>(e=parseFloat(e),t=parseFloat(t),(e=isNaN(e)?-1:e)===(isNaN(t)?-1:t)),f=()=>{if(a.current&&c.current){if(d(e.range.min,a.current.value)&&d(e.range.max,c.current.value))return;t({filterID:e.id,value:{min:a.current.value,max:c.current.value},type:e.type})}};return(0,r.createElement)("div",{className:"fibofilters-range__inputs-wrapper"},(0,r.createElement)("div",{className:"fibofilters-input__wrapper"},(0,r.createElement)("label",{htmlFor:`${e.id}-inputs-min`,className:"fibofilters-input__label "+(e.range.min>0||n?"fibofilters-input__label--active":"")},"price"===e.source?Qr("min.","[front] Abbreviation for minimal. Related to price.","fibofilters"):Qr("min.","[front] Abbreviation for minimal. Related to number.","fibofilters")),(0,r.createElement)("input",{id:`${e.id}-inputs-min`,className:"fibofilters-input__element",ref:a,type:"number",onKeyPress:e=>u(e),value:e.range.min>=0?e.range.min:"",min:"0",onFocus:()=>{o(!0)},onBlur:()=>{o(!1),f()}})),(0,r.createElement)("div",{className:"fibofilters-input__wrapper"},(0,r.createElement)("label",{htmlFor:`${e.id}-inputs-max`,className:"fibofilters-input__label "+(e.range.max>0||s?"fibofilters-input__label--active":"")},"price"===e.source?Qr("max.","[front] Abbreviation for maximum. Related to price.","fibofilters"):Qr("max.","[front] Abbreviation for maximum. Related to number.","fibofilters")),(0,r.createElement)("input",{id:`${e.id}-inputs-max`,className:"fibofilters-input__element",ref:c,type:"number",onKeyPress:e=>u(e),value:e.range.max>=0?e.range.max:"",min:"0",onFocus:()=>{l(!0)},onBlur:()=>{l(!1),f()}})),(0,r.createElement)(bu,{className:e.range.min>0||e.range.max>0?"":`${gr}-clear-filter-btn--hidden`,onClick:()=>{a.current&&c.current&&t({filterID:e.id,value:{min:null,max:null},type:e.type})}}))};function wu(){return wu=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},wu.apply(this,arguments)}function Eu(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var xu=function(e){return[].concat(e).sort((function(e,t){return Number(e)-Number(t)}))},Su={getPercentageForValue:function(e,t,n){return Math.max(0,Math.min(100,(e-t)/(n-t)*100))},getValueForClientX:function(e,t,n,r){return(r-n)*((e-t.left)/t.width)+n}};var ku,Iu=Math.ceil,Pu=Math.max,Cu=function(e,t,n){return n&&"number"!=typeof n&&function(e,t,n){if(!qe(n))return!1;var r=typeof t;return!!("number"==r?gn(n)&&Gt(t,n.length):"string"==r&&t in n)&&dt(n[t],e)}(e,t,n)&&(t=n=void 0),e=oi(e),void 0===t?(t=e,e=0):t=oi(t),function(e,t,n,r){for(var o=-1,i=Pu(Iu((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++o]=e,e+=n;return s}(e,t,n=void 0===n?e<t?1:-1:oi(n),void 0)},Ou=$e.isFinite,Au=Math.min,Fu=(ku=Math.floor,function(e,t){if(e=ri(e),(t=null==t?0:Au(ii(t),292))&&Ou(e)){var n=(At(e)+"e").split("e"),r=ku(n[0]+"e"+(+n[1]+t));return+((n=(At(r)+"e").split("e"))[0]+"e"+(+n[1]-t))}return ku(e)}),$u=({filter:e,onStateChange:t})=>{const[n,o]=(0,i.eJ)([]),s=(0,i.sO)(null),l=wr("range_slider_histogram_ranges_limit"),{slider_data:a,range:c,source:u}=e,d=jt(e,"number_precision",0),f=jt(e,"number_prefix",""),p=jt(e,"number_suffix","");(0,i.d4)((()=>(""===c.min&&""===c.max||-1===c.min&&-1===c.max?o([a.min,a.max]):parseFloat(c.min)>0&&parseFloat(c.max)>0?o([parseFloat(c.min),parseFloat(c.max)]):parseFloat(c.min)>0&&(""===c.max||-1===c.max)?o([parseFloat(c.min),parseFloat(a.max)]):(""===c.min||-1===c.min)&&parseFloat(c.max)>0&&o([parseFloat(a.min),parseFloat(c.max)]),()=>{})),[c]);const h=n=>{o([parseFloat(n[0]),parseFloat(n[1])]),t({filterID:e.id,value:{min:parseFloat(n[0])===parseFloat(a.min)?"":n[0],max:parseFloat(n[1])===parseFloat(a.max)?"":n[1]},type:e.type})};let m=0,_=1;if(a.min>=0){a.min<1&&(m=1,_=.1),a.min<.1&&(m=2,_=.01),a.min<.01&&(m=3,_=.001);const e=[{limit:1e3,step:10},{limit:1e4,step:100},{limit:1e5,step:1e3},{limit:1e6,step:1e4},{limit:1e7,step:1e5},{limit:1e8,step:1e6}],t=a.max-a.min;for(let n=0;n<e.length;n++)t>e[n].limit&&(m=1,_=e[n].step)}const{getTrackProps:v,handles:g,segments:b}=function(e){var t,n,o=e.interpolator,i=void 0===o?Su:o,s=e.tickSize,l=void 0===s?10:s,a=e.values,c=e.min,u=e.max,d=e.ticks,f=e.steps,p=e.onChange,h=e.onDrag,m=e.stepSize,_=r.default.useState(null),v=_[0],g=_[1],b=r.default.useState(),y=b[0],w=b[1],E=(t={activeHandleIndex:v,onChange:p,onDrag:h,values:a,tempValues:y},(n=r.default.useRef(t)).current=t,r.default.useCallback((function(){return n.current}),[])),x=r.default.useRef(),S=r.default.useCallback((function(e){var t,n=(t=x.current.getBoundingClientRect(),{left:Math.ceil(t.left),width:Math.ceil(t.width)});return i.getValueForClientX(e,n,c,u)}),[i,u,c]),k=r.default.useCallback((function(e,t){if(f){var n=f.indexOf(e)+t;return n>=0&&n<f.length?f[n]:e}var r=e+m*t;return r>=c&&r<=u?r:e}),[u,c,m,f]),I=r.default.useCallback((function(e){var t=c,n=u;if(f)f.forEach((function(r){r<=e&&r>t&&(t=r),r>=e&&r<n&&(n=r)}));else{for(;t<e&&t+m<e;)t+=m;n=Math.min(t+m,u)}return e-t<n-e?t:n}),[u,c,m,f]),P=r.default.useCallback((function(e){var t=E(),n=t.activeHandleIndex,r=t.onDrag,o="touchmove"===e.type?e.changedTouches[0].clientX:e.clientX,i=S(o),s=I(i),l=[].concat(a.slice(0,n),[s],a.slice(n+1));r?r(l):w(l)}),[E,S,I,a]),C=r.default.useCallback((function(e,t){var n=E(),r=n.values,o=n.onChange,i=void 0===o?function(){}:o;if(37===e.keyCode||39===e.keyCode){g(t);var s=37===e.keyCode?-1:1,l=k(r[t],s),a=[].concat(r.slice(0,t),[l],r.slice(t+1));i(xu(a))}}),[E,k]),O=r.default.useCallback((function(e,t){g(t);var n=function e(t){var n=E(),r=n.tempValues,o=n.values,i=n.onChange,s=void 0===i?function(){}:i,l=n.onDrag,a=void 0===l?function(){}:l;document.removeEventListener("mousemove",P),document.removeEventListener("touchmove",P),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e);var c=xu(r||o);s(c),a(c),g(null),w()};document.addEventListener("mousemove",P),document.addEventListener("touchmove",P),document.addEventListener("mouseup",n),document.addEventListener("touchend",n)}),[E,P]),A=r.default.useCallback((function(e){return i.getPercentageForValue(e,c,u)}),[i,u,c]),F=r.default.useMemo((function(){var e=d||f;if(!e){for(e=[c];e[e.length-1]<u-l;)e.push(e[e.length-1]+l);e.push(u)}return e.map((function(e,t){return{value:e,getTickProps:function(n){var r=void 0===n?{}:n,o=r.key,i=void 0===o?t:o,s=r.style,l=void 0===s?{}:s,a=Eu(r,["key","style"]);return wu({key:i,style:wu({position:"absolute",width:0,left:A(e)+"%",transform:"translateX(-50%)"},l)},a)}}}))}),[d,A,u,c,f,l]),$=r.default.useMemo((function(){var e=xu(y||a);return[].concat(e,[u]).map((function(t,n){return{value:t,getSegmentProps:function(r){var o=void 0===r?{}:r,i=o.key,s=void 0===i?n:i,l=o.style,a=void 0===l?{}:l,u=Eu(o,["key","style"]),d=A(e[n-1]?e[n-1]:c);return wu({key:s,style:wu({position:"absolute",left:d+"%",width:A(t)-d+"%"},a)},u)}}}))}),[A,u,c,y,a]),N=r.default.useMemo((function(){return(y||a).map((function(e,t){return{value:e,active:t===v,getHandleProps:function(n){var r=void 0===n?{}:n,o=r.key,i=void 0===o?t:o,s=(r.ref,r.innerRef,r.onKeyDown),l=r.onMouseDown,a=r.onTouchStart,d=r.style,f=void 0===d?{}:d,p=Eu(r,["key","ref","innerRef","onKeyDown","onMouseDown","onTouchStart","style"]);return wu({key:i,onKeyDown:function(e){e.persist(),C(e,t),s&&s(e)},onMouseDown:function(e){e.persist(),O(e,t),l&&l(e)},onTouchStart:function(e){e.persist(),O(e,t),a&&a(e)},role:"slider","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":e,style:wu({position:"absolute",top:"50%",left:A(e)+"%",zIndex:t===v?"1":"0",transform:"translate(-50%, -50%)"},f)},p)}}}))}),[v,A,C,O,c,u,y,a]);return{activeHandleIndex:v,getTrackProps:function(e){var t=void 0===e?{}:e,n=t.style,r=void 0===n?{}:n,o=t.ref,i=Eu(t,["style","ref"]);return wu({ref:function(e){x.current=e,o&&("function"==typeof o?o(e):o.current=e)},style:wu({position:"relative",userSelect:"none"},r)},i)},ticks:F,segments:$,handles:N}}({min:a.min,max:a.max,steps:Cu(Math.ceil(a.min/_)*_,Fu(a.max,m),_),values:n,onChange:h}),y=g.map((e=>e.value)),w=(0,i.Ye)((()=>{if(2===y.length){const e=Math.min(Math.floor((y[0]-a.min)/(a.max-a.min)*l),l-1),t=Math.min(Math.floor((y[1]-a.min)/(a.max-a.min)*l),l-1);return a.histogramValues.map(((n,r)=>({active:r>=e&&r<=t,value:n})))}return[]}),[y]),E=({index:e,getSegmentProps:t})=>{const n=["fibofilters-range__segment"];return n.push(1===e?"fibofilters-range__segment--active":"fibofilters-range__segment--inactive"),(0,r.createElement)("div",{...t(),className:n.join(" ")})},x=[],S=wr("range_slider_min_value_label","min",e.id),k=wr("range_slider_max_value_label","max",e.id);return g.forEach((({value:t},n)=>{0===n?"price"===u?t===a.min&&"min"===S?x.push(Qr("min.","[front] Abbreviation for minimal. Related to price.","fibofilters")):t===a.min&&"dynamic"!==S&&"min"!==S?x.push(Nr(S)):x.push(Nr(t)):"price"!==u&&(t===a.min&&"min"===S?x.push(Qr("min.","[front] Abbreviation for minimal. Related to number.","fibofilters")):t===a.min&&"dynamic"!==S&&"min"!==S?x.push(Rr(S,e.id,d,f,p).replaceAll("&nbsp;"," ")):x.push(Rr(t,e.id,d,f,p).replaceAll("&nbsp;"," "))):1===n&&("price"===u?t===a.max&&"max"===k?x.push(Qr("max.","[front] Abbreviation for maximum. Related to price.","fibofilters")):t===a.max&&"dynamic"!==k&&"max"!==k?x.push(Nr(k)):x.push(Nr(t)):"price"!==u&&(t===a.max&&"max"===k?x.push(Qr("max.","[front] Abbreviation for maximum. Related to number.","fibofilters")):t===a.max&&"dynamic"!==k&&"max"!==k?x.push(Rr(k,e.id,d,f,p).replaceAll("&nbsp;"," ")):x.push(Rr(t,e.id,d,f,p).replaceAll("&nbsp;"," "))))})),0===a.histogramValues.length?null:(0,r.createElement)("div",{className:"fibofilters-range__slider-wrapper"},w.length>0&&(0,r.createElement)("div",{className:"fibofilters-slider-histogram"},w.map(((t,n)=>(0,r.createElement)("span",{style:{height:`${t.value}%`,width:`calc(${100/l}% - 2px)`},className:Cs("fibofilters-slider-histogram__item",t.active&&"fibofilters-slider-histogram__item--active"),key:`${e.id}-slider-histogram-value-${n}`})))),(0,r.createElement)("div",{...v({className:"fibofilters-range__track",ref:s,onClick:e=>{if(e.preventDefault(),!h||!s.current)return;if(e.target.classList.contains("fibofilters-range__handle"))return;const t=e.clientX-s.current.getBoundingClientRect().left,r=s.current.getBoundingClientRect().width,o=Math.max(a.min,Math.round(t/r*a.max)),i=n.sort(((e,t)=>Math.abs(e-o)-Math.abs(t-o)))[0],l=n.filter((e=>e!==i)).concat(o).sort(((e,t)=>e-t));h(l)}})},b.map((({getSegmentProps:t},n)=>(0,r.createElement)(E,{key:`${e.id}-slider-segment-${n}`,getSegmentProps:t,index:n}))),g.map((({getHandleProps:e},t)=>(0,r.createElement)(no,{className:"fibofilters-range__handle",key:0,"aria-label":x[t],...e()})))),(0,r.createElement)("div",{className:"fibofilters-range__label-wrapper"},x.map(((t,n)=>(0,r.createElement)("span",{className:Cs("fibofilters-range__label","fibofilters-range__label--"+(0===n?"min":"max")),key:`${e.id}-slider-range-label-${n}`},t)))))},Nu=({filter:e,onStateChange:t})=>{const[n,o]=(0,i.eJ)([]),{radio_range:s,range:l}=e;return(0,i.d4)((()=>(o(s),()=>{})),[s]),(0,i.d4)((()=>{if(n.length>0){const e=io()(n,{$apply:e=>e.map((e=>{let t=!1;return parseFloat(l.min)===e.min&&parseFloat(l.max)===e.max?t=!0:(""!==l.min&&-1!==l.min||""!==e.min||parseFloat(l.max)!==e.max)&&(""!==l.max&&-1!==l.max||""!==e.max||parseFloat(l.min)!==e.min)||(t=!0),e.selected=t,e}))});o(e)}return()=>{}}),[]),(0,r.createElement)("div",{className:"fibofilters-range__radio-ranges-wrapper",role:"radiogroup"},(0,r.createElement)("ul",{className:`${gr}-block__items-list`},n.map(((i,s)=>(0,r.createElement)(nu,{key:`${e.id}-radio-range-${s}`,item:i,index:s,filterID:e.id,onStateChange:()=>((r,i)=>{let s=io()(n,{$apply:e=>e.map((e=>(e.selected=!1,e)))});s=io()(s,{[i]:{selected:{$set:!0}}}),o(s),t({filterID:e.id,value:{min:r.min,max:r.max},type:e.type})})(i,s),type:e.type})))))},ju=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var i;const{label:s,type:l,show_inputs:a,show_radio_ranges:c,show_slider:u,is_collapsible:d,is_initially_collapsed:f,source:p,url_slug:h}=e;return(0,r.createElement)(Yc,{label:s,type:l,showLabel:n,isCollapsible:d.includes(o),isInitiallyCollapsed:f.includes(o),source:p,urlSlug:h,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(i=e.tooltip)&&void 0!==i?i:""},a&&(0,r.createElement)(yu,{filter:e,onStateChange:t}),u&&(0,r.createElement)($u,{filter:e,onStateChange:t}),c&&(0,r.createElement)(Nu,{filter:e,onStateChange:t}))},Ru=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var s;const{label:l,type:a,is_collapsible:c,is_initially_collapsed:u,source:d,url_slug:f}=e,[p,h]=(0,i.eJ)(""),m=jt(e,"phrase","");(0,i.d4)((()=>(null!==m&&h(m),()=>{})),[e.phrase]);const _=n=>{t({filterID:e.id,phrase:n,type:a})},v=(0,i.Ye)((()=>ns((e=>{_(e)}),250)),[]);return(0,r.createElement)(Yc,{label:l,type:a,showLabel:n,isCollapsible:c.includes(o),isInitiallyCollapsed:u.includes(o),source:d,urlSlug:f,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(s=e.tooltip)&&void 0!==s?s:""},(0,r.createElement)("div",{className:`${gr}-items-search`},(0,r.createElement)("input",{type:"search",onChange:e=>{var t;t=e.target.value,h(t),v(t)},name:`search-${e.id}`,value:p,placeholder:Qr("Search for products…","[front]","fibofilters"),autoComplete:"off"}),(0,r.createElement)("div",{className:`${gr}-items-search__controls`},p.length>0&&(0,r.createElement)(no,{className:Cs(`${gr}-items-search__controls--close`,p.length>0&&`${gr}-items-search__controls--close-show`),"aria-label":Qr("Clear","[front]","fibofilters"),onClick:()=>{h(""),_("")}},(0,r.createElement)(r.Fragment,null,"×")))))};const Du=(0,r.forwardRef)((({children:e,active:t,level:n,selected:o,disabled:i,...s},l)=>(0,r.createElement)("div",{className:Cs(`${gr}__select-suggestions-item`,`${gr}__select-suggestions-item--level-${n}`,!i&&t&&`${gr}__select-suggestions-item--active`,i&&`${gr}__select-suggestions-item--disabled`,o&&`${gr}__select-suggestions-item--selected`),ref:l,role:"option",id:Ma(),"aria-selected":t,...s,style:s.style,disabled:i},e)));var Lu=({filter:e,onStateChange:t,location:n=""})=>{const{type:o}=e,[l,a]=(0,i.eJ)(!1),[c,u]=(0,i.eJ)(""),[d,f]=(0,i.eJ)(""),[p,h]=(0,i.eJ)(null),m=(0,i.sO)(null),_=(0,i.sO)([]),v=(0,i.sO)(null),g=(0,i.sO)(null),b=(e=>{const t=Dr(e);return Lr(t)})(e.values),y=jt(b.filter((e=>e.selected)),"[0]",null);(0,i.d4)((()=>(null!==y&&(f(y.label),u(y.label)),()=>{})),[]),(0,i.d4)((()=>(null===y&&(u(""),f("")),()=>{})),[y]),(0,i.d4)((()=>(l||d===c||f(c),()=>{})),[l]);const{refs:w,floatingStyles:E,context:x}=Cc({whileElementsMounted:zl,open:l,onOpenChange(e,t,n){(e||void 0!==n)&&a(e)},middleware:[Wl({padding:10,fallbackAxisSideDirection:"none"}),($={apply({rects:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{width:`${m?m.current.offsetWidth:e.reference.width}px`,maxHeight:`${t}px`})},padding:10},void 0===$&&($={}),{name:"size",options:$,async fn(e){const{placement:t,rects:n,platform:r,elements:o}=e,{apply:i=(()=>{}),...s}=gl($,e),l=await Al(e,s),a=bl(t),c=yl(t),u="y"===xl(t),{width:d,height:f}=n.floating;let p,h;"top"===a||"bottom"===a?(p=a,h=c===(await(null==r.isRTL?void 0:r.isRTL(o.floating))?"start":"end")?"left":"right"):(h=a,p="end"===c?"top":"bottom");const m=f-l[p],_=d-l[h],v=!e.middlewareData.shift;let g=m,b=_;if(u){const e=d-l.left-l.right;b=c||v?ul(_,e):e}else{const e=f-l.top-l.bottom;g=c||v?ul(m,e):e}if(v&&!c){const e=dl(l.left,0),t=dl(l.right,0),n=dl(l.top,0),r=dl(l.bottom,0);u?b=d-2*(0!==e||0!==t?e+t:dl(l.left,l.right)):g=f-2*(0!==n||0!==r?n+r:dl(l.top,l.bottom))}await i({...e,availableWidth:b,availableHeight:g});const y=await r.getDimensions(o.floating);return d!==y.width||f!==y.height?{reset:{rects:!0}}:{}}})],placement:"bottom-start"}),S=xc(x),k=Vc(x,{role:"listbox"}),I=Pc(x,{outsidePress:e=>e.target!==v.current}),P=Tc(x,{listRef:_,activeIndex:p,onNavigate:h,virtual:!0,loop:!0}),{getReferenceProps:C,getFloatingProps:O,getItemProps:F}=$c([S,k,I,P]);var $;function N(n){t(null===n?{filterID:e.id,index:!1,unselectOthers:!0,type:o}:{filterID:e.id,index:n.index,newState:!0,unselectOthers:!0,type:o})}const j=d===c||""===d?b:b.filter((e=>e.label.toLowerCase().includes(d?d.toLowerCase():"")));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:Cs(`${br.item}--select`,l&&`${br.item}--select-opened`),ref:m},(0,r.createElement)("input",{...C({ref:w.setReference,onChange:function(e){const t=e.target.value;f(t),t||""===t?(a(!0),h(0)):a(!1)},value:d,placeholder:Qr("Select…","[front]","fibofilters"),"aria-autocomplete":"list",onKeyDown(e){"Enter"===e.key&&null!==p&&j[p]&&(f(j[p].label),u(j[p].label),N(j[p]),h(null),a(!1))}})}),(0,r.createElement)("div",{className:`${gr}__select-controls`},(0,r.createElement)(no,{className:Cs(`${gr}__select-controls--close`,y&&`${gr}__select-controls--close-show`),"aria-label":Qr("Clear","[front]","fibofilters"),ref:g,onClick:()=>{u(""),f(""),N(null)}},(0,r.createElement)(r.Fragment,null,"×")),(0,r.createElement)("span",{className:`${gr}__select-controls--sep`}),(0,r.createElement)(no,{className:`${gr}__select-controls--toggle`,"aria-label":Qr("Toggle","[front]","fibofilters"),ref:v,role:"button",onClick:()=>{a(!l)}},l?(0,r.createElement)(s,{className:`${gr}__select-chevron`,icon:Os,width:14,height:8}):(0,r.createElement)(s,{className:Cs(`${gr}__select-chevron`,`${gr}__select-chevron--rev`),icon:Os,width:14,height:8})))),n!==Yi&&l&&(0,r.createElement)(pc,null,(0,r.createElement)(yc,{context:x,initialFocus:-1,visuallyHiddenDismiss:!0},(0,r.createElement)("div",{className:`${gr}__select-suggestions`,...O({ref:w.setFloating,style:E})},j.map(((t,n)=>{var o;return(0,r.createElement)(Du,{key:"",...F({key:`${e.id}-${t.value}`,ref(e){_.current[n]=e},onClick(){t.disabled||(f(t.label),u(t.label),N(t),a(!1),Zr||w.domReference.current?.focus())}}),active:p===n,selected:null!==y&&y.value===t.value,level:null!==(o=t.level)&&void 0!==o?o:0,disabled:t.disabled},(0,r.createElement)("span",null,A(t.label)),wr("show_count")&&(0,r.createElement)(Ss,{counter:t.counter}))}))))),n===Yi&&l&&(0,r.createElement)(yc,{context:x,initialFocus:-1,visuallyHiddenDismiss:!0},(0,r.createElement)("div",{className:`${gr}__select-suggestions`,...O({ref:w.setFloating,style:E})},j.map(((t,n)=>{var o;return(0,r.createElement)(Du,{key:"",...F({key:`${e.id}-${t.value}`,ref(e){_.current[n]=e},onClick(){t.disabled||(f(t.label),u(t.label),N(t),a(!1),Zr||w.domReference.current?.focus())}}),active:p===n,selected:null!==y&&y.value===t.value,level:null!==(o=t.level)&&void 0!==o?o:0,disabled:t.disabled},(0,r.createElement)("span",null,A(t.label)),wr("show_count")&&(0,r.createElement)(Ss,{counter:t.counter}))})))))},Tu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var i;const{label:s,type:l,is_collapsible:a,is_initially_collapsed:c,source:u,url_slug:d}=e;return(0,r.createElement)(Yc,{label:s,type:l,showLabel:n,isCollapsible:a.includes(o),isInitiallyCollapsed:c.includes(o),source:u,urlSlug:d,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(i=e.tooltip)&&void 0!==i?i:""},(0,r.createElement)(Lu,{filter:e,onStateChange:t,location:o}))},Mu=({item:e,index:t,filterID:n,onStateChange:o,type:i})=>{const s=()=>{e.disabled||o({filterID:n,index:t,newState:!e.selected,unselectOthers:!1,type:i})},l=[br.item,`${br.item}--toggle`];return e.selected&&l.push(br.selected),e.disabled&&l.push(br.disabled),(0,r.createElement)("li",{className:l.join(" ")},(0,r.createElement)("div",{className:`${br.item}__interactive`,title:e.label,role:"checkbox","aria-checked":e.selected?"true":"false",onClick:s,onKeyPress:s,tabIndex:"0"},(0,r.createElement)("div",{className:`${br.item}__toggle`},(0,r.createElement)("span",{className:`${br.item}__toggle-track`}),(0,r.createElement)("span",{className:`${br.item}__toggle-thumb`}),(0,r.createElement)("span",{className:`${br.item}__toggle-thumb ${br.item}__toggle-thumb--shadow`})),(0,r.createElement)("div",{className:`${br.item}__label`},(0,r.createElement)("span",null,e.label)),wr("show_count")&&(0,r.createElement)(Ss,{counter:e.counter})))},Vu=({filter:e,onStateChange:t,showLabel:n=!0,location:o=""})=>{var i;const{label:s,type:l,is_collapsible:a,is_initially_collapsed:c,source:u,url_slug:d}=e;return(0,r.createElement)(Kc,{label:s,type:l,showLabel:n,isCollapsible:a.includes(o),isInitiallyCollapsed:c.includes(o),source:u,urlSlug:d,afterLabel:(0,r.createElement)(du,{path:`filter=${e.id}/description`}),tooltip:null!==(i=e.tooltip)&&void 0!==i?i:""},e.values.map((n=>(0,r.createElement)(Mu,{key:`${e.id}-${n.value}`,item:n,index:n.index,filterID:e.id,onStateChange:t,type:e.type}))))},Uu=()=>null,Zu=({filter:e,showLabel:t=!0,location:n=""})=>"category"===e.type?(0,r.createElement)(fu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"checkboxes"===e.type?(0,r.createElement)(pu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"buttons"===e.type?(0,r.createElement)(hu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"color"===e.type?(0,r.createElement)(vu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"radio"===e.type?(0,r.createElement)(gu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"range"===e.type?(0,r.createElement)(ju,{filter:e,onStateChange:fs,showLabel:t,location:n}):"search"===e.type?(0,r.createElement)(Ru,{filter:e,onStateChange:fs,showLabel:t,location:n}):"select"===e.type?(0,r.createElement)(Tu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"toggle"===e.type?(0,r.createElement)(Vu,{filter:e,onStateChange:fs,showLabel:t,location:n}):"data-picker"===e.type?(0,r.createElement)(Uu,{filter:e,onStateChange:fs,showLabel:t,location:n}):null;const Bu={};var Hu=(e,t)=>(void 0===Bu[`${e}-${t}`]&&(Bu[`${e}-${t}`]=(0,o.td)(!1)),(0,i.d4)((()=>{const n=()=>{Bu[`${e}-${t}`].value=window.innerWidth>=e&&window.innerWidth<=t};return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)}),[]),Bu[`${e}-${t}`]),zu=()=>0===(0,h._N)().length?null:wr("can_show_critical_errors_warning",!1)?(0,r.createElement)("div",{style:{marginBottom:"1em",borderLeftColor:"#cc1818",backgroundColor:"#f4a2a2",borderLeftWidth:"4px",color:"#000",padding:"5px 5px 5px 10px",fontSize:"13px",borderRadius:"5px"}},(0,r.createElement)("p",{style:{marginBottom:"0.5em",fontSize:"17px"}},(0,r.createElement)("strong",null,Qr("FiboFilters warning","[admin]","fibofilters"))),(0,r.createElement)("p",{style:{marginBottom:"0.5em"}},(0,r.createElement)("strong",null,Qr("This warning is only visible to logged-in users with the Administrator role.","[admin]","fibofilters"))),(0,r.createElement)("p",{style:{marginBottom:0}},Qr("We ran into an issue while initializing FiboFilters.","[admin]","fibofilters")," ",Qr("Please enable the","[admin]","fibofilters")," ",(0,r.createElement)("a",{href:"https://fibofilters.com/documentation/troubleshooting/debugging/#front-end-filters-debugger",target:"_blank",rel:"noreferrer",style:{color:"#000",textDecoration:"underline",fontWeight:"normal"}},Qr("Filters Front-end Debugger","[admin]","fibofilters"))," ",Qr("to check what’s going wrong.","[admin]","fibofilters"))):null,qu=({index:e,minScreen:t,maxScreen:n,showAppliedFilters:o=!0,location:s=""})=>{const{filtersState:l}=(0,Es.F0)(),a=l.value.filters,c=Hu(Number.isInteger(parseInt(t))?parseInt(t):99999,Number.isInteger(parseInt(n))?parseInt(n):99999).value;return(0,i.d4)((()=>{c&&Object.keys(a).length>0&&Yr.P.doAction("fiboFilters.renderer.filters_displayed","vertical")}),[c]),c?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(zu,null),(0,r.createElement)(du,{path:`${s}/before_first_filter`}),o&&["top","both"].includes(wr("applied_filters_position_sidebar"))?(0,r.createElement)(xs,null):null,Object.keys(a).map((t=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(du,{path:[`${s}/filter=${t}/before`,`filter=${t}/before`]}),(0,r.createElement)(Zu,{key:`filters-verical-${e}-${t}`,filter:a[t],location:s}),(0,r.createElement)(du,{path:[`${s}/filter=${t}/after`,`filter=${t}/after`]})))),(0,r.createElement)(du,{path:`${s}/after_last_filter`}),o&&["bottom","both"].includes(wr("applied_filters_position_sidebar"))?(0,r.createElement)(xs,null):null):null},Wu=()=>{const{appState:e}=(0,p.Ix)(),{filtersState:t}=(0,Es.F0)(),[n,o]=(0,i.eJ)([`${gr}-offcanvas-bg`]),l=wr("offcanvas_position","right"),[a,c]=(0,i.eJ)([`${gr}-offcanvas`,"left"===l?`${gr}-offcanvas--position-left`:""]),u=()=>{o([`${gr}-offcanvas-bg`]),c([`${gr}-offcanvas`,"left"===l?`${gr}-offcanvas--position-left`:""]),setTimeout((()=>{g({}),Yr.P.doAction("fiboFilters.renderer.offcanvas_closed")}),200)};if(((e,t)=>{const[n,r]=(0,i.eJ)(!1);function o({key:n}){(Array.isArray(e)&&e.includes(n)||n===e)&&(r(!0),"function"==typeof t&&t())}const s=({key:t})=>{(Array.isArray(e)&&e.includes(t)||t===e)&&r(!1)};(0,i.d4)((()=>(window.addEventListener("keydown",o),window.addEventListener("keyup",s),()=>{window.removeEventListener("keydown",o),window.removeEventListener("keyup",s)})),[])})(["Escape","Esc"],(()=>{e.value.offcanvasIsVisible&&u()})),(0,i.d4)((()=>{e.value.offcanvasIsVisible&&(o([`${gr}-offcanvas-bg`,`${gr}-offcanvas-bg--active`]),c([`${gr}-offcanvas`,`${gr}-offcanvas--active`,"left"===l?`${gr}-offcanvas--position-left`:""]),Yr.P.doAction("fiboFilters.renderer.offcanvas_opened"))}),[e.value.offcanvasIsVisible]),!e.value.offcanvasIsVisible)return null;const d=e.value.appliedFiltersValues,h=t.value.total_products_count;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:n.join(" "),onClick:()=>u()}),(0,r.createElement)("div",{className:a.join(" ")},(0,r.createElement)("div",{className:`${gr}-offcanvas-header`},(0,r.createElement)(no,{className:`${gr}-offcanvas-close`,onClick:()=>{u()}},(0,r.createElement)(s,{icon:f,size:12})),"right"===l?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",null,Qr("Filters","[front]","fibofilters")),e.value.appliedFiltersCount>0&&(0,r.createElement)(no,{className:`${gr}-offcanvas-clear`,onClick:()=>{hs(d,!0)}},Qr("Clear","[front]","fibofilters"))):(0,r.createElement)(r.Fragment,null,e.value.appliedFiltersCount>0&&(0,r.createElement)(no,{className:`${gr}-offcanvas-clear`,onClick:()=>{hs(d,!0)}},Qr("Clear","[front]","fibofilters")),(0,r.createElement)("p",null,Qr("Filters","[front]","fibofilters")))),(0,r.createElement)("div",{className:`${gr}-offcanvas-content`},(0,r.createElement)(qu,{index:0,minScreen:1,maxScreen:99999,showAppliedFilters:!1,location:Wi})),(0,r.createElement)("div",{className:`${gr}-offcanvas-footer`},h>0?(0,r.createElement)(no,{className:`${gr}-offcanvas-btn`,onClick:()=>{u()}},wr("show_count")?Gr(/* translators: %d: number of products. */
Xr("See %d product","See %d products",h,"[front]","fibofilters"),h):Qr("See products","[front]","fibofilters")):(0,r.createElement)(no,{className:`${gr}-offcanvas-btn`,onClick:()=>{u()}},Qr("See all products","[front]","fibofilters")))))},Yu=({filter:e})=>{const[t,n]=(0,i.eJ)(!1),o=["filter-button",`${gr}-filter-button`];Ri(e)&&o.push(`${gr}-filter-button-selected`);let l=!1;"category"===e.type&&!1!==e.current&&(l=!0);const{refs:a,floatingStyles:c,context:u}=Cc({open:t,onOpenChange:n,placement:"bottom-start",middleware:[Fl(10),Wl({fallbackAxisSideDirection:"none"}),ql()],whileElementsMounted:zl}),d=xc(u),f=Pc(u),p=Vc(u),{getReferenceProps:h,getFloatingProps:m}=$c([d,f,p]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(no,{ref:a.setReference,...h(),className:o.join(" ")},e.label),t&&(0,r.createElement)(pc,null,(0,r.createElement)(yc,{context:u,modal:!1},(0,r.createElement)("div",{className:`${gr}-popover`,ref:a.setFloating,style:c,...m()},(0,r.createElement)("div",{className:`${gr}-popover__top-bar`},(0,r.createElement)(s,{className:`${gr}-popover-chevron`,onClick:()=>{n((e=>!e))},icon:Os,width:14,height:8}),e?.tooltip?.length>0&&(0,r.createElement)(zc,null,(0,r.createElement)(qc,{asChild:!0},(0,r.createElement)("span",{className:`${gr}-popover__tooltip-icon`},(0,r.createElement)(s,{icon:As,width:18,height:18}))),(0,r.createElement)(Wc,{className:`${gr}-tooltip`,htmlContent:e.tooltip}))),(0,r.createElement)(du,{path:[`${Yi}/filter=${e.id}/before`,`filter=${e.id}/before`]}),(0,r.createElement)(Zu,{filter:e,showLabel:l,location:Yi}),(0,r.createElement)(du,{path:[`${Yi}/filter=${e.id}/after`,`filter=${e.id}/after`]})))))},Ju=(0,r.createElement)(d,{width:17,height:22,viewBox:"0 0 17 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(c,{cx:12.5,cy:4.5,r:4.5,fill:"#D9D9D9"}),(0,r.createElement)(u,{d:"M1 4.5H16",stroke:"#363636",strokeWidth:1.5,strokeLinecap:"round"}),(0,r.createElement)(u,{d:"M1 11.5H16",stroke:"#363636",strokeWidth:1.5,strokeLinecap:"round"}),(0,r.createElement)(u,{d:"M1 18.5H16",stroke:"#363636",strokeWidth:1.5,strokeLinecap:"round"}),(0,r.createElement)(c,{cx:12.5,cy:4.5,r:3,fill:"white",stroke:"#363636"}),(0,r.createElement)(c,{cx:4.5,cy:11.5,r:3,fill:"white",stroke:"#363636"}),(0,r.createElement)(c,{cx:9.5,cy:18.5,r:3,fill:"white",stroke:"#363636"})),Ku=({index:e,minScreen:t,maxScreen:n})=>{const{filtersState:o}=(0,Es.F0)(),l=o.value.filters,a=Hu(Number.isInteger(parseInt(t))?parseInt(t):99999,Number.isInteger(parseInt(n))?parseInt(n):99999).value;return(0,i.d4)((()=>{a&&Object.keys(l).length>0&&Yr.P.doAction("fiboFilters.renderer.filters_displayed","horizontal")}),[a]),a?(0,r.createElement)("div",{className:`${gr}-horizontal-filters`},(0,r.createElement)(zu,null),(0,r.createElement)(du,{path:"horizontal/before_first_button"}),Object.keys(l).map((t=>"category"===l[t].type?(0,r.createElement)("div",{key:`filters-horizontal-hidden-${e}-${t}`,style:{display:"none"}},(0,r.createElement)(Zu,{filter:l[t]})):null)),Object.keys(l).map(((t,n)=>n>=wr("horizontal_max_buttons",5)?null:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(du,{path:`horizontal/filter=${t}/before_button`}),(0,r.createElement)(Yu,{key:`filter-button-${e}-${t}`,filter:l[t]}),(0,r.createElement)(du,{path:`horizontal/filter=${t}/after_button`})))),(Object.keys(l).length>wr("horizontal_max_buttons",5)||wr("always_display_all_filters_button",!1))&&(0,r.createElement)(no,{className:`${gr}-filter-button js-${gr}-filter-button-all-filters`,onClick:()=>{v()},icon:(0,r.createElement)(s,{size:15,icon:Ju})},Qr("All filters","[front]","fibofilters")),(0,r.createElement)(du,{path:"horizontal/after_last_button"})):null},Qu=({filter:e})=>{const t=[`${gr}-filter-button`];return Ri(e)&&t.push(`${gr}-filter-button-selected`),(0,r.createElement)(no,{className:t.join(" "),onClick:()=>{E(e.id,{})}},e.label)},Xu=({index:e,minScreen:t,maxScreen:n})=>{const{filtersState:o}=(0,Es.F0)(),l=o.value.filters,a=Hu(Number.isInteger(parseInt(t))?parseInt(t):99999,Number.isInteger(parseInt(n))?parseInt(n):99999).value;return(0,i.d4)((()=>{a&&Object.keys(l).length>0&&Yr.P.doAction("fiboFilters.renderer.filters_displayed","mobile")}),[a]),a?(0,r.createElement)("div",{className:`${gr}-mobile-filters`},(0,r.createElement)(du,{path:"mobile/before_first_button"}),Object.keys(l).map((t=>"category"===l[t].type?(0,r.createElement)("div",{key:`filters-mobile-hidden-${e}-${t}`,style:{display:"none"}},(0,r.createElement)(Zu,{filter:l[t]})):null)),Object.keys(l).map(((t,n)=>n>=wr("mobile_max_buttons",2)?null:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(du,{path:`mobile/filter=${t}/before_button`}),(0,r.createElement)(Qu,{key:`filter-button-mobile-${e}-${t}`,filter:l[t]}),(0,r.createElement)(du,{path:`mobile/filter=${t}/after_button`})))),(Object.keys(l).length>wr("mobile_max_buttons",2)||wr("always_display_all_filters_button",!1))&&(0,r.createElement)(no,{className:`${gr}-filter-button js-${gr}-filter-button-all-filters`,onClick:()=>{x(!0,{})},icon:(0,r.createElement)(s,{size:15,icon:Ju})},Qr("All filters","[front]","fibofilters")),(0,r.createElement)(du,{path:"mobile/after_last_button"})):null},Gu=(0,r.createElement)(d,{fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)((e=>(0,r.createElement)("g",e)),{clipPath:"url(#a)",stroke:"#767676",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"},(0,r.createElement)(u,{d:"M15 8H1M8 15 1 8l7-7"})),(0,r.createElement)((e=>(0,r.createElement)("defs",e)),null,(0,r.createElement)("clipPath",{id:"a"},(0,r.createElement)(u,{fill:"#fff",d:"M0 0h16v16H0z"})))),ed=()=>{const{appState:e}=(0,p.Ix)(),t=e.value.currentMobileFilter,n=e.value.appliedFiltersValues,{filtersState:o}=(0,Es.F0)(),l=o.value.filters,a=o.value.total_products_count;if((0,i.d4)((()=>{t&&Yr.P.doAction("fiboFilters.renderer.mobile_overlay_opened")}),[t]),!1===t)return null;const c=l[t],u=n.filter((e=>e._filterID===t));let d=!1;"category"===c.type&&!1!==c.current&&(d=!0);const f=()=>{E(!1,{}),Yr.P.doAction("fiboFilters.renderer.mobile_overlay_closed")};return(0,r.createElement)("div",{className:`${gr}-mobile-overlay`},(0,r.createElement)("div",{className:`${gr}-mobile-overlay__header`},(0,r.createElement)(no,{className:`${gr}-mobile-overlay__header-close`,onClick:f},(0,r.createElement)(s,{icon:Gu,size:16})),(0,r.createElement)("p",{className:`${gr}-mobile-overlay__header-title`},c.label),c?.tooltip?.length>0&&(0,r.createElement)(zc,null,(0,r.createElement)(qc,{asChild:!0},(0,r.createElement)("span",{className:`${gr}-mobile-overlay__header-tooltip-icon`},(0,r.createElement)(s,{icon:As,width:18,height:18}))),(0,r.createElement)(Wc,{className:`${gr}-tooltip`,htmlContent:c.tooltip})),u.length>0&&(0,r.createElement)(no,{className:`${gr}-mobile-overlay__header-clear`,onClick:()=>{hs(u)}},Qr("Clear","[front]","fibofilters"))),(0,r.createElement)("div",{className:`${gr}-mobile-overlay__content`},(0,r.createElement)(du,{path:[`${Ki}/filter=${c.id}/before`,`filter=${c.id}/before`]}),(0,r.createElement)(Zu,{filter:c,showLabel:d,location:Ki}),(0,r.createElement)(du,{path:[`${Ki}/filter=${c.id}/after`,`filter=${c.id}/after`]})),(0,r.createElement)("div",{className:`${gr}-mobile-overlay__footer`},a>0?(0,r.createElement)(no,{onClick:f},wr("show_count")?Gr(/* translators: %d: number of products. */
Xr("See %d product","See %d products",a,"[front]","fibofilters"),a):Qr("See products","[front]","fibofilters")):(0,r.createElement)(no,{onClick:f},Qr("See all products","[front]","fibofilters"))))},td=()=>{const{appState:e}=(0,p.Ix)(),t=e.value.appliedFiltersValues,n=e.value.mobileOverlayAllIsVisible,{filtersState:o}=(0,Es.F0)(),l=o.value.total_products_count;if((0,i.d4)((()=>{n&&Yr.P.doAction("fiboFilters.renderer.mobile_overlay_opened")}),[n]),!1===n)return null;const a=()=>{x(!1,{}),Yr.P.doAction("fiboFilters.renderer.mobile_overlay_closed")};return(0,r.createElement)("div",{className:`${gr}-mobile-overlay`},(0,r.createElement)("div",{className:`${gr}-mobile-overlay__header`},(0,r.createElement)(no,{className:`${gr}-mobile-overlay__header-close`,onClick:a},(0,r.createElement)(s,{icon:Gu,size:16})),(0,r.createElement)("p",{className:`${gr}-mobile-overlay__header-title`},Qr("Filters","[front]","fibofilters")),e.value.appliedFiltersCount>0&&(0,r.createElement)(no,{className:`${gr}-mobile-overlay__header-clear`,onClick:()=>{hs(t,!0)}},Qr("Clear","[front]","fibofilters"))),(0,r.createElement)("div",{className:`${gr}-mobile-overlay__content`},(0,r.createElement)(qu,{index:0,minScreen:1,maxScreen:99999,showAppliedFilters:!1,location:Ji})),(0,r.createElement)("div",{className:`${gr}-mobile-overlay__footer`},l>0?(0,r.createElement)(no,{onClick:a},wr("show_count")?Gr(/* translators: %d: number of products. */
Xr("See %d product","See %d products",l,"[front]","fibofilters"),l):Qr("See products","[front]","fibofilters")):(0,r.createElement)(no,{onClick:a},Qr("See all products","[front]","fibofilters"))))},nd=()=>{const e=(0,i.sO)(null),{appState:t}=(0,p.Ix)(),n=e=>{e[0].intersectionRatio<1||as.triggerFetchMissingProducts()};if((0,i.d4)((()=>{const t=e.current,r=new IntersectionObserver(n,{root:null,rootMargin:"500px",threshold:1});return t&&r.observe(t),()=>{t&&r.unobserve(t)}}),[e,t.value.showMoreButtonIsVisible,t.value.pageCounter]),!t.value.showMoreButtonIsVisible)return null;let o=as.visibleProductIds.length;return(0,h.AS)()>1&&(o+=((0,h.AS)()-1)*wr("products_per_page",12)),(0,r.createElement)(r.Fragment,null,wr("show_more_button_counter")&&(0,r.createElement)("div",{className:"fibofilters-show-more-count",dangerouslySetInnerHTML:{__html:Gr(/* translators: %1$d: visible number of products %2$d total number of products */
Qr("Viewed <b>%1$d</b> of <b>%2$d</b>","[front]","fibofilters"),o,Mi.Z.getOutputProductIds().length)}}),(0,r.createElement)(no,{ref:e,className:Ps("button fibofilters-show-more",wr("show_more_extra_classes",[])),onClick:()=>{as.showMoreProductsClicked()},nodeName:wr("show_more_as_button")?"button":"div"},Qr("Show more products","[front]","fibofilters")))},rd=()=>{const e=(0,i.sO)(null),{appState:t}=(0,p.Ix)();return t.value.showPreviousButtonIsVisible?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(no,{ref:e,className:Ps("button fibofilters-show-more fibofilters-show-more__previous",wr("show_more_extra_classes",[])),onClick:()=>{as.showPreviousProductsClicked()},nodeName:wr("show_more_as_button")?"button":"div"},Qr("Show previous products","[front]","fibofilters"))):null},od=()=>{const e=(0,i.Me)(),t=wr("catalog_orderedby",{}),n=wr("default_catalog_orderby","menu_order"),o=(0,h.tV)();return(0,r.createElement)("select",{className:"fibofilters-orderby orderby",onChange:e=>{as.orderbyChanged(e.target.value)},name:"orderby","aria-label":Qr("Shop order","[front] Sorting of products in the shop.","fibofilters")},Object.keys(t).map((i=>(0,r.createElement)("option",{selected:o===i||0===o.length&&i===n,key:`${e}-${i}`,value:i},t[i]))))},id=()=>{const{appState:e}=(0,p.Ix)(),t=(0,i.Me)();if(!e.value.currentPage||!e.value.totalPages)return null;const n={end_size:3,mid_size:3,show_all:!1,type:"list",wrapper_class:"",...wr("pagination_args"),current:e.value.currentPage,total:e.value.totalPages},o={prev_item:"page-numbers prev",next_item:"page-numbers next",current_item:"page-numbers current",link_item:"page-numbers",dots_item:"page-numbers dots",...wr("pagination_item_classes")};if(parseInt(n.total)<2)return null;n.end_size<1&&(n.end_size=1),n.mid_size<0&&(n.mid_size=2);const s=[],l=({n:e})=>(0,r.createElement)("span",{className:o.current_item},n.before_page_number,e,n.after_page_number),a=({n:e})=>(0,r.createElement)("a",{onClick:t=>{as.paginationClicked({page:e}),t.preventDefault()},className:o.link_item,href:bs(e)},n.before_page_number,e,n.after_page_number),c=()=>(0,r.createElement)("span",{className:o.dots_item},"…");n.prev_text.length>0&&n.current&&n.current>1&&s.push((0,r.createElement)((({n:e})=>(0,r.createElement)("a",{onClick:e=>{as.paginationPrevPageClicked(),e.preventDefault()},href:bs(e),"aria-current":"page",className:o.prev_item,dangerouslySetInnerHTML:{__html:n.prev_text}})),{n:n.current-1}));let u=!1;for(let e=1;e<=n.total;e++)e===n.current?(s.push((0,r.createElement)(l,{n:e})),u=!0):n.show_all||e<=n.end_size||n.current&&e>=n.current-n.mid_size&&e<=n.current+n.mid_size||e>n.total-n.end_size?(s.push((0,r.createElement)(a,{n:e})),u=!0):u&&!n.show_all&&(s.push((0,r.createElement)(c,null)),u=!1);n.next_text.length>0&&n.current&&n.current<n.total&&s.push((0,r.createElement)((({n:e})=>(0,r.createElement)("a",{onClick:e=>{as.paginationNextPageClicked(),e.preventDefault()},href:bs(e),"aria-current":"page",className:o.next_item,dangerouslySetInnerHTML:{__html:n.next_text}})),{n:n.current+1}));const d=({children:e})=>n.wrapper_class.length>0?(0,r.createElement)("div",{className:n.wrapper_class},e):e;return"list"===n.type?(0,r.createElement)(d,null,(0,r.createElement)("ul",{className:"page-numbers nav-pagination links text-center"},s.map(((e,n)=>(0,r.createElement)("li",{key:`${t}-page-link-${n}`},e))))):(0,r.createElement)(d,null,s)},sd=()=>{const e=(0,i.sO)(null),t=e=>{e[0].intersectionRatio<1||(as.loadNextPageImmediately=!0,as.showMoreProductsClicked(),as.triggerFetchMissingProducts())};return(0,i.d4)((()=>{const n=e.current,r=new IntersectionObserver(t,{root:null,rootMargin:"500px",threshold:1});return n&&r.observe(n),()=>{n&&r.unobserve(n)}}),[e]),(0,r.createElement)("div",{ref:e})},ld=()=>{const[e,t]=(0,i.eJ)(!0),n=Hu(1,parseInt(wr("mobile_breakpoint",450))).value,{appState:s}=(0,p.Ix)(),{filtersState:l}=(0,Es.F0)(),a=l.value.filters,c=a.constructor===Object&&Object.entries(a).length>0,u=s.value.globalAppVisibility;if((0,i.d4)((()=>(t(!1),()=>{})),[]),(0,o.bF)((()=>{n?g({peek:!0}):(x(!1,{peek:!0}),E(!1,{peek:!0}))})),!u)return null;const d=Fr(".fibofilters-applied-filters-container"),f=Fr(".fibofilters-vertical-filters-container"),h=Fr(".fibofilters-horizontal-filters-container"),m=Fr(".fibofilters-mobile-filters-container"),_=Fr(".fibofilters-show-more-button-container"),v=Fr(".fibofilters-show-previous-button-container");let b=[];wr("pagination_selectors",[]).every((e=>{const t=Fr(e);return!(t.length>0&&(b=t,1))}));let y=[];wr("ordering_selectors",[]).every((e=>{const t=Fr(e);return!(t.length>0&&(y=t,1))}));const w=Fr(".fibofilters-infinite-scroll-trigger-container");return e?null:(0,r.createElement)(r.Fragment,null,c&&(0,r.createElement)(ed,null),c&&(0,r.createElement)(td,null),c&&m.length>0?m.map(((e,t)=>{const n=(0,de.Z)(e).data("min-screen"),o=(0,de.Z)(e).data("max-screen");return(0,r.createPortal)((0,r.createElement)(Xu,{index:t,minScreen:n,maxScreen:o}),e)})):null,c&&(0,r.createElement)(Wu,null),c&&f.length>0?f.map(((e,t)=>{const n=(0,de.Z)(e).data("min-screen"),o=(0,de.Z)(e).data("max-screen");return(0,r.createPortal)((0,r.createElement)(qu,{index:t,minScreen:n,maxScreen:o,location:qi}),e)})):null,c&&h.length>0?h.map(((e,t)=>{const n=(0,de.Z)(e).data("min-screen"),o=(0,de.Z)(e).data("max-screen");return(0,r.createPortal)((0,r.createElement)(Ku,{index:t,minScreen:n,maxScreen:o}),e)})):null,c&&d.length>0?d.map((e=>(0,r.createPortal)((0,r.createElement)(xs,null),e))):null,_.length>0?_.map((e=>(0,r.createPortal)((0,r.createElement)(nd,null),e))):null,v.length>0?v.map((e=>(0,r.createPortal)((0,r.createElement)(rd,null),e))):null,"pagination"===wr("pagination_strategy")&&b.length>0?b.map((e=>((0,de.Z)(e).children().remove(),(0,r.createPortal)((0,r.createElement)(id,null),e)))):null,w.length>0?w.map((e=>(0,r.createPortal)((0,r.createElement)(sd,null),e))):null,wr("override_ordering_enabled",!1)&&y.length>0?y.map((e=>((0,de.Z)(e).children().remove(),(0,r.createPortal)((0,r.createElement)(od,null),e)))):null,"undefined"!=typeof SnackbarProvider?(0,r.createElement)(SnackbarProvider,null):null)};const ad="undefined"!=typeof fiboFiltersData?window.fiboFiltersData.filters_data:{};var cd=({firstLoad:e,clearProductsCache:t})=>{ds(ad||{filters:{}});const n=yr("index_valid"),o=yr("filters"),i=o&&o.constructor===Array&&o.length>0,s=new URL(document.location.href),l=["1","2","5"],a=l.includes(wr("nofibofilters",""))||l.includes(s.searchParams.get("nofibofilters"));if(_({offcanvasIsVisible:!1,appliedFiltersCount:0,appliedFiltersValues:[],totalProductsCount:0,currentMobileFilter:!1,mobileOverlayAllIsVisible:!1,showMoreButtonIsVisible:!1,showPreviousButtonIsVisible:!1,currentPage:1,totalPages:1,firstVisiblePage:1,pageCounter:1,orderby:"",globalAppVisibility:!0,criticalErrors:[]}),!n||!i||a)return null;const{filtersState:c}=(0,lo.G)(),{appState:u}=(0,h.W5)();return cs.handleRequest({firstLoad:e,clearProductsCache:t}),window.onpopstate=()=>{"show-more-button"!==as.paginationStrategy&&"infinite-scroll"!==as.paginationStrategy||I(1),cs.handleRequest({firstLoad:!1})},(0,r.createElement)(p.WE,{value:{appState:u}},(0,r.createElement)(Es.is,{value:{filtersState:c}},(0,r.createElement)(ld,null)))}},522:function(e,t,n){"use strict";n.d(t,{Ix:function(){return a},WE:function(){return l}});var r=n(741),o=n(847),i=n(619);const s=(0,o.kr)(!1);function l({value:e,children:t}){return(0,r.createElement)(s.Provider,{value:e},t)}const a=()=>(0,i.qp)(s)},34:function(e,t,n){"use strict";n.d(t,{F0:function(){return a},is:function(){return l}});var r=n(741),o=n(847),i=n(619);const s=(0,o.kr)(!1);function l({value:e,children:t}){return(0,r.createElement)(s.Provider,{value:e},t)}const a=()=>(0,i.qp)(s)},816:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});const r=(0,n(82).Hu)()},400:function(e,t,n){"use strict";var r=n(14),o=n.n(r);o().prototype.show=function(e="block"){return this.each((function(t){t.style.display=e}))},o().prototype.hide=function(){return this.each((function(e){e.style.display="none"}))},t.Z=o()},846:function(e,t){"use strict";t.Z=new class{store_product_descriptors={};store_product_descriptors_array=[];base_product_descriptors=[];base_product_variable_ids=[];base_product_ids=[];root_base_products_ids=[];base_products_variations=null;filtered_product_ids=[];filtered_product_indexes=[];output_product_ids=[];getDataToCache(){return{filtered_product_ids:this.filtered_product_ids,filtered_product_indexes:this.filtered_product_indexes,output_product_ids:this.output_product_ids}}setDataFromCache({filtered_product_ids:e,filtered_product_indexes:t,output_product_ids:n}){this.filtered_product_ids=e,this.filtered_product_indexes=t,this.output_product_ids=n}clear(){this.filtered_product_ids=[],this.filtered_product_indexes=[],this.output_product_ids=[]}setStoreProductDescriptors(e){this.store_product_descriptors=e,Object.keys(this.store_product_descriptors).forEach((e=>{Object.keys(this.store_product_descriptors[e]).forEach((t=>{this.store_product_descriptors_array.push([parseInt(t),parseInt(e),this.store_product_descriptors[e][t]])}))}))}setBaseProductsData(e){e.forEach((e=>{this.store_product_descriptors.hasOwnProperty(e)&&Object.keys(this.store_product_descriptors[e]).forEach((t=>{t=parseInt(t),e!==t&&(null===this.base_products_variations&&(this.base_products_variations={}),this.base_products_variations[t]=e,this.base_product_variable_ids.includes(e)||this.base_product_variable_ids.push(e)),this.base_product_descriptors.push([t,e,this.store_product_descriptors[e][t]]),this.base_product_ids.push({productId:t,...void 0!==this.store_product_descriptors[e][t]?.type&&{type:this.store_product_descriptors[e][t]?.type}})}))}))}setRootBaseProductsIds(e){this.root_base_products_ids=e}getRootBaseProductsIds(){return this.root_base_products_ids}setBaseProductDescriptors(e){this.base_product_descriptors=e}setFilteredProducts(e){e.forEach((e=>{this.filtered_product_ids.push({productId:e.doc_id,...void 0!==e.type&&{type:e?.type}}),this.filtered_product_indexes.push(e.index)}))}setFilteredAsBaseProducts(){this.filtered_product_ids=this.base_product_ids}setOutputProductIds(){if(0!==this.filtered_product_ids.length)if(null===this.base_products_variations)this.output_product_ids=this.filtered_product_ids.map((({productId:e})=>e));else{const e=[];this.filtered_product_ids.forEach((({productId:t,type:n})=>{!this.base_products_variations.hasOwnProperty(t)||void 0!==n&&"variable"!==n?this.output_product_ids.push(t):e.includes(this.base_products_variations[t])||(this.output_product_ids.push(this.base_products_variations[t]),e.push(this.base_products_variations[t]))}))}}getStoreProductDescriptors(){return this.store_product_descriptors}hasStoreProductDescriptorsArray(){return this.store_product_descriptors_array.length>0}getStoreProductDescriptorsArray(){return this.store_product_descriptors_array}getBaseProductIds(){return this.base_product_ids}getFilteredProductIds(){return this.filtered_product_ids}getFilteredProductIndexes(){return this.filtered_product_indexes}getOutputProductIds(){return this.output_product_ids}getBaseProductDescriptors(){return this.base_product_descriptors}hasBaseDescriptors(){return this.base_product_descriptors.length>0}areFilteredTheSameAsBased(){return this.base_product_ids.length===this.filtered_product_ids.length}getDescriptorsOfFilteredProducts(){return this.areFilteredTheSameAsBased()?this.getBaseProductDescriptors():this.getDescriptors(this.getFilteredProductIndexes())}getDescriptorByIndex(e){return this.base_product_descriptors[e]}getStoreDescriptorByIndex(e){return this.store_product_descriptors_array[e]}getDescriptors(e){const t=[];return e.forEach((e=>{t.push(this.getDescriptorByIndex(e))})),t}getStoreDescriptors(e,t=!1){const n=[];return e.forEach((e=>{const r=this.getStoreDescriptorByIndex(e);t&&!this.root_base_products_ids.includes(r[1])||n.push(r)})),n}setFilteredProductIds(e){this.filtered_product_ids=e}countMainProductsInDescriptors(e){let t=0;const n=[];return e.forEach((e=>{const r=e[1];e[0]!==r?n.includes(r)||(n.push(r),t++):t++})),t}hasFilteredProducts(){return this.filtered_product_ids.length>0}getBaseProductVariableIds(){return this.base_product_variable_ids}}},797:function(e,t,n){"use strict";n.d(t,{AS:function(){return s},FZ:function(){return i},W5:function(){return o},_N:function(){return c},gc:function(){return l},tV:function(){return a}});const r=(0,n(31).td)(),o=()=>({appState:r}),i=()=>{var e;return null!==(e=r.peek().currentPage)&&void 0!==e?e:1},s=()=>{var e;return null!==(e=r.peek().firstVisiblePage)&&void 0!==e?e:1},l=()=>{var e;return null!==(e=r.peek().totalPages)&&void 0!==e?e:0},a=()=>{var e;return null!==(e=r.peek().orderby)&&void 0!==e?e:""},c=()=>{var e;return null!==(e=r.peek().criticalErrors)&&void 0!==e?e:[]}},743:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});const r=(0,n(31).td)({}),o=()=>({filtersState:r})},779:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},819:function(e,t){"use strict";function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,s=Array.prototype.splice,l=Object.prototype.toString;function a(e){return l.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return u(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===a(e)?new Map(e):"Set"===a(e)?new Set(e):e&&"object"==typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=c({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var s=e;return u(r).forEach((function(t){if(i.call(n.commands,t)){var o=e===s;s=n.commands[t](r[t],s,r,e),o&&n.isEquals(s,e)&&(s=e)}else{var l="Map"===a(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),c="Map"===a(s)?s.get(t):s[t];n.isEquals(l,c)&&(void 0!==l||i.call(e,t))||(s===e&&(s=d(e)),"Map"===a(s)?s.set(t,l):s[t]=l)}})),s},e}();t.Context=f;var p={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,i){return function(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+n(e)})),v(t.$splice)}(t,r),e.forEach((function(e){v(e),t===i&&e.length&&(t=d(i)),s.apply(t,e)})),t},$set:function(e,t,n){return function(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){_(e,"$toggle");var n=e.length?d(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return _(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=d(r)),delete t[e])})),t},$add:function(e,t,n,r){return g(t,"$add"),_(e,"$add"),"Map"===a(t)?e.forEach((function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=d(r)),t.set(n,o)})):e.forEach((function(e){t!==r||t.has(e)||(t=d(r)),t.add(e)})),t},$remove:function(e,t,n,r){return g(t,"$remove"),_(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=d(r)),t.delete(e)})),t},$merge:function(e,t,r,i){var s,l;return s=t,o((l=e)&&"object"==typeof l,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(l)})),o(s&&"object"==typeof s,(function(){return"update(): $merge expects a target of type 'object'; got "+n(s)})),u(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=d(i)),t[n]=e[n])})),t},$apply:function(e,t){var r;return o("function"==typeof(r=e),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),e(t)}},h=new f;function m(e,t,r){o(Array.isArray(e),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."})),_(t[r],r)}function _(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"}))}function v(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"}))}function g(e,t){var r=a(e);o("Map"===r||"Set"===r,(function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)}))}t.isEquals=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=c(t.default,t)},69:function(e){"use strict";e.exports=function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===r?",":r,l=void 0===n?".":n,a="";return a=(i?function(e,t){if(-1===(""+e).indexOf("e"))return+(Math.round(e+"e+"+t)+"e-"+t);var n=(""+e).split("e"),r="";return+n[1]+t>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+t))+"e-"+t)).toFixed(t)}(o,i).toString():""+Math.round(o)).split("."),a[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(a[1]||"").length<i&&(a[1]=a[1]||"",a[1]+=new Array(i-a[1].length+1).join("0")),a.join(l)}},770:function(e){e.exports=function(e,t){var n,r,o=0;function i(){var i,s,l=n,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(s=0;s<a;s++)if(l.args[s]!==arguments[s]){l=l.next;continue e}return l!==n&&(l===r&&(r=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return l={args:i,val:e.apply(null,i)},n?(n.prev=l,l.next=n):r=l,o===t.maxSize?(r=r.prev).next=null:o++,n=l,l.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}},741:function(e,t,n){"use strict";n.r(t),n.d(t,{Children:function(){return h},Component:function(){return r.wA},Fragment:function(){return r.HY},PureComponent:function(){return a},StrictMode:function(){return G},Suspense:function(){return b},SuspenseList:function(){return E},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return H},cloneElement:function(){return Y},createContext:function(){return r.kr},createElement:function(){return r.az},createFactory:function(){return q},createPortal:function(){return I},createRef:function(){return r.Vf},default:function(){return oe},findDOMNode:function(){return K},flushSync:function(){return X},forwardRef:function(){return f},hydrate:function(){return j},isValidElement:function(){return W},lazy:function(){return w},memo:function(){return c},render:function(){return N},startTransition:function(){return ee},unmountComponentAtNode:function(){return J},unstable_batchedUpdates:function(){return Q},useCallback:function(){return o.I4},useContext:function(){return o.qp},useDebugValue:function(){return o.Qb},useDeferredValue:function(){return _n},useEffect:function(){return o.d4},useErrorBoundary:function(){return o.cO},useId:function(){return o.Me},useImperativeHandle:function(){return o.aP},useInsertionEffect:function(){return ne},useLayoutEffect:function(){return o.bt},useMemo:function(){return o.Ye},useReducer:function(){return o._Y},useRef:function(){return o.sO},useState:function(){return o.eJ},useSyncExternalStore:function(){return re},useTransition:function(){return te},version:function(){return z}});var r=n(847),o=n(619);function i(e,t){for(var n in t)e[n]=t[n];return e}function s(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function l(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function a(e){this.props=e}function c(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:s(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.az)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(a.prototype=new r.wA).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,t){return s(this.props,e)||s(this.state,t)};var u=r.YM.__b;r.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),u&&u(e)};var d="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=d,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var p=function(e,t){return null==e?null:(0,r.bR)((0,r.bR)(e).map(t))},h={map:p,forEach:p,count:function(e){return e?(0,r.bR)(e).length:0},only:function(e){var t=(0,r.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.bR},m=r.YM.__e;r.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);m(e,t,n,r)};var _=r.YM.unmount;function v(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return v(e,t,n)}))),e}function g(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return g(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function b(){this.__u=0,this.t=null,this.__b=null}function y(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function E(){this.u=null,this.o=null}r.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),_&&_(e)},(b.prototype=new r.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=y(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=g(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},b.prototype.componentWillUnmount=function(){this.t=[]},b.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=v(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__a&&(0,r.az)(r.HY,null,e.fallback);return i&&(i.__h=null),[(0,r.az)(r.HY,null,t.__a?null:e.children),i]};var x=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function S(e){return this.getChildContext=function(){return e.context},e.children}function k(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,r.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,r.sY)((0,r.az)(S,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function I(e,t){var n=(0,r.az)(k,{__v:e,i:t});return n.containerInfo=t,n}(E.prototype=new r.wA).__a=function(e){var t=this,n=y(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),x(t,e,r)):o()};n?n(i):i()}},E.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},E.prototype.componentDidUpdate=E.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){x(e,n,t)}))};var P="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,A=/[A-Z0-9]/g,F="undefined"!=typeof document,$=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function N(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function j(e,t,n){return(0,r.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var R=r.YM.event;function D(){}function L(){return this.cancelBubble}function T(){return this.defaultPrevented}r.YM.event=function(e){return R&&(e=R(e)),e.persist=D,e.isPropagationStopped=L,e.isDefaultPrevented=T,e.nativeEvent=e};var M,V={enumerable:!1,configurable:!0,get:function(){return this.class}},U=r.YM.vnode;r.YM.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,o={};for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||F&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||$(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":O.test(i)?i=l:-1===n.indexOf("-")&&C.test(i)?i=i.replace(A,"-$&").toLowerCase():null===s&&(s=void 0):l=i="oninput","oninput"===l&&o[i=l]&&(i="oninputCapture"),o[i]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(t.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=(0,r.bR)(t.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",V)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(e),e.$$typeof=P,U&&U(e)};var Z=r.YM.__r;r.YM.__r=function(e){Z&&Z(e),M=e.__c};var B=r.YM.diffed;r.YM.diffed=function(e){B&&B(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),M=null};var H={ReactCurrentDispatcher:{current:{readContext:function(e){return M.__n[e.__c].props.value}}}},z="17.0.2";function q(e){return r.az.bind(null,e)}function W(e){return!!e&&e.$$typeof===P}function Y(e){return W(e)?r.Tm.apply(null,arguments):e}function J(e){return!!e.__k&&((0,r.sY)(null,e),!0)}function K(e){return e&&(e.base||1===e.nodeType&&e)||null}var Q=function(e,t){return e(t)},X=function(e,t){return e(t)},G=r.HY;function ee(e){e()}function _n(e){return e}function te(){return[!1,ee]}var ne=o.bt;function re(e,t){var n=t(),r=(0,o.eJ)({h:{__:n,v:t}}),i=r[0].h,s=r[1];return(0,o.bt)((function(){i.__=n,i.v=t,l(i.__,t())||s({h:i})}),[e,n,t]),(0,o.d4)((function(){return l(i.__,i.v())||s({h:i}),e((function(){l(i.__,i.v())||s({h:i})}))}),[e]),n}var oe={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:ne,useTransition:te,useDeferredValue:_n,useSyncExternalStore:re,startTransition:ee,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:h,render:N,hydrate:j,unmountComponentAtNode:J,createPortal:I,createElement:r.az,createContext:r.kr,createFactory:q,cloneElement:Y,createRef:r.Vf,Fragment:r.HY,isValidElement:W,findDOMNode:K,Component:r.wA,PureComponent:a,memo:c,forwardRef:f,flushSync:X,unstable_batchedUpdates:Q,StrictMode:G,Suspense:b,SuspenseList:E,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H}},847:function(e,t,n){"use strict";n.d(t,{HY:function(){return y},Tm:function(){return B},Vf:function(){return b},YM:function(){return o},ZB:function(){return Z},az:function(){return v},bR:function(){return C},h:function(){return v},kr:function(){return H},sY:function(){return U},wA:function(){return w}});var r,o,i,s,l,a,c,u,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var o,i,s,l={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:l[s]=t[s];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===l[s]&&(l[s]=e.defaultProps[s]);return g(e,l,o,i,null)}function g(e,t,n,r,s){var l={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++i:s};return null==s&&null!=o.vnode&&o.vnode(l),l}function b(){return{current:null}}function y(e){return e.children}function w(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function S(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!k.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||a)(k)}function k(){var e,t,n,r,o,i,l,a;for(s.sort(c);e=s.shift();)e.__d&&(t=s.length,r=void 0,o=void 0,l=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],(o=m({},i)).__v=i.__v+1,R(a,i,o,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[l]:null,r,null==l?E(i):l,i.__h),D(r,i),i.__e!=l&&x(i)),s.length>t&&s.sort(c));k.__r=0}function I(e,t,n,r,o,i,s,l,a,c){var u,p,m,_,v,b,w,x=r&&r.__k||f,S=x.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(_=n.__k[u]=null==(_=t[u])||"boolean"==typeof _||"function"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?g(null,_,null,null,_):h(_)?g(y,{children:_},null,null,null):_.__b>0?g(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(m=x[u])||m&&_.key==m.key&&_.type===m.type)x[u]=void 0;else for(p=0;p<S;p++){if((m=x[p])&&_.key==m.key&&_.type===m.type){x[p]=void 0;break}m=null}R(e,_,m=m||d,o,i,s,l,a,c),v=_.__e,(p=_.ref)&&m.ref!=p&&(w||(w=[]),m.ref&&w.push(m.ref,null,_),w.push(p,_.__c||v,_)),null!=v?(null==b&&(b=v),"function"==typeof _.type&&_.__k===m.__k?_.__d=a=P(_,a,e):a=O(e,_,m,x,v,a),"function"==typeof n.type&&(n.__d=a)):a&&m.__e==a&&a.parentNode!=e&&(a=E(m))}for(n.__e=b,u=S;u--;)null!=x[u]&&("function"==typeof n.type&&null!=x[u].__e&&x[u].__e==n.__d&&(n.__d=A(r).nextSibling),M(x[u],x[u]));if(w)for(u=0;u<w.length;u++)T(w[u],w[++u],w[++u])}function P(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?P(r,t,n):O(n,r,r,o,r.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(h(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var s,l,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,a=0;(l=l.nextSibling)&&a<r.length;a+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function A(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=A(n)))return r;return null}function F(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function $(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||F(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||F(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?j:N,i):e.removeEventListener(t,i?j:N,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function N(e){return this.l[e.type+!1](o.event?o.event(e):e)}function j(e){return this.l[e.type+!0](o.event?o.event(e):e)}function R(e,t,n,r,i,s,l,a,c){var u,d,f,p,_,v,g,b,E,x,S,k,P,C,O,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(u=o.__b)&&u(t);try{e:if("function"==typeof A){if(b=t.props,E=(u=A.contextType)&&r[u.__c],x=u?E?E.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(b,x):(t.__c=d=new w(b,x),d.constructor=A,d.render=V),E&&E.sub(d),d.props=b,d.state||(d.state={}),d.context=x,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=m({},d.__s)),m(d.__s,A.getDerivedStateFromProps(b,d.__s))),p=d.props,_=d.state,d.__v=t,f)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),d.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&l.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,_,v)}))}if(d.context=x,d.props=b,d.__P=e,k=o.__r,P=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++P<25);d.state=d.__s,null!=d.getChildContext&&(r=m(m({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(v=d.getSnapshotBeforeUpdate(p,_)),I(e,h(O=null!=u&&u.type===y&&null==u.key?u.props.children:u)?O:[O],t,n,r,i,s,l,a,c),d.base=t.__e,t.__h=null,d.__h.length&&l.push(d),g&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,r,i,s,l,c);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=s)&&(t.__e=a,t.__h=!!c,s[s.indexOf(a)]=null),o.__e(e,t,n)}}function D(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function L(e,t,n,o,i,s,l,a){var c,u,f,p=n.props,m=t.props,v=t.type,g=0;if("svg"===v&&(i=!0),null!=s)for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,s[g]=null;break}if(null==e){if(null===v)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),s=null,a=!1}if(null===v)p===m||a&&e.data===m||(e.data=m);else{if(s=s&&r.call(e.childNodes),u=(p=n.props||d).dangerouslySetInnerHTML,f=m.dangerouslySetInnerHTML,!a){if(null!=s)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||$(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||$(e,i,t[i],n[i],r)}(e,m,p,i,a),f)t.__k=[];else if(I(e,h(g=t.props.children)?g:[g],t,n,o,i&&"foreignObject"!==v,s,l,s?s[0]:n.__k&&E(n,0),a),null!=s)for(g=s.length;g--;)null!=s[g]&&_(s[g]);a||("value"in m&&void 0!==(g=m.value)&&(g!==e.value||"progress"===v&&!g||"option"===v&&g!==p.value)&&$(e,"value",g,p.value,!1),"checked"in m&&void 0!==(g=m.checked)&&g!==e.checked&&$(e,"checked",g,p.checked,!1))}return e}function T(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function M(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||T(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||_(e.__e),e.__=e.__e=e.__d=void 0}function V(e,t,n){return this.constructor(e,n)}function U(e,t,n){var i,s,l;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,l=[],R(t,e=(!i&&n||t).__k=v(y,null,[e]),s||d,d,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,l,!i&&n?n:s?s.__e:t.firstChild,i),D(l,e)}function Z(e,t){U(e,t,Z)}function B(e,t,n){var o,i,s,l,a=m({},e.props);for(s in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=void 0===t[s]&&void 0!==l?l[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),g(e.type,a,o||e.key,i||e.ref,null)}function H(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=y,s=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,u=0},619:function(e,t,n){"use strict";n.d(t,{I4:function(){return S},Me:function(){return C},Qb:function(){return I},Ye:function(){return x},_Y:function(){return g},aP:function(){return E},bt:function(){return y},cO:function(){return P},d4:function(){return b},eJ:function(){return v},qp:function(){return k},sO:function(){return w}});var r,o,i,s,l=n(847),a=0,c=[],u=[],d=l.YM.__b,f=l.YM.__r,p=l.YM.diffed,h=l.YM.__c,m=l.YM.unmount;function _(e,t){l.YM.__h&&l.YM.__h(o,e,a||t),a=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function v(e){return a=1,g(R,e)}function g(e,t,n){var i=_(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):R(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!l||l.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!l||l.call(this,e,t,n))};o.u=!0;var l=o.shouldComponentUpdate,a=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=l;l=void 0,s(e,t,n),l=r}a&&a.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}function b(e,t){var n=_(r++,3);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function y(e,t){var n=_(r++,4);!l.YM.__s&&j(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return a=5,x((function(){return{current:e}}),[])}function E(e,t,n){a=6,y((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=_(r++,7);return j(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function S(e,t){return a=8,x((function(){return e}),t)}function k(e){var t=o.context[e.__c],n=_(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function I(e,t){l.YM.useDebugValue&&l.YM.useDebugValue(t?t(e):e)}function P(e){var t=_(r++,10),n=v();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function C(){var e=_(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function O(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($),e.__H.__h.forEach(N),e.__H.__h=[]}catch(t){e.__H.__h=[],l.YM.__e(t,e.__v)}}l.YM.__b=function(e){o=null,d&&d(e)},l.YM.__r=function(e){f&&f(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach($),t.__h.forEach(N),t.__h=[],r=0)),i=o},l.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===l.YM.requestAnimationFrame||((s=l.YM.requestAnimationFrame)||F)(O)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),i=o=null},l.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach($),e.__h=e.__h.filter((function(e){return!e.__||N(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.YM.__e(n,e.__v)}})),h&&h(e,t)},l.YM.unmount=function(e){m&&m(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{$(e)}catch(e){t=e}})),n.__H=void 0,t&&l.YM.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function F(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function $(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function N(e){var t=o;e.__c=e.__(),o=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function R(e,t){return"function"==typeof t?t(e):t}},131:function(e,t,n){var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,s,l,a,c,u,d,f,p=1,h=e.length,m="";for(r=0;r<h;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((l=e[r]).keys)for(n=t[p],s=0;s<l.keys.length;s++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[s],l.keys[s-1]));n=n[l.keys[s]]}else n=l.param_no?t[l.param_no]:t[p++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(d=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(l.type)?m+=n:(!o.number.test(l.type)||d&&!l.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),c=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",u=l.width-(f+n).length,a=l.width&&u>0?c.repeat(u):"",m+=l.align?f+n+a:"0"===c?f+a+n:a+f+n)}return m}(function(e){if(l[e])return l[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var s=[],a=t[2],c=[];if(null===(c=o.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=o.key_access.exec(a)))s.push(c[1]);else{if(null===(c=o.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}t[2]=s}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}(e),arguments)}function s(e,t){return i.apply(null,[e].concat(t||[]))}var l=Object.create(null);t.sprintf=i,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=s,void 0===(r=function(){return{sprintf:i,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},14:function(e){var t=function(e,n){return this instanceof t?e instanceof t?e:((e="string"==typeof e?this.select(e,n):e)&&e.nodeName&&(e=[e]),void(this.nodes=this.slice(e))):new t(e,n)};t.prototype={get length(){return this.nodes.length}},t.prototype.nodes=[],t.prototype.addClass=function(){return this.eacharg(arguments,(function(e,t){e.classList.add(t)}))},t.prototype.adjacent=function(e,n,r){return"number"==typeof n&&(n=0===n?[]:new Array(n).join().split(",").map(Number.call,Number)),this.each((function(o,i){var s=document.createDocumentFragment();t(n||{}).map((function(n,r){return"string"==typeof(r="function"==typeof e?e.call(this,n,r,o,i):e)?this.generate(r):t(r)})).each((function(e){this.isInPage(e)?s.appendChild(t(e).clone().first()):s.appendChild(e)})),r.call(this,o,s)}))},t.prototype.after=function(e,t){return this.adjacent(e,t,(function(e,t){e.parentNode.insertBefore(t,e.nextSibling)}))},t.prototype.append=function(e,t){return this.adjacent(e,t,(function(e,t){e.appendChild(t)}))},t.prototype.args=function(e,t,n){return(e="string"!=typeof(e="function"==typeof e?e(t,n):e)?this.slice(e).map(this.str(t,n)):e).toString().split(/[\s,]+/).filter((function(e){return e.length}))},t.prototype.array=function(e){var n=this;return this.nodes.reduce((function(r,o,i){var s;return e?(s="string"==typeof(s=(s=e.call(n,o,i))||!1)?t(s):s)instanceof t&&(s=s.nodes):s=o.innerHTML,r.concat(!1!==s?s:[])}),[])},t.prototype.attr=function(e,t,n){return n=n?"data-":"",this.pairs(e,t,(function(e,t){return e.getAttribute(n+t)}),(function(e,t,r){r?e.setAttribute(n+t,r):e.removeAttribute(n+t)}))},t.prototype.before=function(e,t){return this.adjacent(e,t,(function(e,t){e.parentNode.insertBefore(t,e)}))},t.prototype.children=function(e){return this.map((function(e){return this.slice(e.children)})).filter(e)},t.prototype.clone=function(){return this.map((function(e,t){var n=e.cloneNode(!0),r=this.getAll(n);return this.getAll(e).each((function(e,t){for(var n in this.mirror)this.mirror[n]&&this.mirror[n](e,r.nodes[t])})),n}))},t.prototype.getAll=function(e){return t([e].concat(t("*",e).nodes))},t.prototype.mirror={},t.prototype.mirror.events=function(e,n){if(e._e)for(var r in e._e)e._e[r].forEach((function(e){t(n).on(r,e.callback)}))},t.prototype.mirror.select=function(e,n){t(e).is("select")&&(n.value=e.value)},t.prototype.mirror.textarea=function(e,n){t(e).is("textarea")&&(n.value=e.value)},t.prototype.closest=function(e){return this.map((function(n){do{if(t(n).is(e))return n}while((n=n.parentNode)&&n!==document)}))},t.prototype.data=function(e,t){return this.attr(e,t,!0)},t.prototype.each=function(e){return this.nodes.forEach(e.bind(this)),this},t.prototype.eacharg=function(e,t){return this.each((function(n,r){this.args(e,n,r).forEach((function(e){t.call(this,n,e)}),this)}))},t.prototype.empty=function(){return this.each((function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))},t.prototype.filter=function(e){var n=e instanceof t?function(t){return-1!==e.nodes.indexOf(t)}:"function"==typeof e?e:function(t){return t.matches=t.matches||t.msMatchesSelector||t.webkitMatchesSelector,t.matches(e||"*")};return t(this.nodes.filter(n))},t.prototype.find=function(e){return this.map((function(n){return t(e||"*",n)}))},t.prototype.first=function(){return this.nodes[0]||!1},t.prototype.generate=function(e){return/^\s*<tr[> ]/.test(e)?t(document.createElement("table")).html(e).children().children().nodes:/^\s*<t(h|d)[> ]/.test(e)?t(document.createElement("table")).html(e).children().children().children().nodes:/^\s*</.test(e)?t(document.createElement("div")).html(e).children().nodes:document.createTextNode(e)},t.prototype.handle=function(){var e=this.slice(arguments).map((function(e){return"function"==typeof e?function(t){t.preventDefault(),e.apply(this,arguments)}:e}),this);return this.on.apply(this,e)},t.prototype.hasClass=function(){return this.is("."+this.args(arguments).join("."))},t.prototype.html=function(e){return void 0===e?this.first().innerHTML||"":this.each((function(t){t.innerHTML=e}))},t.prototype.is=function(e){return 0<this.filter(e).length},t.prototype.isInPage=function(e){return e!==document.body&&document.body.contains(e)},t.prototype.last=function(){return this.nodes[this.length-1]||!1},t.prototype.map=function(e){return e?t(this.array(e)).unique():this},t.prototype.not=function(e){return this.filter((function(n){return!t(n).is(e||!0)}))},t.prototype.off=function(e,n,r){var o=null==n&&null==r,i=null,s=n;return"string"==typeof n&&(i=n,s=r),this.eacharg(e,(function(e,n){t(e._e?e._e[n]:[]).each((function(t){(o||t.orig_callback===s&&t.selector===i)&&e.removeEventListener(n,t.callback)}))}))},t.prototype.on=function(e,n,r){function o(e,t){try{Object.defineProperty(e,"currentTarget",{value:t,configurable:!0})}catch(e){}}var i=null,s=n;function l(e){return n.apply(this,[e].concat(e.detail||[]))}return"string"==typeof n&&(i=n,s=r,n=function(e){var n=arguments;t(e.currentTarget).find(i).each((function(t){var i;t.contains(e.target)&&(i=e.currentTarget,o(e,t),r.apply(t,n),o(e,i))}))}),this.eacharg(e,(function(e,t){e.addEventListener(t,l),e._e=e._e||{},e._e[t]=e._e[t]||[],e._e[t].push({callback:l,orig_callback:s,selector:i})}))},t.prototype.pairs=function(e,t,n,r){var o;return void 0!==t&&(o=e,(e={})[o]=t),"object"==typeof e?this.each((function(t,n){for(var o in e)"function"==typeof e[o]?r(t,o,e[o](t,n)):r(t,o,e[o])})):this.length?n(this.first(),e):""},t.prototype.param=function(e){return Object.keys(e).map(function(t){return this.uri(t)+"="+this.uri(e[t])}.bind(this)).join("&")},t.prototype.parent=function(e){return this.map((function(e){return e.parentNode})).filter(e)},t.prototype.prepend=function(e,t){return this.adjacent(e,t,(function(e,t){e.insertBefore(t,e.firstChild)}))},t.prototype.remove=function(){return this.each((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},t.prototype.removeClass=function(){return this.eacharg(arguments,(function(e,t){e.classList.remove(t)}))},t.prototype.replace=function(e,n){var r=[];return this.adjacent(e,n,(function(e,t){r=r.concat(this.slice(t.children)),e.parentNode.replaceChild(t,e)})),t(r)},t.prototype.scroll=function(){return this.first().scrollIntoView({behavior:"smooth"}),this},t.prototype.select=function(e,n){return e=e.replace(/^\s*/,"").replace(/\s*$/,""),/^</.test(e)?t().generate(e):(n||document).querySelectorAll(e)},t.prototype.serialize=function(){var e=this;return this.slice(this.first().elements).reduce((function(n,r){return!r.name||r.disabled||"file"===r.type||/(checkbox|radio)/.test(r.type)&&!r.checked?n:"select-multiple"===r.type?(t(r.options).each((function(t){t.selected&&(n+="&"+e.uri(r.name)+"="+e.uri(t.value))})),n):n+"&"+e.uri(r.name)+"="+e.uri(r.value)}),"").slice(1)},t.prototype.siblings=function(e){return this.parent().children(e).not(this)},t.prototype.size=function(){return this.first().getBoundingClientRect()},t.prototype.slice=function(e){return e&&0!==e.length&&"string"!=typeof e&&"[object Function]"!==e.toString()?e.length?[].slice.call(e.nodes||e):[e]:[]},t.prototype.str=function(e,t){return function(n){return"function"==typeof n?n.call(this,e,t):n.toString()}},t.prototype.text=function(e){return void 0===e?this.first().textContent||"":this.each((function(t){t.textContent=e}))},t.prototype.toggleClass=function(e,t){return!!t===t?this[t?"addClass":"removeClass"](e):this.eacharg(e,(function(e,t){e.classList.toggle(t)}))},t.prototype.trigger=function(e){var t=this.slice(arguments).slice(1);return this.eacharg(e,(function(e,n){var r,o={bubbles:!0,cancelable:!0,detail:t};try{r=new window.CustomEvent(n,o)}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,t)}e.dispatchEvent(r)}))},t.prototype.unique=function(){return t(this.nodes.reduce((function(e,t){return null!=t&&!1!==t&&-1===e.indexOf(t)?e.concat(t):e}),[]))},t.prototype.uri=function(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},t.prototype.wrap=function(e){return this.map((function(n){return t(e).each((function(e){(function(e){for(;e.firstElementChild;)e=e.firstElementChild;return t(e)})(e).append(n.cloneNode(!0)),n.parentNode.replaceChild(e,n)}))}))},e.exports&&(e.exports=t,e.exports.u=t)},134:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ả":"A","Ạ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ẻ":"E","Ẽ":"E","Ẹ":"E","Ể":"E","Ễ":"E","Ệ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ỉ":"I","Ị":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ỏ":"O","Ọ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ớ":"O","Ợ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ủ":"U","Ụ":"U","Ử":"U","Ữ":"U","Ự":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ả":"a","ạ":"a","ẩ":"a","ẫ":"a","ậ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ẻ":"e","ẽ":"e","ẹ":"e","ể":"e","ễ":"e","ệ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ỉ":"i","ị":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ỏ":"o","ọ":"o","ổ":"o","ỗ":"o","ộ":"o","ờ":"o","ở":"o","ỡ":"o","ớ":"o","ợ":"o","ù":"u","ú":"u","û":"u","ü":"u","ủ":"u","ụ":"u","ử":"u","ữ":"u","ự":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","Ĳ":"IJ","ĳ":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ŉ":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,"");function i(e){return t[e]}var s=function(e){return e.replace(r,i)};e.exports=s,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=s}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r),n.d(r,{getCriticalErrors:function(){return f},hooks:function(){return u},queryDataStore:function(){return d},showDebugger:function(){return h},v:function(){return p}});var e=n(741),t=n(847),o=n(816),i=n(400),s=(n(34),n(522),n(743),n(797)),l=n(846);const a=(r=!0,o=!1)=>{const i=n(68).Z;(0,t.sY)((0,e.createElement)(i,{firstLoad:r,clearProductsCache:o}),document.getElementById(window.fiboFiltersData.config.app_selector))};var c;c=function(){const e=document.getElementById("fibofilters-data");if(!e)return;try{window.fiboFiltersData=JSON.parse(e.text.substring(e.text.indexOf("{"),e.text.lastIndexOf("}")+1)),o.P.doAction("fiboFilters.core.config_loaded")}catch(e){return}const t=document.createElement("div");t.style.position="absolute",t.style.zIndex="999995",t.setAttribute("id",window.fiboFiltersData.config.app_selector),(0,i.Z)("body").append(t),a(),o.P.doAction("fiboFilters.core.init")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",c):c()),o.P.addAction("fiboFilters.core.rerender","fibofilters",((e={})=>{const{clearProductsCache:t}={clearProductsCache:!1,...e};a(!1,t)}));const u=o.P,d={getStoreProductDescriptors:()=>l.Z.getStoreProductDescriptors(),getBaseProductIds:()=>l.Z.getBaseProductIds(),getFilteredProductIds:()=>l.Z.getFilteredProductIds(),getBaseProductDescriptors:()=>l.Z.getBaseProductDescriptors(),getOutputProductIds:()=>l.Z.getOutputProductIds(),getDescriptorsOfFilteredProducts:()=>l.Z.getDescriptorsOfFilteredProducts()},f=()=>(0,s._N)(),p=()=>void 0!==window.fiboFiltersData.config.v?atob(window.fiboFiltersData.config.v):"Unknown",h=()=>document.dispatchEvent(new Event("fibofilters-show-filters-debugger"))}(),fiboFilters=r}();
// source --> https://homeofficecanella.com.gt/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.10.7.0 
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
// source --> https://homeofficecanella.com.gt/wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js?ver=2.1.4-wc.10.7.0 
/*! js-cookie v3.0.5 | MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});