PageSourceSearch

https://www.kendal.org/wp-content/themes/kendal/assets/dist/js/filters.min.js?ver=1614970316

js kendal.org collected 2026-10-03 19:40:41 UTC 26,331 bytes, 2 lines download raw bytes

1this.Kendal=this.Kendal||{},this.Kendal.Filters=function(t,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return l(this,n)}}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var p=function(){function t(e,n){i(this,t),this.node=e,this.className=n,this.focused=!1,this.node.addEventListener("focus",this.focus.bind(this),!0),this.node.addEventListener("blur",this.blur.bind(this),!0)}return s(t,[{key:"toggle",value:function(){return this.focused?this.blur():this.focus()}},{key:"focus",value:function(){this.focused=!0,this.node.classList.add(this.className),this.node.dispatchEvent(new CustomEvent("site:focus-within:focus"))}},{key:"blur",value:function(){this.focused=!1,this.node.classList.remove(this.className),this.node.dispatchEvent(new CustomEvent("site:focus-within:blur"))}}]),t}();var f='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512">\n<path d="M0.021 256.809l-0.011 0.002c0 0 0.006 0.045 0.014 0.111 0.055 1.939 0.275 3.838 0.661 5.676 0.102 0.873 0.214 1.83 0.337 2.887 0.111 0.943 0.23 1.957 0.359 3.039 0.187 1.283 0.385 2.646 0.595 4.088 0.428 2.873 0.9 6.062 1.454 9.479 0.674 3.223 1.402 6.707 2.182 10.432 0.355 1.859 0.888 3.752 1.393 5.703 0.512 1.945 1.039 3.947 1.58 6.002 0.283 1.021 0.52 2.066 0.854 3.104 0.328 1.037 0.66 2.088 0.994 3.15 0.674 2.117 1.363 4.283 2.068 6.494 0.176 0.553 0.354 1.105 0.532 1.662 0.204 0.551 0.407 1.104 0.613 1.658 0.413 1.109 0.829 2.229 1.251 3.357 0.848 2.248 1.711 4.539 2.59 6.871 0.984 2.283 1.985 4.607 3.002 6.967 0.509 1.174 1.022 2.357 1.539 3.549 0.524 1.188 1.135 2.352 1.704 3.537 1.161 2.357 2.339 4.748 3.531 7.166 1.235 2.393 2.604 4.756 3.923 7.164 0.668 1.199 1.34 2.404 2.014 3.615 0.684 1.205 1.451 2.375 2.178 3.57 1.475 2.369 2.965 4.762 4.467 7.174 6.32 9.447 13.338 18.783 21.105 27.639 7.856 8.789 16.363 17.125 25.346 24.801 9.090 7.568 18.632 14.451 28.363 20.557 9.802 6.018 19.822 11.156 29.688 15.572 2.502 1.020 4.982 2.031 7.439 3.033 1.231 0.486 2.434 1.016 3.668 1.459 1.235 0.434 2.465 0.867 3.688 1.297 2.449 0.842 4.839 1.734 7.242 2.496 2.416 0.715 4.802 1.422 7.156 2.121 1.178 0.336 2.33 0.713 3.502 1.006 1.173 0.287 2.338 0.57 3.493 0.852 2.303 0.559 4.571 1.107 6.802 1.648 2.25 0.434 4.463 0.861 6.635 1.279 1.083 0.205 2.155 0.41 3.217 0.611 0.531 0.1 1.059 0.199 1.583 0.299 0.53 0.074 1.059 0.146 1.583 0.221 2.096 0.291 4.146 0.576 6.15 0.855 0.999 0.137 1.986 0.273 2.961 0.408 0.973 0.143 1.952 0.189 2.907 0.285 1.911 0.168 3.772 0.332 5.582 0.49 1.808 0.152 3.552 0.344 5.263 0.369 0.115 0.004 0.226 0.008 0.341 0.013 0.307 17.406 14.504 31.423 31.984 31.423 0.271 0 0.54-0.014 0.81-0.021v0.011c0 0 0.045-0.006 0.112-0.014 1.939-0.055 3.837-0.275 5.675-0.661 0.874-0.102 1.831-0.213 2.888-0.336 0.942-0.111 1.956-0.231 3.038-0.359 1.283-0.188 2.646-0.386 4.088-0.596 2.873-0.428 6.062-0.9 9.479-1.454 3.223-0.674 6.707-1.402 10.432-2.181 1.859-0.356 3.752-0.889 5.703-1.393 1.946-0.513 3.947-1.040 6.002-1.581 1.022-0.283 2.066-0.52 3.104-0.854 1.037-0.328 2.087-0.659 3.15-0.994 2.116-0.674 4.282-1.363 6.494-2.067 0.552-0.177 1.105-0.354 1.662-0.533 0.55-0.203 1.103-0.407 1.658-0.613 1.108-0.412 2.228-0.829 3.357-1.25 2.248-0.849 4.539-1.712 6.87-2.591 2.284-0.984 4.608-1.985 6.968-3.002 1.174-0.509 2.357-1.022 3.549-1.539 1.188-0.524 2.351-1.135 3.537-1.704 2.357-1.161 4.747-2.339 7.165-3.531 2.393-1.235 4.756-2.604 7.164-3.923 1.199-0.668 2.404-1.339 3.615-2.014 1.205-0.683 2.375-1.45 3.57-2.177 2.369-1.476 4.762-2.965 7.175-4.468 9.445-6.32 18.782-13.337 27.639-21.105 8.787-7.856 17.124-16.363 24.801-25.345 7.568-9.091 14.451-18.632 20.556-28.3
164 6.018-9.801 11.157-19.822 15.571-29.688 1.021-2.501 2.031-4.982 3.034-7.439 0.487-1.231 1.016-2.434 1.459-3.667 0.435-1.236 0.866-2.466 1.296-3.688 0.843-2.449 1.734-4.839 2.497-7.242 0.716-2.416 1.423-4.802 2.12-7.155 0.337-1.179 0.715-2.33 1.008-3.502 0.285-1.174 0.569-2.338 0.851-3.494 0.559-2.303 1.108-4.57 1.648-6.801 0.434-2.251 0.86-4.464 1.279-6.636 0.205-1.082 0.409-2.154 0.611-3.217 0.1-0.53 0.199-1.058 0.298-1.582 0.074-0.531 0.148-1.059 0.222-1.584 0.291-2.095 0.576-4.146 0.854-6.15 0.139-0.998 0.275-1.985 0.41-2.961 0.142-0.973 0.188-1.951 0.284-2.906 0.168-1.911 0.332-3.773 0.49-5.582 0.152-1.808 0.343-3.553 0.369-5.264 0.010-0.267 0.020-0.522 0.029-0.787 17.612-0.073 31.866-14.369 31.866-31.996 0-0.271-0.014-0.54-0.021-0.81h0.011c0 0-0.006-0.045-0.014-0.112-0.055-1.939-0.275-3.837-0.661-5.675-0.102-0.874-0.214-1.831-0.337-2.888-0.111-0.943-0.23-1.957-0.359-3.038-0.187-1.283-0.385-2.647-0.595-4.088-0.428-2.873-0.9-6.062-1.454-9.479-0.674-3.222-1.402-6.707-2.182-10.431-0.355-1.86-0.888-3.753-1.393-5.704-0.512-1.946-1.039-3.947-1.58-6.001-0.283-1.022-0.52-2.067-0.854-3.104-0.328-1.038-0.66-2.087-0.994-3.15-0.674-2.117-1.363-4.283-2.068-6.495-0.176-0.551-0.354-1.105-0.532-1.662-0.204-0.55-0.407-1.103-0.613-1.658-0.413-1.108-0.829-2.227-1.251-3.357-0.848-2.249-1.711-4.54-2.59-6.87-0.984-2.285-1.985-4.608-3.002-6.968-0.51-1.174-1.022-2.357-1.539-3.549-0.524-1.188-1.135-2.351-1.704-3.538-1.161-2.357-2.339-4.747-3.531-7.165-1.235-2.393-2.604-4.756-3.923-7.164-0.668-1.199-1.34-2.404-2.014-3.615-0.684-1.205-1.451-2.375-2.178-3.57-1.475-2.37-2.965-4.762-4.467-7.175-6.32-9.446-13.338-18.782-21.105-27.639-7.856-8.788-16.363-17.125-25.346-24.801-9.090-7.568-18.632-14.451-28.363-20.556-9.802-6.018-19.822-11.157-29.688-15.571-2.502-1.020-4.982-2.031-7.439-3.034-1.231-0.487-2.434-1.016-3.668-1.459-1.235-0.435-2.465-0.867-3.688-1.296-2.449-0.842-4.839-1.734-7.242-2.497-2.416-0.716-4.802-1.423-7.156-2.121-1.178-0.336-2.33-0.714-3.502-1.007-1.173-0.286-2.338-0.569-3.493-0.851-2.303-0.559-4.571-1.108-6.802-1.649-2.25-0.434-4.463-0.86-6.635-1.279-1.083-0.206-2.155-0.41-3.217-0.611-0.531-0.1-1.059-0.199-1.583-0.298-0.53-0.074-1.059-0.148-1.583-0.221-2.096-0.292-4.146-0.577-6.15-0.855-0.999-0.138-1.986-0.275-2.961-0.41-0.973-0.142-1.952-0.188-2.907-0.285-1.911-0.168-3.772-0.332-5.582-0.49-1.808-0.152-3.552-0.343-5.263-0.369-0.426-0.016-0.837-0.031-1.256-0.046-0.325-17.39-14.514-31.389-31.983-31.389-0.271 0-0.54 0.014-0.81 0.021l-0.001-0.011c0 0-0.045 0.006-0.111 0.014-1.939 0.055-3.838 0.275-5.676 0.661-0.874 0.102-1.831 0.213-2.888 0.336-0.942 0.111-1.956 0.231-3.038 0.359-1.283 0.188-2.646 0.386-4.088 0.596-2.873 0.428-6.062 0.9-9.479 1.454-3.223 0.674-6.707 1.402-10.432 2.181-1.859 0.356-3.752 0.889-5.703 1.393-1.946 0.513-3.947 1.040-6.002 1.581-1.022 0.283-2.066 0.52-3.104 0.854-1.037 0.328-2.087 0.659-3.15 0.994-2.116 0.674-4.282 1.363-6.494 2.067-0.552 0.177-1.105 0.354-1.662 0.533-0.55 0.203-1.103 0.407-1.658 0.613-1.108 0.412-2.228 0.829-3.357 1.25-2.248 0.849-4.539 1.712-6.87 2.591-2.284 0.984-4.608 1.985-6.968 3.002-1.174 0.509-2.357 1.022-3.549 1.539-1.188 0.524-2.351 1.135-3.537 1.704-2.357 1.161-4.747 2.339-7.165 3.531-2.393 1.235-4.756 2.604-7.164 3.923-1.199 0.668-2.404 1.339-3.615 2.014-1.205 0.683-2.375 1.45-3.57 2.177-2.369 1.476-4.762 2.965-7.175 4.468-9.445 6.32-18.782 13.337-27.639 21.105-8.787 7.856-17.124 16.363-24.801 25.345-7.568 9.091-14.451 18.632-20.556 28.364-6.018 9.801-11.157 19.822-15.571 29.688-1.021 2.501-2.031 4.982-3.034 7.439-0.487 1.231-1.016 2.434-1.459 3.667-0.435 1.236-0.866 2.466-1.296 3.688-0.843 2.449-1.734 4.839-2.497 7.242-0.716 2.416-1.423 4.802-2.12 7.155-0.337 1.179-0.715 2.33-1.008 3.502-0.285 1.174-0.569 2.338-0.851 3.494-0.559 2.303-1.108 4.57-1.648 6.801-0.434 2.251-0.86 4.464-1.279 6.636-0.205 1.082-0.409 2.154-0.611 3.217-0.1 0.53-0.199 1.058-0.298 1.582-0.074 0.531-0.148 1.059-0.222 1.584-0.291 2.095-0.576 4.146-0.854 6.15-0.139 0.998-0.275 1.985-0.41 2.961-0.142 0.973-0.188 1.951-0.284 2.906-0.168 1.911-0.332 3.773-0.49 5.582-0.152 1.808-0.343 3.553-0.369 5.264-0.010 0.274-0.020 0.538-0.029 0.81-17.188 0.556-30.951 14.652-30.951 31.973 0 0.271 0.014 0.539 0.021 0.809zM36.759 224.353c0.021-0.098 0.043-0.192 0.064-0.29 0.322-1.624 0.816-3.271 1.278-4.971 0.467-1.694 0.947-3.438 1.44-5.227 0.258-0.89 0.467-1.801 0.773-2.703 0.298-0.901 0.601-1.814 0.905-2.738 0.609-1.841 1.232-3.725 1.868-5.647 0.158-0.479 0.317-0.962 0.478-1.446 0.185-0.477 0.37-0.957 0.557-1.438 0.373-0.962 0.75-1.934 1.13-2.915 0.76-1.952 1.535-3.941 2.323-5.965 0.884-1.98 1.783-3.995 2.696-6.040 0.454-1.019 0.912-2.045 1.373-3.078 0.466-1.030 1.018-2.036 1.526-3.063 1.035-2.042 2.085-4.111 3.147-6.206 1.101-2.071 2.327-4.112 3.499-6.196 0.592-1.037 1.187-2.080 1.785-3.128 0.605-1.043 1.293-2.051 1.938-3.083 1.308-2.049 2.628-4.116 3.959-6.201 5.617-8.149 11.816-16.199 18.665-23.819 6.937-7.552 14.421-14.702 22.299-21.274 7.987-6.464 16.343-12.325 24.838-17.511 8.565-5.097 17.3-9.419 25.867-13.129 2.175-0.85 4.331-1.691 6.467-2.525 1.068-0.406 2.108-0.855 3.18-1.222 1.073-0.357 2.14-0.714 3.202-1.068 2.125-0.693 4.191-1.444 6.274-2.071 2.092-0.587 4.157-1.166 6.196-1.737 1.019-0.275 2.013-0.595 3.027-0.831 1.015-0.229 2.022-0.457 3.022-0.684 1.989-0.455 3.948-0.903 5.874-1.344 1.944-0.343 3.855-0.68 5.731-1.011 0.934-0.165 1.858-0.329 2.773-0.49 0.457-0.081 0.912-0.162 1.364-0.242 0.458-0.056 0.914-0.111 1.367-0.166 1.806-0.224 3.574-0.441 5.302-0.655 0.86-0.108 1.711-0.216 2.551-0.322 0.837-0.113 1.682-0.133 2.505-0.204 1.646-0.119 3.249-0.236 4.808-0.35 1.555-0.109 3.055-0.262 4.529-0.254 2.924-0.066 5.66-0.128 8.19-0.186 2.332 0.084 4.474 0.162 6.409 0.231 0.957 0.027 1.863 0.054 2.716 0.078 1.061 0.067 2.054 0.13 2.979 0.189 1.065 0.069 2.030 0.133 2.91 0.19 1.628 0.255 3.296 0.391 4.995 0.391 0.233 0 0.465-0.013 0.698-0.018 0.066 0.004 0.112 0.007 0.112 0.007v-0.010c15.57-0.389 28.375-11.892 30.778-26.877 0.271 0.060 0.532 0.118 0.806 0.178 1.623 0.322 3.271 0.816 4.971 1.278 1.693 0.467 3.438 0.947 5.227 1.44 0.889 0.258 1.801 0.467 2.702 0.773 0.901 0.298 1.815 0.601 2.739 0.906 1.84 0.609 3.724 1.232 5.646 1.868 0.48 0.158 0.962 0.317 1.446 0.478 0.478 0.185 0.957 0.37 1.438 0.556 0.963 0.373 1.934 0.75 2.915 1.13 1.952 0.76 3.942 1.535 5.966 2.323 1.98 0.884 3.994 1.783 6.040 2.696 1.019 0.454 2.044 0.912 3.078 1.373 1.030 0.466 2.036 1.018 3.063 1.527 2.041 1.035 4.111 2.085 6.205 3.147 2.072 1.101 4.113 2.327 6.197 3.499 1.037 0.592 2.080 1.187 3.128 1.786 1.043 0.605 2.051 1.293 3.083 1.938 2.049 1.308 4.115 2.628 6.201 3.959 8.148 5.617 16.199 11.816 23.818 18.665 7.552 6.937 14.703 14.421 21.275 22.299 6.464 7.987 12.324 16.343 17.51 24.838 5.098 8.565 9.42 17.3 13.13 25.868 0.849 2.174 1.691 4.331 2.525 6.466 0.406 1.068 0.855 2.108 1.222 3.18 0.357 1.073 0.714 2.14 1.068 3.202 0.693 2.125 1.444 4.192 2.071 6.274 0.587 2.092 1.165 4.158 1.737 6.196 0.275 1.019 0.595 2.013 0.83 3.027 0.23 1.015 0.458 2.023 0.684 3.023 0.455 1.989 0.904 3.948 1.344 5.874 0.344 1.944 0.681 3.855 1.012 5.731 0.165 0.934 0.328 1.858 0.49 2.774 0.081 0.457 0.162 0.912 0.242 1.364 0.055 0.458 0.111 0.914 0.166 1.367 0.223 1.806 0.441 3.574 0.655 5.302 0.108 0.86 0.216 1.71 0.321 2.55 0.113 0.837 0.134 1.682 0.205 2.505 0.119 1.646 0.236 3.249 0.35 4.808 
10.109 1.555 0.262 3.055 0.254 4.529 0.066 2.924 0.128 5.66 0.186 8.19-0.084 2.332-0.162 4.474-0.231 6.409-0.027 0.957-0.054 1.863-0.078 2.716-0.067 1.061-0.13 2.054-0.189 2.979-0.069 1.065-0.133 2.030-0.19 2.91-0.249 1.628-0.384 3.296-0.384 4.995 0 0.234 0.013 0.465 0.018 0.698-0.004 0.066-0.008 0.112-0.008 0.112h0.011c0.384 15.383 11.618 28.064 26.341 30.685-0.033 0.148-0.065 0.292-0.099 0.442-0.322 1.624-0.816 3.271-1.278 4.971-0.467 1.694-0.947 3.438-1.44 5.227-0.258 0.89-0.467 1.801-0.773 2.703-0.298 0.901-0.601 1.814-0.905 2.738-0.609 1.841-1.232 3.725-1.868 5.647-0.158 0.479-0.317 0.962-0.478 1.446-0.185 0.477-0.37 0.957-0.557 1.438-0.373 0.962-0.75 1.934-1.13 2.915-0.76 1.952-1.535 3.941-2.323 5.965-0.884 1.98-1.783 3.995-2.696 6.040-0.454 1.019-0.912 2.045-1.373 3.078-0.466 1.030-1.018 2.036-1.526 3.063-1.035 2.042-2.085 4.111-3.147 6.206-1.101 2.071-2.327 4.112-3.499 6.196-0.592 1.037-1.187 2.080-1.785 3.128-0.605 1.043-1.293 2.051-1.938 3.083-1.308 2.049-2.628 4.116-3.959 6.201-5.617 8.149-11.816 16.199-18.665 23.819-6.937 7.552-14.421 14.702-22.299 21.274-7.987 6.464-16.343 12.325-24.838 17.511-8.565 5.097-17.3 9.419-25.867 13.129-2.175 0.85-4.331 1.691-6.467 2.525-1.068 0.406-2.108 0.855-3.18 1.222-1.073 0.357-2.14 0.714-3.202 1.068-2.125 0.693-4.191 1.444-6.274 2.071-2.092 0.587-4.157 1.166-6.196 1.737-1.019 0.275-2.013 0.595-3.027 0.831-1.015 0.229-2.022 0.457-3.022 0.684-1.989 0.455-3.948 0.903-5.874 1.344-1.944 0.343-3.855 0.68-5.731 1.011-0.934 0.165-1.858 0.329-2.773 0.49-0.457 0.081-0.912 0.162-1.364 0.242-0.458 0.056-0.914 0.111-1.367 0.166-1.806 0.224-3.574 0.441-5.302 0.655-0.86 0.108-1.711 0.216-2.551 0.322-0.837 0.113-1.682 0.133-2.505 0.204-1.646 0.119-3.249 0.236-4.808 0.35-1.555 0.109-3.055 0.262-4.529 0.254-2.924 0.066-5.66 0.128-8.19 0.186-2.332-0.084-4.474-0.162-6.409-0.231-0.957-0.027-1.863-0.054-2.716-0.078-1.061-0.067-2.054-0.13-2.979-0.189-1.065-0.069-2.030-0.133-2.91-0.19-1.628-0.255-3.296-0.391-4.995-0.391-0.233 0-0.465 0.013-0.698 0.018-0.066-0.004-0.112-0.007-0.112-0.007v0.010c-15.502 0.387-28.262 11.793-30.744 26.682-1.6-0.32-3.223-0.805-4.896-1.261-1.693-0.467-3.438-0.947-5.227-1.439-0.889-0.258-1.801-0.469-2.702-0.773-0.901-0.299-1.815-0.602-2.739-0.906-1.84-0.609-3.724-1.232-5.646-1.869-0.48-0.158
1-0.962-0.316-1.446-0.477-0.478-0.186-0.957-0.371-1.438-0.557-0.963-0.373-1.934-0.75-2.915-1.129-1.952-0.762-3.942-1.535-5.966-2.324-1.98-0.885-3.994-1.783-6.040-2.695-1.019-0.455-2.044-0.912-3.078-1.373-1.030-0.467-2.036-1.018-3.063-1.527-2.041-1.035-4.111-2.086-6.205-3.148-2.072-1.1-4.113-2.326-6.197-3.498-1.037-0.592-2.080-1.188-3.128-1.785-1.043-0.605-2.051-1.293-3.083-1.939-2.049-1.307-4.115-2.627-6.201-3.959-8.148-5.615-16.199-11.816-23.818-18.664-7.552-6.938-14.703-14.42-21.275-22.299-6.464-7.986-12.324-16.342-17.51-24.838-5.098-8.564-9.42-17.301-13.13-25.867-0.849-2.176-1.691-4.332-2.525-6.467-0.406-1.068-0.855-2.109-1.222-3.18-0.357-1.074-0.714-2.141-1.068-3.203-0.693-2.125-1.444-4.191-2.071-6.273-0.587-2.092-1.165-4.158-1.737-6.197-0.275-1.018-0.595-2.012-0.83-3.027-0.23-1.014-0.458-2.021-0.684-3.021-0.455-1.99-0.904-3.949-1.344-5.875-0.344-1.943-0.681-3.855-1.012-5.73-0.165-0.934-0.328-1.859-0.49-2.773-0.081-0.457-0.162-0.912-0.242-1.365-0.055-0.457-0.111-0.914-0.166-1.367-0.223-1.805-0.441-3.574-0.655-5.301-0.108-0.861-0.216-1.711-0.321-2.551-0.113-0.838-0.134-1.682-0.205-2.506-0.119-1.645-0.236-3.248-0.35-4.807-0.109-1.555-0.262-3.055-0.254-4.529-0.066-2.924-0.128-5.66-0.186-8.191 0.084-2.332 0.162-4.473 0.231-6.408 0.027-0.957 0.054-1.863 0.078-2.717 0.067-1.061 0.13-2.053 0.189-2.979 0.069-1.064 0.133-2.029 0.19-2.91 0.248-1.63 0.383-3.298 0.383-4.997 0-0.233-0.013-0.465-0.018-0.698 0.004-0.066 0.008-0.112 0.008-0.112h-0.011c-0.39-15.69-12.067-28.577-27.22-30.837z"></path>\n</svg>\n';function d(t){if(t&&t.firstChild)for(;t.firstChild;)t.removeChild(t.firstChild)}function m(t){return JSON.parse(JSON.stringify(t))}var g=function(){function e(t,n){var o=this;for(var s in i(this,e),this.node=t,this.form=this.node.querySelector(".filters__form"),this.cards=this.node.querySelector(".filters__content"),this.pagination=this.node.querySelector(".pagination"),this.loaded=!1,this.choices={},this.opts={autoload:!1,postType:["post"],requireTopic:!1,domain:"",loadingClass:"is-loading"},this.opts)if(this.opts.hasOwnProperty(s)&&this.node.dataset[s])switch(s){case"autoload":case"requireTopic":this.opts[s]=!1!==this.node.dataset[s];break;case"postType":this.opts[s]=this.node.dataset[s].split(",").map((function(t){return t.trim()}));break;default:this.opts[s]=this.node.dataset[s].trim()}this.opts=Object.assign(this.opts,n),this.form&&this.cards&&this.pagination&&(this.defaultParams={filters:{type:this.opts.postType,domain:null,topic:null},paged:1,sortDirection:"desc",sortField:"published_at",q:""},this.params=m(this.defaultParams),this.queryString="",this.form.addEventListener("submit",(function(t){t.preventDefault(),o.params.paged=1,o.load()})),this.pagination.addEventListener("click",(function(t){var e=t.target;if(e)for(;e!==o.pagination;){if("A"===e.tagName&&e.dataset.page)return t.preventDefault(),o.params.paged=parseInt(e.dataset.page,10),o.load(),void o.scrollToTop();e=e.parentNode}})),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"focus-within";t instanceof HTMLElement?new p(t,e):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.isArray(t)||(t=Array.from(t)),t.map((function(t){return new p(t,e)})))}(".filters__filter"),this.searchInput=document.querySelector(".filters__filter--search input"),this.searchInput&&this.searchInput.addEventListener("change",(function(){return o.params.q=o.searchInput.value})),this.addChoices(),this.loadTemplates(),this.getParamsFromURL(),this.opts.autoload&&this.load(!1),window.addEventListener("popstate",(function(){o.getParamsFromURL(),o.load(!1),o.updateTitle()})))}return s(e,[{key:"renderResult",value:function(e){return t.twig({ref:"result"}).render({post:e})}},{key:"renderPagination",value:function(e){return t.twig({ref:"pagination"}).render({pagination:e})}},{key:"addChoices",value:function(){}},{key:"loadTemplates",value:function(){}},{key:"listen",value:function(){for(var t in this.choices)this.choices.hasOwnProperty(t)&&this.choices[t].listen()}},{key:"unlisten",value:function(){for(var t in this.choices)this.choices.hasOwnProperty(t)&&this.choices[t].unlisten()}},{key:"getParamsFromURL",value:function(){this.params=m(this.defaultParams);var t=new window.URLSearchParams(window.location.search);for(var e in this.defaultParams)if(this.defaultParams.hasOwnProperty(e)){var n=t.get(e);switch(e){case"q":this.params.q=n||"",this.searchInput.value=this.params.q;break;case"paged":this.params.paged=Math.max(parseInt(n,10),1)}}return t}},{key:"process",value:function(t){var e=this,n=t.data,i=n.posts,o=n.facets,s=n.pagination;
1d(this.cards),i.length?i.forEach((function(t){e.opts.domain&&new URL(t.url||t.link).host!==e.opts.domain&&(t.target="_blank"),e.cards.insertAdjacentHTML("beforeend",e.renderResult(t))})):this.cards.innerHTML='<p class="aligncenter">There are no results that match your filters.</p>',d(this.pagination),s&&this.pagination.insertAdjacentHTML("beforeend",this.renderPagination(s)),o.length&&o.forEach((function(t){e.choices[t.name]&&(t.filters.sort((function(t,e){return t.label.localeCompare(e.label)})),e.choices[t.name].setOptions(t.filters))}))}},{key:"load",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=this.getQueryString(),o=this.getXhrUrl(i);this.node.classList.add(this.opts.loadingClass),d(this.cards),d(this.pagination),this.cards.innerHTML='<span class="filters__spinner">'.concat(f,"</span>"),window.fetch(o).then((function(t){return t.json()})).then((function(n){t.responseData=n.data,t.process(n),e&&(t.updateTitle(),window.history.pushState({},"","".concat(window.location.origin).concat(window.location.pathname).concat(i?"?"+i:"")))})).catch((function(e){"object"===("undefined"==typeof console?"undefined":n(console))&&"function"==typeof console.error&&console.error(e),t.cards.innerHTML='<p class="aligncenter">There was an unknown error loading the results.</p>'})).finally((function(){t.node.classList.remove(t.opts.loadingClass),t.scrollToTop()}))}},{key:"updateTitle",value:function(){var t=document.title,e=/Page (\d)+ of (\d+)/,n=this.responseData&&this.responseData.pagination&&this.responseData.pagination.total?this.responseData.pagination.total:null;if(!n){var i=t.match(e);i.length&&(n=i[2])}var o="Page ".concat(this.params.paged).concat(n?" of "+n:"");return this.params.paged>1?t.match(e)||(e=/\s([-–—:·•*|~«»<>])\s/,o=" $1 ".concat(o," $1 ")):o="",t=(t=t.replace(e,o)).replace(/([-–—:·•*|~«»<>])\s+?\1/,"$1"),document.title=t,t}},{key:"scrollToTop",value:function(){if(this.loaded){var t=Math.max(0,this.form.getBoundingClientRect().top+(window.scrollY||window.pageYOffset)-10),e=[document.querySelector("#wpadminbar"),document.querySelector(".kl-notices"),document.querySelector(".header")].filter((function(t){return t})).reduce((function(t,e){return t+e.getBoundingClientRect().height}),0);e&&(t-=e),window.scrollTo(0,t)}else this.loaded=!0}}]),e}(),v=function(e){a(o,e);var n=h(o);function o(){return i(this,o),n.apply(this,arguments)}return s(o,[{key:"loadTemplates",value:function(){t.twig({id:"pagination",href:"/wp-content/themes/kendal/views/partials/pagination.twig"}),t.twig({id:"result",href:"/wp-content/themes/kendal/views/partials/search/kcard.twig"})}},{key:"getQueryString",value:function(){var t="";return this.params.q&&(t+="&q=".concat(encodeURIComponent(this.params.q))),this.params.paged>1&&(t+="&paged=".concat(this.params.paged)),t.replace(/^&/,"")}},{key:"getXhrUrl",value:function(t){var e=window.location.pathname.replace(/\/page\/\d+\/?$/,"/");return e+="?".concat(t?t+"&":"","json=1")}}]),o}(g),y=function(){function t(n){var o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.node="string"==typeof n?document.querySelector(n):n,this.node&&(this.opts=Object.assign({onChange:function(){},choices:{}},s),this.opts.choices=Object.assign({itemSelectText:"",searchEnabled:!0,searchResultLimit:100,shouldSort:!1},s.choices||{}),this.choice=new e(this.node,this.opts.choices),this.onChange=function(){o.opts.onChange(o.choice.getValue(!0))},this.listen())}return s(t,[{key:"setValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.choice.setChoiceByValue(t||"")}},{key:"setOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label";"function"==typeof this.opts.formatOption&&(t=t.map(this.opts.formatOption));var i={};i[e]="",i[n]="All ".concat(this.node.dataset.label)||"All",t.unshift(i),this.choice.setChoices(t,e,n,!0)}},{key:"listen",value:function(){this.node.addEventListener("change",this.onChange)}},{key:"unlisten",value:function(){this.node.removeEventListener("change",this.onChange)}}]),t}(),w=function(e){a(o,e);var n=h(o);function o(){return i(this,o),n.apply(this,arguments)}return s(o,[{key:"addChoices",value:function(){var t=this;u(r(o.prototype),"addChoices",this).call(this),this.choices.topic=new y(".filters__filter--topic select",{onChange:function(e){t.params.paged=1,t.params.filters.topic=e,t.load()},formatOption:function(t){return t.label="".concat(t.label," (").concat(t.count,")"),t},choices:{noChoicesText:"No more topics to filter",placeholderValue:"Select a topic"}}),this.choices.domain=new y(".filters__filter--domain select",{onChange:function(e){t.params.paged=1,t.params.filters.domain=e,t.load()},choices:{noChoicesText:"No more communities to filter",placeholderValue:"Select a Community"}})}},{key:"loadTemplates",value:function(){t.twig({id:"pagination",href:"/wp-content/themes/kendal/views/partials/pagination.twig"}),t.twig({id:"result",href:"/wp-content/themes/kendal/views/partials/search/swiftype-kcard.twig"})}},{key:"getParamsFromURL",value:function(){var t=this,e=u(r(o.prototype),"getParamsFromURL",this).call(this);for(var n in e.forEach((function(e,n){var i=n.match(/^filters\[([^\]]+)\]\[\]$/);if(i)t.params.filters[i[1]]=e;else switch(n){case"sort_field":t.params.sortField=e;break;case"sort_direction":t.params.sortDirection=e||"desc"}})),this.unlisten(),this.choices)this.choices.hasOwnProperty(n)&&this.params.filters[n]&&this.choices[n].setValue(this.params.filters[n]);return this.listen(),this.params}},{key:"getQueryString",value:function(){var t="";for(var e in t+="q=".concat(encodeURIComponent(this.params.q)),t+="&sort_field=".concat(encodeURIComponent(this.params.sortField)),t+="&sort_direction=".concat(encodeURIComponent(this.params.sortDirection)),this.opts.requireTopic&&(t+="&require_topic=1"),this.params.paged>1&&(t+="&paged=".concat(this.params.paged)),this.params.filters)this.params.filters.hasOwnProperty(e)&&this.params.filters[e]&&(t+="&filters[".concat(e,"][]=").concat(encodeURIComponent(this.params.filters[e])));return t}},{key:"getXhrUrl",value:function(t){return"/?".concat(t,"&json=1")}}]),o}(g),b=[],k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".filters",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.from(document.querySelectorAll(t)).map((function(t){var n=new("wordpress"===t.dataset.type.toLowerCase()?v:w)(t,e);return b.push(n),n}))};return k.instances=b,k(),k}(Twig,Choices);
2//# sourceMappingURL=filters.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.