1(()=>{var t={9069:function(t){t.exports=function(){function t(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 e(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e,n){return(o=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}}()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&s(r,n.prototype),r}).apply(null,arguments)}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return o(t,arguments,r(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,t)})(t)}function c(t,e){try{var n=t()}catch(t){return e(t)}return n&&n.then?n.then(void 0,e):n}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var l,u="2.9.7",d=function(){};!function(t){t[t.off=0]="off",t[t.error=1]="error",t[t.warning=2]="warning",t[t.info=3]="info",t[t.debug=4]="debug"}(l||(l={}));var h=l.off,f=function(){function t(t){this.t=t}t.getLevel=function(){return h},t.setLevel=function(t){return h=l[t]};var e=t.prototype;return e.error=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.i(console.error,l.error,e)},e.warn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.i(console.warn,l.warning,e)},e.info=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.i(console.info,l.info,e)},e.debug=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.i(console.log,l.debug,e)},e.i=function(e,n,i){n<=t.getLevel()&&e.apply(console,["["+this.t+"] "].concat(i))},t}(),p=O,m=$,g=E,v=L,y=S,b="/",w=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function E(t,e){for(var n,i=[],r=0,s=0,o="",a=e&&e.delimiter||b,c=e&&e.whitelist||void 0,l=!1;null!==(n=w.exec(t));){var u=n[0],d=n[1],h=n.index;if(o+=t.slice(s,h),s=h+u.length,d)o+=d[1],l=!0;else{var f="",p=n[2],m=n[3],g=n[4],v=n[5];if(!l&&o.length){var y=o.length-1,E=o[y];(!c||c.indexOf(E)>-1)&&(f=E,o=o.slice(0,y))}o&&(i.push(o),o="",l=!1);var $=m||g,L=f||a;i.push({name:p||r++,prefix:f,delimiter:L,optional:"?"===v||"*"===v,repeat:"+"===v||"*"===v,pattern:$?C($):"[^"+A(L===a?L:L+a)+"]+?"})}}return(o||s<t.length)&&i.push(o+t.substr(s)),i}function $(t,e){return function(n,i){var r=t.exec(n);if(!r)return!1;for(var s=r[0],o=r.index,a={},c=i&&i.decode||decodeURIComponent,l=1;l<r.length;l++)if(void 0!==r[l]){var u=e[l-1];a[u.name]=u.repeat?r[l].split(u.delimiter).map((function(t){return c(t,u)})):c(r[l],u)}return{path:s,index:o,params:a}}}function L(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",k(e)));return function(e,i){for(var r="",s=i&&i.encode||encodeURIComponent,o=!i||!1!==i.validate,a=0;a<t.length;a++){var c=t[a];if("string"!=typeof c){var l,u=e?e[c.name]:void 0;if(Array.isArray(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but got array');if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(l=s(u[d],c),o&&!n[a].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'"');r+=(0===d?c.prefix:c.delimiter)+l}}else if("string"!=typeof u&&"number"!=typeof u&&"boolean"!=typeof u){if(!c.optional)throw new TypeError('Expected "'+c.name+'" to be '+(c.repeat?"an array":"a string"))}else{if(l=s(String(u),c),o&&!n[a].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but got "'+l+'"');r+=c.prefix+l}}else r+=c}return r}}function A(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function C(t){return t.replace(/([=!:$/()])/g,"\\$1")}function k(t){return t&&t.sensitive?"":"i"}function S(t,e,n){for(var i=(n=n||{}).strict,r=!1!==n.start,s=!1!==n.end,o=n.delimiter||b,a=[].concat(n.endsWith||[]).map(A).concat("$").join("|"),c=r?"^":"",l=0;l<t.length;l++){var u=t[l];if("string"==typeof u)c+=A(u);else{var d=u.repeat?"(?:"+u.pattern+")(?:"+A(u.delimiter)+"(?:"+u.pattern+"))*":u.pattern;e&&e.push(u),c+=u.optional?u.prefix?"(?:"+A(u.prefix)+"("+d+"))?":"("+d+")?":A(u.prefix)+"("+d+")"}}if(s)i||(c+="(?:"+A(o)+")?"),c+="$"===a?"$":"(?="+a+")";else{var h=t[t.length-1],f="string"==typeof h?h[h.length-1]===o:void 0===h;i||(c+="(?:"+A(o)+"(?="+a+"))?"),f||(c+="(?="+A(o)+"|"+a+")")}return new RegExp(c,k(n))}function O(t,e,n){return t instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(t,e):Array.isArray(t)?function(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(O(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",k(n))}(t,e,n):function(t,e,n){return S(E(t,n),e,n)}(t,e,n)}p.match=function(t,e){var n=[];return $(O(t,n,e),n)},p.regexpToFunction=m,p.parse=g,p.compile=function(t,e){return L(E(t,e),e)},p.tokensToFunction=v,p.tokensToRegExp=y;var x={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},j=new(function(){function t(){this.o=x,this.u=new DOMParser}var e=t.prototype;return e.toString=function(t){return t.outerHTML},e.toDocument=function(t){return this.u.parseFromString(t,"text/html")},e.toElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e},e.getHtml=function(t){return void 0===t&&(t=document),this.toString(t.documentElement)},e.getWrapper=function(t){return void 0===t&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},e.getContainer=function(t){return void 0===t&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},e.removeContainer=function(t){document.body.contains(t)&&t.parentNode.removeChild(t)},e.addContainer=function(t,e){var n=this.getContainer();n?this.s(t,n):e.appendChild(t)},e.getNamespace=function(t){void 0===t&&(t=document);var e=t.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return e?e.getAttribute(this.o.prefix+"-"+this.o.namespace):null},e.getHref=function(t){if(t.tagName&&"a"===t.tagName.toLowerCase()){if("string"==typeof t.href)return t.href;var e=t.getAttribute("href")||t.getAttribute("xlink:href");if(e)return this.resolveUrl(e.baseVal||e)}return null},e.resolveUrl=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.length;if(0===i)throw new Error("resolveUrl requires at least one argument; got none.");var r=document.createElement("base");if(r.href=arguments[0],1===i)return r.href;var s=document.getElementsByTagName("head")[0];
1s.insertBefore(r,s.firstChild);for(var o,a=document.createElement("a"),c=1;c<i;c++)a.href=arguments[c],r.href=o=a.href;return s.removeChild(r),o},e.s=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},t}()),T=new(function(){function t(){this.h=[],this.v=-1}var i=t.prototype;return i.init=function(t,e){this.l="barba";var n={ns:e,scroll:{x:window.scrollX,y:window.scrollY},url:t};this.h.push(n),this.v=0;var i={from:this.l,index:0,states:[].concat(this.h)};window.history&&window.history.replaceState(i,"",t)},i.change=function(t,e,n){if(n&&n.state){var i=n.state,r=i.index;e=this.m(this.v-r),this.replace(i.states),this.v=r}else this.add(t,e);return e},i.add=function(t,e){var n=this.size,i=this.p(e),r={ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:t};this.h.push(r),this.v=n;var s={from:this.l,index:n,states:[].concat(this.h)};switch(i){case"push":window.history&&window.history.pushState(s,"",t);break;case"replace":window.history&&window.history.replaceState(s,"",t)}},i.update=function(t,e){var i=e||this.v,r=n({},this.get(i),{},t);this.set(i,r)},i.remove=function(t){t?this.h.splice(t,1):this.h.pop(),this.v--},i.clear=function(){this.h=[],this.v=-1},i.replace=function(t){this.h=t},i.get=function(t){return this.h[t]},i.set=function(t,e){return this.h[t]=e},i.p=function(t){var e="push",n=t,i=x.prefix+"-"+x.history;return n.hasAttribute&&n.hasAttribute(i)&&(e=n.getAttribute(i)),e},i.m=function(t){return Math.abs(t)>1?t>0?"forward":"back":0===t?"popstate":t>0?"back":"forward"},e(t,[{key:"current",get:function(){return this.h[this.v]}},{key:"state",get:function(){return this.h[this.h.length-1]}},{key:"previous",get:function(){return this.v<1?null:this.h[this.v-1]}},{key:"size",get:function(){return this.h.length}}]),t}()),D=function(t,e){try{var n=function(){if(!e.next.html)return Promise.resolve(t).then((function(t){var n=e.next;if(t){var i=j.toElement(t);n.namespace=j.getNamespace(i),n.container=j.getContainer(i),n.html=t,T.update({ns:n.namespace});var r=j.toDocument(t);document.title=r.title}}
1))}();return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},P=p,M={__proto__:null,update:D,nextTick:function(){return new Promise((function(t){window.requestAnimationFrame(t)}))},pathToRegexp:P},I=function(){return window.location.origin},q=function(t){return void 0===t&&(t=window.location.href),R(t).port},R=function(t){var e,n=t.match(/:\d+/);if(null===n)/^http/.test(t)&&(e=80),/^https/.test(t)&&(e=443);else{var i=n[0].substring(1);e=parseInt(i,10)}var r,s=t.replace(I(),""),o={},a=s.indexOf("#");a>=0&&(r=s.slice(a+1),s=s.slice(0,a));var c=s.indexOf("?");return c>=0&&(o=N(s.slice(c+1)),s=s.slice(0,c)),{hash:r,path:s,port:e,query:o}},N=function(t){return t.split("&").reduce((function(t,e){var n=e.split("=");return t[n[0]]=n[1],t}),{})},_=function(t){return void 0===t&&(t=window.location.href),t.replace(/(\/#.*|\/|#.*)$/,"")},F={__proto__:null,getHref:function(){return window.location.href},getOrigin:I,getPort:q,getPath:function(t){return void 0===t&&(t=window.location.href),R(t).path},parse:R,parseQuery:N,clean:_};function B(t,e,n){return void 0===e&&(e=2e3),new Promise((function(i,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE)if(200===s.status)i(s.responseText);else if(s.status){var e={status:s.status,statusText:s.statusText};n(t,e),r(e)}},s.ontimeout=function(){var i=new Error("Timeout error ["+e+"]");n(t,i),r(i)},s.onerror=function(){var e=new Error("Fetch error");n(t,e),r(e)},s.open("GET",t),s.timeout=e,s.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),s.setRequestHeader("x-barba","yes"),s.send()}))}var H=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then};function U(t,e){return void 0===e&&(e={}),function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var s=!1,o=new Promise((function(n,r){e.async=function(){return s=!0,function(t,e){t?r(t):n(e)}};var o=t.apply(e,i);s||(H(o)?o.then(n,r):n(o))}));return o}}var z=new(function(t){function e(){var e;return(e=t.call(this)||this).logger=new f("@barba/core"),e.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],e.registered=new Map,e.init(),e}i(e,t);var n=e.prototype;return n.init=function(){var t=this;this.registered.clear(),this.all.forEach((function(e){t[e]||(t[e]=function(n,i){t.registered.has(e)||t.registered.set(e,new Set),t.registered.get(e).add({ctx:i||{},fn:n})})}))},n.do=function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(this.registered.has(t)){var s=Promise.resolve();return this.registered.get(t).forEach((function(t){s=s.then((function(){return U(t.fn,t.ctx).apply(void 0,i)}))})),s.catch((function(n){e.logger.debug("Hook error ["+t+"]"),e.logger.error(n)}))}return Promise.resolve()},n.clear=function(){var t=this;this.all.forEach((function(e){delete t[e]})),this.init()},n.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach((function(e,n){return t.push(n)})),this.logger.info("Registered hooks: "+t.join(","))},e}(d)),Z=function(){function t(t){if(this.P=[],"boolean"==typeof t)this.g=t;else{var e=Array.isArray(t)?t:[t];this.P=e.map((function(t){return P(t)}))}}return t.prototype.checkHref=function(t){if("boolean"==typeof this.g)return this.g;var e=R(t).path;return this.P.some((function(t){return null!==t.exec(e)}))},t}(),G=function(t){function e(e){var n;return(n=t.call(this,e)||this).k=new Map,n}i(e,t);var r=e.prototype;return r.set=function(t,e,n){return this.k.set(t,{action:n,request:e}),{action:n,request:e}},r.get=function(t){return this.k.get(t)},r.getRequest=function(t){return this.k.get(t).request},r.getAction=function(t){return this.k.get(t).action},r.has=function(t){return!this.checkHref(t)&&this.k.has(t)},r.delete=function(t){return this.k.delete(t)},r.update=function(t,e){var i=n({},this.k.get(t),{},e);return this.k.set(t,i),i},e}(Z),K=function(){return!window.history.pushState},Y=function(t){return!t.el||!t.href},W=function(t){var e=t.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},J=function(t){var e=t.el;return e.hasAttribute("target")&&"_blank"===e.target},X=function(t){var e=t.el;return void 0!==e.protocol&&window.location.protocol!==e.protocol||void 0!==e.hostname&&window.location.hostname!==e.hostname},Q=function(t){var e=t.el;return void 0!==e.port&&q()!==q(e.href)},V=function(t){var e=t.el;return e.getAttribute&&"string"==typeof e.getAttribute("download")},tt=function(t){return t.el.hasAttribute(x.prefix+"-"+x.prevent)},et=function(t){return Boolean(t.el.closest("["+x.prefix+"-"+x.prevent+'="all"]'))},nt=function(t){var e=t.href;return _(e)===_()&&q(e)===q()},it=function(t){function e(e){var n;return(n=t.call(this,e)||this).suite=[],n.tests=new Map,n.init(),n}i(e,t);var n=e.prototype;return n.init=function(){this.add("pushState",K),this.add("exists",Y),this.add("newTab",W),this.add("blank",J),this.add("corsDomain",X),this.add("corsPort",Q),this.add("download",V),this.add("preventSelf",tt),this.add("preventAll",et),this.add("sameUrl",nt,!1)},n.add=function(t,e,n){void 0===n&&(n=!0),this.tests.set(t,e),n&&this.suite.push(t)},n.run=function(t,e,n,i){return this.tests.get(t)({el:e,event:n,href:i})},n.checkLink=function(t,e,n){var i=this;return this.suite.some((function(r){return i.run(r,t,e,n)}))},e}(Z),rt=function(t){function e(n,i){var r;void 0===i&&(i="Barba error");for(var s=arguments.length,o=new Array(s>2?s-2:0),a=2;a<s;a++)o[a-2]=arguments[a];return(r=t.call.apply(t,[this].concat(o))||this).error=n,r.label=i,Error.captureStackTrace&&Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),e),r.name="BarbaError",r}return i(e,t),e}(a(Error)),st=function(){function t(t){void 0===t&&(t=[]),this.logger=new f("@barba/core"),this.all=[],this.page=[],this.once=[],this.A=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],t&&(this.all=this.all.concat(t)),this.update()}var e=t.prototype;return e.add=function(t,e){"rule"===t?this.A.splice(e.position||0,0,e.value):this.all.push(e),this.update()},e.resolve=function(t,e){var n=this;void 0===e&&(e={});var i=e.once?this.once:this.page;i=i.filter(e.self?function(t){return t.name&&"self"===t.name}:function(t){return!t.name||"self"!==t.name});var r=new Map,s=i.find((function(i){var s=!0,o={};
1return!(!e.self||"self"!==i.name)||(n.A.reverse().forEach((function(e){s&&(s=n.R(i,e,t,o),i.from&&i.to&&(s=n.R(i,e,t,o,"from")&&n.R(i,e,t,o,"to")),i.from&&!i.to&&(s=n.R(i,e,t,o,"from")),!i.from&&i.to&&(s=n.R(i,e,t,o,"to")))})),r.set(i,o),s)})),o=r.get(s),a=[];if(a.push(e.once?"once":"page"),e.self&&a.push("self"),o){var c,l=[s];Object.keys(o).length>0&&l.push(o),(c=this.logger).info.apply(c,["Transition found ["+a.join(",")+"]"].concat(l))}else this.logger.info("No transition found ["+a.join(",")+"]");return s},e.update=function(){var t=this;this.all=this.all.map((function(e){return t.T(e)})).sort((function(t,e){return t.priority-e.priority})).reverse().map((function(t){return delete t.priority,t})),this.page=this.all.filter((function(t){return void 0!==t.leave||void 0!==t.enter})),this.once=this.all.filter((function(t){return void 0!==t.once}))},e.R=function(t,e,n,i,r){var s=!0,o=!1,a=t,c=e.name,l=c,u=c,d=c,h=r?a[r]:a,f="to"===r?n.next:n.current;if(r?h&&h[c]:h[c]){switch(e.type){case"strings":default:var p=Array.isArray(h[l])?h[l]:[h[l]];
1f[l]&&-1!==p.indexOf(f[l])&&(o=!0),-1===p.indexOf(f[l])&&(s=!1);break;case"object":var m=Array.isArray(h[u])?h[u]:[h[u]];f[u]?(f[u].name&&-1!==m.indexOf(f[u].name)&&(o=!0),-1===m.indexOf(f[u].name)&&(s=!1)):s=!1;break;case"function":h[d](n)?o=!0:s=!1}o&&(r?(i[r]=i[r]||{},i[r][c]=a[r][c]):i[c]=a[c])}return s},e.O=function(t,e,n){var i=0;return(t[e]||t.from&&t.from[e]||t.to&&t.to[e])&&(i+=Math.pow(10,n),t.from&&t.from[e]&&(i+=1),t.to&&t.to[e]&&(i+=2)),i},e.T=function(t){var e=this;t.priority=0;var n=0;return this.A.forEach((function(i,r){n+=e.O(t,i.name,r+1)})),t.priority=n,t},t}(),ot=function(){function t(t){void 0===t&&(t=[]),this.logger=new f("@barba/core"),this.S=!1,this.store=new st(t)}var n=t.prototype;return n.get=function(t,e){return this.store.resolve(t,e)},n.doOnce=function(t){var e=t.data,n=t.transition;try{var i=function(){r.S=!1},r=this,s=n||{};r.S=!0;var o=c((function(){return Promise.resolve(r.j("beforeOnce",e,s)).then((function(){return Promise.resolve(r.once(e,s)).then((function(){return Promise.resolve(r.j("afterOnce",e,s)).then((function(){}))}))}))}),(function(t){r.S=!1,r.logger.debug("Transition error [before/after/once]"),r.logger.error(t)}));return Promise.resolve(o&&o.then?o.then(i):i())}catch(t){return Promise.reject(t)}},n.doPage=function(t){var e=t.data,n=t.transition,i=t.page,r=t.wrapper;try{var s=function(t){if(o)return t;a.S=!1},o=!1,a=this,l=n||{},u=!0===l.sync||!1;a.S=!0;var d=c((function(){function t(){return Promise.resolve(a.j("before",e,l)).then((function(){var t=!1;function n(n){return t?n:Promise.resolve(a.remove(e)).then((function(){return Promise.resolve(a.j("after",e,l)).then((function(){}))}))}var s=function(){if(u)return c((function(){return Promise.resolve(a.add(e,r)).then((function(){return Promise.resolve(a.j("beforeLeave",e,l)).then((function(){return Promise.resolve(a.j("beforeEnter",e,l)).then((function(){return Promise.resolve(Promise.all([a.leave(e,l),a.enter(e,l)])).then((function(){return Promise.resolve(a.j("afterLeave",e,l)).then((function(){return Promise.resolve(a.j("afterEnter",e,l)).then((function(){}))}))}))}))}))}))}),(function(t){if(a.M(t))throw new rt(t,"Transition error [sync]")}));var n=function(n){return t?n:c((function(){var t=function(){if(!1!==s)return Promise.resolve(a.add(e,r)).then((function(){return Promise.resolve(a.j("beforeEnter",e,l)).then((function(){return Promise.resolve(a.enter(e,l,s)).then((function(){return Promise.resolve(a.j("afterEnter",e,l)).then((function(){}))}))}))}))}();if(t&&t.then)return t.then((function(){}))}),(function(t){if(a.M(t))throw new rt(t,"Transition error [before/after/enter]")}))},s=!1,o=c((function(){return Promise.resolve(a.j("beforeLeave",e,l)).then((function(){return Promise.resolve(Promise.all([a.leave(e,l),D(i,e)]).then((function(t){return t[0]}))).then((function(t){return s=t,Promise.resolve(a.j("afterLeave",e,l)).then((function(){}))}))}))}),(function(t){if(a.M(t))throw new rt(t,"Transition error [before/after/leave]")}));return o&&o.then?o.then(n):n(o)}();return s&&s.then?s.then(n):n(s)}))}var n=function(){if(u)return Promise.resolve(D(i,e)).then((function(){}))}();return n&&n.then?n.then(t):t()}),(function(t){if(a.S=!1,t.name&&"BarbaError"===t.name)throw a.logger.debug(t.label),a.logger.error(t.error),t;throw a.logger.debug("Transition error [page]"),a.logger.error(t),t}));return Promise.resolve(d&&d.then?d.then(s):s(d))}catch(t){return Promise.reject(t)}},n.once=function(t,e){try{return Promise.resolve(z.do("once",t,e)).then((function(){return e.once?U(e.once,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.leave=function(t,e){try{return Promise.resolve(z.do("leave",t,e)).then((function(){return e.leave?U(e.leave,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.enter=function(t,e,n){try{return Promise.resolve(z.do("enter",t,e)).then((function(){return e.enter?U(e.enter,e)(t,n):Promise.resolve()}))}catch(t){return Promise.reject(t)}},n.add=function(t,e){try{return j.addContainer(t.next.container,e),z.do("nextAdded",t),Promise.resolve()}catch(t){return Promise.reject(t)}},n.remove=function(t){try{return j.removeContainer(t.current.container),z.do("currentRemoved",t),Promise.resolve()}catch(t){return Promise.reject(t)}},n.M=function(t){return t.message?!/Timeout error|Fetch error/.test(t.message):!t.status},n.j=function(t,e,n){try{return Promise.resolve(z.do(t,e,n)).then((function(){return n[t]?U(n[t],n)(e):Promise.resolve()}))}catch(t){return Promise.reject(t)}},e(t,[{key:"isRunning",get:function(){return this.S},set:function(t){this.S=t}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some((function(t){return"self"===t.name}))}},{key:"shouldWait",get:function(){return this.store.all.some((function(t){return t.to&&!t.to.route||t.sync}))}}]),t}(),at=function(){function t(t){var e=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==t.length&&(t.forEach((function(t){e.byNamespace.set(t.namespace,t)}
1)),this.names.forEach((function(t){z[t](e.L(t))})))}return t.prototype.L=function(t){var e=this;return function(n){var i=t.match(/enter/i)?n.next:n.current,r=e.byNamespace.get(i.namespace);return r&&r[t]?U(r[t],r)(n):Promise.resolve()}},t}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var ct={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}};return new(function(){function t(){this.version=u,this.schemaPage=ct,this.Logger=f,this.logger=new f("@barba/core"),this.plugins=[],this.hooks=z,this.dom=j,this.helpers=M,this.history=T,this.request=B,this.url=F}var i=t.prototype;return i.use=function(t,e){var n=this.plugins;n.indexOf(t)>-1?this.logger.warn("Plugin ["+t.name+"] already installed."):"function"==typeof t.install?(t.install(this,e),n.push(t)):this.logger.warn("Plugin ["+t.name+'] has no "install" method.')},i.init=function(t){var e=void 0===t?{}:t,i=e.transitions,r=void 0===i?[]:i,s=e.views,o=void 0===s?[]:s,a=e.schema,c=void 0===a?x:a,l=e.requestError,u=e.timeout,d=void 0===u?2e3:u,h=e.cacheIgnore,p=void 0!==h&&h,m=e.prefetchIgnore,g=void 0!==m&&m,v=e.preventRunning,y=void 0!==v&&v,b=e.prevent,w=void 0===b?null:b,E=e.debug,$=e.logLevel;if(f.setLevel(!0===(void 0!==E&&E)?"debug":void 0===$?"off":$),this.logger.info(this.version),Object.keys(c).forEach((function(t){x[t]&&(x[t]=c[t])})),this.$=l,this.timeout=d,this.cacheIgnore=p,this.prefetchIgnore=g,this.preventRunning=y,this._=this.dom.getWrapper(),!this._)throw new Error("[@barba/core] No Barba wrapper found");this._.setAttribute("aria-live","polite"),this.q();var L=this.data.current;if(!L.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new G(p),this.prevent=new it(g),this.transitions=new ot(r),this.views=new at(o),null!==w){if("function"!=typeof w)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",w)}this.history.init(L.url.href,L.namespace),this.B=this.B.bind(this),this.U=this.U.bind(this),this.D=this.D.bind(this),this.F(),this.plugins.forEach((function(t){return t.init()}));var A=this.data;A.trigger="barba",A.next=A.current,A.current=n({},this.schemaPage),this.hooks.do("ready",A),this.once(A),this.q()},i.destroy=function(){this.q(),this.H(),this.history.clear(),this.hooks.clear(),this.plugins=[]},i.force=function(t){window.location.assign(t)},i.go=function(t,e,n){var i;if(void 0===e&&(e="barba"),this.transitions.isRunning)this.force(t);else if(!(i="popstate"===e?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(t):this.prevent.run("sameUrl",null,null,t))||this.transitions.hasSelf)return e=this.history.change(t,e,n),n&&(n.stopPropagation(),n.preventDefault()),this.page(t,e,i)},i.once=function(t){try{var e=this;return Promise.resolve(e.hooks.do("beforeEnter",t)).then((function(){function n(){return Promise.resolve(e.hooks.do("afterEnter",t)).then((function(){}))}var i=function(){if(e.transitions.hasOnce){var n=e.transitions.get(t,{once:!0});return Promise.resolve(e.transitions.doOnce({transition:n,data:t})).then((function(){}))}}();return i&&i.then?i.then(n):n()}))}catch(t){return Promise.reject(t)}},i.page=function(t,e,i){try{var r=function(){var t=s.data;return Promise.resolve(s.hooks.do("page",t)).then((function(){var e=c((function(){var e=s.transitions.get(t,{once:!1,self:i});return Promise.resolve(s.transitions.doPage({data:t,page:o,transition:e,wrapper:s._})).then((function(){s.q()}))}),(function(){0===f.getLevel()&&s.force(t.current.url.href)}));if(e&&e.then)return e.then((function(){}))}))},s=this;s.data.next.url=n({href:t},s.url.parse(t)),s.data.trigger=e;var o=s.cache.has(t)?s.cache.update(t,{action:"click"}).request:s.cache.set(t,s.request(t,s.timeout,s.onRequestError.bind(s,e)),"click").request,a=function(){if(s.transitions.shouldWait)return Promise.resolve(D(o,s.data)).then((function(){}))}();return Promise.resolve(a&&a.then?a.then(r):r())}catch(t){return Promise.reject(t)}},i.onRequestError=function(t){this.transitions.isRunning=!1;for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=n[0],s=n[1],o=this.cache.getAction(r);return this.cache.delete(r),!(this.$&&!1===this.$(t,o,r,s)||("click"===o&&this.force(r),1))},i.prefetch=function(t){var e=this;this.cache.has(t)||this.cache.set(t,this.request(t,this.timeout,this.onRequestError.bind(this,"barba")).catch((function(t){e.logger.error(t)})),"prefetch")},i.F=function(){!0!==this.prefetchIgnore&&(document.addEventListener("mouseover",this.B),document.addEventListener("touchstart",this.B)),document.addEventListener("click",this.U),window.addEventListener("popstate",this.D)},i.H=function(){!0!==this.prefetchIgnore&&(document.removeEventListener("mouseover",this.B),document.removeEventListener("touchstart",this.B)),document.removeEventListener("click",this.U),window.removeEventListener("popstate",this.D)},i.B=function(t){var e=this,n=this.I(t);if(n){var i=this.dom.getHref(n);this.prevent.checkHref(i)||this.cache.has(i)||this.cache.set(i,this.request(i,this.timeout,this.onRequestError.bind(this,n)).catch((function(t){e.logger.error(t)})),"enter")}},i.U=function(t){var e=this.I(t);if(e)return this.transitions.isRunning&&this.preventRunning?(t.preventDefault(),void t.stopPropagation()):void this.go(this.dom.getHref(e),e,t)},i.D=function(t){this.go(this.url.getHref(),"popstate",t)},i.I=function(t){for(var e=t.target;e&&!this.dom.getHref(e);)e=e.parentNode;if(e&&!this.prevent.checkLink(e,t,this.dom.getHref(e)))return e},i.q=function(){var t=this.url.getHref(),e={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:n({href:t},this.url.parse(t))};this.C={current:e,next:n({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},e(t,[{key:"data",get:function(){return this.C}},{key:"wrapper",get:function(){return this._}}]),t}())}()},9838:(t,e,n)=>{"use strict";function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,{default:()=>s});const s=(0,n(3667).d)("accordion",{close:function(t,e,n){e.style.height=e.offsetHeight+"px";e.offsetHeight;e.classList.remove("duration-200","ease-in-1","opacity-100"),e.classList.add("duration-150","ease-out-1"),e.style.height="0px",t.setAttribute("aria-expanded",!1),n.classList.remove("rotate-180"),setTimeout((function(){e.classList.add("hidden")}),150),e.dataset.accordionPanel="closed",document.dispatchEvent(new CustomEvent("accordion:panel:closed",{detail:{panel:e}}))},open:function(t,e,n,i){e.style.height="0px";e.offsetHeight;e.classList.remove("hidden","duration-150","ease-out-1"),e.classList.add("duration-200","ease-in-1"),e.style.height=i.offsetHeight+"px",e.classList.add("opacity-100"),t.setAttribute("aria-expanded",!0),n.classList.add("rotate-180"),e.dataset.accordionPanel="open",setTimeout((function(){e.style.height=""}),200)},triggerClick:function(t){t.preventDefault();var e=t.currentTarget,n=e.nextElementSibling,i=n.firstElementChild,r=e.lastElementChild;"true"===e.getAttribute("aria-expanded")?this.close(e,n,r):this.open(e,n,r,i)},modalClosed:function(t){var e,n=this;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&this.$panels.forEac
1h((function(t){if("open"===t.dataset.accordionPanel){var e=t.previousElementSibling,i=t,r=e.lastElementChild,s="true"===e.getAttribute("aria-expanded");!n.checkContentCheckboxes(e,i)&&s&&n.close(e,i,r)}}))},checkContentCheckboxes:function(t,e){var n=i(e.querySelectorAll("[data-checkbox-status]")),r=i(e.querySelectorAll('[data-checkbox-status="unchecked"]'));return n.length!==r.length},checkboxStateUpdated:function(t){var e,n,i;if(null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&(this.$triggers.forEach((function(e){e.contains(t.detail.element)&&(n=e)})),this.$panels.forEach((function(e){e.contains(t.detail.element)&&(i=e)})),n||i)){n||(n=i.previousElementSibling),i||(i=n.nextElementSibling);var r=i.firstElementChild,s=n.lastElementChild,o="true"===n.getAttribute("aria-expanded");this.checkContentCheckboxes(n,i)&&!o&&this.open(n,i,s,r)}}},{init:function(){var t=this;this.rotateClass="rotate-180",this.$triggers=this.getChildren("trigger"),this.$panels=this.getChildren("panel"),this.$triggers.forEach((function(e){e.addEventListener("click",t.triggerClick,!1)})),this.$node.addEventListener("accordion:checkbox:state:updated",this.checkboxStateUpdated,!1),document.addEventListener("modal:closed",this.modalClosed,!1)},destroy:function(){var t=this;this.$triggers.forEach((function(e){e.removeEventListener("click",t.triggerClick,!1)})),this.$node.removeEventListener("accordion:checkbox:state:updated",this.checkboxStateUpdated),document.removeEventListener("modal:closed",this.modalClosed)}})},8124:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("applyfilters",{selectedFiltersUpdated:function(){var t=(0,r.NH)(),e=(t[this.type]?t[this.type]:[]).length;this.$label.textContent=e&&0!==e?"".concat(this.originalLabel," (").concat(e,")"):this.originalLabel},clickHandler:function(t){t.preventDefault(),t.stopPropagation(),document.dispatchEvent(new CustomEvent("state:filters:apply"))}},{init:function(){this.type=this.options.type,this.showCount="true"===this.options.count,this.$label=this.$node.querySelector("[data-btn-label]"),this.originalLabel=this.$label.textContent.trim(),this.$node.addEventListener("click",this.clickHandler,!1),this.showCount&&document.addEventListener("state:filters:selected:updated",this.selectedFiltersUpdated,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler),this.showCount&&document.removeEventListener("state:filters:selected:updated",this.selectedFiltersUpdated)}})},3245:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("barbaLoadProgress",{end:function(){var t=this;clearTimeout(this.showTimer),clearInterval(this.interval),this.$bar.style.transform="scaleX(100%)",this.interval=setTimeout((function(){t.$bar.style.transform="scaleX(100%) translateY(-100%)",t.$bar.style.visibility="invisible"}),500)},start:function(){var t=this;this.showTimer=setTimeout((function(){t.$bar.style.visibility="",t.interval=setInterval((function(){t.currentProgress+=t.step;var e=Math.round(Math.atan(t.currentProgress)/(Math.PI/2)*100*1e3)/1e3;t.$bar.style.transform="scaleX(".concat(e,"%) translateY(0%)"),e>=100?clearInterval(t.interval):e>=70&&(t.step=.1)}),200)}),300)},error:function(){var t=this;clearTimeout(this.showTimer),clearInterval(this.interval),this.$bar.style.transform="scaleX(0%) translateY(0%)",setTimeout((function(){t.$bar.style.transform="scaleX(0%) translateY(-100%)"}),100),setTimeout((function(){t.$bar.style.visibility="invisible"}),200)}},{init:function(){this.$bar=this.getChild("bar"),this.currentProgress=0,this.step=.5,this.interval,this.showTimer,document.addEventListener("barba:page:loading",this.start,!1),document.addEventListener("barba:page:loaded",this.end,!1),document.addEventListener("barba:page:error",this.error,!1)},destroy:function(){document.removeEventListener("barba:page:loading",this.start),document.removeEventListener("barba:page:loaded",this.end),document.removeEventListener("barba:page:error",this.error)}})},5484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(3667),r=n(628),s=n(2735),o=n(2483);const a=(0,i.d)("checkbox",{selectedFiltersUpdated:function(){var t=this;if("locationOnly"!==this.id){var e=(0,r.NH)(),n=e[this.type]?e[this.type].map((function(t){return t.id})):[];if(this.groupid){var i=(0,s.Z)(window.A17.settings.tags[this.type],this.groupid);if(i&&i.sub){var a=i.sub&&i.sub.length>0?i.sub.map((function(t){return t.id})):[];"true"===this.options.groupincludeself&&a.push(this.groupid);var c=a.filter((function(t){return n.indexOf(t)>-1})).length/a.length,l=(0,o.Z)(window.A17.settings.tags[this.type],this.groupid).filter((function(t){return-1!=n.indexOf(t)}));this.status=0===c&&0===l.length?"unchecked":"semichecked",this.status=1===c?"checked":this.status}}if(this.id&&!this.groupid){var u=n.find((function(e){return e===t.id}));this.status=u?"checked":"unchecked"}this.updateDisplay()}},locationOnlyStateUpdate:function(){"locationOnly"===this.id&&(this.status=(0,r.o_)()?"checked":"unchecked",this.updateDisplay())},updateDisplay:function(){if(this.$node.dataset.checkboxStatus!==this.status){this.$n
1ode.dataset.checkboxStatus=this.status,this.$unchecked&&this.$checked&&this.$semichecked&&("checked"===this.status&&(this.$node.setAttribute("aria-pressed",!0),this.$unchecked.classList.add("opacity-0"),this.$checked.classList.remove("opacity-0"),this.$semichecked.classList.add("opacity-0")),"unchecked"===this.status&&(this.$node.setAttribute("aria-pressed",!1),this.$unchecked.classList.remove("opacity-0"),this.$checked.classList.add("opacity-0"),this.$semichecked.classList.add("opacity-0")),"semichecked"===this.status&&(this.$node.setAttribute("aria-pressed",!1),this.$unchecked.classList.add("opacity-0"),this.$checked.classList.remove("opacity-0"),this.$semichecked.classList.remove("opacity-0")));var t=this.$node.closest('[data-behavior*="accordion"]');t&&t.dispatchEvent(new CustomEvent("accordion:checkbox:state:updated",{detail:{element:this.$node}}));var e=this.$node.closest('[data-behavior*="locationsShowMore"]');e&&(e.dataset.locationsshowmoreInitialState="open",e.dispatchEvent(new CustomEvent("locationsShowMore:checkbox:state:updated",{detail:{element:this.$node}})))}},clickHandler:function(t){if(t.preventDefault(),this.options["accordion-trigger"]&&t.stopPropagation(),this.id&&this.type){this.status="checked"===this.status?"unchecked":"checked";var e="checked"===this.status;document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:this.type,current:e,initial:!e,id:this.id}}))}this.groupid&&this.type&&document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:this.type,current:"checked"!==this.status,groupid:this.groupid,id:"true"===this.options.groupincludeself?this.groupid:null}}))}},{init:function(){this.id=this.options.id,this.groupid=this.options.groupid,this.type=this.options.type,this.parent=this.options.parent||void 0,this.status=this.options.status||"unchecked",this.disabled=this.$node.disabled,this.$unchecked=this.getChild("unchecked"),this.$checked=this.getChild("checked"),this.$semichecked=this.getChild("semichecked"),this.$node.addEventListener("click",this.clickHandler,!1),document.addEventListener("state:filters:selected:updated",this.selectedFiltersUpdated,!1),document.addEventListener("state:locationOnly:updated",this.locationOnlyStateUpdate,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler),document.removeEventListener("state:filters:selected:updated",this.selectedFiltersUpdated),document.removeEventListener("state:locationOnly:updated",this.locationOnlyStateUpdate)}})},4519:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("clearfilters",{clickHandler:function(t){t.preventDefault(),t.stopPropagation(),document.dispatchEvent(new CustomEvent("state:filters:clear",{detail:{type:this.type,immediate:this.immediate}}))},toggleVisibility:function(t){if(this.$node){var e=(0,r.De)(),n=e[this.type]?e[this.type]:null,i=n&&(n.length>0||n.id)?1:0;i&&0!==i?this.$node.classList.remove("hidden"):this.$node.classList.add("hidden")}}},{init:function(){this.type=this.options.type||"all",this.immediate="true"===this.options.immediate,this.autohide="true"===this.options.autohide,this.$node.addEventListener("click",this.clickHandler,!1),this.autohide&&document.addEventListener("state:filters:active:updated",this.toggleVisibility,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler),document.removeEventListener("state:filters:active:updated",this.toggleVisibility)}})},1032:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=n(3667);function r(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const o=function(t){var e=function(t,e){return null===e?"":e},n=Object.keys(t[0]);return[n.join(",")].concat(r(t.map((function(t){return n.map((function(n){return JSON.stringify(t[n],e).replace(/\\"/g,'""')})).join(",")})))).join("\r\n")};var a=n(628),c=n(2561),l=n(8146);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const m=(0,i.d)("downloadcsv",{generateFilename:function(){var t=this.titleDefault,e=(new Date).toISOString();return"".concat(t,"_").concat(e.slice(0,10),"_").concat(e.slice(11,16).replace(/:/g,""))},download:function(t,e){var n=document.createElement("a");n.href=URL.createObjectURL(new Blob([e],{type:"application/octet-stream;charset=UTF-8",encoding:"UTF-8"})),n.download="".concat(t),n.type="text/csv",n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)},formatLocations:function(t){return t.map((function(t){return"us_south_dc"===t.id||"District of Columbia"===t.label?"Washington, DC":(0,c.Z)(t)})).join("; ")},formatGiftAreas:function(t){return t.map((function(t){return t.label})).join("; ")},removeMarks:function(t){return t?t.toString().replace(/<mark>/gi,"").replace(/<\/mark>/gi,""):""},makeFriendlyRow:function(t){var e=this,n={};return t.gifts&&t.gifts.length>0&&(t.year=t.gifts.map((function(t){return e.removeMarks(t.year)})),t.gift=t.gifts.map((function(t){return t.amount&&0!==t.amount&&"0"!==t.amount?"$".concat(e.removeMarks(t.amount)):A17.settings.uiKeys.listing.table.undisclosedGiftAmount})),t.year=f(new Set(t.year))),n[window.A17.settings.uiKeys.listing.download.header.name]=this.removeMarks(t.name),n[window.A17.settings.uiKeys.listing.download.header.year]=t.year.join(", "),n[window.A17.settings.uiKeys.listing.download.header.giftAmount]=t.gift.join(", "),n[window.A17.settings.uiKeys.listing.download.header.mission]=this.removeMarks(t.mission),n[window.A17.settings.uiKeys.listing.download.header.url]=t.link?"https://".concat(t.link):"",n[window.A17.settings.uiKeys.listing.download.header.locations]=this.formatLocations((0,l.Z)(t.locations)),n[window.A17.settings.uiKeys.listing.download.header.giftAreas]=this.formatGiftAreas(t.giftAreas),n},parseArr:function(t){var e=this,n=[];return t.forEach((function(t){if(t=t.item?t.item:t,window.A17.settings.downloadSplitGifts){var i=t.gifts||[];try{i.forEach((function(i){var r=d(d({},t),{},{gifts:[i],otherGifts:[]});n.push(e.makeFriendlyRow(r))}))}catch(t){console.log("csv download:parseArr",t)}}else{var r=(t.gifts||[]).concat(t.otherGifts||[]);n.push(e.makeFriendlyRow(d(d({},t),{},{gifts:r,otherGifts:[]})))}})),n},downloadHander:function(t){t.preventDefault();var e=(0,a.O7)();if(e&&e.length>0){this.activeFilters=(0,a.De)(),this.activeFilterKeys=Object.keys(this.activeFilters);try{this.download("".concat(this.generateFilename(),".csv"),o(this.parseArr(e))),document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:this.activeFilterKeys.length>0?"csvdownload:filtered":"csvdownload:unfiltered",data:!0}
1}))}catch(t){console.log("csv download:downloadHander",t)}}}},{init:function(){this.titleDefault=window.A17.settings.uiKeys.listing.download.filename.toLowerCase().replace(/[^a-zA-Z0-9]/g,"-"),this.$node.addEventListener("click",this.downloadHander,!1)},destroy:function(){this.$node.removeEventListener("click",this.downloadHander)}})},7698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("filterCount",{updateCount:function(){var t=(0,r.De)(),e=(t[this.options.type]?t[this.options.type]:[]).length;"query"===this.options.type&&t[this.options.type]&&""!==t[this.options.type]&&(e=1),e&&0!==e?(this.$count.textContent=e,this.$count.classList.toggle("hidden",0===e),this.squarebtn&&this.$node.classList.add("rounded-r-none"),this.hideifzero&&this.$node.parentNode.classList.remove("hidden")):(this.$count.classList.add("hidden"),this.$node.classList.remove("rounded-r-none"),this.hideifzero&&this.$node.parentNode.classList.add("hidden"))}},{init:function(){this.type="giftAreas",this.$count=this.getChild("count"),this.squarebtn="true"===this.options.squarebtn,this.hideifzero="true"===this.options.hideifzero,document.addEventListener("state:filters:active:updated",this.updateCount,!1)},destroy:function(){document.removeEventListener("state:filters:active:updated",this.updateCount)}})},9120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("geoList",{togglePanel:function(t){var e=t.detail.$btn.getAttribute("data-panel");this.$panels.forEach((function(t){t.classList.toggle("hidden",t.getAttribute("data-geolist-panel")!==e)})),this.$node.parentNode.scrollTop=0},modalClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&this.$switchBtns.dispatchEvent(new CustomEvent("switchbtns:update",{detail:{$btn:this.$switchBtns.querySelector("button")}}))}},{init:function(){this.$switchBtns=this.getChild("btns"),this.$switchBtns&&(this.$panels=this.getChildren("panel"),this.$switchBtns.addEventListener("switchbtns:update",this.togglePanel,!1),document.addEventListener("modal:closed",this.modalClosed,!1))},destroy:function(){this.$switchBtns&&this.$switchBtns.removeEventListener("switchbtns:update",this.togglePanel),document.removeEventListener("modal:closed",this.modalClosed)}})},5123:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(3667),r=n(7463),s=n(2150);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const u=(0,i.d)("globalSearch",{goAction:function(t){if(t=t||this.term,document.dispatchEvent(new CustomEvent("modal:close:all")),(0,s.Z)(window.location.pathname)===(0,s.Z)(this.routes.search))document.dispatchEvent(new CustomEvent("search:go",{detail:{query:t}}));else{var e=this.buildHref(t);window.A17.barba?window.A17.barba.go(e):window.location.href=e}},toggleClearButton:function(){0===this.$input.value.length?(this.$submit.disabled=!0,this.$clear.disabled=!0):(this.$submit.disabled=!1,this.$clear.disabled=!1)},submit:function(t){t.preventDefault(),t.stopPropagation(),this.goAction((0,r.Z)(this.$input.value))},noTerm:function(){this.$results.classList.add("hidden"),this.toggleClearButton()},noResults:function(){0===this.results.length&&(this.results.push(this.term),this.displaySuggestions())},buildHref:function(t){var e=new URLSearchParams;return e.set("q",t),this.routes.search+"?"+e.toString().replace(/%2c/gi,",").replace(/%24/gi,"$")},buildResult:function(t){var e=this.$resultTemplate.content.cloneNode(!0),n=e.querySelector("[data-globalsearch-link]"),i=n.querySelector("[data-globalsearch-label]");n.href=this.buildHref(t),n.dataset.textsearchLink=t,i.innerHTML=t;var r=document.createElement("div");return r.appendChild(e),r.innerHTML},displaySuggestions:function(){var t=this;this.$results.classList.remove("hidden");var e="";
1this.results.forEach((function(n,i){e+=t.buildResult(n)})),this.$results.innerHTML=e,this.$resultLinks=this.getChildren("link")},search:function(){var t=this;try{this.fetchController.abort(),this.fetchController=new AbortController,this.fetchSignal=this.fetchController.signal}catch(t){}var e={start:Date.now()},n=(0,r.Z)(this.$input.value);if(e.safeTerm=Date.now(),n!==this.term)if(this.term=n,this.toggleClearButton(),this.$focussed=null,this.focussedIndex=-1,this.$node.scrollTop=0,this.scrollTop=0,!this.term||this.term.length<2)this.noTerm();else{this.results=[];var i=new URL(this.searchUrl),s={q:this.term,type:"suggestions"};i.search=new URLSearchParams(s).toString();var o=new Headers;o.set("Authorization","Basic "+btoa("losthorse:sharingproject")),o.set("Accept","application/json"),fetch(i,{headers:o,signal:this.fetchSignal,method:"GET"}).then((function(e){try{return e.json()}catch(n){console.log("json error:",n,e),t.noResults()}})).then((function(n){if(n.error)return console.log("fetch error:",n.error,n.message),void t.noResults();n&&n.suggestions&&n.suggestions.length>0?(t.results=n.suggestions,e.recievedSuggestions=Date.now(),0===t.results.length?t.noResults():(t.displaySuggestions(),e.displaySuggestions=Date.now()),e.total=e.displaySuggestions,window.A17.logTimers&&(console.log("%c\n\nText Search timings:","font-weight: bold; color: #fff;"),console.log("Make safe term: ".concat(e.safeTerm-e.start,"ms")),console.log("Display suggestions: ".concat(e.displaySuggestions-e.generateSuggestions,"ms")),console.log("%cTOTAL: ".concat(e.total-e.start,"ms\n\n"),"color: #fff;"))):t.noResults()})).catch((function(e){console.log("fetch error:",e),t.noResults()}))}},input:function(){var t=this;this.toggleClearButton(),clearTimeout(this.timer),this.timer=setTimeout((function(){t.search()}),250)},clear:function(t){t.preventDefault(),t.stopPropagation(),this.term="",this.$input.value="",this.noTerm()},modalClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&(this.term="",this.$input.value="",this.noTerm())},resultsClick:function(t){var e=t.target.closest("[data-globalsearch-link]");e&&(t.preventDefault(),t.stopPropagation(),this.goAction(e.dataset.textsearchLink))},moveFocussed:function(t){document.activeElement!==this.$focussed&&c(this.$resultLinks).indexOf(this.$focussed)>-1&&(this.$focussed=document.activeElement,this.focussedIndex=c(this.$resultLinks).indexOf(this.$focussed)),this.$focussed&&this.$focussed.classList.remove("s-focus"),"down"===t?(this.focussedIndex++,this.focussedIndex>=this.$resultLinks.length&&(this.focussedIndex=0)):(this.focussedIndex--,this.focussedIndex<0&&(this.focussedIndex=this.$resultLinks.length-1)),this.$focussed=this.$resultLinks[this.focussedIndex],this.$focussed.classList.add("s-focus"),this.$focussed.focus(),this.$focussed.scrollIntoView({behavior:"smooth",block:"center"})},keyup:function(t){if(this.$resultLinks&&this.$resultLinks.length>0)switch(t.keyCode){case 38:t.preventDefault(),this.moveFocussed("up");break;case 40:t.preventDefault(),this.moveFocussed("down")}},closeKeyboard:function(){document.activeElement===this.$input&&this.$input.blur()}},{init:function(){window.A17.settings.searchUrl?(this.$results=this.getChild("results"),this.$result=this.getChild("result"),this.$resultLinks=null,this.$submit=this.getChild("submit"),this.$clear=this.getChild("clear"),this.$input=this.getChild("input"),this.$form=this.getChild("form"),this.$focussed=null,this.$footerApply=this.getChild("footerapply",document),this.$footerClear=this.getChild("footerclear",document),this.$resultTemplate=this.getChild("result-link-template",document),this.searchUrl=window.A17.settings.searchUrl,this.term,this.routes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},window.A17.settings.routes),this.results=[],this.timer,this.focussedIndex=-1,this.scrollTop=0,this.tags={},this.fetchController=new AbortController,this.fetchSignal=this.fetchController.signal,this.$form.addEventListener("submit",this.submit,!1),this.$submit.addEventListener("submit",this.submit,!1),this.$input.addEventListener("input",this.input,!1),this.$clear.addEventListener("click",this.clear,!1),this.$submit.addEventListener("click",this.submit,!1),this.$results.addEventListener("click",this.resultsClick,!1),this.$results.addEventListener("touchstart",this.closeKeyboard,{passive:!0}),this.$footerApply.addEventListener("click",this.submit,!1),this.$footerClear.addEventListener("click",this.clear,!1),document.addEventListener("modal:closed",this.modalClosed,!1),document.addEventListener("keyup",this.keyup,!1)):this.$node.classList.add("hidden")},destroy:function(){this.$form.removeEventListener("submit",this.submit),this.$submit.removeEventListener("submit",this.submit),this.$input.removeEventListener("input",this.input),this.$clear.removeEventListener("click",this.clear),this.$submit.removeEventListener("click",this.submit),this.$results.removeEventListener("click",this.resultsClick),this.$results.removeEventListener("touchstart",this.closeKeyboard),this.$footerApply.removeEventListener("click",this.submit),this.$footerClear.removeEventListener("click",this.clear),document.removeEventListener("modal:closed",this.modalClosed),document.removeEventListener("keyup",this.keyup)}})},2948:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("headerLogoReveal",{intersection:function(t){var e=this;t.forEach((function(t){t.target===e.$node&&e.$headerLogo.classList.toggle("opacity-0",t.isIntersecting)}))},setUpIO:function(){this.headerHeight=this.$headerLogo.parentNode.offsetHeight,this.observer=new IntersectionObserver(this.intersection,{rootMargin:"-".concat(this.headerHeight,"px 0px 0px 0px")}),this.observer.observe(this.$node)},destroyIO:function(){this.observer.disconnect()},resetIO:function(){this.destroyIO(),this.setUpIO()}},{init:function(){try{this.$headerLogo=this.$node.closest('[data-barba="container"]').querySelector("[data-header-logo]"),this.headerHeight=0,this.observer,this.$headerLogo&&this.setUpIO()}catch(t){}},resized:function(){this.$headerLogo&&this.resetIO()},destroy:function(){this.$headerLogo&&this.destroyIO()}})},6789:(t,e,n)=>{"use strict";n.r(e),n.d(e,{accordion:()=>C.default,applyfilters:()=>u.default,barbaLoadProgress:()=>y.default,checkbox:()=>c.default,clearfilters:()=>l.default,downloadcsv:()=>f.default,filterCount:()=>h.default,geoList:()=>L.default,globalSearch:()=>x.default,headerLogoReveal:()=>T.default,keywordSearch:()=>O.default,lazyloadimg:()=>S.default,locationSearch:()=>p.default,locationsShowMore:()=>P.default,markTerm:()=>D.default,menu:()=>$.default,modal:()=>s.default,organizationListing:()=>j.default,organizationsLoading:()=>b.default,reshuffle:()=>d.default,search:()=>v.default,selectedFilters:()=>E.default,share:()=>g.default,snackbox:()=>r.default,sortTriggerLabel:()=>k.default,switchBtns:()=>i.default,table:()=>w.default,toggleSorting:()=>a.default,triggerModal:()=>o.default,triggerShare:()=>m.default,unclamp:()=>A.default});var i=n(584),r=n(3488),s=n(6755),o=n(8863),a=n(573),c=n(5484),l=n(4519),u=n(8124),d=n(5259),h=n(7698),f=n(1032),p=n(7896),m=n(5964),g=n(5216),v=n(2126),y=n(3245),b=n(6814),w=n(2528),E=n(8915),$=n(9294),L=n(9120),A=n(2655),C=n(9838),k=n(4301),S=n(7031),O=n(3748),x=n(5123),j=n(8470),T=n(2948),D=n(2635),P=n(5619)},3748:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var i=n(3667),r=n(628),s=n(5952),o=n(4630),a=n(3314),c=n(6874),l=n(6821);const u=function(t,e){t=String(t),e=Number(e)>>>0;var n=t.slice(0,e+1).search(/\S+$/),i=t.slice(e).search(/\s/);return i<0?t.slice(n):t.slice(n,i+e)};var d=n(7463);const h=function(t,e){var n=[],i=[],r=[];
1e.length,t.forEach((function(t,e){t.matches.forEach((function(e){"nameNormalized"===e.key&&(e.key="name",e.value=t.item.name),"missionNormalized"===e.key&&(e.key="mission",e.value=t.item.mission)})),t.matches.forEach((function(e){var i="";"mission"===e.key?e.indices.forEach((function(t){var n=u(e.value,t[0]);i=n})):i="nameNormalized"===e.key?t.item.name:"missionNormalized"===e.key?t.item.mission:e.value,i.length>1&&n.push(i)}))}));var s=new RegExp("\\b".concat((0,d.Z)(e,!0),"\\b"),"ig");n.forEach((function(t){var e=(0,d.Z)(t,!0);e.match(s)&&e.match(s).length>0?i.push(t):r.push(t)})),n=i.concat(r);var o=[];return n.every((function(t,e){return t=(0,d.Z)(t),o.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())<0&&(t.toLowerCase().indexOf("god")>-1||t.toLowerCase().indexOf("jesus")>-1||t.toLowerCase().indexOf("christ")>-1||t.toLowerCase().indexOf("allah")>-1||t.toLowerCase().indexOf("lgb")>-1?o.push(t):o.push(t.toLowerCase())),o.length<10})),o};var f=n(2150);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const y=(0,i.d)("keywordSearch",{goAction:function(t){if(t=t||this.term,(0,f.Z)(window.location.pathname)===(0,f.Z)(this.routes.listing))document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"query",query:t.toLowerCase()}})),(0,l.Z)();else{var e=this.buildHref(t);window.A17.barba?(window.A17.barba.go(e),document.addEventListener("barba:page:loaded",(function(){document.dispatchEvent(new CustomEvent("modal:close:all"))}),{once:!0})):window.location.href=e}},toggleClearButton:function(){0===this.$input.value.length?(this.$submit.disabled=!0,this.$clear.disabled=!0):(this.$submit.disabled=!1,this.$clear.disabled=!1)},submit:function(t){t.preventDefault(),t.stopPropagation(),this.goAction((0,d.Z)(this.$input.value))},noTerm:function(){this.$results.classList.add("hidden"),this.toggleClearButton()},buildHref:function(t){var e=new URLSearchParams;return e.set("q",t),this.routes.search+"?"+e.toString().replace(/%2c/gi,",").replace(/%24/gi,"$")},buildResult:function(t){var e=this.$resultTemplate.content.cloneNode(!0),n=e.querySelector("[data-keywordsearch-link]"),i=n.querySelector("[data-keywordsearch-label]");n.href=this.buildHref(t),n.dataset.textsearchLink=t,i.innerHTML=t;var r=document.createElement("div");return r.appendChild(e),r.innerHTML},displaySuggestions:function(){var t=this;this.$results.classList.remove("hidden");var e="";this.results.forEach((function(n,i){e+=t.buildResult(n)})),this.$results.innerHTML=e,this.$resultLinks=this.getChildren("link")},search:function(){var t={start:Date.now()},e=(0,d.Z)(this.$input.value);if(t.safeTerm=Date.now(),e!==this.term)if(this.term=e,this.toggleClearButton(),this.$focussed=null,this.focussedIndex=-1,this.$node.scrollTop=0,this.scrollTop=0,0!==this.term.length){var n=this.term;if(this.results=[],!(n&&n.length<2)){t.setup=Date.now();var i=JSON.parse(JSON.stringify((0,r.Xq)()));t.getGifts=Date.now();var l=(0,r.De)();l.query&&delete l.query;var u=(0,o.Z)(l);t.processFilters=Date.now(),i=(0,s.Z)(i,u).results,t.filterGifts=Date.now(),i=(0,a.Z)(i,(0,r.NJ)()),t.addTagData=Date.now();var f=(0,c.Z)(n,i,"suggestions");t.fuseSearch=Date.now();var p=h(f,n);if(t.generateSuggestions=Date.now(),this.results=p,0===this.results.length){var m={number:parseInt(n.replace(/<|>|\$/gi,"")),string:n.replace(/\$/gi,"")};"number"==typeof m.number&&m.number>9999&&m.string.replace(/[^<^>]/g,"").length<2&&p.push("".concat(m.string.replace(/[^<^>]/g,""),"$").concat(m.number))}0===this.results.length&&this.results.push(this.term),this.displaySuggestions(),t.displaySuggestions=Date.now(),t.total=t.displaySuggestions,window.A17.logTimers&&(console.log("%c\n\nText Search timings:","font-weight: bold; color: #fff;"),console.log("Make safe term: ".concat(t.safeTerm-t.start,"ms")),console.log("Setup: ".concat(t.setup-t.safeTerm,"ms")),console.log("Get gifts: ".concat(t.getGifts-t.setup,"ms")),console.log("Process fitlers: ".concat(t.process
1Filters-t.getGifts,"ms")),console.log("Filter gifts: ".concat(t.filterGifts-t.processFilters,"ms")),console.log("Add tag data: ".concat(t.addTagData-t.filterGifts,"ms")),console.log("Fuse search: ".concat(t.fuseSearch-t.addTagData,"ms")),console.log("Generate suggestions: ".concat(t.generateSuggestions-t.fuseSearch,"ms")),console.log("Display suggestions: ".concat(t.displaySuggestions-t.generateSuggestions,"ms")),console.log("%cTOTAL: ".concat(t.total-t.start,"ms\n\n"),"color: #fff;"))}}else this.noTerm()},input:function(){var t=this;this.toggleClearButton(),clearTimeout(this.timer),this.timer=setTimeout((function(){t.search()}),250)},clear:function(t){t.preventDefault(),t.stopPropagation(),this.term="",this.$input.value="",this.noTerm()},modalClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&(this.term="",this.$input.value="",this.noTerm())},resultsClick:function(t){var e=t.target.closest("[data-keywordsearch-link]");e&&(t.preventDefault(),t.stopPropagation(),this.goAction(e.dataset.textsearchLink))},moveFocussed:function(t){document.activeElement!==this.$focussed&&g(this.$resultLinks).indexOf(this.$focussed)>-1&&(this.$focussed=document.activeElement,this.focussedIndex=g(this.$resultLinks).indexOf(this.$focussed)),this.$focussed&&this.$focussed.classList.remove("s-focus"),"down"===t?(this.focussedIndex++,this.focussedIndex>=this.$resultLinks.length&&(this.focussedIndex=0)):(this.focussedIndex--,this.focussedIndex<0&&(this.focussedIndex=this.$resultLinks.length-1)),this.$focussed=this.$resultLinks[this.focussedIndex],this.$focussed.classList.add("s-focus"),this.$focussed.focus(),this.$focussed.scrollIntoView({behavior:"smooth",block:"center"})},keyup:function(t){if(this.$resultLinks&&this.$resultLinks.length>0)switch(t.keyCode){case 38:t.preventDefault(),this.moveFocussed("up");break;case 40:t.preventDefault(),this.moveFocussed("down")}},closeKeyboard:function(){document.activeElement===this.$input&&this.$input.blur()}},{init:function(){window.A17.settings.tags&&window.A17.settings.tags.locations&&(this.$results=this.getChild("results"),this.$result=this.getChild("result"),this.$resultLinks=null,this.$submit=this.getChild("submit"),this.$clear=this.getChild("clear"),this.$input=this.getChild("input"),this.$form=this.getChild("form"),this.$focussed=null,this.$footerApply=this.getChild("footerapply",document),this.$footerClear=this.getChild("footerclear",document),this.$resultTemplate=this.getChild("result-link-template",document),this.term,this.routes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},window.A17.settings.routes),this.results=[],this.timer,this.focussedIndex=-1,this.scrollTop=0,this.tags={},this.$form.addEventListener("submit",this.submit,!1),this.$submit.addEventListener("submit",this.submit,!1),this.$input.addEventListener("input",this.input,!1),this.$clear.addEventListener("click",this.clear,!1),this.$submit.addEventListener("click",this.submit,!1),this.$results.addEventListener("click",this.resultsClick,!1),this.$results.addEventListener("touchstart",this.closeKeyboard,{passive:!0}),this.$footerApply.addEventListener("click",this.submit,!1),this.$footerClear.addEventListener("click",this.clear,!1),document.addEventListener("modal:closed",this.modalClosed,!1),document.addEventListener("keyup",this.keyup,!1))},destroy:function(){this.$form.removeEventListener("submit",this.submit),this.$submit.removeEventListener("submit",this.submit),this.$input.removeEventListener("input",this.input),this.$clear.removeEventListener("click",this.clear),this.$submit.removeEventListener("click",this.submit),this.$results.removeEventListener("click",this.resultsClick),this.$results.removeEventListener("touchstart",this.closeKeyboard),this.$footerApply.removeEventListener("click",this.submit),this.$footerClear.removeEventListener("click",this.clear),document.removeEventListener("modal:closed",this.modalClosed),document.removeEventListener("keyup",this.keyup)}})},7031:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("lazyloadimg",{},{init:function(){this.lazyloaded=!1,this.$img=this.getChild("img")},intersectionIn:function(){this.lazyloaded||this.$img&&(this.$img.dataset.srcset&&!this.$img.srcset&&(this.$img.srcset=this.$img.dataset.srcset),this.$img.dataset.src&&!this.$img.src&&(this.$img.src=this.$img.dataset.src))}})},7896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});var i=n(3667),r=n(3140),s=n(628),o=n(2561),a=(n(6821),n(9386)),c=n(7463),l=n(2150),u=n(1523);function d(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?f(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const g=(0,i.d)("locationSearch",{goAction:function(t){if(t)if(this.recentLocations.indexOf(t)>-1&&this.recentLocations.splice(this.recentLocations.indexOf(t),1),this.recentLocations=this.recentLocations.reverse(),this.recentLocations.push(t),this.recentLocations=this.recentLocations.reverse(),this.recentLocations=this.recentLocations.slice(0,5),this.displayRecents&&sessionStorage.setItem("recentLocations",JSON.stringify(this.recentLocations)),(0,l.Z)(window.location.pathname)===(0,l.Z)(this.routes.listing))document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"locations",current:!0,initial:!0,id:t}})),document.dispatchEvent(new CustomEvent("state:filters:apply"));else{var e=this.buildHref(t);window.A17.barba?(window.A17.barba.go(e),document.addEventListener("barba:page:loaded",(function(){document.dispatchEvent(new CustomEvent("modal:close:all"))}),{once:!0})):window.location.href=e}},toggleClearButton:function(){0===this.$input.value.length?(this.$submit.disabled=!0,this.$clear.disabled=!0):(this.$submit.disabled=!1,this.$clear.disabled=!1)},submit:function(t){t.preventDefault(),t.stopPropagation(),this.immediate&&this.$focussed&&this.goAction(this.$focussed.dataset.locationsearchLink)},noTerm:function(){0===this.recentLocations.length?(this.$prompt.classList.remove("hidden"),this.displayRecents&&this.$recents.classList.add("hidden")):(this.displayRecents&&this.updateRecents(),this.$prompt.classList.add("hidden"),this.displayRecents&&this.$recents.classList.remove("hidden")),this.$noresults.classList.add("hidden"),this.$results.classList.add("hidden"),this.toggleClearButton()},noResults:function(){this.$noresultsTerm.textContent=this.term,this.displayRecents&&this.$recents.classList.add("hidden"),this.$prompt.classList.remove("hidden"),this.$noresults.classList.remove("hidden"),this.$results.classList.add("hidden"),this.toggleClearButton(),document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"locationSearch:noResults",data:this.term}}))},buildHref:function(t){var e=new URL(document.location).searchParams;return e.set("location",t),this.routes.listing+"?"+e.toString()},buildResult:function(t,e){var n,i,r=p({recent:!1,focusFirst:!1},e),s=this.$resultTemplate.content.cloneNode(!0);if(this.immediate)i=(n=s.querySelector("[data-locationsearch-link]")).querySelector("[data-locationsearch-label]"),r.recent&&(n.dataset.locationsearchRecent=!0),n.dataset.locationsearchLink=t.id,n.href=this.buildHref(t.id);else{var a=t.status?t.status:"unchecked";i=(n=s.querySelector("[data-checkbox-id]")).querySelector("[data-locationsearch-label]"),n.dataset.checkboxId=t.id,n.dataset.checkboxStatus=a,n.setAttribute("aria-expanded","checked"===a),n.setAttribute("aria-pressed","checked"===a),n.querySelectorAll("svg").forEach((function(t){t.classList.add("opacity-0")})),n.querySelector("[data-checkbox-".concat(a,"]")).classList.remove("opacity-0")}var c=(0,o.Z)(t);i.innerHTML=c,this.immediate&&r.focusFirst&&(n.classList.add("s-focus"),this.$focussed=n);var l=document.createElement("div");return l.appendChild(s),l.innerHTML},displayResults:function(){var t=this;this.displayRecents&&this.$recents.classList.add("hidden"),this.$prompt.classList.add("hidden"),this.$noresults.classList.add("hidden"),this.$results.classList.remove("hidden");var e=(0,s.NH)(),n=[];e.locations&&(n=e.locations.map((function(t){return t.id})));var i="";this.results.forEach((function(e,s){e.item?(e.item=p({},t.tags.locations.find((function(t){return t.id===e.item.id}))),n.indexOf(e.item.id)>-1&&(e.item.status="checked"),e=(0,r.Z)(e,t.term)):e.label=e,i+=t.buildResult(e,{focusFirst:0===s})})),this.$results.innerHTML=i,this.$resultLinks=this.immediate?this.getChildren("link"):this.getChildren("checkbox")}
1,search:function(){var t=(0,c.Z)(this.$input.value);if(t!==this.term)if(this.term=t,this.toggleClearButton(),this.$focussed=null,this.focussedIndex=-1,this.$node.scrollTop=0,this.scrollTop=0,this.tags=0===Object.keys(this.tags).length?(0,s.NJ)():this.tags,0!==this.term.length){document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"locationSearch:term",data:this.term}})),this.results=[];var e=this.term,n={includeScore:!0,keys:["label"],threshold:.25,includeMatches:!0,useExtendedSearch:!1,findAllMatches:!1,shouldSort:!0,minMatchCharLength:this.term.length>5?this.term.length-2:this.term.length},i=new a.Z(this.tags.locations,n),r=i.search(e);Object.keys(u.Y).forEach((function(t){var n=new RegExp("\\b".concat(t,"\\b"),"ig");if(e.match(n)&&e.match(n).length>0){var s=e.replace(n,u.Y[t]);i.search(s).forEach((function(t){var e=r.find((function(e){return e.item.id===t.item.id}));e?e.matches=e.matches.concat(t.matches):r.push(t)}))}})),this.results=r.sort((function(t,e){return t.score-e.score})),this.results.length>0?this.displayResults():this.noResults()}else this.noTerm()},input:function(){var t=this;this.toggleClearButton(),clearTimeout(this.timer),this.timer=setTimeout((function(){t.search()}),250)},clear:function(t){t.preventDefault(),t.stopPropagation(),this.term="",this.$input.value="",this.noTerm()},modalClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&(this.term="",this.$input.value="",this.noTerm())},resultsClick:function(t){var e=t.target.closest("[data-locationsearch-link]");e&&(t.preventDefault(),t.stopPropagation(),this.goAction(e.dataset.locationsearchLink))},moveFocussed:function(t){document.activeElement!==this.$focussed&&d(this.$resultLinks).indexOf(this.$focussed)>-1&&(this.$focussed=document.activeElement,this.focussedIndex=d(this.$resultLinks).indexOf(this.$focussed)),this.$focussed&&this.$focussed.classList.remove("s-focus"),"down"===t?(this.focussedIndex++,this.focussedIndex>=this.$resultLinks.length&&(this.focussedIndex=0)):(this.focussedIndex--,this.focussedIndex<0&&(this.focussedIndex=this.$resultLinks.length-1)),this.$focussed=this.$resultLinks[this.focussedIndex],this.$focussed.classList.add("s-focus"),this.$focussed.focus(),this.$focussed.scrollIntoView({behavior:"smooth",block:"center"})},keyup:function(t){if(this.$resultLinks&&this.$resultLinks.length>0)switch(t.keyCode){case 38:t.preventDefault(),this.moveFocussed("up");break;case 40:t.preventDefault(),this.moveFocussed("down")}},closeKeyboard:function(){document.activeElement===this.$input&&this.$input.blur()},findRecents:function(){var t=this,e=[];return this.tags=0===Object.keys(this.tags).length?(0,s.NJ)():this.tags,this.recentLocations.forEach((function(n){var i=t.tags.locations.find((function(t){return t.id===n}));i&&Object.keys(i).length&&e.push(i)})),e},updateRecents:function(){var t=this,e=this.findRecents(this.recentLocations),n="";e.forEach((function(e){n+=t.buildResult(e,{recent:!0})})),this.$recentsList.innerHTML=n}},{init:function(){window.A17.settings.tags&&window.A17.settings.tags.locations&&(this.$prompt=this.getChild("prompt"),this.$noresults=this.getChild("noresults"),this.$noresultsTerm=this.getChild("term"),this.$results=this.getChild("results"),this.$recents=this.getChild("recents"),this.$recentsList=this.getChild("recentslist"),this.$result=this.getChild("result"),this.$resultLinks=null,this.$submit=this.getChild("submit"),this.$clear=this.getChild("clear"),this.$input=this.getChild("input"),this.$form=this.getChild("form"),this.$focussed=null,this.immediate="true"===this.options.immediate,this.displayRecents=!!this.$recents,this.$resultTemplate=this.immediate?this.getChild("result-link-template",document):this.getChild("result-checkbox-template",document),this.term,this.routes=p({},window.A17.settings.routes),this.results=[],this.timer,this.focussedIndex=-1,this.scrollTop=0,this.recentLocations=sessionStorage.getItem("recentLocations")?JSON.parse(sessionStorage.getItem("recentLocations")):[],this.tags={},this.$form.addEventListener("submit",this.submit,!1),this.$submit.addEventListener("submit",this.submit,!1),this.$input.addEventListener("input",this.input,!1),this.$clear.addEventListener("click",this.clear,!1),this.$submit.addEventListener("click",this.submit,!1),this.$results.addEventListener("click",this.resultsClick,!1),this.$results.addEventListener("touchstart",this.closeKeyboard,{passive:!0}),this.displayRecents&&this.$recentsList.addEventListener("click",this.resultsClick,!1),document.addEventListener("modal:closed",this.modalClosed,!1),document.addEventListener("keyup",this.keyup,!1),this.displayRecents&&this.recentLocations.length>0&&(this.updateRecents(),this.$prompt.classList.add("hidden"),this.$recents.classList.remove("hidden")))},destroy:function(){this.$form.removeEventListener("submit",this.submit),this.$submit.removeEventListener("submit",this.submit),this.$input.removeEventListener("input",this.input),this.$clear.removeEventListener("click",this.clear),this.$submit.removeEventListener("click",this.submit),this.$results.removeEventListener("click",this.resultsClick),this.$results.removeEventListener("touchstart",this.closeKeyboard),this.displayRecents&&this.$recentsList.removeEventListener("click",this.resultsClick),document.removeEventListener("modal:closed",this.modalClosed),document.removeEventListener("keyup",this.keyup)}})},5619:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("locationsShowMore",{open:function(){var t,e=this;
1this.$items.forEach((function(n){!t&&e.userClicked&&n.classList.contains("hidden")&&(t=n.querySelector('[data-behavior="checkbox"]')),n.classList.remove("hidden"),n.firstElementChild.removeAttribute("tabindex"),n.firstElementChild.disabled=!1,n.firstElementChild.setAttribute("aria-hidden","false")})),this.$trigger.classList.add("hidden"),this.$trigger.setAttribute("tabindex","-1"),this.$trigger.disabled=!0,this.$trigger.setAttribute("aria-hidden","true"),this.userClicked&&t.focus(),this.moreShown=!0},clickHandler:function(t){t.preventDefault(),this.userClicked=!0,this.open()},reset:function(){var t=this;this.$items.forEach((function(e,n){n>parseInt(t.options.max||10)&&(e.classList.add("hidden"),e.firstElementChild.setAttribute("tabindex","-1"),e.firstElementChild.disabled=!0,e.firstElementChild.setAttribute("aria-hidden","true"))})),this.$trigger.classList.remove("hidden"),this.$trigger.removeAttribute("tabindex"),this.$trigger.disabled=!1,this.$trigger.setAttribute("aria-hidden","false"),this.moreShown=!1,this.userClicked=!1},accordionPanelClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.panel&&(t.detail.panel===this.$node||t.detail.panel.contains(this.$node))&&this.reset()},modalClosed:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element.contains(this.$node)&&this.reset()},checkContentCheckboxes:function(){var t=[],e=[];return this.$node.querySelectorAll("[data-checkbox-status]").forEach((function(e){t.push(e.parentNode)})),this.$node.querySelectorAll('[data-checkbox-status="unchecked"]').forEach((function(t){e.push(t.parentNode)})),t.length!==e.length},checkboxStateUpdated:function(t){var e;!this.userClicked&&null!=t&&null!==(e=t.detail)&&void 0!==e&&e.element&&(this.checkContentCheckboxes()?this.open():this.userClicked||this.reset())}},{init:function(){this.moreShown=!1,this.userClicked=!1,this.$trigger=this.getChild("trigger"),this.$items=this.getChildren("item"),this.$trigger.addEventListener("click",this.clickHandler,!1),this.$node.addEventListener("locationsShowMore:checkbox:state:updated",this.checkboxStateUpdated,!1),document.addEventListener("accordion:panel:closed",this.accordionPanelClosed,!1),document.addEventListener("modal:closed",this.modalClosed,!1),this.options["initial-state"]&&"open"===this.options["initial-state"]&&this.open()},destroy:function(){this.$trigger.removeEventListener("click",this.clickHandler),document.removeEventListener("accordion:panel:closed",this.accordionPanelClosed),document.removeEventListener("modal:closed",this.modalClosed)}})},2635:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("markTerm",{matchText:function(t,e,n,i){var r=this;i=i||(i=["script","style","iframe","canvas"]);for(var s=t.firstChild;s;)!function(){switch(s.nodeType){case 1:if(i.indexOf(s.tagName.toLowerCase())>-1)break;r.matchText(s,e,n,i);break;case 3:var t=0;s.data.replace(e,(function(e){var i,r=[].slice.call(arguments),o=r[r.length-2],a=s.splitText(o+t);t-=s.data.length+e.length,a.data=a.data.substr(e.length),i=n.apply(window,[s].concat(r)),s.parentNode.insertBefore(i,a),s=a})),e.lastIndex=0}}(),s=s.nextSibling;return t}},{init:function(){var t=this,e=new URL(window.location.href).searchParams.get("q");if(e){var n=decodeURI(e).trim().replace(/[^a-zA-Z0-9 <>$&\/]/gi,"").toString().toLowerCase();this.getChildren("item").forEach((function(e){t.matchText(e,new RegExp(n,"ig"),(function(t,e,n){var i=document.createElement("mark");return i.textContent=e,i}))}))}},destroy:function(){}})},9294:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("menu",{clickHandler:function(t){"A"===t.target.tagName&&document.dispatchEvent(new CustomEvent("modal:close:all"))}},{init:function(){this.$node.addEventListener("click",this.clickHandler,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler)}})},6755:(t,e,n)=>{"use strict";function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,{default:()=>s});const s=(0,n(3667).d)("modal",{scrollAreaScroll:function(){this.$n
1ode.dataset.scrolled=this.$scrollArea.scrollTop>0,this.dialogScrollTop=this.$scrollArea.scrollTop,this.drag.dragging&&0!==this.dialogScrollTop&&(this.drag.dragging=!1,this.resetDragClose())},setTabIndexs:function(t){i(this.$node.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter((function(t){return!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden")})).forEach((function(e){t?e.setAttribute("tabindex","-1"):e.removeAttribute("tabindex")}))},open:function(t){var e,n;if(!this.active){if(null!=t&&null!==(e=t.detail)&&void 0!==e&&e.align&&(this.$node.dataset.modalAlign=t.detail.align),null!=t&&null!==(n=t.detail)&&void 0!==n&&n.$trigger){this.$trigger=t.detail.$trigger,this.$trigger.classList.add("s-active");var i=this.$trigger.closest('[data-component="modal"]');i&&(this.$parentModal=i,this.$parentModal.dispatchEvent(new CustomEvent("modal:child:opened",{detail:{element:this.$node}})))}this.tableFiltersOffsetTop=this.$tableFilters?this.$tableFilters.offsetTop:0,this.$node.dataset.modalDragging=!1,this.$node.classList.remove("opacity-0","-z-10"),this.$node.classList.add("z-50"),this.$node.style.setProperty("--translate",""),this.$node.style.setProperty("--opacity",""),this.$scrollArea.scrollTop=0,this.scrollTop=window.pageYOffset;var r=window.innerWidth-document.documentElement.clientWidth;this.$body.style.cssText="position: fixed; overflow: hidden; width: 100%; padding-right: ".concat(r,"px; top: -").concat(this.scrollTop,"px; overscroll-behavior-y: none;"),this.$documentElement.style["overscroll-behavior-y"]="none",this.$node.dataset.modalOpen=!0,this.setTabIndexs(!1),document.dispatchEvent(new CustomEvent("focus:trap",{detail:{element:this.$dialog}})),this.$autofocus?this.$autofocus.focus():this.$h1.focus();var s=document.documentElement.dataset.modalsOpen?document.documentElement.dataset.modalsOpen.split(","):[];s.push(this.options.id),document.documentElement.dataset.modalsOpen=s.join(","),this.active=!0}},close:function(t){var e=this;if(this.active){this.$node.dataset.modalOpen=!1,this.setTabIndexs(!0),document.dispatchEvent(new CustomEvent("modal:closing",{detail:{element:this.$node,originalEvent:t}})),setTimeout((function(){if(e.$parentModal||(e.$body.style.cssText="",e.$documentElement.style["overscroll-behavior-y"]="",window.scroll({top:e.scrollTop,left:0,behavior:"auto"})),document.dispatchEvent(new CustomEvent("modal:closed",{detail:{element:e.$node,originalEvent:t}})),e.$node.dataset.modalAlign=null,e.$node.removeAttribute("data-modal-align"),e.$node.classList.add("opacity-0","-z-10"),e.$node.classList.remove("z-50"),e.$parentModal&&(e.$parentModal.dispatchEvent(new CustomEvent("modal:child:closed",{detail:{element:e.$node}})),e.$parentModal=null),"modal:close:all"===t.type){if(!e.$parentModal&&(document.dispatchEvent(new CustomEvent("focus:untrap")),e.$trigger)){var n;e.$trigger.classList.remove("s-active");var i=(null===(n=document.activeElement.dataset)||void 0===n?void 0:n.focusMethod)||"machine";e.$trigger.focus(),e.$trigger.dataset.focusMethod=i,e.$trigger=null}}else if(e.$parentModal?document.dispatchEvent(new CustomEvent("focus:trap",{detail:{element:e.$parentModal}})):document.dispatchEvent(new CustomEvent("focus:untrap")),e.$trigger){var r;e.$trigger.classList.remove("s-active");var s=(null===(r=document.activeElement.dataset)||void 0===r?void 0:r.focusMethod)||"machine";e.$trigger.focus(),e.$trigger.dataset.focusMethod=s,e.$trigger=null}}),this.transitionDuration);var n=document.documentElement.dataset.modalsOpen.split(","),i=n.indexOf(this.options.id);i>-1&&n.splice(i,1),document.documentElement.dataset.modalsOpen=n.join(","),this.active=!1}},keyup:function(t){if(!this.$childModal&&27===t.keyCode)this.close(t)},resetDragClose:function(){this.$node.style.setProperty("--translate",""),this.$node.style.setProperty("--opacity",""),this.$node.dataset.modalDragging=!1},pointerDown:function(t){if(!("mini"===this.type&&this.isBreakpoint("md+")||"BUTTON"===t.target.tagName||"A"===t.target.tagName||t.target===this.$scrollArea||t.target.closest("[data-modal-scrollarea]")&&0!==this.$scrollArea.scrollTop)){var e=t.pageX||t.clientX,n=t.pageY||t.clientY;this.drag.startX=e,this.drag.startY=n,this.drag.currX=e,this.drag.currY=n,this.drag.dragging=!0}},pointerMove:function(t){if(("mini"!==this.type||!this.isBreakpoint("md+"))&&this.drag.dragging){t.preventDefault(),t.stopPropagation();var e=t.pageX||t.clientX,n=t.pageY||t.clientY;this.drag.currX=e,this.drag.currY=n;var i=e-this.drag.startX,r=n-this.drag.startY;"top"===this.options.type?Math.abs(r)>Math.abs(i)&&0===this.dialogScrollTop&&r<0?(t.preventDefault(),this.$node.dataset.modalDragging=!0,this.$node.style.setProperty("--translate","translateY(".concat(r,"px)")),r>this.drag.fadeDeltaY?this.$node.style.setProperty("--opacity",.25):this.$node.style.setProperty("--opacity","")):this.$node.style.setProperty("--translate",""):this.isMobile?Math.abs(r)>Math.abs(i)&&0===this.dialogScrollTop&&r>0?(t.preventDefault(),this.$node.dataset.modalDragging=!0,this.$node.style.setProperty("--translate","translateY(".concat(r,"px)")),r>this.drag.fadeDeltaY?this.$node.style.setProperty("--opacity",.25):this.$node.style.setProperty("--opacity","")):this.$node.style.setProperty("--translate",""):Math.abs(i)>Math.abs(r)&&i>0&&(t.preventDefault(),this.$node.dataset.modalDragging=!0,this.$node.style.setProperty("--translate","translateX(".concat(i,"px)")),i>
1this.drag.fadeDeltaX?this.$node.style.setProperty("--opacity",.25):this.$node.style.setProperty("--opacity",""))}},pointerUp:function(t){if("mini"!==this.type||!this.isBreakpoint("md+")){if(this.drag.dragging){var e=t.pageX||t.clientX||this.drag.currX,n=t.pageY||t.clientY||this.drag.currY,i=e-this.drag.startX,r=n-this.drag.startY;this.isMobile&&r>this.drag.triggerDeltaY||"top"===this.options.type&&Math.abs(r)>this.drag.triggerDeltaY||i>this.drag.triggerDeltaX?this.close(t):this.resetDragClose()}this.drag.dragging=!1}},pointerCancel:function(t){"mini"===this.type&&this.isBreakpoint("md+")||t.target===t.currentTarget&&this.pointerUp(t)},pointerOut:function(t){"mini"===this.type&&this.isBreakpoint("md+")||t.target===t.currentTarget&&this.pointerUp(t)},scrollAreaTouchStart:function(t){this.drag.scrollAreaDragStartY=t.pageY},scrollAreaTouchMove:function(t){this.drag.scrollAreaDragStartY||(t.preventDefault(),this.$scrollArea.classList.remove("overflow-y-auto")),t.pageY-this.drag.scrollAreaDragStartY>0&&this.$scrollArea.scrollTop<=0&&t.preventDefault()},scrollAreaTouchEnd:function(){this.drag.scrollAreaDragStartY=null},scrollAreaTouchCancel:function(){this.drag.scrollAreaDragStartY=null},childModalOpened:function(t){var e;null!==(e=t.detail)&&void 0!==e&&e.element&&(this.$childModal=t.detail.element)},childModalClosed:function(t){var e;null!==(e=t.detail)&&void 0!==e&&e.element&&t.detail.element===this.$childModal&&(this.$childModal=null)},filtersApplied:function(){this.scrollTop>this.tableFiltersOffsetTop&&(this.scrollTop=this.tableFiltersOffsetTop)}},{init:function(){var t=this;this.active,this.type=this.options.type||"default",this.scrollTop=0,this.dialogScrollTop=0,this.isMobile=this.isBreakpoint("sm-"),this.transitionDuration=300,this.drag={triggerDeltaX:65,triggerDeltaY:100,fadeDeltaX:390*.66,fadeDeltaY:100,startX:-1,startY:-1,currX:-1,currY:-1,dragging:!1,scrollAreaDragStartY:null},this.tableFiltersOffsetTop=0,this.$documentElement=document.documentElement,this.$body=document.querySelector("body"),this.$scrollArea=this.getChild("scrollarea"),this.$h1=this.getChild("h1"),this.$closeBtns=this.getChildren("close"),this.$backdrop=this.getChild("backdrop"),this.$dialog=this.getChild("dialog"),this.$autofocus=this.$dialog.querySelector("input[data-autofocus]"),this.$tableFilters=this.getChild("filters",document),this.$trigger,this.$parentModal,this.$childModal,"top"===this.options.type&&(this.drag.triggerDeltaY=this.$dialog.offsetHeight/3),this.$scrollArea.addEventListener("scroll",this.scrollAreaScroll,!1),this.$node.addEventListener("modal:open",this.open,!1),this.$node.addEventListener("modal:close",this.close,!1),this.$node.addEventListener("modal:child:opened",this.childModalOpened,!1),this.$node.addEventListener("modal:child:closed",this.childModalClosed,!1),document.addEventListener("modal:close:all",this.close,!1),this.$backdrop.addEventListener("click",this.close,!1),this.$closeBtns.forEach((function(e){e.addEventListener("click",t.close,!1)})),document.addEventListener("keyup",this.keyup,!1),this.$dialog.addEventListener("pointerdown",this.pointerDown,!1),this.$dialog.addEventListener("pointermove",this.pointerMove,!1),this.$dialog.addEventListener("pointerup",this.pointerUp,!1),this.$dialog.addEventListener("pointercancel",this.pointerCancel,!1),this.$dialog.addEventListener("pointerout",this.pointerOut,!1),this.$scrollArea.addEventListener("touchstart",this.scrollAreaTouchStart,{passive:!0}),this.$scrollArea.addEventListener("touchmove",this.scrollAreaTouchMove,!1),this.$scrollArea.addEventListener("touchend",this.scrollAreaTouchEnd,!1),this.$scrollArea.addEventListener("touchcancel",this.scrollAreaTouchCancel,!1),document.addEventListener("state:filters:apply",this.filtersApplied,!1),this.transitionDuration=parseInt(window.getComputedStyle(this.$dialog).getPropertyValue("transition-duration"))||300,this.setTabIndexs(!0),this.scrollAreaScroll()},resized:function(){this.isMobile=this.isBreakpoint("sm-")},destroy:function(){var t=this;this.$scrollArea.removeEventListener("scroll",this.scrollAreaScroll),this.$node.removeEventListener("modal:open",this.open),this.$node.removeEventListener("modal:close",this.close),this.$node.removeEventListener("modal:child:opened",this.childModalOpened),this.$node.removeEventListener("modal:child:closed",this.childModalClosed),document.removeEventListener("modal:close:all",this.close),this.$backdrop.removeEventListener("click",this.close),this.$closeBtns.forEach((function(e){e.removeEventListener("click",t.close)})),document.removeEventListener("keyup",this.keyup),this.$dialog.removeEventListener("pointerdown",this.pointerDown),this.$dialog.removeEventListener("pointermove",this.pointerMove),this.$dialog.removeEventListener("pointerup",this.pointerUp),this.$dialog.removeEventListener("pointercancel",this.pointerCancel),document.removeEventListener("state:filters:apply",this.filtersApplied)}})},8470:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("organizationListing",{click:function(t){var e;"A"===t.target.tagName&&""===(null===(e=t.target.dataset)||void 0===e?void 0:e.rowLink)&&document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"orglinkclick:essay",data:t.target.textContent.trim()}}))}}
1,{init:function(){this.$node.addEventListener("click",this.click,!1)},destroy:function(){this.$node.removeEventListener("click",this.click)}})},6814:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(3667),r=n(628);function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const a=(0,i.d)("organizationsLoading",{loading:function(){this.$node.classList.add("s-data-loading")},loaded:function(){this.$node.classList.remove("s-data-loading")},error:function(){this.$node.classList.remove("s-data-loading"),s(this.$node.childNodes).forEach((function(t){t.remove()})),this.$errorTemplate=this.getChild("error-template",document);var t=this.$errorTemplate.content.cloneNode(!0);this.$node.appendChild(t.firstElementChild)}},{init:function(){document.addEventListener("state:data:load:start",this.loading,!1),document.addEventListener("state:data:load:complete",this.loaded,!1),document.addEventListener("state:data:load:error",this.error,!1);var t=(0,r.x9)();window.A17.loadingError?this.error():t?this.loaded():this.loading()},destroy:function(){document.removeEventListener("state:data:load:start",this.loading),document.removeEventListener("state:data:load:complete",this.loaded),document.removeEventListener("state:data:load:error",this.error)}})},5259:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("reshuffle",{clickHandler:function(t){t.preventDefault(),t.stopPropagation(),"shuffle"==(0,r.W)().current?document.dispatchEvent(new CustomEvent("state:sorting:reshuffle")):(document.dispatchEvent(new CustomEvent("state:sorting:toggle",{detail:{type:"shuffle"}})),document.dispatchEvent(new CustomEvent("state:filters:apply")))}},{init:function(){this.$node.addEventListener("click",this.clickHandler,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler)}})},2126:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var i=n(3667),r=n(628),s=n(2561),o=n(7463);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l=(0,i.d)("search",{submit:function(t){t.preventDefault(),t.stopPropagation(),this.search()},toggleClearButton:function(){0===this.$input.value.length?(this.$submit.disabled=!0,this.$clear.disabled=!0):(this.$submit.disabled=!1,this.$clear.disabled=!1)},resetResults:function(){this.$node.classList.remove("s-search-loading"),[this.$organizations,this.$giftareas,this.$locations,this.$about,this.$articles].forEac
1h((function(t){t.querySelector("ul").innerHTML="",t.classList.add("hidden")})),this.$count.classList.add("hidden"),this.$gifts.classList.add("hidden"),this.$share&&this.$share.classList.add("hidden"),this.$noresults.classList.add("hidden"),this.toggleClearButton()},noTerm:function(){this.$node.classList.remove("s-search-loading"),window.history.replaceState({term:""},"",this.routes.search),document.dispatchEvent(new CustomEvent("search:page:updated")),this.$noresults.classList.add("hidden")},noResults:function(t){this.$node.classList.remove("s-search-loading"),this.$countTerm.textContent=this.term,this.$counter.textContent="0",this.$count.classList.remove("hidden"),this.$gifts.classList.add("hidden"),this.$organizations.classList.add("hidden"),this.$giftareas.classList.add("hidden"),this.$locations.classList.add("hidden"),this.$noresults.classList.remove("hidden"),this.$share&&this.$share.classList.add("hidden"),document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"globalSearch:noResults",data:t}}))},buildHref:function(t){if("about"===t.searchType){var e=new URLSearchParams;return e.set("q",this.term),"".concat(this.routes.about,"?").concat(e.toString().replace(/%2c/gi,",").replace(/%24/gi,"$"))}if("article"===t.searchType&&t.slug){var n=new URLSearchParams;return n.set("q",this.term),"".concat(this.routes.articles).concat(t.slug,"?").concat(n.toString().replace(/%2c/gi,",").replace(/%24/gi,"$"))}return"location"===t.searchType?"".concat(this.routes.listing,"?locations=").concat(t.id):"giftarea"===t.searchType?"".concat(this.routes.listing,"?focus=").concat(t.id):"#"},generateOrganisation:function(t){var e=this.$organisationTemplate.content.cloneNode(!0),n=e.querySelector("[data-search-resultlink]"),i=e.querySelector("[data-search-resulttitle]"),o=e.querySelector("[data-search-resultgifts]"),a=e.querySelector("[data-search-resultlocation]"),c=e.querySelector("[data-search-resultmissiontitle]"),l=e.querySelector("[data-search-resultmission]");if(t.mission?(i.innerHTML=t.name,l.innerHTML=t.mission):(i.innerHTML=t.name,c.remove(),l.remove()),n&&t.link&&(n.href="https://".concat(t.link)),a&&t.locations){var u=[],d=(0,r.NJ)().locations;t.locations.forEach((function(t){try{var e=d.find((function(e){return e.id===t})),n=(0,s.Z)(e);n=n.replace(/\, /gi," "),u.push(n)}catch(t){}})),a.innerHTML=u.join(", ")}if(o&&t.gifts){var h=[];t.gifts.forEach((function(t){h.push("".concat(0===t.amount||"0"===t.amount?"Undisclosed":"$"+t.amount," ⢠").concat(t.year))})),o.innerHTML=h.join("<br>")}return e},generateLocation:function(t){var e=this.$locationTemplate.content.cloneNode(!0),n=e.querySelector("[data-search-resulttitle]"),i=(0,s.Z)(t);return n.innerHTML=i,e},generateGiftarea:function(t){var e,n=this.$giftareaTemplate.content.cloneNode(!0),i=n.querySelector("[data-search-resulttitle]"),r=t.label;return null!==(e=t.parent)&&void 0!==e&&e.label?i.innerHTML='<span class="text-light">'.concat(t.parent.label,'</span> <span class="text-light">→</span> ').concat(r):i.innerHTML=r,n},generateArticle:function(t){var e=this.$articleTemplate.content.cloneNode(!0),n=e.querySelector("[data-search-resulttitle]"),i=e.querySelector("[data-search-resultbody]");return n.innerHTML=t.title,i.innerHTML=t.body,e},generateAbout:function(t){var e=this.$aboutTemplate.content.cloneNode(!0),n=e.querySelector("[data-search-resulttitle]"),i=e.querySelector("[data-search-resultbody]");return n.innerHTML=t.title,i.innerHTML=t.body,e},generateResult:function(t,e){var n,i=this.buildHref(t);if("organisation"===t.searchType&&(n=this.generateOrganisation(t)),"location"===t.searchType&&(n=this.generateLocation(t)),"giftarea"===t.searchType&&(n=this.generateGiftarea(t)),"article"===t.searchType&&(n=this.generateArticle(t)),"about"===t.searchType&&(n=this.generateAbout(t)),n){var r=n.querySelector("[data-search-result]");r.href=i,r.dataset.searchResultId=t.id,r.dataset.searchResultType=t.searchType,e>=this.maxInitialResults&&n.firstElementChild.classList.add("hidden");var s=document.createElement("div");return s.appendChild(n),s.innerHTML}return""},displayResults:function(){var t,e,n=this;if(this.results.databaseTotal>
10){this.$gifts.querySelector("[data-search-count]").innerHTML=this.results.databaseTotal;var i=new URLSearchParams;i.set("q",this.term),this.$searchdbLink.href=this.routes.listing+"?"+i.toString().replace(/%2c/gi,",").replace(/%24/gi,"$"),this.$searchdbLink.querySelector("[data-search-searchdb-label]").innerHTML=A17.settings.uiKeys.search.searchInDatabase.replace(/TERM/gi,this.term),this.$gifts.classList.remove("hidden")}else this.$gifts.classList.add("hidden");if((null===(t=this.results.about)||void 0===t?void 0:t.length)>0){var r="",s=this.$about.querySelector("[data-search-list]"),o=this.$about.querySelector("[data-search-showmore]");this.$about.querySelector("[data-search-count]").innerHTML=this.results.about.length,this.results.about.forEach((function(t,e){r+=n.generateResult(t,e)})),s.innerHTML=r,o.parentNode.classList.toggle("hidden",this.results.about.length<=this.maxInitialResults),this.$about.classList.remove("hidden")}else this.$about.querySelector("ul").innerHTML="",this.$about.classList.add("hidden");if((null===(e=this.results.articles)||void 0===e?void 0:e.length)>0){var a="",c=this.$articles.querySelector("[data-search-list]"),l=this.$articles.querySelector("[data-search-showmore]");this.$articles.querySelector("[data-search-count]").innerHTML=this.results.articles.length,this.results.articles.forEach((function(t,e){a+=n.generateResult(t,e)})),c.innerHTML=a,l.parentNode.classList.toggle("hidden",this.results.articles.length<=this.maxInitialResults),this.$articles.classList.remove("hidden")}else this.$articles.querySelector("ul").innerHTML="",this.$articles.classList.add("hidden");this.$countTerm.textContent=this.term,this.$counter.textContent=this.results.length,this.$count.classList.remove("hidden"),this.$share&&this.$share.classList.remove("hidden"),this.$noresults.classList.add("hidden"),this.$node.classList.remove("s-search-loading")},search:function(t){var e,n=this,i="";if(null!=t&&null!==(e=t.detail)&&void 0!==e&&e.query?(i=t.detail.query,this.$input.value=i):i=(0,o.Z)(this.$input.value),i!==this.term){this.term=i;try{this.fetchController.abort(),this.fetchController=new AbortController,this.fetchSignal=this.fetchController.signal}catch(t){}if(document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"globalSearch:term",data:this.term}})),this.resetResults(),this.$node.classList.add("s-search-loading"),this.term.length<this.minTermLength)return this.noTerm(),window.history.replaceState({term:this.term},"",this.routes.search),!1;this.results={};var r=new URL(this.searchUrl),s={q:this.term};r.search=new URLSearchParams(s).toString();var a=new Headers;a.set("Authorization","Basic "+btoa("losthorse:sharingproject")),a.set("Accept","application/json"),fetch(r,{headers:a,signal:this.fetchSignal,method:"GET"}).then((function(t){try{return t.json()}catch(e){console.log("json error (a):",e,t),n.noResults(JSON.stringify({error:"Global Search Error: Server returned invalid JSON",term:n.term,data:{error:e,response:t}}))}})).then((function(t){t.error?(console.log("fetch error (b):",t.error,t.message),n.noResults(JSON.stringify({error:"Global Search Error: Server returned invalid response (a)",term:n.term,data:{error:t.error,message:t.message}}))):t.length>0?(n.results=t,n.displayResults()):n.noResults(n.term)})).catch((function(t){console.log("fetch error (c):",t),-1===t.toString().indexOf("abort")&&n.noResults(JSON.stringify({error:"Global Search Error: Server returned invalid response (b)",term:n.term,data:{error:t}}))}));var c=new URL(document.location).searchParams;c.set("q",this.term),window.history.replaceState({term:this.term},"",this.routes.search+"?"+c.toString()),document.dispatchEvent(new CustomEvent("search:page:updated"))}},input:function(){var t=this;this.toggleClearButton(),clearTimeout(this.timer),this.timer=setTimeout((function(){t.search()}),250)},clear:function(t){t.preventDefault(),t.stopPropagation(),this.term="",this.$input.value="",this.resetResults(),this.noTerm()},getInitialParams:function(){var t=new URL(window.location.href).searchParams.get("q");t&&(this.$input.value=t,this.search()),this.toggleClearButton()},showMore:function(t){var e=t.currentTarget,n=e.parentNode.previousElementSibling,i=n.children[this.maxInitialResults];
1Array.from(n.children).forEach((function(t){t.classList.remove("hidden")})),e.parentNode.classList.add("hidden"),i.tabIndex="-1",i.focus(),i.removeAttribute("tabindex")},closeKeyboard:function(){document.activeElement===this.$input&&this.$input.blur()}},{init:function(){var t=this;window.A17.settings.tags&&window.A17.settings.searchUrl?(this.$noresults=this.getChild("noresults"),this.$count=this.getChild("count"),this.$countTerm=this.getChild("term"),this.$counter=this.getChild("counter"),this.$submit=this.getChild("submit"),this.$clear=this.getChild("clear"),this.$input=this.getChild("input"),this.$form=this.getChild("form"),this.$results=this.getChild("results"),this.$organizations=this.getChild("organizations"),this.$giftareas=this.getChild("giftareas"),this.$locations=this.getChild("locations"),this.$about=this.getChild("about"),this.$articles=this.getChild("articles"),this.$gifts=this.getChild("gifts"),this.$share=this.getChild("share"),this.$organisationTemplate=this.getChild("organisation-template",document),this.$locationTemplate=this.getChild("location-template",document),this.$giftareaTemplate=this.getChild("giftarea-template",document),this.$articleTemplate=this.getChild("article-template",document),this.$aboutTemplate=this.getChild("about-template",document),this.$showmoreBtns=this.getChildren("showmore"),this.$searchdbLink=this.getChild("searchdb"),this.searchUrl=window.A17.settings.searchUrl,this.term,this.minTermLength=2,this.maxInitialResults=10,this.routes=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},window.A17.settings.routes),this.results=[],this.timer,this.fetchController=new AbortController,this.fetchSignal=this.fetchController.signal,this.$form.addEventListener("submit",this.submit,!1),this.$submit.addEventListener("submit",this.submit,!1),this.$input.addEventListener("input",this.input,!1),document.addEventListener("search:go",this.search,!1),this.$clear.addEventListener("click",this.clear,!1),this.$submit.addEventListener("click",this.submit,!1),this.$showmoreBtns.forEach((function(e){e.addEventListener("click",t.showMore,!1)})),this.$results.addEventListener("touchstart",this.closeKeyboard,{passive:!0}),this.getInitialParams()):this.$node.classList.add("hidden")},destroy:function(){var t=this;this.$form.removeEventListener("submit",this.submit),this.$submit.removeEventListener("submit",this.submit),this.$input.removeEventListener("input",this.input),document.removeEventListener("search:go",this.search),this.$clear.removeEventListener("click",this.clear),this.$submit.removeEventListener("click",this.submit),this.$showmoreBtns.forEach((function(e){e.removeEventListener("click",t.showMore)})),this.$results.removeEventListener("touchstart",this.closeKeyboard)}})},8915:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});var i=n(3667),r=n(628),s=n(2561),o=n(2483);const a=(0,i.d)("selectedFilters",{generateTag:function(t,e){var n=this.$tagTemplate.content.cloneNode(!0);if("query"!==e&&"essays"!==e){var i=this.tags[e].find((function(e){return e.id===t.id}));if(!i||0===Object.keys(i).length)return!1;n.firstElementChild.dataset.id=i.id,i.theme&&""!==i.theme&&(n.firstElementChild.dataset.theme=i.theme),"locations"===e?(n.firstElementChild.querySelector("span").innerHTML=(0,s.Z)(i),n.firstElementChild.dataset.theme="location"):n.firstElementChild.querySelector("span").innerHTML=i?i.label:""}if("query"===e&&(n.firstElementChild.querySelector("span").innerHTML='"'.concat(t.query,'"'),n.firstElementChild.dataset.theme="keyword"),"essays"===e){try{var r=new Date(Date.parse("".concat(t.id.substring(0,4),"-").concat(t.id.substring(4,6),"-").concat(t.id.substring(6,8),"T00:00:00")));n.firstElementChild.querySelector("span").innerHTML="".concat(r.toLocaleDateString())}catch(e){n.firstElementChild.querySelector("span").innerHTML='"'.concat(t.id,'"')}n.firstElementChild.dataset.id=t.id,n.firstElementChild.dataset.theme="essay"}return n.firstElementChild.dataset.type=e,n.firstElementChild},activeFiltersUpdated:function(){var t=this,e=(0,r.De)(),n=new DocumentFragment;if(this.tags=0===Object.keys(this.tags).length?(0,r.NJ)():this.tags,!(e.giftAreas||e.locations||e.query||e.essays||e.year))return this.$n
1ode.style.height="",this.$node.classList.remove("py-12"),this.$node.classList.add("h-0","opacity-0","py-0"),this.$tags.innerHTML="",this.$clearAll.setAttribute("tabindex","-1"),void this.$locationOnly.setAttribute("tabindex","-1");if(e.giftAreas&&e.giftAreas.forEach((function(e){var i=t.generateTag(e,"giftAreas");i&&n.appendChild(i)})),e.locations){if(e.locations.forEach((function(e){var i=t.generateTag(e,"locations");i&&n.appendChild(i)})),window.A17.settings.locationOnlyFiltering){var i=e.locations.map((function(t){return t.id})).some((function(t){return(0,o.Z)(window.A17.settings.tags.locations,t).length>0}));this.$locationOnly.classList.toggle("hidden",!i),i?this.$locationOnly.setAttribute("tabindex","-1"):this.$locationOnly.removeAttribute("tabindex")}}else this.$locationOnly.classList.add("hidden"),this.$locationOnly.setAttribute("tabindex","-1");e.query&&n.appendChild(this.generateTag({query:e.query},"query")),e.essays&&e.essays.forEach((function(e){var i=t.generateTag(e,"essays");i&&n.appendChild(i)})),e.year&&e.year.forEach((function(e){var i=t.generateTag(e,"year");i&&n.appendChild(i)}));var s=document.createRange();s.selectNodeContents(this.$tags),s.deleteContents(),s.insertNode(n),s.detach(),this.$node.style.height="".concat(this.$node.firstElementChild.offsetHeight,"px"),this.$node.classList.add("py-12"),this.$node.classList.remove("h-0","opacity-0","py-12"),this.$clearAll.removeAttribute("tabindex")},tagClick:function(t){if(t.target.dataset&&t.target.dataset.type){t.preventDefault();var e=t.target,n="query"!==e.dataset.type?{type:e.dataset.type,current:!1,initial:!1,id:e.dataset.id}:{type:e.dataset.type,query:""};e.style.opacity=0,document.dispatchEvent(new CustomEvent("state:filters:update",{detail:n})),document.dispatchEvent(new CustomEvent("state:filters:apply"))}}},{init:function(){this.tags={},this.$locationOnly=this.getChild("locationonly"),this.$clearAll=this.getChild("clearall"),this.$tags=this.getChild("tags"),this.$tagTemplate=this.getChild("tag-template",document),this.$tags.addEventListener("click",this.tagClick,!1),document.addEventListener("state:searching",this.activeFiltersUpdated,!1)},resized:function(){this.$node.classList.contains("opacity-0")||(this.$node.style.height="".concat(this.$node.firstElementChild.offsetHeight,"px"))},destroy:function(){this.$tags.removeEventListener("click",this.tagClick),document.removeEventListener("state:searching",this.activeFiltersUpdated)}})},5216:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var i=n(3667);const r=function(t){if("string"==typeof t){var e=document.createElement("div"),n=document.createTextNode(t.replace(/<[^>]*>?/g,""));return e.appendChild(n),encodeURIComponent(e.textContent)}return""};const s=function(t){return navigator.clipboard?new Promise((function(e,n){
1navigator.clipboard.writeText(t).then((function(){e({success:!0,msg:"success"})})).catch((function(){n({success:!1,msg:"fail"})}))})):new Promise((function(e,n){var i=document.createElement("textarea");i.style.position="fixed",i.style.top=0,i.style.left=0,i.style.width="2em",i.style.height="2em",i.style.padding=0,i.style.border="none",i.style.outline="none",i.style.boxShadow="none",i.style.background="transparent",i.textContent=t,document.body.appendChild(i);var r=document.getSelection(),s=document.createRange();s.selectNode(i),r.removeAllRanges(),r.addRange(s);try{document.execCommand("copy")?e({success:!0,msg:"success"}):n({success:!1,msg:"unknown execCommand error"})}catch(t){n({success:!1,msg:t})}document.body.removeChild(i)}))};const o=(0,i.d)("share",{pageUrl:function(){return r(this.shareUrl)},pageTitle:function(){return r(this.pageTitle)},showCopySuccessFailureMsg:function(t){var e=this;clearTimeout(this.msgTimer),"success"===t?this.$msg.textContent="Link copied to clipboard":(console.log("copy failed: ",t),this.$msg.textContent="Sorry, your browser does not support copying to the clipboard"),this.$msg.setAttribute("aria-hidden",!1),this.$msg.classList.remove("opacity-0"),this.$msg.classList.add("max-h-60"),this.msgTimer=setTimeout((function(){e.$msg.setAttribute("aria-hidden",!0),e.$msg.classList.add("opacity-0"),e.$msg.classList.remove("max-h-60"),setTimeout((function(){e.$msg.textContent=""}),200)}),2e3)},copyLink:function(){var t=this;s(this.shareUrl).then((function(e){t.showCopySuccessFailureMsg(e.msg)})).catch((function(e){t.showCopySuccessFailureMsg(e.msg)}))},openWindow:function(t,e){var n=this;e||(e={});var i=e.width||575,r=e.height||400,s=(window.outerWidth-i)/2,o="status=1,width="+i+",height="+r+",top="+(window.outerHeight-r)/2+",left="+s;this.socialWindowRef&&!this.socialWindowRef.closed&&this.socialWindowRef.close(),setTimeout((function(){n.socialWindowRef=window.open(t,"Share",o),n.socialWindowRef.opener=null}),50)},populateLinks:function(){var t=this;this.shareUrl=window.location.href,this.shareTitle=document.title,this.networks={facebook:{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(this.pageUrl(),""e=").concat(this.pageTitle()),windowOptions:{}},twitter:{href:"https://twitter.com/intent/tweet?url=".concat(this.pageUrl(),"&text=").concat(this.pageTitle()).concat(this.options.twitterHandle?"&via="+this.options.twitterHandle:""),windowOptions:{height:253}},linkedin:{href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(this.pageUrl()),windowOptions:{width:600,height:370}},email:{href:"mailto:?Subject=".concat(this.pageTitle(),"&Body=").concat(this.pageTitle(),"\n\n").concat(this.pageUrl(),"\n\n"),windowOptions:{}}},this.getChildren("network").forEach((function(e){var n=e.dataset.shareNetwork;t.networks[n]&&(e.href=t.networks[n].href)}))},handleClicks:function(t){t.preventDefault(),t.stopPropagation(),t.target.blur(),this.populateLinks();var e=t.target.dataset.shareNetwork;"copy"===e?this.copyLink():this.networks[e]&&this.openWindow(t.target.href,this.networks[e].windowOptions)}},{init:function(){this.shareUrl=this.options.url||window.location.href,this.shareTitle=document.title,this.$msg=this.getChild("msg"),this.msgTimer,this.$node.addEventListener("click",this.handleClicks,!1)},destroy:function(){this.$node.removeEventListener("click",this.handleClicks)}})},3488:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("snackbox",{updateCount:function(t){var e=this,n=parseInt(this.$count.textContent,10)||0,i=t&&t.detail&&"number"==typeof t.detail.count?t.detail.count:this.count,s=t&&t.detail&&"number"==typeof t.detail.total?t.detail.total:0,o=this.isMobile?window.A17.settings.uiKeys.listing.snackbox.countShort.singular:window.A17.settings.uiKeys.listing.snackbox.count.singular,a=this.isMobile?window.A17.settings.uiKeys.listing.snackbox.countShort.plural:window.A17.settings.uiKeys.listing.snackbox.count.plural,c=(0,r.jy)(),l=1===i?o:a;if(this.count=i,this.$node.classList.toggle("hidden",0===i),this.$node.dataset.total=s,0===i)this.$count.innerHTML="0/".concat(c),this.$word.textContent=l;else{this.$countClone=this.$count.cloneNode(),this.$countClone.style.position="absolute",this.$countClone.style.zIndex=-1,this.$countClone.style.visibility="hidden",this.$countClone.style.pointerEvents="none",this.$countClone.style.width="",this.$countClone.textContent="".concat(i,"/").concat(c),document.body.appendChild(this.$countClone);var u=null;this.$word.textContent=l,this.$count.style.width="".concat(this.$countClone.offsetWidth,"px"),window.requestAnimationFrame((function t(r){u||(u=r);var s=Math.min((r-u)/500,1),o=Math.floor(s*(i-n)+n);e.$count.innerHTML='<span class="absolute right-0 top-0">'.concat(o,"/").concat(c,"<span>"),s<1?window.requestAnimationFrame(t):e.$countClone&&(e.$countClone.remove(),e.$countClone=null)}))}}},{init:function(){this.count=0,this.$count=this.getChild("count"),this.$word=this.getChild("word"),this.isMobile=this.isBreakpoint("sm-"),""!==this.$count.textContent&&this.$node.classList.remove("hidden"),document.addEventListener("state:count",this.updateCount,!1)},resized:function(){this.isMobile=this.isBreakpoint("sm-"),this.updateCount()},destroy:function(){document.removeEventListener("state:count",this.updateCount)}})},4301:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("sortTriggerLabel",{sortingUpdated:function(){var t="";switch((0,r.W)().current){case"az":t=window.A17.settings.uiKeys.modal.sortfilter.options.az.label;break;case"za":t=window.A17.settings.uiKeys.modal.sortfilter.options.za.label;break;case"relevance":t=window.A17.settings.uiKeys.modal.sortfilter.options.relevance.label;break;default:t=window.A17.settings.uiKeys.modal.sortfilter.options.shuffled.label}this.$label.textContent="".concat(window.A17.settings.uiKeys.listing.filterbar.cta_sorting.label,": ").concat(t)}},{init:function(){var t=!1;
1if(Object.values(window.A17.settings.sortingTypes).forEach((function(e){!0===e&&(t=!0)})),!t)return this.$node.parentNode.remove(),!1;this.$label=this.$node.querySelector("[data-btn-label]"),this.$label&&document.addEventListener("state:sorting:updated",this.sortingUpdated,!1)},destroy:function(){this.$label&&document.removeEventListener("state:sorting:updated",this.sortingUpdated)}})},584:(t,e,n)=>{"use strict";function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,{default:()=>s});const s=(0,n(3667).d)("switchBtns",{moveIndicator:function(t){var e=t.offsetLeft,n=t.offsetTop,i=t.offsetWidth;this.$indicator.classList.remove("opacity-0"),this.$indicator.style.width="".concat(i,"px"),this.$indicator.style.transform="translate(".concat(e,"px, ").concat(n,"px)")},updateActiveClasses:function(t){var e,n;(this.$active=this.getChild("active"),this.$active)&&((e=this.$active.classList).remove.apply(e,i(this.activeClasses.split(" "))),this.$active.removeAttribute("data-switchbtns-active"));t&&(this.$active=t,(n=this.$active.classList).add.apply(n,i(this.activeClasses.split(" "))),this.$active.setAttribute("data-switchbtns-active",""));this.$active&&this.moveIndicator(this.$active.parentNode)},clickHandler:function(t){var e=t.currentTarget;"BUTTON"===e.tagName&&t.preventDefault(),this.updateActiveClasses(e),e.blur(),this.$node.dispatchEvent(new CustomEvent("switchbtns:update",{detail:{$btn:e||null}}))},update:function(t){var e;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.$btn&&this.updateActiveClasses(t.detail.$btn)}},{init:function(){var t=this;this.$btns=this.getChildren("btn"),this.$indicator=this.getChild("indicator"),this.activeClasses=this.options.activeclasses,this.$btns.forEach((function(e){e.addEventListener("click",t.clickHandler,!1)})),this.$node.addEventListener("switchbtns:update",this.update,!1),window.requestAnimationFrame((function(){t.$indicator.style.transition="none",t.updateActiveClasses(),setTimeout((function(){t.$indicator.style.transition=""}),200)}))},resized:function(){this.moveIndicator(this.$active)},destroy:function(){var t=this;this.$btns.forEach((function(e){e.removeEventListener("click",t.clickHandler)})),this.$node.removeEventListener("switchbtns:update",this.update)}})},2528:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>c});var i=n(3667),r=n(628),s=n(2561),o=n(8146);const a=function(){-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.match(/(iPhone|iPod|iPad)/i)&&document.querySelectorAll('link[rel="icon"]').forEach((function(t){var e=new URL(t.href),n=e.searchParams.get("v")||"0";n=parseInt(n),e.searchParams.set("v",n+1),t.href=e.toString()}))};const c=(0,i.d)("table",{calcMinHeights:function(){var t=this,e=this.$body.querySelectorAll("tr"),n=0;e.forEach((function(e,i){i<t.batchAmount&&(n+=e.offsetHeight)})),this.$node.style.setProperty("--trMinH","".concat(n,"px"))},searching:function(){this.$node.classList.add("s-loading")},addRows:function(t){var e=this,n={start:Date.now()},i=parseInt(t.dataset.rowsStart),r=parseInt(t.dataset.rowsEnd),s=this.generateRows(i,r);n.generateRows=Date.now();try{"TBODY"===t.tagName&&t.parentNode.replaceChild(s,t)}catch(t){console.warn(t)}this.$node.offsetHeight;window.requestAnimationFrame((function(){n.insertRows=Date.now(),0===i&&e.calcMinHeights(),window.A17.logTimers&&(console.log("%c\n\nTable - addRows ".concat(i," - ").concat(r,":"),"font-weight: bold; color: #fff;"),console.log("generate ".concat(e.batchAmount," rows: ").concat(n.generateRows-n.start,"ms")),console.log("insert ".concat(e.batchAmount," rows: ").concat(n.insertRows-n.generateRows,"ms")),console.log("%cadded ".concat(e.batchAmount," to table: ").concat(Date.now()-n.start,"ms"),"color: #fff;"))}))},generateRows:function(t,e){var n=this,i=new DocumentFragment,a=(0,r.O7)();(0,r.De)();return a.slice(t,e).forEach((function(t,e){var r,a,c={start:Date.now()},l=n.$rowTemplate.content.cloneNode(!0);c.cloneRow=Date.now();var u=l.querySelector("[data-row-name]"),d=(l.querySelector("[data-row-link]"),l.querySelector("[data-row-gifts]")),h=l.querySelector("[data-row-othergifts]"),f=l.querySelector("[data-row-othergifts-wrap]"),p=l.querySelector("[data-row-giftareas]"),m=l.querySelector("[data-row-location]"),g=l.querySelector("[data-row-mission]");if(c.findElements=Date.now(),l.firstElementChild.dataset.intersecting="true",l.firstElementChild.dataset.scores="".concat(t.giftAreasScore,":").concat(t.locationsScore,":").concat(t.score),u&&t.link){var v=n.$rowLinkTemplate.content.cloneNode(!0);v.firstElementChild.href="https://".concat(t.link),u.parentNode.parentNode.replaceChild(v.firstElementChild,u.parentNode),u=l.querySelector("[data-row-name]")}u&&t.name&&(u.innerHTML=t.name.trim()),c.fillName=Date.now();var y=function(t){return'<span class="flex flex-row flex-nowrap"><span>'.concat(t.year,'</span><span aria-hidden="true"> • </span><span>').concat(t.amount&&0!==t.amount&&"0"!==t.amount?(t.amount.toString().indexOf("$")>
1-1?"":"$")+t.amount.toLocaleString():window.A17.settings.uiKeys.listing.table.undisclosedGiftAmount,"</span></span>")};(d&&t.gifts&&(d.innerHTML=t.gifts.map(y).join("")),c.fillGifts=Date.now(),f&&h&&t.otherGifts&&t.otherGifts.length)&&((t.gifts?t.gifts.length:0)+t.otherGifts.length>1&&(h.innerHTML=t.otherGifts.map(y).join(""),f.classList.remove("hidden")));if(p&&null!==(r=t.giftAreas)&&void 0!==r&&r.length){var b=new DocumentFragment;t.giftAreas.forEach((function(t){try{var e=n.$tagTemplate.content.cloneNode(!0);e.firstElementChild.dataset.id=t.id,e.firstElementChild.dataset.type="giftAreas",e.firstElementChild.dataset.active=t.active,e.firstElementChild.dataset.typeActive=t.typeActive,t.theme?e.firstElementChild.dataset.theme=t.theme:e.firstElementChild.removeAttribute("data-theme"),e.firstElementChild.querySelector("span").innerHTML=t.label,b.appendChild(e.firstElementChild)}catch(t){}})),p.append(b)}if(c.fillGiftAreas=Date.now(),m&&null!==(a=t.locations)&&void 0!==a&&a.length){var w=new DocumentFragment;(0,o.Z)(t.locations).forEach((function(t){try{var e=n.$tagTemplate.content.cloneNode(!0);e.firstElementChild.dataset.id=t.id,e.firstElementChild.dataset.type="locations",e.firstElementChild.dataset.active=t.active,e.firstElementChild.dataset.typeActive=t.typeActive,e.firstElementChild.dataset.theme="location",e.firstElementChild.querySelector("span").innerHTML=(0,s.Z)(t),w.appendChild(e.firstElementChild)}catch(t){}})),m.append(w)}if(c.fillLocations=Date.now(),g&&t.mission&&(g.innerHTML=t.mission.trim()),c.fillMission=Date.now(),window.A17.settings.displayScores&&d){var E=document.createElement("span");E.className="block mt-12 f-ui-6",t.keywordScore?E.innerHTML="Keyword score: ".concat(t.keywordScore,"<br><strong>Total score: ").concat(t.score,"</strong>"):E.innerHTML="Gift area score: ".concat(t.giftAreasScore,"<br>Location score: ").concat(t.locationsScore,"<br><strong>Total score: ").concat(t.score,"</strong>"),d.parentNode.parentNode.append(E)}n.io.observe(l.firstElementChild),c.observe=Date.now(),i.appendChild(l.firstElementChild),c.append=Date.now(),window.A17.logTimers&&(console.log("%c\n\nTable - generateRows (item):","font-weight: bold; color: #fff;"),console.log("clone row: ".concat(c.cloneRow-c.start,"ms")),console.log("find elements: ".concat(c.findElements-c.cloneRow,"ms")),console.log("fill - name: ".concat(c.fillName-c.findElements,"ms")),console.log("fill - gifts: ".concat(c.fillGifts-c.fillName,"ms")),console.log("fill - gift areas: ".concat(c.fillGiftAreas-c.fillGifts,"ms")),console.log("fill - locations: ".concat(c.fillLocations-c.fillGiftAreas,"ms")),console.log("fill - mission: ".concat(c.fillMission-c.fillLocations,"ms")),console.log("observe row: ".concat(c.observe-c.fillMission,"ms")),console.log("append row to fragment: ".concat(c.append-c.observe,"ms")),console.log("%ctotal: ".concat(c.start-c.append,"ms"),"color: #fff;"))})),i},displayResults:function(t){var e=this;if(window.pageYOffset>this.$tableFilters.offsetTop&&window.scroll({top:this.$tableFilters.offsetTop,left:0,behavior:"auto"}),this.$groupTemplate&&this.$rowTemplate&&this.$tagTemplate){var n=(0,r.O7)();if(0===n.length){var i=this.$noresultsTemplate.content.cloneNode(!0),s=document.createRange();return s.selectNodeContents(this.$body),s.deleteContents(),s.insertNode(i),s.detach(),void this.$node.classList.remove("s-loading")}this.$node.classList.add("s-loading","pointer-events-none");for(var o=new DocumentFragment,a={start:Date.now()},c=Math.ceil(n.length/this.batchAmount),l=0;l<c;l++){var u=this.$groupTemplate.content.cloneNode(!0);u.firstElementChild.dataset.rowsStart=l*this.batchAmount,u.firstElementChild.dataset.rowsEnd=(l+1)*this.batchAmount,u.firstElementChild.dataset.rowsAdded=!1,o.appendChild(u)}a.cloneContainers=Date.now(),setTimeout((function(){var t=document.createRange();
1t.selectNodeContents(e.$body),t.deleteContents(),t.insertNode(o),t.detach(),a.addContainers=Date.now();e.$node.offsetHeight;window.requestAnimationFrame((function(){e.$body.children[0].isIntersecting=!0,e.addRows(e.$body.children[0]),a.addFirstBatch=Date.now(),e.$node.classList.remove("s-loading","pointer-events-none"),a.loadingClassRemoved=Date.now(),window.A17.logTimers&&(console.log("%c\n\nTable - displayResults:","font-weight: bold; color: #fff;"),console.log("clone containers: ".concat(a.cloneContainers-a.start,"ms")),console.log("add containers: ".concat(a.addContainers-a.cloneContainers-150,"ms")),console.log("add first batch: ".concat(a.addFirstBatch-a.addContainers,"ms")),console.log("%cloading class removed: ".concat(a.loadingClassRemoved-a.start-150,"ms\n\n"),"color: #fff;")),e.$body.children.length>1&&setTimeout((function(){Array.from(e.$body.children).forEach((function(t,n){n>0&&t.dataset.rowsAdded&&e.io.observe(t)}))}),1e3)}))}),150)}},setupIntersectionObserver:function(){this.io&&this.io.disconnect(),this.io=new IntersectionObserver(this.intersection,{root:null,rootMargin:"300% 0px",threshold:0})},intersection:function(t,e){var n=this;t.forEach((function(t){var e=t.target;e.dataset.intersecting=t.isIntersecting,t.isIntersecting&&"false"===e.dataset.rowsAdded&&n.addRows(e)}))},click:function(t){var e;if("A"!==t.target.tagName){if(t.preventDefault(),t.stopPropagation(),t.target.dataset&&t.target.dataset.component&&"tag"===t.target.dataset.component&&t.target.dataset.id&&t.target.dataset.type&&t.target.dataset.active){var n="true"!==t.target.dataset.active;document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:t.target.dataset.type,current:n,initial:n,id:t.target.dataset.id}})),document.dispatchEvent(new CustomEvent("state:filters:apply"))}}else""===(null===(e=t.target.dataset)||void 0===e?void 0:e.rowLink)&&(t.preventDefault(),t.stopPropagation(),document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"orglinkclick:database",data:t.target.textContent.trim()}})),window.open(t.target.href,"_blank").focus(),a())}},{init:function(){this.batchAmount=this.isBreakpoint("md+")?24:12,this.$body=this.getChild("body"),this.$groupTemplate=this.getChild("group-template",document),this.$rowTemplate=this.getChild("row-template",document),this.$rowLinkTemplate=this.getChild("row-link-template",document),this.$tagTemplate=this.getChild("tag-template",document),this.$noresultsTemplate=this.getChild("noresults-template",document),this.$tableFilters=this.getChild("filters",document),this.setupIntersectionObserver(),document.addEventListener("state:searching",this.searching,!1),document.addEventListener("state:results",this.displayResults,!1),this.$node.addEventListener("click",this.click,!1)},resized:function(){this.batchAmount=this.isBreakpoint("md+")?32:12,this.$body.querySelector("tr")&&this.calcMinHeights()},destroy:function(){document.removeEventListener("state:searching",this.searching),document.removeEventListener("state:results",this.displayResults),this.$node.removeEventListener("click",this.click),this.io&&this.io.disconnect()}})},573:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=n(3667),r=n(628);const s=(0,i.d)("toggleSorting",{clickHandler:function(t){t.target.dataset.togglesortingType&&(t.preventDefault(),t.stopPropagation(),document.dispatchEvent(new CustomEvent("state:sorting:toggle",{detail:{type:t.target.dataset.togglesortingType}})))},sortingStateUpdate:function(){var t=(0,r.W)(),e=(0,r.De)(),n=void 0!==t.selected?t.selected:t.current,i=this.$node.querySelector('[data-togglesorting-type="'.concat(n,'"]'));i&&this.$node.dispatchEvent(new CustomEvent("switchbtns:update",{detail:{$btn:i}}));var s=this.$node.querySelector('[data-togglesorting-type="relevance"]');s&&(s.disabled=0===Object.keys(e).length)}},{init:function(){var t=!1;Object.values(window.A17.settings.sortingTypes).forEach((function(e){!0===e&&(t=!0)})),t&&(window.A17.settings.sortingTypes.relevance||this.$node.querySelector('[data-togglesorting-type="relevance"]').parentNode.remove(),window.A17.settings.sortingTypes.az||this.$node.querySelector('[data-togglesorting-type="az"]').parentNode.remove(),window.A17.settings.sortingTypes.za||this.$node.querySelector('[data-togglesorting-type="za"]').parentNode.remove(),this.$node.addEventListener("click",this.clickHandler,!1),document.addEventListener("state:sorting:updated",this.sortingStateUpdate,!1))}
1,destroy:function(){this.$node.removeEventListener("click",this.clickHandler),document.removeEventListener("state:sorting:updated",this.sortingStateUpdate)}})},8863:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("triggerModal",{clickHandler:function(t){if(t.preventDefault(),this.options.id){"true"===this.options.stoppropagation&&t.stopPropagation(),"true"===this.options.closeothers&&document.dispatchEvent(new CustomEvent("modal:close:all"));var e=this.$node;if(this.options.trigger)document.querySelector(this.options.trigger)&&(e=document.querySelector(this.options.trigger));var n=document.querySelector('[data-modal-id="'.concat(this.options.id,'"]'));n&&n.dispatchEvent(new CustomEvent("modal:open",{detail:{$trigger:e}}))}}},{init:function(){this.$node.addEventListener("click",this.clickHandler,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler)}})},5964:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("triggerShare",{clickHandler:function(t){t.preventDefault();var e=document.title,n=document.querySelector("link[rel=canonical]")?document.querySelector("link[rel=canonical]").href:document.location.href;if(navigator.share)navigator.share({title:e,url:n}).then((function(){console.log("Thanks for sharing!")})).catch(console.error);else{var i=document.querySelector('[data-modal-id="share"]');if(!i)return;i.dispatchEvent(new CustomEvent("modal:open",{detail:{$trigger:this.$node,title:e,align:this.options.align?this.options.align:null}}))}}},{init:function(){this.$node.addEventListener("click",this.clickHandler,!1)},destroy:function(){this.$node.removeEventListener("click",this.clickHandler)}})},2655:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i=(0,n(3667).d)("unclamp",{clickHandler:function(t){this.$text.classList.remove("line-clamp-2"),this.$node.remove()},checkState:function(){this.active&&this.$text.scrollHeight>this.$text.clientHeight?this.$node.classList.remove("hidden"):this.$node.classList.add("hidden")}},{init:function(){this.active=!1,this.$text=this.$node.previousElementSibling,this.$node.addEventListener("click",this.clickHandler,!1)},enabled:function(){this.active=!0,this.checkState()},resized:function(){this.checkState()},disabled:function(){this.active=!1,this.checkState()},destroy:function(){this.$node.removeEventListener("click",this.clickHandler)}})},7463:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(9460);const r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(t=(t=(t=(t=(t=t.toString()).replace(/[^A-Za-zÃ-ÃÃ-öø-ÿ\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u024F\u1E00-\u1EFF\u0370-\u03ff\u1f00-\u1fff\u2018\u2019\u201A\u201B\u2032\u2035\u2013\u2035\0-9 <>\(\)!?@;:,'Ê»'\-\+|,$&\.\/]/gi," ")).replace(/[\',\.\-]$/gi,"")).replace(/^[\',\.\-]/gi,"")).trim(),e&&(t=(0,i.Z)(t)),t):""}},3314:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t,e){return t.forEach((function(t){Object.keys(e).forEach((function(n){t[n]&&(t[n]=t[n].map((function(t){var i=e[n].find((function(e){return e.id===t}));if(i&&Object.keys(i).length)return i})).filter((function(t){return void 0!==t})))}))})),t}},6927:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){var e=0,n=0;return t.forEach((function(t){(t=t.item||t).gifts&&t.gifts.length>0&&t.gifts.forEach((function(t){e+=1,n+=parseInt(t.amount,10)||0}))})),{gifts:e,total:n}}},2735:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:()=>o});const o=function t(e,n,i,s,o){var a=r({removeSub:!1,includeParent:!1},i),c=void 0;return o=o||0,e.every((function(e){if(e.id===n)(c=r({},e)).sub&&a.removeSub&&delete c.sub,a.theme&&!e.theme&&(c.theme=a.theme),a.includeParent&&s&&(c.parent=s),a.includeDepth&&o&&(c.depth=o);else if(e.sub&&e.sub.length>0){var i=r({},a);e.theme&&(i.theme=e.theme);var l={id:e.id,label:e.label};e.type&&(l.type=e.type),s&&(l.parent=s),c=t(e.sub,n,i,l,o+1)}return!c})),c}},5952:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});const i=function(t,e){var n=Object.keys(e);return t.filter((function(t){return n.every((function(n){return"function"!=typeof e[n]||(t=t.item?t.item:t,e[n](t[n],t))}))}))};function r(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var o={},a=function(t,e,n){o[t]=o[t]||{},e.forEach((function(e){(n[t].chosen||n[t].active).find((function(t){return t===e.id}))&&(o[t][e.id]=o[t][e.id]+1||1)}))},c=function(t,e){var n=function(t){var e=window.A17&&window.A17.settings&&window.A17.settings.essays||[];return r(new Set((t.essays.active||[]).map((function(t){return e.filter((function(e){return e.id.toString()===t.toString()}))})).reduce((function(t,e){return t.concat(e)}),[]).map((function(t){return(t.identifier||"").toString().trim()})).filter((function(t){return""!==t}))))}(e);0!==n.length&&t.forEach((function(t){var e=t.item||t;if(e.gifts&&0!==e.gifts.length){var i=[],r=[];
1e.gifts.forEach((function(t){(n.indexOf((t.essay_identifier||"").toString().trim())>-1?i:r).push(t)})),0!==i.length&&(e.gifts=i,e.otherGifts=r)}}))};const l=function(t,e){o={};var n=i(t,{giftAreas:function(t,n){if(0===e.giftAreas.active.length)return!0;if(e.giftAreas.active.length>0){var i=t.filter((function(t){return e.giftAreas.active.indexOf(t.id)>-1}));if(i.length>0)return a("giftAreas",i,e),!0}},year:function(t,n){if(0===e.year.active.length)return!0;var i=n.gifts||[],s=e.year.active;if(e.essays.active.length>0){var o=e.essays.active.map((function(t){return t.toString().slice(0,4)}));if(0===(s=s.filter((function(t){return o.indexOf(t)>-1}))).length)return!1}var c=r(new Set(i.map((function(t){return t.year&&t.year.toString()})).filter((function(t){return s.indexOf(t)>-1}))));return c.length>0?(a("year",c.map((function(t){return{id:t}})),e),!0):void 0},locations:function(t,n){if(0===e.locations.active.length)return!0;if(e.locations.active.length>0){var i=t.filter((function(t){return e.locations.active.indexOf(t.id)>-1}));if(i.length>0)return a("locations",i,e),!0}},gifts:function(t,n){var i=e.query.term,r=e.query.termIsYear,s=e.query.termIsAmount;if(i&&r){var o=t.find((function(t){return t.year.toString()===i.toString()}));return!!o&&(o.year="<mark>".concat(o.year,"</mark>"),!0)}return!i||!s||t.filter((function(t){return 0!==t.amount&&((i.indexOf("<")>-1&&parseInt(t.amount)<=parseInt(i.replace(/</gi,""))||i.indexOf(">")>-1&&parseInt(t.amount)>=parseInt(i.replace(/>/gi,""))||parseInt(t.amount)===parseInt(i))&&(t.amount="<mark>$".concat(t.amount.toLocaleString(),"</mark>"),!0))})).length>0},essays:function(t,n){if(0===e.essays.active.length)return!0;if(t&&e.essays.active.length>0){var i=t.filter((function(t){return null!==t})).filter((function(t){return e.essays.active.indexOf(t.toString())>-1}));if(i.length>0)return a("essays",i,e),!0}}});return function(t,e){0!==e.year.active.length&&t.forEach((function(t){var n=t.item||t;if(n.gifts&&0!==n.gifts.length){var i=[],r=[];n.gifts.forEach((function(t){var n=t.year&&t.year.toString();(e.year.active.indexOf(n)>-1?i:r).push(t)})),0!==i.length&&(n.gifts=i,n.otherGifts=r)}}))}(n,e),c(n,e),{results:n,counts:o}}},6821:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i=n(628),r=n(7353),s=n(2483);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const d=function(){document.dispatchEvent(new CustomEvent("modal:close:all"));for(var t=(0,i.W)(),e=(0,i.x9)(),n=0,o=Object.entries(i.L$);n<o.length;n++){var c=l(o[n],2),u=c[0],d=c[1];if("giftAreas"===u||"locations"===u||"year"===u){var h=d.map((function(t){return t.current?a(a({},t),{},{initial:t.current}):t}));i.L$[u]=h}}if(JSON.stringify(i.b8)!==JSON.stringify(i.L$)||t.current!==t.selected){if(document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"filtersApply",data:{old:i.b8,new:i.L$,tags:(0,i.NJ)()}}})),(0,i.D5)(JSON.parse(JSON.stringify(i.L$))),(0,i.l7)({}),t.selected&&(t.current=t.selected,t.userMadeSelection=t.selected,"relevance"===t.selected?delete t.userMadeSelection:t.userMadeSelection=t.selected,t.userMadeSelection&&document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"sort:".concat(t.userMadeSelection),data:t.userMadeSelection}})),delete t.selected),window.A17.settings.sortingTypes.relevance){var f=Object.keys(i.b8).length;t.userMadeSelection?"relevance"===t.userMadeSelection&&0===f&&(t.current="shuffle"):"relevance"===t.current&&0===f?t.current="shuffle":"shuffle"===t.current&&f>0&&(1===f&&i.b8.essays?t.current="shuffle":t.current="relevance")}if(i.b8.locations){if((0,i.o_)()){var p=i.b8.locations.map((function(t){return t.id})).some((function(t){return(0,s.Z)(window.A17.settings.tags.locations,t).length>0}));(0,i.xK)(p)}}else(0,i.xK)(!1);(0,i.Lf)(null,t),e&&(0,r.Z)()}}},2561:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){for(var e=[t.label],n=t.parent;n;){if(t.type&&n.type){if("global_region"!==n.type&&"region"!==n.type){var i=n.label;i="us"===n.id?"US":i;var r=i="gb"===n.id?"UK":i;try{r=n.id.split("_")[2].toUpperCase()}catch(t){}i="state"===n.type&&0===n.id.indexOf("us_")?r:i,i="state"===n.type&&0===n.id.indexOf("us_")&&t.is_native_reservation?null:i,(i="city"===t.type&&"country"===n.type&&"us"===n.id?null:i)&&e.push(i)}}else e.push(n.label);n=n.parent}return e.join(", ")}},2483:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(2735),r=function t(e){var n=[];return e.forEach((function(e){n.push(e.id),e.sub&&e.sub.length>0&&(n=n.concat(t(e.sub)))})),n};const s=function(t,e){var n=(0,i.Z)(t,e);return n&&n.sub?r(n.sub):[]}},4630:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(628),r=n(2483);function s(t){return s="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},s(t)}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const c=function(t){var e={giftAreas:{chosen:[],active:[]},locations:{chosen:[],active:[]},essays:{active:[]},year:{chosen:[],active:[]},query:{term:null,termIsYear:!1,termIsAmount:!1}};if(t.giftAreas&&t.giftAreas.length>0&&(t.giftAreas.forEach((function(t){var n=[t.id],i=(0,r.Z)(window.A17.settings.tags.giftAreas,t.id);e.giftAreas.active=e.giftAreas.active.concat(n,i),e.giftAreas.chosen.push(t.id)})),e.giftAreas.active=o(new Set(e.giftAreas.active)),e.giftAreas.chosen=o(new Set(e.giftAreas.chosen))),t.locations&&t.locations.length>0&&(t.locations.forEach((function(t){if((0,i.o_)())e.locations.active.push(t.id);else{var n=[t.id],s=(0,r.Z)(window.A17.settings.tags.locations,t.id);e.locations.active=e.locations.active.concat(n,s)}e.locations.chosen.push(t.id)})),e.locations.active=o(new Set(e.locations.active)),e.locations.chosen=o(new Set(e.locations.chosen))),t.essays&&t.essays.length>0&&(e.essays.active=t.essays.map((function(t){return t.id}))),t.year&&t.year.length>0&&(t.year.forEach((function(t){e.year.active.push(t.id),e.year.chosen.push(t.id)})),e.year.active=o(new Set(e.year.active)),e.year.chosen=o(new Set(e.year.chosen))),t.query&&t.query.length>0){e.query.term=t.query,e.query.termIsYear=!isNaN(s(parseInt(e.query.term)))&&4===e.query.term.toString().length;var n={number:parseInt(e.query.term.replace(/<|>|\$/gi,"")),string:e.query.term.replace(/\$/gi,"")};e.query.termIsAmount=!isNaN(n.number)&&n.number>9999&&n.string.replace(/[^<^>]/g,"").length<2,e.query.termIsAmount&&(e.query.term=n.string)}return e}},628:(t,e,n)=>{"use strict";n.d(e,{D5:()=>L,De:()=>A,L$:()=>l,Lf:()=>x,NH:()=>k,NJ:()=>v,O7:()=>$,VD:()=>f,W:()=>j,Wz:()=>p,Xq:()=>b,b8:()=>c,cN:()=>
1h,iM:()=>E,jy:()=>w,l7:()=>S,mG:()=>g,mI:()=>u,oN:()=>O,o_:()=>D,q_:()=>y,wE:()=>C,wr:()=>d,x9:()=>m,xK:()=>T,zO:()=>r});var i=n(6927),r=!1,s={},o=[],a=[],c={},l={},u={},d={current:null!==sessionStorage.getItem("sorting")?sessionStorage.getItem("sorting"):"shuffle"},h=!1,f=window.location.hash,p=function(t){r=t},m=function(){return r},g=function(t){s=t},v=function(){return s},y=function(t){o=t},b=function(){return o},w=function(){return(0,i.Z)(o).gifts},E=function(t){a=t},$=function(){return a},L=function(t){c=t,document.dispatchEvent(new CustomEvent("state:filters:active:updated"))},A=function(){return c},C=function(t){l=t,document.dispatchEvent(new CustomEvent("state:filters:selected:updated"))},k=function(){return l},S=function(t){u=t,document.dispatchEvent(new CustomEvent("state:filters:changed:updated"))},O=function(t){f=t},x=function(t,e){t?d[t]=e:d=e,document.dispatchEvent(new CustomEvent("state:sorting:updated"))},j=function(){return d},T=function(t){h=t,document.dispatchEvent(new CustomEvent("state:locationOnly:updated"))},D=function(){return h}},7353:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var i=n(628),r=n(4630),s=n(6874),o=n(5952),a=n(3314);const c=function(){var t=new URL(document.location).searchParams;return i.b8.giftAreas&&i.b8.giftAreas.length>0?t.set("focus",i.b8.giftAreas.map((function(t){return t.id})).join(",")):t.delete("focus"),i.b8.locations&&i.b8.locations.length>0?t.set("locations",i.b8.locations.map((function(t){return t.id})).join(",")):t.delete("locations"),"az"===i.wr.current||"za"===i.wr.current?t.set("sorting",i.wr.current):t.delete("sorting"),i.cN?t.set("locationOnly",i.cN):t.delete("locationOnly"),i.b8.query&&i.b8.query.length>0?t.set("q",i.b8.query):t.delete("q"),i.b8.essays&&i.b8.essays.length>0?t.set("essay",i.b8.essays.map((function(t){return t.id})).join(",")):t.delete("essay"),i.b8.year&&i.b8.year.length>0?t.set("years",i.b8.year.map((function(t){return t.id})).join(",")):t.delete("years"),""===(t=t.toString().replace(/%2c/gi,",").replace(/%24/gi,"$"))?"":"?"+t};var l=n(7595);const u=function(t,e){var n=["giftAreas","locations"];return t.forEach((function(t){t.score&&(t.item.keywordScore=t.score>1?t.score:10*(1-t.score));var i=t.item?t.item:t;n.forEach((function(t){if(i[t]){var n=0;i[t]=i[t].filter((function(t){return void 0!==t})).map((function(i){return e[t].chosen.indexOf(i.id)>-1?(i.active=!0,n++):i.active=!1,i.typeActive=e[t].chosen.length>0,i})).sort((function(t,e){return t.active&&!e.active?-1:!t.active&&e.active?1:0})),i["".concat(t,"Score")]=function(t,e,n){if(0===t)return 0;var i=t;return i=t===e?i+1:i,t===e&&t===n?i+1:i}(n,e[t].chosen.length,i[t].length)}})),i.score=i.keywordScore?i.keywordScore:i.giftAreasScore+i.locationsScore})),t};var d=n(3140),h=n(6927);const f=function(){if((0,i.x9)()){document.dispatchEvent(new CustomEvent("state:searching"));var t={start:Date.now()},e=!1,n={},f=(0,i.NJ)(),p=(0,i.Xq)(),m=JSON.parse(JSON.stringify(p));t.copyGiftsArr=Date.now();var g=(0,i.De)(),v=(0,r.Z)(g);t.processFilters=Date.now(),m=(0,a.Z)(m,f),t.addTagData=Date.now();var y=(0,o.Z)(m,v);if(m=y.results,n=y.counts,t.filterGifts=Date.now(),v.query.term&&!v.query.termIsYear&&!v.query.termIsAmount){e=!0;var b=(0,s.Z)(v.query.term,JSON.parse(JSON.stringify(p)),"database");n.query={},n.query[v.query.term]=b.length,m=(0,s.Z)(v.query.term,m,"database"),t.textSearch=Date.now(),m=m.map((function(t){return t.item?(0,d.Z)(t,v.query.term):t})),t.parseResultMatches=Date.now()}m=u(m,v),t.calculateResultScores=Date.now(),m=(0,l.Z)(m),t.sortResults=Date.now(),(0,i.iM)(m),t.setGlobal=Date.now();var w=c();w!=window.location.search&&window.history.replaceState(g,"",""!==w?w:window.A17.settings.routes.listing),t.buildUrlParams=Date.now();var E=(0,h.Z)(m);document.dispatchEvent(new CustomEvent("state:count",{detail:{count:E.gifts,total:E.total}})),t.updateCounter=Date.now(),document.dispatchEvent(new CustomEvent("state:results")),t.updateDisplay=Date.now(),0===m.length&&document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"database:noResults",data:{counts:n,tags:f}}})),t.total=Date.now(),window.A17.logTimers&&(console.log("%c\n\nSearch timings:","font-weight: bold; color: #fff;"),console.log("copy gifts arr: ".concat(t.copyGiftsArr-t.start,"ms")),console.log("process filters: ".concat(t.process
1Filters-t.copyGiftsArr,"ms")),console.log("add tag data: ".concat(t.addTagData-t.processFilters,"ms")),console.log("filter: ".concat(t.filterGifts-t.addTagData,"ms")),e?(console.log("text search: ".concat(t.textSearch-t.filterGifts,"ms")),console.log("parse result matches: ".concat(t.parseResultMatches-t.textSearch,"ms")),console.log("calculate scores: ".concat(t.calculateResultScores-t.parseResultMatches,"ms"))):console.log("calculate scores: ".concat(t.calculateResultScores-t.filterGifts,"ms")),console.log("sortResults: ".concat(t.sortResults-t.calculateResultScores,"ms")),console.log("set global: ".concat(t.setGlobal-t.sortResults,"ms")),console.log("build url params: ".concat(t.buildUrlParams-t.setGlobal,"ms")),console.log("update counter: ".concat(t.updateCounter-t.buildUrlParams,"ms")),console.log("update display: ".concat(t.updateDisplay-t.updateCounter,"ms")),console.log("%cTOTAL: ".concat(t.total-t.start,"ms\n\n"),"color: #fff;"))}}},8146:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=function(t){var e;return null!==(e={city:1,state:2,region:3,country:4,global_region:5}[t])&&void 0!==e?e:6},r=function(t){return"number"==typeof t&&!isNaN(t)};const s=function(t){return t.filter((function(t,e,n){return e===n.findIndex((function(e){return e.label===t.label&&(null==e?void 0:e.is_native_reservation)===(null==t?void 0:t.is_native_reservation)}))})).sort((function(t,e){return function(t,e){var n=r(t),i=r(e);return n||i?n?i?t-e:-1:1:0}(i(t.type),i(e.type))||t.label.localeCompare(e.label)}))}},7595:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(628);const r=function(t){for(var e,n=t.length;0!=n;){e=Math.floor(Math.random()*n),n--;var i=[t[e],t[n]];t[n]=i[0],t[e]=i[1]}return t};const s=function(t){var e=(0,i.W)();return t="az"===e.current?t.sort((function(t,e){return t=t.item?t.item:t,e=e.item?e.item:e,t.name.localeCompare(e.name)})):"za"===e.current?t.sort((function(t,e){return t=t.item?t.item:t,(e=e.item?e.item:e).name.localeCompare(t.name)})):"relevance"===e.current?(t=r(t)).sort((function(t,e){return t=t.item?t.item:t,e=e.item?e.item:e,t.score=t.score||0,e.score=e.score||0,e.score-t.score})):r(t)}},6874:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var i=n(9386),r=n(7463),s=n(1523);const o=function(t,e,n){var o={includeScore:!0,keys:[{name:"name",weight:1},{name:"nameNormalized",weight:1},{name:"mission",weight:.5},{name:"missionNormalized",weight:.5},{name:"giftAreas.label",weight:.1},{name:"locations.label",weight:.1},{name:"gifts.year",weight:1}],threshold:.1,includeMatches:!0,useExtendedSearch:!1,findAllMatches:!0,shouldSort:!0,maxMatchCharLength:t.length+2,minMatchCharLength:t.length>5?t.length-2:t.length,ignoreLocation:!0,ignoreFieldNorm:!0,ignoreDiacritics:!0};"suggestions"===n&&(o.threshold=.2,o.useExtendedSearch=!0,o.ignoreLocation=!0,t=t.split(" ").reduce((function(t,e){return t+" '".concat(e)}),""));var a=new i.Z(e,o),c=a.search((0,r.Z)(t,!0));return"suggestions"===n&&(c=a.search((0,r.Z)(t,!1))),Object.keys(s.P).forEach((function(e){var n=new RegExp("\\b".concat(e,"\\b"),"ig");if(t.match(n)&&t.match(n).length>0){var i=t.replace(n,s.P[e]);a.search((0,r.Z)(i,!0)).forEach((function(t){var e=c.find((function(e){return e.item.index===t.item.index}));e?e.matches=e.matches.concat(t.matches):c.push(t)}))}})),c}},1523:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{P:()=>a,Y:()=>o});var o={us:"United States",usa:"United States",america:"United States",uk:"United Kingdom",gb:"United Kingdom",britain:"United Kingdom","great britain":"United Kingdom",england:"United Kingdom",ny:"New York",nyc:"New York City",la:"Los Angeles"},a=r(r({},o),{},s({"&":"and",and:"&",hawaii:"hawai'i","hawai'i":"hawaii",Ê»:"'","'":"Ê»","â":"'"},"'","â"))},2150:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){return t?t.replace(/\/$/,""):window.location.pathname.replace(/\/$/,"")}},9460:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i=function(t){return t&&"string"==typeof t?(t=(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/[^a-zA-Z0-9'Ê»â& ]/gi," ")).toLowerCase():t}},3140:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var i=n(1523),r=n(7463);function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var a=function(t){var e={amp:"&",apos:"'","#x27":"'","#x2F":"/","#39":"'","#47":"/",lt:"<",gt:">",nbsp:" ",quot:'"'};return t.replace(/&([^;]+);/gm,(function(t,n){return e[n]||t}))},c=function(t,e){return e.indexOf("<mark>")>-1||t.forEach((function(t){var n=new RegExp("(".concat(t,")"),"igm");e=e.replace(n,"<mark>$1</mark>")})),e},l=function(t,e,n){return e.indexOf("<mark>")>-1||t.forEach((function(t){var i=n.toLowerCase().indexOf(t.toLowerCase());if(i>-1){var r=e.substr(i,t.length),s=new RegExp("(".concat(r.replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\|/g,"\\|"),")"),"igm");e=e.replace(s,"<mark>$1</mark>")}})),e};const u=function(t,e){var n=s(t.matches);if(t=JSON.parse(JSON.stringify(t.item)),n){var o=function(t){var e=[t.toLowerCase()],n=(0,r.Z)(t.toLowerCase(),!0);return t.toLowerCase()!==n&&e.push(n),Object.keys(i.P).forEach((function(n){var s=new RegExp("\\b".concat(n,"\\b"),"ig");
1if(t.match(s)&&t.match(s).length>0||(0,r.Z)(t,!0).match(s)&&(0,r.Z)(t,!0).match(s).length>0){var o=t.replace(s,i.P[n]).toLowerCase(),a=(0,r.Z)(o,!0);e.push(o),o!==a&&e.push(a)}})),e}(e);n.forEach((function(i){i.indices;var r=a(i.value);if("body"===i.key){var u=new RegExp("(\\W|^)(".concat(e,")(\\W|$)"),"ig"),d=s(r.matchAll(u)),h={start:0,end:0,budge:0};(d=d.length>0?d[0].index:r.indexOf(e))>-1?d+300>r.length?(h.start=r.length-600,h.end=r.length,h.budge=3,r="...".concat(r.substring(r.length-600,r.length))):d>300?(h.start=d-300,h.end=d+300,h.budge=3,r="...".concat(r.substring(d-300,d+300),"...")):r.length>600?(h.start=0,h.end=600,r="".concat(r.substring(0,600).trim(),"...")):(h.start=0,h.end=600,r="".concat(r.substring(0,600).trim())):(h.start=0,h.end=600,r="".concat(r.substring(0,600).trim(),"...")),r=c(o,r),t.body=r}else"nameNormalized"===i.key?r=l(o,a(t.name),t.nameNormalized):"missionNormalized"===i.key?r=l(o,a(t.mission),t.missionNormalized):(t.body&&t.body.length>600&&(t.body="".concat(t.body.substr(0,600).trim(),"...")),r=c(o,r));try{"number"==typeof i.refIndex?"gifts.year"===i.key?t.gifts[i.refIndex].year=r:"giftAreas.label"===i.key?t.giftAreas[i.refIndex].label=r:"locations.label"===i.key?t.locations[i.refIndex].label=r:"body"===i.key||(t[i.key][i.refIndex]=r):"nameNormalized"===i.key?t.name=r:"missionNormalized"===i.key?t.mission=r:t[i.key]=r}catch(e){console.log(e,t,n)}}))}return t}},3757:(t,e,n)=>{var i={"./accordion.js":9838,"./applyfilters.js":8124,"./barbaLoadProgress.js":3245,"./checkbox.js":5484,"./clearfilters.js":4519,"./downloadcsv.js":1032,"./filterCount.js":7698,"./geoList.js":9120,"./globalSearch.js":5123,"./headerLogoReveal.js":2948,"./index.js":6789,"./keywordSearch.js":3748,"./lazyloadimg.js":7031,"./locationSearch.js":7896,"./locationsShowMore.js":5619,"./markTerm.js":2635,"./menu.js":9294,"./modal.js":6755,"./organizationListing.js":8470,"./organizationsLoading.js":6814,"./reshuffle.js":5259,"./search.js":2126,"./selectedFilters.js":8915,"./share.js":5216,"./snackbox.js":3488,"./sortTriggerLabel.js":4301,"./switchBtns.js":584,"./table.js":2528,"./toggleSorting.js":573,"./triggerModal.js":8863,"./triggerShare.js":5964,"./unclamp.js":2655};function r(t){return Promise.resolve().then((()=>
1{if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n(i[t])}))}r.keys=()=>Object.keys(i),r.id=3757,t.exports=r},3667:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{d:()=>f,f:()=>I});var c=function(){return getComputedStyle(document.documentElement).getPropertyValue("--breakpoint").trim().replace(/"/g,"")},l=function(){var t,e=c();function n(){var t=c();window.dispatchEvent(new CustomEvent("resized",{detail:{breakpoint:t}})),t!==e&&(window.A17&&(window.A17.currentMediaQuery=t),window.dispatchEvent(new CustomEvent("mediaQueryUpdated",{detail:{breakpoint:t,prevBreakpoint:e}})),e=t)}window.addEventListener("resize",(function(){clearTimeout(t),t=setTimeout(n,250)})),""===e?window.requestAnimationFrame(n):window.A17&&(window.A17.currentMediaQuery=e)},u=function(t,e){if(!t)return console.error("You need to pass a breakpoint name!"),!1;var n=new RegExp("\\+$|\\-$"),i=["xs","sm","md","lg","xl","xxl"];window.A17&&window.A17.breakpoints&&(Array.isArray(window.A17.breakpoints)?i=window.A17.breakpoints:console.warn("A17.breakpoints should be an array. Using defaults.")),e&&(Array.isArray(e)?i=e:console.warn("isBreakpoint breakpoints should be an array. Using defaults."));var r=c(),s=i.indexOf(r),o=n.exec(t),a=!!o&&o[0],l=o?t.slice(0,-1):t,u=i.indexOf(l);return u<0?(console.warn("Unrecognized breakpoint. Supported breakpoints are: "+i.join(", ")),!1):"+"===a&&s>=u||"-"===a&&s<=u||!a&&t===r};function d(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t&&t instanceof Element))throw new Error("Node argument is required");return this.$node=t,this.options=Object.assign({intersectionOptions:{rootMargin:"20%"}},n.options||{}),this.__isEnabled=!1,this.__children=n.children,this.__breakpoints=n.breakpoints,this.customMethodNames.forEach((function(t){e[t]=e[t].bind(e)})),this._binds={},this._data=new Proxy(this._binds,{set:function(t,n,i){return e.updateBinds(n,i),t[n]=i,!0}}),this.__isIntersecting=!1,this.__intersectionObserver=null,this}d.prototype=Object.freeze({updateBinds:function(t,e){var n=this;this.$node.querySelectorAll("[data-"+this.name.toLowerCase()+"-bindel*="+t+"]").forEach((function(t){t.innerHTML=e})),this.$node.querySelectorAll("[data-"+this.name.toLowerCase()+'-bindattr*="'+t+':"]').forEach((function(i){i.dataset[n.name.toLowerCase()+"Bindattr"].split(",").forEach((function(r){(r=r.split(":"))[0]===t&&("class"===r[1]?(n._binds[t]!==e&&i.classList.remove(n._binds[t]),e&&i.classList.add(e)):i.setAttribute(r[1],e))}))}))},init:function(){for(var t,e,n=new RegExp("^data-"+this.name+"-(.*)","i"),i=0;i<this.$node.attributes.length;i++){var r=this.$node.attributes[i],s=n.exec(r.nodeName);null!=s&&s.length>=2&&(this.options[s[1]]&&console.warn("Ignoring ".concat(s[1]," option, as it already exists on the ").concat(name," behavior. Please choose another name.")),this.options[s[1]]=r.value)}"function"==typeof(null===(t=this.lifecycle)||void 0===t?void 0:t.init)&&this.lifecycle.init.call(this),"function"==typeof(null===(e=this.lifecycle)||void 0===e?void 0:e.resized)&&(this.__resizedBind=this.__resized.bind(this),window.addEventListener("resized",this.__resizedBind)),("function"==typeof this.lifecycle.mediaQueryUpdated||this.options.media)&&(this.__mediaQueryUpdatedBind=this.__mediaQueryUpdated.bind(this),window.addEventListener("mediaQueryUpdated",this.__mediaQueryUpdatedBind)),this.options.media?this.__toggleEnabled():this.enable(),this.__intersections()},destroy:function(){var t;!0===this.__isEnabled&&this.disable(),"function"==typeof(null===(t=this.lifecycle)||void 0===t?void 0:t.destroy)&&this.lifecycle.destroy.call(this),"function"==typeof this.lifecycle.resized&&window.removeEventListener("resized",this.__resizedBind),("function"==typeof this.lifecycle.mediaQueryUpdated||this.options.media)&&window.removeEventListener("mediaQueryUpdated",this.__mediaQueryUpdatedBind),null==this.lifecycle.intersectionIn&&null==this.lifecycle.intersectionOut||(this.__intersectionObserver.unobserve(this.$node),this.__intersectionObserver.disconnect()),function(t){for(var e in t)t.hasOwnProperty(e)&&delete t[e]}(this)},getChild:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return null==e&&(e=this.$node),null!=this.__children&&null!=this.__children[t]?this.__children[t]:e[n?"querySelectorAll":"querySelector"]("[data-"+this.name.toLowerCase()+"-"+t.toLowerCase()+"]")},getChildren:function(t,e){return this.getChild(t,e,!0)},isEnabled:function(){return this.__isEnabled},enable:function(){this.__isEnabled=!0,"function"==typeof this.lifecycle.enabled&&this.lifecycle.enabled.call(this)},disable:function(){this.__isEnabled=!1,"function"==typeof this.lifecycle.disabled&&this.lifecycle.disabled.call(this)},addSubBehavior:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.$node,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=I;"string"==typeof t?i.initBehavior(t,e,n):(i.add(t),i.initBehavior(t.prototype.behaviorName,e,n))},isBreakpoint:function(t){return u(t,this.__breakpoints)},__toggleEnabled:function(){var t=u(this.options.media,this.__breakpoints);t&&!this.__isEnabled?this.enable():!t&&this.__isEnabled&&this.disable()},__mediaQueryUpdated:function(t){var e;"function"==typeof(null===(e=this.lifecycle)||void 0===e?void 0:e.mediaQueryUpdated)&&this.lifecycle.mediaQueryUpdated.call(this,t),this.options.media&&this.__toggleEnabled()},__resized:function(t){var e;"function"==typeof(null===(e=this.lifecycle)||void 0===e?void 0:e.resized)&&this.lifecycle.resized.call(this,t)},__intersections:function(){var t=this;null==this.lifecycle.intersectionIn&&null==this.lifecycle.intersectionOut||(this.__intersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){e.target===t.$node&&(e.isIntersecting?t.__isIntersecting||"function"!=typeof t.lifecycle.intersectionIn||(t.__isIntersecting=!0,t.lifecycle.intersectionIn.call(t)):t.__isIntersecting&&"function"==typeof t.lifecycle.intersectionOut&&(t.__isIntersecting=!1,t.lifecycle.intersectionOut.call(t)))}))}),this.options.intersectionOptions),this.__intersectionObserver.observe(this.$node))}});var h,f=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];d.apply(this,e)},r=[],s={name:{get:function(){return this.behaviorName}},behaviorName:{value:t,writable:!0},lifecycle:{value:n},customMethodNames:{value:r}},o=Object.keys(e);return o.forEach((function(t){r.push(t),s[t]={value:e[t],writable:!0}})),i.prototype=Object.create(d.prototype,s),i},p={dataAttr:"behavior",lazyAttr:"behavior-lazy",intersectionOptions:{rootMargin:"20%"},breakpoints:["xs","sm","md","lg","xl","xxl"]},m=[],g=!1,v={},y=new Map,b=new Map,w=new Map,E=new Map;function $(t,e){return e=e.toLowerCase().replace(/-([a-zA-Z0-9])/gi,(function(t,e){return e.toUpperCase()})),t.dataset&&t.dataset[e]?t.dataset[e].split(" "):[]}function L(t){var e=m.indexOf(t);e>-1&&m.splice(e,1)}function A(t){var e=Array.from(y.keys());e.push(t),e.forEach((function(e){if(t===e||t.contains(e)){var n=y.get(e);
1n&&Object.keys(n).forEach((function(t){!function(t,e){var n=y.get(e);n&&n[t]?(n[t].destroy(),delete n[t],0===Object.keys(n).length&&y.delete(e)):console.warn("No behavior '".concat(t,"' instance on:"),e)}(t,e),h.unobserve(e),w.delete(e),E.delete(e)}))}}))}function C(t,e){if(m.indexOf(t)>-1){var i=b.get(t)||[];return i.includes(e)||i.push(e),void b.set(t,i)}m.push(t);try{n(3757)("./".concat((process.env.BEHAVIORS_COMPONENT_PATHS[t]||"").replace(/^\/|\/$/gi,""),"/").concat(t,".").concat("js")).then((function(n){k(t,e,n)})).catch((function(e){console.warn("No loaded behavior called: ".concat(t)),L(t)}))}catch(i){try{n(3757)("./".concat(t,".").concat("js")).then((function(n){k(t,e,n)})).catch((function(e){console.warn("No loaded behavior called: ".concat(t)),L(t)}))}catch(e){console.warn("Unknown behavior called: ".concat(t,". \nIt maybe the behavior doesn't exist, check for typos and check Webpack has generated your file. \nIf you are using dynamically imported behaviors, you may also want to check your webpack config. See https://github.com/area17/a17-behaviors/wiki/Setup#webpack-config")),L(t)}}}function k(t,e,n){n.default&&"function"==typeof n.default?(v[t]=n.default,D(t,e),b.get(t)&&(b.get(t).forEach((function(e){D(t,e)})),b.delete(t))):(console.warn("Tried to import ".concat(t,", but it seems to not be a behavior")),L(t))}function S(t){"querySelectorAll"in t&&([t].concat(o(t.querySelectorAll("[data-".concat(p.dataAttr,"]")))).forEach((function(t){var e=$(t,p.dataAttr);e&&e.forEach((function(e){D(e,t)}))})),[t].concat(o(t.querySelectorAll("[data-".concat(p.lazyAttr,"]")))).forEach((function(t){var e=$(t,p.lazyAttr),n=new Map;e.forEach((function(e){var i=t.dataset["".concat(e.toLowerCase(),"Lazymedia")];n.set(e,i||!1)})),t!==document&&(w.set(t,n),E.set(t,!1),h.observe(t))})))}function O(){g=!0,new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){A(t)})),t.addedNodes.forEach((function(t){S(t)}))}))})).observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}function x(t){t.forEach((function(t){if(void 0===E.get(t)||!1!==E.get(t)){var e=w.get(t);e&&e.forEach((function(n,i){n&&!u(n,p.breakpoints)||(D(i,t),e.delete(i),0===e.size?(h.unobserve(t),w.delete(t)):w.set(t,e))}))}}))}function j(t){t.forEach((function(t){t.isIntersecting?(E.set(t.target,!0),x([t.target])):E.set(t.target,!1)}))}function T(){x(Array.from(w.keys()))}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(v[t]){n=r({breakpoints:p.breakpoints},n);var i=y.get(e)||{};if(i==={}||!i[t]){var s=new v[t](e,n);i[t]=s,y.set(e,i);try{return s.init(),s}catch(n){console.log("Error in behavior '".concat(t,"' on:"),e),console.log(n)}}}else C(t,e)}function P(t){"function"==typeof t&&t.prototype.behaviorName&&(t=s({},t.prototype.behaviorName,t)),"string"==typeof t&&arguments.length>1&&(t=s({},t,f.apply(void 0,arguments)));var e=Object.keys(t).filter((function(t){return-1===m.indexOf(t)}));e.length&&(m=m.concat(e),e.forEach((function(e){v[e]=t[e]})))}var M={init:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p=r(r({},p),e),l(),h=new IntersectionObserver(j,p.intersectionOptions),t&&P(t),S(document),g||O(),window.addEventListener("mediaQueryUpdated",T)},add:function(){arguments&&(P.apply(null,arguments),S(document))},initBehavior:D,get currentBreakpoint(){return c()}};try{0}catch(t){}var I=M},9386:(t,e,n)=>{"use strict";function i(t){return Array.isArray?Array.isArray(t):"[object Array]"===u(t)}n.d(e,{Z:()=>G});function r(t){return"string"==typeof t}function s(t){return"number"==typeof t}function o(t){return!0===t||!1===t||function(t){return a(t)&&null!==t}(t)&&"[object Boolean]"==u(t)}function a(t){return"object"==typeof t}function c(t){return null!=t}function l(t){return!t.trim().length}function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const d=Object.prototype.hasOwnProperty;class h{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach((t=>{let n=f(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight})),this._keys.forEach((t=>{t.weight/=e}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}
vendor: 14,920 bytes, line 1
1function f(t){let e=null,n=null,s=null,o=1,a=null;if(r(t)||i(t))s=t,e=p(t),n=m(t);else{if(!d.call(t,"name"))throw new Error((t=>`Missing ${t} property in key`)("name"));const i=t.name;if(s=i,d.call(t,"weight")&&(o=t.weight,o<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(i));e=p(i),n=m(i),a=t.getFn}return{path:e,id:n,weight:o,src:s,getFn:a}}function p(t){return i(t)?t:t.split(".")}function m(t){return i(t)?t.join("."):t}var g={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...{useExtendedSearch:!1,getFn:function(t,e){let n=[],a=!1;const l=(t,e,u)=>{if(c(t))if(e[u]){const d=t[e[u]];if(!c(d))return;if(u===e.length-1&&(r(d)||s(d)||o(d)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(d));else if(i(d)){a=!0;for(let t=0,n=d.length;t<n;t+=1)l(d[t],e,u+1)}else e.length&&l(d,e,u+1)}else n.push(t)};return l(t,r(e)?e.split("."):e,0),a?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const v=/[^ ]+/g;class y{constructor({getFn:t=g.getFn,fieldNormWeight:e=g.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,i=Math.pow(10,e);return{get(e){const r=e.match(v).length;if(n.has(r))return n.get(r);const s=1/Math.pow(r,.5*t),o=parseFloat(Math.round(s*i)/i);return n.set(r,o),o},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,e)=>{this._keysMap[t.id]=e}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach(((t,e)=>{this._addString(t,e)})):this.docs.forEach(((t,e)=>{this._addObject(t,e)})),this.norm.clear())}add(t){const e=this.size();r(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!c(t)||l(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach(((e,s)=>{let o=e.getFn?e.getFn(t):this.getFn(t,e.path);if(c(o))if(i(o)){let t=[];const e=[{nestedArrIndex:-1,value:o}];for(;e.length;){const{nestedArrIndex:n,value:s}=e.pop();if(c(s))if(r(s)&&!l(s)){let e={v:s,i:n,n:this.norm.get(s)};t.push(e)}else i(s)&&s.forEach(((t,n)=>{e.push({nestedArrIndex:n,value:t})}))}n.$[s]=t}else if(r(o)&&!l(o)){let t={v:o,n:this.norm.get(o)};n.$[s]=t}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function b(t,e,{getFn:n=g.getFn,fieldNormWeight:i=g.fieldNormWeight}={}){const r=new y({getFn:n,fieldNormWeight:i});return r.setKeys(t.map(f)),r.setSources(e),r.create(),r}function w(t,{errors:e=0,currentLocation:n=0,expectedLocation:i=0,distance:r=g.distance,ignoreLocation:s=g.ignoreLocation}={}){const o=e/t.length;if(s)return o;const a=Math.abs(i-n);return r?o+a/r:a?1:o}const E=32;function $(t,e,n,{location:i=g.location,distance:r=g.distance,threshold:s=g.threshold,findAllMatches:o=g.findAllMatches,minMatchCharLength:a=g.minMatchCharLength,includeMatches:c=g.includeMatches,ignoreLocation:l=g.ignoreLocation}={}){if(e.length>E)throw new Error(`Pattern length exceeds max of ${E}.`);const u=e.length,d=t.length,h=Math.max(0,Math.min(i,d));let f=s,p=h;const m=a>1||c,v=m?Array(d):[];let y;for(;(y=t.indexOf(e,p))>-1;){let t=w(e,{currentLocation:y,expectedLocation:h,distance:r,ignoreLocation:l});if(f=Math.min(t,f),p=y+u,m){let t=0;for(;t<u;)v[y+t]=1,t+=1}}p=-1;let b=[],$=1,L=u+d;const A=1<<u-1;for(let i=0;i<u;i+=1){let s=0,a=L;for(;s<a;){w(e,{errors:i,currentLocation:h+a,expectedLocation:h,distance:r,ignoreLocation:l})<=f?s=a:L=a,a=Math.floor((L-s)/2+s)}L=a;let c=Math.max(1,h-a+1),g=o?d:Math.min(h+a,d)+u,y=Array(g+2);y[g+1]=(1<<i)-1;for(let s=g;s>=c;s-=1){let o=s-1,a=n[t.charAt(o)];if(m&&(v[o]=+!!a),y[s]=(y[s+1]<<1|1)&a,i&&(y[s]|=(b[s+1]|b[s])<<1|1|b[s+1]),y[s]&A&&($=w(e,{errors:i,currentLocation:o,expectedLocation:h,distance:r,ignoreLocation:l}),$<=f)){if(f=$,p=o,p<=h)break;c=Math.max(1,2*h-p)}}if(w(e,{errors:i+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:l})>f)break;b=y}const C={isMatch:p>=0,score:Math.max(.001,$)};if(m){const t=function(t=[],e=g.minMatchCharLength){let n=[],i=-1,r=-1,s=0;for(let o=t.length;s<o;s+=1){let o=t[s];o&&-1===i?i=s:o||-1===i||(r=s-1,r-i+1>=e&&n.push([i,r]),i=-1)}return t[s-1]&&s-i>=e&&n.push([i,s-1]),n}(v,a);t.length?c&&(C.indices=t):C.isMatch=!1}return C}function L(t){let e={};for(let n=0,i=t.length;n<i;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<i-n-1}return e}const A=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class C{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:i=g.distance,includeMatches:r=g.includeMatches,findAllMatches:s=g.findAllMatches,minMatchCharLength:o=g.minMatchCharLength,isCaseSensitive:a=g.isCaseSensitive,ignoreDiacritics:c=g.ignoreDiacritics,ignoreLocation:l=g.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreDiacritics:c,ignoreLocation:l},t=a?t:t.toLowerCase(),t=c?A(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const u=(t,e)=>{this.chunks.push({pattern:t,alphabet:L(t),startIndex:e})},d=this.pattern.length;if(d>E){let t=0;const e=d%E,n=d-e;for(;t<n;)u(this.pattern.substr(t,E),t),t+=E;if(e){const t=d-E;u(this.pattern.substr(t),t)}}else u(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:n,includeMatches:i}=this.options;if(t=e?t:t.toLowerCase(),t=n?A(t):t,this.pattern===t){let e={isMatch:!0,score:0};return i&&(e.indices=[[0,t.length-1]]),e}const{location:r,distance:s,threshold:o,findAllMatches:a,minMatchCharLength:c,ignoreLocation:l}=this.options;let u=[],d=0,h=!1;this.chunks.forEach((({pattern:e,alphabet:n,startIndex:f})=>{const{isMatch:p,score:m,indices:g}=$(t,e,n,{location:r+f,distance:s,threshold:o,findAllMatches:a,minMatchCharLength:c,includeMatches:i,ignoreLocation:l});p&&(h=!0),d+=m,p&&g&&(u=[...u,...g])}));let f={isMatch:h,score:h?d/this.chunks.length:1};return h&&i&&(f.indices=u),f}}class k{constructor(t){this.pattern=t}static isMultiMatch(t){return S(t,this.multiRegex)}static isSingleMatch(t){return S(t,this.singleRegex)}search(){}}function S(t,e){const n=t.match(e);return n?n[1]:null}class O extends k{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:i=g.distance,includeMatches:r=g.includeMatches,findAllMatches:s=g.findAllMatches,minMatchCharLength:o=g.minMatchCharLength,isCaseSensitive:a=g.isCaseSensitive,ignoreDiacritics:c=g.ignoreDiacritics,ignoreLocation:l=g.ignoreLocation}={}){super(t),this._bitapSearch=new C(t,{location:e,threshold:n,distance:i,includeMatches:r,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class x extends k{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const i=[],r=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+r,i.push([e,n-1]);const s=!!i.length;return{isMatch:s,score:s?0:1,indices:i}}}const j=[class extends k{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},x,class extends k{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends k{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends k{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends k{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends k{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},O],T=j.length,D=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;const P=new Set([O.type,x.type]);class M{constructor(t,{isCaseSensitive:e=g.isCaseSensitive,ignoreDiacritics:n=g.ignoreDiacritics,includeMatches:i=g.includeMatches,minMatchCharLength:r=g.minMatchCharLength,ignoreLocation:s=g.ignoreLocation,findAllMatches:o=g.findAllMatches,location:a=g.location,threshold:c=g.threshold,distance:l=g.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:n,includeMatches:i,minMatchCharLength:r,findAllMatches:o,ignoreLocation:s,location:a,threshold:c,distance:l},t=e?t:t.toLowerCase(),t=n?A(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map((t=>{let n=t.trim().split(D).filter((t=>t&&!!t.trim())),i=[];for(let t=0,r=n.length;t<r;t+=1){const r=n[t];let s=!1,o=-1;for(;!s&&++o<T;){const t=j[o];let n=t.isMultiMatch(r);n&&(i.push(new t(n,e)),s=!0)}if(!s)for(o=-1;++o<T;){const t=j[o];let n=t.isSingleMatch(r);if(n){i.push(new t(n,e));break}}}return i}))}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i,ignoreDiacritics:r}=this.options;t=i?t:t.toLowerCase(),t=r?A(t):t;let s=0,o=[],a=0;for(let i=0,r=e.length;i<r;i+=1){const r=e[i];o.length=0,s=0;for(let e=0,i=r.length;e<i;e+=1){const i=r[e],{isMatch:c,indices:l,score:u}=i.search(t);if(!c){a=0,s=0,o.length=0;break}if(s+=1,a+=u,n){const t=i.constructor.type;P.has(t)?o=[...o,...l]:o.push(l)}}if(s){let t={isMatch:!0,score:a/s};return n&&(t.indices=o),t}}return{isMatch:!1,score:1}}}const I=[];function q(t,e){for(let n=0,i=I.length;n<i;n+=1){let i=I[n];if(i.condition(t,e))return new i(t,e)}return new C(t,e)}const R="$and",N="$or",_="$path",F="$val",B=t=>!(!t[R]&&!t[N]),H=t=>({[R]:Object.keys(t).map((e=>({[e]:t[e]})))});function U(t,e,{auto:n=!0}={}){const s=t=>{let o=Object.keys(t);const c=(t=>!!t[_])(t);if(!c&&o.length>1&&!B(t))return s(H(t));if((t=>!i(t)&&a(t)&&!B(t))(t)){const i=c?t[_]:o[0],s=c?t[F]:t[i];if(!r(s))throw new Error((t=>`Invalid value for key ${t}`)(i));const a={keyId:m(i),pattern:s};return n&&(a.searcher=q(s,e)),a}let l={children:[],operator:o[0]};return o.forEach((e=>{const n=t[e];i(n)&&n.forEach((t=>{l.children.push(s(t))}))})),l};return B(t)||(t=H(t)),s(t)}function z(t,e){const n=t.matches;e.matches=[],c(n)&&n.forEach((t=>{if(!c(t.indices)||!t.indices.length)return;const{indices:n,value:i}=t;let r={indices:n,value:i};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),e.matches.push(r)}))}function Z(t,e){e.score=t.score}class G{constructor(t,e={},n){this.options={...g,...e},this.options.useExtendedSearch,this._keyStore=new h(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof y))throw new Error("Incorrect 'index' type");this._myIndex=e||b(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const e=[];for(let n=0,i=this._docs.length;n<i;n+=1){const r=this._docs[n];t(r,n)&&(this.removeAt(n),n-=1,i-=1,e.push(r))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:c}=this.options;let l=r(t)?r(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=g.ignoreFieldNorm}){t.forEach((t=>{let n=1;
1t.matches.forEach((({key:t,norm:i,score:r})=>{const s=t?t.weight:null;n*=Math.pow(0===r&&s?Number.EPSILON:r,(s||1)*(e?1:i))})),t.score=n}))}(l,{ignoreFieldNorm:c}),o&&l.sort(a),s(e)&&e>-1&&(l=l.slice(0,e)),function(t,e,{includeMatches:n=g.includeMatches,includeScore:i=g.includeScore}={}){const r=[];return n&&r.push(z),i&&r.push(Z),t.map((t=>{const{idx:n}=t,i={item:e[n],refIndex:n};return r.length&&r.forEach((e=>{e(t,i)})),i}))}(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){const e=q(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach((({v:t,i:n,n:r})=>{if(!c(t))return;const{isMatch:s,score:o,indices:a}=e.searchIn(t);s&&i.push({item:t,idx:n,matches:[{score:o,value:t,norm:r,indices:a}]})})),i}_searchLogical(t){const e=U(t,this.options),n=(t,e,i)=>{if(!t.children){const{keyId:n,searcher:r}=t,s=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:r});return s&&s.length?[{idx:i,item:e,matches:s}]:[]}const r=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s],a=n(o,e,i);if(a.length)r.push(...a);else if(t.operator===R)return[]}return r},i=this._myIndex.records,r={},s=[];return i.forEach((({$:t,i})=>{if(c(t)){let o=n(e,t,i);o.length&&(r[i]||(r[i]={idx:i,item:t,matches:[]},s.push(r[i])),o.forEach((({matches:t})=>{r[i].matches.push(...t)})))}})),s}_searchObjectList(t){const e=q(t,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach((({$:t,i})=>{if(!c(t))return;let s=[];n.forEach(((n,i)=>{s.push(...this._findMatches({key:n,value:t[i],searcher:e}))})),s.length&&r.push({idx:i,item:t,matches:s})})),r}_findMatches({key:t,value:e,searcher:n}){if(!c(e))return[];let r=[];if(i(e))e.forEach((({v:e,i,n:s})=>{if(!c(e))return;const{isMatch:o,score:a,indices:l}=n.searchIn(e);o&&r.push({score:a,key:t,value:e,idx:i,norm:s,indices:l})}));else{const{v:i,n:s}=e,{isMatch:o,score:a,indices:c}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:s,indices:c})}return r}}G.version="7.1.0",G.createIndex=b,G.parseIndex=function(t,{getFn:e=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){const{keys:i,records:r}=t,s=new y({getFn:e,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(r),s},G.config=g,G.parseQuery=U,function(...t){I.push(...t)}(M)}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.e=()=>Promise.resolve(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=n(3667);const e=function(){var t,e="data-focus-method",n="touch",i=!1;document.addEventListener("keydown",(function(){i="key"}),!0),document.addEventListener("mousedown",(function(){i!==n&&(i="mouse")}),!0),document.addEventListener("touchstart",(function(){i=n}),!0),document.addEventListener("focus",(function(n){i||(i=t),n.target&&"function"==typeof n.target.setAttribute&&(n.target.setAttribute(e,i),t=i,i=!1)}),!0),document.addEventListener("blur",(function(t){t.target&&"function"==typeof t.target.removeAttribute&&t.target.removeAttribute(e)}),!0),window.addEventListener("blur",(function(){i=!1,t=!1}))};const i=function(){var t;function e(){if(t)document.activeElement===t||t.contains(document.activeElement)||setTimeout((function(){if(t.focus(),t!==document.activeElement){var e=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e[0]?e[0].focus():(t.setAttribute("tabindex","-1"),t.focus(),t.removeAttribute("tabindex"))}}),0);else try{document.removeEventListener("focus",e)}catch(t){}}document.addEventListener("focus:trap",(function(n){try{document.removeEventListener("focus",e)}catch(t){}(n||n.detail.element)&&(t=n.detail.element,document.addEventListener("focus",e,!0))}),!1),document.addEventListener("focus:untrap",(function(){document.removeEventListener("focus",e),t=null}),!1)};var r=n(6789),s=n(628);const o=function(t){document.dispatchEvent(new CustomEvent("state:data:load:start")),fetch(t,{method:"get",credentials:"same-origin",mode:"no-cors",headers:{"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"}}).then((function(t){try{return t.json()}catch(e){console.log("json error:",e,t)}})).then((function(t){document.dispatchEvent(new CustomEvent("state:data:load:complete",{detail:{data:t}}))})).catch((function(t){console.log("fetch error:",t),document.dispatchEvent(new CustomEvent("state:data:load:error")),window.A17.loadingError=!0}))};const a=function(t){var e=(0,s.W)();"cancelled"===t&&e.selected&&delete e.selected,"reset"===t&&(e.current="shuffle"),(0,s.Lf)(null,e)};var c=n(6821),l=n(2735),u=n(2150),d=n(7463);const h=function(){var t=new URL(window.location.href),e=t.searchParams.get("focus");e&&e.split(",").forEach((function(t){(0,l.Z)(window.A17.settings.tags.giftAreas,t,{removeSub:!0,includeParent:!0,includeDepth:!0})&&document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"giftAreas",current:!0,initial:!0,id:t}}))}));var n=t.searchParams.get("locations");n&&n.split(",").forEach((function(t){(0,l.Z)(window.A17.settings.tags.locations,t,{removeSub:!0,includeParent:!0,includeDepth:!0})&&document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"locations",current:!0,initial:!0,id:t}}))}));var i=t.searchParams.get("sorting");i&&((0,s.Lf)("previous",i),(0,s.Lf)("current",i),a("current"));var r=t.searchParams.get("locationOnly");r&&(0,s.xK)("true"===r);var o=t.searchParams.get("q");
1if(o){var h=decodeURI(o);h=(h=(0,d.Z)(h)).toLowerCase(),document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"query",query:h}}))}var f=t.searchParams.get("essay");f&&f.split(",").forEach((function(t){document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"essays",current:!0,initial:!0,id:t}}))}));var p=t.searchParams.get("years");p&&p.split(",").forEach((function(t){(window.A17.settings.tags.year||[]).find((function(e){return e.id===t}))&&document.dispatchEvent(new CustomEvent("state:filters:update",{detail:{type:"year",current:!0,initial:!0,id:t}}))})),(0,s.x9)()&&(0,u.Z)(window.location.pathname)===(0,u.Z)(window.A17.settings.routes.listing)&&(0,c.Z)()};var f=n(7353);const p=function(){(0,u.Z)(window.location.pathname)===(0,u.Z)(window.A17.settings.routes.listing)?s.zO&&h():((0,s.D5)({}),(0,s.wE)({}))};var m=n(9460);const g=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(t=(t=t.toString()).trim(),e&&(t=(0,m.Z)(t)),t):""};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const w=function(t){if(t&&t.detail&&t.detail.data){var e={start:Date.now()},n=t.detail.data.map((function(t,e){return y(y({},t),{},{name:g(t.name),nameNormalized:g(t.name,!0),missionNormalized:g(t.mission,!0),index:e})}));e.normalized=Date.now(),(0,s.q_)(n),(0,s.Wz)(!0),e.setGlobals=Date.now(),(0,u.Z)(window.location.pathname)===(0,u.Z)(window.A17.settings.routes.listing)&&(h(),e.initialFilters=Date.now()),e.end=Date.now(),window.A17.logTimers&&(console.log("%c\n\ndataLoaded","font-weight: bold; color: #fff;"),console.log("normalized: ".concat(e.normalized-e.start,"ms")),console.log("setGlobals: ".concat(e.setGlobals-e.normalized,"ms")),(0,u.Z)(window.location.pathname)===(0,u.Z)(window.A17.settings.routes.listing)&&console.log("initialFilters: ".concat(e.initialFilters-e.setGlobals,"ms")),console.log("%ctotal: ".concat(e.end-e.start,"ms"),"color: #fff;")),(0,u.Z)(window.location.pathname)===(0,u.Z)(window.A17.settings.routes.listing)&&(0,f.Z)()}else console.error("No data loaded")};const E=function(){if(s.VD){var t=document.querySelector(s.VD);t&&(t.scrollIntoView(),(0,s.oN)(null))}};const $=function(){window.requestAnimationFrame(E)};const L=function(){(0,s.oN)(window.location.hash),window.requestAnimationFrame(E)};const A=function(){JSON.stringify(s.b8)!==JSON.stringify(s.L$)&&(0,s.wE)(JSON.parse(JSON.stringify(s.b8))),(0,s.l7)({}),a("cancelled")};const C=function(t){var e,n,i;"filters:applied"!==(null===(e=t.detail)||void 0===e||null===(n=e.originalEvent)||void 0===n||null===(i=n.detail)||void 0===i?void 0:i.type)&&A()};const k=function(t){var e=s.L$;delete e[t],(0,s.wE)(e)};const S=function(t){var e,n;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.type&&"all"!==t.detail.type?k(t.detail.type):(0,s.wE)({}),null!=t&&null!==(n=t.detail)&&void 0!==n&&n.immediate&&t.detail.immediate&&(0,c.Z)()};function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const T=function(t){var e=t.type,n=t.id,i=t.current,r=t.initial,o=s.mI;
1if("giftAreas"===e||"locations"===e||"essays"===e||"year"===e){o[e]=o[e]||[];var a=o[e].find((function(t){return t.id===n}));a?o[e]=o[e].map((function(t){return t===a?x(x({},t),{},{current:i,initial:r}):t})):o[e].push({id:n,current:i,initial:r})}(0,s.l7)(o)};var D=n(2483);const P=function(t){var e=t.detail.type,n=t.detail.id,i=t.detail.groupid,r=t.detail.current,o=t.detail.initial,a=s.L$;if("giftAreas"===e||"locations"===e||"essays"===e||"year"===e){if(a[e]=a[e]||[],i){var c=(0,l.Z)(window.A17.settings.tags[e],i);if(c.sub&&c.sub.length>0){var u=(0,D.Z)(window.A17.settings.tags[e],i);(n?[i].concat(u):u).forEach((function(t){var n=a[e].find((function(e){return e.id===t}));n?n.current=r:a[e].push({id:t,current:r,initial:!1}),a[e]=a[e].filter((function(t){return t.current===t.initial?t.initial:t.current})),T({type:e,id:t,current:r,initial:!(!n||!n.initial)&&n.initial})}))}}else{if(r){var d=a[e].find((function(t){return t.id===n}));d?(d.current=r,d.initial=o):a[e].push({id:n,current:r,initial:o})}else a[e]=a[e].filter((function(t){return t.id!==n}));T(t.detail)}0===a[e].length&&delete a[e]}if("locationOnly"===e&&((0,s.xK)(r),document.dispatchEvent(new CustomEvent("state:filters:apply"))),"query"===e){var h=t.detail.query,f={number:parseInt(h.replace(/<|>|>|<|\$|%24/gi,"")),string:h.replace(/>/gi,">").replace(/</gi,"<").replace(/\$|%24/gi,"")};"number"==typeof f.number&&f.number>9999&&f.string.replace(/[^<^>]/g,"").length<2&&(h="".concat(f.string.replace(/[^<^>]/g,""),"$").concat(f.number)),0===h.toLowerCase().indexOf("st ")&&(h=h.replace(/st /i,"st. ")),a.query=h,0===a.query.length&&delete a.query}(0,s.wE)(a)};var M=n(7595);const I=function(){var t=(0,s.W)(),e=(0,s.O7)();"shuffle"===t.current&&(e=(0,M.Z)(e),(0,s.iM)(e),document.dispatchEvent(new CustomEvent("state:results",{detail:{reshuffle:!0}})))};const q=function(t){t.detail&&t.detail.type?(0,s.Lf)("selected",t.detail.type):a("current")};const R=function(){document.addEventListener("state:data:load:complete",w,!1),document.addEventListener("state:sorting:toggle",q,!1),document.addEventListener("state:sorting:reshuffle",I,!1),document.addEventListener("state:filters:update",P,!1),document.addEventListener("state:filters:apply",c.Z,!1),document.addEventListener("state:filters:clear",
1S,!1),document.addEventListener("tiles:ready",$,!1),document.addEventListener("modal:closed",C,!1),document.addEventListener("intro:closed",L,!1),document.addEventListener("barba:page:loaded",p,!1),document.dispatchEvent(new CustomEvent("state:sorting:status",{detail:{sorting:s.wr.current}}))};function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){F(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const B=function(t){var e=[];return function t(n,i,r){r=r||0,n.forEach((function(n){var s={label:n.label,id:n.id,depth:r};if(n.theme&&(s.theme=n.theme),n.type&&(s.type=n.type),n.is_native_reservation&&(s.is_native_reservation=n.is_native_reservation),i&&(s.parent=i,s.parent.theme&&(s.theme=s.parent.theme)),e.push(s),Array.isArray(n.sub)){_({},s);t(n.sub,_({},s),r+1)}}))}(t),e};const H=function(){window.A17.settings.tags&&window.A17.settings.dataPath&&((0,s.mG)({giftAreas:B(window.A17.settings.tags.giftAreas),locations:B(window.A17.settings.tags.locations),year:B(window.A17.settings.tags.year||[])}),R(),h(),o(window.A17.settings.dataPath))};var U,z=n(9069),Z=n.n(z),G={},K=parseInt(window.getComputedStyle(document.documentElement).getPropertyValue("--page-transition-time"))||300;const Y=function(){history.scrollRestoration&&(history.scrollRestoration="manual"),Z().init({debug:false,timeout:3e3,requestError:function(t,e,n,i){if("enter"!==e){document.dispatchEvent(new CustomEvent("barba:page:error")),(U=document.createElement("div")).className="fixed top-68 md:top-80 bottom-0 left-0 right-0 px-20 flex items-center justify-center transition-all duration-200 opacity-0 -translate-y-20";var r='<div class="bg-default text-default border border-soft rounded-12 p-20"><p class="f-body-1">The requested page is taking a long time to respond. <br><a href="'.concat(n,'" class="focus underline">Click this link to manually load the requested page.</a></p></div>');U.innerHTML=r,document.body.appendChild(U),document.documentElement.classList.add("s-page-transition-error"),document.documentElement.classList.remove("s-page-transition-entering","s-page-transition-leaving","s-page-transition-pre-setup"),U.classList.remove("opacity-0","-translate-y-20")}if("click"===e&&i.status&&404===i.status)return Z().go("/"),!1;if("enter"!==e)throw Z().force(n),new Error("barba error")},transitions:[{before:function(t){var e=t.current,n=t.trigger;document.dispatchEvent(new CustomEvent("barba:page:loading")),document.documentElement.classList.remove("s-page-transition-error"),U&&(U.classList.add("opacity-0","-translate-y-20"),setTimeout((function(){U.remove(),U=null}),200)),G[e.namespace]=document.documentElement.scrollTop,n&&n.dataset&&void 0!==n.dataset.headerNavlink&&(document.querySelectorAll("[data-header-navlink]").forEach((function(t){t.classList.remove("after:opacity-100")})),n.classList.add("after:opacity-100"))},leave:function(){document.documentElement.classList.add("s-page-transition-leaving");var t=this.async();setTimeout(t,K)},afterLeave:function(){document.documentElement.classList.remove("s-page-transition-leaving"),document.documentElement.classList.add("s-page-transition-pre-setup");var t=this.async();setTimeout(t,100)},beforeEnter:function(t){var e,n,i=t.current,r=t.next,s=t.trigger;r.container.querySelectorAll(".__cf_email__").forEach((function(t){var e=t.dataset.cfemail;if(e){for(var n=parseInt(e.slice(0,2),16),i="",r=2;r<e.length;r+=2)i+=String.fromCharCode(parseInt(e.slice(r,r+2),16)^n);t.textContent=i;var s=t.closest("a");s&&s.href.includes("/cdn-cgi/l/email-protection")&&(s.href="mailto:".concat(i))}})),document.documentElement.dataset.route=r.namespace,document.documentElement.dataset.navtitle=(null===(e=r.container)||void 0===e||null===(n=e.dataset)||void 0===n?void 0:n.barbaNavtitle)||"";var o,a="back"===s||"next"===s&&G[r.namespace]?G[r.namespace]:0;!s.tagName||"home"!==r.namespace&&"listing"!==r.namespace||(a=0),o=a,window.scroll({top:o,left:0,behavior:"auto"}),setTimeout((function(){window.scrollY!==o&&window.scroll({top:o,left:0,behavior:"auto"})}),0),document.dispatchEvent(new CustomEvent("barba:page:loaded"));try{r.container.querySelector("[data-header-logo]").classList.toggle("opacity-0","home"===i.namespace&&i.container.querySelector("[data-header-logo]").classList.contains("opacity-0"))}catch(t){}},afterEnter:function(t){t.current;var e=t.next;window.scroll({top:0,left:0,behavior:"auto"}),document.documentElement.classList.add("s-page-transition-entering"),window.requestAnimationFrame((function(){document.documentElement.classList.remove("s-page-transition-pre-setup"),setTimeout((function(){document.documentElement.classList.remove("s-page-transition-entering")}),K+1)})),document.getElementById("pageTitle").focus();try{e.container.querySelector("[data-header-logo]").classList.toggle("opacity-0","home"===e.namespace)}catch(t){}document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"pageview"}}))}}]}),window.A17.barba=Z()};function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,s=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(s.push(i.value),!e||s.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var X={"csvdownload:filtered":"7UWZD0RY","csvdownload:unfiltered":"ZRG8GA5V","filterApplied:essay":"7NNK51YZ","filterApplied:giftAreas":"PRMSVFGC","filterApplied:locations":"HDKU9OOE","filterApplied:query":"D1QIP0NS","locationSearch:term":"DD7QWLDX","globalSearch:term":"QG8FSQZJ","database:noResults":"MNGBCCRS","locationSearch:noResults":"PNEOSLJE","globalSearch:noResults":"R9MJGUIE","orglinkclick:database":"KFIRHAEL","orglinkclick:essay":"0LIYBEBK","sort:az":"GQNKQC2A","sort:shuffle":"RWCQMKSV","sort:za":"TFCC3PH1"};const Q=function(){document.addEventListener("analytics:track",(function(t){var e,n=t.detail;try{"pageview"===n.type?window.fathom?window.fathom.trackPageview():console.log("/analytics tracking - offline\n⢠pageview\n/analytics tracking - offline"):"filtersApply"===n.type?(!(e=n.data).new.query||e.old.query&&e.new.query===e.old.query||document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"filterApplied:query",data:e.new.query}})),!e.new.essays||e.old.essays&&e.new.essays===e.old.essays||e.new.essays.forEach((function(t){var e=new Date(Date.parse("".concat(t.id.substring(0,4),"-").concat(t.id.substring(4,6),"-").concat(t.id.substring(6,8),"T00:00:00")));document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"filterApplied:essay",data:e.toLocaleDateString("en-US")}}))})),["giftAreas","locations"].forEach((function(t){if(e.new[t]&&(!e.old[t]||JSON.stringify(e.new[t])!==JSON.stringify(e.old[t]))){var n=[];e.old[t]=e.old[t]||[],e.new[t].forEach((function(i){e.old[t].find((function(t){return t.id===i.id}))||n.push(i)})),n.forEach((function(n){var i=e.tags[t].find((function(t){return n.id===t.id}));Object.keys(i).length>0&&document.dispatchEvent(new CustomEvent("analytics:track",{detail:{type:"filterApplied:".concat(t),data:i.label}}))}))}}))):"database:noResults"===n.type?function(t){var e,n=[],i=[],r=t.data;Object.keys(r.counts).forEach((function(t){for(var e=function(){var e=W(o[s],2),a=e[0],c=e[1];if(r.tags[t]){var l=r.tags[t].find((function(t){return t.id===a}));Object.keys(l).length>0&&(i.push("".concat(t,": ").concat(l.label)),0===c&&n.push("".concat(t,": ").concat(l.label)))}else i.push("".concat(t,": ").concat(a)),0===c&&n.push("".concat(t,": ").concat(a))},s=0,o=Object.entries(r.counts[t]);s<o.length;s++)e()})),e=n.length>0?n.join("; "):"Combination of - ".concat(i.join("; ")),t.data=e,window.fathom?window.fathom.trackGoal(X[t.type],0):console.log("/analytics tracking - offline\n⢠".concat(X[t.type],"\n⢠").concat(t.type,"\n⢠").concat(t.data,"\n/analytics tracking - offline"))}(n):X[n.type]&&(window.fathom?window.fathom.trackGoal(X[n.type],0):console.log("/analytics tracking - offline\n⢠".concat(X[n.type],"\n⢠").concat(n.type,"\n⢠").concat("string"==typeof n.data?n.data.trim():n.data,"\n/analytics tracking - offline")))}catch(t){console.log("analytics tracking error",t,n)}}),!1)};const V=function(){return getComputedStyle(document.documentElement).getPropertyValue("--breakpoint").trim().replace(/"/g,"")};const tt=function(t,e){if(!t)return console.error("You need to pass a breakpoint name!"),!1;var n=new RegExp("\\+$|\\-$"),i=["xs","sm","md","lg","xl","xxl"];window.A17&&window.A17.breakpoints&&(Array.isArray(window.A17.breakpoints)?i=window.A17.breakpoints:console.warn("A17.breakpoints should be an array. Using defaults.")),e&&(Array.isArray(e)?i=e:console.warn("isBreakpoint breakpoints should be an array. Using defaults."));var r=V(),s=i.indexOf(r),o=n.exec(t),a=!!o&&o[0],c=o?t.slice(0,-1):t,l=i.indexOf(c);return l<0?(console.warn("Unrecognized breakpoint. Supported breakpoints are: "+i.join(", ")),!1):"+"===a&&s>=l||"-"===a&&s<=l||!a&&t===r};const et=function(){function t(){var t=.01*Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);document.documentElement.style.setProperty("--vh","".concat(t,"px"))}window.addEventListener("resize",t),t()};window.A17=window.A17||{},window.A17.logTimers=!1,window.A17.settings=window.A17.settings||{},window.A17.settings.breakpoints=["xs","sm","md","lg","xl","xxl"],window.A17.settings.displayScores=!1,window.A17.settings.sortingTypes={relevance:!1,az:!0,za:!1},window.A17.settings.locationOnlyFiltering=!1,window.A17.settings.downloadSplitGifts=!0,!1===window.A17.settings.sortingTypes.relevance&&(window.A17.settings.displayScores=!1),Object.freeze(window.A17.settings),document.addEventListener("DOMContentLoaded",(function(){Q(),window.A17.behaviors=t.f,window.A17.behaviors.init(r,{breakpoints:window.A17.settings.breakpoints}),H(),i(),e(),et(),Y();var n=tt("sm-",window.A17.settings.breakpoints)?"#000":"#f3f3f1",s=document.querySelector('meta[name="theme-color"]');s&&s.setAttribute("content",n.trim())}))})()})();
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.