react-addsearch-ui 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(ut,at){typeof exports=="object"&&typeof module<"u"?at(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],at):(ut=typeof globalThis<"u"?globalThis:ut||self,at(ut["zenloop-components"]={},ut.React))})(this,function(ut,at){"use strict";var Fl=Object.defineProperty;var Ll=(ut,at,qt)=>at in ut?Fl(ut,at,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ut[at]=qt;var ze=(ut,at,qt)=>Ll(ut,typeof at!="symbol"?at+"":at,qt);function qt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const p in t)if(p!=="default"){const s=Object.getOwnPropertyDescriptor(t,p);Object.defineProperty(i,p,s.get?s:{enumerable:!0,get:()=>t[p]})}}return i.default=t,Object.freeze(i)}const wt=qt(at);var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wn={exports:{}},rn={};/**
1
+ (function(ut,at){typeof exports=="object"&&typeof module<"u"?at(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],at):(ut=typeof globalThis<"u"?globalThis:ut||self,at(ut["zenloop-components"]={},ut.React))})(this,function(ut,at){"use strict";var Fl=Object.defineProperty;var Ll=(ut,at,qt)=>at in ut?Fl(ut,at,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ut[at]=qt;var ze=(ut,at,qt)=>Ll(ut,typeof at!="symbol"?at+"":at,qt);function qt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const p in t)if(p!=="default"){const o=Object.getOwnPropertyDescriptor(t,p);Object.defineProperty(i,p,o.get?o:{enumerable:!0,get:()=>t[p]})}}return i.default=t,Object.freeze(i)}const St=qt(at);var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Wn={exports:{}},rn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Vr;function co(){if(Vr)return rn;Vr=1;var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function c(n,y,r){var e,d={},C=null,l=null;r!==void 0&&(C=""+r),y.key!==void 0&&(C=""+y.key),y.ref!==void 0&&(l=y.ref);for(e in y)s.call(y,e)&&!b.hasOwnProperty(e)&&(d[e]=y[e]);if(n&&n.defaultProps)for(e in y=n.defaultProps,y)d[e]===void 0&&(d[e]=y[e]);return{$$typeof:i,type:n,key:C,ref:l,props:d,_owner:w.current}}return rn.Fragment=p,rn.jsx=c,rn.jsxs=c,rn}var on={};/**
9
+ */var Vr;function cs(){if(Vr)return rn;Vr=1;var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function c(n,y,r){var e,d={},C=null,l=null;r!==void 0&&(C=""+r),y.key!==void 0&&(C=""+y.key),y.ref!==void 0&&(l=y.ref);for(e in y)o.call(y,e)&&!w.hasOwnProperty(e)&&(d[e]=y[e]);if(n&&n.defaultProps)for(e in y=n.defaultProps,y)d[e]===void 0&&(d[e]=y[e]);return{$$typeof:i,type:n,key:C,ref:l,props:d,_owner:E.current}}return rn.Fragment=p,rn.jsx=c,rn.jsxs=c,rn}var sn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,48 +14,48 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var zr;function uo(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&function(){var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),l=Symbol.for("react.offscreen"),a=Symbol.iterator,o="@@iterator";function v(B){if(B===null||typeof B!="object")return null;var ae=a&&B[a]||B[o];return typeof ae=="function"?ae:null}var f=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(B){{for(var ae=arguments.length,he=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)he[Ee-1]=arguments[Ee];h("error",B,he)}}function h(B,ae,he){{var Ee=f.ReactDebugCurrentFrame,je=Ee.getStackAddendum();je!==""&&(ae+="%s",he=he.concat([je]));var $e=he.map(function(Ne){return String(Ne)});$e.unshift("Warning: "+ae),Function.prototype.apply.call(console[B],console,$e)}}var u=!1,_=!1,k=!1,A=!1,I=!1,P;P=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===s||B===b||I||B===w||B===r||B===e||A||B===l||u||_||k||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===d||B.$$typeof===c||B.$$typeof===n||B.$$typeof===y||B.$$typeof===P||B.getModuleId!==void 0))}function q(B,ae,he){var Ee=B.displayName;if(Ee)return Ee;var je=ae.displayName||ae.name||"";return je!==""?he+"("+je+")":he}function j(B){return B.displayName||"Context"}function D(B){if(B==null)return null;if(typeof B.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case s:return"Fragment";case p:return"Portal";case b:return"Profiler";case w:return"StrictMode";case r:return"Suspense";case e:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case n:var ae=B;return j(ae)+".Consumer";case c:var he=B;return j(he._context)+".Provider";case y:return q(B,B.render,"ForwardRef");case d:var Ee=B.displayName||null;return Ee!==null?Ee:D(B.type)||"Memo";case C:{var je=B,$e=je._payload,Ne=je._init;try{return D(Ne($e))}catch{return null}}}return null}var L=Object.assign,V=0,J,se,ne,Y,W,X,ue;function xe(){}xe.__reactDisabledLog=!0;function Re(){{if(V===0){J=console.log,se=console.info,ne=console.warn,Y=console.error,W=console.group,X=console.groupCollapsed,ue=console.groupEnd;var B={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}V++}}function Oe(){{if(V--,V===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},B,{value:J}),info:L({},B,{value:se}),warn:L({},B,{value:ne}),error:L({},B,{value:Y}),group:L({},B,{value:W}),groupCollapsed:L({},B,{value:X}),groupEnd:L({},B,{value:ue})})}V<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=f.ReactCurrentDispatcher,He;function Fe(B,ae,he){{if(He===void 0)try{throw Error()}catch(je){var Ee=je.stack.trim().match(/\n( *(at )?)/);He=Ee&&Ee[1]||""}return`
18
- `+He+B}}var Ke=!1,Me;{var We=typeof WeakMap=="function"?WeakMap:Map;Me=new We}function z(B,ae){if(!B||Ke)return"";{var he=Me.get(B);if(he!==void 0)return he}var Ee;Ke=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Ce.current,Ce.current=null,Re();try{if(ae){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(st){Ee=st}Reflect.construct(B,[],Ne)}else{try{Ne.call()}catch(st){Ee=st}B.call(Ne.prototype)}}else{try{throw Error()}catch(st){Ee=st}B()}}catch(st){if(st&&Ee&&typeof st.stack=="string"){for(var Le=st.stack.split(`
17
+ */var zr;function us(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&function(){var t=at,i=Symbol.for("react.element"),p=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),r=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),l=Symbol.for("react.offscreen"),a=Symbol.iterator,s="@@iterator";function v(B){if(B===null||typeof B!="object")return null;var ae=a&&B[a]||B[s];return typeof ae=="function"?ae:null}var f=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(B){{for(var ae=arguments.length,he=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)he[Ee-1]=arguments[Ee];h("error",B,he)}}function h(B,ae,he){{var Ee=f.ReactDebugCurrentFrame,je=Ee.getStackAddendum();je!==""&&(ae+="%s",he=he.concat([je]));var $e=he.map(function(Ne){return String(Ne)});$e.unshift("Warning: "+ae),Function.prototype.apply.call(console[B],console,$e)}}var u=!1,_=!1,S=!1,I=!1,T=!1,P;P=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===o||B===w||T||B===E||B===r||B===e||I||B===l||u||_||S||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===d||B.$$typeof===c||B.$$typeof===n||B.$$typeof===y||B.$$typeof===P||B.getModuleId!==void 0))}function q(B,ae,he){var Ee=B.displayName;if(Ee)return Ee;var je=ae.displayName||ae.name||"";return je!==""?he+"("+je+")":he}function j(B){return B.displayName||"Context"}function D(B){if(B==null)return null;if(typeof B.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case o:return"Fragment";case p:return"Portal";case w:return"Profiler";case E:return"StrictMode";case r:return"Suspense";case e:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case n:var ae=B;return j(ae)+".Consumer";case c:var he=B;return j(he._context)+".Provider";case y:return q(B,B.render,"ForwardRef");case d:var Ee=B.displayName||null;return Ee!==null?Ee:D(B.type)||"Memo";case C:{var je=B,$e=je._payload,Ne=je._init;try{return D(Ne($e))}catch{return null}}}return null}var L=Object.assign,V=0,J,oe,ne,Y,W,X,ue;function xe(){}xe.__reactDisabledLog=!0;function Ae(){{if(V===0){J=console.log,oe=console.info,ne=console.warn,Y=console.error,W=console.group,X=console.groupCollapsed,ue=console.groupEnd;var B={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:B,log:B,warn:B,error:B,group:B,groupCollapsed:B,groupEnd:B})}V++}}function Oe(){{if(V--,V===0){var B={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},B,{value:J}),info:L({},B,{value:oe}),warn:L({},B,{value:ne}),error:L({},B,{value:Y}),group:L({},B,{value:W}),groupCollapsed:L({},B,{value:X}),groupEnd:L({},B,{value:ue})})}V<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=f.ReactCurrentDispatcher,He;function Fe(B,ae,he){{if(He===void 0)try{throw Error()}catch(je){var Ee=je.stack.trim().match(/\n( *(at )?)/);He=Ee&&Ee[1]||""}return`
18
+ `+He+B}}var Ke=!1,Me;{var We=typeof WeakMap=="function"?WeakMap:Map;Me=new We}function z(B,ae){if(!B||Ke)return"";{var he=Me.get(B);if(he!==void 0)return he}var Ee;Ke=!0;var je=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $e;$e=Ce.current,Ce.current=null,Ae();try{if(ae){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(ot){Ee=ot}Reflect.construct(B,[],Ne)}else{try{Ne.call()}catch(ot){Ee=ot}B.call(Ne.prototype)}}else{try{throw Error()}catch(ot){Ee=ot}B()}}catch(ot){if(ot&&Ee&&typeof ot.stack=="string"){for(var Le=ot.stack.split(`
19
19
  `),tt=Ee.stack.split(`
20
20
  `),Je=Le.length-1,Ye=tt.length-1;Je>=1&&Ye>=0&&Le[Je]!==tt[Ye];)Ye--;for(;Je>=1&&Ye>=0;Je--,Ye--)if(Le[Je]!==tt[Ye]){if(Je!==1||Ye!==1)do if(Je--,Ye--,Ye<0||Le[Je]!==tt[Ye]){var ct=`
21
- `+Le[Je].replace(" at new "," at ");return B.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",B.displayName)),typeof B=="function"&&Me.set(B,ct),ct}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Ce.current=$e,Oe(),Error.prepareStackTrace=je}var Lt=B?B.displayName||B.name:"",yt=Lt?Fe(Lt):"";return typeof B=="function"&&Me.set(B,yt),yt}function H(B,ae,he){return z(B,!1)}function oe(B){var ae=B.prototype;return!!(ae&&ae.isReactComponent)}function de(B,ae,he){if(B==null)return"";if(typeof B=="function")return z(B,oe(B));if(typeof B=="string")return Fe(B);switch(B){case r:return Fe("Suspense");case e:return Fe("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case y:return H(B.render);case d:return de(B.type,ae,he);case C:{var Ee=B,je=Ee._payload,$e=Ee._init;try{return de($e(je),ae,he)}catch{}}}return""}var be=Object.prototype.hasOwnProperty,we={},Te=f.ReactDebugCurrentFrame;function me(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Te.setExtraStackFrame(he)}else Te.setExtraStackFrame(null)}function ye(B,ae,he,Ee,je){{var $e=Function.call.bind(be);for(var Ne in B)if($e(B,Ne)){var Le=void 0;try{if(typeof B[Ne]!="function"){var tt=Error((Ee||"React class")+": "+he+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}Le=B[Ne](ae,Ne,Ee,he,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Le=Je}Le&&!(Le instanceof Error)&&(me(je),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ee||"React class",he,Ne,typeof Le),me(null)),Le instanceof Error&&!(Le.message in we)&&(we[Le.message]=!0,me(je),g("Failed %s type: %s",he,Le.message),me(null))}}}var Se=Array.isArray;function Be(B){return Se(B)}function Z(B){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,he=ae&&B[Symbol.toStringTag]||B.constructor.name||"Object";return he}}function le(B){try{return ie(B),!1}catch{return!0}}function ie(B){return""+B}function fe(B){if(le(B))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Z(B)),ie(B)}var O=f.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0},S,F,U;U={};function K(B){if(be.call(B,"ref")){var ae=Object.getOwnPropertyDescriptor(B,"ref").get;if(ae&&ae.isReactWarning)return!1}return B.ref!==void 0}function ee(B){if(be.call(B,"key")){var ae=Object.getOwnPropertyDescriptor(B,"key").get;if(ae&&ae.isReactWarning)return!1}return B.key!==void 0}function Ae(B,ae){if(typeof B.ref=="string"&&O.current&&ae&&O.current.stateNode!==ae){var he=D(O.current.type);U[he]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(O.current.type),B.ref),U[he]=!0)}}function Ve(B,ae){{var he=function(){S||(S=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"key",{get:he,configurable:!0})}}function Ie(B,ae){{var he=function(){F||(F=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"ref",{get:he,configurable:!0})}}var Ge=function(B,ae,he,Ee,je,$e,Ne){var Le={$$typeof:i,type:B,key:ae,ref:he,props:Ne,_owner:$e};return Le._store={},Object.defineProperty(Le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Le.props),Object.freeze(Le)),Le};function ge(B,ae,he,Ee,je){{var $e,Ne={},Le=null,tt=null;he!==void 0&&(fe(he),Le=""+he),ee(ae)&&(fe(ae.key),Le=""+ae.key),K(ae)&&(tt=ae.ref,Ae(ae,je));for($e in ae)be.call(ae,$e)&&!m.hasOwnProperty($e)&&(Ne[$e]=ae[$e]);if(B&&B.defaultProps){var Je=B.defaultProps;for($e in Je)Ne[$e]===void 0&&(Ne[$e]=Je[$e])}if(Le||tt){var Ye=typeof B=="function"?B.displayName||B.name||"Unknown":B;Le&&Ve(Ne,Ye),tt&&Ie(Ne,Ye)}return Ge(B,Le,tt,je,Ee,O.current,Ne)}}var Zt=f.ReactCurrentOwner,Ft=f.ReactDebugCurrentFrame;function Ot(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Ft.setExtraStackFrame(he)}else Ft.setExtraStackFrame(null)}var Rt;Rt=!1;function Qt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}function Bt(){{if(Zt.current){var B=D(Zt.current.type);if(B)return`
21
+ `+Le[Je].replace(" at new "," at ");return B.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",B.displayName)),typeof B=="function"&&Me.set(B,ct),ct}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Ce.current=$e,Oe(),Error.prepareStackTrace=je}var Lt=B?B.displayName||B.name:"",yt=Lt?Fe(Lt):"";return typeof B=="function"&&Me.set(B,yt),yt}function H(B,ae,he){return z(B,!1)}function se(B){var ae=B.prototype;return!!(ae&&ae.isReactComponent)}function de(B,ae,he){if(B==null)return"";if(typeof B=="function")return z(B,se(B));if(typeof B=="string")return Fe(B);switch(B){case r:return Fe("Suspense");case e:return Fe("SuspenseList")}if(typeof B=="object")switch(B.$$typeof){case y:return H(B.render);case d:return de(B.type,ae,he);case C:{var Ee=B,je=Ee._payload,$e=Ee._init;try{return de($e(je),ae,he)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Se={},Re=f.ReactDebugCurrentFrame;function me(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Re.setExtraStackFrame(he)}else Re.setExtraStackFrame(null)}function ye(B,ae,he,Ee,je){{var $e=Function.call.bind(we);for(var Ne in B)if($e(B,Ne)){var Le=void 0;try{if(typeof B[Ne]!="function"){var tt=Error((Ee||"React class")+": "+he+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof B[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw tt.name="Invariant Violation",tt}Le=B[Ne](ae,Ne,Ee,he,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Le=Je}Le&&!(Le instanceof Error)&&(me(je),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Ee||"React class",he,Ne,typeof Le),me(null)),Le instanceof Error&&!(Le.message in Se)&&(Se[Le.message]=!0,me(je),g("Failed %s type: %s",he,Le.message),me(null))}}}var be=Array.isArray;function Be(B){return be(B)}function Q(B){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,he=ae&&B[Symbol.toStringTag]||B.constructor.name||"Object";return he}}function le(B){try{return ie(B),!1}catch{return!0}}function ie(B){return""+B}function fe(B){if(le(B))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Q(B)),ie(B)}var O=f.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0},b,F,U;U={};function K(B){if(we.call(B,"ref")){var ae=Object.getOwnPropertyDescriptor(B,"ref").get;if(ae&&ae.isReactWarning)return!1}return B.ref!==void 0}function ee(B){if(we.call(B,"key")){var ae=Object.getOwnPropertyDescriptor(B,"key").get;if(ae&&ae.isReactWarning)return!1}return B.key!==void 0}function Te(B,ae){if(typeof B.ref=="string"&&O.current&&ae&&O.current.stateNode!==ae){var he=D(O.current.type);U[he]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(O.current.type),B.ref),U[he]=!0)}}function Ve(B,ae){{var he=function(){b||(b=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"key",{get:he,configurable:!0})}}function Ie(B,ae){{var he=function(){F||(F=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ae))};he.isReactWarning=!0,Object.defineProperty(B,"ref",{get:he,configurable:!0})}}var Ge=function(B,ae,he,Ee,je,$e,Ne){var Le={$$typeof:i,type:B,key:ae,ref:he,props:Ne,_owner:$e};return Le._store={},Object.defineProperty(Le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:je}),Object.freeze&&(Object.freeze(Le.props),Object.freeze(Le)),Le};function ge(B,ae,he,Ee,je){{var $e,Ne={},Le=null,tt=null;he!==void 0&&(fe(he),Le=""+he),ee(ae)&&(fe(ae.key),Le=""+ae.key),K(ae)&&(tt=ae.ref,Te(ae,je));for($e in ae)we.call(ae,$e)&&!m.hasOwnProperty($e)&&(Ne[$e]=ae[$e]);if(B&&B.defaultProps){var Je=B.defaultProps;for($e in Je)Ne[$e]===void 0&&(Ne[$e]=Je[$e])}if(Le||tt){var Ye=typeof B=="function"?B.displayName||B.name||"Unknown":B;Le&&Ve(Ne,Ye),tt&&Ie(Ne,Ye)}return Ge(B,Le,tt,je,Ee,O.current,Ne)}}var Qt=f.ReactCurrentOwner,Ft=f.ReactDebugCurrentFrame;function Ot(B){if(B){var ae=B._owner,he=de(B.type,B._source,ae?ae.type:null);Ft.setExtraStackFrame(he)}else Ft.setExtraStackFrame(null)}var At;At=!1;function Zt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}function Bt(){{if(Qt.current){var B=D(Qt.current.type);if(B)return`
22
22
 
23
23
  Check the render method of \``+B+"`."}return""}}function Dt(B){return""}var gn={};function Un(B){{var ae=Bt();if(!ae){var he=typeof B=="string"?B:B.displayName||B.name;he&&(ae=`
24
24
 
25
- Check the top-level render call using <`+he+">.")}return ae}}function Xt(B,ae){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var he=Un(ae);if(gn[he])return;gn[he]=!0;var Ee="";B&&B._owner&&B._owner!==Zt.current&&(Ee=" It was passed a child from "+D(B._owner.type)+"."),Ot(B),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',he,Ee),Ot(null)}}function en(B,ae){{if(typeof B!="object")return;if(Be(B))for(var he=0;he<B.length;he++){var Ee=B[he];Qt(Ee)&&Xt(Ee,ae)}else if(Qt(B))B._store&&(B._store.validated=!0);else if(B){var je=v(B);if(typeof je=="function"&&je!==B.entries)for(var $e=je.call(B),Ne;!(Ne=$e.next()).done;)Qt(Ne.value)&&Xt(Ne.value,ae)}}}function Nr(B){{var ae=B.type;if(ae==null||typeof ae=="string")return;var he;if(typeof ae=="function")he=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===y||ae.$$typeof===d))he=ae.propTypes;else return;if(he){var Ee=D(ae);ye(he,B.props,"prop",Ee,B)}else if(ae.PropTypes!==void 0&&!Rt){Rt=!0;var je=D(ae);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mr(B){{for(var ae=Object.keys(B.props),he=0;he<ae.length;he++){var Ee=ae[he];if(Ee!=="children"&&Ee!=="key"){Ot(B),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),Ot(null);break}}B.ref!==null&&(Ot(B),g("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var Ht={};function tn(B,ae,he,Ee,je,$e){{var Ne=N(B);if(!Ne){var Le="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=Dt();tt?Le+=tt:Le+=Bt();var Je;B===null?Je="null":Be(B)?Je="array":B!==void 0&&B.$$typeof===i?(Je="<"+(D(B.type)||"Unknown")+" />",Le=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof B,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Le)}var Ye=ge(B,ae,he,je,$e);if(Ye==null)return Ye;if(Ne){var ct=ae.children;if(ct!==void 0)if(Ee)if(Be(ct)){for(var Lt=0;Lt<ct.length;Lt++)en(ct[Lt],B);Object.freeze&&Object.freeze(ct)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else en(ct,B)}if(be.call(ae,"key")){var yt=D(B),st=Object.keys(ae).filter(function(vn){return vn!=="key"}),nn=st.length>0?"{key: someKey, "+st.join(": ..., ")+": ...}":"{key: someKey}";if(!Ht[yt+nn]){var Vn=st.length>0?"{"+st.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+he+">.")}return ae}}function Xt(B,ae){{if(!B._store||B._store.validated||B.key!=null)return;B._store.validated=!0;var he=Un(ae);if(gn[he])return;gn[he]=!0;var Ee="";B&&B._owner&&B._owner!==Qt.current&&(Ee=" It was passed a child from "+D(B._owner.type)+"."),Ot(B),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',he,Ee),Ot(null)}}function en(B,ae){{if(typeof B!="object")return;if(Be(B))for(var he=0;he<B.length;he++){var Ee=B[he];Zt(Ee)&&Xt(Ee,ae)}else if(Zt(B))B._store&&(B._store.validated=!0);else if(B){var je=v(B);if(typeof je=="function"&&je!==B.entries)for(var $e=je.call(B),Ne;!(Ne=$e.next()).done;)Zt(Ne.value)&&Xt(Ne.value,ae)}}}function Nr(B){{var ae=B.type;if(ae==null||typeof ae=="string")return;var he;if(typeof ae=="function")he=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===y||ae.$$typeof===d))he=ae.propTypes;else return;if(he){var Ee=D(ae);ye(he,B.props,"prop",Ee,B)}else if(ae.PropTypes!==void 0&&!At){At=!0;var je=D(ae);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",je||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mr(B){{for(var ae=Object.keys(B.props),he=0;he<ae.length;he++){var Ee=ae[he];if(Ee!=="children"&&Ee!=="key"){Ot(B),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),Ot(null);break}}B.ref!==null&&(Ot(B),g("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var Ht={};function tn(B,ae,he,Ee,je,$e){{var Ne=N(B);if(!Ne){var Le="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var tt=Dt();tt?Le+=tt:Le+=Bt();var Je;B===null?Je="null":Be(B)?Je="array":B!==void 0&&B.$$typeof===i?(Je="<"+(D(B.type)||"Unknown")+" />",Le=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof B,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Le)}var Ye=ge(B,ae,he,je,$e);if(Ye==null)return Ye;if(Ne){var ct=ae.children;if(ct!==void 0)if(Ee)if(Be(ct)){for(var Lt=0;Lt<ct.length;Lt++)en(ct[Lt],B);Object.freeze&&Object.freeze(ct)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else en(ct,B)}if(we.call(ae,"key")){var yt=D(B),ot=Object.keys(ae).filter(function(vn){return vn!=="key"}),nn=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Ht[yt+nn]){var Vn=ot.length>0?"{"+ot.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,nn,yt,Vn,yt),Ht[yt+nn]=!0}}return B===s?Mr(Ye):Nr(Ye),Ye}}function Br(B,ae,he){return tn(B,ae,he,!0)}function $n(B,ae,he){return tn(B,ae,he,!1)}var yn=$n,qn=Br;on.Fragment=s,on.jsx=yn,on.jsxs=qn}()),on}process.env.NODE_ENV==="production"?Wn.exports=co():Wn.exports=uo();var _e=Wn.exports,Jn={};function ho(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gr={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,nn,yt,Vn,yt),Ht[yt+nn]=!0}}return B===o?Mr(Ye):Nr(Ye),Ye}}function Br(B,ae,he){return tn(B,ae,he,!0)}function $n(B,ae,he){return tn(B,ae,he,!1)}var yn=$n,qn=Br;sn.Fragment=o,sn.jsx=yn,sn.jsxs=qn}()),sn}process.env.NODE_ENV==="production"?Wn.exports=cs():Wn.exports=us();var _e=Wn.exports,Jn={};function hs(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gr={exports:{}};/*!
31
31
  * @overview es6-promise - a tiny implementation of Promises/A+.
32
32
  * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
33
33
  * @license Licensed under MIT license
34
34
  * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
35
35
  * @version v4.2.8+1e68dce6
36
- */(function(t,i){(function(p,s){t.exports=s()})(Qe,function(){function p(Z){var le=typeof Z;return Z!==null&&(le==="object"||le==="function")}function s(Z){return typeof Z=="function"}var w=void 0;Array.isArray?w=Array.isArray:w=function(Z){return Object.prototype.toString.call(Z)==="[object Array]"};var b=w,c=0,n=void 0,y=void 0,r=function(le,ie){k[c]=le,k[c+1]=ie,c+=2,c===2&&(y?y(A):P())};function e(Z){y=Z}function d(Z){r=Z}var C=typeof window<"u"?window:void 0,l=C||{},a=l.MutationObserver||l.WebKitMutationObserver,o=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",v=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function f(){return function(){return process.nextTick(A)}}function g(){return typeof n<"u"?function(){n(A)}:_()}function h(){var Z=0,le=new a(A),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=Z=++Z%2}}function u(){var Z=new MessageChannel;return Z.port1.onmessage=A,function(){return Z.port2.postMessage(0)}}function _(){var Z=setTimeout;return function(){return Z(A,1)}}var k=new Array(1e3);function A(){for(var Z=0;Z<c;Z+=2){var le=k[Z],ie=k[Z+1];le(ie),k[Z]=void 0,k[Z+1]=void 0}c=0}function I(){try{var Z=Function("return this")().require("vertx");return n=Z.runOnLoop||Z.runOnContext,g()}catch{return _()}}var P=void 0;o?P=f():a?P=h():v?P=u():C===void 0&&typeof ho=="function"?P=I():P=_();function N(Z,le){var ie=this,fe=new this.constructor(D);fe[j]===void 0&&H(fe);var O=ie._state;if(O){var m=arguments[O-1];r(function(){return Ke(O,fe,m,ie._result)})}else He(ie,fe,Z,le);return fe}function q(Z){var le=this;if(Z&&typeof Z=="object"&&Z.constructor===le)return Z;var ie=new le(D);return xe(ie,Z),ie}var j=Math.random().toString(36).substring(2);function D(){}var L=void 0,V=1,J=2;function se(){return new TypeError("You cannot resolve a promise with itself")}function ne(){return new TypeError("A promises callback cannot return that same promise.")}function Y(Z,le,ie,fe){try{Z.call(le,ie,fe)}catch(O){return O}}function W(Z,le,ie){r(function(fe){var O=!1,m=Y(ie,le,function(S){O||(O=!0,le!==S?xe(fe,S):Oe(fe,S))},function(S){O||(O=!0,Ce(fe,S))},"Settle: "+(fe._label||" unknown promise"));!O&&m&&(O=!0,Ce(fe,m))},Z)}function X(Z,le){le._state===V?Oe(Z,le._result):le._state===J?Ce(Z,le._result):He(le,void 0,function(ie){return xe(Z,ie)},function(ie){return Ce(Z,ie)})}function ue(Z,le,ie){le.constructor===Z.constructor&&ie===N&&le.constructor.resolve===q?X(Z,le):ie===void 0?Oe(Z,le):s(ie)?W(Z,le,ie):Oe(Z,le)}function xe(Z,le){if(Z===le)Ce(Z,se());else if(p(le)){var ie=void 0;try{ie=le.then}catch(fe){Ce(Z,fe);return}ue(Z,le,ie)}else Oe(Z,le)}function Re(Z){Z._onerror&&Z._onerror(Z._result),Fe(Z)}function Oe(Z,le){Z._state===L&&(Z._result=le,Z._state=V,Z._subscribers.length!==0&&r(Fe,Z))}function Ce(Z,le){Z._state===L&&(Z._state=J,Z._result=le,r(Re,Z))}function He(Z,le,ie,fe){var O=Z._subscribers,m=O.length;Z._onerror=null,O[m]=le,O[m+V]=ie,O[m+J]=fe,m===0&&Z._state&&r(Fe,Z)}function Fe(Z){var le=Z._subscribers,ie=Z._state;if(le.length!==0){for(var fe=void 0,O=void 0,m=Z._result,S=0;S<le.length;S+=3)fe=le[S],O=le[S+ie],fe?Ke(ie,fe,O,m):O(m);Z._subscribers.length=0}}function Ke(Z,le,ie,fe){var O=s(ie),m=void 0,S=void 0,F=!0;if(O){try{m=ie(fe)}catch(U){F=!1,S=U}if(le===m){Ce(le,ne());return}}else m=fe;le._state!==L||(O&&F?xe(le,m):F===!1?Ce(le,S):Z===V?Oe(le,m):Z===J&&Ce(le,m))}function Me(Z,le){try{le(function(fe){xe(Z,fe)},function(fe){Ce(Z,fe)})}catch(ie){Ce(Z,ie)}}var We=0;function z(){return We++}function H(Z){Z[j]=We++,Z._state=void 0,Z._result=void 0,Z._subscribers=[]}function oe(){return new Error("Array Methods must be provided an Array")}var de=function(){function Z(le,ie){this._instanceConstructor=le,this.promise=new le(D),this.promise[j]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Oe(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Oe(this.promise,this._result))):Ce(this.promise,oe())}return Z.prototype._enumerate=function(ie){for(var fe=0;this._state===L&&fe<ie.length;fe++)this._eachEntry(ie[fe],fe)},Z.prototype._eachEntry=function(ie,fe){var O=this._instanceConstructor,m=O.resolve;if(m===q){var S=void 0,F=void 0,U=!1;try{S=ie.then}catch(ee){U=!0,F=ee}if(S===N&&ie._state!==L)this._settledAt(ie._state,fe,ie._result);else if(typeof S!="function")this._remaining--,this._result[fe]=ie;else if(O===Se){var K=new O(D);U?Ce(K,F):ue(K,ie,S),this._willSettleAt(K,fe)}else this._willSettleAt(new O(function(ee){return ee(ie)}),fe)}else this._willSettleAt(m(ie),fe)},Z.prototype._settledAt=function(ie,fe,O){var m=this.promise;m._state===L&&(this._remaining--,ie===J?Ce(m,O):this._result[fe]=O),this._remaining===0&&Oe(m,this._result)},Z.prototype._willSettleAt=function(ie,fe){var O=this;He(ie,void 0,function(m){return O._settledAt(V,fe,m)},function(m){return O._settledAt(J,fe,m)})},Z}();function be(Z){return new de(this,Z).promise}function we(Z){var le=this;return b(Z)?new le(function(ie,fe){for(var O=Z.length,m=0;m<O;m++)le.resolve(Z[m]).then(ie,fe)}):new le(function(ie,fe){return fe(new TypeError("You must pass an array to race."))})}function Te(Z){var le=this,ie=new le(D);return Ce(ie,Z),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Se=function(){function Z(le){this[j]=z(),this._result=this._state=void 0,this._subscribers=[],D!==le&&(typeof le!="function"&&me(),this instanceof Z?Me(this,le):ye())}return Z.prototype.catch=function(ie){return this.then(null,ie)},Z.prototype.finally=function(ie){var fe=this,O=fe.constructor;return s(ie)?fe.then(function(m){return O.resolve(ie()).then(function(){return m})},function(m){return O.resolve(ie()).then(function(){throw m})}):fe.then(ie,ie)},Z}();Se.prototype.then=N,Se.all=be,Se.race=we,Se.resolve=q,Se.reject=Te,Se._setScheduler=e,Se._setAsap=d,Se._asap=r;function Be(){var Z=void 0;if(typeof Qe<"u")Z=Qe;else if(typeof self<"u")Z=self;else try{Z=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=Z.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}Z.Promise=Se}return Se.polyfill=Be,Se.Promise=Se,Se})})(Gr);var Kr=Gr.exports;Kr.polyfill();var Xe={};function Wr(t,i){return function(){return t.apply(i,arguments)}}const{toString:fo}=Object.prototype,{getPrototypeOf:Yn}=Object,wn=(t=>i=>{const p=fo.call(i);return t[p]||(t[p]=p.slice(8,-1).toLowerCase())})(Object.create(null)),Et=t=>(t=t.toLowerCase(),i=>wn(i)===t),En=t=>i=>typeof i===t,{isArray:Vt}=Array,sn=En("undefined");function po(t){return t!==null&&!sn(t)&&t.constructor!==null&&!sn(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Jr=Et("ArrayBuffer");function mo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Jr(t.buffer),i}const go=En("string"),ht=En("function"),Yr=En("number"),kn=t=>t!==null&&typeof t=="object",yo=t=>t===!0||t===!1,_n=t=>{if(wn(t)!=="object")return!1;const i=Yn(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},vo=Et("Date"),xo=Et("File"),So=Et("Blob"),bo=Et("FileList"),wo=t=>kn(t)&&ht(t.pipe),Eo=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=wn(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},ko=Et("URLSearchParams"),[_o,Co,Oo,Ro]=["ReadableStream","Request","Response","Headers"].map(Et),To=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(t,i,{allOwnKeys:p=!1}={}){if(t===null||typeof t>"u")return;let s,w;if(typeof t!="object"&&(t=[t]),Vt(t))for(s=0,w=t.length;s<w;s++)i.call(null,t[s],s,t);else{const b=p?Object.getOwnPropertyNames(t):Object.keys(t),c=b.length;let n;for(s=0;s<c;s++)n=b[s],i.call(null,t[n],n,t)}}function Zr(t,i){i=i.toLowerCase();const p=Object.keys(t);let s=p.length,w;for(;s-- >0;)if(w=p[s],i===w.toLowerCase())return w;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Qe,Qr=t=>!sn(t)&&t!==jt;function Zn(){const{caseless:t}=Qr(this)&&this||{},i={},p=(s,w)=>{const b=t&&Zr(i,w)||w;_n(i[b])&&_n(s)?i[b]=Zn(i[b],s):_n(s)?i[b]=Zn({},s):Vt(s)?i[b]=s.slice():i[b]=s};for(let s=0,w=arguments.length;s<w;s++)arguments[s]&&an(arguments[s],p);return i}const Po=(t,i,p,{allOwnKeys:s}={})=>(an(i,(w,b)=>{p&&ht(w)?t[b]=Wr(w,p):t[b]=w},{allOwnKeys:s}),t),Ao=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Io=(t,i,p,s)=>{t.prototype=Object.create(i.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),p&&Object.assign(t.prototype,p)},Fo=(t,i,p,s)=>{let w,b,c;const n={};if(i=i||{},t==null)return i;do{for(w=Object.getOwnPropertyNames(t),b=w.length;b-- >0;)c=w[b],(!s||s(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=p!==!1&&Yn(t)}while(t&&(!p||p(t,i))&&t!==Object.prototype);return i},Lo=(t,i,p)=>{t=String(t),(p===void 0||p>t.length)&&(p=t.length),p-=i.length;const s=t.indexOf(i,p);return s!==-1&&s===p},jo=t=>{if(!t)return null;if(Vt(t))return t;let i=t.length;if(!Yr(i))return null;const p=new Array(i);for(;i-- >0;)p[i]=t[i];return p},No=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Yn(Uint8Array)),Mo=(t,i)=>{const s=(t&&t[Symbol.iterator]).call(t);let w;for(;(w=s.next())&&!w.done;){const b=w.value;i.call(t,b[0],b[1])}},Bo=(t,i)=>{let p;const s=[];for(;(p=t.exec(i))!==null;)s.push(p);return s},Do=Et("HTMLFormElement"),Ho=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,s,w){return s.toUpperCase()+w}),Xr=(({hasOwnProperty:t})=>(i,p)=>t.call(i,p))(Object.prototype),Uo=Et("RegExp"),ei=(t,i)=>{const p=Object.getOwnPropertyDescriptors(t),s={};an(p,(w,b)=>{let c;(c=i(w,b,t))!==!1&&(s[b]=c||w)}),Object.defineProperties(t,s)},$o=t=>{ei(t,(i,p)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(p)!==-1)return!1;const s=t[p];if(ht(s)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+p+"'")})}})},qo=(t,i)=>{const p={},s=w=>{w.forEach(b=>{p[b]=!0})};return Vt(t)?s(t):s(String(t).split(i)),p},Vo=()=>{},zo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i,Qn="abcdefghijklmnopqrstuvwxyz",ti="0123456789",ni={DIGIT:ti,ALPHA:Qn,ALPHA_DIGIT:Qn+Qn.toUpperCase()+ti},Go=(t=16,i=ni.ALPHA_DIGIT)=>{let p="";const{length:s}=i;for(;t--;)p+=i[Math.random()*s|0];return p};function Ko(t){return!!(t&&ht(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Wo=t=>{const i=new Array(10),p=(s,w)=>{if(kn(s)){if(i.indexOf(s)>=0)return;if(!("toJSON"in s)){i[w]=s;const b=Vt(s)?[]:{};return an(s,(c,n)=>{const y=p(c,w+1);!sn(y)&&(b[n]=y)}),i[w]=void 0,b}}return s};return p(t,0)},Jo=Et("AsyncFunction"),Yo=t=>t&&(kn(t)||ht(t))&&ht(t.then)&&ht(t.catch),ri=((t,i)=>t?setImmediate:i?((p,s)=>(jt.addEventListener("message",({source:w,data:b})=>{w===jt&&b===p&&s.length&&s.shift()()},!1),w=>{s.push(w),jt.postMessage(p,"*")}))(`axios@${Math.random()}`,[]):p=>setTimeout(p))(typeof setImmediate=="function",ht(jt.postMessage)),Zo=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ri;var Q={isArray:Vt,isArrayBuffer:Jr,isBuffer:po,isFormData:Eo,isArrayBufferView:mo,isString:go,isNumber:Yr,isBoolean:yo,isObject:kn,isPlainObject:_n,isReadableStream:_o,isRequest:Co,isResponse:Oo,isHeaders:Ro,isUndefined:sn,isDate:vo,isFile:xo,isBlob:So,isRegExp:Uo,isFunction:ht,isStream:wo,isURLSearchParams:ko,isTypedArray:No,isFileList:bo,forEach:an,merge:Zn,extend:Po,trim:To,stripBOM:Ao,inherits:Io,toFlatObject:Fo,kindOf:wn,kindOfTest:Et,endsWith:Lo,toArray:jo,forEachEntry:Mo,matchAll:Bo,isHTMLForm:Do,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:ei,freezeMethods:$o,toObjectSet:qo,toCamelCase:Ho,noop:Vo,toFiniteNumber:zo,findKey:Zr,global:jt,isContextDefined:Qr,ALPHABET:ni,generateString:Go,isSpecCompliantForm:Ko,toJSONObject:Wo,isAsyncFn:Jo,isThenable:Yo,setImmediate:ri,asap:Zo};function Pe(t,i,p,s,w){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),p&&(this.config=p),s&&(this.request=s),w&&(this.response=w,this.status=w.status?w.status:null)}Q.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const ii=Pe.prototype,oi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{oi[t]={value:t}}),Object.defineProperties(Pe,oi),Object.defineProperty(ii,"isAxiosError",{value:!0}),Pe.from=(t,i,p,s,w,b)=>{const c=Object.create(ii);return Q.toFlatObject(t,c,function(y){return y!==Error.prototype},n=>n!=="isAxiosError"),Pe.call(c,t.message,i,p,s,w),c.cause=t,c.name=t.name,b&&Object.assign(c,b),c};var Qo=null;function Xn(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,p){return t?t.concat(i).map(function(w,b){return w=si(w),!p&&b?"["+w+"]":w}).join(p?".":""):i}function Xo(t){return Q.isArray(t)&&!t.some(Xn)}const es=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function Cn(t,i,p){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,p=Q.toFlatObject(p,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,v){return!Q.isUndefined(v[o])});const s=p.metaTokens,w=p.visitor||e,b=p.dots,c=p.indexes,y=(p.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(w))throw new TypeError("visitor must be a function");function r(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(!y&&Q.isBlob(a))throw new Pe("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?y&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,o,v){let f=a;if(a&&!v&&typeof a=="object"){if(Q.endsWith(o,"{}"))o=s?o:o.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&Xo(a)||(Q.isFileList(a)||Q.endsWith(o,"[]"))&&(f=Q.toArray(a)))return o=si(o),f.forEach(function(h,u){!(Q.isUndefined(h)||h===null)&&i.append(c===!0?ai([o],u,b):c===null?o:o+"[]",r(h))}),!1}return Xn(a)?!0:(i.append(ai(v,o,b),r(a)),!1)}const d=[],C=Object.assign(es,{defaultVisitor:e,convertValue:r,isVisitable:Xn});function l(a,o){if(!Q.isUndefined(a)){if(d.indexOf(a)!==-1)throw Error("Circular reference detected in "+o.join("."));d.push(a),Q.forEach(a,function(f,g){(!(Q.isUndefined(f)||f===null)&&w.call(i,f,Q.isString(g)?g.trim():g,o,C))===!0&&l(f,o?o.concat(g):[g])}),d.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return l(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return i[s]})}function er(t,i){this._pairs=[],t&&Cn(t,this,i)}const ci=er.prototype;ci.append=function(i,p){this._pairs.push([i,p])},ci.toString=function(i){const p=i?function(s){return i.call(this,s,li)}:li;return this._pairs.map(function(w){return p(w[0])+"="+p(w[1])},"").join("&")};function ts(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ui(t,i,p){if(!i)return t;const s=p&&p.encode||ts,w=p&&p.serialize;let b;if(w?b=w(i,p):b=Q.isURLSearchParams(i)?i.toString():new er(i,p).toString(s),b){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+b}return t}class ns{constructor(){this.handlers=[]}use(i,p,s){return this.handlers.push({fulfilled:i,rejected:p,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){Q.forEach(this.handlers,function(s){s!==null&&i(s)})}}var hi=ns,fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rs=typeof URLSearchParams<"u"?URLSearchParams:er,is=typeof FormData<"u"?FormData:null,os=typeof Blob<"u"?Blob:null,ss={isBrowser:!0,classes:{URLSearchParams:rs,FormData:is,Blob:os},protocols:["http","https","file","blob","url","data"]};const tr=typeof window<"u"&&typeof document<"u",nr=typeof navigator=="object"&&navigator||void 0,as=tr&&(!nr||["ReactNative","NativeScript","NS"].indexOf(nr.product)<0),ls=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cs=tr&&window.location.href||"http://localhost";var us=Object.freeze({__proto__:null,hasBrowserEnv:tr,hasStandardBrowserWebWorkerEnv:ls,hasStandardBrowserEnv:as,navigator:nr,origin:cs}),lt={...us,...ss};function hs(t,i){return Cn(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(p,s,w,b){return lt.isNode&&Q.isBuffer(p)?(this.append(s,p.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},i))}function fs(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function ds(t){const i={},p=Object.keys(t);let s;const w=p.length;let b;for(s=0;s<w;s++)b=p[s],i[b]=t[b];return i}function di(t){function i(p,s,w,b){let c=p[b++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),y=b>=p.length;return c=!c&&Q.isArray(w)?w.length:c,y?(Q.hasOwnProp(w,c)?w[c]=[w[c],s]:w[c]=s,!n):((!w[c]||!Q.isObject(w[c]))&&(w[c]=[]),i(p,s,w[c],b)&&Q.isArray(w[c])&&(w[c]=ds(w[c])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const p={};return Q.forEachEntry(t,(s,w)=>{i(fs(s),w,p,0)}),p}return null}function ps(t,i,p){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(t)}const rr={transitional:fi,adapter:["xhr","http","fetch"],transformRequest:[function(i,p){const s=p.getContentType()||"",w=s.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return w?JSON.stringify(di(i)):i;if(Q.isArrayBuffer(i)||Q.isBuffer(i)||Q.isStream(i)||Q.isFile(i)||Q.isBlob(i)||Q.isReadableStream(i))return i;if(Q.isArrayBufferView(i))return i.buffer;if(Q.isURLSearchParams(i))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(s.indexOf("application/x-www-form-urlencoded")>-1)return hs(i,this.formSerializer).toString();if((n=Q.isFileList(i))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Cn(n?{"files[]":i}:i,y&&new y,this.formSerializer)}}return b||w?(p.setContentType("application/json",!1),ps(i)):i}],transformResponse:[function(i){const p=this.transitional||rr.transitional,s=p&&p.forcedJSONParsing,w=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(s&&!this.responseType||w)){const c=!(p&&p.silentJSONParsing)&&w;try{return JSON.parse(i)}catch(n){if(c)throw n.name==="SyntaxError"?Pe.from(n,Pe.ERR_BAD_RESPONSE,this,null,this.response):n}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{rr.headers[t]={}});var ir=rr;const ms=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var gs=t=>{const i={};let p,s,w;return t&&t.split(`
37
- `).forEach(function(c){w=c.indexOf(":"),p=c.substring(0,w).trim().toLowerCase(),s=c.substring(w+1).trim(),!(!p||i[p]&&ms[p])&&(p==="set-cookie"?i[p]?i[p].push(s):i[p]=[s]:i[p]=i[p]?i[p]+", "+s:s)}),i};const pi=Symbol("internals");function ln(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:Q.isArray(t)?t.map(On):String(t)}function ys(t){const i=Object.create(null),p=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=p.exec(t);)i[s[1]]=s[2];return i}const vs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function or(t,i,p,s,w){if(Q.isFunction(s))return s.call(this,i,p);if(w&&(i=p),!!Q.isString(i)){if(Q.isString(s))return i.indexOf(s)!==-1;if(Q.isRegExp(s))return s.test(i)}}function xs(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,p,s)=>p.toUpperCase()+s)}function Ss(t,i){const p=Q.toCamelCase(" "+i);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+p,{value:function(w,b,c){return this[s].call(this,i,w,b,c)},configurable:!0})})}class Rn{constructor(i){i&&this.set(i)}set(i,p,s){const w=this;function b(n,y,r){const e=ln(y);if(!e)throw new Error("header name must be a non-empty string");const d=Q.findKey(w,e);(!d||w[d]===void 0||r===!0||r===void 0&&w[d]!==!1)&&(w[d||y]=On(n))}const c=(n,y)=>Q.forEach(n,(r,e)=>b(r,e,y));if(Q.isPlainObject(i)||i instanceof this.constructor)c(i,p);else if(Q.isString(i)&&(i=i.trim())&&!vs(i))c(gs(i),p);else if(Q.isHeaders(i))for(const[n,y]of i.entries())b(y,n,s);else i!=null&&b(p,i,s);return this}get(i,p){if(i=ln(i),i){const s=Q.findKey(this,i);if(s){const w=this[s];if(!p)return w;if(p===!0)return ys(w);if(Q.isFunction(p))return p.call(this,w,s);if(Q.isRegExp(p))return p.exec(w);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,p){if(i=ln(i),i){const s=Q.findKey(this,i);return!!(s&&this[s]!==void 0&&(!p||or(this,this[s],s,p)))}return!1}delete(i,p){const s=this;let w=!1;function b(c){if(c=ln(c),c){const n=Q.findKey(s,c);n&&(!p||or(s,s[n],n,p))&&(delete s[n],w=!0)}}return Q.isArray(i)?i.forEach(b):b(i),w}clear(i){const p=Object.keys(this);let s=p.length,w=!1;for(;s--;){const b=p[s];(!i||or(this,this[b],b,i,!0))&&(delete this[b],w=!0)}return w}normalize(i){const p=this,s={};return Q.forEach(this,(w,b)=>{const c=Q.findKey(s,b);if(c){p[c]=On(w),delete p[b];return}const n=i?xs(b):String(b).trim();n!==b&&delete p[b],p[n]=On(w),s[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const p=Object.create(null);return Q.forEach(this,(s,w)=>{s!=null&&s!==!1&&(p[w]=i&&Q.isArray(s)?s.join(", "):s)}),p}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,p])=>i+": "+p).join(`
38
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...p){const s=new this(i);return p.forEach(w=>s.set(w)),s}static accessor(i){const s=(this[pi]=this[pi]={accessors:{}}).accessors,w=this.prototype;function b(c){const n=ln(c);s[n]||(Ss(w,c),s[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}Rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Rn.prototype,({value:t},i)=>{let p=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(s){this[p]=s}}}),Q.freezeMethods(Rn);var kt=Rn;function sr(t,i){const p=this||ir,s=i||p,w=kt.from(s.headers);let b=s.data;return Q.forEach(t,function(n){b=n.call(p,b,w.normalize(),i?i.status:void 0)}),w.normalize(),b}function mi(t){return!!(t&&t.__CANCEL__)}function zt(t,i,p){Pe.call(this,t??"canceled",Pe.ERR_CANCELED,i,p),this.name="CanceledError"}Q.inherits(zt,Pe,{__CANCEL__:!0});function gi(t,i,p){const s=p.config.validateStatus;!p.status||!s||s(p.status)?t(p):i(new Pe("Request failed with status code "+p.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(p.status/100)-4],p.config,p.request,p))}function bs(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function ws(t,i){t=t||10;const p=new Array(t),s=new Array(t);let w=0,b=0,c;return i=i!==void 0?i:1e3,function(y){const r=Date.now(),e=s[b];c||(c=r),p[w]=y,s[w]=r;let d=b,C=0;for(;d!==w;)C+=p[d++],d=d%t;if(w=(w+1)%t,w===b&&(b=(b+1)%t),r-c<i)return;const l=e&&r-e;return l?Math.round(C*1e3/l):void 0}}function Es(t,i){let p=0,s=1e3/i,w,b;const c=(r,e=Date.now())=>{p=e,w=null,b&&(clearTimeout(b),b=null),t.apply(null,r)};return[(...r)=>{const e=Date.now(),d=e-p;d>=s?c(r,e):(w=r,b||(b=setTimeout(()=>{b=null,c(w)},s-d)))},()=>w&&c(w)]}const Tn=(t,i,p=3)=>{let s=0;const w=ws(50,250);return Es(b=>{const c=b.loaded,n=b.lengthComputable?b.total:void 0,y=c-s,r=w(y),e=c<=n;s=c;const d={loaded:c,total:n,progress:n?c/n:void 0,bytes:y,rate:r||void 0,estimated:r&&n&&e?(n-c)/r:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(d)},p)},yi=(t,i)=>{const p=t!=null;return[s=>i[0]({lengthComputable:p,total:t,loaded:s}),i[1]]},vi=t=>(...i)=>Q.asap(()=>t(...i));var ks=lt.hasStandardBrowserEnv?function(){const i=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),p=document.createElement("a");let s;function w(b){let c=b;return i&&(p.setAttribute("href",c),c=p.href),p.setAttribute("href",c),{href:p.href,protocol:p.protocol?p.protocol.replace(/:$/,""):"",host:p.host,search:p.search?p.search.replace(/^\?/,""):"",hash:p.hash?p.hash.replace(/^#/,""):"",hostname:p.hostname,port:p.port,pathname:p.pathname.charAt(0)==="/"?p.pathname:"/"+p.pathname}}return s=w(window.location.href),function(c){const n=Q.isString(c)?w(c):c;return n.protocol===s.protocol&&n.host===s.host}}():function(){return function(){return!0}}(),_s=lt.hasStandardBrowserEnv?{write(t,i,p,s,w,b){const c=[t+"="+encodeURIComponent(i)];Q.isNumber(p)&&c.push("expires="+new Date(p).toGMTString()),Q.isString(s)&&c.push("path="+s),Q.isString(w)&&c.push("domain="+w),b===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Cs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Os(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function xi(t,i){return t&&!Cs(i)?Os(t,i):i}const Si=t=>t instanceof kt?{...t}:t;function Nt(t,i){i=i||{};const p={};function s(r,e,d){return Q.isPlainObject(r)&&Q.isPlainObject(e)?Q.merge.call({caseless:d},r,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function w(r,e,d){if(Q.isUndefined(e)){if(!Q.isUndefined(r))return s(void 0,r,d)}else return s(r,e,d)}function b(r,e){if(!Q.isUndefined(e))return s(void 0,e)}function c(r,e){if(Q.isUndefined(e)){if(!Q.isUndefined(r))return s(void 0,r)}else return s(void 0,e)}function n(r,e,d){if(d in i)return s(r,e);if(d in t)return s(void 0,r)}const y={url:b,method:b,data:b,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:n,headers:(r,e)=>w(Si(r),Si(e),!0)};return Q.forEach(Object.keys(Object.assign({},t,i)),function(e){const d=y[e]||w,C=d(t[e],i[e],e);Q.isUndefined(C)&&d!==n||(p[e]=C)}),p}var bi=t=>{const i=Nt({},t);let{data:p,withXSRFToken:s,xsrfHeaderName:w,xsrfCookieName:b,headers:c,auth:n}=i;i.headers=c=kt.from(c),i.url=ui(xi(i.baseURL,i.url),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let y;if(Q.isFormData(p)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[r,...e]=y?y.split(";").map(d=>d.trim()).filter(Boolean):[];c.setContentType([r||"multipart/form-data",...e].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&Q.isFunction(s)&&(s=s(i)),s||s!==!1&&ks(i.url))){const r=w&&b&&_s.read(b);r&&c.set(w,r)}return i},Rs=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(p,s){const w=bi(t);let b=w.data;const c=kt.from(w.headers).normalize();let{responseType:n,onUploadProgress:y,onDownloadProgress:r}=w,e,d,C,l,a;function o(){l&&l(),a&&a(),w.cancelToken&&w.cancelToken.unsubscribe(e),w.signal&&w.signal.removeEventListener("abort",e)}let v=new XMLHttpRequest;v.open(w.method.toUpperCase(),w.url,!0),v.timeout=w.timeout;function f(){if(!v)return;const h=kt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:h,config:t,request:v};gi(function(A){p(A),o()},function(A){s(A),o()},_),v=null}"onloadend"in v?v.onloadend=f:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(f)},v.onabort=function(){v&&(s(new Pe("Request aborted",Pe.ECONNABORTED,t,v)),v=null)},v.onerror=function(){s(new Pe("Network Error",Pe.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let u=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded";const _=w.transitional||fi;w.timeoutErrorMessage&&(u=w.timeoutErrorMessage),s(new Pe(u,_.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,t,v)),v=null},b===void 0&&c.setContentType(null),"setRequestHeader"in v&&Q.forEach(c.toJSON(),function(u,_){v.setRequestHeader(_,u)}),Q.isUndefined(w.withCredentials)||(v.withCredentials=!!w.withCredentials),n&&n!=="json"&&(v.responseType=w.responseType),r&&([C,a]=Tn(r,!0),v.addEventListener("progress",C)),y&&v.upload&&([d,l]=Tn(y),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",l)),(w.cancelToken||w.signal)&&(e=h=>{v&&(s(!h||h.type?new zt(null,t,v):h),v.abort(),v=null)},w.cancelToken&&w.cancelToken.subscribe(e),w.signal&&(w.signal.aborted?e():w.signal.addEventListener("abort",e)));const g=bs(w.url);if(g&&lt.protocols.indexOf(g)===-1){s(new Pe("Unsupported protocol "+g+":",Pe.ERR_BAD_REQUEST,t));return}v.send(b||null)})},Ts=(t,i)=>{const{length:p}=t=t?t.filter(Boolean):[];if(i||p){let s=new AbortController,w;const b=function(r){if(!w){w=!0,n();const e=r instanceof Error?r:this.reason;s.abort(e instanceof Pe?e:new zt(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,b(new Pe(`timeout ${i} of ms exceeded`,Pe.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(r=>{r.unsubscribe?r.unsubscribe(b):r.removeEventListener("abort",b)}),t=null)};t.forEach(r=>r.addEventListener("abort",b));const{signal:y}=s;return y.unsubscribe=()=>Q.asap(n),y}};const Ps=function*(t,i){let p=t.byteLength;if(p<i){yield t;return}let s=0,w;for(;s<p;)w=s+i,yield t.slice(s,w),s=w},As=async function*(t,i){for await(const p of Is(t))yield*Ps(p,i)},Is=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:p,value:s}=await i.read();if(p)break;yield s}}finally{await i.cancel()}},wi=(t,i,p,s)=>{const w=As(t,i);let b=0,c,n=y=>{c||(c=!0,s&&s(y))};return new ReadableStream({async pull(y){try{const{done:r,value:e}=await w.next();if(r){n(),y.close();return}let d=e.byteLength;if(p){let C=b+=d;p(C)}y.enqueue(new Uint8Array(e))}catch(r){throw n(r),r}},cancel(y){return n(y),w.return()}},{highWaterMark:2})},Pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ei=Pn&&typeof ReadableStream=="function",Fs=Pn&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ki=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Ls=Ei&&ki(()=>{let t=!1;const i=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),_i=64*1024,ar=Ei&&ki(()=>Q.isReadableStream(new Response("").body)),An={stream:ar&&(t=>t.body)};Pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!An[i]&&(An[i]=Q.isFunction(t[i])?p=>p[i]():(p,s)=>{throw new Pe(`Response type '${i}' is not supported`,Pe.ERR_NOT_SUPPORT,s)})})})(new Response);const js=async t=>{if(t==null)return 0;if(Q.isBlob(t))return t.size;if(Q.isSpecCompliantForm(t))return(await new Request(lt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(t)||Q.isArrayBuffer(t))return t.byteLength;if(Q.isURLSearchParams(t)&&(t=t+""),Q.isString(t))return(await Fs(t)).byteLength},Ns=async(t,i)=>{const p=Q.toFiniteNumber(t.getContentLength());return p??js(i)};var Ms=Pn&&(async t=>{let{url:i,method:p,data:s,signal:w,cancelToken:b,timeout:c,onDownloadProgress:n,onUploadProgress:y,responseType:r,headers:e,withCredentials:d="same-origin",fetchOptions:C}=bi(t);r=r?(r+"").toLowerCase():"text";let l=Ts([w,b&&b.toAbortSignal()],c),a;const o=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let v;try{if(y&&Ls&&p!=="get"&&p!=="head"&&(v=await Ns(e,s))!==0){let _=new Request(i,{method:"POST",body:s,duplex:"half"}),k;if(Q.isFormData(s)&&(k=_.headers.get("content-type"))&&e.setContentType(k),_.body){const[A,I]=yi(v,Tn(vi(y)));s=wi(_.body,_i,A,I)}}Q.isString(d)||(d=d?"include":"omit");const f="credentials"in Request.prototype;a=new Request(i,{...C,signal:l,method:p.toUpperCase(),headers:e.normalize().toJSON(),body:s,duplex:"half",credentials:f?d:void 0});let g=await fetch(a);const h=ar&&(r==="stream"||r==="response");if(ar&&(n||h&&o)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=g[P]});const k=Q.toFiniteNumber(g.headers.get("content-length")),[A,I]=n&&yi(k,Tn(vi(n),!0))||[];g=new Response(wi(g.body,_i,A,()=>{I&&I(),o&&o()}),_)}r=r||"text";let u=await An[Q.findKey(An,r)||"text"](g,t);return!h&&o&&o(),await new Promise((_,k)=>{gi(_,k,{data:u,headers:kt.from(g.headers),status:g.status,statusText:g.statusText,config:t,request:a})})}catch(f){throw o&&o(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,t,a),{cause:f.cause||f}):Pe.from(f,f&&f.code,t,a)}});const lr={http:Qo,xhr:Rs,fetch:Ms};Q.forEach(lr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Ci=t=>`- ${t}`,Bs=t=>Q.isFunction(t)||t===null||t===!1;var Oi={getAdapter:t=>{t=Q.isArray(t)?t:[t];const{length:i}=t;let p,s;const w={};for(let b=0;b<i;b++){p=t[b];let c;if(s=p,!Bs(p)&&(s=lr[(c=String(p)).toLowerCase()],s===void 0))throw new Pe(`Unknown adapter '${c}'`);if(s)break;w[c||"#"+b]=s}if(!s){const b=Object.entries(w).map(([n,y])=>`adapter ${n} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=i?b.length>1?`since :
39
- `+b.map(Ci).join(`
40
- `):" "+Ci(b[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:lr};function cr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zt(null,t)}function Ri(t){return cr(t),t.headers=kt.from(t.headers),t.data=sr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Oi.getAdapter(t.adapter||ir.adapter)(t).then(function(s){return cr(t),s.data=sr.call(t,t.transformResponse,s),s.headers=kt.from(s.headers),s},function(s){return mi(s)||(cr(t),s&&s.response&&(s.response.data=sr.call(t,t.transformResponse,s.response),s.response.headers=kt.from(s.response.headers))),Promise.reject(s)})}const Ti="1.7.7",ur={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{ur[t]=function(s){return typeof s===t||"a"+(i<1?"n ":" ")+t}});const Pi={};ur.transitional=function(i,p,s){function w(b,c){return"[Axios v"+Ti+"] Transitional option '"+b+"'"+c+(s?". "+s:"")}return(b,c,n)=>{if(i===!1)throw new Pe(w(c," has been removed"+(p?" in "+p:"")),Pe.ERR_DEPRECATED);return p&&!Pi[c]&&(Pi[c]=!0,console.warn(w(c," has been deprecated since v"+p+" and will be removed in the near future"))),i?i(b,c,n):!0}};function Ds(t,i,p){if(typeof t!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let w=s.length;for(;w-- >0;){const b=s[w],c=i[b];if(c){const n=t[b],y=n===void 0||c(n,b,t);if(y!==!0)throw new Pe("option "+b+" must be "+y,Pe.ERR_BAD_OPTION_VALUE);continue}if(p!==!0)throw new Pe("Unknown option "+b,Pe.ERR_BAD_OPTION)}}var hr={assertOptions:Ds,validators:ur};const Pt=hr.validators;class In{constructor(i){this.defaults=i,this.interceptors={request:new hi,response:new hi}}async request(i,p){try{return await this._request(i,p)}catch(s){if(s instanceof Error){let w;Error.captureStackTrace?Error.captureStackTrace(w={}):w=new Error;const b=w.stack?w.stack.replace(/^.+\n/,""):"";try{s.stack?b&&!String(s.stack).endsWith(b.replace(/^.+\n.+\n/,""))&&(s.stack+=`
41
- `+b):s.stack=b}catch{}}throw s}}_request(i,p){typeof i=="string"?(p=p||{},p.url=i):p=i||{},p=Nt(this.defaults,p);const{transitional:s,paramsSerializer:w,headers:b}=p;s!==void 0&&hr.assertOptions(s,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),w!=null&&(Q.isFunction(w)?p.paramsSerializer={serialize:w}:hr.assertOptions(w,{encode:Pt.function,serialize:Pt.function},!0)),p.method=(p.method||this.defaults.method||"get").toLowerCase();let c=b&&Q.merge(b.common,b[p.method]);b&&Q.forEach(["delete","get","head","post","put","patch","common"],a=>{delete b[a]}),p.headers=kt.concat(c,b);const n=[];let y=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(p)===!1||(y=y&&o.synchronous,n.unshift(o.fulfilled,o.rejected))});const r=[];this.interceptors.response.forEach(function(o){r.push(o.fulfilled,o.rejected)});let e,d=0,C;if(!y){const a=[Ri.bind(this),void 0];for(a.unshift.apply(a,n),a.push.apply(a,r),C=a.length,e=Promise.resolve(p);d<C;)e=e.then(a[d++],a[d++]);return e}C=n.length;let l=p;for(d=0;d<C;){const a=n[d++],o=n[d++];try{l=a(l)}catch(v){o.call(this,v);break}}try{e=Ri.call(this,l)}catch(a){return Promise.reject(a)}for(d=0,C=r.length;d<C;)e=e.then(r[d++],r[d++]);return e}getUri(i){i=Nt(this.defaults,i);const p=xi(i.baseURL,i.url);return ui(p,i.params,i.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(i){In.prototype[i]=function(p,s){return this.request(Nt(s||{},{method:i,url:p,data:(s||{}).data}))}}),Q.forEach(["post","put","patch"],function(i){function p(s){return function(b,c,n){return this.request(Nt(n||{},{method:i,headers:s?{"Content-Type":"multipart/form-data"}:{},url:b,data:c}))}}In.prototype[i]=p(),In.prototype[i+"Form"]=p(!0)});var Fn=In;class fr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let p;this.promise=new Promise(function(b){p=b});const s=this;this.promise.then(w=>{if(!s._listeners)return;let b=s._listeners.length;for(;b-- >0;)s._listeners[b](w);s._listeners=null}),this.promise.then=w=>{let b;const c=new Promise(n=>{s.subscribe(n),b=n}).then(w);return c.cancel=function(){s.unsubscribe(b)},c},i(function(b,c,n){s.reason||(s.reason=new zt(b,c,n),p(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const p=this._listeners.indexOf(i);p!==-1&&this._listeners.splice(p,1)}toAbortSignal(){const i=new AbortController,p=s=>{i.abort(s)};return this.subscribe(p),i.signal.unsubscribe=()=>this.unsubscribe(p),i.signal}static source(){let i;return{token:new fr(function(w){i=w}),cancel:i}}}var Hs=fr;function Us(t){return function(p){return t.apply(null,p)}}function $s(t){return Q.isObject(t)&&t.isAxiosError===!0}const dr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dr).forEach(([t,i])=>{dr[i]=t});var qs=dr;function Ai(t){const i=new Fn(t),p=Wr(Fn.prototype.request,i);return Q.extend(p,Fn.prototype,i,{allOwnKeys:!0}),Q.extend(p,i,null,{allOwnKeys:!0}),p.create=function(w){return Ai(Nt(t,w))},p}const Ze=Ai(ir);Ze.Axios=Fn,Ze.CanceledError=zt,Ze.CancelToken=Hs,Ze.isCancel=mi,Ze.VERSION=Ti,Ze.toFormData=Cn,Ze.AxiosError=Pe,Ze.Cancel=Ze.CanceledError,Ze.all=function(i){return Promise.all(i)},Ze.spread=Us,Ze.isAxiosError=$s,Ze.mergeConfig=Nt,Ze.AxiosHeaders=kt,Ze.formToJSON=t=>di(Q.isHTMLForm(t)?new FormData(t):t),Ze.getAdapter=Oi.getAdapter,Ze.HttpStatusCode=qs,Ze.default=Ze;var Ii=Ze,Vs=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.RESPONSE_SERVER_ERROR=Xe.RESPONSE_BAD_REQUEST=Xe.setRequestInterceptor=Xe.conversationalSearchInteractionsInstance=Xe.statsInstance=Xe.apiInstance=void 0;const pr=Vs(Ii),Fi=pr.default.create();Xe.apiInstance=Fi;const Li=pr.default.create();Xe.statsInstance=Li;const zs=pr.default.create();Xe.conversationalSearchInteractionsInstance=zs;const Gs=400;Xe.RESPONSE_BAD_REQUEST=Gs;const Ks=500;Xe.RESPONSE_SERVER_ERROR=Ks;const Ws=(t,i)=>{(i==="searchApi"?Fi:Li).interceptors.request.use(s=>{const w=t({url:s.url,headers:s.headers});return s=Object.assign(Object.assign({},s),w),s},s=>Promise.reject(new Error(JSON.stringify(s))))};Xe.setRequestInterceptor=Ws,Object.defineProperty(Jn,"__esModule",{value:!0});const Gt=Xe,ji=function(t,i,p,s,w,b,c,n){const y=function(l,a){return l||l===!1?"&"+a+"="+l:""};if(p!=="search"&&p!=="conversational-search"&&p!=="suggest"&&p!=="autocomplete"&&p!=="recommend"){w({error:{response:Gt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let r="",e="",d=null,C=null;if(p==="search"){C=p,r=s==null?void 0:s.keyword,r=s!=null&&s.enableLogicalOperators?r.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):r.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),r=encodeURIComponent(r);let l=s==null?void 0:s.fuzzy;if(l==="retry"&&(b!==!0?l=!1:l=!0),e=y(s==null?void 0:s.lang,"lang")+y(l,"fuzzy")+y(s==null?void 0:s.collectAnalytics,"collectAnalytics")+y(s==null?void 0:s.postfixWildcard,"postfixWildcard")+y(s==null?void 0:s.categories,"categories")+y(s==null?void 0:s.priceFromCents,"priceFromCents")+y(s==null?void 0:s.priceToCents,"priceToCents")+y(s==null?void 0:s.dateFrom,"dateFrom")+y(s==null?void 0:s.dateTo,"dateTo")+y(s==null?void 0:s.paging.page,"page")+y(s==null?void 0:s.paging.pageSize,"limit")+y(s==null?void 0:s.shuffleAndLimitTo,"shuffleAndLimitTo")+y(s==null?void 0:s.jwt,"jwt")+y(s==null?void 0:s.resultType,"resultType")+y(s==null?void 0:s.userToken,"userToken")+y(s==null?void 0:s.numFacets,"numFacets")+y(s==null?void 0:s.cacheResponseTime,"cacheResponseWithTtlSeconds")+y(s==null?void 0:s.searchOperator,"defaultOperator")+y(s==null?void 0:s.analyticsTag,"analyticsTag"),Array.isArray(s==null?void 0:s.paging.sortBy)?s==null||s.paging.sortBy.forEach(function(a,o){e=e+y(a,"sort")+y(s==null?void 0:s.paging.sortOrder[o],"order")}):e=e+y(s==null?void 0:s.paging.sortBy,"sort")+y(s==null?void 0:s.paging.sortOrder,"order"),s!=null&&s.customFieldFilters)for(let a=0;a<(s==null?void 0:s.customFieldFilters.length);a++)e=e+"&customField="+(s==null?void 0:s.customFieldFilters[a]);if(s!=null&&s.facetFields)for(let a=0;a<(s==null?void 0:s.facetFields.length);a++)e=e+"&facet="+(s==null?void 0:s.facetFields[a]);if(s!=null&&s.rangeFacets&&(e=e+"&rangeFacets="+encodeURIComponent(JSON.stringify(s==null?void 0:s.rangeFacets))),s!=null&&s.hierarchicalFacetSetting&&(e=e+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(s==null?void 0:s.hierarchicalFacetSetting))),s!=null&&s.statsFields)for(let a=0;a<(s==null?void 0:s.statsFields.length);a++)e=e+"&fieldStat="+(s==null?void 0:s.statsFields[a]);if(s!=null&&s.personalizationEvents&&Array.isArray(s==null?void 0:s.personalizationEvents))for(let a=0;a<(s==null?void 0:s.personalizationEvents.length);a++){const o=s==null?void 0:s.personalizationEvents[a],v=Object.keys(o)[0];e=e+"&personalizationEvent="+encodeURIComponent(v+"="+o[v])}c?e=e+"&filter="+encodeURIComponent(JSON.stringify(c)):s!=null&&s.filterObject&&(e=e+"&filter="+encodeURIComponent(JSON.stringify(s==null?void 0:s.filterObject))),d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e}else p==="conversational-search"?Gt.apiInstance.post(`https://api.addsearch.com/v2/indices/${i}/conversations`,{question:s==null?void 0:s.keyword}).then(function(l){l.data.response?w(l.data.response):w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"Could not get conversational search response in the expected data format"}})}).catch(function(l){console.error(l),w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):p==="suggest"?(C=p,e=y(s==null?void 0:s.suggestionsSize,"size")+y(s==null?void 0:s.lang,"language"),r=s==null?void 0:s.suggestionsPrefix,d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="autocomplete"?(C="autocomplete/document-field",e=y(s==null?void 0:s.autocomplete.field,"source")+y(s==null?void 0:s.autocomplete.size,"size"),r=(s==null?void 0:s.autocomplete.prefix)||"",d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(e=y(n.itemId,"itemId"),C="recommendations/index/"+i+"/block/"+n.blockId+"?"+e):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(e=y(n.itemId,"itemId"),C="recommendations/"+i+"?configurationKey="+n.configurationKey+e),d="https://"+t+"/v1/"+C);p!=="conversational-search"&&Gt.apiInstance.get(d).then(function(l){var a,o,v;const f=l.data;p==="search"&&(s==null?void 0:s.fuzzy)==="retry"&&f.total_hits===0&&b!==!0?ji(t,i,p,s,w,!0):(b===!0&&(f.total_hits=Math.min((a=f.total_hits)!==null&&a!==void 0?a:1/0,(v=(o=s==null?void 0:s.paging)===null||o===void 0?void 0:o.pageSize)!==null&&v!==void 0?v:1/0)),w(f))}).catch(function(l){console.error(l),w({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})})};Jn.default=ji;var ft={},dt={},Ni={},Ln={};Ln.byteLength=Zs,Ln.toByteArray=Xs,Ln.fromByteArray=na;for(var _t=[],pt=[],Js=typeof Uint8Array<"u"?Uint8Array:Array,mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kt=0,Ys=mr.length;Kt<Ys;++Kt)_t[Kt]=mr[Kt],pt[mr.charCodeAt(Kt)]=Kt;pt[45]=62,pt[95]=63;function Mi(t){var i=t.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=t.indexOf("=");p===-1&&(p=i);var s=p===i?0:4-p%4;return[p,s]}function Zs(t){var i=Mi(t),p=i[0],s=i[1];return(p+s)*3/4-s}function Qs(t,i,p){return(i+p)*3/4-p}function Xs(t){var i,p=Mi(t),s=p[0],w=p[1],b=new Js(Qs(t,s,w)),c=0,n=w>0?s-4:s,y;for(y=0;y<n;y+=4)i=pt[t.charCodeAt(y)]<<18|pt[t.charCodeAt(y+1)]<<12|pt[t.charCodeAt(y+2)]<<6|pt[t.charCodeAt(y+3)],b[c++]=i>>16&255,b[c++]=i>>8&255,b[c++]=i&255;return w===2&&(i=pt[t.charCodeAt(y)]<<2|pt[t.charCodeAt(y+1)]>>4,b[c++]=i&255),w===1&&(i=pt[t.charCodeAt(y)]<<10|pt[t.charCodeAt(y+1)]<<4|pt[t.charCodeAt(y+2)]>>2,b[c++]=i>>8&255,b[c++]=i&255),b}function ea(t){return _t[t>>18&63]+_t[t>>12&63]+_t[t>>6&63]+_t[t&63]}function ta(t,i,p){for(var s,w=[],b=i;b<p;b+=3)s=(t[b]<<16&16711680)+(t[b+1]<<8&65280)+(t[b+2]&255),w.push(ea(s));return w.join("")}function na(t){for(var i,p=t.length,s=p%3,w=[],b=16383,c=0,n=p-s;c<n;c+=b)w.push(ta(t,c,c+b>n?n:c+b));return s===1?(i=t[p-1],w.push(_t[i>>2]+_t[i<<4&63]+"==")):s===2&&(i=(t[p-2]<<8)+t[p-1],w.push(_t[i>>10]+_t[i>>4&63]+_t[i<<2&63]+"=")),w.join("")}var gr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */gr.read=function(t,i,p,s,w){var b,c,n=w*8-s-1,y=(1<<n)-1,r=y>>1,e=-7,d=p?w-1:0,C=p?-1:1,l=t[i+d];for(d+=C,b=l&(1<<-e)-1,l>>=-e,e+=n;e>0;b=b*256+t[i+d],d+=C,e-=8);for(c=b&(1<<-e)-1,b>>=-e,e+=s;e>0;c=c*256+t[i+d],d+=C,e-=8);if(b===0)b=1-r;else{if(b===y)return c?NaN:(l?-1:1)*(1/0);c=c+Math.pow(2,s),b=b-r}return(l?-1:1)*c*Math.pow(2,b-s)},gr.write=function(t,i,p,s,w,b){var c,n,y,r=b*8-w-1,e=(1<<r)-1,d=e>>1,C=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=s?0:b-1,a=s?1:-1,o=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(n=isNaN(i)?1:0,c=e):(c=Math.floor(Math.log(i)/Math.LN2),i*(y=Math.pow(2,-c))<1&&(c--,y*=2),c+d>=1?i+=C/y:i+=C*Math.pow(2,1-d),i*y>=2&&(c++,y/=2),c+d>=e?(n=0,c=e):c+d>=1?(n=(i*y-1)*Math.pow(2,w),c=c+d):(n=i*Math.pow(2,d-1)*Math.pow(2,w),c=0));w>=8;t[p+l]=n&255,l+=a,n/=256,w-=8);for(c=c<<w|n,r+=w;r>0;t[p+l]=c&255,l+=a,c/=256,r-=8);t[p+l-a]|=o*128};/*!
36
+ */(function(t,i){(function(p,o){t.exports=o()})(Ze,function(){function p(Q){var le=typeof Q;return Q!==null&&(le==="object"||le==="function")}function o(Q){return typeof Q=="function"}var E=void 0;Array.isArray?E=Array.isArray:E=function(Q){return Object.prototype.toString.call(Q)==="[object Array]"};var w=E,c=0,n=void 0,y=void 0,r=function(le,ie){S[c]=le,S[c+1]=ie,c+=2,c===2&&(y?y(I):P())};function e(Q){y=Q}function d(Q){r=Q}var C=typeof window<"u"?window:void 0,l=C||{},a=l.MutationObserver||l.WebKitMutationObserver,s=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",v=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function f(){return function(){return process.nextTick(I)}}function g(){return typeof n<"u"?function(){n(I)}:_()}function h(){var Q=0,le=new a(I),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=Q=++Q%2}}function u(){var Q=new MessageChannel;return Q.port1.onmessage=I,function(){return Q.port2.postMessage(0)}}function _(){var Q=setTimeout;return function(){return Q(I,1)}}var S=new Array(1e3);function I(){for(var Q=0;Q<c;Q+=2){var le=S[Q],ie=S[Q+1];le(ie),S[Q]=void 0,S[Q+1]=void 0}c=0}function T(){try{var Q=Function("return this")().require("vertx");return n=Q.runOnLoop||Q.runOnContext,g()}catch{return _()}}var P=void 0;s?P=f():a?P=h():v?P=u():C===void 0&&typeof hs=="function"?P=T():P=_();function N(Q,le){var ie=this,fe=new this.constructor(D);fe[j]===void 0&&H(fe);var O=ie._state;if(O){var m=arguments[O-1];r(function(){return Ke(O,fe,m,ie._result)})}else He(ie,fe,Q,le);return fe}function q(Q){var le=this;if(Q&&typeof Q=="object"&&Q.constructor===le)return Q;var ie=new le(D);return xe(ie,Q),ie}var j=Math.random().toString(36).substring(2);function D(){}var L=void 0,V=1,J=2;function oe(){return new TypeError("You cannot resolve a promise with itself")}function ne(){return new TypeError("A promises callback cannot return that same promise.")}function Y(Q,le,ie,fe){try{Q.call(le,ie,fe)}catch(O){return O}}function W(Q,le,ie){r(function(fe){var O=!1,m=Y(ie,le,function(b){O||(O=!0,le!==b?xe(fe,b):Oe(fe,b))},function(b){O||(O=!0,Ce(fe,b))},"Settle: "+(fe._label||" unknown promise"));!O&&m&&(O=!0,Ce(fe,m))},Q)}function X(Q,le){le._state===V?Oe(Q,le._result):le._state===J?Ce(Q,le._result):He(le,void 0,function(ie){return xe(Q,ie)},function(ie){return Ce(Q,ie)})}function ue(Q,le,ie){le.constructor===Q.constructor&&ie===N&&le.constructor.resolve===q?X(Q,le):ie===void 0?Oe(Q,le):o(ie)?W(Q,le,ie):Oe(Q,le)}function xe(Q,le){if(Q===le)Ce(Q,oe());else if(p(le)){var ie=void 0;try{ie=le.then}catch(fe){Ce(Q,fe);return}ue(Q,le,ie)}else Oe(Q,le)}function Ae(Q){Q._onerror&&Q._onerror(Q._result),Fe(Q)}function Oe(Q,le){Q._state===L&&(Q._result=le,Q._state=V,Q._subscribers.length!==0&&r(Fe,Q))}function Ce(Q,le){Q._state===L&&(Q._state=J,Q._result=le,r(Ae,Q))}function He(Q,le,ie,fe){var O=Q._subscribers,m=O.length;Q._onerror=null,O[m]=le,O[m+V]=ie,O[m+J]=fe,m===0&&Q._state&&r(Fe,Q)}function Fe(Q){var le=Q._subscribers,ie=Q._state;if(le.length!==0){for(var fe=void 0,O=void 0,m=Q._result,b=0;b<le.length;b+=3)fe=le[b],O=le[b+ie],fe?Ke(ie,fe,O,m):O(m);Q._subscribers.length=0}}function Ke(Q,le,ie,fe){var O=o(ie),m=void 0,b=void 0,F=!0;if(O){try{m=ie(fe)}catch(U){F=!1,b=U}if(le===m){Ce(le,ne());return}}else m=fe;le._state!==L||(O&&F?xe(le,m):F===!1?Ce(le,b):Q===V?Oe(le,m):Q===J&&Ce(le,m))}function Me(Q,le){try{le(function(fe){xe(Q,fe)},function(fe){Ce(Q,fe)})}catch(ie){Ce(Q,ie)}}var We=0;function z(){return We++}function H(Q){Q[j]=We++,Q._state=void 0,Q._result=void 0,Q._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var de=function(){function Q(le,ie){this._instanceConstructor=le,this.promise=new le(D),this.promise[j]||H(this.promise),w(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Oe(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Oe(this.promise,this._result))):Ce(this.promise,se())}return Q.prototype._enumerate=function(ie){for(var fe=0;this._state===L&&fe<ie.length;fe++)this._eachEntry(ie[fe],fe)},Q.prototype._eachEntry=function(ie,fe){var O=this._instanceConstructor,m=O.resolve;if(m===q){var b=void 0,F=void 0,U=!1;try{b=ie.then}catch(ee){U=!0,F=ee}if(b===N&&ie._state!==L)this._settledAt(ie._state,fe,ie._result);else if(typeof b!="function")this._remaining--,this._result[fe]=ie;else if(O===be){var K=new O(D);U?Ce(K,F):ue(K,ie,b),this._willSettleAt(K,fe)}else this._willSettleAt(new O(function(ee){return ee(ie)}),fe)}else this._willSettleAt(m(ie),fe)},Q.prototype._settledAt=function(ie,fe,O){var m=this.promise;m._state===L&&(this._remaining--,ie===J?Ce(m,O):this._result[fe]=O),this._remaining===0&&Oe(m,this._result)},Q.prototype._willSettleAt=function(ie,fe){var O=this;He(ie,void 0,function(m){return O._settledAt(V,fe,m)},function(m){return O._settledAt(J,fe,m)})},Q}();function we(Q){return new de(this,Q).promise}function Se(Q){var le=this;return w(Q)?new le(function(ie,fe){for(var O=Q.length,m=0;m<O;m++)le.resolve(Q[m]).then(ie,fe)}):new le(function(ie,fe){return fe(new TypeError("You must pass an array to race."))})}function Re(Q){var le=this,ie=new le(D);return Ce(ie,Q),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var be=function(){function Q(le){this[j]=z(),this._result=this._state=void 0,this._subscribers=[],D!==le&&(typeof le!="function"&&me(),this instanceof Q?Me(this,le):ye())}return Q.prototype.catch=function(ie){return this.then(null,ie)},Q.prototype.finally=function(ie){var fe=this,O=fe.constructor;return o(ie)?fe.then(function(m){return O.resolve(ie()).then(function(){return m})},function(m){return O.resolve(ie()).then(function(){throw m})}):fe.then(ie,ie)},Q}();be.prototype.then=N,be.all=we,be.race=Se,be.resolve=q,be.reject=Re,be._setScheduler=e,be._setAsap=d,be._asap=r;function Be(){var Q=void 0;if(typeof Ze<"u")Q=Ze;else if(typeof self<"u")Q=self;else try{Q=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=Q.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}Q.Promise=be}return be.polyfill=Be,be.Promise=be,be})})(Gr);var Kr=Gr.exports;Kr.polyfill();var Xe={};function Wr(t,i){return function(){return t.apply(i,arguments)}}const{toString:fs}=Object.prototype,{getPrototypeOf:Yn}=Object,Sn=(t=>i=>{const p=fs.call(i);return t[p]||(t[p]=p.slice(8,-1).toLowerCase())})(Object.create(null)),Et=t=>(t=t.toLowerCase(),i=>Sn(i)===t),En=t=>i=>typeof i===t,{isArray:Vt}=Array,on=En("undefined");function ds(t){return t!==null&&!on(t)&&t.constructor!==null&&!on(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Jr=Et("ArrayBuffer");function ps(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Jr(t.buffer),i}const ms=En("string"),ht=En("function"),Yr=En("number"),kn=t=>t!==null&&typeof t=="object",gs=t=>t===!0||t===!1,_n=t=>{if(Sn(t)!=="object")return!1;const i=Yn(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ys=Et("Date"),vs=Et("File"),xs=Et("Blob"),bs=Et("FileList"),ws=t=>kn(t)&&ht(t.pipe),Ss=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=Sn(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},Es=Et("URLSearchParams"),[ks,_s,Cs,Os]=["ReadableStream","Request","Response","Headers"].map(Et),As=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(t,i,{allOwnKeys:p=!1}={}){if(t===null||typeof t>"u")return;let o,E;if(typeof t!="object"&&(t=[t]),Vt(t))for(o=0,E=t.length;o<E;o++)i.call(null,t[o],o,t);else{const w=p?Object.getOwnPropertyNames(t):Object.keys(t),c=w.length;let n;for(o=0;o<c;o++)n=w[o],i.call(null,t[n],n,t)}}function Qr(t,i){i=i.toLowerCase();const p=Object.keys(t);let o=p.length,E;for(;o-- >0;)if(E=p[o],i===E.toLowerCase())return E;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ze,Zr=t=>!on(t)&&t!==jt;function Qn(){const{caseless:t}=Zr(this)&&this||{},i={},p=(o,E)=>{const w=t&&Qr(i,E)||E;_n(i[w])&&_n(o)?i[w]=Qn(i[w],o):_n(o)?i[w]=Qn({},o):Vt(o)?i[w]=o.slice():i[w]=o};for(let o=0,E=arguments.length;o<E;o++)arguments[o]&&an(arguments[o],p);return i}const Rs=(t,i,p,{allOwnKeys:o}={})=>(an(i,(E,w)=>{p&&ht(E)?t[w]=Wr(E,p):t[w]=E},{allOwnKeys:o}),t),Ps=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ts=(t,i,p,o)=>{t.prototype=Object.create(i.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),p&&Object.assign(t.prototype,p)},Is=(t,i,p,o)=>{let E,w,c;const n={};if(i=i||{},t==null)return i;do{for(E=Object.getOwnPropertyNames(t),w=E.length;w-- >0;)c=E[w],(!o||o(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=p!==!1&&Yn(t)}while(t&&(!p||p(t,i))&&t!==Object.prototype);return i},Fs=(t,i,p)=>{t=String(t),(p===void 0||p>t.length)&&(p=t.length),p-=i.length;const o=t.indexOf(i,p);return o!==-1&&o===p},Ls=t=>{if(!t)return null;if(Vt(t))return t;let i=t.length;if(!Yr(i))return null;const p=new Array(i);for(;i-- >0;)p[i]=t[i];return p},js=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Yn(Uint8Array)),Ns=(t,i)=>{const o=(t&&t[Symbol.iterator]).call(t);let E;for(;(E=o.next())&&!E.done;){const w=E.value;i.call(t,w[0],w[1])}},Ms=(t,i)=>{let p;const o=[];for(;(p=t.exec(i))!==null;)o.push(p);return o},Bs=Et("HTMLFormElement"),Ds=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,o,E){return o.toUpperCase()+E}),Xr=(({hasOwnProperty:t})=>(i,p)=>t.call(i,p))(Object.prototype),Hs=Et("RegExp"),ei=(t,i)=>{const p=Object.getOwnPropertyDescriptors(t),o={};an(p,(E,w)=>{let c;(c=i(E,w,t))!==!1&&(o[w]=c||E)}),Object.defineProperties(t,o)},Us=t=>{ei(t,(i,p)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(p)!==-1)return!1;const o=t[p];if(ht(o)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+p+"'")})}})},$s=(t,i)=>{const p={},o=E=>{E.forEach(w=>{p[w]=!0})};return Vt(t)?o(t):o(String(t).split(i)),p},qs=()=>{},Vs=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i,Zn="abcdefghijklmnopqrstuvwxyz",ti="0123456789",ni={DIGIT:ti,ALPHA:Zn,ALPHA_DIGIT:Zn+Zn.toUpperCase()+ti},zs=(t=16,i=ni.ALPHA_DIGIT)=>{let p="";const{length:o}=i;for(;t--;)p+=i[Math.random()*o|0];return p};function Gs(t){return!!(t&&ht(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Ks=t=>{const i=new Array(10),p=(o,E)=>{if(kn(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[E]=o;const w=Vt(o)?[]:{};return an(o,(c,n)=>{const y=p(c,E+1);!on(y)&&(w[n]=y)}),i[E]=void 0,w}}return o};return p(t,0)},Ws=Et("AsyncFunction"),Js=t=>t&&(kn(t)||ht(t))&&ht(t.then)&&ht(t.catch),ri=((t,i)=>t?setImmediate:i?((p,o)=>(jt.addEventListener("message",({source:E,data:w})=>{E===jt&&w===p&&o.length&&o.shift()()},!1),E=>{o.push(E),jt.postMessage(p,"*")}))(`axios@${Math.random()}`,[]):p=>setTimeout(p))(typeof setImmediate=="function",ht(jt.postMessage)),Ys=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ri;var Z={isArray:Vt,isArrayBuffer:Jr,isBuffer:ds,isFormData:Ss,isArrayBufferView:ps,isString:ms,isNumber:Yr,isBoolean:gs,isObject:kn,isPlainObject:_n,isReadableStream:ks,isRequest:_s,isResponse:Cs,isHeaders:Os,isUndefined:on,isDate:ys,isFile:vs,isBlob:xs,isRegExp:Hs,isFunction:ht,isStream:ws,isURLSearchParams:Es,isTypedArray:js,isFileList:bs,forEach:an,merge:Qn,extend:Rs,trim:As,stripBOM:Ps,inherits:Ts,toFlatObject:Is,kindOf:Sn,kindOfTest:Et,endsWith:Fs,toArray:Ls,forEachEntry:Ns,matchAll:Ms,isHTMLForm:Bs,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:ei,freezeMethods:Us,toObjectSet:$s,toCamelCase:Ds,noop:qs,toFiniteNumber:Vs,findKey:Qr,global:jt,isContextDefined:Zr,ALPHABET:ni,generateString:zs,isSpecCompliantForm:Gs,toJSONObject:Ks,isAsyncFn:Ws,isThenable:Js,setImmediate:ri,asap:Ys};function Pe(t,i,p,o,E){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),p&&(this.config=p),o&&(this.request=o),E&&(this.response=E,this.status=E.status?E.status:null)}Z.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const ii=Pe.prototype,si={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{si[t]={value:t}}),Object.defineProperties(Pe,si),Object.defineProperty(ii,"isAxiosError",{value:!0}),Pe.from=(t,i,p,o,E,w)=>{const c=Object.create(ii);return Z.toFlatObject(t,c,function(y){return y!==Error.prototype},n=>n!=="isAxiosError"),Pe.call(c,t.message,i,p,o,E),c.cause=t,c.name=t.name,w&&Object.assign(c,w),c};var Qs=null;function Xn(t){return Z.isPlainObject(t)||Z.isArray(t)}function oi(t){return Z.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,p){return t?t.concat(i).map(function(E,w){return E=oi(E),!p&&w?"["+E+"]":E}).join(p?".":""):i}function Zs(t){return Z.isArray(t)&&!t.some(Xn)}const Xs=Z.toFlatObject(Z,{},null,function(i){return/^is[A-Z]/.test(i)});function Cn(t,i,p){if(!Z.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,p=Z.toFlatObject(p,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,v){return!Z.isUndefined(v[s])});const o=p.metaTokens,E=p.visitor||e,w=p.dots,c=p.indexes,y=(p.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(i);if(!Z.isFunction(E))throw new TypeError("visitor must be a function");function r(a){if(a===null)return"";if(Z.isDate(a))return a.toISOString();if(!y&&Z.isBlob(a))throw new Pe("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(a)||Z.isTypedArray(a)?y&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,s,v){let f=a;if(a&&!v&&typeof a=="object"){if(Z.endsWith(s,"{}"))s=o?s:s.slice(0,-2),a=JSON.stringify(a);else if(Z.isArray(a)&&Zs(a)||(Z.isFileList(a)||Z.endsWith(s,"[]"))&&(f=Z.toArray(a)))return s=oi(s),f.forEach(function(h,u){!(Z.isUndefined(h)||h===null)&&i.append(c===!0?ai([s],u,w):c===null?s:s+"[]",r(h))}),!1}return Xn(a)?!0:(i.append(ai(v,s,w),r(a)),!1)}const d=[],C=Object.assign(Xs,{defaultVisitor:e,convertValue:r,isVisitable:Xn});function l(a,s){if(!Z.isUndefined(a)){if(d.indexOf(a)!==-1)throw Error("Circular reference detected in "+s.join("."));d.push(a),Z.forEach(a,function(f,g){(!(Z.isUndefined(f)||f===null)&&E.call(i,f,Z.isString(g)?g.trim():g,s,C))===!0&&l(f,s?s.concat(g):[g])}),d.pop()}}if(!Z.isObject(t))throw new TypeError("data must be an object");return l(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return i[o]})}function er(t,i){this._pairs=[],t&&Cn(t,this,i)}const ci=er.prototype;ci.append=function(i,p){this._pairs.push([i,p])},ci.toString=function(i){const p=i?function(o){return i.call(this,o,li)}:li;return this._pairs.map(function(E){return p(E[0])+"="+p(E[1])},"").join("&")};function eo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ui(t,i,p){if(!i)return t;const o=p&&p.encode||eo,E=p&&p.serialize;let w;if(E?w=E(i,p):w=Z.isURLSearchParams(i)?i.toString():new er(i,p).toString(o),w){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+w}return t}class to{constructor(){this.handlers=[]}use(i,p,o){return this.handlers.push({fulfilled:i,rejected:p,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){Z.forEach(this.handlers,function(o){o!==null&&i(o)})}}var hi=to,fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},no=typeof URLSearchParams<"u"?URLSearchParams:er,ro=typeof FormData<"u"?FormData:null,io=typeof Blob<"u"?Blob:null,so={isBrowser:!0,classes:{URLSearchParams:no,FormData:ro,Blob:io},protocols:["http","https","file","blob","url","data"]};const tr=typeof window<"u"&&typeof document<"u",nr=typeof navigator=="object"&&navigator||void 0,oo=tr&&(!nr||["ReactNative","NativeScript","NS"].indexOf(nr.product)<0),ao=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lo=tr&&window.location.href||"http://localhost";var co=Object.freeze({__proto__:null,hasBrowserEnv:tr,hasStandardBrowserWebWorkerEnv:ao,hasStandardBrowserEnv:oo,navigator:nr,origin:lo}),lt={...co,...so};function uo(t,i){return Cn(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(p,o,E,w){return lt.isNode&&Z.isBuffer(p)?(this.append(o,p.toString("base64")),!1):w.defaultVisitor.apply(this,arguments)}},i))}function ho(t){return Z.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function fo(t){const i={},p=Object.keys(t);let o;const E=p.length;let w;for(o=0;o<E;o++)w=p[o],i[w]=t[w];return i}function di(t){function i(p,o,E,w){let c=p[w++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),y=w>=p.length;return c=!c&&Z.isArray(E)?E.length:c,y?(Z.hasOwnProp(E,c)?E[c]=[E[c],o]:E[c]=o,!n):((!E[c]||!Z.isObject(E[c]))&&(E[c]=[]),i(p,o,E[c],w)&&Z.isArray(E[c])&&(E[c]=fo(E[c])),!n)}if(Z.isFormData(t)&&Z.isFunction(t.entries)){const p={};return Z.forEachEntry(t,(o,E)=>{i(ho(o),E,p,0)}),p}return null}function po(t,i,p){if(Z.isString(t))try{return(i||JSON.parse)(t),Z.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(0,JSON.stringify)(t)}const rr={transitional:fi,adapter:["xhr","http","fetch"],transformRequest:[function(i,p){const o=p.getContentType()||"",E=o.indexOf("application/json")>-1,w=Z.isObject(i);if(w&&Z.isHTMLForm(i)&&(i=new FormData(i)),Z.isFormData(i))return E?JSON.stringify(di(i)):i;if(Z.isArrayBuffer(i)||Z.isBuffer(i)||Z.isStream(i)||Z.isFile(i)||Z.isBlob(i)||Z.isReadableStream(i))return i;if(Z.isArrayBufferView(i))return i.buffer;if(Z.isURLSearchParams(i))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(w){if(o.indexOf("application/x-www-form-urlencoded")>-1)return uo(i,this.formSerializer).toString();if((n=Z.isFileList(i))||o.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Cn(n?{"files[]":i}:i,y&&new y,this.formSerializer)}}return w||E?(p.setContentType("application/json",!1),po(i)):i}],transformResponse:[function(i){const p=this.transitional||rr.transitional,o=p&&p.forcedJSONParsing,E=this.responseType==="json";if(Z.isResponse(i)||Z.isReadableStream(i))return i;if(i&&Z.isString(i)&&(o&&!this.responseType||E)){const c=!(p&&p.silentJSONParsing)&&E;try{return JSON.parse(i)}catch(n){if(c)throw n.name==="SyntaxError"?Pe.from(n,Pe.ERR_BAD_RESPONSE,this,null,this.response):n}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],t=>{rr.headers[t]={}});var ir=rr;const mo=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var go=t=>{const i={};let p,o,E;return t&&t.split(`
37
+ `).forEach(function(c){E=c.indexOf(":"),p=c.substring(0,E).trim().toLowerCase(),o=c.substring(E+1).trim(),!(!p||i[p]&&mo[p])&&(p==="set-cookie"?i[p]?i[p].push(o):i[p]=[o]:i[p]=i[p]?i[p]+", "+o:o)}),i};const pi=Symbol("internals");function ln(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:Z.isArray(t)?t.map(On):String(t)}function yo(t){const i=Object.create(null),p=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=p.exec(t);)i[o[1]]=o[2];return i}const vo=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function sr(t,i,p,o,E){if(Z.isFunction(o))return o.call(this,i,p);if(E&&(i=p),!!Z.isString(i)){if(Z.isString(o))return i.indexOf(o)!==-1;if(Z.isRegExp(o))return o.test(i)}}function xo(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,p,o)=>p.toUpperCase()+o)}function bo(t,i){const p=Z.toCamelCase(" "+i);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+p,{value:function(E,w,c){return this[o].call(this,i,E,w,c)},configurable:!0})})}class An{constructor(i){i&&this.set(i)}set(i,p,o){const E=this;function w(n,y,r){const e=ln(y);if(!e)throw new Error("header name must be a non-empty string");const d=Z.findKey(E,e);(!d||E[d]===void 0||r===!0||r===void 0&&E[d]!==!1)&&(E[d||y]=On(n))}const c=(n,y)=>Z.forEach(n,(r,e)=>w(r,e,y));if(Z.isPlainObject(i)||i instanceof this.constructor)c(i,p);else if(Z.isString(i)&&(i=i.trim())&&!vo(i))c(go(i),p);else if(Z.isHeaders(i))for(const[n,y]of i.entries())w(y,n,o);else i!=null&&w(p,i,o);return this}get(i,p){if(i=ln(i),i){const o=Z.findKey(this,i);if(o){const E=this[o];if(!p)return E;if(p===!0)return yo(E);if(Z.isFunction(p))return p.call(this,E,o);if(Z.isRegExp(p))return p.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,p){if(i=ln(i),i){const o=Z.findKey(this,i);return!!(o&&this[o]!==void 0&&(!p||sr(this,this[o],o,p)))}return!1}delete(i,p){const o=this;let E=!1;function w(c){if(c=ln(c),c){const n=Z.findKey(o,c);n&&(!p||sr(o,o[n],n,p))&&(delete o[n],E=!0)}}return Z.isArray(i)?i.forEach(w):w(i),E}clear(i){const p=Object.keys(this);let o=p.length,E=!1;for(;o--;){const w=p[o];(!i||sr(this,this[w],w,i,!0))&&(delete this[w],E=!0)}return E}normalize(i){const p=this,o={};return Z.forEach(this,(E,w)=>{const c=Z.findKey(o,w);if(c){p[c]=On(E),delete p[w];return}const n=i?xo(w):String(w).trim();n!==w&&delete p[w],p[n]=On(E),o[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const p=Object.create(null);return Z.forEach(this,(o,E)=>{o!=null&&o!==!1&&(p[E]=i&&Z.isArray(o)?o.join(", "):o)}),p}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,p])=>i+": "+p).join(`
38
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...p){const o=new this(i);return p.forEach(E=>o.set(E)),o}static accessor(i){const o=(this[pi]=this[pi]={accessors:{}}).accessors,E=this.prototype;function w(c){const n=ln(c);o[n]||(bo(E,c),o[n]=!0)}return Z.isArray(i)?i.forEach(w):w(i),this}}An.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(An.prototype,({value:t},i)=>{let p=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[p]=o}}}),Z.freezeMethods(An);var kt=An;function or(t,i){const p=this||ir,o=i||p,E=kt.from(o.headers);let w=o.data;return Z.forEach(t,function(n){w=n.call(p,w,E.normalize(),i?i.status:void 0)}),E.normalize(),w}function mi(t){return!!(t&&t.__CANCEL__)}function zt(t,i,p){Pe.call(this,t??"canceled",Pe.ERR_CANCELED,i,p),this.name="CanceledError"}Z.inherits(zt,Pe,{__CANCEL__:!0});function gi(t,i,p){const o=p.config.validateStatus;!p.status||!o||o(p.status)?t(p):i(new Pe("Request failed with status code "+p.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(p.status/100)-4],p.config,p.request,p))}function wo(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function So(t,i){t=t||10;const p=new Array(t),o=new Array(t);let E=0,w=0,c;return i=i!==void 0?i:1e3,function(y){const r=Date.now(),e=o[w];c||(c=r),p[E]=y,o[E]=r;let d=w,C=0;for(;d!==E;)C+=p[d++],d=d%t;if(E=(E+1)%t,E===w&&(w=(w+1)%t),r-c<i)return;const l=e&&r-e;return l?Math.round(C*1e3/l):void 0}}function Eo(t,i){let p=0,o=1e3/i,E,w;const c=(r,e=Date.now())=>{p=e,E=null,w&&(clearTimeout(w),w=null),t.apply(null,r)};return[(...r)=>{const e=Date.now(),d=e-p;d>=o?c(r,e):(E=r,w||(w=setTimeout(()=>{w=null,c(E)},o-d)))},()=>E&&c(E)]}const Rn=(t,i,p=3)=>{let o=0;const E=So(50,250);return Eo(w=>{const c=w.loaded,n=w.lengthComputable?w.total:void 0,y=c-o,r=E(y),e=c<=n;o=c;const d={loaded:c,total:n,progress:n?c/n:void 0,bytes:y,rate:r||void 0,estimated:r&&n&&e?(n-c)/r:void 0,event:w,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(d)},p)},yi=(t,i)=>{const p=t!=null;return[o=>i[0]({lengthComputable:p,total:t,loaded:o}),i[1]]},vi=t=>(...i)=>Z.asap(()=>t(...i));var ko=lt.hasStandardBrowserEnv?function(){const i=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),p=document.createElement("a");let o;function E(w){let c=w;return i&&(p.setAttribute("href",c),c=p.href),p.setAttribute("href",c),{href:p.href,protocol:p.protocol?p.protocol.replace(/:$/,""):"",host:p.host,search:p.search?p.search.replace(/^\?/,""):"",hash:p.hash?p.hash.replace(/^#/,""):"",hostname:p.hostname,port:p.port,pathname:p.pathname.charAt(0)==="/"?p.pathname:"/"+p.pathname}}return o=E(window.location.href),function(c){const n=Z.isString(c)?E(c):c;return n.protocol===o.protocol&&n.host===o.host}}():function(){return function(){return!0}}(),_o=lt.hasStandardBrowserEnv?{write(t,i,p,o,E,w){const c=[t+"="+encodeURIComponent(i)];Z.isNumber(p)&&c.push("expires="+new Date(p).toGMTString()),Z.isString(o)&&c.push("path="+o),Z.isString(E)&&c.push("domain="+E),w===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Co(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Oo(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function xi(t,i){return t&&!Co(i)?Oo(t,i):i}const bi=t=>t instanceof kt?{...t}:t;function Nt(t,i){i=i||{};const p={};function o(r,e,d){return Z.isPlainObject(r)&&Z.isPlainObject(e)?Z.merge.call({caseless:d},r,e):Z.isPlainObject(e)?Z.merge({},e):Z.isArray(e)?e.slice():e}function E(r,e,d){if(Z.isUndefined(e)){if(!Z.isUndefined(r))return o(void 0,r,d)}else return o(r,e,d)}function w(r,e){if(!Z.isUndefined(e))return o(void 0,e)}function c(r,e){if(Z.isUndefined(e)){if(!Z.isUndefined(r))return o(void 0,r)}else return o(void 0,e)}function n(r,e,d){if(d in i)return o(r,e);if(d in t)return o(void 0,r)}const y={url:w,method:w,data:w,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:n,headers:(r,e)=>E(bi(r),bi(e),!0)};return Z.forEach(Object.keys(Object.assign({},t,i)),function(e){const d=y[e]||E,C=d(t[e],i[e],e);Z.isUndefined(C)&&d!==n||(p[e]=C)}),p}var wi=t=>{const i=Nt({},t);let{data:p,withXSRFToken:o,xsrfHeaderName:E,xsrfCookieName:w,headers:c,auth:n}=i;i.headers=c=kt.from(c),i.url=ui(xi(i.baseURL,i.url),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let y;if(Z.isFormData(p)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((y=c.getContentType())!==!1){const[r,...e]=y?y.split(";").map(d=>d.trim()).filter(Boolean):[];c.setContentType([r||"multipart/form-data",...e].join("; "))}}if(lt.hasStandardBrowserEnv&&(o&&Z.isFunction(o)&&(o=o(i)),o||o!==!1&&ko(i.url))){const r=E&&w&&_o.read(w);r&&c.set(E,r)}return i},Ao=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(p,o){const E=wi(t);let w=E.data;const c=kt.from(E.headers).normalize();let{responseType:n,onUploadProgress:y,onDownloadProgress:r}=E,e,d,C,l,a;function s(){l&&l(),a&&a(),E.cancelToken&&E.cancelToken.unsubscribe(e),E.signal&&E.signal.removeEventListener("abort",e)}let v=new XMLHttpRequest;v.open(E.method.toUpperCase(),E.url,!0),v.timeout=E.timeout;function f(){if(!v)return;const h=kt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:h,config:t,request:v};gi(function(I){p(I),s()},function(I){o(I),s()},_),v=null}"onloadend"in v?v.onloadend=f:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(f)},v.onabort=function(){v&&(o(new Pe("Request aborted",Pe.ECONNABORTED,t,v)),v=null)},v.onerror=function(){o(new Pe("Network Error",Pe.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let u=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const _=E.transitional||fi;E.timeoutErrorMessage&&(u=E.timeoutErrorMessage),o(new Pe(u,_.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,t,v)),v=null},w===void 0&&c.setContentType(null),"setRequestHeader"in v&&Z.forEach(c.toJSON(),function(u,_){v.setRequestHeader(_,u)}),Z.isUndefined(E.withCredentials)||(v.withCredentials=!!E.withCredentials),n&&n!=="json"&&(v.responseType=E.responseType),r&&([C,a]=Rn(r,!0),v.addEventListener("progress",C)),y&&v.upload&&([d,l]=Rn(y),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",l)),(E.cancelToken||E.signal)&&(e=h=>{v&&(o(!h||h.type?new zt(null,t,v):h),v.abort(),v=null)},E.cancelToken&&E.cancelToken.subscribe(e),E.signal&&(E.signal.aborted?e():E.signal.addEventListener("abort",e)));const g=wo(E.url);if(g&&lt.protocols.indexOf(g)===-1){o(new Pe("Unsupported protocol "+g+":",Pe.ERR_BAD_REQUEST,t));return}v.send(w||null)})},Ro=(t,i)=>{const{length:p}=t=t?t.filter(Boolean):[];if(i||p){let o=new AbortController,E;const w=function(r){if(!E){E=!0,n();const e=r instanceof Error?r:this.reason;o.abort(e instanceof Pe?e:new zt(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,w(new Pe(`timeout ${i} of ms exceeded`,Pe.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(r=>{r.unsubscribe?r.unsubscribe(w):r.removeEventListener("abort",w)}),t=null)};t.forEach(r=>r.addEventListener("abort",w));const{signal:y}=o;return y.unsubscribe=()=>Z.asap(n),y}};const Po=function*(t,i){let p=t.byteLength;if(p<i){yield t;return}let o=0,E;for(;o<p;)E=o+i,yield t.slice(o,E),o=E},To=async function*(t,i){for await(const p of Io(t))yield*Po(p,i)},Io=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:p,value:o}=await i.read();if(p)break;yield o}}finally{await i.cancel()}},Si=(t,i,p,o)=>{const E=To(t,i);let w=0,c,n=y=>{c||(c=!0,o&&o(y))};return new ReadableStream({async pull(y){try{const{done:r,value:e}=await E.next();if(r){n(),y.close();return}let d=e.byteLength;if(p){let C=w+=d;p(C)}y.enqueue(new Uint8Array(e))}catch(r){throw n(r),r}},cancel(y){return n(y),E.return()}},{highWaterMark:2})},Pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ei=Pn&&typeof ReadableStream=="function",Fo=Pn&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ki=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Lo=Ei&&ki(()=>{let t=!1;const i=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),_i=64*1024,ar=Ei&&ki(()=>Z.isReadableStream(new Response("").body)),Tn={stream:ar&&(t=>t.body)};Pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Tn[i]&&(Tn[i]=Z.isFunction(t[i])?p=>p[i]():(p,o)=>{throw new Pe(`Response type '${i}' is not supported`,Pe.ERR_NOT_SUPPORT,o)})})})(new Response);const jo=async t=>{if(t==null)return 0;if(Z.isBlob(t))return t.size;if(Z.isSpecCompliantForm(t))return(await new Request(lt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(t)||Z.isArrayBuffer(t))return t.byteLength;if(Z.isURLSearchParams(t)&&(t=t+""),Z.isString(t))return(await Fo(t)).byteLength},No=async(t,i)=>{const p=Z.toFiniteNumber(t.getContentLength());return p??jo(i)};var Mo=Pn&&(async t=>{let{url:i,method:p,data:o,signal:E,cancelToken:w,timeout:c,onDownloadProgress:n,onUploadProgress:y,responseType:r,headers:e,withCredentials:d="same-origin",fetchOptions:C}=wi(t);r=r?(r+"").toLowerCase():"text";let l=Ro([E,w&&w.toAbortSignal()],c),a;const s=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let v;try{if(y&&Lo&&p!=="get"&&p!=="head"&&(v=await No(e,o))!==0){let _=new Request(i,{method:"POST",body:o,duplex:"half"}),S;if(Z.isFormData(o)&&(S=_.headers.get("content-type"))&&e.setContentType(S),_.body){const[I,T]=yi(v,Rn(vi(y)));o=Si(_.body,_i,I,T)}}Z.isString(d)||(d=d?"include":"omit");const f="credentials"in Request.prototype;a=new Request(i,{...C,signal:l,method:p.toUpperCase(),headers:e.normalize().toJSON(),body:o,duplex:"half",credentials:f?d:void 0});let g=await fetch(a);const h=ar&&(r==="stream"||r==="response");if(ar&&(n||h&&s)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=g[P]});const S=Z.toFiniteNumber(g.headers.get("content-length")),[I,T]=n&&yi(S,Rn(vi(n),!0))||[];g=new Response(Si(g.body,_i,I,()=>{T&&T(),s&&s()}),_)}r=r||"text";let u=await Tn[Z.findKey(Tn,r)||"text"](g,t);return!h&&s&&s(),await new Promise((_,S)=>{gi(_,S,{data:u,headers:kt.from(g.headers),status:g.status,statusText:g.statusText,config:t,request:a})})}catch(f){throw s&&s(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,t,a),{cause:f.cause||f}):Pe.from(f,f&&f.code,t,a)}});const lr={http:Qs,xhr:Ao,fetch:Mo};Z.forEach(lr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Ci=t=>`- ${t}`,Bo=t=>Z.isFunction(t)||t===null||t===!1;var Oi={getAdapter:t=>{t=Z.isArray(t)?t:[t];const{length:i}=t;let p,o;const E={};for(let w=0;w<i;w++){p=t[w];let c;if(o=p,!Bo(p)&&(o=lr[(c=String(p)).toLowerCase()],o===void 0))throw new Pe(`Unknown adapter '${c}'`);if(o)break;E[c||"#"+w]=o}if(!o){const w=Object.entries(E).map(([n,y])=>`adapter ${n} `+(y===!1?"is not supported by the environment":"is not available in the build"));let c=i?w.length>1?`since :
39
+ `+w.map(Ci).join(`
40
+ `):" "+Ci(w[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o},adapters:lr};function cr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zt(null,t)}function Ai(t){return cr(t),t.headers=kt.from(t.headers),t.data=or.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Oi.getAdapter(t.adapter||ir.adapter)(t).then(function(o){return cr(t),o.data=or.call(t,t.transformResponse,o),o.headers=kt.from(o.headers),o},function(o){return mi(o)||(cr(t),o&&o.response&&(o.response.data=or.call(t,t.transformResponse,o.response),o.response.headers=kt.from(o.response.headers))),Promise.reject(o)})}const Ri="1.7.7",ur={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{ur[t]=function(o){return typeof o===t||"a"+(i<1?"n ":" ")+t}});const Pi={};ur.transitional=function(i,p,o){function E(w,c){return"[Axios v"+Ri+"] Transitional option '"+w+"'"+c+(o?". "+o:"")}return(w,c,n)=>{if(i===!1)throw new Pe(E(c," has been removed"+(p?" in "+p:"")),Pe.ERR_DEPRECATED);return p&&!Pi[c]&&(Pi[c]=!0,console.warn(E(c," has been deprecated since v"+p+" and will be removed in the near future"))),i?i(w,c,n):!0}};function Do(t,i,p){if(typeof t!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let E=o.length;for(;E-- >0;){const w=o[E],c=i[w];if(c){const n=t[w],y=n===void 0||c(n,w,t);if(y!==!0)throw new Pe("option "+w+" must be "+y,Pe.ERR_BAD_OPTION_VALUE);continue}if(p!==!0)throw new Pe("Unknown option "+w,Pe.ERR_BAD_OPTION)}}var hr={assertOptions:Do,validators:ur};const Pt=hr.validators;class In{constructor(i){this.defaults=i,this.interceptors={request:new hi,response:new hi}}async request(i,p){try{return await this._request(i,p)}catch(o){if(o instanceof Error){let E;Error.captureStackTrace?Error.captureStackTrace(E={}):E=new Error;const w=E.stack?E.stack.replace(/^.+\n/,""):"";try{o.stack?w&&!String(o.stack).endsWith(w.replace(/^.+\n.+\n/,""))&&(o.stack+=`
41
+ `+w):o.stack=w}catch{}}throw o}}_request(i,p){typeof i=="string"?(p=p||{},p.url=i):p=i||{},p=Nt(this.defaults,p);const{transitional:o,paramsSerializer:E,headers:w}=p;o!==void 0&&hr.assertOptions(o,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean)},!1),E!=null&&(Z.isFunction(E)?p.paramsSerializer={serialize:E}:hr.assertOptions(E,{encode:Pt.function,serialize:Pt.function},!0)),p.method=(p.method||this.defaults.method||"get").toLowerCase();let c=w&&Z.merge(w.common,w[p.method]);w&&Z.forEach(["delete","get","head","post","put","patch","common"],a=>{delete w[a]}),p.headers=kt.concat(c,w);const n=[];let y=!0;this.interceptors.request.forEach(function(s){typeof s.runWhen=="function"&&s.runWhen(p)===!1||(y=y&&s.synchronous,n.unshift(s.fulfilled,s.rejected))});const r=[];this.interceptors.response.forEach(function(s){r.push(s.fulfilled,s.rejected)});let e,d=0,C;if(!y){const a=[Ai.bind(this),void 0];for(a.unshift.apply(a,n),a.push.apply(a,r),C=a.length,e=Promise.resolve(p);d<C;)e=e.then(a[d++],a[d++]);return e}C=n.length;let l=p;for(d=0;d<C;){const a=n[d++],s=n[d++];try{l=a(l)}catch(v){s.call(this,v);break}}try{e=Ai.call(this,l)}catch(a){return Promise.reject(a)}for(d=0,C=r.length;d<C;)e=e.then(r[d++],r[d++]);return e}getUri(i){i=Nt(this.defaults,i);const p=xi(i.baseURL,i.url);return ui(p,i.params,i.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(i){In.prototype[i]=function(p,o){return this.request(Nt(o||{},{method:i,url:p,data:(o||{}).data}))}}),Z.forEach(["post","put","patch"],function(i){function p(o){return function(w,c,n){return this.request(Nt(n||{},{method:i,headers:o?{"Content-Type":"multipart/form-data"}:{},url:w,data:c}))}}In.prototype[i]=p(),In.prototype[i+"Form"]=p(!0)});var Fn=In;class fr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let p;this.promise=new Promise(function(w){p=w});const o=this;this.promise.then(E=>{if(!o._listeners)return;let w=o._listeners.length;for(;w-- >0;)o._listeners[w](E);o._listeners=null}),this.promise.then=E=>{let w;const c=new Promise(n=>{o.subscribe(n),w=n}).then(E);return c.cancel=function(){o.unsubscribe(w)},c},i(function(w,c,n){o.reason||(o.reason=new zt(w,c,n),p(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const p=this._listeners.indexOf(i);p!==-1&&this._listeners.splice(p,1)}toAbortSignal(){const i=new AbortController,p=o=>{i.abort(o)};return this.subscribe(p),i.signal.unsubscribe=()=>this.unsubscribe(p),i.signal}static source(){let i;return{token:new fr(function(E){i=E}),cancel:i}}}var Ho=fr;function Uo(t){return function(p){return t.apply(null,p)}}function $o(t){return Z.isObject(t)&&t.isAxiosError===!0}const dr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dr).forEach(([t,i])=>{dr[i]=t});var qo=dr;function Ti(t){const i=new Fn(t),p=Wr(Fn.prototype.request,i);return Z.extend(p,Fn.prototype,i,{allOwnKeys:!0}),Z.extend(p,i,null,{allOwnKeys:!0}),p.create=function(E){return Ti(Nt(t,E))},p}const Qe=Ti(ir);Qe.Axios=Fn,Qe.CanceledError=zt,Qe.CancelToken=Ho,Qe.isCancel=mi,Qe.VERSION=Ri,Qe.toFormData=Cn,Qe.AxiosError=Pe,Qe.Cancel=Qe.CanceledError,Qe.all=function(i){return Promise.all(i)},Qe.spread=Uo,Qe.isAxiosError=$o,Qe.mergeConfig=Nt,Qe.AxiosHeaders=kt,Qe.formToJSON=t=>di(Z.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=Oi.getAdapter,Qe.HttpStatusCode=qo,Qe.default=Qe;var Ii=Qe,Vo=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.RESPONSE_SERVER_ERROR=Xe.RESPONSE_BAD_REQUEST=Xe.setRequestInterceptor=Xe.aiAnswersInteractionsInstance=Xe.statsInstance=Xe.apiInstance=void 0;const pr=Vo(Ii),Fi=pr.default.create();Xe.apiInstance=Fi;const Li=pr.default.create();Xe.statsInstance=Li;const zo=pr.default.create();Xe.aiAnswersInteractionsInstance=zo;const Go=400;Xe.RESPONSE_BAD_REQUEST=Go;const Ko=500;Xe.RESPONSE_SERVER_ERROR=Ko;const Wo=(t,i)=>{(i==="searchApi"?Fi:Li).interceptors.request.use(o=>{const E=t({url:o.url,headers:o.headers});return o=Object.assign(Object.assign({},o),E),o},o=>Promise.reject(new Error(JSON.stringify(o))))};Xe.setRequestInterceptor=Wo,Object.defineProperty(Jn,"__esModule",{value:!0});const Gt=Xe,ji=function(t,i,p,o,E,w,c,n){const y=function(l,a){return l||l===!1?"&"+a+"="+l:""};if(p!=="search"&&p!=="ai-answers"&&p!=="suggest"&&p!=="autocomplete"&&p!=="recommend"){E({error:{response:Gt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let r="",e="",d=null,C=null;if(p==="search"){C=p,r=o==null?void 0:o.keyword,r=o!=null&&o.enableLogicalOperators?r.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):r.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),r=encodeURIComponent(r);let l=o==null?void 0:o.fuzzy;if(l==="retry"&&(w!==!0?l=!1:l=!0),e=y(o==null?void 0:o.lang,"lang")+y(l,"fuzzy")+y(o==null?void 0:o.collectAnalytics,"collectAnalytics")+y(o==null?void 0:o.postfixWildcard,"postfixWildcard")+y(o==null?void 0:o.categories,"categories")+y(o==null?void 0:o.priceFromCents,"priceFromCents")+y(o==null?void 0:o.priceToCents,"priceToCents")+y(o==null?void 0:o.dateFrom,"dateFrom")+y(o==null?void 0:o.dateTo,"dateTo")+y(o==null?void 0:o.paging.page,"page")+y(o==null?void 0:o.paging.pageSize,"limit")+y(o==null?void 0:o.shuffleAndLimitTo,"shuffleAndLimitTo")+y(o==null?void 0:o.jwt,"jwt")+y(o==null?void 0:o.resultType,"resultType")+y(o==null?void 0:o.userToken,"userToken")+y(o==null?void 0:o.numFacets,"numFacets")+y(o==null?void 0:o.cacheResponseTime,"cacheResponseWithTtlSeconds")+y(o==null?void 0:o.searchOperator,"defaultOperator")+y(o==null?void 0:o.analyticsTag,"analyticsTag"),Array.isArray(o==null?void 0:o.paging.sortBy)?o==null||o.paging.sortBy.forEach(function(a,s){e=e+y(a,"sort")+y(o==null?void 0:o.paging.sortOrder[s],"order")}):e=e+y(o==null?void 0:o.paging.sortBy,"sort")+y(o==null?void 0:o.paging.sortOrder,"order"),o!=null&&o.customFieldFilters)for(let a=0;a<(o==null?void 0:o.customFieldFilters.length);a++)e=e+"&customField="+(o==null?void 0:o.customFieldFilters[a]);if(o!=null&&o.facetFields)for(let a=0;a<(o==null?void 0:o.facetFields.length);a++)e=e+"&facet="+(o==null?void 0:o.facetFields[a]);if(o!=null&&o.rangeFacets&&(e=e+"&rangeFacets="+encodeURIComponent(JSON.stringify(o==null?void 0:o.rangeFacets))),o!=null&&o.hierarchicalFacetSetting&&(e=e+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(o==null?void 0:o.hierarchicalFacetSetting))),o!=null&&o.statsFields)for(let a=0;a<(o==null?void 0:o.statsFields.length);a++)e=e+"&fieldStat="+(o==null?void 0:o.statsFields[a]);if(o!=null&&o.personalizationEvents&&Array.isArray(o==null?void 0:o.personalizationEvents))for(let a=0;a<(o==null?void 0:o.personalizationEvents.length);a++){const s=o==null?void 0:o.personalizationEvents[a],v=Object.keys(s)[0];e=e+"&personalizationEvent="+encodeURIComponent(v+"="+s[v])}c?e=e+"&filter="+encodeURIComponent(JSON.stringify(c)):o!=null&&o.filterObject&&(e=e+"&filter="+encodeURIComponent(JSON.stringify(o==null?void 0:o.filterObject))),d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e}else p==="ai-answers"?Gt.apiInstance.post(`https://api.addsearch.com/v2/indices/${i}/conversations`,{question:o==null?void 0:o.keyword}).then(function(l){l.data.response?E(l.data.response):E({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})}).catch(function(l){console.error(l),E({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):p==="suggest"?(C=p,e=y(o==null?void 0:o.suggestionsSize,"size")+y(o==null?void 0:o.lang,"language"),r=o==null?void 0:o.suggestionsPrefix,d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="autocomplete"?(C="autocomplete/document-field",e=y(o==null?void 0:o.autocomplete.field,"source")+y(o==null?void 0:o.autocomplete.size,"size"),r=(o==null?void 0:o.autocomplete.prefix)||"",d="https://"+t+"/v1/"+C+"/"+i+"?term="+r+e):p==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(e=y(n.itemId,"itemId"),C="recommendations/index/"+i+"/block/"+n.blockId+"?"+e):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(e=y(n.itemId,"itemId"),C="recommendations/"+i+"?configurationKey="+n.configurationKey+e),d="https://"+t+"/v1/"+C);p!=="ai-answers"&&Gt.apiInstance.get(d).then(function(l){var a,s,v;const f=l.data;p==="search"&&(o==null?void 0:o.fuzzy)==="retry"&&f.total_hits===0&&w!==!0?ji(t,i,p,o,E,!0):(w===!0&&(f.total_hits=Math.min((a=f.total_hits)!==null&&a!==void 0?a:1/0,(v=(s=o==null?void 0:o.paging)===null||s===void 0?void 0:s.pageSize)!==null&&v!==void 0?v:1/0)),E(f))}).catch(function(l){console.error(l),E({error:{response:Gt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})})};Jn.default=ji;var ft={},dt={},Ni={},Ln={};Ln.byteLength=Qo,Ln.toByteArray=Xo,Ln.fromByteArray=na;for(var _t=[],pt=[],Jo=typeof Uint8Array<"u"?Uint8Array:Array,mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kt=0,Yo=mr.length;Kt<Yo;++Kt)_t[Kt]=mr[Kt],pt[mr.charCodeAt(Kt)]=Kt;pt[45]=62,pt[95]=63;function Mi(t){var i=t.length;if(i%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=t.indexOf("=");p===-1&&(p=i);var o=p===i?0:4-p%4;return[p,o]}function Qo(t){var i=Mi(t),p=i[0],o=i[1];return(p+o)*3/4-o}function Zo(t,i,p){return(i+p)*3/4-p}function Xo(t){var i,p=Mi(t),o=p[0],E=p[1],w=new Jo(Zo(t,o,E)),c=0,n=E>0?o-4:o,y;for(y=0;y<n;y+=4)i=pt[t.charCodeAt(y)]<<18|pt[t.charCodeAt(y+1)]<<12|pt[t.charCodeAt(y+2)]<<6|pt[t.charCodeAt(y+3)],w[c++]=i>>16&255,w[c++]=i>>8&255,w[c++]=i&255;return E===2&&(i=pt[t.charCodeAt(y)]<<2|pt[t.charCodeAt(y+1)]>>4,w[c++]=i&255),E===1&&(i=pt[t.charCodeAt(y)]<<10|pt[t.charCodeAt(y+1)]<<4|pt[t.charCodeAt(y+2)]>>2,w[c++]=i>>8&255,w[c++]=i&255),w}function ea(t){return _t[t>>18&63]+_t[t>>12&63]+_t[t>>6&63]+_t[t&63]}function ta(t,i,p){for(var o,E=[],w=i;w<p;w+=3)o=(t[w]<<16&16711680)+(t[w+1]<<8&65280)+(t[w+2]&255),E.push(ea(o));return E.join("")}function na(t){for(var i,p=t.length,o=p%3,E=[],w=16383,c=0,n=p-o;c<n;c+=w)E.push(ta(t,c,c+w>n?n:c+w));return o===1?(i=t[p-1],E.push(_t[i>>2]+_t[i<<4&63]+"==")):o===2&&(i=(t[p-2]<<8)+t[p-1],E.push(_t[i>>10]+_t[i>>4&63]+_t[i<<2&63]+"=")),E.join("")}var gr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */gr.read=function(t,i,p,o,E){var w,c,n=E*8-o-1,y=(1<<n)-1,r=y>>1,e=-7,d=p?E-1:0,C=p?-1:1,l=t[i+d];for(d+=C,w=l&(1<<-e)-1,l>>=-e,e+=n;e>0;w=w*256+t[i+d],d+=C,e-=8);for(c=w&(1<<-e)-1,w>>=-e,e+=o;e>0;c=c*256+t[i+d],d+=C,e-=8);if(w===0)w=1-r;else{if(w===y)return c?NaN:(l?-1:1)*(1/0);c=c+Math.pow(2,o),w=w-r}return(l?-1:1)*c*Math.pow(2,w-o)},gr.write=function(t,i,p,o,E,w){var c,n,y,r=w*8-E-1,e=(1<<r)-1,d=e>>1,C=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=o?0:w-1,a=o?1:-1,s=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(n=isNaN(i)?1:0,c=e):(c=Math.floor(Math.log(i)/Math.LN2),i*(y=Math.pow(2,-c))<1&&(c--,y*=2),c+d>=1?i+=C/y:i+=C*Math.pow(2,1-d),i*y>=2&&(c++,y/=2),c+d>=e?(n=0,c=e):c+d>=1?(n=(i*y-1)*Math.pow(2,E),c=c+d):(n=i*Math.pow(2,d-1)*Math.pow(2,E),c=0));E>=8;t[p+l]=n&255,l+=a,n/=256,E-=8);for(c=c<<E|n,r+=E;r>0;t[p+l]=c&255,l+=a,c/=256,r-=8);t[p+l-a]|=s*128};/*!
42
42
  * The buffer module from node.js, for the browser.
43
43
  *
44
44
  * @author Feross Aboukhadijeh <https://feross.org>
45
45
  * @license MIT
46
- */(function(t){const i=Ln,p=gr,s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50;const w=2147483647;t.kMaxLength=w,n.TYPED_ARRAY_SUPPORT=b(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const O=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(O,m),O.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function c(O){if(O>w)throw new RangeError('The value "'+O+'" is invalid for option "size"');const m=new Uint8Array(O);return Object.setPrototypeOf(m,n.prototype),m}function n(O,m,S){if(typeof O=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(O)}return y(O,m,S)}n.poolSize=8192;function y(O,m,S){if(typeof O=="string")return C(O,m);if(ArrayBuffer.isView(O))return a(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(Be(O,ArrayBuffer)||O&&Be(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Be(O,SharedArrayBuffer)||O&&Be(O.buffer,SharedArrayBuffer)))return o(O,m,S);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=O.valueOf&&O.valueOf();if(F!=null&&F!==O)return n.from(F,m,S);const U=v(O);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),m,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}n.from=function(O,m,S){return y(O,m,S)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function r(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function e(O,m,S){return r(O),O<=0?c(O):m!==void 0?typeof S=="string"?c(O).fill(m,S):c(O).fill(m):c(O)}n.alloc=function(O,m,S){return e(O,m,S)};function d(O){return r(O),c(O<0?0:f(O)|0)}n.allocUnsafe=function(O){return d(O)},n.allocUnsafeSlow=function(O){return d(O)};function C(O,m){if((typeof m!="string"||m==="")&&(m="utf8"),!n.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const S=h(O,m)|0;let F=c(S);const U=F.write(O,m);return U!==S&&(F=F.slice(0,U)),F}function l(O){const m=O.length<0?0:f(O.length)|0,S=c(m);for(let F=0;F<m;F+=1)S[F]=O[F]&255;return S}function a(O){if(Be(O,Uint8Array)){const m=new Uint8Array(O);return o(m.buffer,m.byteOffset,m.byteLength)}return l(O)}function o(O,m,S){if(m<0||O.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<m+(S||0))throw new RangeError('"length" is outside of buffer bounds');let F;return m===void 0&&S===void 0?F=new Uint8Array(O):S===void 0?F=new Uint8Array(O,m):F=new Uint8Array(O,m,S),Object.setPrototypeOf(F,n.prototype),F}function v(O){if(n.isBuffer(O)){const m=f(O.length)|0,S=c(m);return S.length===0||O.copy(S,0,0,m),S}if(O.length!==void 0)return typeof O.length!="number"||Z(O.length)?c(0):l(O);if(O.type==="Buffer"&&Array.isArray(O.data))return l(O.data)}function f(O){if(O>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return O|0}function g(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==n.prototype},n.compare=function(m,S){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),Be(S,Uint8Array)&&(S=n.from(S,S.offset,S.byteLength)),!n.isBuffer(m)||!n.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===S)return 0;let F=m.length,U=S.length;for(let K=0,ee=Math.min(F,U);K<ee;++K)if(m[K]!==S[K]){F=m[K],U=S[K];break}return F<U?-1:U<F?1:0},n.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(m,S){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return n.alloc(0);let F;if(S===void 0)for(S=0,F=0;F<m.length;++F)S+=m[F].length;const U=n.allocUnsafe(S);let K=0;for(F=0;F<m.length;++F){let ee=m[F];if(Be(ee,Uint8Array))K+ee.length>U.length?(n.isBuffer(ee)||(ee=n.from(ee)),ee.copy(U,K)):Uint8Array.prototype.set.call(U,ee,K);else if(n.isBuffer(ee))ee.copy(U,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return U};function h(O,m){if(n.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Be(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const S=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&S===0)return 0;let U=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return we(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return ye(O).length;default:if(U)return F?-1:we(O).length;m=(""+m).toLowerCase(),U=!0}}n.byteLength=h;function u(O,m,S){let F=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,m>>>=0,S<=m))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,m,S);case"utf8":case"utf-8":return L(this,m,S);case"ascii":return se(this,m,S);case"latin1":case"binary":return ne(this,m,S);case"base64":return D(this,m,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,m,S);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,m,S){const F=O[m];O[m]=O[S],O[S]=F}n.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<m;S+=2)_(this,S,S+1);return this},n.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<m;S+=4)_(this,S,S+3),_(this,S+1,S+2);return this},n.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<m;S+=8)_(this,S,S+7),_(this,S+1,S+6),_(this,S+2,S+5),_(this,S+3,S+4);return this},n.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?L(this,0,m):u.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(m){if(!n.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:n.compare(this,m)===0},n.prototype.inspect=function(){let m="";const S=t.INSPECT_MAX_BYTES;return m=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(m+=" ... "),"<Buffer "+m+">"},s&&(n.prototype[s]=n.prototype.inspect),n.prototype.compare=function(m,S,F,U,K){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),!n.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(S===void 0&&(S=0),F===void 0&&(F=m?m.length:0),U===void 0&&(U=0),K===void 0&&(K=this.length),S<0||F>m.length||U<0||K>this.length)throw new RangeError("out of range index");if(U>=K&&S>=F)return 0;if(U>=K)return-1;if(S>=F)return 1;if(S>>>=0,F>>>=0,U>>>=0,K>>>=0,this===m)return 0;let ee=K-U,Ae=F-S;const Ve=Math.min(ee,Ae),Ie=this.slice(U,K),Ge=m.slice(S,F);for(let ge=0;ge<Ve;++ge)if(Ie[ge]!==Ge[ge]){ee=Ie[ge],Ae=Ge[ge];break}return ee<Ae?-1:Ae<ee?1:0};function k(O,m,S,F,U){if(O.length===0)return-1;if(typeof S=="string"?(F=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Z(S)&&(S=U?0:O.length-1),S<0&&(S=O.length+S),S>=O.length){if(U)return-1;S=O.length-1}else if(S<0)if(U)S=0;else return-1;if(typeof m=="string"&&(m=n.from(m,F)),n.isBuffer(m))return m.length===0?-1:A(O,m,S,F,U);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(O,m,S):Uint8Array.prototype.lastIndexOf.call(O,m,S):A(O,[m],S,F,U);throw new TypeError("val must be string, number or Buffer")}function A(O,m,S,F,U){let K=1,ee=O.length,Ae=m.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||m.length<2)return-1;K=2,ee/=2,Ae/=2,S/=2}function Ve(Ge,ge){return K===1?Ge[ge]:Ge.readUInt16BE(ge*K)}let Ie;if(U){let Ge=-1;for(Ie=S;Ie<ee;Ie++)if(Ve(O,Ie)===Ve(m,Ge===-1?0:Ie-Ge)){if(Ge===-1&&(Ge=Ie),Ie-Ge+1===Ae)return Ge*K}else Ge!==-1&&(Ie-=Ie-Ge),Ge=-1}else for(S+Ae>ee&&(S=ee-Ae),Ie=S;Ie>=0;Ie--){let Ge=!0;for(let ge=0;ge<Ae;ge++)if(Ve(O,Ie+ge)!==Ve(m,ge)){Ge=!1;break}if(Ge)return Ie}return-1}n.prototype.includes=function(m,S,F){return this.indexOf(m,S,F)!==-1},n.prototype.indexOf=function(m,S,F){return k(this,m,S,F,!0)},n.prototype.lastIndexOf=function(m,S,F){return k(this,m,S,F,!1)};function I(O,m,S,F){S=Number(S)||0;const U=O.length-S;F?(F=Number(F),F>U&&(F=U)):F=U;const K=m.length;F>K/2&&(F=K/2);let ee;for(ee=0;ee<F;++ee){const Ae=parseInt(m.substr(ee*2,2),16);if(Z(Ae))return ee;O[S+ee]=Ae}return ee}function P(O,m,S,F){return Se(we(m,O.length-S),O,S,F)}function N(O,m,S,F){return Se(Te(m),O,S,F)}function q(O,m,S,F){return Se(ye(m),O,S,F)}function j(O,m,S,F){return Se(me(m,O.length-S),O,S,F)}n.prototype.write=function(m,S,F,U){if(S===void 0)U="utf8",F=this.length,S=0;else if(F===void 0&&typeof S=="string")U=S,F=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(F)?(F=F>>>0,U===void 0&&(U="utf8")):(U=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-S;if((F===void 0||F>K)&&(F=K),m.length>0&&(F<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");let ee=!1;for(;;)switch(U){case"hex":return I(this,m,S,F);case"utf8":case"utf-8":return P(this,m,S,F);case"ascii":case"latin1":case"binary":return N(this,m,S,F);case"base64":return q(this,m,S,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,m,S,F);default:if(ee)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),ee=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(O,m,S){return m===0&&S===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(m,S))}function L(O,m,S){S=Math.min(O.length,S);const F=[];let U=m;for(;U<S;){const K=O[U];let ee=null,Ae=K>239?4:K>223?3:K>191?2:1;if(U+Ae<=S){let Ve,Ie,Ge,ge;switch(Ae){case 1:K<128&&(ee=K);break;case 2:Ve=O[U+1],(Ve&192)===128&&(ge=(K&31)<<6|Ve&63,ge>127&&(ee=ge));break;case 3:Ve=O[U+1],Ie=O[U+2],(Ve&192)===128&&(Ie&192)===128&&(ge=(K&15)<<12|(Ve&63)<<6|Ie&63,ge>2047&&(ge<55296||ge>57343)&&(ee=ge));break;case 4:Ve=O[U+1],Ie=O[U+2],Ge=O[U+3],(Ve&192)===128&&(Ie&192)===128&&(Ge&192)===128&&(ge=(K&15)<<18|(Ve&63)<<12|(Ie&63)<<6|Ge&63,ge>65535&&ge<1114112&&(ee=ge))}}ee===null?(ee=65533,Ae=1):ee>65535&&(ee-=65536,F.push(ee>>>10&1023|55296),ee=56320|ee&1023),F.push(ee),U+=Ae}return J(F)}const V=4096;function J(O){const m=O.length;if(m<=V)return String.fromCharCode.apply(String,O);let S="",F=0;for(;F<m;)S+=String.fromCharCode.apply(String,O.slice(F,F+=V));return S}function se(O,m,S){let F="";S=Math.min(O.length,S);for(let U=m;U<S;++U)F+=String.fromCharCode(O[U]&127);return F}function ne(O,m,S){let F="";S=Math.min(O.length,S);for(let U=m;U<S;++U)F+=String.fromCharCode(O[U]);return F}function Y(O,m,S){const F=O.length;(!m||m<0)&&(m=0),(!S||S<0||S>F)&&(S=F);let U="";for(let K=m;K<S;++K)U+=le[O[K]];return U}function W(O,m,S){const F=O.slice(m,S);let U="";for(let K=0;K<F.length-1;K+=2)U+=String.fromCharCode(F[K]+F[K+1]*256);return U}n.prototype.slice=function(m,S){const F=this.length;m=~~m,S=S===void 0?F:~~S,m<0?(m+=F,m<0&&(m=0)):m>F&&(m=F),S<0?(S+=F,S<0&&(S=0)):S>F&&(S=F),S<m&&(S=m);const U=this.subarray(m,S);return Object.setPrototypeOf(U,n.prototype),U};function X(O,m,S){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+m>S)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m],K=1,ee=0;for(;++ee<S&&(K*=256);)U+=this[m+ee]*K;return U},n.prototype.readUintBE=n.prototype.readUIntBE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m+--S],K=1;for(;S>0&&(K*=256);)U+=this[m+--S]*K;return U},n.prototype.readUint8=n.prototype.readUInt8=function(m,S){return m=m>>>0,S||X(m,1,this.length),this[m]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(m,S){return m=m>>>0,S||X(m,2,this.length),this[m]|this[m+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(m,S){return m=m>>>0,S||X(m,2,this.length),this[m]<<8|this[m+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(m,S){return m=m>>>0,S||X(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},n.prototype.readBigUInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=S+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,K=this[++m]+this[++m]*2**8+this[++m]*2**16+F*2**24;return BigInt(U)+(BigInt(K)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=S*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],K=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F;return(BigInt(U)<<BigInt(32))+BigInt(K)}),n.prototype.readIntLE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=this[m],K=1,ee=0;for(;++ee<S&&(K*=256);)U+=this[m+ee]*K;return K*=128,U>=K&&(U-=Math.pow(2,8*S)),U},n.prototype.readIntBE=function(m,S,F){m=m>>>0,S=S>>>0,F||X(m,S,this.length);let U=S,K=1,ee=this[m+--U];for(;U>0&&(K*=256);)ee+=this[m+--U]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*S)),ee},n.prototype.readInt8=function(m,S){return m=m>>>0,S||X(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},n.prototype.readInt16LE=function(m,S){m=m>>>0,S||X(m,2,this.length);const F=this[m]|this[m+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(m,S){m=m>>>0,S||X(m,2,this.length);const F=this[m+1]|this[m]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},n.prototype.readInt32BE=function(m,S){return m=m>>>0,S||X(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},n.prototype.readBigInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(F<<24);return(BigInt(U)<<BigInt(32))+BigInt(S+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),n.prototype.readBigInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const S=this[m],F=this[m+7];(S===void 0||F===void 0)&&oe(m,this.length-8);const U=(S<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(U)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F)}),n.prototype.readFloatLE=function(m,S){return m=m>>>0,S||X(m,4,this.length),p.read(this,m,!0,23,4)},n.prototype.readFloatBE=function(m,S){return m=m>>>0,S||X(m,4,this.length),p.read(this,m,!1,23,4)},n.prototype.readDoubleLE=function(m,S){return m=m>>>0,S||X(m,8,this.length),p.read(this,m,!0,52,8)},n.prototype.readDoubleBE=function(m,S){return m=m>>>0,S||X(m,8,this.length),p.read(this,m,!1,52,8)};function ue(O,m,S,F,U,K){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>U||m<K)throw new RangeError('"value" argument is out of bounds');if(S+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(m,S,F,U){if(m=+m,S=S>>>0,F=F>>>0,!U){const Ae=Math.pow(2,8*F)-1;ue(this,m,S,F,Ae,0)}let K=1,ee=0;for(this[S]=m&255;++ee<F&&(K*=256);)this[S+ee]=m/K&255;return S+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(m,S,F,U){if(m=+m,S=S>>>0,F=F>>>0,!U){const Ae=Math.pow(2,8*F)-1;ue(this,m,S,F,Ae,0)}let K=F-1,ee=1;for(this[S+K]=m&255;--K>=0&&(ee*=256);)this[S+K]=m/ee&255;return S+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,1,255,0),this[S]=m&255,S+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,65535,0),this[S]=m&255,this[S+1]=m>>>8,S+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,65535,0),this[S]=m>>>8,this[S+1]=m&255,S+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,4294967295,0),this[S+3]=m>>>24,this[S+2]=m>>>16,this[S+1]=m>>>8,this[S]=m&255,S+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,4294967295,0),this[S]=m>>>24,this[S+1]=m>>>16,this[S+2]=m>>>8,this[S+3]=m&255,S+4};function xe(O,m,S,F,U){z(m,F,U,O,S,7);let K=Number(m&BigInt(4294967295));O[S++]=K,K=K>>8,O[S++]=K,K=K>>8,O[S++]=K,K=K>>8,O[S++]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[S++]=ee,ee=ee>>8,O[S++]=ee,ee=ee>>8,O[S++]=ee,ee=ee>>8,O[S++]=ee,S}function Re(O,m,S,F,U){z(m,F,U,O,S,7);let K=Number(m&BigInt(4294967295));O[S+7]=K,K=K>>8,O[S+6]=K,K=K>>8,O[S+5]=K,K=K>>8,O[S+4]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[S+3]=ee,ee=ee>>8,O[S+2]=ee,ee=ee>>8,O[S+1]=ee,ee=ee>>8,O[S]=ee,S+8}n.prototype.writeBigUInt64LE=ie(function(m,S=0){return xe(this,m,S,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(m,S=0){return Re(this,m,S,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(m,S,F,U){if(m=+m,S=S>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,S,F,Ve-1,-Ve)}let K=0,ee=1,Ae=0;for(this[S]=m&255;++K<F&&(ee*=256);)m<0&&Ae===0&&this[S+K-1]!==0&&(Ae=1),this[S+K]=(m/ee>>0)-Ae&255;return S+F},n.prototype.writeIntBE=function(m,S,F,U){if(m=+m,S=S>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,S,F,Ve-1,-Ve)}let K=F-1,ee=1,Ae=0;for(this[S+K]=m&255;--K>=0&&(ee*=256);)m<0&&Ae===0&&this[S+K+1]!==0&&(Ae=1),this[S+K]=(m/ee>>0)-Ae&255;return S+F},n.prototype.writeInt8=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,1,127,-128),m<0&&(m=255+m+1),this[S]=m&255,S+1},n.prototype.writeInt16LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,32767,-32768),this[S]=m&255,this[S+1]=m>>>8,S+2},n.prototype.writeInt16BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,2,32767,-32768),this[S]=m>>>8,this[S+1]=m&255,S+2},n.prototype.writeInt32LE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,2147483647,-2147483648),this[S]=m&255,this[S+1]=m>>>8,this[S+2]=m>>>16,this[S+3]=m>>>24,S+4},n.prototype.writeInt32BE=function(m,S,F){return m=+m,S=S>>>0,F||ue(this,m,S,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[S]=m>>>24,this[S+1]=m>>>16,this[S+2]=m>>>8,this[S+3]=m&255,S+4},n.prototype.writeBigInt64LE=ie(function(m,S=0){return xe(this,m,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(m,S=0){return Re(this,m,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Oe(O,m,S,F,U,K){if(S+F>O.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Ce(O,m,S,F,U){return m=+m,S=S>>>0,U||Oe(O,m,S,4),p.write(O,m,S,F,23,4),S+4}n.prototype.writeFloatLE=function(m,S,F){return Ce(this,m,S,!0,F)},n.prototype.writeFloatBE=function(m,S,F){return Ce(this,m,S,!1,F)};function He(O,m,S,F,U){return m=+m,S=S>>>0,U||Oe(O,m,S,8),p.write(O,m,S,F,52,8),S+8}n.prototype.writeDoubleLE=function(m,S,F){return He(this,m,S,!0,F)},n.prototype.writeDoubleBE=function(m,S,F){return He(this,m,S,!1,F)},n.prototype.copy=function(m,S,F,U){if(!n.isBuffer(m))throw new TypeError("argument should be a Buffer");if(F||(F=0),!U&&U!==0&&(U=this.length),S>=m.length&&(S=m.length),S||(S=0),U>0&&U<F&&(U=F),U===F||m.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),m.length-S<U-F&&(U=m.length-S+F);const K=U-F;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(S,F,U):Uint8Array.prototype.set.call(m,this.subarray(F,U),S),K},n.prototype.fill=function(m,S,F,U){if(typeof m=="string"){if(typeof S=="string"?(U=S,S=0,F=this.length):typeof F=="string"&&(U=F,F=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!n.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(m.length===1){const ee=m.charCodeAt(0);(U==="utf8"&&ee<128||U==="latin1")&&(m=ee)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(S<0||this.length<S||this.length<F)throw new RangeError("Out of range index");if(F<=S)return this;S=S>>>0,F=F===void 0?this.length:F>>>0,m||(m=0);let K;if(typeof m=="number")for(K=S;K<F;++K)this[K]=m;else{const ee=n.isBuffer(m)?m:n.from(m,U),Ae=ee.length;if(Ae===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(K=0;K<F-S;++K)this[K+S]=ee[K%Ae]}return this};const Fe={};function Ke(O,m,S){Fe[O]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Ke("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ke("ERR_INVALID_ARG_TYPE",function(O,m){return`The "${O}" argument must be of type number. Received type ${typeof m}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,m,S){let F=`The value of "${O}" is out of range.`,U=S;return Number.isInteger(S)&&Math.abs(S)>2**32?U=Me(String(S)):typeof S=="bigint"&&(U=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(U=Me(U)),U+="n"),F+=` It must be ${m}. Received ${U}`,F},RangeError);function Me(O){let m="",S=O.length;const F=O[0]==="-"?1:0;for(;S>=F+4;S-=3)m=`_${O.slice(S-3,S)}${m}`;return`${O.slice(0,S)}${m}`}function We(O,m,S){H(m,"offset"),(O[m]===void 0||O[m+S]===void 0)&&oe(m,O.length-(S+1))}function z(O,m,S,F,U,K){if(O>S||O<m){const ee=typeof m=="bigint"?"n":"";let Ae;throw m===0||m===BigInt(0)?Ae=`>= 0${ee} and < 2${ee} ** ${(K+1)*8}${ee}`:Ae=`>= -(2${ee} ** ${(K+1)*8-1}${ee}) and < 2 ** ${(K+1)*8-1}${ee}`,new Fe.ERR_OUT_OF_RANGE("value",Ae,O)}We(F,U,K)}function H(O,m){if(typeof O!="number")throw new Fe.ERR_INVALID_ARG_TYPE(m,"number",O)}function oe(O,m,S){throw Math.floor(O)!==O?(H(O,S),new Fe.ERR_OUT_OF_RANGE("offset","an integer",O)):m<0?new Fe.ERR_BUFFER_OUT_OF_BOUNDS:new Fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,O)}const de=/[^+/0-9A-Za-z-_]/g;function be(O){if(O=O.split("=")[0],O=O.trim().replace(de,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function we(O,m){m=m||1/0;let S;const F=O.length;let U=null;const K=[];for(let ee=0;ee<F;++ee){if(S=O.charCodeAt(ee),S>55295&&S<57344){if(!U){if(S>56319){(m-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===F){(m-=3)>-1&&K.push(239,191,189);continue}U=S;continue}if(S<56320){(m-=3)>-1&&K.push(239,191,189),U=S;continue}S=(U-55296<<10|S-56320)+65536}else U&&(m-=3)>-1&&K.push(239,191,189);if(U=null,S<128){if((m-=1)<0)break;K.push(S)}else if(S<2048){if((m-=2)<0)break;K.push(S>>6|192,S&63|128)}else if(S<65536){if((m-=3)<0)break;K.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((m-=4)<0)break;K.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return K}function Te(O){const m=[];for(let S=0;S<O.length;++S)m.push(O.charCodeAt(S)&255);return m}function me(O,m){let S,F,U;const K=[];for(let ee=0;ee<O.length&&!((m-=2)<0);++ee)S=O.charCodeAt(ee),F=S>>8,U=S%256,K.push(U),K.push(F);return K}function ye(O){return i.toByteArray(be(O))}function Se(O,m,S,F){let U;for(U=0;U<F&&!(U+S>=m.length||U>=O.length);++U)m[U+S]=O[U];return U}function Be(O,m){return O instanceof m||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===m.name}function Z(O){return O!==O}const le=function(){const O="0123456789abcdef",m=new Array(256);for(let S=0;S<16;++S){const F=S*16;for(let U=0;U<16;++U)m[F+U]=O[S]+O[U]}return m}();function ie(O){return typeof BigInt>"u"?fe:O}function fe(){throw new Error("BigInt not supported")}})(Ni);var Bi={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.default="00000000-0000-0000-0000-000000000000";var Wt={},Jt={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,Object.defineProperty(Jt,"__esModule",{value:!0});const ra=xr;function ia(t){return typeof t=="string"&&ra.default.test(t)}Jt.default=ia,Object.defineProperty(Wt,"__esModule",{value:!0});const oa=Jt;function sa(t){if(!(0,oa.default)(t))throw TypeError("Invalid UUID");let i;return Uint8Array.of((i=parseInt(t.slice(0,8),16))>>>24,i>>>16&255,i>>>8&255,i&255,(i=parseInt(t.slice(9,13),16))>>>8,i&255,(i=parseInt(t.slice(14,18),16))>>>8,i&255,(i=parseInt(t.slice(19,23),16))>>>8,i&255,(i=parseInt(t.slice(24,36),16))/1099511627776&255,i/4294967296&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255)}Wt.default=sa;var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.unsafeStringify=void 0;const aa=Jt,et=[];for(let t=0;t<256;++t)et.push((t+256).toString(16).slice(1));function Di(t,i=0){return(et[t[i+0]]+et[t[i+1]]+et[t[i+2]]+et[t[i+3]]+"-"+et[t[i+4]]+et[t[i+5]]+"-"+et[t[i+6]]+et[t[i+7]]+"-"+et[t[i+8]]+et[t[i+9]]+"-"+et[t[i+10]]+et[t[i+11]]+et[t[i+12]]+et[t[i+13]]+et[t[i+14]]+et[t[i+15]]).toLowerCase()}mt.unsafeStringify=Di;function la(t,i=0){const p=Di(t,i);if(!(0,aa.default)(p))throw TypeError("Stringified UUID is invalid");return p}mt.default=la;var Yt={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});let Sr;const ca=new Uint8Array(16);function ua(){if(!Sr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Sr=crypto.getRandomValues.bind(crypto)}return Sr(ca)}cn.default=ua,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.updateV1State=void 0;const Hi=cn,ha=mt,un={};function fa(t,i,p){var b;let s;const w=(t==null?void 0:t._v6)??!1;if(t){const c=Object.keys(t);c.length===1&&c[0]==="_v6"&&(t=void 0)}if(t)s=$i(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,p);else{const c=Date.now(),n=(0,Hi.default)();Ui(un,c,n),s=$i(n,un.msecs,un.nsecs,w?void 0:un.clockseq,w?void 0:un.node,i,p)}return i?s:(0,ha.unsafeStringify)(s)}function Ui(t,i,p){return t.msecs??(t.msecs=-1/0),t.nsecs??(t.nsecs=0),i===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):i>t.msecs?t.nsecs=0:i<t.msecs&&(t.node=void 0),t.node||(t.node=p.slice(10,16),t.node[0]|=1,t.clockseq=(p[8]<<8|p[9])&16383),t.msecs=i,t}Yt.updateV1State=Ui;function $i(t,i,p,s,w,b,c=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!b)b=new Uint8Array(16),c=0;else if(c<0||c+16>b.length)throw new RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);i??(i=Date.now()),p??(p=0),s??(s=(t[8]<<8|t[9])&16383),w??(w=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+p)%4294967296;b[c++]=n>>>24&255,b[c++]=n>>>16&255,b[c++]=n>>>8&255,b[c++]=n&255;const y=i/4294967296*1e4&268435455;b[c++]=y>>>8&255,b[c++]=y&255,b[c++]=y>>>24&15|16,b[c++]=y>>>16&255,b[c++]=s>>>8|128,b[c++]=s&255;for(let r=0;r<6;++r)b[c++]=w[r];return b}Yt.default=fa;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});const da=Wt,pa=mt;function ma(t){const i=typeof t=="string"?(0,da.default)(t):t,p=ga(i);return typeof t=="string"?(0,pa.unsafeStringify)(p):p}jn.default=ma;function ga(t){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var qi={},br={};Object.defineProperty(br,"__esModule",{value:!0});function ya(t){const i=Sa(t),p=xa(i,t.length*8);return va(p)}function va(t){const i=new Uint8Array(t.length*4);for(let p=0;p<t.length*4;p++)i[p]=t[p>>2]>>>p%4*8&255;return i}function Vi(t){return(t+64>>>9<<4)+14+1}function xa(t,i){const p=new Uint32Array(Vi(i)).fill(0);p.set(t),p[i>>5]|=128<<i%32,p[p.length-1]=i,t=p;let s=1732584193,w=-271733879,b=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const y=s,r=w,e=b,d=c;s=nt(s,w,b,c,t[n],7,-680876936),c=nt(c,s,w,b,t[n+1],12,-389564586),b=nt(b,c,s,w,t[n+2],17,606105819),w=nt(w,b,c,s,t[n+3],22,-1044525330),s=nt(s,w,b,c,t[n+4],7,-176418897),c=nt(c,s,w,b,t[n+5],12,1200080426),b=nt(b,c,s,w,t[n+6],17,-1473231341),w=nt(w,b,c,s,t[n+7],22,-45705983),s=nt(s,w,b,c,t[n+8],7,1770035416),c=nt(c,s,w,b,t[n+9],12,-1958414417),b=nt(b,c,s,w,t[n+10],17,-42063),w=nt(w,b,c,s,t[n+11],22,-1990404162),s=nt(s,w,b,c,t[n+12],7,1804603682),c=nt(c,s,w,b,t[n+13],12,-40341101),b=nt(b,c,s,w,t[n+14],17,-1502002290),w=nt(w,b,c,s,t[n+15],22,1236535329),s=rt(s,w,b,c,t[n+1],5,-165796510),c=rt(c,s,w,b,t[n+6],9,-1069501632),b=rt(b,c,s,w,t[n+11],14,643717713),w=rt(w,b,c,s,t[n],20,-373897302),s=rt(s,w,b,c,t[n+5],5,-701558691),c=rt(c,s,w,b,t[n+10],9,38016083),b=rt(b,c,s,w,t[n+15],14,-660478335),w=rt(w,b,c,s,t[n+4],20,-405537848),s=rt(s,w,b,c,t[n+9],5,568446438),c=rt(c,s,w,b,t[n+14],9,-1019803690),b=rt(b,c,s,w,t[n+3],14,-187363961),w=rt(w,b,c,s,t[n+8],20,1163531501),s=rt(s,w,b,c,t[n+13],5,-1444681467),c=rt(c,s,w,b,t[n+2],9,-51403784),b=rt(b,c,s,w,t[n+7],14,1735328473),w=rt(w,b,c,s,t[n+12],20,-1926607734),s=it(s,w,b,c,t[n+5],4,-378558),c=it(c,s,w,b,t[n+8],11,-2022574463),b=it(b,c,s,w,t[n+11],16,1839030562),w=it(w,b,c,s,t[n+14],23,-35309556),s=it(s,w,b,c,t[n+1],4,-1530992060),c=it(c,s,w,b,t[n+4],11,1272893353),b=it(b,c,s,w,t[n+7],16,-155497632),w=it(w,b,c,s,t[n+10],23,-1094730640),s=it(s,w,b,c,t[n+13],4,681279174),c=it(c,s,w,b,t[n],11,-358537222),b=it(b,c,s,w,t[n+3],16,-722521979),w=it(w,b,c,s,t[n+6],23,76029189),s=it(s,w,b,c,t[n+9],4,-640364487),c=it(c,s,w,b,t[n+12],11,-421815835),b=it(b,c,s,w,t[n+15],16,530742520),w=it(w,b,c,s,t[n+2],23,-995338651),s=ot(s,w,b,c,t[n],6,-198630844),c=ot(c,s,w,b,t[n+7],10,1126891415),b=ot(b,c,s,w,t[n+14],15,-1416354905),w=ot(w,b,c,s,t[n+5],21,-57434055),s=ot(s,w,b,c,t[n+12],6,1700485571),c=ot(c,s,w,b,t[n+3],10,-1894986606),b=ot(b,c,s,w,t[n+10],15,-1051523),w=ot(w,b,c,s,t[n+1],21,-2054922799),s=ot(s,w,b,c,t[n+8],6,1873313359),c=ot(c,s,w,b,t[n+15],10,-30611744),b=ot(b,c,s,w,t[n+6],15,-1560198380),w=ot(w,b,c,s,t[n+13],21,1309151649),s=ot(s,w,b,c,t[n+4],6,-145523070),c=ot(c,s,w,b,t[n+11],10,-1120210379),b=ot(b,c,s,w,t[n+2],15,718787259),w=ot(w,b,c,s,t[n+9],21,-343485551),s=At(s,y),w=At(w,r),b=At(b,e),c=At(c,d)}return Uint32Array.of(s,w,b,c)}function Sa(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(Vi(t.length*8)).fill(0);for(let p=0;p<t.length;p++)i[p>>2]|=(t[p]&255)<<p%4*8;return i}function At(t,i){const p=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(p>>16)<<16|p&65535}function ba(t,i){return t<<i|t>>>32-i}function Nn(t,i,p,s,w,b){return At(ba(At(At(i,t),At(s,b)),w),p)}function nt(t,i,p,s,w,b,c){return Nn(i&p|~i&s,t,i,w,b,c)}function rt(t,i,p,s,w,b,c){return Nn(i&s|p&~s,t,i,w,b,c)}function it(t,i,p,s,w,b,c){return Nn(i^p^s,t,i,w,b,c)}function ot(t,i,p,s,w,b,c){return Nn(p^(i|~s),t,i,w,b,c)}br.default=ya;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.URL=gt.DNS=gt.stringToBytes=void 0;const zi=Wt,wa=mt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let p=0;p<t.length;++p)i[p]=t.charCodeAt(p);return i}gt.stringToBytes=Gi,gt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ea(t,i,p,s,w,b){const c=typeof p=="string"?Gi(p):p,n=typeof s=="string"?(0,zi.default)(s):s;if(typeof s=="string"&&(s=(0,zi.default)(s)),(s==null?void 0:s.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+c.length);if(y.set(n),y.set(c,n.length),y=i(y),y[6]=y[6]&15|t,y[8]=y[8]&63|128,w){b=b||0;for(let r=0;r<16;++r)w[b+r]=y[r];return w}return(0,wa.unsafeStringify)(y)}gt.default=Ea,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=br,p=gt;var s=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}});function w(b,c,n,y){return(0,p.default)(48,i.default,b,c,n,y)}w.DNS=p.DNS,w.URL=p.URL,t.default=w}(qi);var wr={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});const ka=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Er.default={randomUUID:ka},Object.defineProperty(wr,"__esModule",{value:!0});const Ki=Er,_a=cn,Ca=mt;function Oa(t,i,p){var w;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const s=t.random??((w=t.rng)==null?void 0:w.call(t))??(0,_a.default)();if(s.length<16)throw new Error("Random bytes length must be >= 16");if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw new RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[p+b]=s[b];return i}return(0,Ca.unsafeStringify)(s)}wr.default=Oa;var Wi={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function Ra(t,i,p,s){switch(t){case 0:return i&p^~i&s;case 1:return i^p^s;case 2:return i&p^i&s^p&s;case 3:return i^p^s}}function _r(t,i){return t<<i|t>>>32-i}function Ta(t){const i=[1518500249,1859775393,2400959708,3395469782],p=[1732584193,4023233417,2562383102,271733878,3285377520],s=new Uint8Array(t.length+1);s.set(t),s[t.length]=128,t=s;const w=t.length/4+2,b=Math.ceil(w/16),c=new Array(b);for(let n=0;n<b;++n){const y=new Uint32Array(16);for(let r=0;r<16;++r)y[r]=t[n*64+r*4]<<24|t[n*64+r*4+1]<<16|t[n*64+r*4+2]<<8|t[n*64+r*4+3];c[n]=y}c[b-1][14]=(t.length-1)*8/Math.pow(2,32),c[b-1][14]=Math.floor(c[b-1][14]),c[b-1][15]=(t.length-1)*8&4294967295;for(let n=0;n<b;++n){const y=new Uint32Array(80);for(let a=0;a<16;++a)y[a]=c[n][a];for(let a=16;a<80;++a)y[a]=_r(y[a-3]^y[a-8]^y[a-14]^y[a-16],1);let r=p[0],e=p[1],d=p[2],C=p[3],l=p[4];for(let a=0;a<80;++a){const o=Math.floor(a/20),v=_r(r,5)+Ra(o,e,d,C)+l+i[o]+y[a]>>>0;l=C,C=d,d=_r(e,30)>>>0,e=r,r=v}p[0]=p[0]+r>>>0,p[1]=p[1]+e>>>0,p[2]=p[2]+d>>>0,p[3]=p[3]+C>>>0,p[4]=p[4]+l>>>0}return Uint8Array.of(p[0]>>24,p[0]>>16,p[0]>>8,p[0],p[1]>>24,p[1]>>16,p[1]>>8,p[1],p[2]>>24,p[2]>>16,p[2]>>8,p[2],p[3]>>24,p[3]>>16,p[3]>>8,p[3],p[4]>>24,p[4]>>16,p[4]>>8,p[4])}kr.default=Ta,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,p=gt;var s=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return s.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return s.URL}});function w(b,c,n,y){return(0,p.default)(80,i.default,b,c,n,y)}w.DNS=p.DNS,w.URL=p.URL,t.default=w}(Wi);var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Pa=mt,Aa=Yt,Ia=jn;function Fa(t,i,p){t??(t={}),p??(p=0);let s=(0,Aa.default)({...t,_v6:!0},new Uint8Array(16));if(s=(0,Ia.default)(s),i){for(let w=0;w<16;w++)i[p+w]=s[w];return i}return(0,Pa.unsafeStringify)(s)}Cr.default=Fa;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const La=Wt,ja=mt;function Na(t){const i=typeof t=="string"?(0,La.default)(t):t,p=Ma(i);return typeof t=="string"?(0,ja.unsafeStringify)(p):p}Or.default=Na;function Ma(t){return Uint8Array.of((t[3]&15)<<4|t[4]>>4&15,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|t[6]&15,t[7],(t[1]&15)<<4|(t[2]&240)>>4,(t[2]&15)<<4|(t[3]&240)>>4,16|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.updateV7State=void 0;const Ji=cn,Ba=mt,Rr={};function Da(t,i,p){var w;let s;if(t)s=Zi(t.random??((w=t.rng)==null?void 0:w.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,p);else{const b=Date.now(),c=(0,Ji.default)();Yi(Rr,b,c),s=Zi(c,Rr.msecs,Rr.seq,i,p)}return i?s:(0,Ba.unsafeStringify)(s)}function Yi(t,i,p){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=p[6]<<23|p[7]<<16|p[8]<<8|p[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}hn.updateV7State=Yi;function Zi(t,i,p,s,w=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),w=0;else if(w<0||w+16>s.length)throw new RangeError(`UUID byte range ${w}:${w+15} is out of buffer bounds`);return i??(i=Date.now()),p??(p=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),s[w++]=i/1099511627776&255,s[w++]=i/4294967296&255,s[w++]=i/16777216&255,s[w++]=i/65536&255,s[w++]=i/256&255,s[w++]=i&255,s[w++]=112|p>>>28&15,s[w++]=p>>>20&255,s[w++]=128|p>>>14&63,s[w++]=p>>>6&255,s[w++]=p<<2&255|t[10]&3,s[w++]=t[11],s[w++]=t[12],s[w++]=t[13],s[w++]=t[14],s[w++]=t[15],s}hn.default=Da;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ha=Jt;function Ua(t){if(!(0,Ha.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Tr.default=Ua,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.validate=t.v7=t.v6ToV1=t.v6=t.v5=t.v4=t.v3=t.v1ToV6=t.v1=t.stringify=t.parse=t.NIL=t.MAX=void 0;var i=yr;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var p=vr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return p.default}});var s=Wt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return s.default}});var w=mt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return w.default}});var b=Yt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var c=jn;Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return c.default}});var n=qi;Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}});var y=wr;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return y.default}});var r=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return r.default}});var e=Cr;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var d=Or;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var C=hn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var l=Jt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.default}});var a=Tr;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(dt,"__esModule",{value:!0}),dt.generateUUID=dt.validateSetPagingParams=dt.base64=dt.isFunction=void 0;const Qi=Ni,$a=Bi,qa=t=>typeof t=="function";dt.isFunction=qa;const Va=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Qi.Buffer)return Qi.Buffer.from(t).toString("base64")};dt.base64=Va;const za=(t,i,p,s)=>{if(t<1)throw new Error("Page must be 1 or bigger");if(i<1||i>300)throw new Error("PageSize must be between 1 and 300");if(!p||!s)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof p=="string"&&typeof s=="string"||Array.isArray(p)&&Array.isArray(s)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(p)&&p.length!==s.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof s=="string"&&s!=="asc"&&s!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(s)&&s.some(w=>w!=="desc"&&w!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};dt.validateSetPagingParams=za;const Ga=()=>(0,$a.v4)().replace(/-/g,"");dt.generateUUID=Ga;var Ka=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.deleteDocumentsBatch=ft.deleteDocument=ft.saveDocumentsBatch=ft.saveDocument=ft.getDocument=void 0;const fn=Ka(Ii),Wa=dt,dn=(t,i)=>({Authorization:"Basic "+(0,Wa.base64)(t+":"+i),"Content-Type":"application/json"}),Ja=(t,i,p,s)=>new Promise((w,b)=>{fn.default.get(`https://${t}/v2/indices/${i}/documents/${s}`,{headers:dn(i,p)}).then(c=>{c.status===200?w(c.data):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.getDocument=Ja;const Ya=(t,i,p,s)=>{const w=!!(s.id||s.url);return new Promise((b,c)=>{(0,fn.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:w?"put":"post",headers:dn(i,p),data:s}).then(n=>{n.status===202?b({status:n.status,text:n.statusText}):c(new Error(JSON.stringify({status:n.status,text:n.statusText})))}).catch(n=>{c(new Error(JSON.stringify({status:400,text:n})))})})};ft.saveDocument=Ya;const Za=(t,i,p,s)=>new Promise((w,b)=>{(0,fn.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:dn(i,p),data:s}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.saveDocumentsBatch=Za;const Qa=(t,i,p,s)=>new Promise((w,b)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents/${s}`,{headers:dn(i,p)}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocument=Qa;const Xa=(t,i,p,s)=>new Promise((w,b)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:dn(i,p),data:s}).then(c=>{c.status===202?w({status:c.status,text:c.statusText}):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocumentsBatch=Xa;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});const el=Kr,tl=Xe;(0,el.polyfill)();const nl=(t,i,p,s)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!s?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(p)):tl.statsInstance.post(`https://${t}/v1/stats/${i}/`,p,{headers:{"Content-Type":"text/plain"}}).then().catch(w=>{console.error(w)})};Pr.default=nl;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.putSentimentClick=void 0;const Ar=Xe,rl=(t,i,p,s)=>new Promise((w,b)=>{Ar.conversationalSearchInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${p}/rating`,{value:s==="positive"?1:s==="negative"?-1:0}).then(c=>{c.status===200?w(!0):b(new Error(JSON.stringify({type:Ar.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),b(new Error(JSON.stringify({type:Ar.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Mn.putSentimentClick=rl;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const il=dt;class ol{constructor(){this.settings={keyword:"*",callback:null,throttleTimeMs:200,fuzzy:"auto",paging:{page:1,pageSize:10,sortBy:"relevance",sortOrder:"desc"},customFieldFilters:[],userToken:null,suggestionsSize:10,facetFields:[],autocomplete:{size:10},searchOperator:null,enableLogicalOperators:!1,cacheResponseTime:null,statsRequestIntercepted:!1}}getSettings(){return this.settings}setKeyword(i){this.settings.keyword=i||"*"}setCallback(i){this.settings.callback=i}setThrottleTime(i){this.settings.throttleTimeMs=i}setSuggestionsPrefix(i){this.settings.suggestionsPrefix=i}setSuggestionsSize(i){this.settings.suggestionsSize=i}setAutocompleteSize(i){this.settings.autocomplete.size=i}setAutocompleteParams(i,p){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=p}setLanguage(i){let p;if(Intl&&Intl.Locale)try{p=new Intl.Locale(i).language}catch(s){throw console.debug(s),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else p=i;if(p&&p.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=p}setFuzzyMatch(i){if(i!==!0&&i!==!1&&i!=="auto"&&i!=="retry")throw new Error("Fuzzy matching can be true, false, 'auto', or 'retry'");this.settings.fuzzy=i}enableLogicalOperators(i){this.settings.enableLogicalOperators=i}setCacheResponseTime(i){this.settings.cacheResponseTime=i}setPostfixWildcard(i){this.settings.postfixWildcard=i}setCollectAnalytics(i){this.settings.collectAnalytics=i}setAnalyticsTag(i){this.settings.analyticsTag=i}setCategoryFilters(i){this.settings.categories=i}setFilterObject(i){this.settings.filterObject=i}setPriceRangeFilter(i,p){this.settings.priceFromCents=i,this.settings.priceToCents=p}addCustomFieldFilter(i,p){const s=encodeURIComponent(`${i}=${p}`);this.settings.customFieldFilters.includes(s)||this.settings.customFieldFilters.push(s)}removeCustomFieldFilter(i,p){const s=!p,w=encodeURIComponent(`${i}=${p||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>s?!b.startsWith(w):b!==w)}setDateFilter(i,p){this.settings.dateFrom=i,this.settings.dateTo=p}setJWT(i){this.settings.jwt=i}setUserToken(i){this.settings.userToken=i}setPersonalizationEvents(i){Array.isArray(i)&&(this.settings.personalizationEvents=i)}setResultType(i){this.settings.resultType=i}addFacetField(i){this.settings.facetFields.includes(i)||this.settings.facetFields.push(i)}addHierarchicalFacetSetting(i){this.settings.hierarchicalFacetSetting=i}addRangeFacet(i,p){this.settings.rangeFacets||(this.settings.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:p})}addStatsField(i){this.settings.statsFields||(this.settings.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,p,s,w){(0,il.validateSetPagingParams)(i,p,s,w),this.settings.paging={page:i,pageSize:p,sortBy:s,sortOrder:w}}setShuffleAndLimitTo(i){this.settings.shuffleAndLimitTo=i}nextPage(){this.settings.paging.page++}previousPage(){this.settings.paging.page>0&&this.settings.paging.page--}setSearchOperator(i){if(i!=="and"&&i!=="or")throw new Error("Operator must be 'and' or 'or'");this.settings.searchOperator=i}setStatsRequestIntercepted(i){this.settings.statsRequestIntercepted=i}}Ir.default=ol;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const sl=(t,i)=>{let p=0,s=null;function w(){s!==null&&(clearTimeout(s),s=null)}function b(...c){const n=Date.now()-p,y=()=>{p=Date.now(),i(...c)};w(),n>t?y():s=setTimeout(y,t-n)}return b};Fr.default=sl;var It={};Object.defineProperty(It,"__esModule",{value:!0}),It.deleteCookie=It.getCookie=It.setCookie=void 0;const al=(t,i,p)=>{if(typeof document>"u")return;const s=new Date;s.setTime(s.getTime()+p*24*60*60*1e3);const w="expires="+s.toUTCString();document.cookie=`${t}=${i};${w};path=/`};It.setCookie=al;const ll=t=>{if(typeof document>"u")return;const i=`${t}=`,s=decodeURIComponent(document.cookie).split(";");for(let w=0;w<s.length;w++){let b=s[w];for(;b.charAt(0)===" ";)b=b.substring(1);if(b.indexOf(i)===0)return b.substring(i.length,b.length)}};It.getCookie=ll;const cl=t=>{typeof document>"u"||(document.cookie=`${t}=; Path=/; Expires=Thu, 01 Jan 2000 00:00:01 GMT;`)};It.deleteCookie=cl;var ul=Qe&&Qe.__createBinding||(Object.create?function(t,i,p,s){s===void 0&&(s=p);var w=Object.getOwnPropertyDescriptor(i,p);(!w||("get"in w?!i.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return i[p]}}),Object.defineProperty(t,s,w)}:function(t,i,p,s){s===void 0&&(s=p),t[s]=i[p]}),hl=Qe&&Qe.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),Xi=Qe&&Qe.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(p){var s=[];for(var w in p)Object.prototype.hasOwnProperty.call(p,w)&&(s[s.length]=w);return s},t(i)};return function(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var s=t(i),w=0;w<s.length;w++)s[w]!=="default"&&ul(p,i,s[w]);return hl(p,i),p}}(),Bn=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Mt=Bn(Jn),pn=ft,eo=Bn(Pr),fl=Mn,dl=Bn(Ir),Dn=Xi(dt),mn=Bn(Fr),Lr=Xi(It),Hn=Xe,to="api.addsearch.com",jr="addsearchUserToken";class pl{constructor(i,p){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=p||"",this.apiHostname=to,this.statsApiHostname=to,this.settings=new dl.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=Lr.getCookie(jr)||Dn.generateUUID()}search(i,p){let s=null,w=null;if(typeof i=="string"&&typeof p=="function")s=i,w=p;else if(typeof i=="function"&&!p)s=this.settings.getSettings().keyword||null,w=i;else if(this.settings.getSettings().callback)s=this.settings.getSettings().keyword||null,w=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>w),this.settings.setKeyword(s),this.throttledSearchFetch||(this.throttledSearchFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),w)}conversationalSearch(i,p){this.settings.setCallback(()=>p),this.settings.setKeyword(i),this.throttledConversationalSearchFetch||(this.throttledConversationalSearchFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledConversationalSearchFetch(this.apiHostname,this.sitekey,"conversational-search",this.settings.getSettings(),p)}putSentimentClick(i,p){return(0,fl.putSentimentClick)(this.apiHostname,this.sitekey,i,p)}suggestions(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),this.throttledSuggestionsFetch||(this.throttledSuggestionsFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),p)}autocomplete(i,p,s){if(!i||!p||!s||!Dn.isFunction(s))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,p),this.throttledAutocompleteFetch||(this.throttledAutocompleteFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),s)}fetchCustomApi(i,p,s){var w;const b=Object.assign({},this.settings.getSettings());b.facetFields=(w=b.facetFields)===null||w===void 0?void 0:w.filter(c=>i===c),(0,Mt.default)(this.apiHostname,this.sitekey,"search",b,s,null,p)}fetchRangeFacets(i,p,s){const w=Object.assign({},this.settings.getSettings());w.rangeFacets||(w.rangeFacets=[]),w.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Mt.default)(this.apiHostname,this.sitekey,"search",w,s,null,p)}recommendations(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");this.throttledRecommendationFetch||(this.throttledRecommendationFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",null,p,!1,null,i)}getDocument(i){return(0,pn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,pn.saveDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of documents: {documents: []}");return(0,pn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,pn.deleteDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of document ids: {documents: []}");return(0,pn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,p){(!p||!p.statsApiRequestOnly)&&(this.apiHostname=i),(!p||!p.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,p){this.settings.addCustomFieldFilter(i,p)}removeCustomFieldFilter(i,p){this.settings.removeCustomFieldFilter(i,p)}setPriceRangeFilter(i,p){this.settings.setPriceRangeFilter(i,p)}setDateFilter(i,p){this.settings.setDateFilter(i,p)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,p,s,w){this.settings.setPaging(i,p,s,w)}nextPage(){this.settings.nextPage()}previousPage(){this.settings.previousPage()}setSuggestionsSize(i){this.settings.setSuggestionsSize(i)}setAutocompleteSize(i){this.settings.setAutocompleteSize(i)}addFacetField(i){this.settings.addFacetField(i)}addHierarchicalFacetSetting(i){this.settings.addHierarchicalFacetSetting(i)}addRangeFacet(i,p){this.settings.addRangeFacet(i,p)}addStatsField(i){this.settings.addStatsField(i)}setNumberOfFacets(i){this.settings.setNumberOfFacets(i)}setResultType(i){this.settings.setResultType(i)}setPersonalizationEvents(i){this.settings.setPersonalizationEvents(i)}setFilterObject(i){this.settings.setFilterObject(i)}setShuffleAndLimitTo(i){this.settings.setShuffleAndLimitTo(i)}setFuzzyMatch(i){this.settings.setFuzzyMatch(i)}setPostfixWildcard(i){this.settings.setPostfixWildcard(i)}setCacheResponseTime(i){this.settings.setCacheResponseTime(i)}setCollectAnalytics(i){this.settings.setCollectAnalytics(i)}setAnalyticsTag(i){this.settings.setAnalyticsTag(i)}setThrottleTime(i){this.settings.setThrottleTime(i)}setStatsSessionId(i){this.sessionId=i,this.userTokenInPersonalization=i,this.useStatsSessionId=!0}getStatsSessionId(){return this.sessionId}enableLogicalOperators(i){this.settings.enableLogicalOperators(i)}setSearchOperator(i){this.settings.setSearchOperator(i)}sendStatsEvent(i,p,s){const w=!this.useStatsSessionId&&no&&ro;if(w&&!Lr.getCookie(jr)&&Lr.setCookie(jr,this.userTokenInPersonalization,io),i==="search"){const b={action:"search",session:w?this.userTokenInPersonalization:this.sessionId,keyword:p,numberOfResults:s.numberOfResults,tag:this.getSettings().analyticsTag};(0,eo.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:w?this.userTokenInPersonalization:this.sessionId,keyword:p,docid:s.documentId,position:s.position,tag:this.getSettings().analyticsTag};(0,eo.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else throw new Error("Illegal sendStatsEvent type parameters. Should be search or click)")}getUserTokenInPersonalization(){return this.userTokenInPersonalization}enablePersonalizationTracking(i,p){no=i,p&&(io=p)}consentAddSearchCookie(i){ro=i}setApiRequestInterceptor(i,p={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:s=!1,statsApiRequestOnly:w=!1}=p;!s&&!w?((0,Hn.setRequestInterceptor)(i,"searchApi"),(0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(s&&(0,Hn.setRequestInterceptor)(i,"searchApi"),w&&((0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}searchResultClicked(i,p){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:p})}}let no=!1,ro=!1,io=180;var ml=pl;const gl=qr(ml);var oo={exports:{}};/*! addsearch-search-ui 0.9.1 */(function(t,i){(function(p,s){t.exports=s()})(Qe,function(){return function(){var p={2987:function(b,c,n){b.exports=n(4933).default,b.exports.AUTOCOMPLETE_TYPE=n(6510).AUTOCOMPLETE_TYPE,b.exports.FILTER_TYPE=n(9369).FILTER_TYPE,b.exports.SORTBY_TYPE=n(8909).SORTBY_TYPE,b.exports.LOAD_MORE_TYPE=n(3816).LOAD_MORE_TYPE,b.exports.RECOMMENDATION_TYPE=n(4128).RECOMMENDATION_TYPE,b.exports.RANGE_FACETS_TYPE=n(1990).RANGE_FACETS_TYPE,b.exports.Handlebars_runtime=n(261)},6148:function(b,c,n){n.d(c,{Ah:function(){return ne},B5:function(){return f},C0:function(){return J},FJ:function(){return g},GA:function(){return D},GB:function(){return v},Jd:function(){return _},KR:function(){return r},Km:function(){return a},MO:function(){return P},OA:function(){return q},Pf:function(){return A},VW:function(){return y},XD:function(){return se},Xr:function(){return I},d5:function(){return k},dC:function(){return V},h$:function(){return o},hR:function(){return N},hx:function(){return h},il:function(){return u},kw:function(){return e},nl:function(){return L},nn:function(){return C},p3:function(){return l},vT:function(){return d}});const y="AUTOCOMPLETE_FETCH_START",r="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",d="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",l="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",o="AUTOCOMPLETE_SHOW",v="AUTOCOMPLETE_HIDE",f="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",g="HIDE_AUTOMATICALLY",h="KEYBOARD_EVENT",u="ARROW_UP",_="ARROW_DOWN",k="SET_ACTIVE_SUGGESTION",A="suggestions",I="custom_fields";function P(Y,W){return W&&W!==""?(X,ue)=>{const xe=ue().keyword.minLengthRequiredToFetch;W.length<xe||(X(j(A)),Y.suggestions(W,Re=>{ue().keyword.value!==""&&X(function(Oe,Ce){return{type:r,keyword:Oe,results:Ce}}(W,Re))}))}:{type:d}}function N(Y,W,X){return W&&W!==""?(ue,xe)=>{const Re=xe().keyword.minLengthRequiredToFetch;W.length<Re||(ue(j(I)),Y.autocomplete(X,W,Oe=>{xe().keyword.value!==""&&ue({type:e,results:Oe})}))}:{type:C}}function q(Y,W,X,ue){return X&&X!==""?(xe,Re)=>{const Oe=Re().keyword.minLengthRequiredToFetch;X.length<Oe||(xe(j(W)),Y.search(X,Ce=>{Re().keyword.value!==""&&xe(function(He,Fe,Ke,Me){return{type:l,keyword:He,results:Fe,jsonKey:Ke,appendResults:Me}}(X,Ce,W,ue))}))}:{type:a}}function j(Y){return{type:y,jsonKey:Y}}function D(){return{type:o}}function L(){return{type:v}}function V(){return{type:f}}function J(Y){return{type:h,direction:Y}}function se(Y,W){return{type:k,index:Y,setSuggestionToSearchField:W}}function ne(Y){return{type:g,hideAutomatically:Y}}},1271:function(b,c,n){n.d(c,{e:function(){return r},BA:function(){return e},eH:function(){return y},K3:function(){return C},IT:function(){return l},JK:function(){return d},Vk:function(){return a},bz:function(){return o}});const y="IS_LOADING_CONVERSATIONAL_SEARCH",r="CONVERSATIONAL_SEARCH_RESULT",e="CONVERSATIONAL_SEARCH_RESULT_ERROR",d="SET_CONVERSATIONAL_SEARCH_SENTIMENT",C="SET_CONVERSATIONAL_SEARCH_ANSWER_EXPANDED",l="SET_CONVERSATIONAL_SEARCH_HIDDEN";function a(v,f){return g=>{g({type:e,payload:!1}),g({type:y,payload:!0}),v.conversationalSearch(f,h=>{if(h.error)g({type:e,payload:!0});else{const k={id:(u=h).conversation_id,answerText:u.answer||"",sources:((_=u.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(A=>({url:A.url,title:A.title})))||[]};g({type:d,payload:"neutral"}),g({type:r,payload:k})}var u,_;g({type:y,payload:!1})})}}function o(v,f,g){return h=>{h({type:d,payload:g}),v.putSentimentClick(f,g).then().catch(u=>{console.error(u)})}}},6843:function(b,c,n){n.d(c,{IJ:function(){return y},Ow:function(){return e},nb:function(){return r},np:function(){return d}});const y="SET_FIELD_STATS",r="CLEAR_FIELD_STATS";function e(C,l){return{type:y,fieldStats:C,callBy:l}}function d(){return{type:r}}},549:function(b,c,n){n.d(c,{CY:function(){return y},Gc:function(){return j},II:function(){return P},IS:function(){return v},JS:function(){return l},Ni:function(){return N},QW:function(){return o},Tv:function(){return g},Uj:function(){return r},VH:function(){return u},VN:function(){return C},XI:function(){return e},Xh:function(){return A},cl:function(){return a},eu:function(){return k},hx:function(){return D},jU:function(){return q},ks:function(){return I},u3:function(){return _},uR:function(){return d},ul:function(){return h},vj:function(){return f}});const y="TOGGLE_FILTER",r="SET_RANGE_FILTER",e="REGISTER_FILTER",d="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",l="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",o="TOGGLE_HIERARCHICAL_FACET_FILTER",v="TOGGLE_RANGE_FACET_FILTER",f="CLEAR_SELECTED_FILTERS_AND_FACETS",g="CLEAR_SELECTED_RANGE_FACETS";function h(L){return{type:e,filterObj:L}}function u(L,V,J){return{type:y,filterName:L,value:V,refreshSearch:J}}function _(L,V,J){return{type:r,field:L,from:V,to:J}}function k(L){return{type:d,json:L}}function A(L){return{type:C,json:L}}function I(L,V,J){return{type:l,json:L,refreshSearch:V,field:J}}function P(L,V,J){return{type:a,field:L,value:V,refreshSearch:J}}function N(L,V,J,se,ne){return{type:o,field:L,container:V,confFields:J,value:se,refreshSearch:ne}}function q(L,V,J,se,ne){return{type:v,field:L,values:V,key:J,refreshSearch:se,byActiveFilterComponent:ne}}function j(L,V){return{type:g,refreshSearch:L,setHistory:V}}function D(L,V){return{type:f,refreshSearch:L,byActiveFilterComponent:V}}},6993:function(b,c,n){n.d(c,{Ai:function(){return e},Le:function(){return r},QR:function(){return y},_T:function(){return d}});const y="KEYWORD",r="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,l,a,o){return{type:y,value:C,skipAutocomplete:l,searchFieldContainerId:a||null,setSearchFieldValue:o||!1}}function d(C){return{type:r,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,c,n){n.d(c,{I:function(){return e},N:function(){return r}});var y=n(4903);const r="SET_PAGE";function e(d,C,l,a){l===!1||d.getSettings().paging.page===C&&C!==1||(0,y.Dh)(y.sh.PAGE,C+"",null,a);const o=d.getSettings().paging;return d.setPaging(C,o.pageSize,o.sortBy,o.sortOrder),{type:r,page:C}}},878:function(b,c,n){n.d(c,{KE:function(){return d},OU:function(){return e},T7:function(){return l},iM:function(){return r},vh:function(){return C}}),n(4933),n(4903);var y=n(3007);const r="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",d="CLEAR_RECOMMENDATION";function C(a,o){return v=>{switch(o.type){case y.Qc:a.recommendations(o,f=>{var g;v((g=o.container,{type:r,container:g,recommendType:"frequently-bought-together",results:f}))});break;case y.uH:a.recommendations(o,f=>{var g;v((g=o.container,{type:e,container:g,recommendType:"related-items",results:f}))})}}}function l(){return{type:d}}},1944:function(b,c,n){n.d(c,{AX:function(){return f},EF:function(){return v},d3:function(){return d},j2:function(){return C},lq:function(){return g},mY:function(){return a},xE:function(){return l},y$:function(){return o}});var y=n(4933),r=n(4903),e=n(6351);const d="START",C="SET_SEARCH_RESULTS_PAGE_URL",l="SEARCH_FETCH_START",a="SEARCH_RESULTS",o="CLEAR_SEARCH_RESULTS";function v(h,u,_,k,A,I,P,N,q){return(0,r.Dh)(r.sh.SEARCH,u,A,I),u&&u!==""?(j,D)=>{const L=D().keyword.minLengthRequiredToFetch;A&&u.length<L||(j({type:l}),h.search(u,V=>{if((q||P)&&V&&V.hits&&V.hits.length){var J=(q||P).replace("custom_fields.",""),se=function(ne,Y,W){return Y.find(X=>{if(!X.custom_fields||!X.custom_fields[W])return!1;if(typeof X.custom_fields[W]=="string")return ne.toLowerCase()===X.custom_fields[W].toLowerCase();if(typeof X.custom_fields[W]=="object"&&X.custom_fields[W].length){const ue=X.custom_fields[W].map(Re=>Re.toLowerCase()),xe=ne.toLowerCase();return ue.indexOf(xe)>-1}return!1})}(u,V.hits,J);if(se&&!A)return void window.location.replace(se.url)}j(function(ne,Y,W,X,ue,xe){if(/top-delay-\d*$/.test(X)){var Re=parseInt(X.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},Re)}else X==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(y.H)===-1){const Oe=W?W.total_hits:0,Ce=W?W.processing_time_ms:0;(0,e.mh)(ne,Y,Oe,Ce)}return{type:a,keyword:Y,results:W,appendResults:ue,requestBy:xe}}(h,u,V,_,k,N))}))}:{type:o}}function f(h){return h==="top"&&window.scrollTo(0,0),{type:o}}function g(h){return{type:C,url:h}}},4826:function(b,c,n){n.d(c,{JK:function(){return r},VD:function(){return e},l$:function(){return d},lD:function(){return y}});const y="SEGMENTED_SEARCH_START",r="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function d(C,l,a){return a&&a!==""?o=>{o(function(v){return{type:y,jsonKey:v}}(l)),C.search(a,v=>o(function(f,g,h){return{type:r,jsonKey:f,keyword:g,results:h}}(l,a,v)))}:{type:e}}},6353:function(b,c,n){n.d(c,{ER:function(){return e},O0:function(){return r},Ul:function(){return d}});var y=n(4903);const r="SORTBY",e="desc";function d(C,l,a,o){o&&(0,y.Dh)(y.sh.SORTBY,JSON.stringify({field:l,order:a}),null,o);const v=C.getSettings().paging;return C.setPaging(v.page,v.pageSize,l,a),{type:r,field:l,order:a}}},6510:function(b,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return A},A:function(){return k}});var y=n(2334),r=n.n(y),e=n(6148),d=n(1944),C=n(6993),l=n(4922),a=n(4379),o=n(6351),v=n(4903),f=n(3923),g=n(209),h=n.n(g),u=n(1271);function _(I,P,N){var q;return(P=typeof(q=function(j,D){if(typeof j!="object"||!j)return j;var L=j[Symbol.toPrimitive];if(L!==void 0){var V=L.call(j,D||"default");if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(j)}(P,"string"))=="symbol"?q:String(q))in I?Object.defineProperty(I,P,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[P]=N,I}class k{constructor(P,N,q,j){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=P,this.reduxStore=N,this.hasConversationalSearch=q,this.conf=j,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const D=this.conf.categorySelectionFunction||f.GK;(0,f.g3)("selectSearchResultCategory",L=>D(L,this.conf.categoryAliases)),(0,a.A)(j.containerId)&&((0,l.G)(this.reduxStore,"autocomplete",L=>this.autocompleteResultsChanged(L)),(0,l.G)(this.reduxStore,"keyword",L=>this.keywordChanged(L))),j.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),j.sources&&j.sources.length&&j.sources.forEach(L=>{L.client&&L.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(P){if(P.dropRendering)return void this.clearRenderedHtml();const N=this.reduxStore.getState().keyword.value;P.pendingRequests.length>0||N.length<this.minLengthRequired||(P.keyword&&P.keyword!==""&&this.sendSearchAnalytics(P),this.render(P))}sendSearchAnalytics(P){let N=[];this.conf.sources.forEach(q=>{if(q.type===A.SEARCH&&q.collectSearchAnalytics){const j=q.client||this.client,D=P.searchResultsStats[q.jsonKey]?P.searchResultsStats[q.jsonKey].total_hits:0;N.push({client:j,numberOfResults:D})}}),(0,o.ME)(P.keyword,N)}keywordChanged(P){if(P.skipAutocomplete)return;const N=P.value;this.conf.sources.forEach(q=>{const j=q.client||this.client;if(q.type===A.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(j,N));else if(q.type===A.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(j,N,q.field));else if(q.type===A.SEARCH){const D=j.getSettings().paging;j.setPaging(1,D.pageSize,D.sortBy,D.sortOrder),this.reduxStore.dispatch((0,e.OA)(j,q.jsonKey,N,this.hasConversationalSearch))}})}loadMore(P){this.conf.sources.forEach(N=>{const q=N.client;q&&N.type===A.SEARCH&&(q.nextPage(),this.reduxStore.dispatch((0,e.OA)(q,N.jsonKey,P,this.hasConversationalSearch,!0)))})}render(P){if(P.visible===!1)return void this.clearRenderedHtml();const{suggestions:N,customFields:q,searchResults:j,activeSuggestionIndex:D}=P,L={activeSuggestionIndex:D,suggestions:N,customFields:q,searchResults:j};let V;if(V=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):h()(L),this.renderedHtml===V)return;const J=document.getElementById(this.conf.containerId);J.innerHTML=V,this.renderedHtml=V,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const se=J.querySelector(".suggestions")?J.querySelectorAll(".suggestions > li"):[],ne=J.querySelectorAll(".suggestions");for(let Y=0;Y<se.length;Y++)se[Y].onmousedown=W=>this.suggestionMouseDown(W),ne.length<=1&&(se[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(j[Object.keys(j)[0]]){const Y=J.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(X=>{X.type===A.SEARCH&&(W||(W=X.client))}),W||(W=this.client),(0,o.$P)(W,Y,{hits:j[Object.keys(j)[0]]})}this.conf.infiniteScrollElement&&!P.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(J)}suggestionMouseDown(P){const N=P.target.getAttribute("data-keyword"),q=this.reduxStore;q.dispatch((0,e.dC)()),q.dispatch((0,C.Ai)(N,!0,null,!0));const j=q.getState().search.searchResultsPageUrl;j?(0,v.lG)(j,N):(q.dispatch((0,d.EF)(this.client,N,null,null,null,q)),this.hasConversationalSearch&&q.dispatch((0,u.Vk)(this.client,N)))}suggestionMouseEnter(P){const N=parseInt(P.target.getAttribute("data-index"),10);N!==null&&N!==this.lastOnmouseOver&&(this.lastOnmouseOver=N,this.reduxStore.dispatch((0,e.XD)(N,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const P=this.conf.infiniteScrollElement;if(P.scrollHeight>0&&Math.ceil(P.offsetHeight+P.scrollTop)>=P.scrollHeight){const N=this.reduxStore.getState().keyword.value;this.loadMore(N)}}}}const A={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,c,n){n.d(c,{A:function(){return a},a:function(){return l}});var y=n(1944),r=n(5756),e=n(4922),d=n(4903),C=n(4826);function l(o,v,f){let g={and:[]};v&&g.and.push(v);let h={};o.allAvailableFilters.forEach(u=>{let _={or:[]};for(let k in u)o.activeFilters[k]&&!h[k]&&(_.or.push(u[k].filter),h[k]=!0);_.or.length>0&&g.and.push(_)});for(let u in o.activeRangeFilters)g.and.push({range:{[u]:Object.assign({},o.activeRangeFilters[u])}});for(let u in o.activeFacets){let _={or:[]};for(let k in o.activeFacets[u])if(u!==f){const A={};A[u]=k,_.or.push(A)}_.or.length>0&&g.and.push(_)}for(let u in o.activeHierarchicalFacets){let _={or:[]};for(let k in o.activeHierarchicalFacets[u])for(let A in o.activeHierarchicalFacets[u][k])if(!f||f.indexOf(k)===-1){const I={};I[k]=A,_.or.push(I)}_.or.length>0&&g.and.push(_)}for(let u in o.activeRangeFacets){let _={or:[]};for(let k in o.activeRangeFacets[u])if(u!==f){const A={range:{[u]:o.activeRangeFacets[u][k]}};_.or.push(A)}_.or.length>0&&g.and.push(_)}return g.and.length>0?g:{}}class a{constructor(v,f,g,h,u,_,k){this.client=v,this.reduxStore=f,this.createFilterObjectFunction=g,this.onFilterChange=h,this.onFilteredSearchRefresh=k,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",A=>this.onFilterStateChange(A,u))}onFilterStateChange(v,f){if(v.refreshSearch){(0,d.Dh)(d.sh.FILTERS,(0,d.IR)(v.activeFilters),null,this.reduxStore),(0,d.Dh)(d.sh.FACETS,(0,d.IR)(v.activeFacets),null,this.reduxStore),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore);const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g);const h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,r.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,y.EF)(this.client,h,null,null,null,this.reduxStore,null,v.targetFacetGroup));for(let u in this.segmentedSearchClients){const _=this.createFilterObjectFunction(v,this.segmentedSearchClients[u].originalFilters);this.segmentedSearchClients[u].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[u].client,u,h))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(v.setHistory){const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(v.activeFilters)}}},9369:function(b,c,n){n.d(c,{FILTER_TYPE:function(){return j},A:function(){return q}});var y=n(2334),r=n.n(y),e=n(4922),d=n(549),C=n(6353),l=n(4379),a=n(3668),o=n.n(a),v=n(8810),f=n.n(v),g=n(5509),h=n.n(g),u=n(1572),_=n.n(u),k=n(948),A=n.n(k),I=n(3329),P=n.n(I);const N="nofilter";class q{constructor(L,V,J){this.client=L,this.reduxStore=V,this.conf=J,this.activeFilter=null,(0,l.A)(J.containerId)&&(this.reduxStore.dispatch((0,d.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",se=>this.render(se)),this.conf.type===j.RANGE&&(0,e.G)(this.reduxStore,"search",se=>this.searchResultsChanged(se)))}searchResultsChanged(L){!L.loading&&L.results.fieldStats&&L.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(L){let V=Object.assign({},this.conf);this.activeFilter=null;let J=!1;for(let W in V.options)L.activeFilters[W]?(V.options[W].active=!0,this.activeFilter=W,J=!0):V.options[W].active=!1;!J&&V.options&&V.options[N]&&(V.options[N].active=!0);let se,ne=null;if(this.conf.type===j.TABS)ne=_();else if(this.conf.type===j.TAGS)ne=h();else if(this.conf.type===j.CHECKBOX_GROUP)ne=o();else if(this.conf.type===j.RADIO_GROUP)ne=f();else if(this.conf.type===j.RANGE){L.activeRangeFilters[this.conf.field]&&(V.from=L.activeRangeFilters[this.conf.field].gte,V.to=L.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:X,max:ue}=W.fieldStats[this.conf.field];V.fromPlaceholder=X==="Infinity"?"":X,V.toPlaceholder=ue==="-Infinity"?"":ue}ne=P()}else ne=A();if(se=this.conf.precompiledTemplate?this.conf.precompiledTemplate(V):this.conf.template?r().compile(this.conf.template)(V):ne(V),this.renderedHtml===se)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=se,this.renderedHtml=se,this.conf.type===j.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===j.TABS){const W=Y.querySelectorAll("[data-filter]");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.getAttribute("data-filter")))}else if(this.conf.type===j.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.value))}else this.conf.type===j.RANGE?this.attachRangeFilterEvents(Y):(0,l.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,d.VH)(W,1))})}singleActiveChangeEvent(L){const V=L===N,J=this.reduxStore;L!==this.activeFilter&&(this.conf.setSorting&&J.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?J.dispatch((0,d.hx)(V)):this.activeFilter&&J.dispatch((0,d.VH)(this.activeFilter,1,V)),V?this.activeFilter=null:(this.activeFilter=L,J.dispatch((0,d.VH)(L,1,!0))))}attachRangeFilterEvents(L){const V=L.querySelectorAll("input");for(let se=0;se<V.length;se++)V[se].addEventListener("change",ne=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ne.target.value)?ne.target.setAttribute("data-valid","false"):(ne.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,L.querySelector('input[name="from"]').value,L.querySelector('input[name="to"]').value))});const J=L.querySelector("button");J&&J.addEventListener("click",se=>this.reduxStore.dispatch((0,d.u3)(this.conf.field,null,null)))}rangeChangeEvent(L,V,J){const se=V!==""?V:null,ne=J!==""?J:null;this.reduxStore.dispatch((0,d.u3)(L,se,ne))}}const j={CHECKBOX_GROUP:"CHECKBOX_GROUP",RADIO_GROUP:"RADIO_GROUP",SELECT_LIST:"SELECT_LIST",RANGE:"RANGE",TABS:"TABS",TAGS:"TAGS"}},3816:function(b,c,n){n.d(c,{LOAD_MORE_TYPE:function(){return f},A:function(){return v}});var y=n(2334),r=n.n(y),e=n(5756),d=n(1944),C=n(4922),l=n(4379),a=n(8905),o=n.n(a);class v{constructor(h,u,_){this.client=h,this.reduxStore=u,this.conf=_,(0,l.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",k=>this.render(k)),_.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(h){const u=h.results.page||1,_=this.client.getSettings().paging.pageSize,k=h.results.total_hits||0,A=Math.ceil(k/_),I={type:this.conf.type,hasMorePages:u<A,isLoading:h.loading,totalHits:k};let P;if(P=this.conf.precompiledTemplate?this.conf.precompiledTemplate(I):this.conf.template?r().compile(this.conf.template)(I):o()(I),this.renderedHtml===P)return;const N=document.getElementById(this.conf.containerId);if(N.innerHTML=P,this.renderedHtml=P,this.conf.type===f.BUTTON){const q=N.querySelector("button");q&&(q.onclick=j=>this.loadMore())}else this.conf.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&h.results.page===1&&!h.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const h=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,h,!1,this.reduxStore));const u=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,u,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const h=this.reduxStore.getState().search.loading,u=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!h&&u)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,k=u.getBoundingClientRect().top;k>0&&k<_&&this.loadMore()}}}const f={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return P},A:function(){return I}});var y=n(2334),r=n.n(y),e=n(549),d=n(4922),C=n(4379),l=n(8526),a=n(6843);function o(N){var q=Math.ceil(Math.log10(N+1));if(q===1)return 0;var j=Math.pow(10,q-1);return Math.floor(N/j)*j}function v(N){var q=Math.ceil(Math.log10(N+1)),j=Math.pow(10,q-1);return Math.ceil(N/j)*j}var f=n(7435),g=n(6427),h=n.n(g),u=n(1204),_=n.n(u);function k(){let N,q;function j(se,ne){se&&(se.textContent=ne)}function D(se,ne){const[Y,W]=L(se,ne);typeof N=="function"&&N({activeRange:[Y,W]})}function L(se,ne){return[parseFloat(se.value),parseFloat(ne.value)]}function V(se,ne,Y,W,X){const ue=ne.max-ne.min,xe=se.value-ne.min,Re=ne.value-ne.min;X.style.background=`linear-gradient(
46
+ */(function(t){const i=Ln,p=gr,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50;const E=2147483647;t.kMaxLength=E,n.TYPED_ARRAY_SUPPORT=w(),!n.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function w(){try{const O=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(O,m),O.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}});function c(O){if(O>E)throw new RangeError('The value "'+O+'" is invalid for option "size"');const m=new Uint8Array(O);return Object.setPrototypeOf(m,n.prototype),m}function n(O,m,b){if(typeof O=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(O)}return y(O,m,b)}n.poolSize=8192;function y(O,m,b){if(typeof O=="string")return C(O,m);if(ArrayBuffer.isView(O))return a(O);if(O==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O);if(Be(O,ArrayBuffer)||O&&Be(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Be(O,SharedArrayBuffer)||O&&Be(O.buffer,SharedArrayBuffer)))return s(O,m,b);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const F=O.valueOf&&O.valueOf();if(F!=null&&F!==O)return n.from(F,m,b);const U=v(O);if(U)return U;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),m,b);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof O)}n.from=function(O,m,b){return y(O,m,b)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function r(O){if(typeof O!="number")throw new TypeError('"size" argument must be of type number');if(O<0)throw new RangeError('The value "'+O+'" is invalid for option "size"')}function e(O,m,b){return r(O),O<=0?c(O):m!==void 0?typeof b=="string"?c(O).fill(m,b):c(O).fill(m):c(O)}n.alloc=function(O,m,b){return e(O,m,b)};function d(O){return r(O),c(O<0?0:f(O)|0)}n.allocUnsafe=function(O){return d(O)},n.allocUnsafeSlow=function(O){return d(O)};function C(O,m){if((typeof m!="string"||m==="")&&(m="utf8"),!n.isEncoding(m))throw new TypeError("Unknown encoding: "+m);const b=h(O,m)|0;let F=c(b);const U=F.write(O,m);return U!==b&&(F=F.slice(0,U)),F}function l(O){const m=O.length<0?0:f(O.length)|0,b=c(m);for(let F=0;F<m;F+=1)b[F]=O[F]&255;return b}function a(O){if(Be(O,Uint8Array)){const m=new Uint8Array(O);return s(m.buffer,m.byteOffset,m.byteLength)}return l(O)}function s(O,m,b){if(m<0||O.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<m+(b||0))throw new RangeError('"length" is outside of buffer bounds');let F;return m===void 0&&b===void 0?F=new Uint8Array(O):b===void 0?F=new Uint8Array(O,m):F=new Uint8Array(O,m,b),Object.setPrototypeOf(F,n.prototype),F}function v(O){if(n.isBuffer(O)){const m=f(O.length)|0,b=c(m);return b.length===0||O.copy(b,0,0,m),b}if(O.length!==void 0)return typeof O.length!="number"||Q(O.length)?c(0):l(O);if(O.type==="Buffer"&&Array.isArray(O.data))return l(O.data)}function f(O){if(O>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return O|0}function g(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==n.prototype},n.compare=function(m,b){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),Be(b,Uint8Array)&&(b=n.from(b,b.offset,b.byteLength)),!n.isBuffer(m)||!n.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===b)return 0;let F=m.length,U=b.length;for(let K=0,ee=Math.min(F,U);K<ee;++K)if(m[K]!==b[K]){F=m[K],U=b[K];break}return F<U?-1:U<F?1:0},n.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(m,b){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return n.alloc(0);let F;if(b===void 0)for(b=0,F=0;F<m.length;++F)b+=m[F].length;const U=n.allocUnsafe(b);let K=0;for(F=0;F<m.length;++F){let ee=m[F];if(Be(ee,Uint8Array))K+ee.length>U.length?(n.isBuffer(ee)||(ee=n.from(ee)),ee.copy(U,K)):Uint8Array.prototype.set.call(U,ee,K);else if(n.isBuffer(ee))ee.copy(U,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return U};function h(O,m){if(n.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Be(O,ArrayBuffer))return O.byteLength;if(typeof O!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof O);const b=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&b===0)return 0;let U=!1;for(;;)switch(m){case"ascii":case"latin1":case"binary":return b;case"utf8":case"utf-8":return Se(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b*2;case"hex":return b>>>1;case"base64":return ye(O).length;default:if(U)return F?-1:Se(O).length;m=(""+m).toLowerCase(),U=!0}}n.byteLength=h;function u(O,m,b){let F=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((b===void 0||b>this.length)&&(b=this.length),b<=0)||(b>>>=0,m>>>=0,b<=m))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,m,b);case"utf8":case"utf-8":return L(this,m,b);case"ascii":return oe(this,m,b);case"latin1":case"binary":return ne(this,m,b);case"base64":return D(this,m,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,m,b);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,m,b){const F=O[m];O[m]=O[b],O[b]=F}n.prototype.swap16=function(){const m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let b=0;b<m;b+=2)_(this,b,b+1);return this},n.prototype.swap32=function(){const m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let b=0;b<m;b+=4)_(this,b,b+3),_(this,b+1,b+2);return this},n.prototype.swap64=function(){const m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let b=0;b<m;b+=8)_(this,b,b+7),_(this,b+1,b+6),_(this,b+2,b+5),_(this,b+3,b+4);return this},n.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?L(this,0,m):u.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(m){if(!n.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:n.compare(this,m)===0},n.prototype.inspect=function(){let m="";const b=t.INSPECT_MAX_BYTES;return m=this.toString("hex",0,b).replace(/(.{2})/g,"$1 ").trim(),this.length>b&&(m+=" ... "),"<Buffer "+m+">"},o&&(n.prototype[o]=n.prototype.inspect),n.prototype.compare=function(m,b,F,U,K){if(Be(m,Uint8Array)&&(m=n.from(m,m.offset,m.byteLength)),!n.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(b===void 0&&(b=0),F===void 0&&(F=m?m.length:0),U===void 0&&(U=0),K===void 0&&(K=this.length),b<0||F>m.length||U<0||K>this.length)throw new RangeError("out of range index");if(U>=K&&b>=F)return 0;if(U>=K)return-1;if(b>=F)return 1;if(b>>>=0,F>>>=0,U>>>=0,K>>>=0,this===m)return 0;let ee=K-U,Te=F-b;const Ve=Math.min(ee,Te),Ie=this.slice(U,K),Ge=m.slice(b,F);for(let ge=0;ge<Ve;++ge)if(Ie[ge]!==Ge[ge]){ee=Ie[ge],Te=Ge[ge];break}return ee<Te?-1:Te<ee?1:0};function S(O,m,b,F,U){if(O.length===0)return-1;if(typeof b=="string"?(F=b,b=0):b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b=+b,Q(b)&&(b=U?0:O.length-1),b<0&&(b=O.length+b),b>=O.length){if(U)return-1;b=O.length-1}else if(b<0)if(U)b=0;else return-1;if(typeof m=="string"&&(m=n.from(m,F)),n.isBuffer(m))return m.length===0?-1:I(O,m,b,F,U);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(O,m,b):Uint8Array.prototype.lastIndexOf.call(O,m,b):I(O,[m],b,F,U);throw new TypeError("val must be string, number or Buffer")}function I(O,m,b,F,U){let K=1,ee=O.length,Te=m.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||m.length<2)return-1;K=2,ee/=2,Te/=2,b/=2}function Ve(Ge,ge){return K===1?Ge[ge]:Ge.readUInt16BE(ge*K)}let Ie;if(U){let Ge=-1;for(Ie=b;Ie<ee;Ie++)if(Ve(O,Ie)===Ve(m,Ge===-1?0:Ie-Ge)){if(Ge===-1&&(Ge=Ie),Ie-Ge+1===Te)return Ge*K}else Ge!==-1&&(Ie-=Ie-Ge),Ge=-1}else for(b+Te>ee&&(b=ee-Te),Ie=b;Ie>=0;Ie--){let Ge=!0;for(let ge=0;ge<Te;ge++)if(Ve(O,Ie+ge)!==Ve(m,ge)){Ge=!1;break}if(Ge)return Ie}return-1}n.prototype.includes=function(m,b,F){return this.indexOf(m,b,F)!==-1},n.prototype.indexOf=function(m,b,F){return S(this,m,b,F,!0)},n.prototype.lastIndexOf=function(m,b,F){return S(this,m,b,F,!1)};function T(O,m,b,F){b=Number(b)||0;const U=O.length-b;F?(F=Number(F),F>U&&(F=U)):F=U;const K=m.length;F>K/2&&(F=K/2);let ee;for(ee=0;ee<F;++ee){const Te=parseInt(m.substr(ee*2,2),16);if(Q(Te))return ee;O[b+ee]=Te}return ee}function P(O,m,b,F){return be(Se(m,O.length-b),O,b,F)}function N(O,m,b,F){return be(Re(m),O,b,F)}function q(O,m,b,F){return be(ye(m),O,b,F)}function j(O,m,b,F){return be(me(m,O.length-b),O,b,F)}n.prototype.write=function(m,b,F,U){if(b===void 0)U="utf8",F=this.length,b=0;else if(F===void 0&&typeof b=="string")U=b,F=this.length,b=0;else if(isFinite(b))b=b>>>0,isFinite(F)?(F=F>>>0,U===void 0&&(U="utf8")):(U=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-b;if((F===void 0||F>K)&&(F=K),m.length>0&&(F<0||b<0)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");let ee=!1;for(;;)switch(U){case"hex":return T(this,m,b,F);case"utf8":case"utf-8":return P(this,m,b,F);case"ascii":case"latin1":case"binary":return N(this,m,b,F);case"base64":return q(this,m,b,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,m,b,F);default:if(ee)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),ee=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(O,m,b){return m===0&&b===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(m,b))}function L(O,m,b){b=Math.min(O.length,b);const F=[];let U=m;for(;U<b;){const K=O[U];let ee=null,Te=K>239?4:K>223?3:K>191?2:1;if(U+Te<=b){let Ve,Ie,Ge,ge;switch(Te){case 1:K<128&&(ee=K);break;case 2:Ve=O[U+1],(Ve&192)===128&&(ge=(K&31)<<6|Ve&63,ge>127&&(ee=ge));break;case 3:Ve=O[U+1],Ie=O[U+2],(Ve&192)===128&&(Ie&192)===128&&(ge=(K&15)<<12|(Ve&63)<<6|Ie&63,ge>2047&&(ge<55296||ge>57343)&&(ee=ge));break;case 4:Ve=O[U+1],Ie=O[U+2],Ge=O[U+3],(Ve&192)===128&&(Ie&192)===128&&(Ge&192)===128&&(ge=(K&15)<<18|(Ve&63)<<12|(Ie&63)<<6|Ge&63,ge>65535&&ge<1114112&&(ee=ge))}}ee===null?(ee=65533,Te=1):ee>65535&&(ee-=65536,F.push(ee>>>10&1023|55296),ee=56320|ee&1023),F.push(ee),U+=Te}return J(F)}const V=4096;function J(O){const m=O.length;if(m<=V)return String.fromCharCode.apply(String,O);let b="",F=0;for(;F<m;)b+=String.fromCharCode.apply(String,O.slice(F,F+=V));return b}function oe(O,m,b){let F="";b=Math.min(O.length,b);for(let U=m;U<b;++U)F+=String.fromCharCode(O[U]&127);return F}function ne(O,m,b){let F="";b=Math.min(O.length,b);for(let U=m;U<b;++U)F+=String.fromCharCode(O[U]);return F}function Y(O,m,b){const F=O.length;(!m||m<0)&&(m=0),(!b||b<0||b>F)&&(b=F);let U="";for(let K=m;K<b;++K)U+=le[O[K]];return U}function W(O,m,b){const F=O.slice(m,b);let U="";for(let K=0;K<F.length-1;K+=2)U+=String.fromCharCode(F[K]+F[K+1]*256);return U}n.prototype.slice=function(m,b){const F=this.length;m=~~m,b=b===void 0?F:~~b,m<0?(m+=F,m<0&&(m=0)):m>F&&(m=F),b<0?(b+=F,b<0&&(b=0)):b>F&&(b=F),b<m&&(b=m);const U=this.subarray(m,b);return Object.setPrototypeOf(U,n.prototype),U};function X(O,m,b){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+m>b)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(m,b,F){m=m>>>0,b=b>>>0,F||X(m,b,this.length);let U=this[m],K=1,ee=0;for(;++ee<b&&(K*=256);)U+=this[m+ee]*K;return U},n.prototype.readUintBE=n.prototype.readUIntBE=function(m,b,F){m=m>>>0,b=b>>>0,F||X(m,b,this.length);let U=this[m+--b],K=1;for(;b>0&&(K*=256);)U+=this[m+--b]*K;return U},n.prototype.readUint8=n.prototype.readUInt8=function(m,b){return m=m>>>0,b||X(m,1,this.length),this[m]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(m,b){return m=m>>>0,b||X(m,2,this.length),this[m]|this[m+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(m,b){return m=m>>>0,b||X(m,2,this.length),this[m]<<8|this[m+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(m,b){return m=m>>>0,b||X(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(m,b){return m=m>>>0,b||X(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},n.prototype.readBigUInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const b=this[m],F=this[m+7];(b===void 0||F===void 0)&&se(m,this.length-8);const U=b+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24,K=this[++m]+this[++m]*2**8+this[++m]*2**16+F*2**24;return BigInt(U)+(BigInt(K)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const b=this[m],F=this[m+7];(b===void 0||F===void 0)&&se(m,this.length-8);const U=b*2**24+this[++m]*2**16+this[++m]*2**8+this[++m],K=this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F;return(BigInt(U)<<BigInt(32))+BigInt(K)}),n.prototype.readIntLE=function(m,b,F){m=m>>>0,b=b>>>0,F||X(m,b,this.length);let U=this[m],K=1,ee=0;for(;++ee<b&&(K*=256);)U+=this[m+ee]*K;return K*=128,U>=K&&(U-=Math.pow(2,8*b)),U},n.prototype.readIntBE=function(m,b,F){m=m>>>0,b=b>>>0,F||X(m,b,this.length);let U=b,K=1,ee=this[m+--U];for(;U>0&&(K*=256);)ee+=this[m+--U]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*b)),ee},n.prototype.readInt8=function(m,b){return m=m>>>0,b||X(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},n.prototype.readInt16LE=function(m,b){m=m>>>0,b||X(m,2,this.length);const F=this[m]|this[m+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(m,b){m=m>>>0,b||X(m,2,this.length);const F=this[m+1]|this[m]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(m,b){return m=m>>>0,b||X(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},n.prototype.readInt32BE=function(m,b){return m=m>>>0,b||X(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},n.prototype.readBigInt64LE=ie(function(m){m=m>>>0,H(m,"offset");const b=this[m],F=this[m+7];(b===void 0||F===void 0)&&se(m,this.length-8);const U=this[m+4]+this[m+5]*2**8+this[m+6]*2**16+(F<<24);return(BigInt(U)<<BigInt(32))+BigInt(b+this[++m]*2**8+this[++m]*2**16+this[++m]*2**24)}),n.prototype.readBigInt64BE=ie(function(m){m=m>>>0,H(m,"offset");const b=this[m],F=this[m+7];(b===void 0||F===void 0)&&se(m,this.length-8);const U=(b<<24)+this[++m]*2**16+this[++m]*2**8+this[++m];return(BigInt(U)<<BigInt(32))+BigInt(this[++m]*2**24+this[++m]*2**16+this[++m]*2**8+F)}),n.prototype.readFloatLE=function(m,b){return m=m>>>0,b||X(m,4,this.length),p.read(this,m,!0,23,4)},n.prototype.readFloatBE=function(m,b){return m=m>>>0,b||X(m,4,this.length),p.read(this,m,!1,23,4)},n.prototype.readDoubleLE=function(m,b){return m=m>>>0,b||X(m,8,this.length),p.read(this,m,!0,52,8)},n.prototype.readDoubleBE=function(m,b){return m=m>>>0,b||X(m,8,this.length),p.read(this,m,!1,52,8)};function ue(O,m,b,F,U,K){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>U||m<K)throw new RangeError('"value" argument is out of bounds');if(b+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(m,b,F,U){if(m=+m,b=b>>>0,F=F>>>0,!U){const Te=Math.pow(2,8*F)-1;ue(this,m,b,F,Te,0)}let K=1,ee=0;for(this[b]=m&255;++ee<F&&(K*=256);)this[b+ee]=m/K&255;return b+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(m,b,F,U){if(m=+m,b=b>>>0,F=F>>>0,!U){const Te=Math.pow(2,8*F)-1;ue(this,m,b,F,Te,0)}let K=F-1,ee=1;for(this[b+K]=m&255;--K>=0&&(ee*=256);)this[b+K]=m/ee&255;return b+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,1,255,0),this[b]=m&255,b+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,2,65535,0),this[b]=m&255,this[b+1]=m>>>8,b+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,2,65535,0),this[b]=m>>>8,this[b+1]=m&255,b+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,4,4294967295,0),this[b+3]=m>>>24,this[b+2]=m>>>16,this[b+1]=m>>>8,this[b]=m&255,b+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,4,4294967295,0),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=m&255,b+4};function xe(O,m,b,F,U){z(m,F,U,O,b,7);let K=Number(m&BigInt(4294967295));O[b++]=K,K=K>>8,O[b++]=K,K=K>>8,O[b++]=K,K=K>>8,O[b++]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[b++]=ee,ee=ee>>8,O[b++]=ee,ee=ee>>8,O[b++]=ee,ee=ee>>8,O[b++]=ee,b}function Ae(O,m,b,F,U){z(m,F,U,O,b,7);let K=Number(m&BigInt(4294967295));O[b+7]=K,K=K>>8,O[b+6]=K,K=K>>8,O[b+5]=K,K=K>>8,O[b+4]=K;let ee=Number(m>>BigInt(32)&BigInt(4294967295));return O[b+3]=ee,ee=ee>>8,O[b+2]=ee,ee=ee>>8,O[b+1]=ee,ee=ee>>8,O[b]=ee,b+8}n.prototype.writeBigUInt64LE=ie(function(m,b=0){return xe(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(m,b=0){return Ae(this,m,b,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(m,b,F,U){if(m=+m,b=b>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,b,F,Ve-1,-Ve)}let K=0,ee=1,Te=0;for(this[b]=m&255;++K<F&&(ee*=256);)m<0&&Te===0&&this[b+K-1]!==0&&(Te=1),this[b+K]=(m/ee>>0)-Te&255;return b+F},n.prototype.writeIntBE=function(m,b,F,U){if(m=+m,b=b>>>0,!U){const Ve=Math.pow(2,8*F-1);ue(this,m,b,F,Ve-1,-Ve)}let K=F-1,ee=1,Te=0;for(this[b+K]=m&255;--K>=0&&(ee*=256);)m<0&&Te===0&&this[b+K+1]!==0&&(Te=1),this[b+K]=(m/ee>>0)-Te&255;return b+F},n.prototype.writeInt8=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,1,127,-128),m<0&&(m=255+m+1),this[b]=m&255,b+1},n.prototype.writeInt16LE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,2,32767,-32768),this[b]=m&255,this[b+1]=m>>>8,b+2},n.prototype.writeInt16BE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,2,32767,-32768),this[b]=m>>>8,this[b+1]=m&255,b+2},n.prototype.writeInt32LE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,4,2147483647,-2147483648),this[b]=m&255,this[b+1]=m>>>8,this[b+2]=m>>>16,this[b+3]=m>>>24,b+4},n.prototype.writeInt32BE=function(m,b,F){return m=+m,b=b>>>0,F||ue(this,m,b,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[b]=m>>>24,this[b+1]=m>>>16,this[b+2]=m>>>8,this[b+3]=m&255,b+4},n.prototype.writeBigInt64LE=ie(function(m,b=0){return xe(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(m,b=0){return Ae(this,m,b,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Oe(O,m,b,F,U,K){if(b+F>O.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("Index out of range")}function Ce(O,m,b,F,U){return m=+m,b=b>>>0,U||Oe(O,m,b,4),p.write(O,m,b,F,23,4),b+4}n.prototype.writeFloatLE=function(m,b,F){return Ce(this,m,b,!0,F)},n.prototype.writeFloatBE=function(m,b,F){return Ce(this,m,b,!1,F)};function He(O,m,b,F,U){return m=+m,b=b>>>0,U||Oe(O,m,b,8),p.write(O,m,b,F,52,8),b+8}n.prototype.writeDoubleLE=function(m,b,F){return He(this,m,b,!0,F)},n.prototype.writeDoubleBE=function(m,b,F){return He(this,m,b,!1,F)},n.prototype.copy=function(m,b,F,U){if(!n.isBuffer(m))throw new TypeError("argument should be a Buffer");if(F||(F=0),!U&&U!==0&&(U=this.length),b>=m.length&&(b=m.length),b||(b=0),U>0&&U<F&&(U=F),U===F||m.length===0||this.length===0)return 0;if(b<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),m.length-b<U-F&&(U=m.length-b+F);const K=U-F;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(b,F,U):Uint8Array.prototype.set.call(m,this.subarray(F,U),b),K},n.prototype.fill=function(m,b,F,U){if(typeof m=="string"){if(typeof b=="string"?(U=b,b=0,F=this.length):typeof F=="string"&&(U=F,F=this.length),U!==void 0&&typeof U!="string")throw new TypeError("encoding must be a string");if(typeof U=="string"&&!n.isEncoding(U))throw new TypeError("Unknown encoding: "+U);if(m.length===1){const ee=m.charCodeAt(0);(U==="utf8"&&ee<128||U==="latin1")&&(m=ee)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(b<0||this.length<b||this.length<F)throw new RangeError("Out of range index");if(F<=b)return this;b=b>>>0,F=F===void 0?this.length:F>>>0,m||(m=0);let K;if(typeof m=="number")for(K=b;K<F;++K)this[K]=m;else{const ee=n.isBuffer(m)?m:n.from(m,U),Te=ee.length;if(Te===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(K=0;K<F-b;++K)this[K+b]=ee[K%Te]}return this};const Fe={};function Ke(O,m,b){Fe[O]=class extends b{constructor(){super(),Object.defineProperty(this,"message",{value:m.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0})}toString(){return`${this.name} [${O}]: ${this.message}`}}}Ke("ERR_BUFFER_OUT_OF_BOUNDS",function(O){return O?`${O} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ke("ERR_INVALID_ARG_TYPE",function(O,m){return`The "${O}" argument must be of type number. Received type ${typeof m}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,m,b){let F=`The value of "${O}" is out of range.`,U=b;return Number.isInteger(b)&&Math.abs(b)>2**32?U=Me(String(b)):typeof b=="bigint"&&(U=String(b),(b>BigInt(2)**BigInt(32)||b<-(BigInt(2)**BigInt(32)))&&(U=Me(U)),U+="n"),F+=` It must be ${m}. Received ${U}`,F},RangeError);function Me(O){let m="",b=O.length;const F=O[0]==="-"?1:0;for(;b>=F+4;b-=3)m=`_${O.slice(b-3,b)}${m}`;return`${O.slice(0,b)}${m}`}function We(O,m,b){H(m,"offset"),(O[m]===void 0||O[m+b]===void 0)&&se(m,O.length-(b+1))}function z(O,m,b,F,U,K){if(O>b||O<m){const ee=typeof m=="bigint"?"n":"";let Te;throw m===0||m===BigInt(0)?Te=`>= 0${ee} and < 2${ee} ** ${(K+1)*8}${ee}`:Te=`>= -(2${ee} ** ${(K+1)*8-1}${ee}) and < 2 ** ${(K+1)*8-1}${ee}`,new Fe.ERR_OUT_OF_RANGE("value",Te,O)}We(F,U,K)}function H(O,m){if(typeof O!="number")throw new Fe.ERR_INVALID_ARG_TYPE(m,"number",O)}function se(O,m,b){throw Math.floor(O)!==O?(H(O,b),new Fe.ERR_OUT_OF_RANGE("offset","an integer",O)):m<0?new Fe.ERR_BUFFER_OUT_OF_BOUNDS:new Fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${m}`,O)}const de=/[^+/0-9A-Za-z-_]/g;function we(O){if(O=O.split("=")[0],O=O.trim().replace(de,""),O.length<2)return"";for(;O.length%4!==0;)O=O+"=";return O}function Se(O,m){m=m||1/0;let b;const F=O.length;let U=null;const K=[];for(let ee=0;ee<F;++ee){if(b=O.charCodeAt(ee),b>55295&&b<57344){if(!U){if(b>56319){(m-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===F){(m-=3)>-1&&K.push(239,191,189);continue}U=b;continue}if(b<56320){(m-=3)>-1&&K.push(239,191,189),U=b;continue}b=(U-55296<<10|b-56320)+65536}else U&&(m-=3)>-1&&K.push(239,191,189);if(U=null,b<128){if((m-=1)<0)break;K.push(b)}else if(b<2048){if((m-=2)<0)break;K.push(b>>6|192,b&63|128)}else if(b<65536){if((m-=3)<0)break;K.push(b>>12|224,b>>6&63|128,b&63|128)}else if(b<1114112){if((m-=4)<0)break;K.push(b>>18|240,b>>12&63|128,b>>6&63|128,b&63|128)}else throw new Error("Invalid code point")}return K}function Re(O){const m=[];for(let b=0;b<O.length;++b)m.push(O.charCodeAt(b)&255);return m}function me(O,m){let b,F,U;const K=[];for(let ee=0;ee<O.length&&!((m-=2)<0);++ee)b=O.charCodeAt(ee),F=b>>8,U=b%256,K.push(U),K.push(F);return K}function ye(O){return i.toByteArray(we(O))}function be(O,m,b,F){let U;for(U=0;U<F&&!(U+b>=m.length||U>=O.length);++U)m[U+b]=O[U];return U}function Be(O,m){return O instanceof m||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===m.name}function Q(O){return O!==O}const le=function(){const O="0123456789abcdef",m=new Array(256);for(let b=0;b<16;++b){const F=b*16;for(let U=0;U<16;++U)m[F+U]=O[b]+O[U]}return m}();function ie(O){return typeof BigInt>"u"?fe:O}function fe(){throw new Error("BigInt not supported")}})(Ni);var Bi={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.default="00000000-0000-0000-0000-000000000000";var Wt={},Jt={},xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,Object.defineProperty(Jt,"__esModule",{value:!0});const ra=xr;function ia(t){return typeof t=="string"&&ra.default.test(t)}Jt.default=ia,Object.defineProperty(Wt,"__esModule",{value:!0});const sa=Jt;function oa(t){if(!(0,sa.default)(t))throw TypeError("Invalid UUID");let i;return Uint8Array.of((i=parseInt(t.slice(0,8),16))>>>24,i>>>16&255,i>>>8&255,i&255,(i=parseInt(t.slice(9,13),16))>>>8,i&255,(i=parseInt(t.slice(14,18),16))>>>8,i&255,(i=parseInt(t.slice(19,23),16))>>>8,i&255,(i=parseInt(t.slice(24,36),16))/1099511627776&255,i/4294967296&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255)}Wt.default=oa;var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.unsafeStringify=void 0;const aa=Jt,et=[];for(let t=0;t<256;++t)et.push((t+256).toString(16).slice(1));function Di(t,i=0){return(et[t[i+0]]+et[t[i+1]]+et[t[i+2]]+et[t[i+3]]+"-"+et[t[i+4]]+et[t[i+5]]+"-"+et[t[i+6]]+et[t[i+7]]+"-"+et[t[i+8]]+et[t[i+9]]+"-"+et[t[i+10]]+et[t[i+11]]+et[t[i+12]]+et[t[i+13]]+et[t[i+14]]+et[t[i+15]]).toLowerCase()}mt.unsafeStringify=Di;function la(t,i=0){const p=Di(t,i);if(!(0,aa.default)(p))throw TypeError("Stringified UUID is invalid");return p}mt.default=la;var Yt={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});let br;const ca=new Uint8Array(16);function ua(){if(!br){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");br=crypto.getRandomValues.bind(crypto)}return br(ca)}cn.default=ua,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.updateV1State=void 0;const Hi=cn,ha=mt,un={};function fa(t,i,p){var w;let o;const E=(t==null?void 0:t._v6)??!1;if(t){const c=Object.keys(t);c.length===1&&c[0]==="_v6"&&(t=void 0)}if(t)o=$i(t.random??((w=t.rng)==null?void 0:w.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,p);else{const c=Date.now(),n=(0,Hi.default)();Ui(un,c,n),o=$i(n,un.msecs,un.nsecs,E?void 0:un.clockseq,E?void 0:un.node,i,p)}return i?o:(0,ha.unsafeStringify)(o)}function Ui(t,i,p){return t.msecs??(t.msecs=-1/0),t.nsecs??(t.nsecs=0),i===t.msecs?(t.nsecs++,t.nsecs>=1e4&&(t.node=void 0,t.nsecs=0)):i>t.msecs?t.nsecs=0:i<t.msecs&&(t.node=void 0),t.node||(t.node=p.slice(10,16),t.node[0]|=1,t.clockseq=(p[8]<<8|p[9])&16383),t.msecs=i,t}Yt.updateV1State=Ui;function $i(t,i,p,o,E,w,c=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!w)w=new Uint8Array(16),c=0;else if(c<0||c+16>w.length)throw new RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);i??(i=Date.now()),p??(p=0),o??(o=(t[8]<<8|t[9])&16383),E??(E=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+p)%4294967296;w[c++]=n>>>24&255,w[c++]=n>>>16&255,w[c++]=n>>>8&255,w[c++]=n&255;const y=i/4294967296*1e4&268435455;w[c++]=y>>>8&255,w[c++]=y&255,w[c++]=y>>>24&15|16,w[c++]=y>>>16&255,w[c++]=o>>>8|128,w[c++]=o&255;for(let r=0;r<6;++r)w[c++]=E[r];return w}Yt.default=fa;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});const da=Wt,pa=mt;function ma(t){const i=typeof t=="string"?(0,da.default)(t):t,p=ga(i);return typeof t=="string"?(0,pa.unsafeStringify)(p):p}jn.default=ma;function ga(t){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var qi={},wr={};Object.defineProperty(wr,"__esModule",{value:!0});function ya(t){const i=ba(t),p=xa(i,t.length*8);return va(p)}function va(t){const i=new Uint8Array(t.length*4);for(let p=0;p<t.length*4;p++)i[p]=t[p>>2]>>>p%4*8&255;return i}function Vi(t){return(t+64>>>9<<4)+14+1}function xa(t,i){const p=new Uint32Array(Vi(i)).fill(0);p.set(t),p[i>>5]|=128<<i%32,p[p.length-1]=i,t=p;let o=1732584193,E=-271733879,w=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const y=o,r=E,e=w,d=c;o=nt(o,E,w,c,t[n],7,-680876936),c=nt(c,o,E,w,t[n+1],12,-389564586),w=nt(w,c,o,E,t[n+2],17,606105819),E=nt(E,w,c,o,t[n+3],22,-1044525330),o=nt(o,E,w,c,t[n+4],7,-176418897),c=nt(c,o,E,w,t[n+5],12,1200080426),w=nt(w,c,o,E,t[n+6],17,-1473231341),E=nt(E,w,c,o,t[n+7],22,-45705983),o=nt(o,E,w,c,t[n+8],7,1770035416),c=nt(c,o,E,w,t[n+9],12,-1958414417),w=nt(w,c,o,E,t[n+10],17,-42063),E=nt(E,w,c,o,t[n+11],22,-1990404162),o=nt(o,E,w,c,t[n+12],7,1804603682),c=nt(c,o,E,w,t[n+13],12,-40341101),w=nt(w,c,o,E,t[n+14],17,-1502002290),E=nt(E,w,c,o,t[n+15],22,1236535329),o=rt(o,E,w,c,t[n+1],5,-165796510),c=rt(c,o,E,w,t[n+6],9,-1069501632),w=rt(w,c,o,E,t[n+11],14,643717713),E=rt(E,w,c,o,t[n],20,-373897302),o=rt(o,E,w,c,t[n+5],5,-701558691),c=rt(c,o,E,w,t[n+10],9,38016083),w=rt(w,c,o,E,t[n+15],14,-660478335),E=rt(E,w,c,o,t[n+4],20,-405537848),o=rt(o,E,w,c,t[n+9],5,568446438),c=rt(c,o,E,w,t[n+14],9,-1019803690),w=rt(w,c,o,E,t[n+3],14,-187363961),E=rt(E,w,c,o,t[n+8],20,1163531501),o=rt(o,E,w,c,t[n+13],5,-1444681467),c=rt(c,o,E,w,t[n+2],9,-51403784),w=rt(w,c,o,E,t[n+7],14,1735328473),E=rt(E,w,c,o,t[n+12],20,-1926607734),o=it(o,E,w,c,t[n+5],4,-378558),c=it(c,o,E,w,t[n+8],11,-2022574463),w=it(w,c,o,E,t[n+11],16,1839030562),E=it(E,w,c,o,t[n+14],23,-35309556),o=it(o,E,w,c,t[n+1],4,-1530992060),c=it(c,o,E,w,t[n+4],11,1272893353),w=it(w,c,o,E,t[n+7],16,-155497632),E=it(E,w,c,o,t[n+10],23,-1094730640),o=it(o,E,w,c,t[n+13],4,681279174),c=it(c,o,E,w,t[n],11,-358537222),w=it(w,c,o,E,t[n+3],16,-722521979),E=it(E,w,c,o,t[n+6],23,76029189),o=it(o,E,w,c,t[n+9],4,-640364487),c=it(c,o,E,w,t[n+12],11,-421815835),w=it(w,c,o,E,t[n+15],16,530742520),E=it(E,w,c,o,t[n+2],23,-995338651),o=st(o,E,w,c,t[n],6,-198630844),c=st(c,o,E,w,t[n+7],10,1126891415),w=st(w,c,o,E,t[n+14],15,-1416354905),E=st(E,w,c,o,t[n+5],21,-57434055),o=st(o,E,w,c,t[n+12],6,1700485571),c=st(c,o,E,w,t[n+3],10,-1894986606),w=st(w,c,o,E,t[n+10],15,-1051523),E=st(E,w,c,o,t[n+1],21,-2054922799),o=st(o,E,w,c,t[n+8],6,1873313359),c=st(c,o,E,w,t[n+15],10,-30611744),w=st(w,c,o,E,t[n+6],15,-1560198380),E=st(E,w,c,o,t[n+13],21,1309151649),o=st(o,E,w,c,t[n+4],6,-145523070),c=st(c,o,E,w,t[n+11],10,-1120210379),w=st(w,c,o,E,t[n+2],15,718787259),E=st(E,w,c,o,t[n+9],21,-343485551),o=Tt(o,y),E=Tt(E,r),w=Tt(w,e),c=Tt(c,d)}return Uint32Array.of(o,E,w,c)}function ba(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(Vi(t.length*8)).fill(0);for(let p=0;p<t.length;p++)i[p>>2]|=(t[p]&255)<<p%4*8;return i}function Tt(t,i){const p=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(p>>16)<<16|p&65535}function wa(t,i){return t<<i|t>>>32-i}function Nn(t,i,p,o,E,w){return Tt(wa(Tt(Tt(i,t),Tt(o,w)),E),p)}function nt(t,i,p,o,E,w,c){return Nn(i&p|~i&o,t,i,E,w,c)}function rt(t,i,p,o,E,w,c){return Nn(i&o|p&~o,t,i,E,w,c)}function it(t,i,p,o,E,w,c){return Nn(i^p^o,t,i,E,w,c)}function st(t,i,p,o,E,w,c){return Nn(p^(i|~o),t,i,E,w,c)}wr.default=ya;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.URL=gt.DNS=gt.stringToBytes=void 0;const zi=Wt,Sa=mt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let p=0;p<t.length;++p)i[p]=t.charCodeAt(p);return i}gt.stringToBytes=Gi,gt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ea(t,i,p,o,E,w){const c=typeof p=="string"?Gi(p):p,n=typeof o=="string"?(0,zi.default)(o):o;if(typeof o=="string"&&(o=(0,zi.default)(o)),(o==null?void 0:o.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+c.length);if(y.set(n),y.set(c,n.length),y=i(y),y[6]=y[6]&15|t,y[8]=y[8]&63|128,E){w=w||0;for(let r=0;r<16;++r)E[w+r]=y[r];return E}return(0,Sa.unsafeStringify)(y)}gt.default=Ea,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=wr,p=gt;var o=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return o.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return o.URL}});function E(w,c,n,y){return(0,p.default)(48,i.default,w,c,n,y)}E.DNS=p.DNS,E.URL=p.URL,t.default=E}(qi);var Sr={},Er={};Object.defineProperty(Er,"__esModule",{value:!0});const ka=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Er.default={randomUUID:ka},Object.defineProperty(Sr,"__esModule",{value:!0});const Ki=Er,_a=cn,Ca=mt;function Oa(t,i,p){var E;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const o=t.random??((E=t.rng)==null?void 0:E.call(t))??(0,_a.default)();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(p=p||0,p<0||p+16>i.length)throw new RangeError(`UUID byte range ${p}:${p+15} is out of buffer bounds`);for(let w=0;w<16;++w)i[p+w]=o[w];return i}return(0,Ca.unsafeStringify)(o)}Sr.default=Oa;var Wi={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function Aa(t,i,p,o){switch(t){case 0:return i&p^~i&o;case 1:return i^p^o;case 2:return i&p^i&o^p&o;case 3:return i^p^o}}function _r(t,i){return t<<i|t>>>32-i}function Ra(t){const i=[1518500249,1859775393,2400959708,3395469782],p=[1732584193,4023233417,2562383102,271733878,3285377520],o=new Uint8Array(t.length+1);o.set(t),o[t.length]=128,t=o;const E=t.length/4+2,w=Math.ceil(E/16),c=new Array(w);for(let n=0;n<w;++n){const y=new Uint32Array(16);for(let r=0;r<16;++r)y[r]=t[n*64+r*4]<<24|t[n*64+r*4+1]<<16|t[n*64+r*4+2]<<8|t[n*64+r*4+3];c[n]=y}c[w-1][14]=(t.length-1)*8/Math.pow(2,32),c[w-1][14]=Math.floor(c[w-1][14]),c[w-1][15]=(t.length-1)*8&4294967295;for(let n=0;n<w;++n){const y=new Uint32Array(80);for(let a=0;a<16;++a)y[a]=c[n][a];for(let a=16;a<80;++a)y[a]=_r(y[a-3]^y[a-8]^y[a-14]^y[a-16],1);let r=p[0],e=p[1],d=p[2],C=p[3],l=p[4];for(let a=0;a<80;++a){const s=Math.floor(a/20),v=_r(r,5)+Aa(s,e,d,C)+l+i[s]+y[a]>>>0;l=C,C=d,d=_r(e,30)>>>0,e=r,r=v}p[0]=p[0]+r>>>0,p[1]=p[1]+e>>>0,p[2]=p[2]+d>>>0,p[3]=p[3]+C>>>0,p[4]=p[4]+l>>>0}return Uint8Array.of(p[0]>>24,p[0]>>16,p[0]>>8,p[0],p[1]>>24,p[1]>>16,p[1]>>8,p[1],p[2]>>24,p[2]>>16,p[2]>>8,p[2],p[3]>>24,p[3]>>16,p[3]>>8,p[3],p[4]>>24,p[4]>>16,p[4]>>8,p[4])}kr.default=Ra,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,p=gt;var o=gt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return o.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return o.URL}});function E(w,c,n,y){return(0,p.default)(80,i.default,w,c,n,y)}E.DNS=p.DNS,E.URL=p.URL,t.default=E}(Wi);var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Pa=mt,Ta=Yt,Ia=jn;function Fa(t,i,p){t??(t={}),p??(p=0);let o=(0,Ta.default)({...t,_v6:!0},new Uint8Array(16));if(o=(0,Ia.default)(o),i){for(let E=0;E<16;E++)i[p+E]=o[E];return i}return(0,Pa.unsafeStringify)(o)}Cr.default=Fa;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const La=Wt,ja=mt;function Na(t){const i=typeof t=="string"?(0,La.default)(t):t,p=Ma(i);return typeof t=="string"?(0,ja.unsafeStringify)(p):p}Or.default=Na;function Ma(t){return Uint8Array.of((t[3]&15)<<4|t[4]>>4&15,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|t[6]&15,t[7],(t[1]&15)<<4|(t[2]&240)>>4,(t[2]&15)<<4|(t[3]&240)>>4,16|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.updateV7State=void 0;const Ji=cn,Ba=mt,Ar={};function Da(t,i,p){var E;let o;if(t)o=Qi(t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,p);else{const w=Date.now(),c=(0,Ji.default)();Yi(Ar,w,c),o=Qi(c,Ar.msecs,Ar.seq,i,p)}return i?o:(0,Ba.unsafeStringify)(o)}function Yi(t,i,p){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=p[6]<<23|p[7]<<16|p[8]<<8|p[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}hn.updateV7State=Yi;function Qi(t,i,p,o,E=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!o)o=new Uint8Array(16),E=0;else if(E<0||E+16>o.length)throw new RangeError(`UUID byte range ${E}:${E+15} is out of buffer bounds`);return i??(i=Date.now()),p??(p=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),o[E++]=i/1099511627776&255,o[E++]=i/4294967296&255,o[E++]=i/16777216&255,o[E++]=i/65536&255,o[E++]=i/256&255,o[E++]=i&255,o[E++]=112|p>>>28&15,o[E++]=p>>>20&255,o[E++]=128|p>>>14&63,o[E++]=p>>>6&255,o[E++]=p<<2&255|t[10]&3,o[E++]=t[11],o[E++]=t[12],o[E++]=t[13],o[E++]=t[14],o[E++]=t[15],o}hn.default=Da;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});const Ha=Jt;function Ua(t){if(!(0,Ha.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Rr.default=Ua,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.validate=t.v7=t.v6ToV1=t.v6=t.v5=t.v4=t.v3=t.v1ToV6=t.v1=t.stringify=t.parse=t.NIL=t.MAX=void 0;var i=yr;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var p=vr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return p.default}});var o=Wt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.default}});var E=mt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.default}});var w=Yt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return w.default}});var c=jn;Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return c.default}});var n=qi;Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}});var y=Sr;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return y.default}});var r=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return r.default}});var e=Cr;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var d=Or;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var C=hn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var l=Jt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return l.default}});var a=Rr;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(dt,"__esModule",{value:!0}),dt.generateUUID=dt.validateSetPagingParams=dt.base64=dt.isFunction=void 0;const Zi=Ni,$a=Bi,qa=t=>typeof t=="function";dt.isFunction=qa;const Va=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Zi.Buffer)return Zi.Buffer.from(t).toString("base64")};dt.base64=Va;const za=(t,i,p,o)=>{if(t<1)throw new Error("Page must be 1 or bigger");if(i<1||i>300)throw new Error("PageSize must be between 1 and 300");if(!p||!o)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof p=="string"&&typeof o=="string"||Array.isArray(p)&&Array.isArray(o)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(p)&&p.length!==o.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof o=="string"&&o!=="asc"&&o!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(o)&&o.some(E=>E!=="desc"&&E!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};dt.validateSetPagingParams=za;const Ga=()=>(0,$a.v4)().replace(/-/g,"");dt.generateUUID=Ga;var Ka=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.deleteDocumentsBatch=ft.deleteDocument=ft.saveDocumentsBatch=ft.saveDocument=ft.getDocument=void 0;const fn=Ka(Ii),Wa=dt,dn=(t,i)=>({Authorization:"Basic "+(0,Wa.base64)(t+":"+i),"Content-Type":"application/json"}),Ja=(t,i,p,o)=>new Promise((E,w)=>{fn.default.get(`https://${t}/v2/indices/${i}/documents/${o}`,{headers:dn(i,p)}).then(c=>{c.status===200?E(c.data):w(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{w(new Error(JSON.stringify({status:400,text:c})))})});ft.getDocument=Ja;const Ya=(t,i,p,o)=>{const E=!!(o.id||o.url);return new Promise((w,c)=>{(0,fn.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:E?"put":"post",headers:dn(i,p),data:o}).then(n=>{n.status===202?w({status:n.status,text:n.statusText}):c(new Error(JSON.stringify({status:n.status,text:n.statusText})))}).catch(n=>{c(new Error(JSON.stringify({status:400,text:n})))})})};ft.saveDocument=Ya;const Qa=(t,i,p,o)=>new Promise((E,w)=>{(0,fn.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:dn(i,p),data:o}).then(c=>{c.status===202?E({status:c.status,text:c.statusText}):w(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{w(new Error(JSON.stringify({status:400,text:c})))})});ft.saveDocumentsBatch=Qa;const Za=(t,i,p,o)=>new Promise((E,w)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents/${o}`,{headers:dn(i,p)}).then(c=>{c.status===202?E({status:c.status,text:c.statusText}):w(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{w(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocument=Za;const Xa=(t,i,p,o)=>new Promise((E,w)=>{fn.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:dn(i,p),data:o}).then(c=>{c.status===202?E({status:c.status,text:c.statusText}):w(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{w(new Error(JSON.stringify({status:400,text:c})))})});ft.deleteDocumentsBatch=Xa;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});const el=Kr,tl=Xe;(0,el.polyfill)();const nl=(t,i,p,o)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!o?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(p)):tl.statsInstance.post(`https://${t}/v1/stats/${i}/`,p,{headers:{"Content-Type":"text/plain"}}).then().catch(E=>{console.error(E)})};Pr.default=nl;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.putSentimentClick=void 0;const Tr=Xe,rl=(t,i,p,o)=>new Promise((E,w)=>{Tr.aiAnswersInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${p}/rating`,{value:o==="positive"?1:o==="negative"?-1:0}).then(c=>{c.status===200?E(!0):w(new Error(JSON.stringify({type:Tr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),w(new Error(JSON.stringify({type:Tr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Mn.putSentimentClick=rl;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const il=dt;class sl{constructor(){this.settings={keyword:"*",callback:null,throttleTimeMs:200,fuzzy:"auto",paging:{page:1,pageSize:10,sortBy:"relevance",sortOrder:"desc"},customFieldFilters:[],userToken:null,suggestionsSize:10,facetFields:[],autocomplete:{size:10},searchOperator:null,enableLogicalOperators:!1,cacheResponseTime:null,statsRequestIntercepted:!1}}getSettings(){return this.settings}setKeyword(i){this.settings.keyword=i||"*"}setCallback(i){this.settings.callback=i}setThrottleTime(i){this.settings.throttleTimeMs=i}setSuggestionsPrefix(i){this.settings.suggestionsPrefix=i}setSuggestionsSize(i){this.settings.suggestionsSize=i}setAutocompleteSize(i){this.settings.autocomplete.size=i}setAutocompleteParams(i,p){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=p}setLanguage(i){let p;if(Intl&&Intl.Locale)try{p=new Intl.Locale(i).language}catch(o){throw console.debug(o),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else p=i;if(p&&p.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=p}setFuzzyMatch(i){if(i!==!0&&i!==!1&&i!=="auto"&&i!=="retry")throw new Error("Fuzzy matching can be true, false, 'auto', or 'retry'");this.settings.fuzzy=i}enableLogicalOperators(i){this.settings.enableLogicalOperators=i}setCacheResponseTime(i){this.settings.cacheResponseTime=i}setPostfixWildcard(i){this.settings.postfixWildcard=i}setCollectAnalytics(i){this.settings.collectAnalytics=i}setAnalyticsTag(i){this.settings.analyticsTag=i}setCategoryFilters(i){this.settings.categories=i}setFilterObject(i){this.settings.filterObject=i}setPriceRangeFilter(i,p){this.settings.priceFromCents=i,this.settings.priceToCents=p}addCustomFieldFilter(i,p){const o=encodeURIComponent(`${i}=${p}`);this.settings.customFieldFilters.includes(o)||this.settings.customFieldFilters.push(o)}removeCustomFieldFilter(i,p){const o=!p,E=encodeURIComponent(`${i}=${p||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(w=>o?!w.startsWith(E):w!==E)}setDateFilter(i,p){this.settings.dateFrom=i,this.settings.dateTo=p}setJWT(i){this.settings.jwt=i}setUserToken(i){this.settings.userToken=i}setPersonalizationEvents(i){Array.isArray(i)&&(this.settings.personalizationEvents=i)}setResultType(i){this.settings.resultType=i}addFacetField(i){this.settings.facetFields.includes(i)||this.settings.facetFields.push(i)}addHierarchicalFacetSetting(i){this.settings.hierarchicalFacetSetting=i}addRangeFacet(i,p){this.settings.rangeFacets||(this.settings.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:p})}addStatsField(i){this.settings.statsFields||(this.settings.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,p,o,E){(0,il.validateSetPagingParams)(i,p,o,E),this.settings.paging={page:i,pageSize:p,sortBy:o,sortOrder:E}}setShuffleAndLimitTo(i){this.settings.shuffleAndLimitTo=i}nextPage(){this.settings.paging.page++}previousPage(){this.settings.paging.page>0&&this.settings.paging.page--}setSearchOperator(i){if(i!=="and"&&i!=="or")throw new Error("Operator must be 'and' or 'or'");this.settings.searchOperator=i}setStatsRequestIntercepted(i){this.settings.statsRequestIntercepted=i}}Ir.default=sl;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const ol=(t,i)=>{let p=0,o=null;function E(){o!==null&&(clearTimeout(o),o=null)}function w(...c){const n=Date.now()-p,y=()=>{p=Date.now(),i(...c)};E(),n>t?y():o=setTimeout(y,t-n)}return w};Fr.default=ol;var It={};Object.defineProperty(It,"__esModule",{value:!0}),It.deleteCookie=It.getCookie=It.setCookie=void 0;const al=(t,i,p)=>{if(typeof document>"u")return;const o=new Date;o.setTime(o.getTime()+p*24*60*60*1e3);const E="expires="+o.toUTCString();document.cookie=`${t}=${i};${E};path=/`};It.setCookie=al;const ll=t=>{if(typeof document>"u")return;const i=`${t}=`,o=decodeURIComponent(document.cookie).split(";");for(let E=0;E<o.length;E++){let w=o[E];for(;w.charAt(0)===" ";)w=w.substring(1);if(w.indexOf(i)===0)return w.substring(i.length,w.length)}};It.getCookie=ll;const cl=t=>{typeof document>"u"||(document.cookie=`${t}=; Path=/; Expires=Thu, 01 Jan 2000 00:00:01 GMT;`)};It.deleteCookie=cl;var ul=Ze&&Ze.__createBinding||(Object.create?function(t,i,p,o){o===void 0&&(o=p);var E=Object.getOwnPropertyDescriptor(i,p);(!E||("get"in E?!i.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return i[p]}}),Object.defineProperty(t,o,E)}:function(t,i,p,o){o===void 0&&(o=p),t[o]=i[p]}),hl=Ze&&Ze.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),Xi=Ze&&Ze.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(p){var o=[];for(var E in p)Object.prototype.hasOwnProperty.call(p,E)&&(o[o.length]=E);return o},t(i)};return function(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var o=t(i),E=0;E<o.length;E++)o[E]!=="default"&&ul(p,i,o[E]);return hl(p,i),p}}(),Bn=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Mt=Bn(Jn),pn=ft,es=Bn(Pr),fl=Mn,dl=Bn(Ir),Dn=Xi(dt),mn=Bn(Fr),Lr=Xi(It),Hn=Xe,ts="api.addsearch.com",jr="addsearchUserToken";class pl{constructor(i,p){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=p||"",this.apiHostname=ts,this.statsApiHostname=ts,this.settings=new dl.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=Lr.getCookie(jr)||Dn.generateUUID()}search(i,p){let o=null,E=null;if(typeof i=="string"&&typeof p=="function")o=i,E=p;else if(typeof i=="function"&&!p)o=this.settings.getSettings().keyword||null,E=i;else if(this.settings.getSettings().callback)o=this.settings.getSettings().keyword||null,E=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>E),this.settings.setKeyword(o),this.throttledSearchFetch||(this.throttledSearchFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),E)}aiAnswers(i,p){this.settings.setCallback(()=>p),this.settings.setKeyword(i),this.throttledAiAnswersFetch||(this.throttledAiAnswersFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),p)}putSentimentClick(i,p){return(0,fl.putSentimentClick)(this.apiHostname,this.sitekey,i,p)}suggestions(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),this.throttledSuggestionsFetch||(this.throttledSuggestionsFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),p)}autocomplete(i,p,o){if(!i||!p||!o||!Dn.isFunction(o))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,p),this.throttledAutocompleteFetch||(this.throttledAutocompleteFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),o)}fetchCustomApi(i,p,o){var E;const w=Object.assign({},this.settings.getSettings());w.facetFields=(E=w.facetFields)===null||E===void 0?void 0:E.filter(c=>i===c),(0,Mt.default)(this.apiHostname,this.sitekey,"search",w,o,null,p)}fetchRangeFacets(i,p,o){const E=Object.assign({},this.settings.getSettings());E.rangeFacets||(E.rangeFacets=[]),E.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Mt.default)(this.apiHostname,this.sitekey,"search",E,o,null,p)}recommendations(i,p){if(!i||!p||!Dn.isFunction(p))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");this.throttledRecommendationFetch||(this.throttledRecommendationFetch=(0,mn.default)(this.settings.getSettings().throttleTimeMs,Mt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",null,p,!1,null,i)}getDocument(i){return(0,pn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,pn.saveDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of documents: {documents: []}");return(0,pn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,pn.deleteDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocumentsBatch(i){if(!i||!i.documents||!Array.isArray(i.documents))throw new Error("Please provide an array of document ids: {documents: []}");return(0,pn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,p){(!p||!p.statsApiRequestOnly)&&(this.apiHostname=i),(!p||!p.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,p){this.settings.addCustomFieldFilter(i,p)}removeCustomFieldFilter(i,p){this.settings.removeCustomFieldFilter(i,p)}setPriceRangeFilter(i,p){this.settings.setPriceRangeFilter(i,p)}setDateFilter(i,p){this.settings.setDateFilter(i,p)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,p,o,E){this.settings.setPaging(i,p,o,E)}nextPage(){this.settings.nextPage()}previousPage(){this.settings.previousPage()}setSuggestionsSize(i){this.settings.setSuggestionsSize(i)}setAutocompleteSize(i){this.settings.setAutocompleteSize(i)}addFacetField(i){this.settings.addFacetField(i)}addHierarchicalFacetSetting(i){this.settings.addHierarchicalFacetSetting(i)}addRangeFacet(i,p){this.settings.addRangeFacet(i,p)}addStatsField(i){this.settings.addStatsField(i)}setNumberOfFacets(i){this.settings.setNumberOfFacets(i)}setResultType(i){this.settings.setResultType(i)}setPersonalizationEvents(i){this.settings.setPersonalizationEvents(i)}setFilterObject(i){this.settings.setFilterObject(i)}setShuffleAndLimitTo(i){this.settings.setShuffleAndLimitTo(i)}setFuzzyMatch(i){this.settings.setFuzzyMatch(i)}setPostfixWildcard(i){this.settings.setPostfixWildcard(i)}setCacheResponseTime(i){this.settings.setCacheResponseTime(i)}setCollectAnalytics(i){this.settings.setCollectAnalytics(i)}setAnalyticsTag(i){this.settings.setAnalyticsTag(i)}setThrottleTime(i){this.settings.setThrottleTime(i)}setStatsSessionId(i){this.sessionId=i,this.userTokenInPersonalization=i,this.useStatsSessionId=!0}getStatsSessionId(){return this.sessionId}enableLogicalOperators(i){this.settings.enableLogicalOperators(i)}setSearchOperator(i){this.settings.setSearchOperator(i)}sendStatsEvent(i,p,o){const E=!this.useStatsSessionId&&ns&&rs;if(E&&!Lr.getCookie(jr)&&Lr.setCookie(jr,this.userTokenInPersonalization,is),i==="search"){const w={action:"search",session:E?this.userTokenInPersonalization:this.sessionId,keyword:p,numberOfResults:o.numberOfResults,tag:this.getSettings().analyticsTag};(0,es.default)(this.statsApiHostname,this.sitekey,w,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const w={action:"click",session:E?this.userTokenInPersonalization:this.sessionId,keyword:p,docid:o.documentId,position:o.position,tag:this.getSettings().analyticsTag};(0,es.default)(this.statsApiHostname,this.sitekey,w,this.settings.getSettings().statsRequestIntercepted)}else throw new Error("Illegal sendStatsEvent type parameters. Should be search or click)")}getUserTokenInPersonalization(){return this.userTokenInPersonalization}enablePersonalizationTracking(i,p){ns=i,p&&(is=p)}consentAddSearchCookie(i){rs=i}setApiRequestInterceptor(i,p={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:o=!1,statsApiRequestOnly:E=!1}=p;!o&&!E?((0,Hn.setRequestInterceptor)(i,"searchApi"),(0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(o&&(0,Hn.setRequestInterceptor)(i,"searchApi"),E&&((0,Hn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}searchResultClicked(i,p){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:p})}}let ns=!1,rs=!1,is=180;var ml=pl;const gl=qr(ml);var ss={exports:{}};/*! addsearch-search-ui 0.9.2 */(function(t,i){(function(p,o){t.exports=o()})(Ze,function(){return function(){var p={2987:function(w,c,n){w.exports=n(9770).default,w.exports.AUTOCOMPLETE_TYPE=n(6510).AUTOCOMPLETE_TYPE,w.exports.FILTER_TYPE=n(9369).FILTER_TYPE,w.exports.SORTBY_TYPE=n(8909).SORTBY_TYPE,w.exports.LOAD_MORE_TYPE=n(3816).LOAD_MORE_TYPE,w.exports.RECOMMENDATION_TYPE=n(4128).RECOMMENDATION_TYPE,w.exports.RANGE_FACETS_TYPE=n(1990).RANGE_FACETS_TYPE,w.exports.Handlebars_runtime=n(261)},1543:function(w,c,n){n.d(c,{FW:function(){return r},mQ:function(){return e},Lt:function(){return y},Rn:function(){return C},jK:function(){return l},wF:function(){return d},On:function(){return a},bz:function(){return s}});const y="IS_LOADING_AI_ANSWERS",r="AI_ANSWERS_RESULT",e="AI_ANSWERS_RESULT_ERROR",d="SET_AI_ANSWERS_SENTIMENT",C="SET_AI_ANSWERS_ANSWER_EXPANDED",l="SET_AI_ANSWERS_HIDDEN";function a(v,f){return g=>{g({type:e,payload:!1}),g({type:y,payload:!0}),v.aiAnswers(f,h=>{if(h.error)g({type:e,payload:!0});else{const S={id:(u=h).conversation_id,answerText:u.answer||"",sources:((_=u.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(I=>({url:I.url,title:I.title})))||[]};g({type:d,payload:"neutral"}),g({type:r,payload:S})}var u,_;g({type:y,payload:!1})})}}function s(v,f,g){return h=>{h({type:d,payload:g}),v.putSentimentClick(f,g).then().catch(u=>{console.error(u)})}}},6148:function(w,c,n){n.d(c,{Ah:function(){return ne},B5:function(){return f},C0:function(){return J},FJ:function(){return g},GA:function(){return D},GB:function(){return v},Jd:function(){return _},KR:function(){return r},Km:function(){return a},MO:function(){return P},OA:function(){return q},Pf:function(){return I},VW:function(){return y},XD:function(){return oe},Xr:function(){return T},d5:function(){return S},dC:function(){return V},h$:function(){return s},hR:function(){return N},hx:function(){return h},il:function(){return u},kw:function(){return e},nl:function(){return L},nn:function(){return C},p3:function(){return l},vT:function(){return d}});const y="AUTOCOMPLETE_FETCH_START",r="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",d="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",l="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",s="AUTOCOMPLETE_SHOW",v="AUTOCOMPLETE_HIDE",f="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",g="HIDE_AUTOMATICALLY",h="KEYBOARD_EVENT",u="ARROW_UP",_="ARROW_DOWN",S="SET_ACTIVE_SUGGESTION",I="suggestions",T="custom_fields";function P(Y,W){return W&&W!==""?(X,ue)=>{const xe=ue().keyword.minLengthRequiredToFetch;W.length<xe||(X(j(I)),Y.suggestions(W,Ae=>{ue().keyword.value!==""&&X(function(Oe,Ce){return{type:r,keyword:Oe,results:Ce}}(W,Ae))}))}:{type:d}}function N(Y,W,X){return W&&W!==""?(ue,xe)=>{const Ae=xe().keyword.minLengthRequiredToFetch;W.length<Ae||(ue(j(T)),Y.autocomplete(X,W,Oe=>{xe().keyword.value!==""&&ue({type:e,results:Oe})}))}:{type:C}}function q(Y,W,X,ue){return X&&X!==""?(xe,Ae)=>{const Oe=Ae().keyword.minLengthRequiredToFetch;X.length<Oe||(xe(j(W)),Y.search(X,Ce=>{Ae().keyword.value!==""&&xe(function(He,Fe,Ke,Me){return{type:l,keyword:He,results:Fe,jsonKey:Ke,appendResults:Me}}(X,Ce,W,ue))}))}:{type:a}}function j(Y){return{type:y,jsonKey:Y}}function D(){return{type:s}}function L(){return{type:v}}function V(){return{type:f}}function J(Y){return{type:h,direction:Y}}function oe(Y,W){return{type:S,index:Y,setSuggestionToSearchField:W}}function ne(Y){return{type:g,hideAutomatically:Y}}},6843:function(w,c,n){n.d(c,{IJ:function(){return y},Ow:function(){return e},nb:function(){return r},np:function(){return d}});const y="SET_FIELD_STATS",r="CLEAR_FIELD_STATS";function e(C,l){return{type:y,fieldStats:C,callBy:l}}function d(){return{type:r}}},549:function(w,c,n){n.d(c,{CY:function(){return y},Gc:function(){return j},II:function(){return P},IS:function(){return v},JS:function(){return l},Ni:function(){return N},QW:function(){return s},Tv:function(){return g},Uj:function(){return r},VH:function(){return u},VN:function(){return C},XI:function(){return e},Xh:function(){return I},cl:function(){return a},eu:function(){return S},hx:function(){return D},jU:function(){return q},ks:function(){return T},u3:function(){return _},uR:function(){return d},ul:function(){return h},vj:function(){return f}});const y="TOGGLE_FILTER",r="SET_RANGE_FILTER",e="REGISTER_FILTER",d="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",l="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",s="TOGGLE_HIERARCHICAL_FACET_FILTER",v="TOGGLE_RANGE_FACET_FILTER",f="CLEAR_SELECTED_FILTERS_AND_FACETS",g="CLEAR_SELECTED_RANGE_FACETS";function h(L){return{type:e,filterObj:L}}function u(L,V,J){return{type:y,filterName:L,value:V,refreshSearch:J}}function _(L,V,J){return{type:r,field:L,from:V,to:J}}function S(L){return{type:d,json:L}}function I(L){return{type:C,json:L}}function T(L,V,J){return{type:l,json:L,refreshSearch:V,field:J}}function P(L,V,J){return{type:a,field:L,value:V,refreshSearch:J}}function N(L,V,J,oe,ne){return{type:s,field:L,container:V,confFields:J,value:oe,refreshSearch:ne}}function q(L,V,J,oe,ne){return{type:v,field:L,values:V,key:J,refreshSearch:oe,byActiveFilterComponent:ne}}function j(L,V){return{type:g,refreshSearch:L,setHistory:V}}function D(L,V){return{type:f,refreshSearch:L,byActiveFilterComponent:V}}},6993:function(w,c,n){n.d(c,{Ai:function(){return e},Le:function(){return r},QR:function(){return y},_T:function(){return d}});const y="KEYWORD",r="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,l,a,s){return{type:y,value:C,skipAutocomplete:l,searchFieldContainerId:a||null,setSearchFieldValue:s||!1}}function d(C){return{type:r,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(w,c,n){n.d(c,{I:function(){return e},N:function(){return r}});var y=n(4903);const r="SET_PAGE";function e(d,C,l,a){l===!1||d.getSettings().paging.page===C&&C!==1||(0,y.Dh)(y.sh.PAGE,C+"",null,a);const s=d.getSettings().paging;return d.setPaging(C,s.pageSize,s.sortBy,s.sortOrder),{type:r,page:C}}},878:function(w,c,n){n.d(c,{KE:function(){return d},OU:function(){return e},T7:function(){return l},iM:function(){return r},vh:function(){return C}}),n(9770),n(4903);var y=n(3007);const r="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",d="CLEAR_RECOMMENDATION";function C(a,s){return v=>{switch(s.type){case y.Qc:a.recommendations(s,f=>{var g;v((g=s.container,{type:r,container:g,recommendType:"frequently-bought-together",results:f}))});break;case y.uH:a.recommendations(s,f=>{var g;v((g=s.container,{type:e,container:g,recommendType:"related-items",results:f}))})}}}function l(){return{type:d}}},1944:function(w,c,n){n.d(c,{AX:function(){return f},EF:function(){return v},d3:function(){return d},j2:function(){return C},lq:function(){return g},mY:function(){return a},xE:function(){return l},y$:function(){return s}});var y=n(9770),r=n(4903),e=n(6351);const d="START",C="SET_SEARCH_RESULTS_PAGE_URL",l="SEARCH_FETCH_START",a="SEARCH_RESULTS",s="CLEAR_SEARCH_RESULTS";function v(h,u,_,S,I,T,P,N,q){return(0,r.Dh)(r.sh.SEARCH,u,I,T),u&&u!==""?(j,D)=>{const L=D().keyword.minLengthRequiredToFetch;I&&u.length<L||(j({type:l}),h.search(u,V=>{if((q||P)&&V&&V.hits&&V.hits.length){var J=(q||P).replace("custom_fields.",""),oe=function(ne,Y,W){return Y.find(X=>{if(!X.custom_fields||!X.custom_fields[W])return!1;if(typeof X.custom_fields[W]=="string")return ne.toLowerCase()===X.custom_fields[W].toLowerCase();if(typeof X.custom_fields[W]=="object"&&X.custom_fields[W].length){const ue=X.custom_fields[W].map(Ae=>Ae.toLowerCase()),xe=ne.toLowerCase();return ue.indexOf(xe)>-1}return!1})}(u,V.hits,J);if(oe&&!I)return void window.location.replace(oe.url)}j(function(ne,Y,W,X,ue,xe){if(/top-delay-\d*$/.test(X)){var Ae=parseInt(X.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},Ae)}else X==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(y.H)===-1){const Oe=W?W.total_hits:0,Ce=W?W.processing_time_ms:0;(0,e.mh)(ne,Y,Oe,Ce)}return{type:a,keyword:Y,results:W,appendResults:ue,requestBy:xe}}(h,u,V,_,S,N))}))}:{type:s}}function f(h){return h==="top"&&window.scrollTo(0,0),{type:s}}function g(h){return{type:C,url:h}}},4826:function(w,c,n){n.d(c,{JK:function(){return r},VD:function(){return e},l$:function(){return d},lD:function(){return y}});const y="SEGMENTED_SEARCH_START",r="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function d(C,l,a){return a&&a!==""?s=>{s(function(v){return{type:y,jsonKey:v}}(l)),C.search(a,v=>s(function(f,g,h){return{type:r,jsonKey:f,keyword:g,results:h}}(l,a,v)))}:{type:e}}},6353:function(w,c,n){n.d(c,{ER:function(){return e},O0:function(){return r},Ul:function(){return d}});var y=n(4903);const r="SORTBY",e="desc";function d(C,l,a,s){s&&(0,y.Dh)(y.sh.SORTBY,JSON.stringify({field:l,order:a}),null,s);const v=C.getSettings().paging;return C.setPaging(v.page,v.pageSize,l,a),{type:r,field:l,order:a}}},6510:function(w,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return I},A:function(){return S}});var y=n(2334),r=n.n(y),e=n(6148),d=n(1944),C=n(6993),l=n(4922),a=n(4379),s=n(6351),v=n(4903),f=n(3923),g=n(209),h=n.n(g),u=n(1543);function _(T,P,N){var q;return(P=typeof(q=function(j,D){if(typeof j!="object"||!j)return j;var L=j[Symbol.toPrimitive];if(L!==void 0){var V=L.call(j,D||"default");if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(j)}(P,"string"))=="symbol"?q:String(q))in T?Object.defineProperty(T,P,{value:N,enumerable:!0,configurable:!0,writable:!0}):T[P]=N,T}class S{constructor(P,N,q,j){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=P,this.reduxStore=N,this.hasAiAnswers=q,this.conf=j,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const D=this.conf.categorySelectionFunction||f.GK;(0,f.g3)("selectSearchResultCategory",L=>D(L,this.conf.categoryAliases)),(0,a.A)(j.containerId)&&((0,l.G)(this.reduxStore,"autocomplete",L=>this.autocompleteResultsChanged(L)),(0,l.G)(this.reduxStore,"keyword",L=>this.keywordChanged(L))),j.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),j.sources&&j.sources.length&&j.sources.forEach(L=>{L.client&&L.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(P){if(P.dropRendering)return void this.clearRenderedHtml();const N=this.reduxStore.getState().keyword.value;P.pendingRequests.length>0||N.length<this.minLengthRequired||(P.keyword&&P.keyword!==""&&this.sendSearchAnalytics(P),this.render(P))}sendSearchAnalytics(P){let N=[];this.conf.sources.forEach(q=>{if(q.type===I.SEARCH&&q.collectSearchAnalytics){const j=q.client||this.client,D=P.searchResultsStats[q.jsonKey]?P.searchResultsStats[q.jsonKey].total_hits:0;N.push({client:j,numberOfResults:D})}}),(0,s.ME)(P.keyword,N)}keywordChanged(P){if(P.skipAutocomplete)return;const N=P.value;this.conf.sources.forEach(q=>{const j=q.client||this.client;if(q.type===I.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(j,N));else if(q.type===I.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(j,N,q.field));else if(q.type===I.SEARCH){const D=j.getSettings().paging;j.setPaging(1,D.pageSize,D.sortBy,D.sortOrder),this.reduxStore.dispatch((0,e.OA)(j,q.jsonKey,N,this.hasAiAnswers))}})}loadMore(P){this.conf.sources.forEach(N=>{const q=N.client;q&&N.type===I.SEARCH&&(q.nextPage(),this.reduxStore.dispatch((0,e.OA)(q,N.jsonKey,P,this.hasAiAnswers,!0)))})}render(P){if(P.visible===!1)return void this.clearRenderedHtml();const{suggestions:N,customFields:q,searchResults:j,activeSuggestionIndex:D}=P,L={activeSuggestionIndex:D,suggestions:N,customFields:q,searchResults:j};let V;if(V=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):h()(L),this.renderedHtml===V)return;const J=document.getElementById(this.conf.containerId);J.innerHTML=V,this.renderedHtml=V,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const oe=J.querySelector(".suggestions")?J.querySelectorAll(".suggestions > li"):[],ne=J.querySelectorAll(".suggestions");for(let Y=0;Y<oe.length;Y++)oe[Y].onmousedown=W=>this.suggestionMouseDown(W),ne.length<=1&&(oe[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(j[Object.keys(j)[0]]){const Y=J.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(X=>{X.type===I.SEARCH&&(W||(W=X.client))}),W||(W=this.client),(0,s.$P)(W,Y,{hits:j[Object.keys(j)[0]]})}this.conf.infiniteScrollElement&&!P.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(J)}suggestionMouseDown(P){const N=P.target.getAttribute("data-keyword"),q=this.reduxStore;q.dispatch((0,e.dC)()),q.dispatch((0,C.Ai)(N,!0,null,!0));const j=q.getState().search.searchResultsPageUrl;j?(0,v.lG)(j,N):(q.dispatch((0,d.EF)(this.client,N,null,null,null,q)),this.hasAiAnswers&&q.dispatch((0,u.On)(this.client,N)))}suggestionMouseEnter(P){const N=parseInt(P.target.getAttribute("data-index"),10);N!==null&&N!==this.lastOnmouseOver&&(this.lastOnmouseOver=N,this.reduxStore.dispatch((0,e.XD)(N,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const P=this.conf.infiniteScrollElement;if(P.scrollHeight>0&&Math.ceil(P.offsetHeight+P.scrollTop)>=P.scrollHeight){const N=this.reduxStore.getState().keyword.value;this.loadMore(N)}}}}const I={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(w,c,n){n.d(c,{A:function(){return a},a:function(){return l}});var y=n(1944),r=n(5756),e=n(4922),d=n(4903),C=n(4826);function l(s,v,f){let g={and:[]};v&&g.and.push(v);let h={};s.allAvailableFilters.forEach(u=>{let _={or:[]};for(let S in u)s.activeFilters[S]&&!h[S]&&(_.or.push(u[S].filter),h[S]=!0);_.or.length>0&&g.and.push(_)});for(let u in s.activeRangeFilters)g.and.push({range:{[u]:Object.assign({},s.activeRangeFilters[u])}});for(let u in s.activeFacets){let _={or:[]};for(let S in s.activeFacets[u])if(u!==f){const I={};I[u]=S,_.or.push(I)}_.or.length>0&&g.and.push(_)}for(let u in s.activeHierarchicalFacets){let _={or:[]};for(let S in s.activeHierarchicalFacets[u])for(let I in s.activeHierarchicalFacets[u][S])if(!f||f.indexOf(S)===-1){const T={};T[S]=I,_.or.push(T)}_.or.length>0&&g.and.push(_)}for(let u in s.activeRangeFacets){let _={or:[]};for(let S in s.activeRangeFacets[u])if(u!==f){const I={range:{[u]:s.activeRangeFacets[u][S]}};_.or.push(I)}_.or.length>0&&g.and.push(_)}return g.and.length>0?g:{}}class a{constructor(v,f,g,h,u,_,S){this.client=v,this.reduxStore=f,this.createFilterObjectFunction=g,this.onFilterChange=h,this.onFilteredSearchRefresh=S,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",I=>this.onFilterStateChange(I,u))}onFilterStateChange(v,f){if(v.refreshSearch){(0,d.Dh)(d.sh.FILTERS,(0,d.IR)(v.activeFilters),null,this.reduxStore),(0,d.Dh)(d.sh.FACETS,(0,d.IR)(v.activeFacets),null,this.reduxStore),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore);const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g);const h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,r.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,y.EF)(this.client,h,null,null,null,this.reduxStore,null,v.targetFacetGroup));for(let u in this.segmentedSearchClients){const _=this.createFilterObjectFunction(v,this.segmentedSearchClients[u].originalFilters);this.segmentedSearchClients[u].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[u].client,u,h))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(v.setHistory){const g=this.createFilterObjectFunction(v,f);this.client.setFilterObject(g),(0,d.Dh)(d.sh.RANGE_FACETS,(0,d.IR)(v.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(v.activeFilters)}}},9369:function(w,c,n){n.d(c,{FILTER_TYPE:function(){return j},A:function(){return q}});var y=n(2334),r=n.n(y),e=n(4922),d=n(549),C=n(6353),l=n(4379),a=n(3668),s=n.n(a),v=n(8810),f=n.n(v),g=n(5509),h=n.n(g),u=n(1572),_=n.n(u),S=n(948),I=n.n(S),T=n(3329),P=n.n(T);const N="nofilter";class q{constructor(L,V,J){this.client=L,this.reduxStore=V,this.conf=J,this.activeFilter=null,(0,l.A)(J.containerId)&&(this.reduxStore.dispatch((0,d.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",oe=>this.render(oe)),this.conf.type===j.RANGE&&(0,e.G)(this.reduxStore,"search",oe=>this.searchResultsChanged(oe)))}searchResultsChanged(L){!L.loading&&L.results.fieldStats&&L.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(L){let V=Object.assign({},this.conf);this.activeFilter=null;let J=!1;for(let W in V.options)L.activeFilters[W]?(V.options[W].active=!0,this.activeFilter=W,J=!0):V.options[W].active=!1;!J&&V.options&&V.options[N]&&(V.options[N].active=!0);let oe,ne=null;if(this.conf.type===j.TABS)ne=_();else if(this.conf.type===j.TAGS)ne=h();else if(this.conf.type===j.CHECKBOX_GROUP)ne=s();else if(this.conf.type===j.RADIO_GROUP)ne=f();else if(this.conf.type===j.RANGE){L.activeRangeFilters[this.conf.field]&&(V.from=L.activeRangeFilters[this.conf.field].gte,V.to=L.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:X,max:ue}=W.fieldStats[this.conf.field];V.fromPlaceholder=X==="Infinity"?"":X,V.toPlaceholder=ue==="-Infinity"?"":ue}ne=P()}else ne=I();if(oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(V):this.conf.template?r().compile(this.conf.template)(V):ne(V),this.renderedHtml===oe)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=oe,this.renderedHtml=oe,this.conf.type===j.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===j.TABS){const W=Y.querySelectorAll("[data-filter]");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.getAttribute("data-filter")))}else if(this.conf.type===j.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let X=0;X<W.length;X++)W[X].addEventListener("click",ue=>this.singleActiveChangeEvent(ue.target.value))}else this.conf.type===j.RANGE?this.attachRangeFilterEvents(Y):(0,l.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,d.VH)(W,1))})}singleActiveChangeEvent(L){const V=L===N,J=this.reduxStore;L!==this.activeFilter&&(this.conf.setSorting&&J.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?J.dispatch((0,d.hx)(V)):this.activeFilter&&J.dispatch((0,d.VH)(this.activeFilter,1,V)),V?this.activeFilter=null:(this.activeFilter=L,J.dispatch((0,d.VH)(L,1,!0))))}attachRangeFilterEvents(L){const V=L.querySelectorAll("input");for(let oe=0;oe<V.length;oe++)V[oe].addEventListener("change",ne=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ne.target.value)?ne.target.setAttribute("data-valid","false"):(ne.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,L.querySelector('input[name="from"]').value,L.querySelector('input[name="to"]').value))});const J=L.querySelector("button");J&&J.addEventListener("click",oe=>this.reduxStore.dispatch((0,d.u3)(this.conf.field,null,null)))}rangeChangeEvent(L,V,J){const oe=V!==""?V:null,ne=J!==""?J:null;this.reduxStore.dispatch((0,d.u3)(L,oe,ne))}}const j={CHECKBOX_GROUP:"CHECKBOX_GROUP",RADIO_GROUP:"RADIO_GROUP",SELECT_LIST:"SELECT_LIST",RANGE:"RANGE",TABS:"TABS",TAGS:"TAGS"}},3816:function(w,c,n){n.d(c,{LOAD_MORE_TYPE:function(){return f},A:function(){return v}});var y=n(2334),r=n.n(y),e=n(5756),d=n(1944),C=n(4922),l=n(4379),a=n(8905),s=n.n(a);class v{constructor(h,u,_){this.client=h,this.reduxStore=u,this.conf=_,(0,l.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",S=>this.render(S)),_.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(h){const u=h.results.page||1,_=this.client.getSettings().paging.pageSize,S=h.results.total_hits||0,I=Math.ceil(S/_),T={type:this.conf.type,hasMorePages:u<I,isLoading:h.loading,totalHits:S};let P;if(P=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):this.conf.template?r().compile(this.conf.template)(T):s()(T),this.renderedHtml===P)return;const N=document.getElementById(this.conf.containerId);if(N.innerHTML=P,this.renderedHtml=P,this.conf.type===f.BUTTON){const q=N.querySelector("button");q&&(q.onclick=j=>this.loadMore())}else this.conf.type===f.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&h.results.page===1&&!h.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const h=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,h,!1,this.reduxStore));const u=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,u,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const h=this.reduxStore.getState().search.loading,u=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!h&&u)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,S=u.getBoundingClientRect().top;S>0&&S<_&&this.loadMore()}}}const f={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(w,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return P},A:function(){return T}});var y=n(2334),r=n.n(y),e=n(549),d=n(4922),C=n(4379),l=n(8526),a=n(6843);function s(N){var q=Math.ceil(Math.log10(N+1));if(q===1)return 0;var j=Math.pow(10,q-1);return Math.floor(N/j)*j}function v(N){var q=Math.ceil(Math.log10(N+1)),j=Math.pow(10,q-1);return Math.ceil(N/j)*j}var f=n(7435),g=n(6427),h=n.n(g),u=n(1204),_=n.n(u);function S(){let N,q;function j(oe,ne){oe&&(oe.textContent=ne)}function D(oe,ne){const[Y,W]=L(oe,ne);typeof N=="function"&&N({activeRange:[Y,W]})}function L(oe,ne){return[parseFloat(oe.value),parseFloat(ne.value)]}function V(oe,ne,Y,W,X){const ue=ne.max-ne.min,xe=oe.value-ne.min,Ae=ne.value-ne.min;X.style.background=`linear-gradient(
47
47
  to right,
48
48
  `.concat(Y,` 0%,
49
49
  `).concat(Y," ").concat(xe/ue*100,`%,
50
50
  `).concat(W," ").concat(xe/ue*100,`%,
51
- `).concat(W," ").concat(Re/ue*100,`%,
52
- `).concat(Y," ").concat(Re/ue*100,`%,
53
- `).concat(Y," 100%)")}function J(se){const ne=document.querySelector("#"+q+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+q+" [data-id=adds-slider-control-to]");Number(se.value)<=ne.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(se,ne,Y){N=ne,q=se;const[W,X,ue,xe]=function(){const Me=document.querySelector("#"+q+" .adds-range-slider-container");return[Me.getAttribute("data-slider-min"),Me.getAttribute("data-slider-max"),Me.getAttribute("data-slider-start"),Me.getAttribute("data-slider-end")]}(),Re=Math.ceil(parseFloat(X));(function(Me,We){const z=document.querySelector("#"+q+" .adds-range-slider-container"),[H,oe,de,be]=Me,we=`
51
+ `).concat(W," ").concat(Ae/ue*100,`%,
52
+ `).concat(Y," ").concat(Ae/ue*100,`%,
53
+ `).concat(Y," 100%)")}function J(oe){const ne=document.querySelector("#"+q+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+q+" [data-id=adds-slider-control-to]");Number(oe.value)<=ne.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(oe,ne,Y){N=ne,q=oe;const[W,X,ue,xe]=function(){const Me=document.querySelector("#"+q+" .adds-range-slider-container");return[Me.getAttribute("data-slider-min"),Me.getAttribute("data-slider-max"),Me.getAttribute("data-slider-start"),Me.getAttribute("data-slider-end")]}(),Ae=Math.ceil(parseFloat(X));(function(Me,We){const z=document.querySelector("#"+q+" .adds-range-slider-container"),[H,se,de,we]=Me,Se=`
54
54
  <div class="adds-range-slider-control">
55
- <input data-id="adds-slider-control-from" type="range" value="`.concat(de||H,'" min="').concat(H,'" max="').concat(oe,'" step="').concat(We,`" />
56
- <input data-id="adds-slider-control-to" type="range" value="`).concat(be||oe,'" min="').concat(H,'" max="').concat(oe,'" step="').concat(We,`" />
55
+ <input data-id="adds-slider-control-from" type="range" value="`.concat(de||H,'" min="').concat(H,'" max="').concat(se,'" step="').concat(We,`" />
56
+ <input data-id="adds-slider-control-to" type="range" value="`).concat(we||se,'" min="').concat(H,'" max="').concat(se,'" step="').concat(We,`" />
57
57
  </div>
58
- `);z.innerHTML=we})([Math.floor(parseFloat(W)),Re,ue,xe],Y.step);const Oe=Y.styles,Ce=document.querySelector("#"+se+" [data-id=adds-slider-control-from]"),He=document.querySelector("#"+se+" [data-id=adds-slider-control-to]"),Fe=document.querySelector("#"+se+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+se+" [data-id=adds-slider-display-end]");V(Ce,He,Oe.trackColor,Oe.progressColor,He),J(He),j(Fe,ue||W),j(Ke,xe||X),Ce.oninput=()=>function(Me,We,z,H){const[oe,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),oe>de?(Me.value=de,j(z,de)):j(z,oe)}(Ce,He,Fe,Oe),He.oninput=()=>function(Me,We,z,H){const[oe,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),J(We),oe<=de?(We.value=de,j(z,de)):(We.value=oe,j(z,oe))}(Ce,He,Ke,Oe),Ce.onchange=()=>D(Ce,He),He.onchange=()=>D(Ce,He)}}k.init=function(N,q,j){new k().initialize(N,q,j)};var A=k;class I{constructor(q,j,D){this.client=q,this.reduxStore=j,this.conf=D,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var L=["component.loadMore","component.pagination","component.sortby"];function V(){var J=j.getState().filters.activeRangeFacets[D.field];return!!J&&!(0,f.I)(J)}this.conf.type===P.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=P.CHECKBOX,(0,C.A)(D.containerId)&&((0,d.G)(this.reduxStore,"search",J=>{const se=V();if(!(!J.started||J.loading||J.callBy===this.conf.field&&se||L.indexOf(J.callBy)>-1))if(J.results.hits&&J.results.hits.length){if(se&&this.conf.type===P.SLIDER){var ne=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ne.gte,max:ne.lte}},this.conf.field))}else if(se&&this.conf.type===P.CHECKBOX){const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchCustomApi(this.conf.field,Y,W=>{this.reduxStore.dispatch((0,a.Ow)(W.fieldStats,this.conf.field))})}else J.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,d.G)(this.reduxStore,"fieldstats",J=>{var se=J.fieldStats[this.conf.field];if(J.callBy!==this.conf.field||se===void 0)return;if(se===null)return void this.renderRangeSlider();if(V()?this.ranges=function(W){const X=[];for(const ue in W)X.push({from:W[ue].gte,to:W[ue].lt});return X}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,X,ue){const xe=W>=0?o(W):-1*v(-1*W),Re=X>=0?v(X):-1*o(-1*X),Oe=[];let Ce=xe;const He=v((Re-xe)/ue);for(var Fe=0;Fe<ue;Fe++)Oe.push({from:Ce,to:Ce+He}),Ce+=He;return Oe}(se.min,se.max,this.maxNumberOfRangeBuckets),this.conf.type===P.SLIDER)return void this.renderRangeSlider(J);var ne={field:this.conf.field,ranges:this.ranges};const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ne,Y,W=>{this.render(W)})}))}setRangeFilter(q,j,D){const L={min:j,max:D};this.reduxStore.dispatch((0,e.jU)(this.conf.field,L,q,!0))}setRangeSlider(q){this.reduxStore.dispatch((0,e.ks)(function(j,D,L){const V="".concat(D,"-").concat(L);return{[j]:{[V]:{gte:D,lte:L}}}}(this.conf.field,q[0],q[1]),!0,this.conf.field))}render(q){const j=document.getElementById(this.conf.containerId);if(q){const D={conf:this.conf,rangeFacets:q.rangeFacets[this.conf.field]};let L;L=this.conf.precompiledTemplate?this.conf.precompiledTemplate(D):this.conf.template?r().compile(this.conf.template)(D):h()(D),j.innerHTML=L}else j.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(q){const j=this,D=document.getElementById(this.conf.containerId),L={conf:this.conf};if(!q)return void(D.innerHTML="");const V=this.getActiveRangeFacets(this.conf.field);let J;L.sliderConfig=Object.assign({},function(se,ne){return!se.fieldStats&&!se.fieldStats[ne]?{min:null,max:null}:{min:se.fieldStats[ne].min,max:se.fieldStats[ne].max}}(q,this.conf.field),function(se){let ne,Y;return se.forEach(W=>{const X=W.gte,ue=W.lte;(ne===void 0||X<ne)&&(ne=X),(Y===void 0||ue>Y)&&(Y=ue)}),{start:ne,end:Y}}(V)),J=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):_()(L),D.innerHTML=J,A.init(this.conf.containerId,function(se){se.activeRange.length&&j.setRangeSlider(se.activeRange)},{styles:{trackColor:this.conf.styles.trackColor,progressColor:this.conf.styles.progressColor},step:this.conf.step||1})}handleCheckboxStates(q){const j=document.getElementById(this.conf.containerId),D=this.getActiveRangeFacets(this.conf.field),L=j.getElementsByTagName("input");for(let V=0;V<L.length;V++){let J=L[V];J.checked=!!D.find(se=>se.key===J.value),q&&(J.onchange=se=>{this.setRangeFilter(se.target.value,se.target.getAttribute("data-value-min"),se.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(q){let j=[];const D=this.reduxStore.getState().filters.activeRangeFacets;if(D[q])for(let L in D[q])j.push(D[q][L]);return j}}const P={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(b,c,n){n.d(c,{A:function(){return y.Ay},RECOMMENDATION_TYPE:function(){return r}});var y=n(3007);const r={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(b,c,n){n.d(c,{Qc:function(){return o},uH:function(){return v},Ay:function(){return f}});const y=`
58
+ `);z.innerHTML=Se})([Math.floor(parseFloat(W)),Ae,ue,xe],Y.step);const Oe=Y.styles,Ce=document.querySelector("#"+oe+" [data-id=adds-slider-control-from]"),He=document.querySelector("#"+oe+" [data-id=adds-slider-control-to]"),Fe=document.querySelector("#"+oe+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+oe+" [data-id=adds-slider-display-end]");V(Ce,He,Oe.trackColor,Oe.progressColor,He),J(He),j(Fe,ue||W),j(Ke,xe||X),Ce.oninput=()=>function(Me,We,z,H){const[se,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),se>de?(Me.value=de,j(z,de)):j(z,se)}(Ce,He,Fe,Oe),He.oninput=()=>function(Me,We,z,H){const[se,de]=L(Me,We);V(Me,We,H.trackColor,H.progressColor,We),J(We),se<=de?(We.value=de,j(z,de)):(We.value=se,j(z,se))}(Ce,He,Ke,Oe),Ce.onchange=()=>D(Ce,He),He.onchange=()=>D(Ce,He)}}S.init=function(N,q,j){new S().initialize(N,q,j)};var I=S;class T{constructor(q,j,D){this.client=q,this.reduxStore=j,this.conf=D,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var L=["component.loadMore","component.pagination","component.sortby"];function V(){var J=j.getState().filters.activeRangeFacets[D.field];return!!J&&!(0,f.I)(J)}this.conf.type===P.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=P.CHECKBOX,(0,C.A)(D.containerId)&&((0,d.G)(this.reduxStore,"search",J=>{const oe=V();if(!(!J.started||J.loading||J.callBy===this.conf.field&&oe||L.indexOf(J.callBy)>-1))if(J.results.hits&&J.results.hits.length){if(oe&&this.conf.type===P.SLIDER){var ne=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ne.gte,max:ne.lte}},this.conf.field))}else if(oe&&this.conf.type===P.CHECKBOX){const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchCustomApi(this.conf.field,Y,W=>{this.reduxStore.dispatch((0,a.Ow)(W.fieldStats,this.conf.field))})}else J.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(J.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,d.G)(this.reduxStore,"fieldstats",J=>{var oe=J.fieldStats[this.conf.field];if(J.callBy!==this.conf.field||oe===void 0)return;if(oe===null)return void this.renderRangeSlider();if(V()?this.ranges=function(W){const X=[];for(const ue in W)X.push({from:W[ue].gte,to:W[ue].lt});return X}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,X,ue){const xe=W>=0?s(W):-1*v(-1*W),Ae=X>=0?v(X):-1*s(-1*X),Oe=[];let Ce=xe;const He=v((Ae-xe)/ue);for(var Fe=0;Fe<ue;Fe++)Oe.push({from:Ce,to:Ce+He}),Ce+=He;return Oe}(oe.min,oe.max,this.maxNumberOfRangeBuckets),this.conf.type===P.SLIDER)return void this.renderRangeSlider(J);var ne={field:this.conf.field,ranges:this.ranges};const Y=(0,l.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ne,Y,W=>{this.render(W)})}))}setRangeFilter(q,j,D){const L={min:j,max:D};this.reduxStore.dispatch((0,e.jU)(this.conf.field,L,q,!0))}setRangeSlider(q){this.reduxStore.dispatch((0,e.ks)(function(j,D,L){const V="".concat(D,"-").concat(L);return{[j]:{[V]:{gte:D,lte:L}}}}(this.conf.field,q[0],q[1]),!0,this.conf.field))}render(q){const j=document.getElementById(this.conf.containerId);if(q){const D={conf:this.conf,rangeFacets:q.rangeFacets[this.conf.field]};let L;L=this.conf.precompiledTemplate?this.conf.precompiledTemplate(D):this.conf.template?r().compile(this.conf.template)(D):h()(D),j.innerHTML=L}else j.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(q){const j=this,D=document.getElementById(this.conf.containerId),L={conf:this.conf};if(!q)return void(D.innerHTML="");const V=this.getActiveRangeFacets(this.conf.field);let J;L.sliderConfig=Object.assign({},function(oe,ne){return!oe.fieldStats&&!oe.fieldStats[ne]?{min:null,max:null}:{min:oe.fieldStats[ne].min,max:oe.fieldStats[ne].max}}(q,this.conf.field),function(oe){let ne,Y;return oe.forEach(W=>{const X=W.gte,ue=W.lte;(ne===void 0||X<ne)&&(ne=X),(Y===void 0||ue>Y)&&(Y=ue)}),{start:ne,end:Y}}(V)),J=this.conf.precompiledTemplate?this.conf.precompiledTemplate(L):this.conf.template?r().compile(this.conf.template)(L):_()(L),D.innerHTML=J,I.init(this.conf.containerId,function(oe){oe.activeRange.length&&j.setRangeSlider(oe.activeRange)},{styles:{trackColor:this.conf.styles.trackColor,progressColor:this.conf.styles.progressColor},step:this.conf.step||1})}handleCheckboxStates(q){const j=document.getElementById(this.conf.containerId),D=this.getActiveRangeFacets(this.conf.field),L=j.getElementsByTagName("input");for(let V=0;V<L.length;V++){let J=L[V];J.checked=!!D.find(oe=>oe.key===J.value),q&&(J.onchange=oe=>{this.setRangeFilter(oe.target.value,oe.target.getAttribute("data-value-min"),oe.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(q){let j=[];const D=this.reduxStore.getState().filters.activeRangeFacets;if(D[q])for(let L in D[q])j.push(D[q][L]);return j}}const P={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(w,c,n){n.d(c,{A:function(){return y.Ay},RECOMMENDATION_TYPE:function(){return r}});var y=n(3007);const r={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(w,c,n){n.d(c,{Qc:function(){return s},uH:function(){return v},Ay:function(){return f}});const y=`
59
59
  <div class="addsearch-recommendations">
60
60
  {{#each hits}}
61
61
  <div class="hit">
@@ -78,88 +78,80 @@ React keys must be passed directly to JSX without using spread:
78
78
  </div>
79
79
  {{/each}}
80
80
  </div>
81
- `;var r=n(2334),e=n.n(r),d=n(4922),C=n(4379),l=n(878),a=n(4128);const o=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,v=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class f{constructor(h,u,_,k){this.client=h,this.conf=_,this.reduxStore=u,k.push(_),(0,C.A)(_.containerId)&&(0,d.G)(this.reduxStore,"recommendation",A=>{A.container===_.containerId&&this.render(A)})}render(h){const u=h.results||{};u.blockId=this.conf.blockId;let _,k=this.conf.template||y;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(u):(k=this.conf.template||y,_=e().compile(k)(u)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,l.T7)()))}}},8909:function(b,c,n){n.d(c,{SORTBY_TYPE:function(){return u},A:function(){return h}});var y=n(2334),r=n.n(y),e=n(6353),d=n(1944),C=n(5756),l=n(4922),a=n(4379),o=n(6868),v=n.n(o),f=n(9462),g=n.n(f);class h{constructor(k,A,I){this.client=k,this.conf=I,this.reduxStore=A,this.conf.options.forEach(P=>{P.sortBy=typeof P.sortBy=="string"?P.sortBy.split(","):P.sortBy,P.order=typeof P.order=="string"?P.order.split(","):P.order}),(0,a.A)(I.containerId)&&(0,l.G)(this.reduxStore,"sortby",P=>this.render(P))}onChangeSelect(k){const A=k.options[k.selectedIndex],I=A.getAttribute("data-field"),P=A.getAttribute("data-order");this.dispatchAndRefresh(I,P)}onChangeRadio(k){const A=k.target.getAttribute("data-field"),I=k.target.getAttribute("data-order");this.dispatchAndRefresh(A,I)}dispatchAndRefresh(k,A){const I=k.split(","),P=A.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,I,P,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const N=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,N,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(k,A){return k.length===A.length&&k.every((I,P)=>I===A[P])}render(k){const{field:A,order:I}=k;let P=null;P=this.conf.type===u.RADIO_GROUP?v():g();let N,q=Object.assign({},this.conf);if(q.options.forEach(D=>{this.arraysMatch(D.sortBy,A)&&this.arraysMatch(D.order,I)?D.active=!0:D.active=!1}),N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(q):this.conf.template?r().compile(this.conf.template)(q):P(q),this.renderedHtml===N)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=N,this.renderedHtml=N,this.conf.type===u.RADIO_GROUP){const D=j.querySelectorAll("input");for(let L=0;L<D.length;L++)D[L].onclick=V=>this.onChangeRadio(V)}else if(j.querySelector("select").onchange=D=>this.onChangeSelect(D.target),k){const D=j.getElementsByTagName("option");for(let L=0;L<D.length;L++)if(D[L].getAttribute("data-field")===A&&D[L].getAttribute("data-order")===I){j.querySelector("select").value=D[L].text;break}}}}const u={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},4933:function(b,c,n){n.d(c,{Z:function(){return Tt},H:function(){return Kn},default:function(){return Al}});var y=n(9491),r=n.n(y),e=n(2334),d=n.n(e),C=n(549),l=n(4379),a=n(4922),o=n(3787),v=n.n(o);const f="FILTER",g="RANGE_FILTER",h="FACET",u="RANGE_FACET",_="HIERARCHICAL_FACET";class k{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"filters",R=>this.render(R))}getFilterLabel(x,E){for(let T=0;T<E.length;T++)if(E[T][x])return E[T][x].label}emptyIfNull(x){return x??""}render(x){let E=[];for(let re in x.activeFilters)E.push({type:f,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ce=x.activeRangeFilters[re];E.push({type:g,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ce.gte)+"-"+this.emptyIfNull(ce.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var T in x.activeFacets[re])E.push({name:re,type:h,value:T,label:T.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ce in x.activeHierarchicalFacets[re])for(let ve in x.activeHierarchicalFacets[re][ce])E.push({name:ce,type:_,container:re,value:ve,label:ve});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ce in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ce)&&E.push({name:re,type:u,value:ce,label:ce,rangeMin:x.activeRangeFacets[re][ce].gte,rangeMax:x.activeRangeFacets[re][ce].lte});const R={active:E,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(R):this.conf.template?d().compile(this.conf.template)(R):v()(R),this.renderedHtml===M)return;const $=document.getElementById(this.conf.containerId);$.innerHTML=M,this.renderedHtml=M;const G=$.querySelectorAll("[data-type]");for(let re=0;re<G.length;re++)G[re].addEventListener("click",ce=>this.handleFilterClick(ce));const te=$.querySelector("[data-clearall]");te&&te.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const E=x.target.getAttribute("data-type"),T=x.target.getAttribute("data-name"),R=x.target.getAttribute("data-value"),M=x.target.getAttribute("data-container"),$=x.target.getAttribute("data-conf-fields")?x.target.getAttribute("data-conf-fields").split(","):[],G=x.target.getAttribute("data-range-min"),te=x.target.getAttribute("data-range-max");if(E===f)this.reduxStore.dispatch((0,C.VH)(T,R,!0));else if(E===g)this.reduxStore.dispatch((0,C.u3)(T,null,null));else if(E===h)this.reduxStore.dispatch((0,C.II)(T,R));else if(E===_)this.reduxStore.dispatch((0,C.Ni)(T,M,$,R,!0));else if(E===u){const re={min:G,max:te};this.reduxStore.dispatch((0,C.jU)(T,re,R,!0,!0))}}}var A=n(6510),I=n(8526),P=n(1353),N=n.n(P);class q{constructor(x,E,T,R){this.client=x,this.reduxStore=E,this.conf=T;var M=["component.loadMore","component.pagination","component.sortby"];(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",$=>{var G,te=this.reduxStore.getState().filters.activeFacets;if(!($.loading||M.indexOf($.callBy)>-1))if((G=te[this.conf.field])&&Object.keys(G).length!==0&&this.conf.advancedSticky){var re=(0,I.a)(this.reduxStore.getState().filters,R,this.conf.field);if($.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ce=>{this.render(ce,!0)});else{const ce=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ce)}}else this.render($)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,E){if(x.loading)return;const T=this.conf.field,R=E?x:x.results;let M=[];R&&R.facets&&R.facets[T]&&(M=R.facets[T]);const $=this.getActiveFacets(T);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===x.keyword&&this.stickyFacets&&$.length!==0?M=this.stickyFacets:(this.keyword=x.keyword,this.stickyFacets=M)),this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):N()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("input");for(let ve=0;ve<ce.length;ve++){let ke=ce[ve];ke.checked=$.indexOf(ke.value)!==-1,ke.onchange=De=>{this.setFilter(De.target.value,De.target.checked)}}}getActiveFacets(x){let E=[];const T=this.reduxStore.getState().filters.activeFacets;if(T[x])for(let R in T[x])E.push(R);return E}updateCheckboxStates(x){const E=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let T=0;T<E.length;T++){let R=E[T];R.checked=x.indexOf(R.value)!==-1}}}var j=n(4278),D=n.n(j),L=n(3923),V=n(2009),J=n.n(V);class se{constructor(x,E,T,R){function M(te,re){let ce=!0;return te&&re.forEach(ve=>{var ke;(ke=te[ve])&&Object.keys(ke).length!==0&&(ce=!1)}),ce}this.client=x,this.reduxStore=E,this.conf=T;var $=["component.loadMore","component.pagination","component.sortby"];const G=this.conf.template_subHierarchicalFacetsTemplate||J();(0,L.bp)("subHierarchicalFacetsTemplate",G),(0,L.g3)("validateOpenState",function(te){return E.getState().filters.openedHierarchicalFacetGroups.indexOf(te)===-1}),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",te=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(te.loading||$.indexOf(te.callBy)>-1))if(M(re,this.conf.fields)||!te.results.hits.length)this.render(te);else{var ce=(0,I.a)(this.reduxStore.getState().filters,R,this.conf.fields);if(this.conf.fields.indexOf(te.callBy)===-1)x.fetchCustomApi(this.conf.field,ce,ke=>{this.render(ke,!0)});else{var ve=document.getElementById(this.conf.containerId);this._updateCheckBoxes(ve,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(x,E){this.reduxStore.dispatch((0,C.Ni)(E,this.conf.containerId,this.conf.fields,x,!0))}render(x,E){if(x.loading)return;const T=this.conf.fields,R=E?x:x.results;let M=[];R&&R.hierarchicalFacets&&R.hierarchicalFacets[T[0]]&&(M=R.hierarchicalFacets[T[0]],M=M.map(ve=>(ve.field=ve.field.replace("hierarchical_facet.",""),ve)));const $=this.getActiveFacets(T,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):D()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te,this._updateCheckBoxes(re,$,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ce=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let ve=0;ve<ce.length;ve++)ce[ve].addEventListener("click",()=>{ce[ve].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ce[ve].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,E){let T=[];const R=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(R[E]&&R[E][M])for(let $ in R[E][M])T.push($)}),T}_toggleFacetGroupOpenState(x){const E=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,T=E.indexOf(x);T===-1?E.push(x):E.splice(T,1)}_updateCheckBoxes(x,E,T,R){const M=x.getElementsByTagName("input");for(let $=0;$<M.length;$++){let G=M[$];G.checked=E.indexOf(G.value)!==-1,G.indeterminate=R.indexOf(G.value)>-1,T&&(G.onchange=te=>{this.setFilter(te.target.value,te.target.getAttribute("data-field"))})}}}var ne=n(1990),Y=n(9369),W=n(3816),X=n(5756),ue=n(1944),xe=n(4245),Re=n.n(xe);class Oe{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),E=x.search.results.page||1,T=this.client.getSettings().paging.pageSize,R=x.search.results.total_hits||0,M=Math.ceil(R/T),$=function(ve,ke){if(!ke||ke<2||!ve||ve>ke)return null;for(var De=[],Ue=0;Ue<ke;Ue++)De.push(Ue+1);if(ke<=9)return De;if(ke>9&&ve<7)return De.slice(0,9);if(ke>9&&ve>=ke-3)return De.slice(ke-9);var St=De.indexOf(ve);return St-4>=0&&St+5<=De.length?De.slice(St-4,St+5):null}(E,M),G={currentPage:E,lastPage:$?$[$.length-1]:0,totalPages:M,pages:$};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):Re()(G),this.renderedHtml===te)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("button");for(let ve=0;ve<ce.length;ve++)ce[ve].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const E=x.target;let T=null;E.getAttribute("data-page")==="previous"?T=this.reduxStore.getState().pagination.page-1:E.getAttribute("data-page")==="next"?T=(this.reduxStore.getState().pagination.page||1)+1:T=parseInt(E.getAttribute("data-page"),10),this.reduxStore.dispatch((0,X.I)(this.client,T,null,this.reduxStore));const R=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ue.EF)(this.client,R,M,null,null,this.reduxStore,null,"component.pagination"))}}var Ce=n(8505),He=n.n(Ce),Fe=n(6148),Ke=n(6993),Me=n(4903);const We=40,z=38,H=13,oe=8,de=46;class be{constructor(x,E,T,R,M){this.client=x,this.reduxStore=E,this.conf=T,this.matchAllQuery=R,this.minLengthToShowResults=T.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const $=T.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:$})),T.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",G=>{G.setSearchFieldValue&&this.updateValueOnAllBoundFields(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdateBoundField(G))):(0,l.A)(T.containerId)&&((0,a.G)(this.reduxStore,"keyword",G=>{G.searchFieldContainerId!==this.conf.containerId&&G.searchFieldContainerId!==null||this.render(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdate(G)))}updateValueOnAllBoundFields(x){for(var E=0;E<this.boundFields.length;E++)this.boundFields[E].value=x}onAutocompleteUpdate(x){if((x.suggestions.length>0||x.customFields.length>0)&&x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null&&x.setSuggestionToSearchField){const E=(x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex]).value;this.render(E)}else x.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(x){if(x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null){const E=x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex];if(!E)return;const T=E.value;this.updateValueOnAllBoundFields(T)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,E,T){T||this.reduxStore.dispatch((0,Fe.dC)());let R=E;R===""&&this.matchAllQuery&&(R=Tt),R.indexOf(Kn)!==0&&this.reduxStore.dispatch((0,X.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(R,!1,T,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(x){const E=this.reduxStore.getState().search.searchResultsPageUrl;E&&this.conf.ignoreSearchResultsPageUrl!==!0&&x&&x.length>0?(0,Me.lG)(E,x):this.executeSearch(this.client,x,!1)}addEventListenersToField(x){x.oninput=E=>this.oninput(E),x.onkeypress=E=>this.onkeypress(E),x.onkeyup=E=>this.onkeyup(E),x.onfocus=E=>this.onfocus(E),x.onblur=E=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(x){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(x.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(x){const E=this.reduxStore;x===""&&this.matchAllQuery&&(x=Tt),E.dispatch((0,Fe.dC)()),E.dispatch((0,Ke.Ai)(x,!0,null,!1)),this.redirectOrSearch(x)}render(x){const E=document.getElementById(this.conf.containerId);E.querySelector("input")?x!==null&&x!==Tt&&E.querySelector("input").value!==x&&(E.querySelector("input").value=x):(this.conf.precompiledTemplate?E.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?E.innerHTML=d().compile(this.conf.template)(this.conf):E.innerHTML=He()(this.conf),this.field=E.querySelector("input"),x!==Tt&&(this.field.value=x),this.addEventListenersToField(this.field),E.querySelector("button")&&(E.querySelector("button").onclick=()=>{let T=this.field.value;this.handleSubmitKeyword(T)}),E.querySelector("form")&&(E.querySelector("form").onsubmit=T=>T.preventDefault()),this.handleAutoFocus(this.field))}bindContainer(){this.boundFields=document.querySelectorAll(this.conf.selectorToBind);for(var x=0;x<this.boundFields.length;x++)this.addEventListenersToField(this.boundFields[x]),this.boundFields[x].form&&(this.boundFields[x].form.onsubmit=E=>{E.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const E=document.querySelector(this.conf.buttonSelector);E.type==="submit"&&(E.type="button"),E.onclick=()=>{let T=this.boundFields[0].value;this.handleSubmitKeyword(T)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const E=this.reduxStore;let T=x.target.value;T===""&&this.matchAllQuery&&(T=Tt),x.keyCode!==oe&&x.keyCode!==de||E.dispatch((0,Fe.XD)(null,!1));const R=this.conf.ignoreAutocomplete===!0;E.dispatch((0,Ke.Ai)(T,R,this.conf.containerId)),E.dispatch((0,Fe.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,T,!0)}onkeyup(x){const E=this.reduxStore;x.keyCode===We?E.dispatch((0,Fe.C0)(Fe.Jd)):x.keyCode===z&&E.dispatch((0,Fe.C0)(Fe.il))}onkeypress(x){if(x.keyCode===H){const E=x.target.value;this.handleSubmitKeyword(E)}}onfocus(x){x.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,Ke.Ai)(Tt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Kn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Fe.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Fe.dC)())}}var we=n(6351),Te=n(6873),me=n.n(Te),ye=n(303),Se=n.n(ye),Be=n(2123),Z=n.n(Be),le=n(4111),ie=n.n(le);class fe{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E;const R=this.conf.template_resultcount||Z(),M=this.conf.template_image||ie();(0,L.bp)("numberOfResultsTemplate",R),(0,L.bp)("searchResultImageTemplate",M),(0,L.g3)("removeTrailingQueriesFromUrl",G=>{if(G)return G.replace(/\?.*$/,"")});const $=this.conf.categorySelectionFunction||L.GK;(0,L.g3)("selectCategory",G=>$(G,this.conf.categoryAliases)),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,E=x.results||{};let T;if(E.resultcount=E.hits&&this.conf.showNumberOfResults!==!1,E.keyword=x.keyword,T=E.hits&&E.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(E):this.conf.template_noresults?d().compile(this.conf.template_noresults)(E):Se()(E):this.conf.precompiledTemplate?this.conf.precompiledTemplate(E):this.conf.template?d().compile(this.conf.template)(E):me()(E),this.renderedHtml===T)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=T,this.renderedHtml=T,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=R.querySelectorAll("[data-analytics-click]");(0,we.$P)(this.client,M,E)}}function O(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let m={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function S(pe){m=pe}const F=/[&<>"']/,U=new RegExp(F.source,"g"),K=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ee=new RegExp(K.source,"g"),Ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ve=pe=>Ae[pe];function Ie(pe,x){if(x){if(F.test(pe))return pe.replace(U,Ve)}else if(K.test(pe))return pe.replace(ee,Ve);return pe}const Ge=/(^|[^\[])\^/g;function ge(pe,x){let E=typeof pe=="string"?pe:pe.source;x=x||"";const T={replace:(R,M)=>{let $=typeof M=="string"?M:M.source;return $=$.replace(Ge,"$1"),E=E.replace(R,$),T},getRegex:()=>new RegExp(E,x)};return T}function Zt(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const Ft={exec:()=>null};function Ot(pe,x){const E=pe.replace(/\|/g,(R,M,$)=>{let G=!1,te=M;for(;--te>=0&&$[te]==="\\";)G=!G;return G?"|":" |"}).split(/ \|/);let T=0;if(E[0].trim()||E.shift(),E.length>0&&!E[E.length-1].trim()&&E.pop(),x)if(E.length>x)E.splice(x);else for(;E.length<x;)E.push("");for(;T<E.length;T++)E[T]=E[T].trim().replace(/\\\|/g,"|");return E}function Rt(pe,x,E){const T=pe.length;if(T===0)return"";let R=0;for(;R<T;){const M=pe.charAt(T-R-1);if(M!==x||E){if(M===x||!E)break;R++}else R++}return pe.slice(0,T-R)}function Qt(pe,x,E,T){const R=x.href,M=x.title?Ie(x.title):null,$=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){T.state.inLink=!0;const G={type:"link",raw:E,href:R,title:M,text:$,tokens:T.inlineTokens($)};return T.state.inLink=!1,G}return{type:"image",raw:E,href:R,title:M,text:Ie($)}}class Bt{constructor(x){ze(this,"options");ze(this,"rules");ze(this,"lexer");this.options=x||m}space(x){const E=this.rules.block.newline.exec(x);if(E&&E[0].length>0)return{type:"space",raw:E[0]}}code(x){const E=this.rules.block.code.exec(x);if(E){const T=E[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:E[0],codeBlockStyle:"indented",text:this.options.pedantic?T:Rt(T,`
82
- `)}}}fences(x){const E=this.rules.block.fences.exec(x);if(E){const T=E[0],R=function(M,$){const G=M.match(/^(\s+)(?:```)/);if(G===null)return $;const te=G[1];return $.split(`
81
+ `;var r=n(2334),e=n.n(r),d=n(4922),C=n(4379),l=n(878),a=n(4128);const s=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,v=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class f{constructor(h,u,_,S){this.client=h,this.conf=_,this.reduxStore=u,S.push(_),(0,C.A)(_.containerId)&&(0,d.G)(this.reduxStore,"recommendation",I=>{I.container===_.containerId&&this.render(I)})}render(h){const u=h.results||{};u.blockId=this.conf.blockId;let _,S=this.conf.template||y;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(u):(S=this.conf.template||y,_=e().compile(S)(u)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,l.T7)()))}}},8909:function(w,c,n){n.d(c,{SORTBY_TYPE:function(){return u},A:function(){return h}});var y=n(2334),r=n.n(y),e=n(6353),d=n(1944),C=n(5756),l=n(4922),a=n(4379),s=n(6868),v=n.n(s),f=n(9462),g=n.n(f);class h{constructor(S,I,T){this.client=S,this.conf=T,this.reduxStore=I,this.conf.options.forEach(P=>{P.sortBy=typeof P.sortBy=="string"?P.sortBy.split(","):P.sortBy,P.order=typeof P.order=="string"?P.order.split(","):P.order}),(0,a.A)(T.containerId)&&(0,l.G)(this.reduxStore,"sortby",P=>this.render(P))}onChangeSelect(S){const I=S.options[S.selectedIndex],T=I.getAttribute("data-field"),P=I.getAttribute("data-order");this.dispatchAndRefresh(T,P)}onChangeRadio(S){const I=S.target.getAttribute("data-field"),T=S.target.getAttribute("data-order");this.dispatchAndRefresh(I,T)}dispatchAndRefresh(S,I){const T=S.split(","),P=I.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,T,P,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const N=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,d.EF)(this.client,N,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(S,I){return S.length===I.length&&S.every((T,P)=>T===I[P])}render(S){const{field:I,order:T}=S;let P=null;P=this.conf.type===u.RADIO_GROUP?v():g();let N,q=Object.assign({},this.conf);if(q.options.forEach(D=>{this.arraysMatch(D.sortBy,I)&&this.arraysMatch(D.order,T)?D.active=!0:D.active=!1}),N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(q):this.conf.template?r().compile(this.conf.template)(q):P(q),this.renderedHtml===N)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=N,this.renderedHtml=N,this.conf.type===u.RADIO_GROUP){const D=j.querySelectorAll("input");for(let L=0;L<D.length;L++)D[L].onclick=V=>this.onChangeRadio(V)}else if(j.querySelector("select").onchange=D=>this.onChangeSelect(D.target),S){const D=j.getElementsByTagName("option");for(let L=0;L<D.length;L++)if(D[L].getAttribute("data-field")===I&&D[L].getAttribute("data-order")===T){j.querySelector("select").value=D[L].text;break}}}}const u={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},9770:function(w,c,n){n.d(c,{Z:function(){return Rt},H:function(){return Kn},default:function(){return Tl}});var y=n(9491),r=n.n(y),e=n(2334),d=n.n(e),C=n(549),l=n(4379),a=n(4922),s=n(3787),v=n.n(s);const f="FILTER",g="RANGE_FILTER",h="FACET",u="RANGE_FACET",_="HIERARCHICAL_FACET";class S{constructor(x,k,R){this.client=x,this.conf=R,this.reduxStore=k,(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"filters",A=>this.render(A))}getFilterLabel(x,k){for(let R=0;R<k.length;R++)if(k[R][x])return k[R][x].label}emptyIfNull(x){return x??""}render(x){let k=[];for(let re in x.activeFilters)k.push({type:f,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ce=x.activeRangeFilters[re];k.push({type:g,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ce.gte)+"-"+this.emptyIfNull(ce.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var R in x.activeFacets[re])k.push({name:re,type:h,value:R,label:R.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ce in x.activeHierarchicalFacets[re])for(let ve in x.activeHierarchicalFacets[re][ce])k.push({name:ce,type:_,container:re,value:ve,label:ve});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ce in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ce)&&k.push({name:re,type:u,value:ce,label:ce,rangeMin:x.activeRangeFacets[re][ce].gte,rangeMax:x.activeRangeFacets[re][ce].lte});const A={active:k,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(A):this.conf.template?d().compile(this.conf.template)(A):v()(A),this.renderedHtml===M)return;const $=document.getElementById(this.conf.containerId);$.innerHTML=M,this.renderedHtml=M;const G=$.querySelectorAll("[data-type]");for(let re=0;re<G.length;re++)G[re].addEventListener("click",ce=>this.handleFilterClick(ce));const te=$.querySelector("[data-clearall]");te&&te.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const k=x.target.getAttribute("data-type"),R=x.target.getAttribute("data-name"),A=x.target.getAttribute("data-value"),M=x.target.getAttribute("data-container"),$=x.target.getAttribute("data-conf-fields")?x.target.getAttribute("data-conf-fields").split(","):[],G=x.target.getAttribute("data-range-min"),te=x.target.getAttribute("data-range-max");if(k===f)this.reduxStore.dispatch((0,C.VH)(R,A,!0));else if(k===g)this.reduxStore.dispatch((0,C.u3)(R,null,null));else if(k===h)this.reduxStore.dispatch((0,C.II)(R,A));else if(k===_)this.reduxStore.dispatch((0,C.Ni)(R,M,$,A,!0));else if(k===u){const re={min:G,max:te};this.reduxStore.dispatch((0,C.jU)(R,re,A,!0,!0))}}}var I=n(6510),T=n(8526),P=n(1353),N=n.n(P);class q{constructor(x,k,R,A){this.client=x,this.reduxStore=k,this.conf=R;var M=["component.loadMore","component.pagination","component.sortby"];(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"search",$=>{var G,te=this.reduxStore.getState().filters.activeFacets;if(!($.loading||M.indexOf($.callBy)>-1))if((G=te[this.conf.field])&&Object.keys(G).length!==0&&this.conf.advancedSticky){var re=(0,T.a)(this.reduxStore.getState().filters,A,this.conf.field);if($.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ce=>{this.render(ce,!0)});else{const ce=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ce)}}else this.render($)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,k){if(x.loading)return;const R=this.conf.field,A=k?x:x.results;let M=[];A&&A.facets&&A.facets[R]&&(M=A.facets[R]);const $=this.getActiveFacets(R);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===x.keyword&&this.stickyFacets&&$.length!==0?M=this.stickyFacets:(this.keyword=x.keyword,this.stickyFacets=M)),this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):N()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("input");for(let ve=0;ve<ce.length;ve++){let ke=ce[ve];ke.checked=$.indexOf(ke.value)!==-1,ke.onchange=De=>{this.setFilter(De.target.value,De.target.checked)}}}getActiveFacets(x){let k=[];const R=this.reduxStore.getState().filters.activeFacets;if(R[x])for(let A in R[x])k.push(A);return k}updateCheckboxStates(x){const k=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let R=0;R<k.length;R++){let A=k[R];A.checked=x.indexOf(A.value)!==-1}}}var j=n(4278),D=n.n(j),L=n(3923),V=n(2009),J=n.n(V);class oe{constructor(x,k,R,A){function M(te,re){let ce=!0;return te&&re.forEach(ve=>{var ke;(ke=te[ve])&&Object.keys(ke).length!==0&&(ce=!1)}),ce}this.client=x,this.reduxStore=k,this.conf=R;var $=["component.loadMore","component.pagination","component.sortby"];const G=this.conf.template_subHierarchicalFacetsTemplate||J();(0,L.bp)("subHierarchicalFacetsTemplate",G),(0,L.g3)("validateOpenState",function(te){return k.getState().filters.openedHierarchicalFacetGroups.indexOf(te)===-1}),(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"search",te=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(te.loading||$.indexOf(te.callBy)>-1))if(M(re,this.conf.fields)||!te.results.hits.length)this.render(te);else{var ce=(0,T.a)(this.reduxStore.getState().filters,A,this.conf.fields);if(this.conf.fields.indexOf(te.callBy)===-1)x.fetchCustomApi(this.conf.field,ce,ke=>{this.render(ke,!0)});else{var ve=document.getElementById(this.conf.containerId);this._updateCheckBoxes(ve,this.getActiveFacets(this.conf.fields,this.conf.containerId),!1,this.reduxStore.getState().filters.indeterminateHierarchicalFacets)}}})}setFilter(x,k){this.reduxStore.dispatch((0,C.Ni)(k,this.conf.containerId,this.conf.fields,x,!0))}render(x,k){if(x.loading)return;const R=this.conf.fields,A=k?x:x.results;let M=[];A&&A.hierarchicalFacets&&A.hierarchicalFacets[R[0]]&&(M=A.hierarchicalFacets[R[0]],M=M.map(ve=>(ve.field=ve.field.replace("hierarchical_facet.",""),ve)));const $=this.getActiveFacets(R,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):D()(G),this.renderedHtml===te&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te,this._updateCheckBoxes(re,$,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ce=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let ve=0;ve<ce.length;ve++)ce[ve].addEventListener("click",()=>{ce[ve].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ce[ve].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,k){let R=[];const A=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(A[k]&&A[k][M])for(let $ in A[k][M])R.push($)}),R}_toggleFacetGroupOpenState(x){const k=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,R=k.indexOf(x);R===-1?k.push(x):k.splice(R,1)}_updateCheckBoxes(x,k,R,A){const M=x.getElementsByTagName("input");for(let $=0;$<M.length;$++){let G=M[$];G.checked=k.indexOf(G.value)!==-1,G.indeterminate=A.indexOf(G.value)>-1,R&&(G.onchange=te=>{this.setFilter(te.target.value,te.target.getAttribute("data-field"))})}}}var ne=n(1990),Y=n(9369),W=n(3816),X=n(5756),ue=n(1944),xe=n(4245),Ae=n.n(xe);class Oe{constructor(x,k,R){this.client=x,this.conf=R,this.reduxStore=k,(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),k=x.search.results.page||1,R=this.client.getSettings().paging.pageSize,A=x.search.results.total_hits||0,M=Math.ceil(A/R),$=function(ve,ke){if(!ke||ke<2||!ve||ve>ke)return null;for(var De=[],Ue=0;Ue<ke;Ue++)De.push(Ue+1);if(ke<=9)return De;if(ke>9&&ve<7)return De.slice(0,9);if(ke>9&&ve>=ke-3)return De.slice(ke-9);var bt=De.indexOf(ve);return bt-4>=0&&bt+5<=De.length?De.slice(bt-4,bt+5):null}(k,M),G={currentPage:k,lastPage:$?$[$.length-1]:0,totalPages:M,pages:$};let te;if(te=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?d().compile(this.conf.template)(G):Ae()(G),this.renderedHtml===te)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=te,this.renderedHtml=te;const ce=re.getElementsByTagName("button");for(let ve=0;ve<ce.length;ve++)ce[ve].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const k=x.target;let R=null;k.getAttribute("data-page")==="previous"?R=this.reduxStore.getState().pagination.page-1:k.getAttribute("data-page")==="next"?R=(this.reduxStore.getState().pagination.page||1)+1:R=parseInt(k.getAttribute("data-page"),10),this.reduxStore.dispatch((0,X.I)(this.client,R,null,this.reduxStore));const A=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ue.EF)(this.client,A,M,null,null,this.reduxStore,null,"component.pagination"))}}var Ce=n(8505),He=n.n(Ce),Fe=n(6148),Ke=n(6993),Me=n(4903);const We=40,z=38,H=13,se=8,de=46;class we{constructor(x,k,R,A,M){this.client=x,this.reduxStore=k,this.conf=R,this.matchAllQuery=A,this.minLengthToShowResults=R.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const $=R.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:$})),R.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",G=>{G.setSearchFieldValue&&this.updateValueOnAllBoundFields(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdateBoundField(G))):(0,l.A)(R.containerId)&&((0,a.G)(this.reduxStore,"keyword",G=>{G.searchFieldContainerId!==this.conf.containerId&&G.searchFieldContainerId!==null||this.render(G.value)}),(0,a.G)(this.reduxStore,"autocomplete",G=>this.onAutocompleteUpdate(G)))}updateValueOnAllBoundFields(x){for(var k=0;k<this.boundFields.length;k++)this.boundFields[k].value=x}onAutocompleteUpdate(x){if((x.suggestions.length>0||x.customFields.length>0)&&x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null&&x.setSuggestionToSearchField){const k=(x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex]).value;this.render(k)}else x.activeSuggestionIndex===null&&this.render(this.reduxStore.getState().keyword.value)}onAutocompleteUpdateBoundField(x){if(x.setSuggestionToSearchField)if(x.activeSuggestionIndex!==null){const k=x.suggestions[x.activeSuggestionIndex]||x.customFields[x.activeSuggestionIndex];if(!k)return;const R=k.value;this.updateValueOnAllBoundFields(R)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,k,R){R||this.reduxStore.dispatch((0,Fe.dC)());let A=k;A===""&&this.matchAllQuery&&(A=Rt),A.indexOf(Kn)!==0&&this.reduxStore.dispatch((0,X.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(A,!1,R,this.conf.fieldForInstantRedirect,this.reduxStore.getState().configuration.fieldForInstantRedirect)}redirectOrSearch(x){const k=this.reduxStore.getState().search.searchResultsPageUrl;k&&this.conf.ignoreSearchResultsPageUrl!==!0&&x&&x.length>0?(0,Me.lG)(k,x):this.executeSearch(this.client,x,!1)}addEventListenersToField(x){x.oninput=k=>this.oninput(k),x.onkeypress=k=>this.onkeypress(k),x.onkeyup=k=>this.onkeyup(k),x.onfocus=k=>this.onfocus(k),x.onblur=k=>setTimeout(()=>this.onblur(),200)}handleAutoFocus(x){this.conf.autofocus!==!1&&this.firstRenderDone===!1&&(x.focus(),this.firstRenderDone=!0)}handleSubmitKeyword(x){const k=this.reduxStore;x===""&&this.matchAllQuery&&(x=Rt),k.dispatch((0,Fe.dC)()),k.dispatch((0,Ke.Ai)(x,!0,null,!1)),this.redirectOrSearch(x)}render(x){const k=document.getElementById(this.conf.containerId);k.querySelector("input")?x!==null&&x!==Rt&&k.querySelector("input").value!==x&&(k.querySelector("input").value=x):(this.conf.precompiledTemplate?k.innerHTML=this.conf.precompiledTemplate(this.conf):this.conf.template?k.innerHTML=d().compile(this.conf.template)(this.conf):k.innerHTML=He()(this.conf),this.field=k.querySelector("input"),x!==Rt&&(this.field.value=x),this.addEventListenersToField(this.field),k.querySelector("button")&&(k.querySelector("button").onclick=()=>{let R=this.field.value;this.handleSubmitKeyword(R)}),k.querySelector("form")&&(k.querySelector("form").onsubmit=R=>R.preventDefault()),this.handleAutoFocus(this.field))}bindContainer(){this.boundFields=document.querySelectorAll(this.conf.selectorToBind);for(var x=0;x<this.boundFields.length;x++)this.addEventListenersToField(this.boundFields[x]),this.boundFields[x].form&&(this.boundFields[x].form.onsubmit=k=>{k.preventDefault()});if(this.conf.buttonSelector&&document.querySelector(this.conf.buttonSelector)){const k=document.querySelector(this.conf.buttonSelector);k.type==="submit"&&(k.type="button"),k.onclick=()=>{let R=this.boundFields[0].value;this.handleSubmitKeyword(R)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const k=this.reduxStore;let R=x.target.value;R===""&&this.matchAllQuery&&(R=Rt),x.keyCode!==se&&x.keyCode!==de||k.dispatch((0,Fe.XD)(null,!1));const A=this.conf.ignoreAutocomplete===!0;k.dispatch((0,Ke.Ai)(R,A,this.conf.containerId)),k.dispatch((0,Fe.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,R,!0)}onkeyup(x){const k=this.reduxStore;x.keyCode===We?k.dispatch((0,Fe.C0)(Fe.Jd)):x.keyCode===z&&k.dispatch((0,Fe.C0)(Fe.il))}onkeypress(x){if(x.keyCode===H){const k=x.target.value;this.handleSubmitKeyword(k)}}onfocus(x){x.target.value===""&&(this.conf.onfocusAutocompleteMatchAllQuery?this.reduxStore.dispatch((0,Ke.Ai)(Rt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Kn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Fe.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Fe.dC)())}}var Se=n(6351),Re=n(6873),me=n.n(Re),ye=n(303),be=n.n(ye),Be=n(2123),Q=n.n(Be),le=n(4111),ie=n.n(le);class fe{constructor(x,k,R){this.client=x,this.conf=R,this.reduxStore=k;const A=this.conf.template_resultcount||Q(),M=this.conf.template_image||ie();(0,L.bp)("numberOfResultsTemplate",A),(0,L.bp)("searchResultImageTemplate",M),(0,L.g3)("removeTrailingQueriesFromUrl",G=>{if(G)return G.replace(/\?.*$/,"")});const $=this.conf.categorySelectionFunction||L.GK;(0,L.g3)("selectCategory",G=>$(G,this.conf.categoryAliases)),(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,k=x.results||{};let R;if(k.resultcount=k.hits&&this.conf.showNumberOfResults!==!1,k.keyword=x.keyword,R=k.hits&&k.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(k):this.conf.template_noresults?d().compile(this.conf.template_noresults)(k):be()(k):this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?d().compile(this.conf.template)(k):me()(k),this.renderedHtml===R)return;const A=document.getElementById(this.conf.containerId);A.innerHTML=R,this.renderedHtml=R,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=A.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,M,k)}}function O(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let m={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function b(pe){m=pe}const F=/[&<>"']/,U=new RegExp(F.source,"g"),K=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ee=new RegExp(K.source,"g"),Te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ve=pe=>Te[pe];function Ie(pe,x){if(x){if(F.test(pe))return pe.replace(U,Ve)}else if(K.test(pe))return pe.replace(ee,Ve);return pe}const Ge=/(^|[^\[])\^/g;function ge(pe,x){let k=typeof pe=="string"?pe:pe.source;x=x||"";const R={replace:(A,M)=>{let $=typeof M=="string"?M:M.source;return $=$.replace(Ge,"$1"),k=k.replace(A,$),R},getRegex:()=>new RegExp(k,x)};return R}function Qt(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const Ft={exec:()=>null};function Ot(pe,x){const k=pe.replace(/\|/g,(A,M,$)=>{let G=!1,te=M;for(;--te>=0&&$[te]==="\\";)G=!G;return G?"|":" |"}).split(/ \|/);let R=0;if(k[0].trim()||k.shift(),k.length>0&&!k[k.length-1].trim()&&k.pop(),x)if(k.length>x)k.splice(x);else for(;k.length<x;)k.push("");for(;R<k.length;R++)k[R]=k[R].trim().replace(/\\\|/g,"|");return k}function At(pe,x,k){const R=pe.length;if(R===0)return"";let A=0;for(;A<R;){const M=pe.charAt(R-A-1);if(M!==x||k){if(M===x||!k)break;A++}else A++}return pe.slice(0,R-A)}function Zt(pe,x,k,R){const A=x.href,M=x.title?Ie(x.title):null,$=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){R.state.inLink=!0;const G={type:"link",raw:k,href:A,title:M,text:$,tokens:R.inlineTokens($)};return R.state.inLink=!1,G}return{type:"image",raw:k,href:A,title:M,text:Ie($)}}class Bt{constructor(x){ze(this,"options");ze(this,"rules");ze(this,"lexer");this.options=x||m}space(x){const k=this.rules.block.newline.exec(x);if(k&&k[0].length>0)return{type:"space",raw:k[0]}}code(x){const k=this.rules.block.code.exec(x);if(k){const R=k[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:k[0],codeBlockStyle:"indented",text:this.options.pedantic?R:At(R,`
82
+ `)}}}fences(x){const k=this.rules.block.fences.exec(x);if(k){const R=k[0],A=function(M,$){const G=M.match(/^(\s+)(?:```)/);if(G===null)return $;const te=G[1];return $.split(`
83
83
  `).map(re=>{const ce=re.match(/^\s+/);if(ce===null)return re;const[ve]=ce;return ve.length>=te.length?re.slice(te.length):re}).join(`
84
- `)}(T,E[3]||"");return{type:"code",raw:T,lang:E[2]?E[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):E[2],text:R}}}heading(x){const E=this.rules.block.heading.exec(x);if(E){let T=E[2].trim();if(/#$/.test(T)){const R=Rt(T,"#");this.options.pedantic?T=R.trim():R&&!/ $/.test(R)||(T=R.trim())}return{type:"heading",raw:E[0],depth:E[1].length,text:T,tokens:this.lexer.inline(T)}}}hr(x){const E=this.rules.block.hr.exec(x);if(E)return{type:"hr",raw:Rt(E[0],`
85
- `)}}blockquote(x){const E=this.rules.block.blockquote.exec(x);if(E){let T=Rt(E[0],`
84
+ `)}(R,k[3]||"");return{type:"code",raw:R,lang:k[2]?k[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):k[2],text:A}}}heading(x){const k=this.rules.block.heading.exec(x);if(k){let R=k[2].trim();if(/#$/.test(R)){const A=At(R,"#");this.options.pedantic?R=A.trim():A&&!/ $/.test(A)||(R=A.trim())}return{type:"heading",raw:k[0],depth:k[1].length,text:R,tokens:this.lexer.inline(R)}}}hr(x){const k=this.rules.block.hr.exec(x);if(k)return{type:"hr",raw:At(k[0],`
85
+ `)}}blockquote(x){const k=this.rules.block.blockquote.exec(x);if(k){let R=At(k[0],`
86
86
  `).split(`
87
- `),R="",M="";const $=[];for(;T.length>0;){let G=!1;const te=[];let re;for(re=0;re<T.length;re++)if(/^ {0,3}>/.test(T[re]))te.push(T[re]),G=!0;else{if(G)break;te.push(T[re])}T=T.slice(re);const ce=te.join(`
87
+ `),A="",M="";const $=[];for(;R.length>0;){let G=!1;const te=[];let re;for(re=0;re<R.length;re++)if(/^ {0,3}>/.test(R[re]))te.push(R[re]),G=!0;else{if(G)break;te.push(R[re])}R=R.slice(re);const ce=te.join(`
88
88
  `),ve=ce.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
89
- $1`).replace(/^ {0,3}>[ \t]?/gm,"");R=R?`${R}
89
+ $1`).replace(/^ {0,3}>[ \t]?/gm,"");A=A?`${A}
90
90
  ${ce}`:ce,M=M?`${M}
91
- ${ve}`:ve;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(ve,$,!0),this.lexer.state.top=ke,T.length===0)break;const De=$[$.length-1];if((De==null?void 0:De.type)==="code")break;if((De==null?void 0:De.type)==="blockquote"){const Ue=De,St=Ue.raw+`
92
- `+T.join(`
93
- `),bt=this.blockquote(St);$[$.length-1]=bt,R=R.substring(0,R.length-Ue.raw.length)+bt.raw,M=M.substring(0,M.length-Ue.text.length)+bt.text;break}if((De==null?void 0:De.type)==="list"){const Ue=De,St=Ue.raw+`
94
- `+T.join(`
95
- `),bt=this.list(St);$[$.length-1]=bt,R=R.substring(0,R.length-De.raw.length)+bt.raw,M=M.substring(0,M.length-Ue.raw.length)+bt.raw,T=St.substring($[$.length-1].raw.length).split(`
96
- `)}}return{type:"blockquote",raw:R,tokens:$,text:M}}}list(x){let E=this.rules.block.list.exec(x);if(E){let T=E[1].trim();const R=T.length>1,M={type:"list",raw:"",ordered:R,start:R?+T.slice(0,-1):"",loose:!1,items:[]};T=R?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=R?T:"[*+-]");const $=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);let G=!1;for(;x;){let te=!1,re="",ce="";if(!(E=$.exec(x))||this.rules.block.hr.test(x))break;re=E[0],x=x.substring(re.length);let ve=E[2].split(`
91
+ ${ve}`:ve;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(ve,$,!0),this.lexer.state.top=ke,R.length===0)break;const De=$[$.length-1];if((De==null?void 0:De.type)==="code")break;if((De==null?void 0:De.type)==="blockquote"){const Ue=De,bt=Ue.raw+`
92
+ `+R.join(`
93
+ `),wt=this.blockquote(bt);$[$.length-1]=wt,A=A.substring(0,A.length-Ue.raw.length)+wt.raw,M=M.substring(0,M.length-Ue.text.length)+wt.text;break}if((De==null?void 0:De.type)==="list"){const Ue=De,bt=Ue.raw+`
94
+ `+R.join(`
95
+ `),wt=this.list(bt);$[$.length-1]=wt,A=A.substring(0,A.length-De.raw.length)+wt.raw,M=M.substring(0,M.length-Ue.raw.length)+wt.raw,R=bt.substring($[$.length-1].raw.length).split(`
96
+ `)}}return{type:"blockquote",raw:A,tokens:$,text:M}}}list(x){let k=this.rules.block.list.exec(x);if(k){let R=k[1].trim();const A=R.length>1,M={type:"list",raw:"",ordered:A,start:A?+R.slice(0,-1):"",loose:!1,items:[]};R=A?`\\d{1,9}\\${R.slice(-1)}`:`\\${R}`,this.options.pedantic&&(R=A?R:"[*+-]");const $=new RegExp(`^( {0,3}${R})((?:[ ][^\\n]*)?(?:\\n|$))`);let G=!1;for(;x;){let te=!1,re="",ce="";if(!(k=$.exec(x))||this.rules.block.hr.test(x))break;re=k[0],x=x.substring(re.length);let ve=k[2].split(`
97
97
  `,1)[0].replace(/^\t+/,Ur=>" ".repeat(3*Ur.length)),ke=x.split(`
98
- `,1)[0],De=!ve.trim(),Ue=0;if(this.options.pedantic?(Ue=2,ce=ve.trimStart()):De?Ue=E[1].length+1:(Ue=E[2].search(/[^ ]/),Ue=Ue>4?1:Ue,ce=ve.slice(Ue),Ue+=E[1].length),De&&/^[ \t]*$/.test(ke)&&(re+=ke+`
99
- `,x=x.substring(ke.length+1),te=!0),!te){const Ur=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),so=new RegExp(`^ {0,${Math.min(3,Ue-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ao=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:\`\`\`|~~~)`),lo=new RegExp(`^ {0,${Math.min(3,Ue-1)}}#`),Il=new RegExp(`^ {0,${Math.min(3,Ue-1)}}<[a-z].*>`,"i");for(;x;){const $r=x.split(`
100
- `,1)[0];let bn;if(ke=$r,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),bn=ke):bn=ke.replace(/\t/g," "),ao.test(ke)||lo.test(ke)||Il.test(ke)||Ur.test(ke)||so.test(ke))break;if(bn.search(/[^ ]/)>=Ue||!ke.trim())ce+=`
101
- `+bn.slice(Ue);else{if(De||ve.replace(/\t/g," ").search(/[^ ]/)>=4||ao.test(ve)||lo.test(ve)||so.test(ve))break;ce+=`
98
+ `,1)[0],De=!ve.trim(),Ue=0;if(this.options.pedantic?(Ue=2,ce=ve.trimStart()):De?Ue=k[1].length+1:(Ue=k[2].search(/[^ ]/),Ue=Ue>4?1:Ue,ce=ve.slice(Ue),Ue+=k[1].length),De&&/^[ \t]*$/.test(ke)&&(re+=ke+`
99
+ `,x=x.substring(ke.length+1),te=!0),!te){const Ur=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),os=new RegExp(`^ {0,${Math.min(3,Ue-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),as=new RegExp(`^ {0,${Math.min(3,Ue-1)}}(?:\`\`\`|~~~)`),ls=new RegExp(`^ {0,${Math.min(3,Ue-1)}}#`),Il=new RegExp(`^ {0,${Math.min(3,Ue-1)}}<[a-z].*>`,"i");for(;x;){const $r=x.split(`
100
+ `,1)[0];let wn;if(ke=$r,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),wn=ke):wn=ke.replace(/\t/g," "),as.test(ke)||ls.test(ke)||Il.test(ke)||Ur.test(ke)||os.test(ke))break;if(wn.search(/[^ ]/)>=Ue||!ke.trim())ce+=`
101
+ `+wn.slice(Ue);else{if(De||ve.replace(/\t/g," ").search(/[^ ]/)>=4||as.test(ve)||ls.test(ve)||os.test(ve))break;ce+=`
102
102
  `+ke}De||ke.trim()||(De=!0),re+=$r+`
103
- `,x=x.substring($r.length+1),ve=bn.slice(Ue)}}M.loose||(G?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(G=!0));let St,bt=null;this.options.gfm&&(bt=/^\[[ xX]\] /.exec(ce),bt&&(St=bt[0]!=="[ ] ",ce=ce.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!bt,checked:St,loose:!1,text:ce,tokens:[]}),M.raw+=re}M.items[M.items.length-1].raw=M.items[M.items.length-1].raw.trimEnd(),M.items[M.items.length-1].text=M.items[M.items.length-1].text.trimEnd(),M.raw=M.raw.trimEnd();for(let te=0;te<M.items.length;te++)if(this.lexer.state.top=!1,M.items[te].tokens=this.lexer.blockTokens(M.items[te].text,[]),!M.loose){const re=M.items[te].tokens.filter(ve=>ve.type==="space"),ce=re.length>0&&re.some(ve=>/\n.*\n/.test(ve.raw));M.loose=ce}if(M.loose)for(let te=0;te<M.items.length;te++)M.items[te].loose=!0;return M}}html(x){const E=this.rules.block.html.exec(x);if(E)return{type:"html",block:!0,raw:E[0],pre:E[1]==="pre"||E[1]==="script"||E[1]==="style",text:E[0]}}def(x){const E=this.rules.block.def.exec(x);if(E){const T=E[1].toLowerCase().replace(/\s+/g," "),R=E[2]?E[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",M=E[3]?E[3].substring(1,E[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):E[3];return{type:"def",tag:T,raw:E[0],href:R,title:M}}}table(x){const E=this.rules.block.table.exec(x);if(!E||!/[:|]/.test(E[2]))return;const T=Ot(E[1]),R=E[2].replace(/^\||\| *$/g,"").split("|"),M=E[3]&&E[3].trim()?E[3].replace(/\n[ \t]*$/,"").split(`
104
- `):[],$={type:"table",raw:E[0],header:[],align:[],rows:[]};if(T.length===R.length){for(const G of R)/^ *-+: *$/.test(G)?$.align.push("right"):/^ *:-+: *$/.test(G)?$.align.push("center"):/^ *:-+ *$/.test(G)?$.align.push("left"):$.align.push(null);for(let G=0;G<T.length;G++)$.header.push({text:T[G],tokens:this.lexer.inline(T[G]),header:!0,align:$.align[G]});for(const G of M)$.rows.push(Ot(G,$.header.length).map((te,re)=>({text:te,tokens:this.lexer.inline(te),header:!1,align:$.align[re]})));return $}}lheading(x){const E=this.rules.block.lheading.exec(x);if(E)return{type:"heading",raw:E[0],depth:E[2].charAt(0)==="="?1:2,text:E[1],tokens:this.lexer.inline(E[1])}}paragraph(x){const E=this.rules.block.paragraph.exec(x);if(E){const T=E[1].charAt(E[1].length-1)===`
105
- `?E[1].slice(0,-1):E[1];return{type:"paragraph",raw:E[0],text:T,tokens:this.lexer.inline(T)}}}text(x){const E=this.rules.block.text.exec(x);if(E)return{type:"text",raw:E[0],text:E[0],tokens:this.lexer.inline(E[0])}}escape(x){const E=this.rules.inline.escape.exec(x);if(E)return{type:"escape",raw:E[0],text:Ie(E[1])}}tag(x){const E=this.rules.inline.tag.exec(x);if(E)return!this.lexer.state.inLink&&/^<a /i.test(E[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(E[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(E[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(E[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:E[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:E[0]}}link(x){const E=this.rules.inline.link.exec(x);if(E){const T=E[2].trim();if(!this.options.pedantic&&/^</.test(T)){if(!/>$/.test(T))return;const $=Rt(T.slice(0,-1),"\\");if((T.length-$.length)%2==0)return}else{const $=function(G,te){if(G.indexOf(te[1])===-1)return-1;let re=0;for(let ce=0;ce<G.length;ce++)if(G[ce]==="\\")ce++;else if(G[ce]===te[0])re++;else if(G[ce]===te[1]&&(re--,re<0))return ce;return-1}(E[2],"()");if($>-1){const G=(E[0].indexOf("!")===0?5:4)+E[1].length+$;E[2]=E[2].substring(0,$),E[0]=E[0].substring(0,G).trim(),E[3]=""}}let R=E[2],M="";if(this.options.pedantic){const $=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(R);$&&(R=$[1],M=$[3])}else M=E[3]?E[3].slice(1,-1):"";return R=R.trim(),/^</.test(R)&&(R=this.options.pedantic&&!/>$/.test(T)?R.slice(1):R.slice(1,-1)),Qt(E,{href:R&&R.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},E[0],this.lexer)}}reflink(x,E){let T;if((T=this.rules.inline.reflink.exec(x))||(T=this.rules.inline.nolink.exec(x))){const R=E[(T[2]||T[1]).replace(/\s+/g," ").toLowerCase()];if(!R){const M=T[0].charAt(0);return{type:"text",raw:M,text:M}}return Qt(T,R,T[0],this.lexer)}}emStrong(x,E,T=""){let R=this.rules.inline.emStrongLDelim.exec(x);if(R&&!(R[3]&&T.match(/[\p{L}\p{N}]/u))&&(!(R[1]||R[2])||!T||this.rules.inline.punctuation.exec(T))){const M=[...R[0]].length-1;let $,G,te=M,re=0;const ce=R[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ce.lastIndex=0,E=E.slice(-1*x.length+M);(R=ce.exec(E))!=null;){if($=R[1]||R[2]||R[3]||R[4]||R[5]||R[6],!$)continue;if(G=[...$].length,R[3]||R[4]){te+=G;continue}if((R[5]||R[6])&&M%3&&!((M+G)%3)){re+=G;continue}if(te-=G,te>0)continue;G=Math.min(G,G+te+re);const ve=[...R[0]][0].length,ke=x.slice(0,M+R.index+ve+G);if(Math.min(M,G)%2){const Ue=ke.slice(1,-1);return{type:"em",raw:ke,text:Ue,tokens:this.lexer.inlineTokens(Ue)}}const De=ke.slice(2,-2);return{type:"strong",raw:ke,text:De,tokens:this.lexer.inlineTokens(De)}}}}codespan(x){const E=this.rules.inline.code.exec(x);if(E){let T=E[2].replace(/\n/g," ");const R=/[^ ]/.test(T),M=/^ /.test(T)&&/ $/.test(T);return R&&M&&(T=T.substring(1,T.length-1)),T=Ie(T,!0),{type:"codespan",raw:E[0],text:T}}}br(x){const E=this.rules.inline.br.exec(x);if(E)return{type:"br",raw:E[0]}}del(x){const E=this.rules.inline.del.exec(x);if(E)return{type:"del",raw:E[0],text:E[2],tokens:this.lexer.inlineTokens(E[2])}}autolink(x){const E=this.rules.inline.autolink.exec(x);if(E){let T,R;return E[2]==="@"?(T=Ie(E[1]),R="mailto:"+T):(T=Ie(E[1]),R=T),{type:"link",raw:E[0],text:T,href:R,tokens:[{type:"text",raw:T,text:T}]}}}url(x){var T;let E;if(E=this.rules.inline.url.exec(x)){let R,M;if(E[2]==="@")R=Ie(E[0]),M="mailto:"+R;else{let $;do $=E[0],E[0]=((T=this.rules.inline._backpedal.exec(E[0]))==null?void 0:T[0])??"";while($!==E[0]);R=Ie(E[0]),M=E[1]==="www."?"http://"+E[0]:E[0]}return{type:"link",raw:E[0],text:R,href:M,tokens:[{type:"text",raw:R,text:R}]}}}inlineText(x){const E=this.rules.inline.text.exec(x);if(E){let T;return T=this.lexer.state.inRawBlock?E[0]:Ie(E[0]),{type:"text",raw:E[0],text:T}}}}const Dt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gn=/(?:[*+-]|\d{1,9}[.)])/,Un=ge(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,en=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Nr=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",en).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Mr=ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gn).getRegex(),Ht="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Br=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",tn).replace("tag",Ht).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$n=ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),yn={blockquote:ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$n).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Nr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Dt,html:Br,lheading:Un,list:Mr,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$n,table:Ft,text:/^[^\n]+/},qn=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),B={...yn,table:qn,paragraph:ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex()},ae={...yn,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ft,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(Xt).replace("hr",Dt).replace("heading",` *#{1,6} *[^
106
- ]`).replace("lheading",Un).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},he=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ee=/^( {2,}|\\)\n(?!\s*$)/,je="\\p{P}\\p{S}",$e=ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,je).getRegex(),Ne=ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,je).getRegex(),Le=ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,je).getRegex(),tt=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,je).getRegex(),Je=ge(/\\([punct])/,"gu").replace(/punct/g,je).getRegex(),Ye=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ct=ge(tn).replace("(?:-->|$)","-->").getRegex(),Lt=ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,st=ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nn=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",yt).replace("ref",en).getRegex(),Vn=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",en).getRegex(),vn={_backpedal:Ft,anyPunctuation:Je,autolink:Ye,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Ee,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ft,emStrongLDelim:Ne,emStrongRDelimAst:Le,emStrongRDelimUnd:tt,escape:he,link:st,nolink:Vn,punctuation:$e,reflink:nn,reflinkSearch:ge("reflink|nolink(?!\\()","g").replace("reflink",nn).replace("nolink",Vn).getRegex(),tag:Lt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ft},Sl={...vn,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",yt).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt).getRegex()},Dr={...vn,escape:ge(he).replace("])","~|])").getRegex(),url:ge(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bl={...Dr,br:ge(Ee).replace("{2,}","*").getRegex(),text:ge(Dr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zn={normal:yn,gfm:B,pedantic:ae},xn={normal:vn,gfm:Dr,breaks:bl,pedantic:Sl};class vt{constructor(x){ze(this,"tokens");ze(this,"options");ze(this,"state");ze(this,"tokenizer");ze(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||m,this.options.tokenizer=this.options.tokenizer||new Bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const E={block:zn.normal,inline:xn.normal};this.options.pedantic?(E.block=zn.pedantic,E.inline=xn.pedantic):this.options.gfm&&(E.block=zn.gfm,this.options.breaks?E.inline=xn.breaks:E.inline=xn.gfm),this.tokenizer.rules=E}static get rules(){return{block:zn,inline:xn}}static lex(x,E){return new vt(E).lex(x)}static lexInline(x,E){return new vt(E).inlineTokens(x)}lex(x){x=x.replace(/\r\n|\r/g,`
107
- `),this.blockTokens(x,this.tokens);for(let E=0;E<this.inlineQueue.length;E++){const T=this.inlineQueue[E];this.inlineTokens(T.src,T.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,E=[],T=!1){let R,M,$;for(this.options.pedantic&&(x=x.replace(/\t/g," ").replace(/^ +$/gm,""));x;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(G=>!!(R=G.call({lexer:this},x,E))&&(x=x.substring(R.raw.length),E.push(R),!0))))if(R=this.tokenizer.space(x))x=x.substring(R.raw.length),R.raw.length===1&&E.length>0?E[E.length-1].raw+=`
108
- `:E.push(R);else if(R=this.tokenizer.code(x))x=x.substring(R.raw.length),M=E[E.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?E.push(R):(M.raw+=`
109
- `+R.raw,M.text+=`
110
- `+R.text,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(R=this.tokenizer.fences(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.heading(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.hr(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.blockquote(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.list(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.html(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.def(x))x=x.substring(R.raw.length),M=E[E.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?this.tokens.links[R.tag]||(this.tokens.links[R.tag]={href:R.href,title:R.title}):(M.raw+=`
111
- `+R.raw,M.text+=`
112
- `+R.raw,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(R=this.tokenizer.table(x))x=x.substring(R.raw.length),E.push(R);else if(R=this.tokenizer.lheading(x))x=x.substring(R.raw.length),E.push(R);else{if($=x,this.options.extensions&&this.options.extensions.startBlock){let G=1/0;const te=x.slice(1);let re;this.options.extensions.startBlock.forEach(ce=>{re=ce.call({lexer:this},te),typeof re=="number"&&re>=0&&(G=Math.min(G,re))}),G<1/0&&G>=0&&($=x.substring(0,G+1))}if(this.state.top&&(R=this.tokenizer.paragraph($)))M=E[E.length-1],T&&(M==null?void 0:M.type)==="paragraph"?(M.raw+=`
113
- `+R.raw,M.text+=`
114
- `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):E.push(R),T=$.length!==x.length,x=x.substring(R.raw.length);else if(R=this.tokenizer.text(x))x=x.substring(R.raw.length),M=E[E.length-1],M&&M.type==="text"?(M.raw+=`
115
- `+R.raw,M.text+=`
116
- `+R.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):E.push(R);else if(x){const G="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(G);break}throw new Error(G)}}return this.state.top=!0,E}inline(x,E=[]){return this.inlineQueue.push({src:x,tokens:E}),E}inlineTokens(x,E=[]){let T,R,M,$,G,te,re=x;if(this.tokens.links){const ce=Object.keys(this.tokens.links);if(ce.length>0)for(;($=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ce.includes($[0].slice($[0].lastIndexOf("[")+1,-1))&&(re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($=this.tokenizer.rules.inline.blockSkip.exec(re))!=null;)re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;($=this.tokenizer.rules.inline.anyPunctuation.exec(re))!=null;)re=re.slice(0,$.index)+"++"+re.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;x;)if(G||(te=""),G=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ce=>!!(T=ce.call({lexer:this},x,E))&&(x=x.substring(T.raw.length),E.push(T),!0))))if(T=this.tokenizer.escape(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.tag(x))x=x.substring(T.raw.length),R=E[E.length-1],R&&T.type==="text"&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(T=this.tokenizer.link(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(T.raw.length),R=E[E.length-1],R&&T.type==="text"&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(T=this.tokenizer.emStrong(x,re,te))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.codespan(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.br(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.del(x))x=x.substring(T.raw.length),E.push(T);else if(T=this.tokenizer.autolink(x))x=x.substring(T.raw.length),E.push(T);else if(this.state.inLink||!(T=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ce=1/0;const ve=x.slice(1);let ke;this.options.extensions.startInline.forEach(De=>{ke=De.call({lexer:this},ve),typeof ke=="number"&&ke>=0&&(ce=Math.min(ce,ke))}),ce<1/0&&ce>=0&&(M=x.substring(0,ce+1))}if(T=this.tokenizer.inlineText(M))x=x.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(te=T.raw.slice(-1)),G=!0,R=E[E.length-1],R&&R.type==="text"?(R.raw+=T.raw,R.text+=T.text):E.push(T);else if(x){const ce="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ce);break}throw new Error(ce)}}else x=x.substring(T.raw.length),E.push(T);return E}}class Gn{constructor(x){ze(this,"options");ze(this,"parser");this.options=x||m}space(x){return""}code({text:x,lang:E,escaped:T}){var $;const R=($=(E||"").match(/^\S*/))==null?void 0:$[0],M=x.replace(/\n$/,"")+`
117
- `;return R?'<pre><code class="language-'+Ie(R)+'">'+(T?M:Ie(M,!0))+`</code></pre>
118
- `:"<pre><code>"+(T?M:Ie(M,!0))+`</code></pre>
103
+ `,x=x.substring($r.length+1),ve=wn.slice(Ue)}}M.loose||(G?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(G=!0));let bt,wt=null;this.options.gfm&&(wt=/^\[[ xX]\] /.exec(ce),wt&&(bt=wt[0]!=="[ ] ",ce=ce.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!wt,checked:bt,loose:!1,text:ce,tokens:[]}),M.raw+=re}M.items[M.items.length-1].raw=M.items[M.items.length-1].raw.trimEnd(),M.items[M.items.length-1].text=M.items[M.items.length-1].text.trimEnd(),M.raw=M.raw.trimEnd();for(let te=0;te<M.items.length;te++)if(this.lexer.state.top=!1,M.items[te].tokens=this.lexer.blockTokens(M.items[te].text,[]),!M.loose){const re=M.items[te].tokens.filter(ve=>ve.type==="space"),ce=re.length>0&&re.some(ve=>/\n.*\n/.test(ve.raw));M.loose=ce}if(M.loose)for(let te=0;te<M.items.length;te++)M.items[te].loose=!0;return M}}html(x){const k=this.rules.block.html.exec(x);if(k)return{type:"html",block:!0,raw:k[0],pre:k[1]==="pre"||k[1]==="script"||k[1]==="style",text:k[0]}}def(x){const k=this.rules.block.def.exec(x);if(k){const R=k[1].toLowerCase().replace(/\s+/g," "),A=k[2]?k[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",M=k[3]?k[3].substring(1,k[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):k[3];return{type:"def",tag:R,raw:k[0],href:A,title:M}}}table(x){const k=this.rules.block.table.exec(x);if(!k||!/[:|]/.test(k[2]))return;const R=Ot(k[1]),A=k[2].replace(/^\||\| *$/g,"").split("|"),M=k[3]&&k[3].trim()?k[3].replace(/\n[ \t]*$/,"").split(`
104
+ `):[],$={type:"table",raw:k[0],header:[],align:[],rows:[]};if(R.length===A.length){for(const G of A)/^ *-+: *$/.test(G)?$.align.push("right"):/^ *:-+: *$/.test(G)?$.align.push("center"):/^ *:-+ *$/.test(G)?$.align.push("left"):$.align.push(null);for(let G=0;G<R.length;G++)$.header.push({text:R[G],tokens:this.lexer.inline(R[G]),header:!0,align:$.align[G]});for(const G of M)$.rows.push(Ot(G,$.header.length).map((te,re)=>({text:te,tokens:this.lexer.inline(te),header:!1,align:$.align[re]})));return $}}lheading(x){const k=this.rules.block.lheading.exec(x);if(k)return{type:"heading",raw:k[0],depth:k[2].charAt(0)==="="?1:2,text:k[1],tokens:this.lexer.inline(k[1])}}paragraph(x){const k=this.rules.block.paragraph.exec(x);if(k){const R=k[1].charAt(k[1].length-1)===`
105
+ `?k[1].slice(0,-1):k[1];return{type:"paragraph",raw:k[0],text:R,tokens:this.lexer.inline(R)}}}text(x){const k=this.rules.block.text.exec(x);if(k)return{type:"text",raw:k[0],text:k[0],tokens:this.lexer.inline(k[0])}}escape(x){const k=this.rules.inline.escape.exec(x);if(k)return{type:"escape",raw:k[0],text:Ie(k[1])}}tag(x){const k=this.rules.inline.tag.exec(x);if(k)return!this.lexer.state.inLink&&/^<a /i.test(k[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(k[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(k[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(k[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:k[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:k[0]}}link(x){const k=this.rules.inline.link.exec(x);if(k){const R=k[2].trim();if(!this.options.pedantic&&/^</.test(R)){if(!/>$/.test(R))return;const $=At(R.slice(0,-1),"\\");if((R.length-$.length)%2==0)return}else{const $=function(G,te){if(G.indexOf(te[1])===-1)return-1;let re=0;for(let ce=0;ce<G.length;ce++)if(G[ce]==="\\")ce++;else if(G[ce]===te[0])re++;else if(G[ce]===te[1]&&(re--,re<0))return ce;return-1}(k[2],"()");if($>-1){const G=(k[0].indexOf("!")===0?5:4)+k[1].length+$;k[2]=k[2].substring(0,$),k[0]=k[0].substring(0,G).trim(),k[3]=""}}let A=k[2],M="";if(this.options.pedantic){const $=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(A);$&&(A=$[1],M=$[3])}else M=k[3]?k[3].slice(1,-1):"";return A=A.trim(),/^</.test(A)&&(A=this.options.pedantic&&!/>$/.test(R)?A.slice(1):A.slice(1,-1)),Zt(k,{href:A&&A.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},k[0],this.lexer)}}reflink(x,k){let R;if((R=this.rules.inline.reflink.exec(x))||(R=this.rules.inline.nolink.exec(x))){const A=k[(R[2]||R[1]).replace(/\s+/g," ").toLowerCase()];if(!A){const M=R[0].charAt(0);return{type:"text",raw:M,text:M}}return Zt(R,A,R[0],this.lexer)}}emStrong(x,k,R=""){let A=this.rules.inline.emStrongLDelim.exec(x);if(A&&!(A[3]&&R.match(/[\p{L}\p{N}]/u))&&(!(A[1]||A[2])||!R||this.rules.inline.punctuation.exec(R))){const M=[...A[0]].length-1;let $,G,te=M,re=0;const ce=A[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ce.lastIndex=0,k=k.slice(-1*x.length+M);(A=ce.exec(k))!=null;){if($=A[1]||A[2]||A[3]||A[4]||A[5]||A[6],!$)continue;if(G=[...$].length,A[3]||A[4]){te+=G;continue}if((A[5]||A[6])&&M%3&&!((M+G)%3)){re+=G;continue}if(te-=G,te>0)continue;G=Math.min(G,G+te+re);const ve=[...A[0]][0].length,ke=x.slice(0,M+A.index+ve+G);if(Math.min(M,G)%2){const Ue=ke.slice(1,-1);return{type:"em",raw:ke,text:Ue,tokens:this.lexer.inlineTokens(Ue)}}const De=ke.slice(2,-2);return{type:"strong",raw:ke,text:De,tokens:this.lexer.inlineTokens(De)}}}}codespan(x){const k=this.rules.inline.code.exec(x);if(k){let R=k[2].replace(/\n/g," ");const A=/[^ ]/.test(R),M=/^ /.test(R)&&/ $/.test(R);return A&&M&&(R=R.substring(1,R.length-1)),R=Ie(R,!0),{type:"codespan",raw:k[0],text:R}}}br(x){const k=this.rules.inline.br.exec(x);if(k)return{type:"br",raw:k[0]}}del(x){const k=this.rules.inline.del.exec(x);if(k)return{type:"del",raw:k[0],text:k[2],tokens:this.lexer.inlineTokens(k[2])}}autolink(x){const k=this.rules.inline.autolink.exec(x);if(k){let R,A;return k[2]==="@"?(R=Ie(k[1]),A="mailto:"+R):(R=Ie(k[1]),A=R),{type:"link",raw:k[0],text:R,href:A,tokens:[{type:"text",raw:R,text:R}]}}}url(x){var R;let k;if(k=this.rules.inline.url.exec(x)){let A,M;if(k[2]==="@")A=Ie(k[0]),M="mailto:"+A;else{let $;do $=k[0],k[0]=((R=this.rules.inline._backpedal.exec(k[0]))==null?void 0:R[0])??"";while($!==k[0]);A=Ie(k[0]),M=k[1]==="www."?"http://"+k[0]:k[0]}return{type:"link",raw:k[0],text:A,href:M,tokens:[{type:"text",raw:A,text:A}]}}}inlineText(x){const k=this.rules.inline.text.exec(x);if(k){let R;return R=this.lexer.state.inRawBlock?k[0]:Ie(k[0]),{type:"text",raw:k[0],text:R}}}}const Dt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gn=/(?:[*+-]|\d{1,9}[.)])/,Un=ge(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,gn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Xt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,en=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Nr=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",en).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Mr=ge(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gn).getRegex(),Ht="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",tn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Br=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",tn).replace("tag",Ht).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$n=ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),yn={blockquote:ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$n).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Nr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Dt,html:Br,lheading:Un,list:Mr,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$n,table:Ft,text:/^[^\n]+/},qn=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex(),B={...yn,table:qn,paragraph:ge(Xt).replace("hr",Dt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ht).getRegex()},ae={...yn,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",tn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ft,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(Xt).replace("hr",Dt).replace("heading",` *#{1,6} *[^
106
+ ]`).replace("lheading",Un).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},he=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ee=/^( {2,}|\\)\n(?!\s*$)/,je="\\p{P}\\p{S}",$e=ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,je).getRegex(),Ne=ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,je).getRegex(),Le=ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,je).getRegex(),tt=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,je).getRegex(),Je=ge(/\\([punct])/,"gu").replace(/punct/g,je).getRegex(),Ye=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ct=ge(tn).replace("(?:-->|$)","-->").getRegex(),Lt=ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ct).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ot=ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",yt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nn=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",yt).replace("ref",en).getRegex(),Vn=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",en).getRegex(),vn={_backpedal:Ft,anyPunctuation:Je,autolink:Ye,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Ee,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ft,emStrongLDelim:Ne,emStrongRDelimAst:Le,emStrongRDelimUnd:tt,escape:he,link:ot,nolink:Vn,punctuation:$e,reflink:nn,reflinkSearch:ge("reflink|nolink(?!\\()","g").replace("reflink",nn).replace("nolink",Vn).getRegex(),tag:Lt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Ft},bl={...vn,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",yt).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yt).getRegex()},Dr={...vn,escape:ge(he).replace("])","~|])").getRegex(),url:ge(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},wl={...Dr,br:ge(Ee).replace("{2,}","*").getRegex(),text:ge(Dr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zn={normal:yn,gfm:B,pedantic:ae},xn={normal:vn,gfm:Dr,breaks:wl,pedantic:bl};class vt{constructor(x){ze(this,"tokens");ze(this,"options");ze(this,"state");ze(this,"tokenizer");ze(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||m,this.options.tokenizer=this.options.tokenizer||new Bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const k={block:zn.normal,inline:xn.normal};this.options.pedantic?(k.block=zn.pedantic,k.inline=xn.pedantic):this.options.gfm&&(k.block=zn.gfm,this.options.breaks?k.inline=xn.breaks:k.inline=xn.gfm),this.tokenizer.rules=k}static get rules(){return{block:zn,inline:xn}}static lex(x,k){return new vt(k).lex(x)}static lexInline(x,k){return new vt(k).inlineTokens(x)}lex(x){x=x.replace(/\r\n|\r/g,`
107
+ `),this.blockTokens(x,this.tokens);for(let k=0;k<this.inlineQueue.length;k++){const R=this.inlineQueue[k];this.inlineTokens(R.src,R.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,k=[],R=!1){let A,M,$;for(this.options.pedantic&&(x=x.replace(/\t/g," ").replace(/^ +$/gm,""));x;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(G=>!!(A=G.call({lexer:this},x,k))&&(x=x.substring(A.raw.length),k.push(A),!0))))if(A=this.tokenizer.space(x))x=x.substring(A.raw.length),A.raw.length===1&&k.length>0?k[k.length-1].raw+=`
108
+ `:k.push(A);else if(A=this.tokenizer.code(x))x=x.substring(A.raw.length),M=k[k.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?k.push(A):(M.raw+=`
109
+ `+A.raw,M.text+=`
110
+ `+A.text,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(A=this.tokenizer.fences(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.heading(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.hr(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.blockquote(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.list(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.html(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.def(x))x=x.substring(A.raw.length),M=k[k.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?this.tokens.links[A.tag]||(this.tokens.links[A.tag]={href:A.href,title:A.title}):(M.raw+=`
111
+ `+A.raw,M.text+=`
112
+ `+A.raw,this.inlineQueue[this.inlineQueue.length-1].src=M.text);else if(A=this.tokenizer.table(x))x=x.substring(A.raw.length),k.push(A);else if(A=this.tokenizer.lheading(x))x=x.substring(A.raw.length),k.push(A);else{if($=x,this.options.extensions&&this.options.extensions.startBlock){let G=1/0;const te=x.slice(1);let re;this.options.extensions.startBlock.forEach(ce=>{re=ce.call({lexer:this},te),typeof re=="number"&&re>=0&&(G=Math.min(G,re))}),G<1/0&&G>=0&&($=x.substring(0,G+1))}if(this.state.top&&(A=this.tokenizer.paragraph($)))M=k[k.length-1],R&&(M==null?void 0:M.type)==="paragraph"?(M.raw+=`
113
+ `+A.raw,M.text+=`
114
+ `+A.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(A),R=$.length!==x.length,x=x.substring(A.raw.length);else if(A=this.tokenizer.text(x))x=x.substring(A.raw.length),M=k[k.length-1],M&&M.type==="text"?(M.raw+=`
115
+ `+A.raw,M.text+=`
116
+ `+A.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=M.text):k.push(A);else if(x){const G="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(G);break}throw new Error(G)}}return this.state.top=!0,k}inline(x,k=[]){return this.inlineQueue.push({src:x,tokens:k}),k}inlineTokens(x,k=[]){let R,A,M,$,G,te,re=x;if(this.tokens.links){const ce=Object.keys(this.tokens.links);if(ce.length>0)for(;($=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ce.includes($[0].slice($[0].lastIndexOf("[")+1,-1))&&(re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;($=this.tokenizer.rules.inline.blockSkip.exec(re))!=null;)re=re.slice(0,$.index)+"["+"a".repeat($[0].length-2)+"]"+re.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;($=this.tokenizer.rules.inline.anyPunctuation.exec(re))!=null;)re=re.slice(0,$.index)+"++"+re.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;x;)if(G||(te=""),G=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ce=>!!(R=ce.call({lexer:this},x,k))&&(x=x.substring(R.raw.length),k.push(R),!0))))if(R=this.tokenizer.escape(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.tag(x))x=x.substring(R.raw.length),A=k[k.length-1],A&&R.type==="text"&&A.type==="text"?(A.raw+=R.raw,A.text+=R.text):k.push(R);else if(R=this.tokenizer.link(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(R.raw.length),A=k[k.length-1],A&&R.type==="text"&&A.type==="text"?(A.raw+=R.raw,A.text+=R.text):k.push(R);else if(R=this.tokenizer.emStrong(x,re,te))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.codespan(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.br(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.del(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.autolink(x))x=x.substring(R.raw.length),k.push(R);else if(this.state.inLink||!(R=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ce=1/0;const ve=x.slice(1);let ke;this.options.extensions.startInline.forEach(De=>{ke=De.call({lexer:this},ve),typeof ke=="number"&&ke>=0&&(ce=Math.min(ce,ke))}),ce<1/0&&ce>=0&&(M=x.substring(0,ce+1))}if(R=this.tokenizer.inlineText(M))x=x.substring(R.raw.length),R.raw.slice(-1)!=="_"&&(te=R.raw.slice(-1)),G=!0,A=k[k.length-1],A&&A.type==="text"?(A.raw+=R.raw,A.text+=R.text):k.push(R);else if(x){const ce="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ce);break}throw new Error(ce)}}else x=x.substring(R.raw.length),k.push(R);return k}}class Gn{constructor(x){ze(this,"options");ze(this,"parser");this.options=x||m}space(x){return""}code({text:x,lang:k,escaped:R}){var $;const A=($=(k||"").match(/^\S*/))==null?void 0:$[0],M=x.replace(/\n$/,"")+`
117
+ `;return A?'<pre><code class="language-'+Ie(A)+'">'+(R?M:Ie(M,!0))+`</code></pre>
118
+ `:"<pre><code>"+(R?M:Ie(M,!0))+`</code></pre>
119
119
  `}blockquote({tokens:x}){return`<blockquote>
120
120
  ${this.parser.parse(x)}</blockquote>
121
- `}html({text:x}){return x}heading({tokens:x,depth:E}){return`<h${E}>${this.parser.parseInline(x)}</h${E}>
121
+ `}html({text:x}){return x}heading({tokens:x,depth:k}){return`<h${k}>${this.parser.parseInline(x)}</h${k}>
122
122
  `}hr(x){return`<hr>
123
- `}list(x){const E=x.ordered,T=x.start;let R="";for(let $=0;$<x.items.length;$++){const G=x.items[$];R+=this.listitem(G)}const M=E?"ol":"ul";return"<"+M+(E&&T!==1?' start="'+T+'"':"")+`>
124
- `+R+"</"+M+`>
125
- `}listitem(x){let E="";if(x.task){const T=this.checkbox({checked:!!x.checked});x.loose?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=T+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&x.tokens[0].tokens[0].type==="text"&&(x.tokens[0].tokens[0].text=T+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",raw:T+" ",text:T+" "}):E+=T+" "}return E+=this.parser.parse(x.tokens,!!x.loose),`<li>${E}</li>
123
+ `}list(x){const k=x.ordered,R=x.start;let A="";for(let $=0;$<x.items.length;$++){const G=x.items[$];A+=this.listitem(G)}const M=k?"ol":"ul";return"<"+M+(k&&R!==1?' start="'+R+'"':"")+`>
124
+ `+A+"</"+M+`>
125
+ `}listitem(x){let k="";if(x.task){const R=this.checkbox({checked:!!x.checked});x.loose?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=R+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&x.tokens[0].tokens[0].type==="text"&&(x.tokens[0].tokens[0].text=R+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",raw:R+" ",text:R+" "}):k+=R+" "}return k+=this.parser.parse(x.tokens,!!x.loose),`<li>${k}</li>
126
126
  `}checkbox({checked:x}){return"<input "+(x?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:x}){return`<p>${this.parser.parseInline(x)}</p>
127
- `}table(x){let E="",T="";for(let M=0;M<x.header.length;M++)T+=this.tablecell(x.header[M]);E+=this.tablerow({text:T});let R="";for(let M=0;M<x.rows.length;M++){const $=x.rows[M];T="";for(let G=0;G<$.length;G++)T+=this.tablecell($[G]);R+=this.tablerow({text:T})}return R&&(R=`<tbody>${R}</tbody>`),`<table>
127
+ `}table(x){let k="",R="";for(let M=0;M<x.header.length;M++)R+=this.tablecell(x.header[M]);k+=this.tablerow({text:R});let A="";for(let M=0;M<x.rows.length;M++){const $=x.rows[M];R="";for(let G=0;G<$.length;G++)R+=this.tablecell($[G]);A+=this.tablerow({text:R})}return A&&(A=`<tbody>${A}</tbody>`),`<table>
128
128
  <thead>
129
- `+E+`</thead>
130
- `+R+`</table>
129
+ `+k+`</thead>
130
+ `+A+`</table>
131
131
  `}tablerow({text:x}){return`<tr>
132
132
  ${x}</tr>
133
- `}tablecell(x){const E=this.parser.parseInline(x.tokens),T=x.header?"th":"td";return(x.align?`<${T} align="${x.align}">`:`<${T}>`)+E+`</${T}>
134
- `}strong({tokens:x}){return`<strong>${this.parser.parseInline(x)}</strong>`}em({tokens:x}){return`<em>${this.parser.parseInline(x)}</em>`}codespan({text:x}){return`<code>${x}</code>`}br(x){return"<br>"}del({tokens:x}){return`<del>${this.parser.parseInline(x)}</del>`}link({href:x,title:E,tokens:T}){const R=this.parser.parseInline(T),M=Zt(x);if(M===null)return R;let $='<a href="'+(x=M)+'"';return E&&($+=' title="'+E+'"'),$+=">"+R+"</a>",$}image({href:x,title:E,text:T}){const R=Zt(x);if(R===null)return T;let M=`<img src="${x=R}" alt="${T}"`;return E&&(M+=` title="${E}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class Hr{strong({text:x}){return x}em({text:x}){return x}codespan({text:x}){return x}del({text:x}){return x}html({text:x}){return x}text({text:x}){return x}link({text:x}){return""+x}image({text:x}){return""+x}br(){return""}}class xt{constructor(x){ze(this,"options");ze(this,"renderer");ze(this,"textRenderer");this.options=x||m,this.options.renderer=this.options.renderer||new Gn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hr}static parse(x,E){return new xt(E).parse(x)}static parseInline(x,E){return new xt(E).parseInline(x)}parse(x,E=!0){let T="";for(let R=0;R<x.length;R++){const M=x[R];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=M,te=this.options.extensions.renderers[G.type].call({parser:this},G);if(te!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(G.type)){T+=te||"";continue}}const $=M;switch($.type){case"space":T+=this.renderer.space($);continue;case"hr":T+=this.renderer.hr($);continue;case"heading":T+=this.renderer.heading($);continue;case"code":T+=this.renderer.code($);continue;case"table":T+=this.renderer.table($);continue;case"blockquote":T+=this.renderer.blockquote($);continue;case"list":T+=this.renderer.list($);continue;case"html":T+=this.renderer.html($);continue;case"paragraph":T+=this.renderer.paragraph($);continue;case"text":{let G=$,te=this.renderer.text(G);for(;R+1<x.length&&x[R+1].type==="text";)G=x[++R],te+=`
135
- `+this.renderer.text(G);T+=E?this.renderer.paragraph({type:"paragraph",raw:te,text:te,tokens:[{type:"text",raw:te,text:te}]}):te;continue}default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return T}parseInline(x,E){E=E||this.renderer;let T="";for(let R=0;R<x.length;R++){const M=x[R];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=this.options.extensions.renderers[M.type].call({parser:this},M);if(G!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){T+=G||"";continue}}const $=M;switch($.type){case"escape":case"text":T+=E.text($);break;case"html":T+=E.html($);break;case"link":T+=E.link($);break;case"image":T+=E.image($);break;case"strong":T+=E.strong($);break;case"em":T+=E.em($);break;case"codespan":T+=E.codespan($);break;case"br":T+=E.br($);break;case"del":T+=E.del($);break;default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return T}}class Sn{constructor(x){ze(this,"options");ze(this,"block");this.options=x||m}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?vt.lex:vt.lexInline}provideParser(){return this.block?xt.parse:xt.parseInline}}ze(Sn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const Ut=new class{constructor(...pe){ze(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});ze(this,"options",this.setOptions);ze(this,"parse",this.parseMarkdown(!0));ze(this,"parseInline",this.parseMarkdown(!1));ze(this,"Parser",xt);ze(this,"Renderer",Gn);ze(this,"TextRenderer",Hr);ze(this,"Lexer",vt);ze(this,"Tokenizer",Bt);ze(this,"Hooks",Sn);this.use(...pe)}walkTokens(pe,x){var T,R;let E=[];for(const M of pe)switch(E=E.concat(x.call(this,M)),M.type){case"table":{const $=M;for(const G of $.header)E=E.concat(this.walkTokens(G.tokens,x));for(const G of $.rows)for(const te of G)E=E.concat(this.walkTokens(te.tokens,x));break}case"list":{const $=M;E=E.concat(this.walkTokens($.items,x));break}default:{const $=M;(R=(T=this.defaults.extensions)==null?void 0:T.childTokens)!=null&&R[$.type]?this.defaults.extensions.childTokens[$.type].forEach(G=>{const te=$[G].flat(1/0);E=E.concat(this.walkTokens(te,x))}):$.tokens&&(E=E.concat(this.walkTokens($.tokens,x)))}}return E}use(...pe){const x=this.defaults.extensions||{renderers:{},childTokens:{}};return pe.forEach(E=>{const T={...E};if(T.async=this.defaults.async||T.async||!1,E.extensions&&(E.extensions.forEach(R=>{if(!R.name)throw new Error("extension name required");if("renderer"in R){const M=x.renderers[R.name];x.renderers[R.name]=M?function(...$){let G=R.renderer.apply(this,$);return G===!1&&(G=M.apply(this,$)),G}:R.renderer}if("tokenizer"in R){if(!R.level||R.level!=="block"&&R.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const M=x[R.level];M?M.unshift(R.tokenizer):x[R.level]=[R.tokenizer],R.start&&(R.level==="block"?x.startBlock?x.startBlock.push(R.start):x.startBlock=[R.start]:R.level==="inline"&&(x.startInline?x.startInline.push(R.start):x.startInline=[R.start]))}"childTokens"in R&&R.childTokens&&(x.childTokens[R.name]=R.childTokens)}),T.extensions=x),E.renderer){const R=this.defaults.renderer||new Gn(this.defaults);for(const M in E.renderer){if(!(M in R))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const $=M,G=E.renderer[$],te=R[$];R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce||""}}T.renderer=R}if(E.tokenizer){const R=this.defaults.tokenizer||new Bt(this.defaults);for(const M in E.tokenizer){if(!(M in R))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const $=M,G=E.tokenizer[$],te=R[$];R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce}}T.tokenizer=R}if(E.hooks){const R=this.defaults.hooks||new Sn;for(const M in E.hooks){if(!(M in R))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const $=M,G=E.hooks[$],te=R[$];Sn.passThroughHooks.has(M)?R[$]=re=>{if(this.defaults.async)return Promise.resolve(G.call(R,re)).then(ve=>te.call(R,ve));const ce=G.call(R,re);return te.call(R,ce)}:R[$]=(...re)=>{let ce=G.apply(R,re);return ce===!1&&(ce=te.apply(R,re)),ce}}T.hooks=R}if(E.walkTokens){const R=this.defaults.walkTokens,M=E.walkTokens;T.walkTokens=function($){let G=[];return G.push(M.call(this,$)),R&&(G=G.concat(R.call(this,$))),G}}this.defaults={...this.defaults,...T}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return vt.lex(pe,x??this.defaults)}parser(pe,x){return xt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,E)=>{const T={...E},R={...this.defaults,...T},M=this.onError(!!R.silent,!!R.async);if(this.defaults.async===!0&&T.async===!1)return M(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(x==null)return M(new Error("marked(): input parameter is undefined or null"));if(typeof x!="string")return M(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(x)+", string expected"));R.hooks&&(R.hooks.options=R,R.hooks.block=pe);const $=R.hooks?R.hooks.provideLexer():pe?vt.lex:vt.lexInline,G=R.hooks?R.hooks.provideParser():pe?xt.parse:xt.parseInline;if(R.async)return Promise.resolve(R.hooks?R.hooks.preprocess(x):x).then(te=>$(te,R)).then(te=>R.hooks?R.hooks.processAllTokens(te):te).then(te=>R.walkTokens?Promise.all(this.walkTokens(te,R.walkTokens)).then(()=>te):te).then(te=>G(te,R)).then(te=>R.hooks?R.hooks.postprocess(te):te).catch(M);try{R.hooks&&(x=R.hooks.preprocess(x));let te=$(x,R);R.hooks&&(te=R.hooks.processAllTokens(te)),R.walkTokens&&this.walkTokens(te,R.walkTokens);let re=G(te,R);return R.hooks&&(re=R.hooks.postprocess(re)),re}catch(te){return M(te)}}}onError(pe,x){return E=>{if(E.message+=`
136
- Please report this to https://github.com/markedjs/marked.`,pe){const T="<p>An error occurred:</p><pre>"+Ie(E.message+"",!0)+"</pre>";return x?Promise.resolve(T):T}if(x)return Promise.reject(E);throw E}}};function qe(pe,x){return Ut.parse(pe,x)}qe.options=qe.setOptions=function(pe){return Ut.setOptions(pe),qe.defaults=Ut.defaults,S(qe.defaults),qe},qe.getDefaults=O,qe.defaults=m,qe.use=function(...pe){return Ut.use(...pe),qe.defaults=Ut.defaults,S(qe.defaults),qe},qe.walkTokens=function(pe,x){return Ut.walkTokens(pe,x)},qe.parseInline=Ut.parseInline,qe.Parser=xt,qe.parser=xt.parse,qe.Renderer=Gn,qe.TextRenderer=Hr,qe.Lexer=vt,qe.lexer=vt.lex,qe.Tokenizer=Bt,qe.Hooks=Sn,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,xt.parse,vt.lex;var wl=n(881),El=n.n(wl),$t=n(1271);class kl{constructor(x,E,T){this.client=x,this.conf=T,this.reduxStore=E,this.answerMaxHeight=T.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,L.g3)("markdown",function(M){return typeof M!="string"?"":new(d()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,l.A)(T.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const R=localStorage.getItem("addSearch-isConversationalSearchHidden");if(R!==null){const M=JSON.parse(R);this.reduxStore.dispatch({type:$t.IT,payload:M})}}observeResultLoadingState(){this.reduxStore.subscribe(()=>{const x=this.reduxStore.getState().search.loadingConversationalSearchResult;this.isSearchResultLoading!==x&&(this.isSearchResultLoading=x,this.render())})}setupHideConversationalSearchToggle(){const x=document.querySelector(".addsearch-conversational-search-result"),E=document.querySelector(".toggle-switch input");x&&E&&E.addEventListener("change",()=>{const T=this.reduxStore.getState().search.isConversationalSearchHidden;console.log("Toggle hide / show - setting it to: ",!T),this.reduxStore.dispatch({type:$t.IT,payload:!T}),localStorage.setItem("addSearch-isConversationalSearchHidden",JSON.stringify(!T))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),E=x&&x.querySelector(".fade-out-overlay"),T=document.querySelector(".show-more-btn"),R=T&&T.querySelector(".button-text"),M=T&&T.querySelector(".chevron");x&&E&&T&&R&&M&&(this.reduxStore.getState().search.isConversationalSearchAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),T.style.display="flex",R.textContent="Show less",E.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(T.style.display="flex",E.style.display="block"):(T.style.display="none",E.style.display="none")),T.addEventListener("click",()=>{this.reduxStore.getState().search.isConversationalSearchAnswerExpanded?(this.reduxStore.dispatch({type:$t.K3,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),R.textContent="Show more",E.style.display="block",M.style.transform=""):(this.reduxStore.dispatch({type:$t.K3,payload:!0}),x.style.maxHeight="".concat(x.scrollHeight,"px"),R.textContent="Show less",E.style.display="none",M.style.transform="rotate(180deg)")}))}setupActionButtons(){const x=document.querySelector(".addsearch-conversational-search-result"),E=x&&x.querySelector(".copy-btn"),T=x.querySelector(".copy-confirm-message"),R=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&E&&T&&R&&M&&(E.addEventListener("click",()=>{const $=document.querySelector(".answer-text").textContent;console.log("Copy clicked, TODO connect to BE!"),navigator.clipboard.writeText($).then(()=>{T.textContent="Answer copied!",console.log("Answer successfull copied, TODO connect to BE!")}).catch(G=>{console.error("Failed to copy answer text with following error: ",G)})}),R.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.conversationalSearchResult.id,$.conversationalSearchSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.conversationalSearchResult.id,$.conversationalSearchSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,E=x.conversationalSearchResult,T=x.loadingConversationalSearchResult,R=x.keyword,M=x.conversationalSearchResultError,$={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:R,answerText:E.answerText,sourcesHeadlineText:this.conf.sourcesHeadlineText||"Sources:",sources:E.sources,aiExplanationText:this.conf.aiExplanationText||"Generated by AI, may contain errors.",isResultLoading:this.isSearchResultLoading,hadError:M,sentimentState:x.conversationalSearchSentiment,showHideToggle:this.conf.hasHideToggle===void 0||this.conf.hasHideToggle,isHidden:x.isConversationalSearchHidden};let G;(E.answerText||R&&T)&&(G=this.conf.precompiledTemplate?this.conf.precompiledTemplate($):this.conf.template?d().compile(this.conf.template)($):El()($)),!(!G||this.renderedHtml===G)&&(document.getElementById(this.conf.containerId).innerHTML=G,this.renderedHtml=G,this.setupHideConversationalSearchToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class _l{constructor(x,E,T){this.client=x,this.reduxStore=E,this.conf=T,(0,l.A)(T.containerId)&&(T.template||T.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",R=>this.render(R)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let E;if(E=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):d().compile(this.conf.template)(x),this.renderedHtml===E)return;const T=document.getElementById(this.conf.containerId);T.innerHTML=E,this.renderedHtml=E;const R=T.querySelectorAll("[data-analytics-click]");(0,we.$P)(this.client,R,x)}}var Cl=n(8909),Ol=n(4826),Rl=n(6353),Tl=n(4128),Pl=n(878);const Kn="_addsearch_",Tt="*";r().polyfill(),(0,L.ud)();class Al{constructor(x,E){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=E||{},Me.sh.SEARCH=this.settings.searchParameter||Me.sh.SEARCH,Me.sh.FACETS=this.settings.facetsParameter||Me.sh.FACETS,this.shouldInitializeFromBrowserHistory=!1,this.reduxStore=(0,a.N)(this.settings)}start(){this.initFromClientSettings(),this.client.setCollectAnalytics(!1),(0,we.b8)(this.settings.analyticsCallback),(0,we.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,ue.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:I.a;this.shouldInitializeFromBrowserHistory&&(0,Me.I5)(this.client,this.reduxStore,x,(T,R)=>{this.executeSearch(T,R,!1,null,this.settings.fieldForInstantRedirect),T&&this.settings.hasConversationalSearch&&this.executeConversationalSearch(T,!1)},this.settings.matchAllQuery,this.settings.baseFilters),new I.A(this.client,this.reduxStore,x,this.settings.onFilterChange,this.settings.baseFilters,this.segmentedSearchClients,this.settings.onFilteredSearchRefresh),this.settings.matchAllQuery===!0&&this.matchAllQuery();for(var E=0;E<this.recommendationsSettings.length;E++)this.recommendationsSettings[E].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[E].containerId);this.reduxStore.dispatch({type:ue.d3})}executeSearch(x,E,T,R,M){this.reduxStore.dispatch((0,ue.EF)(this.client,x,E,!1,T,this.reduxStore,R,"executeSearch",M));for(let $ in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ol.l$)(this.segmentedSearchClients[$].client,$,x))}executeConversationalSearch(x){this.reduxStore.dispatch((0,$t.Vk)(this.client,x))}fetchRecommendation(x){const E=this.recommendationsSettings.filter(T=>T.containerId===x)[0];E&&this.reduxStore.dispatch((0,Pl.vh)(this.client,{container:E.containerId,type:E.type,blockId:E.blockId,configurationKey:E.configurationKey,itemId:E.getProductIdFunction?E.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const x=this.client.getSettings().paging;this.reduxStore.dispatch((0,Rl.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const E=this.reduxStore;E.getState().keyword.value===""&&(E.dispatch((0,Ke.Ai)(Tt,!0)),this.executeSearch(Tt,x,!1))}log(x){this.settings.debug&&console.log(x)}searchField(x){x.fieldForInstantRedirect&&console.log('WARNING: searchField setting "fieldForInstantRedirect" is deprecated. Use it in Search UI configuration object instead.'),new be(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(E,T,R,M,$)=>{this.executeSearch(E,T,R,M,$),!E.startsWith(Kn)&&this.settings.hasConversationalSearch&&!R&&this.executeConversationalSearch(E,R)})}autocomplete(x){new A.A(this.client,this.reduxStore,this.settings.hasConversationalSearch,x)}conversationalSearchResult(x){this.shouldInitializeFromBrowserHistory=!0,new kl(this.client,this.reduxStore,x)}searchResults(x){this.shouldInitializeFromBrowserHistory=!0,new fe(this.client,this.reduxStore,x)}segmentedSearchResults(x){x.client?(this.shouldInitializeFromBrowserHistory=!0,this.segmentedSearchClients[x.containerId]={},this.segmentedSearchClients[x.containerId].client=x.client,this.segmentedSearchClients[x.containerId].originalFilters=Object.assign({},x.client.getSettings().filterObject),new _l(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new q(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new se(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ne.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Cl.A(this.client,this.reduxStore,x)}pagination(x){new Oe(this.client,this.reduxStore,x)}loadMore(x){new W.A(this.client,this.reduxStore,x)}activeFilters(x){new k(this.client,this.reduxStore,x)}recommendations(x){new Tl.A(this.client,this.reduxStore,x,this.recommendationsSettings)}search(x){this.reduxStore.dispatch((0,Ke.Ai)(x,!0)),this.executeSearch(x,null,!1),this.settings.hasConversationalSearch&&this.executeConversationalSearch(x)}hideAutocomplete(){this.reduxStore.dispatch((0,Fe.nl)())}clear(){const x=this.reduxStore;x.dispatch((0,Ke.Ai)("",!0)),x.dispatch((0,C.hx)(!0)),this.settings.matchAllQuery===!0?this.matchAllQuery("top"):x.dispatch((0,ue.AX)("top"))}registerHandlebarsHelper(x,E){(0,L.g3)(x,E)}registerHandlebarsPartial(x,E){(0,L.bp)(x,E)}}},4922:function(b,c,n){function y(z,H,oe){return H in z?Object.defineProperty(z,H,{value:oe,enumerable:!0,configurable:!0,writable:!0}):z[H]=oe,z}function r(z,H){var oe=Object.keys(z);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(z);H&&(de=de.filter(function(be){return Object.getOwnPropertyDescriptor(z,be).enumerable})),oe.push.apply(oe,de)}return oe}function e(z){for(var H=1;H<arguments.length;H++){var oe=arguments[H]!=null?arguments[H]:{};H%2?r(Object(oe),!0).forEach(function(de){y(z,de,oe[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(oe)):r(Object(oe)).forEach(function(de){Object.defineProperty(z,de,Object.getOwnPropertyDescriptor(oe,de))})}return z}function d(z){return"Minified Redux error #"+z+"; visit https://redux.js.org/Errors?code="+z+" for the full message or use the non-minified dev environment for full errors. "}n.d(c,{N:function(){return Me},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function o(z){if(typeof z!="object"||z===null)return!1;for(var H=z;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(z)===H}function v(z,H,oe){var de;if(typeof H=="function"&&typeof oe=="function"||typeof oe=="function"&&typeof arguments[3]=="function")throw new Error(d(0));if(typeof H=="function"&&oe===void 0&&(oe=H,H=void 0),oe!==void 0){if(typeof oe!="function")throw new Error(d(1));return oe(v)(z,H)}if(typeof z!="function")throw new Error(d(2));var be=z,we=H,Te=[],me=Te,ye=!1;function Se(){me===Te&&(me=Te.slice())}function Be(){if(ye)throw new Error(d(3));return we}function Z(ie){if(typeof ie!="function")throw new Error(d(4));if(ye)throw new Error(d(5));var fe=!0;return Se(),me.push(ie),function(){if(fe){if(ye)throw new Error(d(6));fe=!1,Se();var O=me.indexOf(ie);me.splice(O,1),Te=null}}}function le(ie){if(!o(ie))throw new Error(d(7));if(ie.type===void 0)throw new Error(d(8));if(ye)throw new Error(d(9));try{ye=!0,we=be(we,ie)}finally{ye=!1}for(var fe=Te=me,O=0;O<fe.length;O++)(0,fe[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:Z,getState:Be,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(d(10));be=ie,le({type:a.REPLACE})}})[C]=function(){var ie,fe=Z;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(d(11));function m(){O.next&&O.next(Be())}return m(),{unsubscribe:fe(m)}}})[C]=function(){return this},ie},de}function f(){for(var z=arguments.length,H=new Array(z),oe=0;oe<z;oe++)H[oe]=arguments[oe];return H.length===0?function(de){return de}:H.length===1?H[0]:H.reduce(function(de,be){return function(){return de(be.apply(void 0,arguments))}})}var g=n(6148);const h={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var u=n(549),_=n(9369);const k={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},A=function(z,H,oe){if(z[oe.container]||(z[oe.container]={}),z[oe.container][oe.field]||(z[oe.container][oe.field]={}),z[oe.container][oe.field][oe.value]){const Te=oe.value.lastIndexOf(">"),me=Te>-1?oe.value.slice(0,Te-1):null;if(delete z[oe.container][oe.field][oe.value],me&&(de=z[oe.container][oe.field],be=me,!(Object.keys(de).filter(function(ye){return ye.indexOf(be+" >")>-1}).length>0))){const ye=H.indexOf(me);ye>-1&&H.splice(ye,1)}}else{z[oe.container][oe.field][oe.value]="true";for(let me in z[oe.container])for(let ye in z[oe.container][me])ye.indexOf(oe.value+" >")===0&&delete z[oe.container][me][ye];H=H.filter(me=>me.indexOf(oe.value+" > ")!==0);const Te=oe.value.split(" > ").reduce((me,ye)=>{const Se=me[me.length-1],Be=Se?Se+" > "+ye:ye;return Be!==oe.value&&me.push(Be),me},[]);for(let me in z[oe.container])for(let ye in z[oe.container][me])Te.indexOf(ye)!==-1&&delete z[oe.container][me][ye];H=H.filter(me=>Te.indexOf(me)===-1).concat(Te)}var de,be;const we=H.indexOf(oe.value);return we>-1&&H.splice(we,1),{activeHierarchicalFacetState:z,indeterminateHierarchicalFacets:H}};var I=n(6993);const P={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var N=n(5756);const q={page:1};var j=n(4933),D=n(1944),L=n(1271);const V={started:!1,keyword:null,results:{},loading:!1,conversationalSearchResult:{},loadingConversationalSearchResult:!1,conversationalSearchResultError:!1,conversationalSearchSentiment:"neutral",isConversationalSearchAnswerExpanded:!1,isConversationalSearchHidden:!1,searchResultsPageUrl:null};var J=n(4826);const se={pendingSegments:[]};var ne=n(6353);const Y={field:["relevance"],order:[ne.ER]},W={};var X=n(6843);const ue={fieldStats:{}};var xe=n(878);const Re={container:null,recommendType:null,results:null};var Ce=function(z){for(var H=Object.keys(z),oe={},de=0;de<H.length;de++){var be=H[de];typeof z[be]=="function"&&(oe[be]=z[be])}var we,Te=Object.keys(oe);try{(function(me){Object.keys(me).forEach(function(ye){var Se=me[ye];if(Se(void 0,{type:a.INIT})===void 0)throw new Error(d(12));if(Se(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(d(13))})})(oe)}catch(me){we=me}return function(me,ye){if(me===void 0&&(me={}),we)throw we;for(var Se=!1,Be={},Z=0;Z<Te.length;Z++){var le=Te[Z],ie=oe[le],fe=me[le],O=ie(fe,ye);if(O===void 0)throw ye&&ye.type,new Error(d(14));Be[le]=O,Se=Se||O!==fe}return(Se=Se||Te.length!==Object.keys(me).length)?Be:me}}({autocomplete:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case g.VW:let oe=[...z.pendingRequests];return oe.indexOf(H.jsonKey)===-1&&oe.push(H.jsonKey),Object.assign({},z,{pendingRequests:oe});case g.vT:return Object.assign({},z,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case g.nn:return Object.assign({},z,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case g.KR:let de=[...z.pendingRequests];return de.indexOf(g.Pf)!==-1&&de.splice(de.indexOf(g.Pf),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case g.kw:let be=[...z.pendingRequests];return be.indexOf(g.Xr)!==-1&&be.splice(be.indexOf(g.Xr),1),Object.assign({},z,{pendingRequests:be,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case g.Km:return Object.assign({},z,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case g.p3:const we=Object.assign({},z.searchResults);we[H.jsonKey]=H.results.hits;const Te=Object.assign({},z.searchResultsStats);H.appendResults===!0&&z.searchResults[H.jsonKey]?we[H.jsonKey]=[...z.searchResults[H.jsonKey],...H.results.hits]:(Te[H.jsonKey]||(Te[H.jsonKey]={}),Te[H.jsonKey].total_hits=H.results.total_hits,Te[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...z.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:me,searchResults:we,searchResultsStats:Te,visible:!0,appendResults:H.appendResults===!0});case g.GB:return Object.assign({},z,{visible:!1,activeSuggestionIndex:null});case g.B5:return Object.assign({},z,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case g.h$:return Object.assign({},z,{visible:!0,dropRendering:!1});case g.FJ:return Object.assign({},z,{hideAutomatically:H.hideAutomatically});case g.d5:return Object.assign({},z,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case g.hx:let ye=z.activeSuggestionIndex;if(z.suggestions.length&&z.customFields.length)ye=null;else{const Se=z.suggestions.length?"suggestions":"customFields";H.direction===g.Jd?ye===null&&z[Se].length>0?ye=0:ye===z[Se].length-1?ye=null:ye+=1:H.direction===g.il&&(ye===null&&z[Se].length>0?ye=z[Se].length-1:ye===0?ye=null:ye-=1)}return Object.assign({},z,{visible:!0,activeSuggestionIndex:ye,setSuggestionToSearchField:!0});default:return z}},filters:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case u.XI:let oe=z.allAvailableFilters.slice();if(H.filterObj.type===_.FILTER_TYPE.RANGE){let Be={};Be[H.filterObj.field]={label:H.filterObj.labelShort?H.filterObj.labelShort:H.filterObj.label},oe.push(Be)}else if(H.filterObj.options){const Be=Object.assign({},H.filterObj.options);oe.push(Be)}return Object.assign({},z,{allAvailableFilters:oe});case u.CY:let de=Object.assign({},z.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},z,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case u.Uj:let be=Object.assign({},z.activeRangeFilters);return be[H.field]={},H.from!==null&&(be[H.field].gte=H.from),H.to!==null&&(be[H.field].lte=H.to),H.from===null&&H.to===null&&delete be[H.field],Object.assign({},z,{activeRangeFilters:be,refreshSearch:!0});case u.vj:return Object.assign({},z,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case u.Tv:return Object.assign({},z,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case u.uR:return Object.assign({},z,{activeFilters:H.json||{},refreshSearch:!1});case u.VN:return Object.assign({},z,{activeFacets:H.json||{},refreshSearch:!1});case u.JS:return Object.assign({},z,{activeRangeFacets:Object.assign({},z.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case u.cl:let we=Object.assign({},z.activeFacets);return we[H.field]||(we[H.field]={}),we[H.field][H.value]?delete we[H.field][H.value]:we[H.field][H.value]="true",we.v=we.v?we.v+1:1,Object.assign({},z,{activeFacets:we,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.QW:let Te=Object.assign({},z.activeHierarchicalFacets),me=z.indeterminateHierarchicalFacets.slice();const ye=A(Te,me,H);return Te=ye.activeHierarchicalFacetState,me=ye.indeterminateHierarchicalFacets,Te.v=Te.v?Te.v+1:1,Object.assign({},z,{activeHierarchicalFacets:Te,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.IS:let Se=Object.assign({},z.activeRangeFacets);return Se[H.field]||(Se[H.field]={}),Se[H.field][H.key]?delete Se[H.field][H.key]:Se[H.field][H.key]={gte:H.values.min,lt:H.values.max,key:H.key},Se.v=Se.v?Se.v+1:1,Object.assign({},z,{activeRangeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return z}},keyword:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case I.QR:return Object.assign({},z,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case I.Le:return Object.assign({},z,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return z}},pagination:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q,H=arguments.length>1?arguments[1]:void 0;return H.type===N.N?Object.assign({},z,{page:H.page}):z},search:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case D.d3:return Object.assign({},z,{started:!0});case D.y$:return Object.assign({},z,{keyword:null,results:{},loading:!1,conversationalSearchResult:{},conversationalSearchResultError:!1,loadingConversationalSearchResult:!1,conversationalSearchSentiment:"neutral",dropReturningResults:!0});case D.xE:return Object.assign({},z,{loading:!0,dropReturningResults:!1});case D.mY:if(z.started||console.log("WARNING: AddSearch UI not started with the start() function"),z.dropReturningResults===!0)return z;if(H.keyword.indexOf(j.H)===0)return Object.assign({},z,{loading:!1});let oe=H.results;if(H.appendResults===!0&&z.results.hits){const de=[...z.results.hits,...H.results.hits];oe.hits=de}return Object.assign({},z,{keyword:H.keyword,results:oe,loading:!1,callBy:H.requestBy});case L.eH:return Object.assign({},z,{loadingConversationalSearchResult:H.payload});case L.e:return Object.assign({},z,{conversationalSearchResult:H.payload});case L.BA:return Object.assign({},z,{conversationalSearchResultError:H.payload});case L.JK:return Object.assign({},z,{conversationalSearchSentiment:H.payload});case L.K3:return Object.assign({},z,{isConversationalSearchAnswerExpanded:H.payload});case L.IT:return Object.assign({},z,{isConversationalSearchHidden:H.payload});case D.j2:return Object.assign({},z,{searchResultsPageUrl:H.url});default:return z}},segmentedsearch:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case J.lD:let oe=[...z.pendingSegments];return oe.indexOf(H.jsonKey)===-1&&oe.push(H.jsonKey),Object.assign({},z,{pendingSegments:oe,dropReturningResults:!1});case J.JK:if(H.keyword.indexOf(j.H)===0||z.dropReturningResults===!0)return z;const de={};de[H.jsonKey]=H.results;let be=[...z.pendingSegments];return be.indexOf(H.jsonKey)!==-1&&be.splice(be.indexOf(H.jsonKey),1),Object.assign({},z,de,{pendingSegments:be});case J.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return z}},sortby:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ne.O0?Object.assign({},z,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):z},fieldstats:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ue,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case X.IJ:return Object.assign({},z,{fieldStats:H.fieldStats,callBy:H.callBy});case X.nb:return Object.assign({},z,{fieldStats:{}});default:return z}},recommendation:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case xe.iM:case xe.OU:return Object.assign({},z,{container:H.container,recommendType:H.recommendType,results:H.results});case xe.KE:return Object.assign({},Re);default:return z}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function He(z){return function(H){var oe=H.dispatch,de=H.getState;return function(be){return function(we){return typeof we=="function"?we(oe,de,z):be(we)}}}}var Fe=He();Fe.withExtraArgument=He;var Ke=Fe;function Me(z){const H={configuration:z};let oe=f;return z.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(oe=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),v(Ce,H,oe(function(){for(var de=arguments.length,be=new Array(de),we=0;we<de;we++)be[we]=arguments[we];return function(Te){return function(){var me=Te.apply(void 0,arguments),ye=function(){throw new Error(d(15))},Se={getState:me.getState,dispatch:function(){return ye.apply(void 0,arguments)}},Be=be.map(function(Z){return Z(Se)});return ye=f.apply(void 0,Be)(me.dispatch),e(e({},me),{},{dispatch:ye})}}}(Ke)))}function We(z,H,oe){let de={};function be(){const Te=z.getState()[H];JSON.stringify(Te)!==JSON.stringify(de[H])&&(de[H]=Te,oe(de[H]))}let we=z.subscribe(be);return be(),we}},6351:function(b,c,n){n.d(c,{$P:function(){return _},ME:function(){return u},b8:function(){return e},d_:function(){return l},mh:function(){return f}});const y=2500;let r=null;function e(I){r=I}function d(I){r&&r(I)}let C=!0;function l(I){C=I}let a=null,o=null,v=!1;function f(I,P,N,q){if(C===!1)return;const j="search";a&&clearTimeout(a),a=setTimeout(()=>{P!==o&&(I.sendStatsEvent(j,P,{numberOfResults:N}),d({action:j,keyword:P,numberOfResults:N,processingTimeMs:q}),o=P,v=!0)},y)}let g=null,h=null;function u(I,P){C===!1||!P||P.length<1||(g&&clearTimeout(g),g=setTimeout(()=>{I!==h&&(P.forEach(N=>N.client.sendStatsEvent("search",I,{numberOfResults:N.numberOfResults})),h=I,v=!0)},y))}function _(I,P,N){if(P&&P.length>0)for(let q=0;q<P.length;q++)P[q].addEventListener("keyup",j=>{j.keyCode===13&&A(j,I,N)}),P[q].addEventListener("pointerdown",j=>{j.button&&j.buttons&&j.button===j.buttons||A(j,I,N)})}function k(I){const P=I.getAttribute("data-analytics-click");return I.nodeName==="BODY"||I.nodeName==="body"?null:P||k(I.parentNode)}function A(I,P,N){if(C===!1)return;const q=k(I.target),j=function(L,V,J){if(V&&V.hits){const se=((V.page||1)-1)*L;for(let ne=0;ne<V.hits.length;ne++)if(V.hits[ne].id===J)return se+(ne+1)}return 0}(P.getSettings().paging.pageSize,N,q),D=P.getSettings().keyword;if(P.sendStatsEvent("click",D,{documentId:q,position:j}),d({action:"click",keyword:D,documentId:q,position:j}),v===!1){const L=N?N.total_hits:0,V=N?N.processing_time_ms:0;P.sendStatsEvent("search",D,{numberOfResults:L}),d({action:"search",keyword:D,numberOfResults:L,processingTimeMs:V})}}},4379:function(b,c,n){function y(e,d,C,l){const a=e.querySelectorAll("["+d+"]");for(let o=0;o<a.length;o++)a[o].addEventListener(C,v=>{l(v.target.getAttribute(d))})}function r(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return r},h:function(){return y}})},3923:function(b,c,n){n.d(c,{GK:function(){return l},bp:function(){return f},g3:function(){return v},ud:function(){return o}});var y=n(2334),r=n.n(y),e=n(261),d=n.n(e),C=n(7435);function l(g,h){const u=g.categories||[];let _="",k=1;h=(0,C.y)(h);do _=u.length>k?u[k]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),k++;while(_.length<3&&u.length>k);return h&&h[_]?h[_]:_.replace(/[-_]+/g," ")}let a=null;function o(){v("equals",(g,h,u)=>g+""==h+""?u.fn(this):u.inverse(this)),v("not",(g,h,u)=>g+""!=h+""?u.fn(this):u.inverse(this)),v("gt",(g,h,u)=>g>h?u.fn(this):u.inverse(this)),v("lt",(g,h,u)=>g<h?u.fn(this):u.inverse(this)),v("or",(g,h,u)=>g||h?u.fn(this):u.inverse(this)),v("formatPrice",(g,h,u)=>{if(g===void 0||typeof g!="number"||!h||!u)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(h,{style:"currency",currency:u,minimumFractionDigits:2})),a)return a.format(g)}catch{}return g/100+" "+u})}function v(g,h){r().registerHelper(g,h),d().registerHelper(g,h)}function f(g,h){r().registerPartial(g,h),d().registerPartial(g,h)}},4903:function(b,c,n){n.d(c,{Dh:function(){return v},I5:function(){return g},IR:function(){return k},lG:function(){return A},sh:function(){return l}});var y=n(4933),r=n(6993),e=n(5756),d=n(549),C=n(6353);const l={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let o=null;function v(I,P,N,q){const j=q.getState();j&&j.configuration&&j.configuration.updateBrowserHistory===!1||(N?(o&&clearTimeout(o),o=setTimeout(()=>{f(I,P)},a)):f(I,P))}function f(I,P){if(I===l.SEARCH&&P&&P.indexOf(y.H)===0)return;let N=window.location.href;N.indexOf("#")!==-1&&(N=N.substring(0,N.indexOf("#")));const q=window.location.hash||"",j=u(N);I===l.PAGE&&P==1||I===l.SEARCH&&P==y.Z?delete j[I]:I&&P!==null&&P!==""?j[I]=P:I&&delete j[I];let D=N;N.indexOf("?")!==-1&&(D=N.substring(0,N.indexOf("?"))),JSON.stringify(j)!==JSON.stringify({})&&(D=D+"?"+function(L){let V="";for(let J in L)if(L.hasOwnProperty(J)){V!==""&&(V+="&");let se="";if(J==="addsearchUnrelatedParams"){V+=L[J].split("&").join("&");continue}L[J]!==null&&L[J]!==void 0&&J!=="addsearchUnrelatedParams"&&(se="="+encodeURIComponent(L[J])),V=V+J+se}return V}(j)),D+=q,history.state===null?history.replaceState(j,"",D):JSON.stringify(history.state)!==JSON.stringify(j)&&history.pushState(j,"",D)}function g(I,P,N,q,j,D){const L=u(window.location.href);h(I,P,L,N,q,!1,D),window.onpopstate=V=>{const J=u(window.location.href);h(I,P,J,N,q,j,D)}}function h(I,P,N,q,j,D,L){let V=!1;if(N[l.FILTERS]){const J=_(N[l.FILTERS]);P.dispatch((0,d.eu)(J)),V=!0}if(N[l.FACETS]){const J=_(N[l.FACETS]);P.dispatch((0,d.Xh)(J)),V=!0}if(N[l.RANGE_FACETS]){const J=_(N[l.RANGE_FACETS]);P.dispatch((0,d.ks)(J)),V=!0}if(V){const J=q(P.getState().filters,L);I.setFilterObject(J)}else P.dispatch((0,d.eu)(null)),P.dispatch((0,d.Xh)(null)),I.setFilterObject(L||null);if(N[l.SORTBY]){const J=_(N[l.SORTBY]);P.dispatch((0,C.Ul)(I,J.field,J.order))}if(N[l.PAGE])P.dispatch((0,e.I)(I,parseInt(N[l.PAGE],10),null,P));else{const J=I.getSettings().paging;P.dispatch((0,e.I)(I,J.page,null,P))}if(N[l.SEARCH]){const J=decodeURIComponent(N[l.SEARCH]);P.dispatch((0,r.Ai)(J,!0,null,!0)),j(J)}else D===!0&&(P.dispatch((0,r.Ai)(y.Z,!0,null,!0)),j(y.Z))}function u(I){if(I.indexOf("?")===-1)return{};let P=I.substring(I.indexOf("?")+1);if(P==="")return{};P.indexOf("#")!==-1&&(P=P.substring(0,P.indexOf("#")));let N={};const q=P.split("&"),j=q.filter(L=>L.indexOf(l.SEARCH)===-1&&L.indexOf(l.PAGE)===-1&&L.indexOf(l.SORTBY)===-1&&L.indexOf(l.FILTERS)===-1&&L.indexOf(l.FACETS)===-1&&L.indexOf(l.RANGE_FACETS)===-1),D=q.filter(L=>!j.includes(L));return j.length&&(N.addsearchUnrelatedParams=j.join("&")),D.forEach(L=>{const V=L.split("=");if(V[0]&&V[0].length>0){let J=null;V.length>1&&(J=V[1]||"",J=J.replace(/\+/g,"%20"),J=decodeURIComponent(J)),N[V[0]]=J}}),N}function _(I){try{return JSON.parse(I)}catch{}return null}function k(I){return Object.keys(I).length>0?(delete I.v,JSON.stringify(I)):null}function A(I,P){I.indexOf("?")===-1?window.location.href=I+"?"+l.SEARCH+"="+encodeURIComponent(P):window.location.href=I+"&"+l.SEARCH+"="+encodeURIComponent(P)}},7435:function(b,c,n){function y(e){return!e||Object.keys(e).length===0}function r(e){if(e)return Object.keys(e).reduce((d,C)=>(d[C.toLowerCase()]=e[C],d),{})}n.d(c,{I:function(){return y},y:function(){return r}})},9491:function(b){function c(n,y){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),e=1;e<arguments.length;e++){var d=arguments[e];if(d!=null)for(var C=Object.keys(Object(d)),l=0,a=C.length;l<a;l++){var o=C[l],v=Object.getOwnPropertyDescriptor(d,o);v!==void 0&&v.enumerable&&(r[o]=d[o])}}return r}b.exports={assign:c,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:c})}}},3787:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return` <div class="item">
137
- <span>`+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):o)+`</span>
138
- <button data-type="`+h(typeof(o=(o=u(d,"type")||(e!=null?u(e,"type"):e))!=null?o:f)===g?o.call(v,{name:"type",hash:{},data:l,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):o)+'" data-name="'+h(typeof(o=(o=u(d,"name")||(e!=null?u(e,"name"):e))!=null?o:f)===g?o.call(v,{name:"name",hash:{},data:l,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):o)+'" data-value="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):o)+`"
133
+ `}tablecell(x){const k=this.parser.parseInline(x.tokens),R=x.header?"th":"td";return(x.align?`<${R} align="${x.align}">`:`<${R}>`)+k+`</${R}>
134
+ `}strong({tokens:x}){return`<strong>${this.parser.parseInline(x)}</strong>`}em({tokens:x}){return`<em>${this.parser.parseInline(x)}</em>`}codespan({text:x}){return`<code>${x}</code>`}br(x){return"<br>"}del({tokens:x}){return`<del>${this.parser.parseInline(x)}</del>`}link({href:x,title:k,tokens:R}){const A=this.parser.parseInline(R),M=Qt(x);if(M===null)return A;let $='<a href="'+(x=M)+'"';return k&&($+=' title="'+k+'"'),$+=">"+A+"</a>",$}image({href:x,title:k,text:R}){const A=Qt(x);if(A===null)return R;let M=`<img src="${x=A}" alt="${R}"`;return k&&(M+=` title="${k}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class Hr{strong({text:x}){return x}em({text:x}){return x}codespan({text:x}){return x}del({text:x}){return x}html({text:x}){return x}text({text:x}){return x}link({text:x}){return""+x}image({text:x}){return""+x}br(){return""}}class xt{constructor(x){ze(this,"options");ze(this,"renderer");ze(this,"textRenderer");this.options=x||m,this.options.renderer=this.options.renderer||new Gn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hr}static parse(x,k){return new xt(k).parse(x)}static parseInline(x,k){return new xt(k).parseInline(x)}parse(x,k=!0){let R="";for(let A=0;A<x.length;A++){const M=x[A];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=M,te=this.options.extensions.renderers[G.type].call({parser:this},G);if(te!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(G.type)){R+=te||"";continue}}const $=M;switch($.type){case"space":R+=this.renderer.space($);continue;case"hr":R+=this.renderer.hr($);continue;case"heading":R+=this.renderer.heading($);continue;case"code":R+=this.renderer.code($);continue;case"table":R+=this.renderer.table($);continue;case"blockquote":R+=this.renderer.blockquote($);continue;case"list":R+=this.renderer.list($);continue;case"html":R+=this.renderer.html($);continue;case"paragraph":R+=this.renderer.paragraph($);continue;case"text":{let G=$,te=this.renderer.text(G);for(;A+1<x.length&&x[A+1].type==="text";)G=x[++A],te+=`
135
+ `+this.renderer.text(G);R+=k?this.renderer.paragraph({type:"paragraph",raw:te,text:te,tokens:[{type:"text",raw:te,text:te}]}):te;continue}default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return R}parseInline(x,k){k=k||this.renderer;let R="";for(let A=0;A<x.length;A++){const M=x[A];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[M.type]){const G=this.options.extensions.renderers[M.type].call({parser:this},M);if(G!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){R+=G||"";continue}}const $=M;switch($.type){case"escape":case"text":R+=k.text($);break;case"html":R+=k.html($);break;case"link":R+=k.link($);break;case"image":R+=k.image($);break;case"strong":R+=k.strong($);break;case"em":R+=k.em($);break;case"codespan":R+=k.codespan($);break;case"br":R+=k.br($);break;case"del":R+=k.del($);break;default:{const G='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(G),"";throw new Error(G)}}}return R}}class bn{constructor(x){ze(this,"options");ze(this,"block");this.options=x||m}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?vt.lex:vt.lexInline}provideParser(){return this.block?xt.parse:xt.parseInline}}ze(bn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const Ut=new class{constructor(...pe){ze(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});ze(this,"options",this.setOptions);ze(this,"parse",this.parseMarkdown(!0));ze(this,"parseInline",this.parseMarkdown(!1));ze(this,"Parser",xt);ze(this,"Renderer",Gn);ze(this,"TextRenderer",Hr);ze(this,"Lexer",vt);ze(this,"Tokenizer",Bt);ze(this,"Hooks",bn);this.use(...pe)}walkTokens(pe,x){var R,A;let k=[];for(const M of pe)switch(k=k.concat(x.call(this,M)),M.type){case"table":{const $=M;for(const G of $.header)k=k.concat(this.walkTokens(G.tokens,x));for(const G of $.rows)for(const te of G)k=k.concat(this.walkTokens(te.tokens,x));break}case"list":{const $=M;k=k.concat(this.walkTokens($.items,x));break}default:{const $=M;(A=(R=this.defaults.extensions)==null?void 0:R.childTokens)!=null&&A[$.type]?this.defaults.extensions.childTokens[$.type].forEach(G=>{const te=$[G].flat(1/0);k=k.concat(this.walkTokens(te,x))}):$.tokens&&(k=k.concat(this.walkTokens($.tokens,x)))}}return k}use(...pe){const x=this.defaults.extensions||{renderers:{},childTokens:{}};return pe.forEach(k=>{const R={...k};if(R.async=this.defaults.async||R.async||!1,k.extensions&&(k.extensions.forEach(A=>{if(!A.name)throw new Error("extension name required");if("renderer"in A){const M=x.renderers[A.name];x.renderers[A.name]=M?function(...$){let G=A.renderer.apply(this,$);return G===!1&&(G=M.apply(this,$)),G}:A.renderer}if("tokenizer"in A){if(!A.level||A.level!=="block"&&A.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const M=x[A.level];M?M.unshift(A.tokenizer):x[A.level]=[A.tokenizer],A.start&&(A.level==="block"?x.startBlock?x.startBlock.push(A.start):x.startBlock=[A.start]:A.level==="inline"&&(x.startInline?x.startInline.push(A.start):x.startInline=[A.start]))}"childTokens"in A&&A.childTokens&&(x.childTokens[A.name]=A.childTokens)}),R.extensions=x),k.renderer){const A=this.defaults.renderer||new Gn(this.defaults);for(const M in k.renderer){if(!(M in A))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const $=M,G=k.renderer[$],te=A[$];A[$]=(...re)=>{let ce=G.apply(A,re);return ce===!1&&(ce=te.apply(A,re)),ce||""}}R.renderer=A}if(k.tokenizer){const A=this.defaults.tokenizer||new Bt(this.defaults);for(const M in k.tokenizer){if(!(M in A))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const $=M,G=k.tokenizer[$],te=A[$];A[$]=(...re)=>{let ce=G.apply(A,re);return ce===!1&&(ce=te.apply(A,re)),ce}}R.tokenizer=A}if(k.hooks){const A=this.defaults.hooks||new bn;for(const M in k.hooks){if(!(M in A))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const $=M,G=k.hooks[$],te=A[$];bn.passThroughHooks.has(M)?A[$]=re=>{if(this.defaults.async)return Promise.resolve(G.call(A,re)).then(ve=>te.call(A,ve));const ce=G.call(A,re);return te.call(A,ce)}:A[$]=(...re)=>{let ce=G.apply(A,re);return ce===!1&&(ce=te.apply(A,re)),ce}}R.hooks=A}if(k.walkTokens){const A=this.defaults.walkTokens,M=k.walkTokens;R.walkTokens=function($){let G=[];return G.push(M.call(this,$)),A&&(G=G.concat(A.call(this,$))),G}}this.defaults={...this.defaults,...R}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return vt.lex(pe,x??this.defaults)}parser(pe,x){return xt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,k)=>{const R={...k},A={...this.defaults,...R},M=this.onError(!!A.silent,!!A.async);if(this.defaults.async===!0&&R.async===!1)return M(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(x==null)return M(new Error("marked(): input parameter is undefined or null"));if(typeof x!="string")return M(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(x)+", string expected"));A.hooks&&(A.hooks.options=A,A.hooks.block=pe);const $=A.hooks?A.hooks.provideLexer():pe?vt.lex:vt.lexInline,G=A.hooks?A.hooks.provideParser():pe?xt.parse:xt.parseInline;if(A.async)return Promise.resolve(A.hooks?A.hooks.preprocess(x):x).then(te=>$(te,A)).then(te=>A.hooks?A.hooks.processAllTokens(te):te).then(te=>A.walkTokens?Promise.all(this.walkTokens(te,A.walkTokens)).then(()=>te):te).then(te=>G(te,A)).then(te=>A.hooks?A.hooks.postprocess(te):te).catch(M);try{A.hooks&&(x=A.hooks.preprocess(x));let te=$(x,A);A.hooks&&(te=A.hooks.processAllTokens(te)),A.walkTokens&&this.walkTokens(te,A.walkTokens);let re=G(te,A);return A.hooks&&(re=A.hooks.postprocess(re)),re}catch(te){return M(te)}}}onError(pe,x){return k=>{if(k.message+=`
136
+ Please report this to https://github.com/markedjs/marked.`,pe){const R="<p>An error occurred:</p><pre>"+Ie(k.message+"",!0)+"</pre>";return x?Promise.resolve(R):R}if(x)return Promise.reject(k);throw k}}};function qe(pe,x){return Ut.parse(pe,x)}qe.options=qe.setOptions=function(pe){return Ut.setOptions(pe),qe.defaults=Ut.defaults,b(qe.defaults),qe},qe.getDefaults=O,qe.defaults=m,qe.use=function(...pe){return Ut.use(...pe),qe.defaults=Ut.defaults,b(qe.defaults),qe},qe.walkTokens=function(pe,x){return Ut.walkTokens(pe,x)},qe.parseInline=Ut.parseInline,qe.Parser=xt,qe.parser=xt.parse,qe.Renderer=Gn,qe.TextRenderer=Hr,qe.Lexer=vt,qe.lexer=vt.lex,qe.Tokenizer=Bt,qe.Hooks=bn,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,xt.parse,vt.lex;var Sl=n(5230),El=n.n(Sl),$t=n(1543);class kl{constructor(x,k,R){this.client=x,this.conf=R,this.reduxStore=k,this.answerMaxHeight=R.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,L.g3)("markdown",function(M){return typeof M!="string"?"":new(d()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,l.A)(R.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const A=localStorage.getItem("addSearch-isAiAnswersHidden");if(A!==null){const M=JSON.parse(A);this.reduxStore.dispatch({type:$t.jK,payload:M})}}observeResultLoadingState(){this.reduxStore.subscribe(()=>{const x=this.reduxStore.getState().search.loadingAiAnswersResult;this.isSearchResultLoading!==x&&(this.isSearchResultLoading=x,this.render())})}setupHideAIAnswersToggle(){const x=document.querySelector(".addsearch-ai-answers-result"),k=document.querySelector(".toggle-switch input");x&&k&&k.addEventListener("change",()=>{const R=this.reduxStore.getState().search.isAiAnswersHidden;this.reduxStore.dispatch({type:$t.jK,payload:!R}),localStorage.setItem("addSearch-isAiAnswersHidden",JSON.stringify(!R))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),k=x&&x.querySelector(".fade-out-overlay"),R=document.querySelector(".show-more-btn"),A=R&&R.querySelector(".button-text"),M=R&&R.querySelector(".chevron");x&&k&&R&&A&&M&&(this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),R.style.display="flex",A.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(R.style.display="flex",k.style.display="block"):(R.style.display="none",k.style.display="none")),R.addEventListener("click",()=>{this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(this.reduxStore.dispatch({type:$t.Rn,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),A.textContent="Show more",k.style.display="block",M.style.transform=""):(this.reduxStore.dispatch({type:$t.Rn,payload:!0}),x.style.maxHeight="".concat(x.scrollHeight,"px"),A.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)")}))}setupActionButtons(){const x=document.querySelector(".addsearch-ai-answers-result"),k=x&&x.querySelector(".copy-btn"),R=x.querySelector(".copy-confirm-message"),A=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&k&&R&&A&&M&&(k.addEventListener("click",()=>{const $=document.querySelector(".answer-text").textContent;navigator.clipboard.writeText($).then(()=>{R.textContent="Answer copied!"}).catch(G=>{console.error("Failed to copy answer text with following error: ",G)})}),A.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.aiAnswersResult.id,$.aiAnswersSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const $=this.reduxStore.getState().search;this.reduxStore.dispatch((0,$t.bz)(this.client,$.aiAnswersResult.id,$.aiAnswersSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,k=x.aiAnswersResult,R=x.loadingAiAnswersResult,A=x.keyword,M=x.aiAnswersResultError,$={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:A,answerText:k.answerText,sourcesHeadlineText:this.conf.sourcesHeadlineText||"Sources:",sources:k.sources,aiExplanationText:this.conf.aiExplanationText||"Generated by AI, may contain errors.",isResultLoading:this.isSearchResultLoading,hadError:M,sentimentState:x.aiAnswersSentiment,showHideToggle:this.conf.hasHideToggle===void 0||this.conf.hasHideToggle,isHidden:x.isAiAnswersHidden};let G;(k.answerText||A&&R)&&(G=this.conf.precompiledTemplate?this.conf.precompiledTemplate($):this.conf.template?d().compile(this.conf.template)($):El()($)),!(!G||this.renderedHtml===G)&&(document.getElementById(this.conf.containerId).innerHTML=G,this.renderedHtml=G,this.setupHideAIAnswersToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class _l{constructor(x,k,R){this.client=x,this.reduxStore=k,this.conf=R,(0,l.A)(R.containerId)&&(R.template||R.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",A=>this.render(A)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let k;if(k=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):d().compile(this.conf.template)(x),this.renderedHtml===k)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=k,this.renderedHtml=k;const A=R.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,A,x)}}var Cl=n(8909),Ol=n(4826),Al=n(6353),Rl=n(4128),Pl=n(878);const Kn="_addsearch_",Rt="*";r().polyfill(),(0,L.ud)();class Tl{constructor(x,k){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=k||{},Me.sh.SEARCH=this.settings.searchParameter||Me.sh.SEARCH,Me.sh.FACETS=this.settings.facetsParameter||Me.sh.FACETS,this.shouldInitializeFromBrowserHistory=!1,this.reduxStore=(0,a.N)(this.settings)}start(){this.initFromClientSettings(),this.client.setCollectAnalytics(!1),(0,Se.b8)(this.settings.analyticsCallback),(0,Se.d_)(this.settings.collectAnalytics),this.reduxStore.dispatch((0,ue.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:T.a;this.shouldInitializeFromBrowserHistory&&(0,Me.I5)(this.client,this.reduxStore,x,(R,A)=>{this.executeSearch(R,A,!1,null,this.settings.fieldForInstantRedirect),R&&this.settings.hasAiAnswers&&this.executeAiAnswers(R,!1)},this.settings.matchAllQuery,this.settings.baseFilters),new T.A(this.client,this.reduxStore,x,this.settings.onFilterChange,this.settings.baseFilters,this.segmentedSearchClients,this.settings.onFilteredSearchRefresh),this.settings.matchAllQuery===!0&&this.matchAllQuery();for(var k=0;k<this.recommendationsSettings.length;k++)this.recommendationsSettings[k].ignoreFetchOnStart||this.fetchRecommendation(this.recommendationsSettings[k].containerId);this.reduxStore.dispatch({type:ue.d3})}executeSearch(x,k,R,A,M){this.reduxStore.dispatch((0,ue.EF)(this.client,x,k,!1,R,this.reduxStore,A,"executeSearch",M));for(let $ in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ol.l$)(this.segmentedSearchClients[$].client,$,x))}executeAiAnswers(x){this.reduxStore.dispatch((0,$t.On)(this.client,x))}fetchRecommendation(x){const k=this.recommendationsSettings.filter(R=>R.containerId===x)[0];k&&this.reduxStore.dispatch((0,Pl.vh)(this.client,{container:k.containerId,type:k.type,blockId:k.blockId,configurationKey:k.configurationKey,itemId:k.getProductIdFunction?k.getProductIdFunction.call(void 0,void 0):null}))}initFromClientSettings(){const x=this.client.getSettings().paging;this.reduxStore.dispatch((0,Al.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const k=this.reduxStore;k.getState().keyword.value===""&&(k.dispatch((0,Ke.Ai)(Rt,!0)),this.executeSearch(Rt,x,!1))}log(x){this.settings.debug&&console.log(x)}searchField(x){x.fieldForInstantRedirect&&console.log('WARNING: searchField setting "fieldForInstantRedirect" is deprecated. Use it in Search UI configuration object instead.'),new we(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(k,R,A,M,$)=>{this.executeSearch(k,R,A,M,$),!k.startsWith(Kn)&&this.settings.hasAiAnswers&&!A&&this.executeAiAnswers(k,A)})}autocomplete(x){new I.A(this.client,this.reduxStore,this.settings.hasAiAnswers,x)}aiAnswersResult(x){this.shouldInitializeFromBrowserHistory=!0,new kl(this.client,this.reduxStore,x)}searchResults(x){this.shouldInitializeFromBrowserHistory=!0,new fe(this.client,this.reduxStore,x)}segmentedSearchResults(x){x.client?(this.shouldInitializeFromBrowserHistory=!0,this.segmentedSearchClients[x.containerId]={},this.segmentedSearchClients[x.containerId].client=x.client,this.segmentedSearchClients[x.containerId].originalFilters=Object.assign({},x.client.getSettings().filterObject),new _l(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new q(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new oe(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ne.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Cl.A(this.client,this.reduxStore,x)}pagination(x){new Oe(this.client,this.reduxStore,x)}loadMore(x){new W.A(this.client,this.reduxStore,x)}activeFilters(x){new S(this.client,this.reduxStore,x)}recommendations(x){new Rl.A(this.client,this.reduxStore,x,this.recommendationsSettings)}search(x){this.reduxStore.dispatch((0,Ke.Ai)(x,!0)),this.executeSearch(x,null,!1),this.settings.hasAiAnswers&&this.executeAiAnswers(x)}hideAutocomplete(){this.reduxStore.dispatch((0,Fe.nl)())}clear(){const x=this.reduxStore;x.dispatch((0,Ke.Ai)("",!0)),x.dispatch((0,C.hx)(!0)),this.settings.matchAllQuery===!0?this.matchAllQuery("top"):x.dispatch((0,ue.AX)("top"))}registerHandlebarsHelper(x,k){(0,L.g3)(x,k)}registerHandlebarsPartial(x,k){(0,L.bp)(x,k)}}},4922:function(w,c,n){function y(z,H,se){return H in z?Object.defineProperty(z,H,{value:se,enumerable:!0,configurable:!0,writable:!0}):z[H]=se,z}function r(z,H){var se=Object.keys(z);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(z);H&&(de=de.filter(function(we){return Object.getOwnPropertyDescriptor(z,we).enumerable})),se.push.apply(se,de)}return se}function e(z){for(var H=1;H<arguments.length;H++){var se=arguments[H]!=null?arguments[H]:{};H%2?r(Object(se),!0).forEach(function(de){y(z,de,se[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(se)):r(Object(se)).forEach(function(de){Object.defineProperty(z,de,Object.getOwnPropertyDescriptor(se,de))})}return z}function d(z){return"Minified Redux error #"+z+"; visit https://redux.js.org/Errors?code="+z+" for the full message or use the non-minified dev environment for full errors. "}n.d(c,{N:function(){return Me},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function s(z){if(typeof z!="object"||z===null)return!1;for(var H=z;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(z)===H}function v(z,H,se){var de;if(typeof H=="function"&&typeof se=="function"||typeof se=="function"&&typeof arguments[3]=="function")throw new Error(d(0));if(typeof H=="function"&&se===void 0&&(se=H,H=void 0),se!==void 0){if(typeof se!="function")throw new Error(d(1));return se(v)(z,H)}if(typeof z!="function")throw new Error(d(2));var we=z,Se=H,Re=[],me=Re,ye=!1;function be(){me===Re&&(me=Re.slice())}function Be(){if(ye)throw new Error(d(3));return Se}function Q(ie){if(typeof ie!="function")throw new Error(d(4));if(ye)throw new Error(d(5));var fe=!0;return be(),me.push(ie),function(){if(fe){if(ye)throw new Error(d(6));fe=!1,be();var O=me.indexOf(ie);me.splice(O,1),Re=null}}}function le(ie){if(!s(ie))throw new Error(d(7));if(ie.type===void 0)throw new Error(d(8));if(ye)throw new Error(d(9));try{ye=!0,Se=we(Se,ie)}finally{ye=!1}for(var fe=Re=me,O=0;O<fe.length;O++)(0,fe[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:Q,getState:Be,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(d(10));we=ie,le({type:a.REPLACE})}})[C]=function(){var ie,fe=Q;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(d(11));function m(){O.next&&O.next(Be())}return m(),{unsubscribe:fe(m)}}})[C]=function(){return this},ie},de}function f(){for(var z=arguments.length,H=new Array(z),se=0;se<z;se++)H[se]=arguments[se];return H.length===0?function(de){return de}:H.length===1?H[0]:H.reduce(function(de,we){return function(){return de(we.apply(void 0,arguments))}})}var g=n(6148);const h={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var u=n(549),_=n(9369);const S={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},I=function(z,H,se){if(z[se.container]||(z[se.container]={}),z[se.container][se.field]||(z[se.container][se.field]={}),z[se.container][se.field][se.value]){const Re=se.value.lastIndexOf(">"),me=Re>-1?se.value.slice(0,Re-1):null;if(delete z[se.container][se.field][se.value],me&&(de=z[se.container][se.field],we=me,!(Object.keys(de).filter(function(ye){return ye.indexOf(we+" >")>-1}).length>0))){const ye=H.indexOf(me);ye>-1&&H.splice(ye,1)}}else{z[se.container][se.field][se.value]="true";for(let me in z[se.container])for(let ye in z[se.container][me])ye.indexOf(se.value+" >")===0&&delete z[se.container][me][ye];H=H.filter(me=>me.indexOf(se.value+" > ")!==0);const Re=se.value.split(" > ").reduce((me,ye)=>{const be=me[me.length-1],Be=be?be+" > "+ye:ye;return Be!==se.value&&me.push(Be),me},[]);for(let me in z[se.container])for(let ye in z[se.container][me])Re.indexOf(ye)!==-1&&delete z[se.container][me][ye];H=H.filter(me=>Re.indexOf(me)===-1).concat(Re)}var de,we;const Se=H.indexOf(se.value);return Se>-1&&H.splice(Se,1),{activeHierarchicalFacetState:z,indeterminateHierarchicalFacets:H}};var T=n(6993);const P={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var N=n(5756);const q={page:1};var j=n(9770),D=n(1944),L=n(1543);const V={started:!1,keyword:null,results:{},loading:!1,aiAnswersResult:{},loadingAiAnswersResult:!1,aiAnswersResultError:!1,aiAnswerSentiment:"neutral",isAiAnswersAnswerExpanded:!1,isAiAnswersHidden:!1,searchResultsPageUrl:null};var J=n(4826);const oe={pendingSegments:[]};var ne=n(6353);const Y={field:["relevance"],order:[ne.ER]},W={};var X=n(6843);const ue={fieldStats:{}};var xe=n(878);const Ae={container:null,recommendType:null,results:null};var Ce=function(z){for(var H=Object.keys(z),se={},de=0;de<H.length;de++){var we=H[de];typeof z[we]=="function"&&(se[we]=z[we])}var Se,Re=Object.keys(se);try{(function(me){Object.keys(me).forEach(function(ye){var be=me[ye];if(be(void 0,{type:a.INIT})===void 0)throw new Error(d(12));if(be(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(d(13))})})(se)}catch(me){Se=me}return function(me,ye){if(me===void 0&&(me={}),Se)throw Se;for(var be=!1,Be={},Q=0;Q<Re.length;Q++){var le=Re[Q],ie=se[le],fe=me[le],O=ie(fe,ye);if(O===void 0)throw ye&&ye.type,new Error(d(14));Be[le]=O,be=be||O!==fe}return(be=be||Re.length!==Object.keys(me).length)?Be:me}}({autocomplete:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case g.VW:let se=[...z.pendingRequests];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},z,{pendingRequests:se});case g.vT:return Object.assign({},z,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case g.nn:return Object.assign({},z,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case g.KR:let de=[...z.pendingRequests];return de.indexOf(g.Pf)!==-1&&de.splice(de.indexOf(g.Pf),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case g.kw:let we=[...z.pendingRequests];return we.indexOf(g.Xr)!==-1&&we.splice(we.indexOf(g.Xr),1),Object.assign({},z,{pendingRequests:we,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case g.Km:return Object.assign({},z,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case g.p3:const Se=Object.assign({},z.searchResults);Se[H.jsonKey]=H.results.hits;const Re=Object.assign({},z.searchResultsStats);H.appendResults===!0&&z.searchResults[H.jsonKey]?Se[H.jsonKey]=[...z.searchResults[H.jsonKey],...H.results.hits]:(Re[H.jsonKey]||(Re[H.jsonKey]={}),Re[H.jsonKey].total_hits=H.results.total_hits,Re[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...z.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},z,{keyword:H.keyword,pendingRequests:me,searchResults:Se,searchResultsStats:Re,visible:!0,appendResults:H.appendResults===!0});case g.GB:return Object.assign({},z,{visible:!1,activeSuggestionIndex:null});case g.B5:return Object.assign({},z,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case g.h$:return Object.assign({},z,{visible:!0,dropRendering:!1});case g.FJ:return Object.assign({},z,{hideAutomatically:H.hideAutomatically});case g.d5:return Object.assign({},z,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case g.hx:let ye=z.activeSuggestionIndex;if(z.suggestions.length&&z.customFields.length)ye=null;else{const be=z.suggestions.length?"suggestions":"customFields";H.direction===g.Jd?ye===null&&z[be].length>0?ye=0:ye===z[be].length-1?ye=null:ye+=1:H.direction===g.il&&(ye===null&&z[be].length>0?ye=z[be].length-1:ye===0?ye=null:ye-=1)}return Object.assign({},z,{visible:!0,activeSuggestionIndex:ye,setSuggestionToSearchField:!0});default:return z}},filters:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case u.XI:let se=z.allAvailableFilters.slice();if(H.filterObj.type===_.FILTER_TYPE.RANGE){let Be={};Be[H.filterObj.field]={label:H.filterObj.labelShort?H.filterObj.labelShort:H.filterObj.label},se.push(Be)}else if(H.filterObj.options){const Be=Object.assign({},H.filterObj.options);se.push(Be)}return Object.assign({},z,{allAvailableFilters:se});case u.CY:let de=Object.assign({},z.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},z,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case u.Uj:let we=Object.assign({},z.activeRangeFilters);return we[H.field]={},H.from!==null&&(we[H.field].gte=H.from),H.to!==null&&(we[H.field].lte=H.to),H.from===null&&H.to===null&&delete we[H.field],Object.assign({},z,{activeRangeFilters:we,refreshSearch:!0});case u.vj:return Object.assign({},z,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case u.Tv:return Object.assign({},z,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case u.uR:return Object.assign({},z,{activeFilters:H.json||{},refreshSearch:!1});case u.VN:return Object.assign({},z,{activeFacets:H.json||{},refreshSearch:!1});case u.JS:return Object.assign({},z,{activeRangeFacets:Object.assign({},z.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case u.cl:let Se=Object.assign({},z.activeFacets);return Se[H.field]||(Se[H.field]={}),Se[H.field][H.value]?delete Se[H.field][H.value]:Se[H.field][H.value]="true",Se.v=Se.v?Se.v+1:1,Object.assign({},z,{activeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.QW:let Re=Object.assign({},z.activeHierarchicalFacets),me=z.indeterminateHierarchicalFacets.slice();const ye=I(Re,me,H);return Re=ye.activeHierarchicalFacetState,me=ye.indeterminateHierarchicalFacets,Re.v=Re.v?Re.v+1:1,Object.assign({},z,{activeHierarchicalFacets:Re,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case u.IS:let be=Object.assign({},z.activeRangeFacets);return be[H.field]||(be[H.field]={}),be[H.field][H.key]?delete be[H.field][H.key]:be[H.field][H.key]={gte:H.values.min,lt:H.values.max,key:H.key},be.v=be.v?be.v+1:1,Object.assign({},z,{activeRangeFacets:be,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return z}},keyword:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case T.QR:return Object.assign({},z,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case T.Le:return Object.assign({},z,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return z}},pagination:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q,H=arguments.length>1?arguments[1]:void 0;return H.type===N.N?Object.assign({},z,{page:H.page}):z},search:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case D.d3:return Object.assign({},z,{started:!0});case D.y$:return Object.assign({},z,{keyword:null,results:{},loading:!1,aiAnswersResult:{},aiAnswersResultError:!1,loadingAiAnswersResult:!1,aiAnswersSentiment:"neutral",dropReturningResults:!0});case D.xE:return Object.assign({},z,{loading:!0,dropReturningResults:!1});case D.mY:if(z.started||console.log("WARNING: AddSearch UI not started with the start() function"),z.dropReturningResults===!0)return z;if(H.keyword.indexOf(j.H)===0)return Object.assign({},z,{loading:!1});let se=H.results;if(H.appendResults===!0&&z.results.hits){const de=[...z.results.hits,...H.results.hits];se.hits=de}return Object.assign({},z,{keyword:H.keyword,results:se,loading:!1,callBy:H.requestBy});case L.Lt:return Object.assign({},z,{loadingAiAnswersResult:H.payload});case L.FW:return Object.assign({},z,{aiAnswersResult:H.payload});case L.mQ:return Object.assign({},z,{aiAnswersResultError:H.payload});case L.wF:return Object.assign({},z,{aiAnswersSentiment:H.payload});case L.Rn:return Object.assign({},z,{isAiAnswersAnswerExpanded:H.payload});case L.jK:return Object.assign({},z,{isAiAnswersHidden:H.payload});case D.j2:return Object.assign({},z,{searchResultsPageUrl:H.url});default:return z}},segmentedsearch:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case J.lD:let se=[...z.pendingSegments];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},z,{pendingSegments:se,dropReturningResults:!1});case J.JK:if(H.keyword.indexOf(j.H)===0||z.dropReturningResults===!0)return z;const de={};de[H.jsonKey]=H.results;let we=[...z.pendingSegments];return we.indexOf(H.jsonKey)!==-1&&we.splice(we.indexOf(H.jsonKey),1),Object.assign({},z,de,{pendingSegments:we});case J.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return z}},sortby:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ne.O0?Object.assign({},z,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):z},fieldstats:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ue,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case X.IJ:return Object.assign({},z,{fieldStats:H.fieldStats,callBy:H.callBy});case X.nb:return Object.assign({},z,{fieldStats:{}});default:return z}},recommendation:function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ae,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case xe.iM:case xe.OU:return Object.assign({},z,{container:H.container,recommendType:H.recommendType,results:H.results});case xe.KE:return Object.assign({},Ae);default:return z}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function He(z){return function(H){var se=H.dispatch,de=H.getState;return function(we){return function(Se){return typeof Se=="function"?Se(se,de,z):we(Se)}}}}var Fe=He();Fe.withExtraArgument=He;var Ke=Fe;function Me(z){const H={configuration:z};let se=f;return z.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(se=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),v(Ce,H,se(function(){for(var de=arguments.length,we=new Array(de),Se=0;Se<de;Se++)we[Se]=arguments[Se];return function(Re){return function(){var me=Re.apply(void 0,arguments),ye=function(){throw new Error(d(15))},be={getState:me.getState,dispatch:function(){return ye.apply(void 0,arguments)}},Be=we.map(function(Q){return Q(be)});return ye=f.apply(void 0,Be)(me.dispatch),e(e({},me),{},{dispatch:ye})}}}(Ke)))}function We(z,H,se){let de={};function we(){const Re=z.getState()[H];JSON.stringify(Re)!==JSON.stringify(de[H])&&(de[H]=Re,se(de[H]))}let Se=z.subscribe(we);return we(),Se}},6351:function(w,c,n){n.d(c,{$P:function(){return _},ME:function(){return u},b8:function(){return e},d_:function(){return l},mh:function(){return f}});const y=2500;let r=null;function e(T){r=T}function d(T){r&&r(T)}let C=!0;function l(T){C=T}let a=null,s=null,v=!1;function f(T,P,N,q){if(C===!1)return;const j="search";a&&clearTimeout(a),a=setTimeout(()=>{P!==s&&(T.sendStatsEvent(j,P,{numberOfResults:N}),d({action:j,keyword:P,numberOfResults:N,processingTimeMs:q}),s=P,v=!0)},y)}let g=null,h=null;function u(T,P){C===!1||!P||P.length<1||(g&&clearTimeout(g),g=setTimeout(()=>{T!==h&&(P.forEach(N=>N.client.sendStatsEvent("search",T,{numberOfResults:N.numberOfResults})),h=T,v=!0)},y))}function _(T,P,N){if(P&&P.length>0)for(let q=0;q<P.length;q++)P[q].addEventListener("keyup",j=>{j.keyCode===13&&I(j,T,N)}),P[q].addEventListener("pointerdown",j=>{j.button&&j.buttons&&j.button===j.buttons||I(j,T,N)})}function S(T){const P=T.getAttribute("data-analytics-click");return T.nodeName==="BODY"||T.nodeName==="body"?null:P||S(T.parentNode)}function I(T,P,N){if(C===!1)return;const q=S(T.target),j=function(L,V,J){if(V&&V.hits){const oe=((V.page||1)-1)*L;for(let ne=0;ne<V.hits.length;ne++)if(V.hits[ne].id===J)return oe+(ne+1)}return 0}(P.getSettings().paging.pageSize,N,q),D=P.getSettings().keyword;if(P.sendStatsEvent("click",D,{documentId:q,position:j}),d({action:"click",keyword:D,documentId:q,position:j}),v===!1){const L=N?N.total_hits:0,V=N?N.processing_time_ms:0;P.sendStatsEvent("search",D,{numberOfResults:L}),d({action:"search",keyword:D,numberOfResults:L,processingTimeMs:V})}}},4379:function(w,c,n){function y(e,d,C,l){const a=e.querySelectorAll("["+d+"]");for(let s=0;s<a.length;s++)a[s].addEventListener(C,v=>{l(v.target.getAttribute(d))})}function r(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return r},h:function(){return y}})},3923:function(w,c,n){n.d(c,{GK:function(){return l},bp:function(){return f},g3:function(){return v},ud:function(){return s}});var y=n(2334),r=n.n(y),e=n(261),d=n.n(e),C=n(7435);function l(g,h){const u=g.categories||[];let _="",S=1;h=(0,C.y)(h);do _=u.length>S?u[S]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),S++;while(_.length<3&&u.length>S);return h&&h[_]?h[_]:_.replace(/[-_]+/g," ")}let a=null;function s(){v("equals",(g,h,u)=>g+""==h+""?u.fn(this):u.inverse(this)),v("not",(g,h,u)=>g+""!=h+""?u.fn(this):u.inverse(this)),v("gt",(g,h,u)=>g>h?u.fn(this):u.inverse(this)),v("lt",(g,h,u)=>g<h?u.fn(this):u.inverse(this)),v("or",(g,h,u)=>g||h?u.fn(this):u.inverse(this)),v("formatPrice",(g,h,u)=>{if(g===void 0||typeof g!="number"||!h||!u)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(h,{style:"currency",currency:u,minimumFractionDigits:2})),a)return a.format(g)}catch{}return g/100+" "+u})}function v(g,h){r().registerHelper(g,h),d().registerHelper(g,h)}function f(g,h){r().registerPartial(g,h),d().registerPartial(g,h)}},4903:function(w,c,n){n.d(c,{Dh:function(){return v},I5:function(){return g},IR:function(){return S},lG:function(){return I},sh:function(){return l}});var y=n(9770),r=n(6993),e=n(5756),d=n(549),C=n(6353);const l={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let s=null;function v(T,P,N,q){const j=q.getState();j&&j.configuration&&j.configuration.updateBrowserHistory===!1||(N?(s&&clearTimeout(s),s=setTimeout(()=>{f(T,P)},a)):f(T,P))}function f(T,P){if(T===l.SEARCH&&P&&P.indexOf(y.H)===0)return;let N=window.location.href;N.indexOf("#")!==-1&&(N=N.substring(0,N.indexOf("#")));const q=window.location.hash||"",j=u(N);T===l.PAGE&&P==1||T===l.SEARCH&&P==y.Z?delete j[T]:T&&P!==null&&P!==""?j[T]=P:T&&delete j[T];let D=N;N.indexOf("?")!==-1&&(D=N.substring(0,N.indexOf("?"))),JSON.stringify(j)!==JSON.stringify({})&&(D=D+"?"+function(L){let V="";for(let J in L)if(L.hasOwnProperty(J)){V!==""&&(V+="&");let oe="";if(J==="addsearchUnrelatedParams"){V+=L[J].split("&").join("&");continue}L[J]!==null&&L[J]!==void 0&&J!=="addsearchUnrelatedParams"&&(oe="="+encodeURIComponent(L[J])),V=V+J+oe}return V}(j)),D+=q,history.state===null?history.replaceState(j,"",D):JSON.stringify(history.state)!==JSON.stringify(j)&&history.pushState(j,"",D)}function g(T,P,N,q,j,D){const L=u(window.location.href);h(T,P,L,N,q,!1,D),window.onpopstate=V=>{const J=u(window.location.href);h(T,P,J,N,q,j,D)}}function h(T,P,N,q,j,D,L){let V=!1;if(N[l.FILTERS]){const J=_(N[l.FILTERS]);P.dispatch((0,d.eu)(J)),V=!0}if(N[l.FACETS]){const J=_(N[l.FACETS]);P.dispatch((0,d.Xh)(J)),V=!0}if(N[l.RANGE_FACETS]){const J=_(N[l.RANGE_FACETS]);P.dispatch((0,d.ks)(J)),V=!0}if(V){const J=q(P.getState().filters,L);T.setFilterObject(J)}else P.dispatch((0,d.eu)(null)),P.dispatch((0,d.Xh)(null)),T.setFilterObject(L||null);if(N[l.SORTBY]){const J=_(N[l.SORTBY]);P.dispatch((0,C.Ul)(T,J.field,J.order))}if(N[l.PAGE])P.dispatch((0,e.I)(T,parseInt(N[l.PAGE],10),null,P));else{const J=T.getSettings().paging;P.dispatch((0,e.I)(T,J.page,null,P))}if(N[l.SEARCH]){const J=decodeURIComponent(N[l.SEARCH]);P.dispatch((0,r.Ai)(J,!0,null,!0)),j(J)}else D===!0&&(P.dispatch((0,r.Ai)(y.Z,!0,null,!0)),j(y.Z))}function u(T){if(T.indexOf("?")===-1)return{};let P=T.substring(T.indexOf("?")+1);if(P==="")return{};P.indexOf("#")!==-1&&(P=P.substring(0,P.indexOf("#")));let N={};const q=P.split("&"),j=q.filter(L=>L.indexOf(l.SEARCH)===-1&&L.indexOf(l.PAGE)===-1&&L.indexOf(l.SORTBY)===-1&&L.indexOf(l.FILTERS)===-1&&L.indexOf(l.FACETS)===-1&&L.indexOf(l.RANGE_FACETS)===-1),D=q.filter(L=>!j.includes(L));return j.length&&(N.addsearchUnrelatedParams=j.join("&")),D.forEach(L=>{const V=L.split("=");if(V[0]&&V[0].length>0){let J=null;V.length>1&&(J=V[1]||"",J=J.replace(/\+/g,"%20"),J=decodeURIComponent(J)),N[V[0]]=J}}),N}function _(T){try{return JSON.parse(T)}catch{}return null}function S(T){return Object.keys(T).length>0?(delete T.v,JSON.stringify(T)):null}function I(T,P){T.indexOf("?")===-1?window.location.href=T+"?"+l.SEARCH+"="+encodeURIComponent(P):window.location.href=T+"&"+l.SEARCH+"="+encodeURIComponent(P)}},7435:function(w,c,n){function y(e){return!e||Object.keys(e).length===0}function r(e){if(e)return Object.keys(e).reduce((d,C)=>(d[C.toLowerCase()]=e[C],d),{})}n.d(c,{I:function(){return y},y:function(){return r}})},9491:function(w){function c(n,y){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var r=Object(n),e=1;e<arguments.length;e++){var d=arguments[e];if(d!=null)for(var C=Object.keys(Object(d)),l=0,a=C.length;l<a;l++){var s=C[l],v=Object.getOwnPropertyDescriptor(d,s);v!==void 0&&v.enumerable&&(r[s]=d[s])}}return r}w.exports={assign:c,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:c})}}},3787:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <div class="item">
137
+ <span>`+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):s)+`</span>
138
+ <button data-type="`+h(typeof(s=(s=u(d,"type")||(e!=null?u(e,"type"):e))!=null?s:f)===g?s.call(v,{name:"type",hash:{},data:l,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):s)+'" data-name="'+h(typeof(s=(s=u(d,"name")||(e!=null?u(e,"name"):e))!=null?s:f)===g?s.call(v,{name:"name",hash:{},data:l,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):s)+'" data-value="'+h(typeof(s=(s=u(d,"value")||(e!=null?u(e,"value"):e))!=null?s:f)===g?s.call(v,{name:"value",hash:{},data:l,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):s)+`"
139
139
  `+((a=u(d,"if").call(v,e!=null?u(e,"rangeMin"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:14},end:{line:6,column:66}}}))!=null?a:"")+`
140
140
  `+((a=u(d,"if").call(v,e!=null?u(e,"rangeMax"):e,{name:"if",hash:{},fn:r.program(4,l,0),inverse:r.noop,data:l,loc:{start:{line:7,column:8},end:{line:7,column:60}}}))!=null?a:"")+`
141
141
  `+((a=u(d,"if").call(v,e!=null?u(e,"container"):e,{name:"if",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:8,column:8},end:{line:8,column:62}}}))!=null?a:"")+`
142
142
  `+((a=u(d,"if").call(v,e!=null?u(e,"confFields"):e,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:9,column:8},end:{line:9,column:66}}}))!=null?a:"")+` >&#215;</button>
143
143
  </div>
144
- `},2:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-min="'+r.escapeExpression(typeof(a=(a=o(d,"rangeMin")||(e!=null?o(e,"rangeMin"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMin",hash:{},data:l,loc:{start:{line:6,column:46},end:{line:6,column:58}}}):a)+'"'},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-max="'+r.escapeExpression(typeof(a=(a=o(d,"rangeMax")||(e!=null?o(e,"rangeMax"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMax",hash:{},data:l,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):a)+'"'},6:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-container="'+r.escapeExpression(typeof(a=(a=o(d,"container")||(e!=null?o(e,"container"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"container",hash:{},data:l,loc:{start:{line:8,column:41},end:{line:8,column:54}}}):a)+'"'},8:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-conf-fields="'+r.escapeExpression(typeof(a=(a=o(d,"confFields")||(e!=null?o(e,"confFields"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"confFields",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:58}}}):a)+'"'},10:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(o(d,"gt")||e&&o(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),(a=e!=null?o(e,"active"):e)!=null?o(a,"length"):a,1,{name:"gt",hash:{},fn:r.program(11,l,0),inverse:r.noop,data:l,loc:{start:{line:13,column:4},end:{line:15,column:11}}}))!=null?a:""},11:function(r,e,d,C,l){return` <div class="item"><button data-clearall="true">Clear all</button></div>
145
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return`<div class="addsearch-active-filters">
146
- `+((a=v(d,"each").call(o,e!=null?v(e,"active"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?a:"")+((a=v(d,"if").call(o,e!=null?v(e,"clearAll"):e,{name:"if",hash:{},fn:r.program(10,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},209:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
147
- `+((v=f(d,"each").call(e??(r.nullContext||{}),o[1]!=null?f(o[1],"suggestions"):o[1],{name:"each",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))!=null?v:"")+` </ul>
148
- `},2:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return' <li data-keyword="'+_(typeof(f=(f=k(d,"value")||(e!=null?k(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:5,column:26},end:{line:5,column:35}}}):f)+'" data-index="'+_(typeof(f=(f=k(d,"index")||l&&k(l,"index"))!=null?f:h)===u?f.call(g,{name:"index",hash:{},data:l,loc:{start:{line:5,column:49},end:{line:5,column:59}}}):f)+'" '+((v=(k(d,"equals")||e&&k(e,"equals")||h).call(g,o[2]!=null?k(o[2],"activeSuggestionIndex"):o[2],l&&k(l,"index"),{name:"equals",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:5,column:61},end:{line:5,column:132}}}))!=null?v:"")+`>
149
- `+_(typeof(f=(f=k(d,"value")||(e!=null?k(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:6,column:10},end:{line:6,column:19}}}):f)+`
150
- </li>
151
- `},3:function(r,e,d,C,l){return'class="active"'},5:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
152
- `+((v=f(d,"each").call(e??(r.nullContext||{}),o[1]!=null?f(o[1],"customFields"):o[1],{name:"each",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))!=null?v:"")+` </ul>
153
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-autocomplete">
154
- `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"suggestions"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:10,column:9}}}))!=null?v:"")+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"customFields"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(5,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:11,column:2},end:{line:19,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},881:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <label class="toggle-switch">
155
- <input type="checkbox" `+((a=o(d,"unless").call(e??(r.nullContext||{}),e!=null?o(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:30,column:33},end:{line:30,column:71}}}))!=null?a:"")+`>
144
+ `},2:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-min="'+r.escapeExpression(typeof(a=(a=s(d,"rangeMin")||(e!=null?s(e,"rangeMin"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMin",hash:{},data:l,loc:{start:{line:6,column:46},end:{line:6,column:58}}}):a)+'"'},4:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-range-max="'+r.escapeExpression(typeof(a=(a=s(d,"rangeMax")||(e!=null?s(e,"rangeMax"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"rangeMax",hash:{},data:l,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):a)+'"'},6:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-container="'+r.escapeExpression(typeof(a=(a=s(d,"container")||(e!=null?s(e,"container"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"container",hash:{},data:l,loc:{start:{line:8,column:41},end:{line:8,column:54}}}):a)+'"'},8:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return'data-conf-fields="'+r.escapeExpression(typeof(a=(a=s(d,"confFields")||(e!=null?s(e,"confFields"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"confFields",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:58}}}):a)+'"'},10:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(s(d,"gt")||e&&s(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),(a=e!=null?s(e,"active"):e)!=null?s(a,"length"):a,1,{name:"gt",hash:{},fn:r.program(11,l,0),inverse:r.noop,data:l,loc:{start:{line:13,column:4},end:{line:15,column:11}}}))!=null?a:""},11:function(r,e,d,C,l){return` <div class="item"><button data-clearall="true">Clear all</button></div>
145
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=e??(r.nullContext||{}),v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return`<div class="addsearch-active-filters">
146
+ `+((a=v(d,"each").call(s,e!=null?v(e,"active"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?a:"")+((a=v(d,"if").call(s,e!=null?v(e,"clearAll"):e,{name:"if",hash:{},fn:r.program(10,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},5230:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <label class="toggle-switch">
147
+ <input type="checkbox" `+((a=s(d,"unless").call(e??(r.nullContext||{}),e!=null?s(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:30,column:33},end:{line:30,column:71}}}))!=null?a:"")+`>
156
148
  <span class="slider round"></span>
157
149
  </label>
158
- `},2:function(r,e,d,C,l){return"checked"},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"hadError"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.program(7,l,0),data:l,loc:{start:{line:37,column:4},end:{line:171,column:11}}}))!=null?a:""},5:function(r,e,d,C,l){return` <div class='error-message'>
150
+ `},2:function(r,e,d,C,l){return"checked"},4:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=s(d,"if").call(e??(r.nullContext||{}),e!=null?s(e,"hadError"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.program(7,l,0),data:l,loc:{start:{line:37,column:4},end:{line:171,column:11}}}))!=null?a:""},5:function(r,e,d,C,l){return` <div class='error-message'>
159
151
  <h2 class='error-message-headline'>Unable to generate AI Answer at this time.</h2>
160
152
  <p class='error-message-text'></p>We apologize for the inconvenience. Please try again later.</p>
161
153
  </div>
162
- `},7:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return((a=h(d,"if").call(v,e!=null?h(e,"isResultLoading"):e,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:44,column:6},end:{line:62,column:13}}}))!=null?a:"")+` <h4 class='sub-headline'>Question: "`+g(typeof(o=(o=h(d,"subHeadlineText")||(e!=null?h(e,"subHeadlineText"):e))!=null?o:f)=="function"?o.call(v,{name:"subHeadlineText",hash:{},data:l,loc:{start:{line:63,column:42},end:{line:63,column:61}}}):o)+`"</h4>
154
+ `},7:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return((a=h(d,"if").call(v,e!=null?h(e,"isResultLoading"):e,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:44,column:6},end:{line:62,column:13}}}))!=null?a:"")+` <h4 class='sub-headline'>Question: "`+g(typeof(s=(s=h(d,"subHeadlineText")||(e!=null?h(e,"subHeadlineText"):e))!=null?s:f)=="function"?s.call(v,{name:"subHeadlineText",hash:{},data:l,loc:{start:{line:63,column:42},end:{line:63,column:61}}}):s)+`"</h4>
163
155
  <div>
164
156
  <div class='answer-container'>
165
157
  <div class='fade-out-overlay'></div>
@@ -266,15 +258,15 @@ Please report this to https://github.com/markedjs/marked.`,pe){const T="<p>An er
266
258
  </clipPath>
267
259
  </defs>
268
260
  </svg>
269
- `},18:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <div class='sources'>
270
- <h4 class='sources-headline'>`+r.escapeExpression(typeof(o=(o=f(d,"sourcesHeadlineText")||(e!=null?f(e,"sourcesHeadlineText"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(v,{name:"sourcesHeadlineText",hash:{},data:l,loc:{start:{line:140,column:43},end:{line:140,column:66}}}):o)+`</h4>
261
+ `},18:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <div class='sources'>
262
+ <h4 class='sources-headline'>`+r.escapeExpression(typeof(s=(s=f(d,"sourcesHeadlineText")||(e!=null?f(e,"sourcesHeadlineText"):e))!=null?s:r.hooks.helperMissing)=="function"?s.call(v,{name:"sourcesHeadlineText",hash:{},data:l,loc:{start:{line:140,column:43},end:{line:140,column:66}}}):s)+`</h4>
271
263
  <div class='sources-list'>
272
264
  `+((a=f(d,"each").call(v,e!=null?f(e,"sources"):e,{name:"each",hash:{},fn:r.program(19,l,0),inverse:r.noop,data:l,loc:{start:{line:142,column:16},end:{line:146,column:25}}}))!=null?a:"")+` </div>
273
265
  </div>
274
- `},19:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return" <a href='"+g(typeof(a=(a=h(d,"url")||(e!=null?h(e,"url"):e))!=null?a:v)===f?a.call(o,{name:"url",hash:{},data:l,loc:{start:{line:143,column:27},end:{line:143,column:34}}}):a)+`' class='source'>
275
- `+g(typeof(a=(a=h(d,"title")||(e!=null?h(e,"title"):e))!=null?a:v)===f?a.call(o,{name:"title",hash:{},data:l,loc:{start:{line:144,column:20},end:{line:144,column:29}}}):a)+`
266
+ `},19:function(r,e,d,C,l){var a,s=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return" <a href='"+g(typeof(a=(a=h(d,"url")||(e!=null?h(e,"url"):e))!=null?a:v)===f?a.call(s,{name:"url",hash:{},data:l,loc:{start:{line:143,column:27},end:{line:143,column:34}}}):a)+`' class='source'>
267
+ `+g(typeof(a=(a=h(d,"title")||(e!=null?h(e,"title"):e))!=null?a:v)===f?a.call(s,{name:"title",hash:{},data:l,loc:{start:{line:144,column:20},end:{line:144,column:29}}}):a)+`
276
268
  </a>
277
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class='addsearch-conversational-search-result'>
269
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class='addsearch-ai-answers-result'>
278
270
  <div class='header'>
279
271
  <div>
280
272
  <div class='main-headline'>
@@ -291,91 +283,100 @@ Please report this to https://github.com/markedjs/marked.`,pe){const T="<p>An er
291
283
  />
292
284
  </svg>
293
285
 
294
- <h3 class='main-headline-text'>`+h(typeof(o=(o=u(d,"mainHeadlineText")||(e!=null?u(e,"mainHeadlineText"):e))!=null?o:f)===g?o.call(v,{name:"mainHeadlineText",hash:{},data:l,loc:{start:{line:18,column:39},end:{line:18,column:59}}}):o)+`</h3>
286
+ <h3 class='main-headline-text'>`+h(typeof(s=(s=u(d,"mainHeadlineText")||(e!=null?u(e,"mainHeadlineText"):e))!=null?s:f)===g?s.call(v,{name:"mainHeadlineText",hash:{},data:l,loc:{start:{line:18,column:39},end:{line:18,column:59}}}):s)+`</h3>
295
287
  </div>
296
288
  <p class='ai-explanation-text-mobile'>
297
- `+h(typeof(o=(o=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?o:f)===g?o.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:21,column:8},end:{line:21,column:29}}}):o)+`
289
+ `+h(typeof(s=(s=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?s:f)===g?s.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:21,column:8},end:{line:21,column:29}}}):s)+`
298
290
  </p>
299
291
  </div>
300
292
  <div class="header-right-hand-side-container" >
301
293
  <p class='ai-explanation-text'>
302
- `+h(typeof(o=(o=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?o:f)===g?o.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:26,column:8},end:{line:26,column:29}}}):o)+`
294
+ `+h(typeof(s=(s=u(d,"aiExplanationText")||(e!=null?u(e,"aiExplanationText"):e))!=null?s:f)===g?s.call(v,{name:"aiExplanationText",hash:{},data:l,loc:{start:{line:26,column:8},end:{line:26,column:29}}}):s)+`
303
295
  </p>
304
296
  `+((a=u(d,"if").call(v,e!=null?u(e,"showHideToggle"):e,{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:28,column:6},end:{line:33,column:13}}}))!=null?a:"")+` </div>
305
297
  </div>
306
- `+((a=u(d,"unless").call(v,e!=null?u(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(4,l,0),inverse:r.noop,data:l,loc:{start:{line:36,column:2},end:{line:172,column:13}}}))!=null?a:"")+"</div>"},useData:!0})},1353:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <li data-facet="'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):a)+`">
298
+ `+((a=u(d,"unless").call(v,e!=null?u(e,"isHidden"):e,{name:"unless",hash:{},fn:r.program(4,l,0),inverse:r.noop,data:l,loc:{start:{line:36,column:2},end:{line:172,column:13}}}))!=null?a:"")+`</div>
299
+ `},useData:!0})},209:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l,a,s){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
300
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),s[1]!=null?f(s[1],"suggestions"):s[1],{name:"each",hash:{},fn:r.program(2,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))!=null?v:"")+` </ul>
301
+ `},2:function(r,e,d,C,l,a,s){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,S=r.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return' <li data-keyword="'+_(typeof(f=(f=S(d,"value")||(e!=null?S(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:5,column:26},end:{line:5,column:35}}}):f)+'" data-index="'+_(typeof(f=(f=S(d,"index")||l&&S(l,"index"))!=null?f:h)===u?f.call(g,{name:"index",hash:{},data:l,loc:{start:{line:5,column:49},end:{line:5,column:59}}}):f)+'" '+((v=(S(d,"equals")||e&&S(e,"equals")||h).call(g,s[2]!=null?S(s[2],"activeSuggestionIndex"):s[2],l&&S(l,"index"),{name:"equals",hash:{},fn:r.program(3,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:5,column:61},end:{line:5,column:132}}}))!=null?v:"")+`>
302
+ `+_(typeof(f=(f=S(d,"value")||(e!=null?S(e,"value"):e))!=null?f:h)===u?f.call(g,{name:"value",hash:{},data:l,loc:{start:{line:6,column:10},end:{line:6,column:19}}}):f)+`
303
+ </li>
304
+ `},3:function(r,e,d,C,l){return'class="active"'},5:function(r,e,d,C,l,a,s){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return` <ul class="suggestions">
305
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),s[1]!=null?f(s[1],"customFields"):s[1],{name:"each",hash:{},fn:r.program(2,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))!=null?v:"")+` </ul>
306
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-autocomplete">
307
+ `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"suggestions"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:10,column:9}}}))!=null?v:"")+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,(v=e!=null?h(e,"customFields"):e)!=null?h(v,"length"):v,0,{name:"gt",hash:{},fn:r.program(5,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:11,column:2},end:{line:19,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},1353:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s=e??(r.nullContext||{}),v=r.hooks.helperMissing,f="function",g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <li data-facet="'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(s,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):a)+`">
307
308
  <label>
308
- <input type="checkbox" value="`+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:49}}}):a)+'" /><span>'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(o,{name:"value",hash:{},data:l,loc:{start:{line:6,column:59},end:{line:6,column:68}}}):a)+"</span> <em>("+g(typeof(a=(a=h(d,"count")||(e!=null?h(e,"count"):e))!=null?a:v)===f?a.call(o,{name:"count",hash:{},data:l,loc:{start:{line:6,column:81},end:{line:6,column:90}}}):a)+`)</em>
309
+ <input type="checkbox" value="`+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(s,{name:"value",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:49}}}):a)+'" /><span>'+g(typeof(a=(a=h(d,"value")||(e!=null?h(e,"value"):e))!=null?a:v)===f?a.call(s,{name:"value",hash:{},data:l,loc:{start:{line:6,column:59},end:{line:6,column:68}}}):a)+"</span> <em>("+g(typeof(a=(a=h(d,"count")||(e!=null?h(e,"count"):e))!=null?a:v)===f?a.call(s,{name:"count",hash:{},data:l,loc:{start:{line:6,column:81},end:{line:6,column:90}}}):a)+`)</em>
309
310
  </label>
310
311
  </li>
311
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
312
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
312
313
  <ul>
313
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))!=null?a:"")+` </ul>
314
- </div>`},useData:!0})},3668:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return` <label>
315
- <input type="checkbox" data-filter="`+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:42},end:{line:4,column:50}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:52},end:{line:4,column:80}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:81},end:{line:4,column:90}}}):o)+`
314
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))!=null?a:"")+` </ul>
315
+ </div>`},useData:!0})},3668:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <label>
316
+ <input type="checkbox" data-filter="`+h(typeof(s=(s=u(d,"key")||l&&u(l,"key"))!=null?s:f)===g?s.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:42},end:{line:4,column:50}}}):s)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:52},end:{line:4,column:80}}}))!=null?a:"")+">"+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:81},end:{line:4,column:90}}}):s)+`
316
317
  </label>
317
- `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-checkboxgroup">
318
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},8810:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return` <label>
319
- <input type="radio" name=`+g(r.lambda(o[1]!=null?k(o[1],"containerId"):o[1],e))+' value="'+g(typeof(f=(f=k(d,"key")||l&&k(l,"key"))!=null?f:u)===_?f.call(h,{name:"key",hash:{},data:l,loc:{start:{line:4,column:57},end:{line:4,column:65}}}):f)+'" '+((v=k(d,"if").call(h,e!=null?k(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:67},end:{line:4,column:95}}}))!=null?v:"")+">"+g(typeof(f=(f=k(d,"label")||(e!=null?k(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:96},end:{line:4,column:105}}}):f)+`
318
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-checkboxgroup">
319
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},8810:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l,a,s){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",S=r.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return` <label>
320
+ <input type="radio" name=`+g(r.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+' value="'+g(typeof(f=(f=S(d,"key")||l&&S(l,"key"))!=null?f:u)===_?f.call(h,{name:"key",hash:{},data:l,loc:{start:{line:4,column:57},end:{line:4,column:65}}}):f)+'" '+((v=S(d,"if").call(h,e!=null?S(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:4,column:67},end:{line:4,column:95}}}))!=null?v:"")+">"+g(typeof(f=(f=S(d,"label")||(e!=null?S(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:96},end:{line:4,column:105}}}):f)+`
320
321
  </label>
321
- `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-filters-radiogroup">
322
- `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"<button>&#215;</button>"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class="addsearch-filters-range">
323
- <label>`+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:2,column:9},end:{line:2,column:18}}}):o)+`</label>
324
- <input type="text" name="from" value="`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:3,column:40},end:{line:3,column:48}}}):o)+'" placeholder="'+h(typeof(o=(o=u(d,"fromPlaceholder")||(e!=null?u(e,"fromPlaceholder"):e))!=null?o:f)===g?o.call(v,{name:"fromPlaceholder",hash:{},data:l,loc:{start:{line:3,column:63},end:{line:3,column:82}}}):o)+'"> - <input type="text" name="to" value="'+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:3,column:123},end:{line:3,column:129}}}):o)+'" placeholder="'+h(typeof(o=(o=u(d,"toPlaceholder")||(e!=null?u(e,"toPlaceholder"):e))!=null?o:f)===g?o.call(v,{name:"toPlaceholder",hash:{},data:l,loc:{start:{line:3,column:144},end:{line:3,column:161}}}):o)+`">
322
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-filters-radiogroup">
323
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){return"<button>&#215;</button>"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class="addsearch-filters-range">
324
+ <label>`+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:2,column:9},end:{line:2,column:18}}}):s)+`</label>
325
+ <input type="text" name="from" value="`+h(typeof(s=(s=u(d,"from")||(e!=null?u(e,"from"):e))!=null?s:f)===g?s.call(v,{name:"from",hash:{},data:l,loc:{start:{line:3,column:40},end:{line:3,column:48}}}):s)+'" placeholder="'+h(typeof(s=(s=u(d,"fromPlaceholder")||(e!=null?u(e,"fromPlaceholder"):e))!=null?s:f)===g?s.call(v,{name:"fromPlaceholder",hash:{},data:l,loc:{start:{line:3,column:63},end:{line:3,column:82}}}):s)+'"> - <input type="text" name="to" value="'+h(typeof(s=(s=u(d,"to")||(e!=null?u(e,"to"):e))!=null?s:f)===g?s.call(v,{name:"to",hash:{},data:l,loc:{start:{line:3,column:123},end:{line:3,column:129}}}):s)+'" placeholder="'+h(typeof(s=(s=u(d,"toPlaceholder")||(e!=null?u(e,"toPlaceholder"):e))!=null?s:f)===g?s.call(v,{name:"toPlaceholder",hash:{},data:l,loc:{start:{line:3,column:144},end:{line:3,column:161}}}):s)+`">
325
326
  `+((a=(u(d,"or")||e&&u(e,"or")||f).call(v,e!=null?u(e,"from"):e,e!=null?u(e,"to"):e,{name:"or",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:2},end:{line:4,column:47}}}))!=null?a:"")+`
326
- </div>`},useData:!0})},948:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <option value="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:21},end:{line:4,column:29}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:31},end:{line:4,column:60}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:70}}}):o)+`</option>
327
- `},2:function(r,e,d,C,l){return"selected"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-selectlist">
327
+ </div>`},useData:!0})},948:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <option value="'+h(typeof(s=(s=u(d,"key")||l&&u(l,"key"))!=null?s:f)===g?s.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:21},end:{line:4,column:29}}}):s)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:31},end:{line:4,column:60}}}))!=null?a:"")+">"+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:70}}}):s)+`</option>
328
+ `},2:function(r,e,d,C,l){return"selected"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-selectlist">
328
329
  <select>
329
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
330
- </div>`},useData:!0})},1572:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <button data-filter="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:27},end:{line:4,column:35}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:37},end:{line:4,column:72}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:73},end:{line:4,column:82}}}):o)+`</button>
331
- `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tabs">
330
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
331
+ </div>`},useData:!0})},1572:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <button data-filter="'+h(typeof(s=(s=u(d,"key")||l&&u(l,"key"))!=null?s:f)===g?s.call(v,{name:"key",hash:{},data:l,loc:{start:{line:4,column:27},end:{line:4,column:35}}}):s)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:37},end:{line:4,column:72}}}))!=null?a:"")+">"+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:73},end:{line:4,column:82}}}):s)+`</button>
332
+ `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tabs">
332
333
  <div class="tabs">
333
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </div>
334
- </div>`},useData:!0})},5509:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <button data-filter="'+h(typeof(o=(o=u(d,"key")||l&&u(l,"key"))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:3,column:25},end:{line:3,column:33}}}):o)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:35},end:{line:3,column:70}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:3,column:71},end:{line:3,column:80}}}):o)+`</button>
335
- `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tags">
336
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},4278:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<ul class="addsearch-hierarchical-facets">
337
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+`</ul>
338
- `},usePartial:!0,useData:!0})},2009:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"shrink"},3:function(r,e,d,C,l){return"adds-visibility-hidden"},5:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <ul class="addsearch-facet-child-container">
339
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"children"):e,{name:"each",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:8},end:{line:14,column:17}}}))!=null?a:"")+` </ul>
340
- `},6:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<li>
341
- <div class="adds-facet-wrap `+((a=u(d,"if").call(v,(u(d,"validateOpenState")||e&&u(e,"validateOpenState")||f).call(v,e!=null?u(e,"value"):e,{name:"validateOpenState",hash:{},data:l,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?a:"")+'" data-facet="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:2,column:90},end:{line:2,column:99}}}):o)+`">
334
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </div>
335
+ </div>`},useData:!0})},5509:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <button data-filter="'+h(typeof(s=(s=u(d,"key")||l&&u(l,"key"))!=null?s:f)===g?s.call(v,{name:"key",hash:{},data:l,loc:{start:{line:3,column:25},end:{line:3,column:33}}}):s)+'" '+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:35},end:{line:3,column:70}}}))!=null?a:"")+">"+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:3,column:71},end:{line:3,column:80}}}):s)+`</button>
336
+ `},2:function(r,e,d,C,l){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-filters-tags">
337
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},4278:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<ul class="addsearch-hierarchical-facets">
338
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"facets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+`</ul>
339
+ `},usePartial:!0,useData:!0})},2009:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){return"shrink"},3:function(r,e,d,C,l){return"adds-visibility-hidden"},5:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return` <ul class="addsearch-facet-child-container">
340
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"children"):e,{name:"each",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:12,column:8},end:{line:14,column:17}}}))!=null?a:"")+` </ul>
341
+ `},6:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<li>
342
+ <div class="adds-facet-wrap `+((a=u(d,"if").call(v,(u(d,"validateOpenState")||e&&u(e,"validateOpenState")||f).call(v,e!=null?u(e,"value"):e,{name:"validateOpenState",hash:{},data:l,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?a:"")+'" data-facet="'+h(typeof(s=(s=u(d,"value")||(e!=null?u(e,"value"):e))!=null?s:f)===g?s.call(v,{name:"value",hash:{},data:l,loc:{start:{line:2,column:90},end:{line:2,column:99}}}):s)+`">
342
343
  <div class="adds-facet-container">
343
344
  <span class="addsearch-facet-group-expansion-arrow `+((a=u(d,"unless").call(v,e!=null?u(e,"children"):e,{name:"unless",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:57},end:{line:4,column:110}}}))!=null?a:"")+`"></span>
344
- <label title="`+h(typeof(o=(o=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?o:f)===g?o.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:5,column:20},end:{line:5,column:36}}}):o)+"("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):o)+`)">
345
- <input type="checkbox" value="`+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:6,column:38},end:{line:6,column:47}}}):o)+'" data-field="'+h(typeof(o=(o=u(d,"field")||(e!=null?u(e,"field"):e))!=null?o:f)===g?o.call(v,{name:"field",hash:{},data:l,loc:{start:{line:6,column:61},end:{line:6,column:70}}}):o)+`" />
346
- <span>`+h(typeof(o=(o=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?o:f)===g?o.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:7,column:14},end:{line:7,column:30}}}):o)+"</span> <em>("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:7,column:43},end:{line:7,column:52}}}):o)+`)</em>
345
+ <label title="`+h(typeof(s=(s=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?s:f)===g?s.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:5,column:20},end:{line:5,column:36}}}):s)+"("+h(typeof(s=(s=u(d,"count")||(e!=null?u(e,"count"):e))!=null?s:f)===g?s.call(v,{name:"count",hash:{},data:l,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):s)+`)">
346
+ <input type="checkbox" value="`+h(typeof(s=(s=u(d,"value")||(e!=null?u(e,"value"):e))!=null?s:f)===g?s.call(v,{name:"value",hash:{},data:l,loc:{start:{line:6,column:38},end:{line:6,column:47}}}):s)+'" data-field="'+h(typeof(s=(s=u(d,"field")||(e!=null?u(e,"field"):e))!=null?s:f)===g?s.call(v,{name:"field",hash:{},data:l,loc:{start:{line:6,column:61},end:{line:6,column:70}}}):s)+`" />
347
+ <span>`+h(typeof(s=(s=u(d,"displayValue")||(e!=null?u(e,"displayValue"):e))!=null?s:f)===g?s.call(v,{name:"displayValue",hash:{},data:l,loc:{start:{line:7,column:14},end:{line:7,column:30}}}):s)+"</span> <em>("+h(typeof(s=(s=u(d,"count")||(e!=null?u(e,"count"):e))!=null?s:f)===g?s.call(v,{name:"count",hash:{},data:l,loc:{start:{line:7,column:43},end:{line:7,column:52}}}):s)+`)</em>
347
348
  </label>
348
349
  </div>
349
350
  `+((a=u(d,"if").call(v,e!=null?u(e,"children"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.noop,data:l,loc:{start:{line:10,column:4},end:{line:16,column:11}}}))!=null?a:"")+` </div>
350
351
  </li>
351
- `},usePartial:!0,useData:!0})},8905:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(o(d,"gt")||e&&o(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?o(e,"totalHits"):e,0,{name:"gt",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))!=null?a:""},2:function(r,e,d,C,l){return` <span>Loading more..</span>
352
- `},4:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"hasMorePages"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?a:""},5:function(r,e,d,C,l){var a,o=e??(r.nullContext||{}),v=r.hooks.helperMissing,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return((a=(f(d,"equals")||e&&f(e,"equals")||v).call(o,e!=null?f(e,"type"):e,"BUTTON",{name:"equals",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:7,column:4},end:{line:9,column:15}}}))!=null?a:"")+((a=(f(d,"equals")||e&&f(e,"equals")||v).call(o,e!=null?f(e,"type"):e,"INFINITE_SCROLL",{name:"equals",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:10,column:4},end:{line:12,column:15}}}))!=null?a:"")+" "},6:function(r,e,d,C,l){return` <button>Load more</button>
352
+ `},usePartial:!0,useData:!0})},8905:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=(s(d,"gt")||e&&s(e,"gt")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?s(e,"totalHits"):e,0,{name:"gt",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))!=null?a:""},2:function(r,e,d,C,l){return` <span>Loading more..</span>
353
+ `},4:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=s(d,"if").call(e??(r.nullContext||{}),e!=null?s(e,"hasMorePages"):e,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?a:""},5:function(r,e,d,C,l){var a,s=e??(r.nullContext||{}),v=r.hooks.helperMissing,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return((a=(f(d,"equals")||e&&f(e,"equals")||v).call(s,e!=null?f(e,"type"):e,"BUTTON",{name:"equals",hash:{},fn:r.program(6,l,0),inverse:r.noop,data:l,loc:{start:{line:7,column:4},end:{line:9,column:15}}}))!=null?a:"")+((a=(f(d,"equals")||e&&f(e,"equals")||v).call(s,e!=null?f(e,"type"):e,"INFINITE_SCROLL",{name:"equals",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:10,column:4},end:{line:12,column:15}}}))!=null?a:"")+" "},6:function(r,e,d,C,l){return` <button>Load more</button>
353
354
  `},8:function(r,e,d,C,l){return` <span class="loadmore-infinite-scroll"></span>
354
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-loadmore">
355
- `+((a=o(d,"if").call(e??(r.nullContext||{}),e!=null?o(e,"isLoading"):e,{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.program(4,l,0),data:l,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},4245:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return` <button data-page="previous" aria-label="Previous page">❮</button>
356
- `},3:function(r,e,d,C,l,a,o){var v,f=r.lambda,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <button data-page="'+g(f(e,e))+'" aria-label="Go to results page '+g(f(e,e))+'" '+((v=(h(d,"equals")||e&&h(e,"equals")||r.hooks.helperMissing).call(e??(r.nullContext||{}),o[1]!=null?h(o[1],"currentPage"):o[1],e,{name:"equals",hash:{},fn:r.program(4,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:6,column:74},end:{line:6,column:154}}}))!=null?v:"")+`>
355
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-loadmore">
356
+ `+((a=s(d,"if").call(e??(r.nullContext||{}),e!=null?s(e,"isLoading"):e,{name:"if",hash:{},fn:r.program(1,l,0),inverse:r.program(4,l,0),data:l,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},4245:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){return` <button data-page="previous" aria-label="Previous page">❮</button>
357
+ `},3:function(r,e,d,C,l,a,s){var v,f=r.lambda,g=r.escapeExpression,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return' <button data-page="'+g(f(e,e))+'" aria-label="Go to results page '+g(f(e,e))+'" '+((v=(h(d,"equals")||e&&h(e,"equals")||r.hooks.helperMissing).call(e??(r.nullContext||{}),s[1]!=null?h(s[1],"currentPage"):s[1],e,{name:"equals",hash:{},fn:r.program(4,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:6,column:74},end:{line:6,column:154}}}))!=null?v:"")+`>
357
358
  `+g(f(e,e))+`
358
359
  </button>
359
360
  `},4:function(r,e,d,C,l){return'data-active="true" aria-current="true"'},6:function(r,e,d,C,l){return` <button data-page="next" aria-label="Next page">❯</button>
360
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-pagination">
361
- `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,e!=null?h(e,"currentPage"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:9}}}))!=null?v:"")+((v=h(d,"each").call(f,e!=null?h(e,"pages"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:5,column:2},end:{line:9,column:11}}}))!=null?v:"")+((v=(h(d,"lt")||e&&h(e,"lt")||g).call(f,e!=null?h(e,"currentPage"):e,e!=null?h(e,"lastPage"):e,{name:"lt",hash:{},fn:r.program(6,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:10,column:2},end:{line:12,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},6427:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return' <li data-facet="'+h(typeof(o=(o=u(d,"value")||(e!=null?u(e,"value"):e))!=null?o:f)===g?o.call(v,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):o)+'" '+((a=u(d,"unless").call(v,e!=null?u(e,"count"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:33},end:{line:4,column:82}}}))!=null?a:"")+`>
361
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f=e??(r.nullContext||{}),g=r.hooks.helperMissing,h=r.lookupProperty||function(u,_){if(Object.prototype.hasOwnProperty.call(u,_))return u[_]};return`<div class="addsearch-pagination">
362
+ `+((v=(h(d,"gt")||e&&h(e,"gt")||g).call(f,e!=null?h(e,"currentPage"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:4,column:9}}}))!=null?v:"")+((v=h(d,"each").call(f,e!=null?h(e,"pages"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:5,column:2},end:{line:9,column:11}}}))!=null?v:"")+((v=(h(d,"lt")||e&&h(e,"lt")||g).call(f,e!=null?h(e,"currentPage"):e,e!=null?h(e,"lastPage"):e,{name:"lt",hash:{},fn:r.program(6,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:10,column:2},end:{line:12,column:9}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},6427:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <li data-facet="'+h(typeof(s=(s=u(d,"value")||(e!=null?u(e,"value"):e))!=null?s:f)===g?s.call(v,{name:"value",hash:{},data:l,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):s)+'" '+((a=u(d,"unless").call(v,e!=null?u(e,"count"):e,{name:"unless",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:33},end:{line:4,column:82}}}))!=null?a:"")+`>
362
363
  <label>
363
- <input type="checkbox" value="`+h(typeof(o=(o=u(d,"key")||(e!=null?u(e,"key"):e))!=null?o:f)===g?o.call(v,{name:"key",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:47}}}):o)+`"
364
- data-value-min="`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:7,column:33},end:{line:7,column:41}}}):o)+`"
365
- data-value-max="`+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:8,column:33},end:{line:8,column:39}}}):o)+`" />
366
- <span>`+h(typeof(o=(o=u(d,"from")||(e!=null?u(e,"from"):e))!=null?o:f)===g?o.call(v,{name:"from",hash:{},data:l,loc:{start:{line:9,column:16},end:{line:9,column:24}}}):o)+"-"+h(typeof(o=(o=u(d,"to")||(e!=null?u(e,"to"):e))!=null?o:f)===g?o.call(v,{name:"to",hash:{},data:l,loc:{start:{line:9,column:25},end:{line:9,column:31}}}):o)+"</span> <em>("+h(typeof(o=(o=u(d,"count")||(e!=null?u(e,"count"):e))!=null?o:f)===g?o.call(v,{name:"count",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:53}}}):o)+`)</em>
364
+ <input type="checkbox" value="`+h(typeof(s=(s=u(d,"key")||(e!=null?u(e,"key"):e))!=null?s:f)===g?s.call(v,{name:"key",hash:{},data:l,loc:{start:{line:6,column:40},end:{line:6,column:47}}}):s)+`"
365
+ data-value-min="`+h(typeof(s=(s=u(d,"from")||(e!=null?u(e,"from"):e))!=null?s:f)===g?s.call(v,{name:"from",hash:{},data:l,loc:{start:{line:7,column:33},end:{line:7,column:41}}}):s)+`"
366
+ data-value-max="`+h(typeof(s=(s=u(d,"to")||(e!=null?u(e,"to"):e))!=null?s:f)===g?s.call(v,{name:"to",hash:{},data:l,loc:{start:{line:8,column:33},end:{line:8,column:39}}}):s)+`" />
367
+ <span>`+h(typeof(s=(s=u(d,"from")||(e!=null?u(e,"from"):e))!=null?s:f)===g?s.call(v,{name:"from",hash:{},data:l,loc:{start:{line:9,column:16},end:{line:9,column:24}}}):s)+"-"+h(typeof(s=(s=u(d,"to")||(e!=null?u(e,"to"):e))!=null?s:f)===g?s.call(v,{name:"to",hash:{},data:l,loc:{start:{line:9,column:25},end:{line:9,column:31}}}):s)+"</span> <em>("+h(typeof(s=(s=u(d,"count")||(e!=null?u(e,"count"):e))!=null?s:f)===g?s.call(v,{name:"count",hash:{},data:l,loc:{start:{line:9,column:44},end:{line:9,column:53}}}):s)+`)</em>
367
368
  </label>
368
369
  </li>
369
- `},2:function(r,e,d,C,l){return'style="display: none"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
370
+ `},2:function(r,e,d,C,l){return'style="display: none"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-facets">
370
371
  <ul>
371
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"rangeFacets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:12,column:13}}}))!=null?a:"")+` </ul>
372
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"rangeFacets"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:12,column:13}}}))!=null?a:"")+` </ul>
372
373
  </div>
373
- `},useData:!0})},1204:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lambda,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-range-slider">
374
+ `},useData:!0})},1204:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lambda,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-range-slider">
374
375
  <div class="adds-range-slider-container"
375
- data-slider-min="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"min"):a,e))+`"
376
- data-slider-max="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"max"):a,e))+`"
377
- data-slider-start="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"start"):a,e))+`"
378
- data-slider-end="`+v(o((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"end"):a,e))+`">
376
+ data-slider-min="`+v(s((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"min"):a,e))+`"
377
+ data-slider-max="`+v(s((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"max"):a,e))+`"
378
+ data-slider-start="`+v(s((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"start"):a,e))+`"
379
+ data-slider-end="`+v(s((a=e!=null?f(e,"sliderConfig"):e)!=null?f(a,"end"):a,e))+`">
379
380
  </div>
380
381
  <div class="adds-range-slider-display">
381
382
  <span>
@@ -386,62 +387,62 @@ Please report this to https://github.com/markedjs/marked.`,pe){const T="<p>An er
386
387
  </span>
387
388
  </div>
388
389
  </div>
389
- `},useData:!0})},8505:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"icon"},3:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' <button type="button" aria-label="Search button" >'+r.escapeExpression(typeof(a=(a=o(d,"button")||(e!=null?o(e,"button"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"button",hash:{},data:l,loc:{start:{line:7,column:56},end:{line:7,column:66}}}):a)+`</button>
390
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchfield-container">
390
+ `},useData:!0})},8505:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){return"icon"},3:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' <button type="button" aria-label="Search button" >'+r.escapeExpression(typeof(a=(a=s(d,"button")||(e!=null?s(e,"button"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"button",hash:{},data:l,loc:{start:{line:7,column:56},end:{line:7,column:66}}}):a)+`</button>
391
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchfield-container">
391
392
  <form class="addsearch-searchfield" autocomplete="off" action="?" role="search">
392
393
  <div class="search-field-wrapper">
393
- <input type="search" placeholder="`+r.escapeExpression(typeof(o=(o=g(d,"placeholder")||(e!=null?g(e,"placeholder"):e))!=null?o:f)=="function"?o.call(v,{name:"placeholder",hash:{},data:l,loc:{start:{line:4,column:40},end:{line:4,column:55}}}):o)+'" aria-label="Search field" class="'+((a=(g(d,"not")||e&&g(e,"not")||f).call(v,e!=null?g(e,"icon"):e,!1,{name:"not",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:90},end:{line:4,column:121}}}))!=null?a:"")+`" />
394
+ <input type="search" placeholder="`+r.escapeExpression(typeof(s=(s=g(d,"placeholder")||(e!=null?g(e,"placeholder"):e))!=null?s:f)=="function"?s.call(v,{name:"placeholder",hash:{},data:l,loc:{start:{line:4,column:40},end:{line:4,column:55}}}):s)+'" aria-label="Search field" class="'+((a=(g(d,"not")||e&&g(e,"not")||f).call(v,e!=null?g(e,"icon"):e,!1,{name:"not",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:90},end:{line:4,column:121}}}))!=null?a:"")+`" />
394
395
  </div>
395
396
  `+((a=g(d,"if").call(v,e!=null?g(e,"button"):e,{name:"if",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))!=null?a:"")+` </form>
396
- </div>`},useData:!0})},303:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-searchresults addsearch-searchresults-no-results">
397
- <h2>No search results with keyword <em>`+r.escapeExpression(typeof(a=(a=o(d,"keyword")||(e!=null?o(e,"keyword"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"keyword",hash:{},data:l,loc:{start:{line:2,column:41},end:{line:2,column:52}}}):a)+`</em></h2>
398
- </div>`},useData:!0})},2123:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return"Page "+r.escapeExpression(r.lambda(o[1]!=null?v(o[1],"page"):o[1],e))+" of "},3:function(r,e,d,C,l){return"+"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return`<div class="number-of-results">
399
- `+((v=(u(d,"gt")||e&&u(e,"gt")||h).call(g,e!=null?u(e,"page"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:2,column:43}}}))!=null?v:"")+`
400
- `+r.escapeExpression(typeof(f=(f=u(d,"total_hits")||(e!=null?u(e,"total_hits"):e))!=null?f:h)=="function"?f.call(g,{name:"total_hits",hash:{},data:l,loc:{start:{line:3,column:2},end:{line:3,column:16}}}):f)+((v=(u(d,"equals")||e&&u(e,"equals")||h).call(g,e!=null?u(e,"total_hits"):e,1e4,{name:"equals",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:3,column:16},end:{line:3,column:56}}}))!=null?v:"")+` results
397
+ </div>`},useData:!0})},303:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-searchresults addsearch-searchresults-no-results">
398
+ <h2>No search results with keyword <em>`+r.escapeExpression(typeof(a=(a=s(d,"keyword")||(e!=null?s(e,"keyword"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"keyword",hash:{},data:l,loc:{start:{line:2,column:41},end:{line:2,column:52}}}):a)+`</em></h2>
399
+ </div>`},useData:!0})},2123:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l,a,s){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return"Page "+r.escapeExpression(r.lambda(s[1]!=null?v(s[1],"page"):s[1],e))+" of "},3:function(r,e,d,C,l){return"+"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class="number-of-results">
400
+ `+((v=(u(d,"gt")||e&&u(e,"gt")||h).call(g,e!=null?u(e,"page"):e,1,{name:"gt",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:2,column:43}}}))!=null?v:"")+`
401
+ `+r.escapeExpression(typeof(f=(f=u(d,"total_hits")||(e!=null?u(e,"total_hits"):e))!=null?f:h)=="function"?f.call(g,{name:"total_hits",hash:{},data:l,loc:{start:{line:3,column:2},end:{line:3,column:16}}}):f)+((v=(u(d,"equals")||e&&u(e,"equals")||h).call(g,e!=null?u(e,"total_hits"):e,1e4,{name:"equals",hash:{},fn:r.program(3,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:3,column:16},end:{line:3,column:56}}}))!=null?v:"")+` results
401
402
  </div>
402
- `},useData:!0,useDepths:!0})},4111:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){return"noimage"},3:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' style="background-image: url(data:image/jpeg;base64,'+r.escapeExpression(r.lambda((a=e!=null?o(e,"images"):e)!=null?o(a,"main_b64"):a,e))+')"'},5:function(r,e,d,C,l){var a,o,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,e))+'" alt="'+v(typeof(o=(o=f(d,"title")||(e!=null?f(e,"title"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:2,column:53},end:{line:2,column:62}}}):o)+`" />
403
- `},7:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=o(d,"if").call(e??(r.nullContext||{}),(a=e!=null?o(e,"style"):e)!=null?o(a,"image_url"):a,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?a:""},8:function(r,e,d,C,l){var a,o,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"style"):e)!=null?f(a,"image_url"):a,e))+'" alt="'+v(typeof(o=(o=f(d,"title")||(e!=null?f(e,"title"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:3,column:65},end:{line:3,column:74}}}):o)+'" />'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<span class="main-image '+r.escapeExpression(typeof(o=(o=f(d,"document_type")||(e!=null?f(e,"document_type"):e))!=null?o:r.hooks.helperMissing)=="function"?o.call(v,{name:"document_type",hash:{},data:l,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):o)+" "+((a=f(d,"unless").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"unless",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:42},end:{line:1,column:83}}}))!=null?a:"")+'"'+((a=f(d,"if").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"if",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:84},end:{line:1,column:184}}}))!=null?a:"")+`>
403
+ `},useData:!0,useDepths:!0})},4111:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){return"noimage"},3:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return' style="background-image: url(data:image/jpeg;base64,'+r.escapeExpression(r.lambda((a=e!=null?s(e,"images"):e)!=null?s(a,"main_b64"):a,e))+')"'},5:function(r,e,d,C,l){var a,s,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,e))+'" alt="'+v(typeof(s=(s=f(d,"title")||(e!=null?f(e,"title"):e))!=null?s:r.hooks.helperMissing)=="function"?s.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:2,column:53},end:{line:2,column:62}}}):s)+`" />
404
+ `},7:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return(a=s(d,"if").call(e??(r.nullContext||{}),(a=e!=null?s(e,"style"):e)!=null?s(a,"image_url"):a,{name:"if",hash:{},fn:r.program(8,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?a:""},8:function(r,e,d,C,l){var a,s,v=r.escapeExpression,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<img src="'+v(r.lambda((a=e!=null?f(e,"style"):e)!=null?f(a,"image_url"):a,e))+'" alt="'+v(typeof(s=(s=f(d,"title")||(e!=null?f(e,"title"):e))!=null?s:r.hooks.helperMissing)=="function"?s.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:3,column:65},end:{line:3,column:74}}}):s)+'" />'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return'<span class="main-image '+r.escapeExpression(typeof(s=(s=f(d,"document_type")||(e!=null?f(e,"document_type"):e))!=null?s:r.hooks.helperMissing)=="function"?s.call(v,{name:"document_type",hash:{},data:l,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):s)+" "+((a=f(d,"unless").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"unless",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:42},end:{line:1,column:83}}}))!=null?a:"")+'"'+((a=f(d,"if").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"if",hash:{},fn:r.program(3,l,0),inverse:r.noop,data:l,loc:{start:{line:1,column:84},end:{line:1,column:184}}}))!=null?a:"")+`>
404
405
  `+((a=f(d,"if").call(v,(a=e!=null?f(e,"images"):e)!=null?f(a,"main"):a,{name:"if",hash:{},fn:r.program(5,l,0),inverse:r.program(7,l,0),data:l,loc:{start:{line:2,column:2},end:{line:3,column:85}}}))!=null?a:"")+`
405
406
  </span>
406
- `},useData:!0})},6873:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2123),e,{name:"numberOfResultsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},3:function(r,e,d,C,l,a,o){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return' <div class="hit'+((v=(k(d,"equals")||e&&k(e,"equals")||h).call(g,e!=null?k(e,"type"):e,"PROMOTED",{name:"equals",hash:{},fn:r.program(4,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:9,column:19},end:{line:9,column:66}}}))!=null?v:"")+`">
407
+ `},useData:!0})},6873:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a;return(a=r.invokePartial(n(2123),e,{name:"numberOfResultsTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?a:""},3:function(r,e,d,C,l,a,s){var v,f,g=e??(r.nullContext||{}),h=r.hooks.helperMissing,u="function",_=r.escapeExpression,S=r.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return' <div class="hit'+((v=(S(d,"equals")||e&&S(e,"equals")||h).call(g,e!=null?S(e,"type"):e,"PROMOTED",{name:"equals",hash:{},fn:r.program(4,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:9,column:19},end:{line:9,column:66}}}))!=null?v:"")+`">
407
408
  <h3>
408
- <a href="`+_(typeof(f=(f=k(d,"url")||(e!=null?k(e,"url"):e))!=null?f:h)===u?f.call(g,{name:"url",hash:{},data:l,loc:{start:{line:11,column:17},end:{line:11,column:24}}}):f)+'" data-analytics-click="'+_(typeof(f=(f=k(d,"id")||(e!=null?k(e,"id"):e))!=null?f:h)===u?f.call(g,{name:"id",hash:{},data:l,loc:{start:{line:11,column:48},end:{line:11,column:54}}}):f)+'">'+((v=k(d,"if").call(g,e!=null?k(e,"title"):e,{name:"if",hash:{},fn:r.program(6,l,0,a,o),inverse:r.program(8,l,0,a,o),data:l,loc:{start:{line:11,column:56},end:{line:11,column:133}}}))!=null?v:"")+`</a>
409
+ <a href="`+_(typeof(f=(f=S(d,"url")||(e!=null?S(e,"url"):e))!=null?f:h)===u?f.call(g,{name:"url",hash:{},data:l,loc:{start:{line:11,column:17},end:{line:11,column:24}}}):f)+'" data-analytics-click="'+_(typeof(f=(f=S(d,"id")||(e!=null?S(e,"id"):e))!=null?f:h)===u?f.call(g,{name:"id",hash:{},data:l,loc:{start:{line:11,column:48},end:{line:11,column:54}}}):f)+'">'+((v=S(d,"if").call(g,e!=null?S(e,"title"):e,{name:"if",hash:{},fn:r.program(6,l,0,a,s),inverse:r.program(8,l,0,a,s),data:l,loc:{start:{line:11,column:56},end:{line:11,column:133}}}))!=null?v:"")+`</a>
409
410
  </h3>
410
411
  <div class="highlight">
411
- `+((v=r.invokePartial(n(4111),e,{name:"searchResultImageTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?v:"")+" "+((v=typeof(f=(f=k(d,"highlight")||(e!=null?k(e,"highlight"):e))!=null?f:h)===u?f.call(g,{name:"highlight",hash:{},data:l,loc:{start:{line:15,column:8},end:{line:15,column:23}}}):f)!=null?v:"")+((v=(k(d,"not")||e&&k(e,"not")||h).call(g,e!=null?k(e,"type"):e,"PROMOTED",{name:"not",hash:{},fn:r.program(10,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:15,column:23},end:{line:15,column:62}}}))!=null?v:"")+`
412
+ `+((v=r.invokePartial(n(4111),e,{name:"searchResultImageTemplate",data:l,indent:" ",helpers:d,partials:C,decorators:r.decorators}))!=null?v:"")+" "+((v=typeof(f=(f=S(d,"highlight")||(e!=null?S(e,"highlight"):e))!=null?f:h)===u?f.call(g,{name:"highlight",hash:{},data:l,loc:{start:{line:15,column:8},end:{line:15,column:23}}}):f)!=null?v:"")+((v=(S(d,"not")||e&&S(e,"not")||h).call(g,e!=null?S(e,"type"):e,"PROMOTED",{name:"not",hash:{},fn:r.program(10,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:15,column:23},end:{line:15,column:62}}}))!=null?v:"")+`
412
413
  </div>
413
- `+((v=(k(d,"gt")||e&&k(e,"gt")||h).call(g,(v=e!=null?k(e,"categories"):e)!=null?k(v,"length"):v,1,{name:"gt",hash:{},fn:r.program(12,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:17,column:6},end:{line:21,column:13}}}))!=null?v:"")+` </div>
414
- `},4:function(r,e,d,C,l){return" promoted"},6:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return" "+r.escapeExpression(typeof(a=(a=o(d,"title")||(e!=null?o(e,"title"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:11,column:70},end:{line:11,column:79}}}):a)+" "},8:function(r,e,d,C,l){var a=r.lookupProperty||function(o,v){if(Object.prototype.hasOwnProperty.call(o,v))return o[v]};return" "+r.escapeExpression((a(d,"removeTrailingQueriesFromUrl")||e&&a(e,"removeTrailingQueriesFromUrl")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?a(e,"url"):e,{name:"removeTrailingQueriesFromUrl",hash:{},data:l,loc:{start:{line:11,column:89},end:{line:11,column:125}}}))+" "},10:function(r,e,d,C,l){return"&#8230;"},12:function(r,e,d,C,l,a,o){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return` <div class="category">
415
- `+r.escapeExpression((v(d,"selectCategory")||e&&v(e,"selectCategory")||r.hooks.helperMissing).call(e??(r.nullContext||{}),o[1],{name:"selectCategory",hash:{},data:l,loc:{start:{line:19,column:10},end:{line:19,column:31}}}))+`
414
+ `+((v=(S(d,"gt")||e&&S(e,"gt")||h).call(g,(v=e!=null?S(e,"categories"):e)!=null?S(v,"length"):v,1,{name:"gt",hash:{},fn:r.program(12,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:17,column:6},end:{line:21,column:13}}}))!=null?v:"")+` </div>
415
+ `},4:function(r,e,d,C,l){return" promoted"},6:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return" "+r.escapeExpression(typeof(a=(a=s(d,"title")||(e!=null?s(e,"title"):e))!=null?a:r.hooks.helperMissing)=="function"?a.call(e??(r.nullContext||{}),{name:"title",hash:{},data:l,loc:{start:{line:11,column:70},end:{line:11,column:79}}}):a)+" "},8:function(r,e,d,C,l){var a=r.lookupProperty||function(s,v){if(Object.prototype.hasOwnProperty.call(s,v))return s[v]};return" "+r.escapeExpression((a(d,"removeTrailingQueriesFromUrl")||e&&a(e,"removeTrailingQueriesFromUrl")||r.hooks.helperMissing).call(e??(r.nullContext||{}),e!=null?a(e,"url"):e,{name:"removeTrailingQueriesFromUrl",hash:{},data:l,loc:{start:{line:11,column:89},end:{line:11,column:125}}}))+" "},10:function(r,e,d,C,l){return"&#8230;"},12:function(r,e,d,C,l,a,s){var v=r.lookupProperty||function(f,g){if(Object.prototype.hasOwnProperty.call(f,g))return f[g]};return` <div class="category">
416
+ `+r.escapeExpression((v(d,"selectCategory")||e&&v(e,"selectCategory")||r.hooks.helperMissing).call(e??(r.nullContext||{}),s[1],{name:"selectCategory",hash:{},data:l,loc:{start:{line:19,column:10},end:{line:19,column:31}}}))+`
416
417
  </div>
417
- `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=e??(r.nullContext||{}),g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchresults">
418
- `+((v=g(d,"if").call(f,e!=null?g(e,"resultcount"):e,{name:"if",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:2},end:{line:6,column:9}}}))!=null?v:"")+`
419
- `+((v=g(d,"each").call(f,e!=null?g(e,"hits"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:8,column:2},end:{line:23,column:11}}}))!=null?v:"")+`</div>
420
- `},usePartial:!0,useData:!0,useDepths:!0})},6868:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l,a,o){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",k=r.lookupProperty||function(A,I){if(Object.prototype.hasOwnProperty.call(A,I))return A[I]};return` <label>
421
- <input type="radio" name=`+g(r.lambda(o[1]!=null?k(o[1],"containerId"):o[1],e))+" data-field="+g(typeof(f=(f=k(d,"sortBy")||(e!=null?k(e,"sortBy"):e))!=null?f:u)===_?f.call(h,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:71}}}):f)+" data-order="+g(typeof(f=(f=k(d,"order")||(e!=null?k(e,"order"):e))!=null?f:u)===_?f.call(h,{name:"order",hash:{},data:l,loc:{start:{line:4,column:83},end:{line:4,column:92}}}):f)+' value="" '+((v=k(d,"if").call(h,e!=null?k(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:4,column:102},end:{line:4,column:130}}}))!=null?v:"")+">"+g(typeof(f=(f=k(d,"label")||(e!=null?k(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:131},end:{line:4,column:140}}}):f)+`
418
+ `},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f=e??(r.nullContext||{}),g=r.lookupProperty||function(h,u){if(Object.prototype.hasOwnProperty.call(h,u))return h[u]};return`<div class="addsearch-searchresults">
419
+ `+((v=g(d,"if").call(f,e!=null?g(e,"resultcount"):e,{name:"if",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:4,column:2},end:{line:6,column:9}}}))!=null?v:"")+`
420
+ `+((v=g(d,"each").call(f,e!=null?g(e,"hits"):e,{name:"each",hash:{},fn:r.program(3,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:8,column:2},end:{line:23,column:11}}}))!=null?v:"")+`</div>
421
+ `},usePartial:!0,useData:!0,useDepths:!0})},6868:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l,a,s){var v,f,g=r.escapeExpression,h=e??(r.nullContext||{}),u=r.hooks.helperMissing,_="function",S=r.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return` <label>
422
+ <input type="radio" name=`+g(r.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+" data-field="+g(typeof(f=(f=S(d,"sortBy")||(e!=null?S(e,"sortBy"):e))!=null?f:u)===_?f.call(h,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:61},end:{line:4,column:71}}}):f)+" data-order="+g(typeof(f=(f=S(d,"order")||(e!=null?S(e,"order"):e))!=null?f:u)===_?f.call(h,{name:"order",hash:{},data:l,loc:{start:{line:4,column:83},end:{line:4,column:92}}}):f)+' value="" '+((v=S(d,"if").call(h,e!=null?S(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:4,column:102},end:{line:4,column:130}}}))!=null?v:"")+">"+g(typeof(f=(f=S(d,"label")||(e!=null?S(e,"label"):e))!=null?f:u)===_?f.call(h,{name:"label",hash:{},data:l,loc:{start:{line:4,column:131},end:{line:4,column:140}}}):f)+`
422
423
  </label>
423
- `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,o){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-sortby-radiogroup">
424
- `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,o),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(b,c,n){var y=n(3633);b.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,o,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,k){if(Object.prototype.hasOwnProperty.call(_,k))return _[k]};return" <option data-field="+h(typeof(o=(o=u(d,"sortBy")||(e!=null?u(e,"sortBy"):e))!=null?o:f)===g?o.call(v,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:25},end:{line:4,column:35}}}):o)+" data-order="+h(typeof(o=(o=u(d,"order")||(e!=null?u(e,"order"):e))!=null?o:f)===g?o.call(v,{name:"order",hash:{},data:l,loc:{start:{line:4,column:47},end:{line:4,column:56}}}):o)+" "+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:57},end:{line:4,column:97}}}))!=null?a:"")+">"+h(typeof(o=(o=u(d,"label")||(e!=null?u(e,"label"):e))!=null?o:f)===g?o.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:98},end:{line:4,column:107}}}):o)+`</option>
425
- `},2:function(r,e,d,C,l){return'selected="selected"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,o=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-sortby">
424
+ `},2:function(r,e,d,C,l){return"checked"},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l,a,s){var v,f=r.lookupProperty||function(g,h){if(Object.prototype.hasOwnProperty.call(g,h))return g[h]};return`<div class="addsearch-sortby-radiogroup">
425
+ `+((v=f(d,"each").call(e??(r.nullContext||{}),e!=null?f(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0,a,s),inverse:r.noop,data:l,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?v:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(w,c,n){var y=n(3633);w.exports=(y.default||y).template({1:function(r,e,d,C,l){var a,s,v=e??(r.nullContext||{}),f=r.hooks.helperMissing,g="function",h=r.escapeExpression,u=r.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return" <option data-field="+h(typeof(s=(s=u(d,"sortBy")||(e!=null?u(e,"sortBy"):e))!=null?s:f)===g?s.call(v,{name:"sortBy",hash:{},data:l,loc:{start:{line:4,column:25},end:{line:4,column:35}}}):s)+" data-order="+h(typeof(s=(s=u(d,"order")||(e!=null?u(e,"order"):e))!=null?s:f)===g?s.call(v,{name:"order",hash:{},data:l,loc:{start:{line:4,column:47},end:{line:4,column:56}}}):s)+" "+((a=u(d,"if").call(v,e!=null?u(e,"active"):e,{name:"if",hash:{},fn:r.program(2,l,0),inverse:r.noop,data:l,loc:{start:{line:4,column:57},end:{line:4,column:97}}}))!=null?a:"")+">"+h(typeof(s=(s=u(d,"label")||(e!=null?u(e,"label"):e))!=null?s:f)===g?s.call(v,{name:"label",hash:{},data:l,loc:{start:{line:4,column:98},end:{line:4,column:107}}}):s)+`</option>
426
+ `},2:function(r,e,d,C,l){return'selected="selected"'},compiler:[8,">= 4.3.0"],main:function(r,e,d,C,l){var a,s=r.lookupProperty||function(v,f){if(Object.prototype.hasOwnProperty.call(v,f))return v[f]};return`<div class="addsearch-sortby">
426
427
  <select>
427
- `+((a=o(d,"each").call(e??(r.nullContext||{}),e!=null?o(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
428
- </div>`},useData:!0})},261:function(b,c,n){function y(g){return g&&g.__esModule?g:{default:g}}function r(g){if(g&&g.__esModule)return g;var h={};if(g!=null)for(var u in g)Object.prototype.hasOwnProperty.call(g,u)&&(h[u]=g[u]);return h.default=g,h}c.__esModule=!0;var e=r(n(2871)),d=y(n(9613)),C=y(n(3769)),l=r(n(2849)),a=r(n(7624)),o=y(n(1148));function v(){var g=new e.HandlebarsEnvironment;return l.extend(g,e),g.SafeString=d.default,g.Exception=C.default,g.Utils=l,g.escapeExpression=l.escapeExpression,g.VM=a,g.template=function(h){return a.template(h,g)},g}var f=v();f.create=v,o.default(f),f.default=f,c.default=f,b.exports=c.default},2871:function(b,c,n){function y(g){return g&&g.__esModule?g:{default:g}}c.__esModule=!0,c.HandlebarsEnvironment=v;var r=n(2849),e=y(n(3769)),d=n(2277),C=n(5940),l=y(n(566)),a=n(3865);c.VERSION="4.7.7",c.COMPILER_REVISION=8,c.LAST_COMPATIBLE_COMPILER_REVISION=7,c.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var o="[object Object]";function v(g,h,u){this.helpers=g||{},this.partials=h||{},this.decorators=u||{},d.registerDefaultHelpers(this),C.registerDefaultDecorators(this)}v.prototype={constructor:v,logger:l.default,log:l.default.log,registerHelper:function(g,h){if(r.toString.call(g)===o){if(h)throw new e.default("Arg not supported with multiple helpers");r.extend(this.helpers,g)}else this.helpers[g]=h},unregisterHelper:function(g){delete this.helpers[g]},registerPartial:function(g,h){if(r.toString.call(g)===o)r.extend(this.partials,g);else{if(h===void 0)throw new e.default('Attempting to register a partial called "'+g+'" as undefined');this.partials[g]=h}},unregisterPartial:function(g){delete this.partials[g]},registerDecorator:function(g,h){if(r.toString.call(g)===o){if(h)throw new e.default("Arg not supported with multiple decorators");r.extend(this.decorators,g)}else this.decorators[g]=h},unregisterDecorator:function(g){delete this.decorators[g]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var f=l.default.log;c.log=f,c.createFrame=r.createFrame,c.logger=l.default},5940:function(b,c,n){c.__esModule=!0,c.registerDefaultDecorators=function(d){e.default(d)};var y,r=n(7430),e=(y=r)&&y.__esModule?y:{default:y}},7430:function(b,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerDecorator("inline",function(e,d,C,l){var a=e;return d.partials||(d.partials={},a=function(o,v){var f=C.partials;C.partials=y.extend({},f,d.partials);var g=e(o,v);return C.partials=f,g}),d.partials[l.args[0]]=l.fn,a})},b.exports=c.default},3769:function(b,c){c.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function y(r,e){var d=e&&e.loc,C=void 0,l=void 0,a=void 0,o=void 0;d&&(C=d.start.line,l=d.end.line,a=d.start.column,o=d.end.column,r+=" - "+C+":"+a);for(var v=Error.prototype.constructor.call(this,r),f=0;f<n.length;f++)this[n[f]]=v[n[f]];Error.captureStackTrace&&Error.captureStackTrace(this,y);try{d&&(this.lineNumber=C,this.endLineNumber=l,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:o,enumerable:!0})):(this.column=a,this.endColumn=o))}catch{}}y.prototype=new Error,c.default=y,b.exports=c.default},2277:function(b,c,n){function y(v){return v&&v.__esModule?v:{default:v}}c.__esModule=!0,c.registerDefaultHelpers=function(v){r.default(v),e.default(v),d.default(v),C.default(v),l.default(v),a.default(v),o.default(v)},c.moveHelperToHooks=function(v,f,g){v.helpers[f]&&(v.hooks[f]=v.helpers[f],g||delete v.helpers[f])};var r=y(n(6097)),e=y(n(6785)),d=y(n(4353)),C=y(n(2355)),l=y(n(5300)),a=y(n(7466)),o=y(n(908))},6097:function(b,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerHelper("blockHelperMissing",function(e,d){var C=d.inverse,l=d.fn;if(e===!0)return l(this);if(e===!1||e==null)return C(this);if(y.isArray(e))return e.length>0?(d.ids&&(d.ids=[d.name]),r.helpers.each(e,d)):C(this);if(d.data&&d.ids){var a=y.createFrame(d.data);a.contextPath=y.appendContextPath(d.data.contextPath,d.name),d={data:a}}return l(e,d)})},b.exports=c.default},6785:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("each",function(l,a){if(!a)throw new d.default("Must pass iterator to #each");var o,v=a.fn,f=a.inverse,g=0,h="",u=void 0,_=void 0;function k(q,j,D){u&&(u.key=q,u.index=j,u.first=j===0,u.last=!!D,_&&(u.contextPath=_+q)),h+=v(l[q],{data:u,blockParams:r.blockParams([l[q],q],[_+q,null])})}if(a.data&&a.ids&&(_=r.appendContextPath(a.data.contextPath,a.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),a.data&&(u=r.createFrame(a.data)),l&&typeof l=="object")if(r.isArray(l))for(var A=l.length;g<A;g++)g in l&&k(g,g,g===l.length-1);else if(n.g.Symbol&&l[n.g.Symbol.iterator]){for(var I=[],P=l[n.g.Symbol.iterator](),N=P.next();!N.done;N=P.next())I.push(N.value);for(A=(l=I).length;g<A;g++)k(g,g,g===l.length-1)}else o=void 0,Object.keys(l).forEach(function(q){o!==void 0&&k(o,g-1),o=q,g++}),o!==void 0&&k(o,g-1,!0);return g===0&&(h=f(this)),h})},b.exports=c.default},4353:function(b,c,n){c.__esModule=!0;var y,r=n(3769),e=(y=r)&&y.__esModule?y:{default:y};c.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},b.exports=c.default},2355:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||r.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},b.exports=c.default},5300:function(b,c){c.__esModule=!0,c.default=function(n){n.registerHelper("log",function(){for(var y=[void 0],r=arguments[arguments.length-1],e=0;e<arguments.length-1;e++)y.push(arguments[e]);var d=1;r.hash.level!=null?d=r.hash.level:r.data&&r.data.level!=null&&(d=r.data.level),y[0]=d,n.log.apply(n,y)})},b.exports=c.default},7466:function(b,c){c.__esModule=!0,c.default=function(n){n.registerHelper("lookup",function(y,r,e){return y&&e.lookupProperty(y,r)})},b.exports=c.default},908:function(b,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var o=a.fn;if(r.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=r.createFrame(a.data)).contextPath=r.appendContextPath(a.data.contextPath,a.ids[0])),o(l,{data:v,blockParams:r.blockParams([l],[v&&v.contextPath])})})},b.exports=c.default},9726:function(b,c,n){c.__esModule=!0,c.createNewLookupObject=function(){for(var r=arguments.length,e=Array(r),d=0;d<r;d++)e[d]=arguments[d];return y.extend.apply(void 0,[Object.create(null)].concat(e))};var y=n(2849)},3865:function(b,c,n){c.__esModule=!0,c.createProtoAccessControl=function(C){var l=Object.create(null);l.constructor=!1,l.__defineGetter__=!1,l.__defineSetter__=!1,l.__lookupGetter__=!1;var a=Object.create(null);return a.__proto__=!1,{properties:{whitelist:y.createNewLookupObject(a,C.allowedProtoProperties),defaultValue:C.allowProtoPropertiesByDefault},methods:{whitelist:y.createNewLookupObject(l,C.allowedProtoMethods),defaultValue:C.allowProtoMethodsByDefault}}},c.resultIsAllowed=function(C,l,a){return d(typeof C=="function"?l.methods:l.properties,a)},c.resetLoggedProperties=function(){Object.keys(e).forEach(function(C){delete e[C]})};var y=n(9726),r=function(C){if(C&&C.__esModule)return C;var l={};if(C!=null)for(var a in C)Object.prototype.hasOwnProperty.call(C,a)&&(l[a]=C[a]);return l.default=C,l}(n(566)),e=Object.create(null);function d(C,l){return C.whitelist[l]!==void 0?C.whitelist[l]===!0:C.defaultValue!==void 0?C.defaultValue:(function(a){e[a]!==!0&&(e[a]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+a+`" because it is not an "own property" of its parent.
428
+ `+((a=s(d,"each").call(e??(r.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:r.program(1,l,0),inverse:r.noop,data:l,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
429
+ </div>`},useData:!0})},261:function(w,c,n){function y(g){return g&&g.__esModule?g:{default:g}}function r(g){if(g&&g.__esModule)return g;var h={};if(g!=null)for(var u in g)Object.prototype.hasOwnProperty.call(g,u)&&(h[u]=g[u]);return h.default=g,h}c.__esModule=!0;var e=r(n(2871)),d=y(n(9613)),C=y(n(3769)),l=r(n(2849)),a=r(n(7624)),s=y(n(1148));function v(){var g=new e.HandlebarsEnvironment;return l.extend(g,e),g.SafeString=d.default,g.Exception=C.default,g.Utils=l,g.escapeExpression=l.escapeExpression,g.VM=a,g.template=function(h){return a.template(h,g)},g}var f=v();f.create=v,s.default(f),f.default=f,c.default=f,w.exports=c.default},2871:function(w,c,n){function y(g){return g&&g.__esModule?g:{default:g}}c.__esModule=!0,c.HandlebarsEnvironment=v;var r=n(2849),e=y(n(3769)),d=n(2277),C=n(5940),l=y(n(566)),a=n(3865);c.VERSION="4.7.7",c.COMPILER_REVISION=8,c.LAST_COMPATIBLE_COMPILER_REVISION=7,c.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var s="[object Object]";function v(g,h,u){this.helpers=g||{},this.partials=h||{},this.decorators=u||{},d.registerDefaultHelpers(this),C.registerDefaultDecorators(this)}v.prototype={constructor:v,logger:l.default,log:l.default.log,registerHelper:function(g,h){if(r.toString.call(g)===s){if(h)throw new e.default("Arg not supported with multiple helpers");r.extend(this.helpers,g)}else this.helpers[g]=h},unregisterHelper:function(g){delete this.helpers[g]},registerPartial:function(g,h){if(r.toString.call(g)===s)r.extend(this.partials,g);else{if(h===void 0)throw new e.default('Attempting to register a partial called "'+g+'" as undefined');this.partials[g]=h}},unregisterPartial:function(g){delete this.partials[g]},registerDecorator:function(g,h){if(r.toString.call(g)===s){if(h)throw new e.default("Arg not supported with multiple decorators");r.extend(this.decorators,g)}else this.decorators[g]=h},unregisterDecorator:function(g){delete this.decorators[g]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var f=l.default.log;c.log=f,c.createFrame=r.createFrame,c.logger=l.default},5940:function(w,c,n){c.__esModule=!0,c.registerDefaultDecorators=function(d){e.default(d)};var y,r=n(7430),e=(y=r)&&y.__esModule?y:{default:y}},7430:function(w,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerDecorator("inline",function(e,d,C,l){var a=e;return d.partials||(d.partials={},a=function(s,v){var f=C.partials;C.partials=y.extend({},f,d.partials);var g=e(s,v);return C.partials=f,g}),d.partials[l.args[0]]=l.fn,a})},w.exports=c.default},3769:function(w,c){c.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function y(r,e){var d=e&&e.loc,C=void 0,l=void 0,a=void 0,s=void 0;d&&(C=d.start.line,l=d.end.line,a=d.start.column,s=d.end.column,r+=" - "+C+":"+a);for(var v=Error.prototype.constructor.call(this,r),f=0;f<n.length;f++)this[n[f]]=v[n[f]];Error.captureStackTrace&&Error.captureStackTrace(this,y);try{d&&(this.lineNumber=C,this.endLineNumber=l,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=a,this.endColumn=s))}catch{}}y.prototype=new Error,c.default=y,w.exports=c.default},2277:function(w,c,n){function y(v){return v&&v.__esModule?v:{default:v}}c.__esModule=!0,c.registerDefaultHelpers=function(v){r.default(v),e.default(v),d.default(v),C.default(v),l.default(v),a.default(v),s.default(v)},c.moveHelperToHooks=function(v,f,g){v.helpers[f]&&(v.hooks[f]=v.helpers[f],g||delete v.helpers[f])};var r=y(n(6097)),e=y(n(6785)),d=y(n(4353)),C=y(n(2355)),l=y(n(5300)),a=y(n(7466)),s=y(n(908))},6097:function(w,c,n){c.__esModule=!0;var y=n(2849);c.default=function(r){r.registerHelper("blockHelperMissing",function(e,d){var C=d.inverse,l=d.fn;if(e===!0)return l(this);if(e===!1||e==null)return C(this);if(y.isArray(e))return e.length>0?(d.ids&&(d.ids=[d.name]),r.helpers.each(e,d)):C(this);if(d.data&&d.ids){var a=y.createFrame(d.data);a.contextPath=y.appendContextPath(d.data.contextPath,d.name),d={data:a}}return l(e,d)})},w.exports=c.default},6785:function(w,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("each",function(l,a){if(!a)throw new d.default("Must pass iterator to #each");var s,v=a.fn,f=a.inverse,g=0,h="",u=void 0,_=void 0;function S(q,j,D){u&&(u.key=q,u.index=j,u.first=j===0,u.last=!!D,_&&(u.contextPath=_+q)),h+=v(l[q],{data:u,blockParams:r.blockParams([l[q],q],[_+q,null])})}if(a.data&&a.ids&&(_=r.appendContextPath(a.data.contextPath,a.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),a.data&&(u=r.createFrame(a.data)),l&&typeof l=="object")if(r.isArray(l))for(var I=l.length;g<I;g++)g in l&&S(g,g,g===l.length-1);else if(n.g.Symbol&&l[n.g.Symbol.iterator]){for(var T=[],P=l[n.g.Symbol.iterator](),N=P.next();!N.done;N=P.next())T.push(N.value);for(I=(l=T).length;g<I;g++)S(g,g,g===l.length-1)}else s=void 0,Object.keys(l).forEach(function(q){s!==void 0&&S(s,g-1),s=q,g++}),s!==void 0&&S(s,g-1,!0);return g===0&&(h=f(this)),h})},w.exports=c.default},4353:function(w,c,n){c.__esModule=!0;var y,r=n(3769),e=(y=r)&&y.__esModule?y:{default:y};c.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},w.exports=c.default},2355:function(w,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||r.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},w.exports=c.default},5300:function(w,c){c.__esModule=!0,c.default=function(n){n.registerHelper("log",function(){for(var y=[void 0],r=arguments[arguments.length-1],e=0;e<arguments.length-1;e++)y.push(arguments[e]);var d=1;r.hash.level!=null?d=r.hash.level:r.data&&r.data.level!=null&&(d=r.data.level),y[0]=d,n.log.apply(n,y)})},w.exports=c.default},7466:function(w,c){c.__esModule=!0,c.default=function(n){n.registerHelper("lookup",function(y,r,e){return y&&e.lookupProperty(y,r)})},w.exports=c.default},908:function(w,c,n){c.__esModule=!0;var y,r=n(2849),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y};c.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var s=a.fn;if(r.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=r.createFrame(a.data)).contextPath=r.appendContextPath(a.data.contextPath,a.ids[0])),s(l,{data:v,blockParams:r.blockParams([l],[v&&v.contextPath])})})},w.exports=c.default},9726:function(w,c,n){c.__esModule=!0,c.createNewLookupObject=function(){for(var r=arguments.length,e=Array(r),d=0;d<r;d++)e[d]=arguments[d];return y.extend.apply(void 0,[Object.create(null)].concat(e))};var y=n(2849)},3865:function(w,c,n){c.__esModule=!0,c.createProtoAccessControl=function(C){var l=Object.create(null);l.constructor=!1,l.__defineGetter__=!1,l.__defineSetter__=!1,l.__lookupGetter__=!1;var a=Object.create(null);return a.__proto__=!1,{properties:{whitelist:y.createNewLookupObject(a,C.allowedProtoProperties),defaultValue:C.allowProtoPropertiesByDefault},methods:{whitelist:y.createNewLookupObject(l,C.allowedProtoMethods),defaultValue:C.allowProtoMethodsByDefault}}},c.resultIsAllowed=function(C,l,a){return d(typeof C=="function"?l.methods:l.properties,a)},c.resetLoggedProperties=function(){Object.keys(e).forEach(function(C){delete e[C]})};var y=n(9726),r=function(C){if(C&&C.__esModule)return C;var l={};if(C!=null)for(var a in C)Object.prototype.hasOwnProperty.call(C,a)&&(l[a]=C[a]);return l.default=C,l}(n(566)),e=Object.create(null);function d(C,l){return C.whitelist[l]!==void 0?C.whitelist[l]===!0:C.defaultValue!==void 0?C.defaultValue:(function(a){e[a]!==!0&&(e[a]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+a+`" because it is not an "own property" of its parent.
429
430
  You can add a runtime option to disable the check or this warning:
430
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(l),!1)}},2614:function(b,c){c.__esModule=!0,c.wrapHelper=function(n,y){return typeof n!="function"?n:function(){return arguments[arguments.length-1]=y(arguments[arguments.length-1]),n.apply(this,arguments)}}},566:function(b,c,n){c.__esModule=!0;var y=n(2849),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var d=y.indexOf(r.methodMap,e.toLowerCase());e=d>=0?d:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),typeof console<"u"&&r.lookupLevel(r.level)<=e){var d=r.methodMap[e];console[d]||(d="log");for(var C=arguments.length,l=Array(C>1?C-1:0),a=1;a<C;a++)l[a-1]=arguments[a];console[d].apply(console,l)}}};c.default=r,b.exports=c.default},1148:function(b,c,n){c.__esModule=!0,c.default=function(y){var r=n.g!==void 0?n.g:window,e=r.Handlebars;y.noConflict=function(){return r.Handlebars===y&&(r.Handlebars=e),y}},b.exports=c.default},7624:function(b,c,n){c.__esModule=!0,c.checkRevision=function(h){var u=h&&h[0]||1,_=C.COMPILER_REVISION;if(!(u>=C.LAST_COMPATIBLE_COMPILER_REVISION&&u<=C.COMPILER_REVISION)){if(u<C.LAST_COMPATIBLE_COMPILER_REVISION){var k=C.REVISION_CHANGES[_],A=C.REVISION_CHANGES[u];throw new d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+k+") or downgrade your runtime to an older version ("+A+").")}throw new d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+h[1]+").")}},c.template=function(h,u){if(!u)throw new d.default("No environment passed to template");if(!h||!h.main)throw new d.default("Unknown template object: "+typeof h);h.main.decorator=h.main_d,u.VM.checkRevision(h.compiler);var _=h.compiler&&h.compiler[0]===7,k={strict:function(I,P,N){if(!I||!(P in I))throw new d.default('"'+P+'" not defined in '+I,{loc:N});return k.lookupProperty(I,P)},lookupProperty:function(I,P){var N=I[P];return N==null||Object.prototype.hasOwnProperty.call(I,P)||o.resultIsAllowed(N,k.protoAccessControl,P)?N:void 0},lookup:function(I,P){for(var N=I.length,q=0;q<N;q++)if((I[q]&&k.lookupProperty(I[q],P))!=null)return I[q][P]},lambda:function(I,P){return typeof I=="function"?I.call(P):I},escapeExpression:r.escapeExpression,invokePartial:function(I,P,N){N.hash&&(P=r.extend({},P,N.hash),N.ids&&(N.ids[0]=!0)),I=u.VM.resolvePartial.call(this,I,P,N);var q=r.extend({},N,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),j=u.VM.invokePartial.call(this,I,P,q);if(j==null&&u.compile&&(N.partials[N.name]=u.compile(I,h.compilerOptions,u),j=N.partials[N.name](P,q)),j!=null){if(N.indent){for(var D=j.split(`
431
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(l),!1)}},2614:function(w,c){c.__esModule=!0,c.wrapHelper=function(n,y){return typeof n!="function"?n:function(){return arguments[arguments.length-1]=y(arguments[arguments.length-1]),n.apply(this,arguments)}}},566:function(w,c,n){c.__esModule=!0;var y=n(2849),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var d=y.indexOf(r.methodMap,e.toLowerCase());e=d>=0?d:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),typeof console<"u"&&r.lookupLevel(r.level)<=e){var d=r.methodMap[e];console[d]||(d="log");for(var C=arguments.length,l=Array(C>1?C-1:0),a=1;a<C;a++)l[a-1]=arguments[a];console[d].apply(console,l)}}};c.default=r,w.exports=c.default},1148:function(w,c,n){c.__esModule=!0,c.default=function(y){var r=n.g!==void 0?n.g:window,e=r.Handlebars;y.noConflict=function(){return r.Handlebars===y&&(r.Handlebars=e),y}},w.exports=c.default},7624:function(w,c,n){c.__esModule=!0,c.checkRevision=function(h){var u=h&&h[0]||1,_=C.COMPILER_REVISION;if(!(u>=C.LAST_COMPATIBLE_COMPILER_REVISION&&u<=C.COMPILER_REVISION)){if(u<C.LAST_COMPATIBLE_COMPILER_REVISION){var S=C.REVISION_CHANGES[_],I=C.REVISION_CHANGES[u];throw new d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+S+") or downgrade your runtime to an older version ("+I+").")}throw new d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+h[1]+").")}},c.template=function(h,u){if(!u)throw new d.default("No environment passed to template");if(!h||!h.main)throw new d.default("Unknown template object: "+typeof h);h.main.decorator=h.main_d,u.VM.checkRevision(h.compiler);var _=h.compiler&&h.compiler[0]===7,S={strict:function(T,P,N){if(!T||!(P in T))throw new d.default('"'+P+'" not defined in '+T,{loc:N});return S.lookupProperty(T,P)},lookupProperty:function(T,P){var N=T[P];return N==null||Object.prototype.hasOwnProperty.call(T,P)||s.resultIsAllowed(N,S.protoAccessControl,P)?N:void 0},lookup:function(T,P){for(var N=T.length,q=0;q<N;q++)if((T[q]&&S.lookupProperty(T[q],P))!=null)return T[q][P]},lambda:function(T,P){return typeof T=="function"?T.call(P):T},escapeExpression:r.escapeExpression,invokePartial:function(T,P,N){N.hash&&(P=r.extend({},P,N.hash),N.ids&&(N.ids[0]=!0)),T=u.VM.resolvePartial.call(this,T,P,N);var q=r.extend({},N,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),j=u.VM.invokePartial.call(this,T,P,q);if(j==null&&u.compile&&(N.partials[N.name]=u.compile(T,h.compilerOptions,u),j=N.partials[N.name](P,q)),j!=null){if(N.indent){for(var D=j.split(`
431
432
  `),L=0,V=D.length;L<V&&(D[L]||L+1!==V);L++)D[L]=N.indent+D[L];j=D.join(`
432
- `)}return j}throw new d.default("The partial "+N.name+" could not be compiled when running in runtime-only mode")},fn:function(I){var P=h[I];return P.decorator=h[I+"_d"],P},programs:[],program:function(I,P,N,q,j){var D=this.programs[I],L=this.fn(I);return P||j||q||N?D=v(this,I,L,P,N,q,j):D||(D=this.programs[I]=v(this,I,L)),D},data:function(I,P){for(;I&&P--;)I=I._parent;return I},mergeIfNeeded:function(I,P){var N=I||P;return I&&P&&I!==P&&(N=r.extend({},P,I)),N},nullContext:Object.seal({}),noop:u.VM.noop,compilerInfo:h.compiler};function A(I){var P=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],N=P.data;A._setup(P),!P.partial&&h.useData&&(N=function(L,V){return V&&"root"in V||((V=V?C.createFrame(V):{}).root=L),V}(I,N));var q=void 0,j=h.useBlockParams?[]:void 0;function D(L){return""+h.main(k,L,k.helpers,k.partials,N,j,q)}return h.useDepths&&(q=P.depths?I!=P.depths[0]?[I].concat(P.depths):P.depths:[I]),(D=g(h.main,D,k,P.depths||[],N,j))(I,P)}return A.isTop=!0,A._setup=function(I){if(I.partial)k.protoAccessControl=I.protoAccessControl,k.helpers=I.helpers,k.partials=I.partials,k.decorators=I.decorators,k.hooks=I.hooks;else{var P=r.extend({},u.helpers,I.helpers);(function(q,j){Object.keys(q).forEach(function(D){var L=q[D];q[D]=function(V,J){var se=J.lookupProperty;return a.wrapHelper(V,function(ne){return r.extend({lookupProperty:se},ne)})}(L,j)})})(P,k),k.helpers=P,h.usePartial&&(k.partials=k.mergeIfNeeded(I.partials,u.partials)),(h.usePartial||h.useDecorators)&&(k.decorators=r.extend({},u.decorators,I.decorators)),k.hooks={},k.protoAccessControl=o.createProtoAccessControl(I);var N=I.allowCallsToHelperMissing||_;l.moveHelperToHooks(k,"helperMissing",N),l.moveHelperToHooks(k,"blockHelperMissing",N)}},A._child=function(I,P,N,q){if(h.useBlockParams&&!N)throw new d.default("must pass block params");if(h.useDepths&&!q)throw new d.default("must pass parent depths");return v(k,I,h[I],P,0,N,q)},A},c.wrapProgram=v,c.resolvePartial=function(h,u,_){return h?h.call||_.name||(_.name=h,h=_.partials[h]):h=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],h},c.invokePartial=function(h,u,_){var k=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var A=void 0;if(_.fn&&_.fn!==f&&function(){_.data=C.createFrame(_.data);var I=_.fn;A=_.data["partial-block"]=function(P){var N=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return N.data=C.createFrame(N.data),N.data["partial-block"]=k,I(P,N)},I.partials&&(_.partials=r.extend({},_.partials,I.partials))}(),h===void 0&&A&&(h=A),h===void 0)throw new d.default("The partial "+_.name+" could not be found");if(h instanceof Function)return h(u,_)},c.noop=f;var y,r=function(h){if(h&&h.__esModule)return h;var u={};if(h!=null)for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(u[_]=h[_]);return u.default=h,u}(n(2849)),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y},C=n(2871),l=n(2277),a=n(2614),o=n(3865);function v(h,u,_,k,A,I,P){function N(q){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=P;return!P||q==P[0]||q===h.nullContext&&P[0]===null||(D=[q].concat(P)),_(h,q,h.helpers,h.partials,j.data||k,I&&[j.blockParams].concat(I),D)}return(N=g(_,N,h,P,k,I)).program=u,N.depth=P?P.length:0,N.blockParams=A||0,N}function f(){return""}function g(h,u,_,k,A,I){if(h.decorator){var P={};u=h.decorator(u,P,_,k&&k[0],A,I,k),r.extend(u,P)}return u}},9613:function(b,c){function n(y){this.string=y}c.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},c.default=n,b.exports=c.default},2849:function(b,c){c.__esModule=!0,c.extend=d,c.indexOf=function(o,v){for(var f=0,g=o.length;f<g;f++)if(o[f]===v)return f;return-1},c.escapeExpression=function(o){if(typeof o!="string"){if(o&&o.toHTML)return o.toHTML();if(o==null)return"";if(!o)return o+"";o=""+o}return r.test(o)?o.replace(y,e):o},c.isEmpty=function(o){return!o&&o!==0||!(!a(o)||o.length!==0)},c.createFrame=function(o){var v=d({},o);return v._parent=o,v},c.blockParams=function(o,v){return o.path=v,o},c.appendContextPath=function(o,v){return(o?o+".":"")+v};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},y=/[&<>"'`=]/g,r=/[&<>"'`=]/;function e(o){return n[o]}function d(o){for(var v=1;v<arguments.length;v++)for(var f in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],f)&&(o[f]=arguments[v][f]);return o}var C=Object.prototype.toString;c.toString=C;var l=function(o){return typeof o=="function"};l(/x/)&&(c.isFunction=l=function(o){return typeof o=="function"&&C.call(o)==="[object Function]"}),c.isFunction=l;var a=Array.isArray||function(o){return!(!o||typeof o!="object")&&C.call(o)==="[object Array]"};c.isArray=a},2334:function(b){b.exports=function(c){function n(r){if(y[r])return y[r].exports;var e=y[r]={exports:{},id:r,loaded:!1};return c[r].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var y={};return n.m=c,n.c=y,n.p="",n(0)}([function(c,n,y){function r(){var u=g();return u.compile=function(_,k){return a.compile(_,k,u)},u.precompile=function(_,k){return a.precompile(_,k,u)},u.AST=C.default,u.Compiler=a.Compiler,u.JavaScriptCompiler=o.default,u.Parser=l.parser,u.parse=l.parse,u.parseWithoutProcessing=l.parseWithoutProcessing,u}var e=y(1).default;n.__esModule=!0;var d=e(y(2)),C=e(y(45)),l=y(46),a=y(51),o=e(y(52)),v=e(y(49)),f=e(y(44)),g=d.default.create,h=r();h.create=r,f.default(h),h.Visitor=v.default,h.default=h,n.default=h,c.exports=n.default},function(c,n){n.default=function(y){return y&&y.__esModule?y:{default:y}},n.__esModule=!0},function(c,n,y){function r(){var h=new C.HandlebarsEnvironment;return o.extend(h,C),h.SafeString=l.default,h.Exception=a.default,h.Utils=o,h.escapeExpression=o.escapeExpression,h.VM=v,h.template=function(u){return v.template(u,h)},h}var e=y(3).default,d=y(1).default;n.__esModule=!0;var C=e(y(4)),l=d(y(37)),a=d(y(6)),o=e(y(5)),v=e(y(38)),f=d(y(44)),g=r();g.create=r,f.default(g),g.default=g,n.default=g,c.exports=n.default},function(c,n){n.default=function(y){if(y&&y.__esModule)return y;var r={};if(y!=null)for(var e in y)Object.prototype.hasOwnProperty.call(y,e)&&(r[e]=y[e]);return r.default=y,r},n.__esModule=!0},function(c,n,y){function r(A,I,P){this.helpers=A||{},this.partials=I||{},this.decorators=P||{},l.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=y(1).default;n.__esModule=!0,n.HandlebarsEnvironment=r;var d=y(5),C=e(y(6)),l=y(10),a=y(30),o=e(y(32)),v=y(33),f="4.7.7";n.VERSION=f;var g=8;n.COMPILER_REVISION=g;var h=7;n.LAST_COMPATIBLE_COMPILER_REVISION=h;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};n.REVISION_CHANGES=u;var _="[object Object]";r.prototype={constructor:r,logger:o.default,log:o.default.log,registerHelper:function(A,I){if(d.toString.call(A)===_){if(I)throw new C.default("Arg not supported with multiple helpers");d.extend(this.helpers,A)}else this.helpers[A]=I},unregisterHelper:function(A){delete this.helpers[A]},registerPartial:function(A,I){if(d.toString.call(A)===_)d.extend(this.partials,A);else{if(I===void 0)throw new C.default('Attempting to register a partial called "'+A+'" as undefined');this.partials[A]=I}},unregisterPartial:function(A){delete this.partials[A]},registerDecorator:function(A,I){if(d.toString.call(A)===_){if(I)throw new C.default("Arg not supported with multiple decorators");d.extend(this.decorators,A)}else this.decorators[A]=I},unregisterDecorator:function(A){delete this.decorators[A]},resetLoggedPropertyAccesses:function(){v.resetLoggedProperties()}};var k=o.default.log;n.log=k,n.createFrame=d.createFrame,n.logger=o.default},function(c,n){function y(k){return v[k]}function r(k){for(var A=1;A<arguments.length;A++)for(var I in arguments[A])Object.prototype.hasOwnProperty.call(arguments[A],I)&&(k[I]=arguments[A][I]);return k}function e(k,A){for(var I=0,P=k.length;I<P;I++)if(k[I]===A)return I;return-1}function d(k){if(typeof k!="string"){if(k&&k.toHTML)return k.toHTML();if(k==null)return"";if(!k)return k+"";k=""+k}return g.test(k)?k.replace(f,y):k}function C(k){return!k&&k!==0||!(!_(k)||k.length!==0)}function l(k){var A=r({},k);return A._parent=k,A}function a(k,A){return k.path=A,k}function o(k,A){return(k?k+".":"")+A}n.__esModule=!0,n.extend=r,n.indexOf=e,n.escapeExpression=d,n.isEmpty=C,n.createFrame=l,n.blockParams=a,n.appendContextPath=o;var v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},f=/[&<>"'`=]/g,g=/[&<>"'`=]/,h=Object.prototype.toString;n.toString=h;var u=function(k){return typeof k=="function"};u(/x/)&&(n.isFunction=u=function(k){return typeof k=="function"&&h.call(k)==="[object Function]"}),n.isFunction=u;var _=Array.isArray||function(k){return!(!k||typeof k!="object")&&h.call(k)==="[object Array]"};n.isArray=_},function(c,n,y){function r(C,l){var a=l&&l.loc,o=void 0,v=void 0,f=void 0,g=void 0;a&&(o=a.start.line,v=a.end.line,f=a.start.column,g=a.end.column,C+=" - "+o+":"+f);for(var h=Error.prototype.constructor.call(this,C),u=0;u<d.length;u++)this[d[u]]=h[d[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=o,this.endLineNumber=v,e?(Object.defineProperty(this,"column",{value:f,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:g,enumerable:!0})):(this.column=f,this.endColumn=g))}catch{}}var e=y(7).default;n.__esModule=!0;var d=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];r.prototype=new Error,n.default=r,c.exports=n.default},function(c,n,y){c.exports={default:y(8),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d,C){return r.setDesc(e,d,C)}},function(c,n){var y=Object;c.exports={create:y.create,getProto:y.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:y.getOwnPropertyDescriptor,setDesc:y.defineProperty,setDescs:y.defineProperties,getKeys:y.keys,getNames:y.getOwnPropertyNames,getSymbols:y.getOwnPropertySymbols,each:[].forEach}},function(c,n,y){function r(h){C.default(h),l.default(h),a.default(h),o.default(h),v.default(h),f.default(h),g.default(h)}function e(h,u,_){h.helpers[u]&&(h.hooks[u]=h.helpers[u],_||delete h.helpers[u])}var d=y(1).default;n.__esModule=!0,n.registerDefaultHelpers=r,n.moveHelperToHooks=e;var C=d(y(11)),l=d(y(12)),a=d(y(25)),o=d(y(26)),v=d(y(27)),f=d(y(28)),g=d(y(29))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(d,C){var l=C.inverse,a=C.fn;if(d===!0)return a(this);if(d===!1||d==null)return l(this);if(r.isArray(d))return d.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(d,C)):l(this);if(C.data&&C.ids){var o=r.createFrame(C.data);o.contextPath=r.appendContextPath(C.data.contextPath,C.name),C={data:o}}return a(d,C)})},c.exports=n.default},function(c,n,y){(function(r){var e=y(13).default,d=y(1).default;n.__esModule=!0;var C=y(5),l=d(y(6));n.default=function(a){a.registerHelper("each",function(o,v){function f(j,D,L){k&&(k.key=j,k.index=D,k.first=D===0,k.last=!!L,A&&(k.contextPath=A+j)),_+=g(o[j],{data:k,blockParams:C.blockParams([o[j],j],[A+j,null])})}if(!v)throw new l.default("Must pass iterator to #each");var g=v.fn,h=v.inverse,u=0,_="",k=void 0,A=void 0;if(v.data&&v.ids&&(A=C.appendContextPath(v.data.contextPath,v.ids[0])+"."),C.isFunction(o)&&(o=o.call(this)),v.data&&(k=C.createFrame(v.data)),o&&typeof o=="object")if(C.isArray(o))for(var I=o.length;u<I;u++)u in o&&f(u,u,u===o.length-1);else if(r.Symbol&&o[r.Symbol.iterator]){for(var P=[],N=o[r.Symbol.iterator](),q=N.next();!q.done;q=N.next())P.push(q.value);for(I=(o=P).length;u<I;u++)f(u,u,u===o.length-1)}else(function(){var j=void 0;e(o).forEach(function(D){j!==void 0&&f(j,u-1),j=D,u++}),j!==void 0&&f(j,u-1,!0)})();return u===0&&(_=h(this)),_})},c.exports=n.default}).call(n,function(){return this}())},function(c,n,y){c.exports={default:y(14),__esModule:!0}},function(c,n,y){y(15),c.exports=y(21).Object.keys},function(c,n,y){var r=y(16);y(18)("keys",function(e){return function(d){return e(r(d))}})},function(c,n,y){var r=y(17);c.exports=function(e){return Object(r(e))}},function(c,n){c.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},function(c,n,y){var r=y(19),e=y(21),d=y(24);c.exports=function(C,l){var a=(e.Object||{})[C]||Object[C],o={};o[C]=l(a),r(r.S+r.F*d(function(){a(1)}),"Object",o)}},function(c,n,y){var r=y(20),e=y(21),d=y(22),C="prototype",l=function(a,o,v){var f,g,h,u=a&l.F,_=a&l.G,k=a&l.S,A=a&l.P,I=a&l.B,P=a&l.W,N=_?e:e[o]||(e[o]={}),q=_?r:k?r[o]:(r[o]||{})[C];for(f in _&&(v=o),v)(g=!u&&q&&f in q)&&f in N||(h=g?q[f]:v[f],N[f]=_&&typeof q[f]!="function"?v[f]:I&&g?d(h,r):P&&q[f]==h?function(j){var D=function(L){return this instanceof j?new j(L):j(L)};return D[C]=j[C],D}(h):A&&typeof h=="function"?d(Function.call,h):h,A&&((N[C]||(N[C]={}))[f]=h))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,c.exports=l},function(c,n){var y=c.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},function(c,n){var y=c.exports={version:"1.2.6"};typeof __e=="number"&&(__e=y)},function(c,n,y){var r=y(23);c.exports=function(e,d,C){if(r(e),d===void 0)return e;switch(C){case 1:return function(l){return e.call(d,l)};case 2:return function(l,a){return e.call(d,l,a)};case 3:return function(l,a,o){return e.call(d,l,a,o)}}return function(){return e.apply(d,arguments)}}},function(c,n){c.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},function(c,n){c.exports=function(y){try{return!!y()}catch{return!0}}},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=r(y(6));n.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return e.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||e.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("log",function(){for(var r=[void 0],e=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)r.push(arguments[d]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),r[0]=C,y.log.apply(y,r)})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("lookup",function(r,e,d){return r&&d.lookupProperty(r,e)})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");e.isFunction(l)&&(l=l.call(this));var o=a.fn;if(e.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),o(l,{data:v,blockParams:e.blockParams([l],[v&&v.contextPath])})})},c.exports=n.default},function(c,n,y){function r(C){d.default(C)}var e=y(1).default;n.__esModule=!0,n.registerDefaultDecorators=r;var d=e(y(31))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerDecorator("inline",function(d,C,l,a){var o=d;return C.partials||(C.partials={},o=function(v,f){var g=l.partials;l.partials=r.extend({},g,C.partials);var h=d(v,f);return l.partials=g,h}),C.partials[a.args[0]]=a.fn,o})},c.exports=n.default},function(c,n,y){n.__esModule=!0;var r=y(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(d){if(typeof d=="string"){var C=r.indexOf(e.methodMap,d.toLowerCase());d=C>=0?C:parseInt(d,10)}return d},log:function(d){if(d=e.lookupLevel(d),typeof console<"u"&&e.lookupLevel(e.level)<=d){var C=e.methodMap[d];console[C]||(C="log");for(var l=arguments.length,a=Array(l>1?l-1:0),o=1;o<l;o++)a[o-1]=arguments[o];console[C].apply(console,a)}}};n.default=e,c.exports=n.default},function(c,n,y){function r(u){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var k=a(null);return k.__proto__=!1,{properties:{whitelist:f.createNewLookupObject(k,u.allowedProtoProperties),defaultValue:u.allowProtoPropertiesByDefault},methods:{whitelist:f.createNewLookupObject(_,u.allowedProtoMethods),defaultValue:u.allowProtoMethodsByDefault}}}function e(u,_,k){return d(typeof u=="function"?_.methods:_.properties,k)}function d(u,_){return u.whitelist[_]!==void 0?u.whitelist[_]===!0:u.defaultValue!==void 0?u.defaultValue:(C(_),!1)}function C(u){h[u]!==!0&&(h[u]=!0,g.log("error",'Handlebars: Access has been denied to resolve the property "'+u+`" because it is not an "own property" of its parent.
433
+ `)}return j}throw new d.default("The partial "+N.name+" could not be compiled when running in runtime-only mode")},fn:function(T){var P=h[T];return P.decorator=h[T+"_d"],P},programs:[],program:function(T,P,N,q,j){var D=this.programs[T],L=this.fn(T);return P||j||q||N?D=v(this,T,L,P,N,q,j):D||(D=this.programs[T]=v(this,T,L)),D},data:function(T,P){for(;T&&P--;)T=T._parent;return T},mergeIfNeeded:function(T,P){var N=T||P;return T&&P&&T!==P&&(N=r.extend({},P,T)),N},nullContext:Object.seal({}),noop:u.VM.noop,compilerInfo:h.compiler};function I(T){var P=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],N=P.data;I._setup(P),!P.partial&&h.useData&&(N=function(L,V){return V&&"root"in V||((V=V?C.createFrame(V):{}).root=L),V}(T,N));var q=void 0,j=h.useBlockParams?[]:void 0;function D(L){return""+h.main(S,L,S.helpers,S.partials,N,j,q)}return h.useDepths&&(q=P.depths?T!=P.depths[0]?[T].concat(P.depths):P.depths:[T]),(D=g(h.main,D,S,P.depths||[],N,j))(T,P)}return I.isTop=!0,I._setup=function(T){if(T.partial)S.protoAccessControl=T.protoAccessControl,S.helpers=T.helpers,S.partials=T.partials,S.decorators=T.decorators,S.hooks=T.hooks;else{var P=r.extend({},u.helpers,T.helpers);(function(q,j){Object.keys(q).forEach(function(D){var L=q[D];q[D]=function(V,J){var oe=J.lookupProperty;return a.wrapHelper(V,function(ne){return r.extend({lookupProperty:oe},ne)})}(L,j)})})(P,S),S.helpers=P,h.usePartial&&(S.partials=S.mergeIfNeeded(T.partials,u.partials)),(h.usePartial||h.useDecorators)&&(S.decorators=r.extend({},u.decorators,T.decorators)),S.hooks={},S.protoAccessControl=s.createProtoAccessControl(T);var N=T.allowCallsToHelperMissing||_;l.moveHelperToHooks(S,"helperMissing",N),l.moveHelperToHooks(S,"blockHelperMissing",N)}},I._child=function(T,P,N,q){if(h.useBlockParams&&!N)throw new d.default("must pass block params");if(h.useDepths&&!q)throw new d.default("must pass parent depths");return v(S,T,h[T],P,0,N,q)},I},c.wrapProgram=v,c.resolvePartial=function(h,u,_){return h?h.call||_.name||(_.name=h,h=_.partials[h]):h=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],h},c.invokePartial=function(h,u,_){var S=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var I=void 0;if(_.fn&&_.fn!==f&&function(){_.data=C.createFrame(_.data);var T=_.fn;I=_.data["partial-block"]=function(P){var N=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return N.data=C.createFrame(N.data),N.data["partial-block"]=S,T(P,N)},T.partials&&(_.partials=r.extend({},_.partials,T.partials))}(),h===void 0&&I&&(h=I),h===void 0)throw new d.default("The partial "+_.name+" could not be found");if(h instanceof Function)return h(u,_)},c.noop=f;var y,r=function(h){if(h&&h.__esModule)return h;var u={};if(h!=null)for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&(u[_]=h[_]);return u.default=h,u}(n(2849)),e=n(3769),d=(y=e)&&y.__esModule?y:{default:y},C=n(2871),l=n(2277),a=n(2614),s=n(3865);function v(h,u,_,S,I,T,P){function N(q){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=P;return!P||q==P[0]||q===h.nullContext&&P[0]===null||(D=[q].concat(P)),_(h,q,h.helpers,h.partials,j.data||S,T&&[j.blockParams].concat(T),D)}return(N=g(_,N,h,P,S,T)).program=u,N.depth=P?P.length:0,N.blockParams=I||0,N}function f(){return""}function g(h,u,_,S,I,T){if(h.decorator){var P={};u=h.decorator(u,P,_,S&&S[0],I,T,S),r.extend(u,P)}return u}},9613:function(w,c){function n(y){this.string=y}c.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},c.default=n,w.exports=c.default},2849:function(w,c){c.__esModule=!0,c.extend=d,c.indexOf=function(s,v){for(var f=0,g=s.length;f<g;f++)if(s[f]===v)return f;return-1},c.escapeExpression=function(s){if(typeof s!="string"){if(s&&s.toHTML)return s.toHTML();if(s==null)return"";if(!s)return s+"";s=""+s}return r.test(s)?s.replace(y,e):s},c.isEmpty=function(s){return!s&&s!==0||!(!a(s)||s.length!==0)},c.createFrame=function(s){var v=d({},s);return v._parent=s,v},c.blockParams=function(s,v){return s.path=v,s},c.appendContextPath=function(s,v){return(s?s+".":"")+v};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},y=/[&<>"'`=]/g,r=/[&<>"'`=]/;function e(s){return n[s]}function d(s){for(var v=1;v<arguments.length;v++)for(var f in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],f)&&(s[f]=arguments[v][f]);return s}var C=Object.prototype.toString;c.toString=C;var l=function(s){return typeof s=="function"};l(/x/)&&(c.isFunction=l=function(s){return typeof s=="function"&&C.call(s)==="[object Function]"}),c.isFunction=l;var a=Array.isArray||function(s){return!(!s||typeof s!="object")&&C.call(s)==="[object Array]"};c.isArray=a},2334:function(w){w.exports=function(c){function n(r){if(y[r])return y[r].exports;var e=y[r]={exports:{},id:r,loaded:!1};return c[r].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var y={};return n.m=c,n.c=y,n.p="",n(0)}([function(c,n,y){function r(){var u=g();return u.compile=function(_,S){return a.compile(_,S,u)},u.precompile=function(_,S){return a.precompile(_,S,u)},u.AST=C.default,u.Compiler=a.Compiler,u.JavaScriptCompiler=s.default,u.Parser=l.parser,u.parse=l.parse,u.parseWithoutProcessing=l.parseWithoutProcessing,u}var e=y(1).default;n.__esModule=!0;var d=e(y(2)),C=e(y(45)),l=y(46),a=y(51),s=e(y(52)),v=e(y(49)),f=e(y(44)),g=d.default.create,h=r();h.create=r,f.default(h),h.Visitor=v.default,h.default=h,n.default=h,c.exports=n.default},function(c,n){n.default=function(y){return y&&y.__esModule?y:{default:y}},n.__esModule=!0},function(c,n,y){function r(){var h=new C.HandlebarsEnvironment;return s.extend(h,C),h.SafeString=l.default,h.Exception=a.default,h.Utils=s,h.escapeExpression=s.escapeExpression,h.VM=v,h.template=function(u){return v.template(u,h)},h}var e=y(3).default,d=y(1).default;n.__esModule=!0;var C=e(y(4)),l=d(y(37)),a=d(y(6)),s=e(y(5)),v=e(y(38)),f=d(y(44)),g=r();g.create=r,f.default(g),g.default=g,n.default=g,c.exports=n.default},function(c,n){n.default=function(y){if(y&&y.__esModule)return y;var r={};if(y!=null)for(var e in y)Object.prototype.hasOwnProperty.call(y,e)&&(r[e]=y[e]);return r.default=y,r},n.__esModule=!0},function(c,n,y){function r(I,T,P){this.helpers=I||{},this.partials=T||{},this.decorators=P||{},l.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=y(1).default;n.__esModule=!0,n.HandlebarsEnvironment=r;var d=y(5),C=e(y(6)),l=y(10),a=y(30),s=e(y(32)),v=y(33),f="4.7.7";n.VERSION=f;var g=8;n.COMPILER_REVISION=g;var h=7;n.LAST_COMPATIBLE_COMPILER_REVISION=h;var u={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};n.REVISION_CHANGES=u;var _="[object Object]";r.prototype={constructor:r,logger:s.default,log:s.default.log,registerHelper:function(I,T){if(d.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple helpers");d.extend(this.helpers,I)}else this.helpers[I]=T},unregisterHelper:function(I){delete this.helpers[I]},registerPartial:function(I,T){if(d.toString.call(I)===_)d.extend(this.partials,I);else{if(T===void 0)throw new C.default('Attempting to register a partial called "'+I+'" as undefined');this.partials[I]=T}},unregisterPartial:function(I){delete this.partials[I]},registerDecorator:function(I,T){if(d.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple decorators");d.extend(this.decorators,I)}else this.decorators[I]=T},unregisterDecorator:function(I){delete this.decorators[I]},resetLoggedPropertyAccesses:function(){v.resetLoggedProperties()}};var S=s.default.log;n.log=S,n.createFrame=d.createFrame,n.logger=s.default},function(c,n){function y(S){return v[S]}function r(S){for(var I=1;I<arguments.length;I++)for(var T in arguments[I])Object.prototype.hasOwnProperty.call(arguments[I],T)&&(S[T]=arguments[I][T]);return S}function e(S,I){for(var T=0,P=S.length;T<P;T++)if(S[T]===I)return T;return-1}function d(S){if(typeof S!="string"){if(S&&S.toHTML)return S.toHTML();if(S==null)return"";if(!S)return S+"";S=""+S}return g.test(S)?S.replace(f,y):S}function C(S){return!S&&S!==0||!(!_(S)||S.length!==0)}function l(S){var I=r({},S);return I._parent=S,I}function a(S,I){return S.path=I,S}function s(S,I){return(S?S+".":"")+I}n.__esModule=!0,n.extend=r,n.indexOf=e,n.escapeExpression=d,n.isEmpty=C,n.createFrame=l,n.blockParams=a,n.appendContextPath=s;var v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},f=/[&<>"'`=]/g,g=/[&<>"'`=]/,h=Object.prototype.toString;n.toString=h;var u=function(S){return typeof S=="function"};u(/x/)&&(n.isFunction=u=function(S){return typeof S=="function"&&h.call(S)==="[object Function]"}),n.isFunction=u;var _=Array.isArray||function(S){return!(!S||typeof S!="object")&&h.call(S)==="[object Array]"};n.isArray=_},function(c,n,y){function r(C,l){var a=l&&l.loc,s=void 0,v=void 0,f=void 0,g=void 0;a&&(s=a.start.line,v=a.end.line,f=a.start.column,g=a.end.column,C+=" - "+s+":"+f);for(var h=Error.prototype.constructor.call(this,C),u=0;u<d.length;u++)this[d[u]]=h[d[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{a&&(this.lineNumber=s,this.endLineNumber=v,e?(Object.defineProperty(this,"column",{value:f,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:g,enumerable:!0})):(this.column=f,this.endColumn=g))}catch{}}var e=y(7).default;n.__esModule=!0;var d=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];r.prototype=new Error,n.default=r,c.exports=n.default},function(c,n,y){c.exports={default:y(8),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d,C){return r.setDesc(e,d,C)}},function(c,n){var y=Object;c.exports={create:y.create,getProto:y.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:y.getOwnPropertyDescriptor,setDesc:y.defineProperty,setDescs:y.defineProperties,getKeys:y.keys,getNames:y.getOwnPropertyNames,getSymbols:y.getOwnPropertySymbols,each:[].forEach}},function(c,n,y){function r(h){C.default(h),l.default(h),a.default(h),s.default(h),v.default(h),f.default(h),g.default(h)}function e(h,u,_){h.helpers[u]&&(h.hooks[u]=h.helpers[u],_||delete h.helpers[u])}var d=y(1).default;n.__esModule=!0,n.registerDefaultHelpers=r,n.moveHelperToHooks=e;var C=d(y(11)),l=d(y(12)),a=d(y(25)),s=d(y(26)),v=d(y(27)),f=d(y(28)),g=d(y(29))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(d,C){var l=C.inverse,a=C.fn;if(d===!0)return a(this);if(d===!1||d==null)return l(this);if(r.isArray(d))return d.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(d,C)):l(this);if(C.data&&C.ids){var s=r.createFrame(C.data);s.contextPath=r.appendContextPath(C.data.contextPath,C.name),C={data:s}}return a(d,C)})},c.exports=n.default},function(c,n,y){(function(r){var e=y(13).default,d=y(1).default;n.__esModule=!0;var C=y(5),l=d(y(6));n.default=function(a){a.registerHelper("each",function(s,v){function f(j,D,L){S&&(S.key=j,S.index=D,S.first=D===0,S.last=!!L,I&&(S.contextPath=I+j)),_+=g(s[j],{data:S,blockParams:C.blockParams([s[j],j],[I+j,null])})}if(!v)throw new l.default("Must pass iterator to #each");var g=v.fn,h=v.inverse,u=0,_="",S=void 0,I=void 0;if(v.data&&v.ids&&(I=C.appendContextPath(v.data.contextPath,v.ids[0])+"."),C.isFunction(s)&&(s=s.call(this)),v.data&&(S=C.createFrame(v.data)),s&&typeof s=="object")if(C.isArray(s))for(var T=s.length;u<T;u++)u in s&&f(u,u,u===s.length-1);else if(r.Symbol&&s[r.Symbol.iterator]){for(var P=[],N=s[r.Symbol.iterator](),q=N.next();!q.done;q=N.next())P.push(q.value);for(T=(s=P).length;u<T;u++)f(u,u,u===s.length-1)}else(function(){var j=void 0;e(s).forEach(function(D){j!==void 0&&f(j,u-1),j=D,u++}),j!==void 0&&f(j,u-1,!0)})();return u===0&&(_=h(this)),_})},c.exports=n.default}).call(n,function(){return this}())},function(c,n,y){c.exports={default:y(14),__esModule:!0}},function(c,n,y){y(15),c.exports=y(21).Object.keys},function(c,n,y){var r=y(16);y(18)("keys",function(e){return function(d){return e(r(d))}})},function(c,n,y){var r=y(17);c.exports=function(e){return Object(r(e))}},function(c,n){c.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},function(c,n,y){var r=y(19),e=y(21),d=y(24);c.exports=function(C,l){var a=(e.Object||{})[C]||Object[C],s={};s[C]=l(a),r(r.S+r.F*d(function(){a(1)}),"Object",s)}},function(c,n,y){var r=y(20),e=y(21),d=y(22),C="prototype",l=function(a,s,v){var f,g,h,u=a&l.F,_=a&l.G,S=a&l.S,I=a&l.P,T=a&l.B,P=a&l.W,N=_?e:e[s]||(e[s]={}),q=_?r:S?r[s]:(r[s]||{})[C];for(f in _&&(v=s),v)(g=!u&&q&&f in q)&&f in N||(h=g?q[f]:v[f],N[f]=_&&typeof q[f]!="function"?v[f]:T&&g?d(h,r):P&&q[f]==h?function(j){var D=function(L){return this instanceof j?new j(L):j(L)};return D[C]=j[C],D}(h):I&&typeof h=="function"?d(Function.call,h):h,I&&((N[C]||(N[C]={}))[f]=h))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,c.exports=l},function(c,n){var y=c.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=y)},function(c,n){var y=c.exports={version:"1.2.6"};typeof __e=="number"&&(__e=y)},function(c,n,y){var r=y(23);c.exports=function(e,d,C){if(r(e),d===void 0)return e;switch(C){case 1:return function(l){return e.call(d,l)};case 2:return function(l,a){return e.call(d,l,a)};case 3:return function(l,a,s){return e.call(d,l,a,s)}}return function(){return e.apply(d,arguments)}}},function(c,n){c.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},function(c,n){c.exports=function(y){try{return!!y()}catch{return!0}}},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=r(y(6));n.default=function(d){d.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("if",function(l,a){if(arguments.length!=2)throw new d.default("#if requires exactly one argument");return e.isFunction(l)&&(l=l.call(this)),!a.hash.includeZero&&!l||e.isEmpty(l)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(l,a){if(arguments.length!=2)throw new d.default("#unless requires exactly one argument");return C.helpers.if.call(this,l,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("log",function(){for(var r=[void 0],e=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)r.push(arguments[d]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),r[0]=C,y.log.apply(y,r)})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(y){y.registerHelper("lookup",function(r,e,d){return r&&d.lookupProperty(r,e)})},c.exports=n.default},function(c,n,y){var r=y(1).default;n.__esModule=!0;var e=y(5),d=r(y(6));n.default=function(C){C.registerHelper("with",function(l,a){if(arguments.length!=2)throw new d.default("#with requires exactly one argument");e.isFunction(l)&&(l=l.call(this));var s=a.fn;if(e.isEmpty(l))return a.inverse(this);var v=a.data;return a.data&&a.ids&&((v=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),s(l,{data:v,blockParams:e.blockParams([l],[v&&v.contextPath])})})},c.exports=n.default},function(c,n,y){function r(C){d.default(C)}var e=y(1).default;n.__esModule=!0,n.registerDefaultDecorators=r;var d=e(y(31))},function(c,n,y){n.__esModule=!0;var r=y(5);n.default=function(e){e.registerDecorator("inline",function(d,C,l,a){var s=d;return C.partials||(C.partials={},s=function(v,f){var g=l.partials;l.partials=r.extend({},g,C.partials);var h=d(v,f);return l.partials=g,h}),C.partials[a.args[0]]=a.fn,s})},c.exports=n.default},function(c,n,y){n.__esModule=!0;var r=y(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(d){if(typeof d=="string"){var C=r.indexOf(e.methodMap,d.toLowerCase());d=C>=0?C:parseInt(d,10)}return d},log:function(d){if(d=e.lookupLevel(d),typeof console<"u"&&e.lookupLevel(e.level)<=d){var C=e.methodMap[d];console[C]||(C="log");for(var l=arguments.length,a=Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];console[C].apply(console,a)}}};n.default=e,c.exports=n.default},function(c,n,y){function r(u){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var S=a(null);return S.__proto__=!1,{properties:{whitelist:f.createNewLookupObject(S,u.allowedProtoProperties),defaultValue:u.allowProtoPropertiesByDefault},methods:{whitelist:f.createNewLookupObject(_,u.allowedProtoMethods),defaultValue:u.allowProtoMethodsByDefault}}}function e(u,_,S){return d(typeof u=="function"?_.methods:_.properties,S)}function d(u,_){return u.whitelist[_]!==void 0?u.whitelist[_]===!0:u.defaultValue!==void 0?u.defaultValue:(C(_),!1)}function C(u){h[u]!==!0&&(h[u]=!0,g.log("error",'Handlebars: Access has been denied to resolve the property "'+u+`" because it is not an "own property" of its parent.
433
434
  You can add a runtime option to disable the check or this warning:
434
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function l(){o(h).forEach(function(u){delete h[u]})}var a=y(34).default,o=y(13).default,v=y(3).default;n.__esModule=!0,n.createProtoAccessControl=r,n.resultIsAllowed=e,n.resetLoggedProperties=l;var f=y(36),g=v(y(32)),h=a(null)},function(c,n,y){c.exports={default:y(35),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d){return r.create(e,d)}},function(c,n,y){function r(){for(var C=arguments.length,l=Array(C),a=0;a<C;a++)l[a]=arguments[a];return d.extend.apply(void 0,[e(null)].concat(l))}var e=y(34).default;n.__esModule=!0,n.createNewLookupObject=r;var d=y(5)},function(c,n){function y(r){this.string=r}n.__esModule=!0,y.prototype.toString=y.prototype.toHTML=function(){return""+this.string},n.default=y,c.exports=n.default},function(c,n,y){function r(D){var L=D&&D[0]||1,V=P.COMPILER_REVISION;if(!(L>=P.LAST_COMPATIBLE_COMPILER_REVISION&&L<=P.COMPILER_REVISION)){if(L<P.LAST_COMPATIBLE_COMPILER_REVISION){var J=P.REVISION_CHANGES[V],se=P.REVISION_CHANGES[L];throw new I.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+J+") or downgrade your runtime to an older version ("+se+").")}throw new I.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+D[1]+").")}}function e(D,L){function V(Y,W,X){X.hash&&(W=A.extend({},W,X.hash),X.ids&&(X.ids[0]=!0)),Y=L.VM.resolvePartial.call(this,Y,W,X);var ue=A.extend({},X,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),xe=L.VM.invokePartial.call(this,Y,W,ue);if(xe==null&&L.compile&&(X.partials[X.name]=L.compile(Y,D.compilerOptions,L),xe=X.partials[X.name](W,ue)),xe!=null){if(X.indent){for(var Re=xe.split(`
435
- `),Oe=0,Ce=Re.length;Oe<Ce&&(Re[Oe]||Oe+1!==Ce);Oe++)Re[Oe]=X.indent+Re[Oe];xe=Re.join(`
436
- `)}return xe}throw new I.default("The partial "+X.name+" could not be compiled when running in runtime-only mode")}function J(Y){function W(Oe){return""+D.main(ne,Oe,ne.helpers,ne.partials,ue,Re,xe)}var X=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ue=X.data;J._setup(X),!X.partial&&D.useData&&(ue=o(Y,ue));var xe=void 0,Re=D.useBlockParams?[]:void 0;return D.useDepths&&(xe=X.depths?Y!=X.depths[0]?[Y].concat(X.depths):X.depths:[Y]),(W=v(D.main,W,ne,X.depths||[],ue,Re))(Y,X)}if(!L)throw new I.default("No environment passed to template");if(!D||!D.main)throw new I.default("Unknown template object: "+typeof D);D.main.decorator=D.main_d,L.VM.checkRevision(D.compiler);var se=D.compiler&&D.compiler[0]===7,ne={strict:function(Y,W,X){if(!Y||!(W in Y))throw new I.default('"'+W+'" not defined in '+Y,{loc:X});return ne.lookupProperty(Y,W)},lookupProperty:function(Y,W){var X=Y[W];return X==null||Object.prototype.hasOwnProperty.call(Y,W)||j.resultIsAllowed(X,ne.protoAccessControl,W)?X:void 0},lookup:function(Y,W){for(var X=Y.length,ue=0;ue<X;ue++)if((Y[ue]&&ne.lookupProperty(Y[ue],W))!=null)return Y[ue][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:A.escapeExpression,invokePartial:V,fn:function(Y){var W=D[Y];return W.decorator=D[Y+"_d"],W},programs:[],program:function(Y,W,X,ue,xe){var Re=this.programs[Y],Oe=this.fn(Y);return W||xe||ue||X?Re=d(this,Y,Oe,W,X,ue,xe):Re||(Re=this.programs[Y]=d(this,Y,Oe)),Re},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var X=Y||W;return Y&&W&&Y!==W&&(X=A.extend({},W,Y)),X},nullContext:h({}),noop:L.VM.noop,compilerInfo:D.compiler};return J.isTop=!0,J._setup=function(Y){if(Y.partial)ne.protoAccessControl=Y.protoAccessControl,ne.helpers=Y.helpers,ne.partials=Y.partials,ne.decorators=Y.decorators,ne.hooks=Y.hooks;else{var W=A.extend({},L.helpers,Y.helpers);f(W,ne),ne.helpers=W,D.usePartial&&(ne.partials=ne.mergeIfNeeded(Y.partials,L.partials)),(D.usePartial||D.useDecorators)&&(ne.decorators=A.extend({},L.decorators,Y.decorators)),ne.hooks={},ne.protoAccessControl=j.createProtoAccessControl(Y);var X=Y.allowCallsToHelperMissing||se;N.moveHelperToHooks(ne,"helperMissing",X),N.moveHelperToHooks(ne,"blockHelperMissing",X)}},J._child=function(Y,W,X,ue){if(D.useBlockParams&&!X)throw new I.default("must pass block params");if(D.useDepths&&!ue)throw new I.default("must pass parent depths");return d(ne,Y,D[Y],W,0,X,ue)},J}function d(D,L,V,J,se,ne,Y){function W(X){var ue=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],xe=Y;return!Y||X==Y[0]||X===D.nullContext&&Y[0]===null||(xe=[X].concat(Y)),V(D,X,D.helpers,D.partials,ue.data||J,ne&&[ue.blockParams].concat(ne),xe)}return(W=v(V,W,D,Y,J,ne)).program=L,W.depth=Y?Y.length:0,W.blockParams=se||0,W}function C(D,L,V){return D?D.call||V.name||(V.name=D,D=V.partials[D]):D=V.name==="@partial-block"?V.data["partial-block"]:V.partials[V.name],D}function l(D,L,V){var J=V.data&&V.data["partial-block"];V.partial=!0,V.ids&&(V.data.contextPath=V.ids[0]||V.data.contextPath);var se=void 0;if(V.fn&&V.fn!==a&&function(){V.data=P.createFrame(V.data);var ne=V.fn;se=V.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=P.createFrame(W.data),W.data["partial-block"]=J,ne(Y,W)},ne.partials&&(V.partials=A.extend({},V.partials,ne.partials))}(),D===void 0&&se&&(D=se),D===void 0)throw new I.default("The partial "+V.name+" could not be found");if(D instanceof Function)return D(L,V)}function a(){return""}function o(D,L){return L&&"root"in L||((L=L?P.createFrame(L):{}).root=D),L}function v(D,L,V,J,se,ne){if(D.decorator){var Y={};L=D.decorator(L,Y,V,J&&J[0],se,ne,J),A.extend(L,Y)}return L}function f(D,L){u(D).forEach(function(V){var J=D[V];D[V]=g(J,L)})}function g(D,L){var V=L.lookupProperty;return q.wrapHelper(D,function(J){return A.extend({lookupProperty:V},J)})}var h=y(39).default,u=y(13).default,_=y(3).default,k=y(1).default;n.__esModule=!0,n.checkRevision=r,n.template=e,n.wrapProgram=d,n.resolvePartial=C,n.invokePartial=l,n.noop=a;var A=_(y(5)),I=k(y(6)),P=y(4),N=y(10),q=y(43),j=y(33)},function(c,n,y){c.exports={default:y(40),__esModule:!0}},function(c,n,y){y(41),c.exports=y(21).Object.seal},function(c,n,y){var r=y(42);y(18)("seal",function(e){return function(d){return e&&r(d)?e(d):d}})},function(c,n){c.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},function(c,n){function y(r,e){if(typeof r!="function")return r;var d=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),r.apply(this,arguments)};return d}n.__esModule=!0,n.wrapHelper=y},function(c,n){(function(y){n.__esModule=!0,n.default=function(r){var e=y!==void 0?y:window,d=e.Handlebars;r.noConflict=function(){return e.Handlebars===r&&(e.Handlebars=d),r}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var y={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!y.helpers.scopedId(r)&&!r.depth}}};n.default=y,c.exports=n.default},function(c,n,y){function r(g,h){return g.type==="Program"?g:(l.default.yy=f,f.locInfo=function(u){return new f.SourceLocation(h&&h.srcName,u)},l.default.parse(g))}function e(g,h){var u=r(g,h);return new a.default(h).accept(u)}var d=y(1).default,C=y(3).default;n.__esModule=!0,n.parseWithoutProcessing=r,n.parse=e;var l=d(y(47)),a=d(y(48)),o=C(y(50)),v=y(5);n.parser=l.default;var f={};v.extend(f,o)},function(c,n){n.__esModule=!0;var y=function(){function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(C,l,a,o,v,f,g){var h=f.length-1;switch(v){case 1:return f[h-1];case 2:this.$=o.prepareProgram(f[h]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:o.stripComment(f[h]),strip:o.stripFlags(f[h],f[h]),loc:o.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:o.locInfo(this._$)};break;case 11:this.$=o.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=o.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=o.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:o.stripFlags(f[h-5],f[h])};break;case 16:case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:o.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:o.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var u=o.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),_=o.prepareProgram([u],f[h-1].loc);_.chained=!0,this.$={strip:f[h-2].strip,program:_,chain:!0};break;case 21:this.$={path:f[h-1],strip:o.stripFlags(f[h-2],f[h])};break;case 22:case 23:this.$=o.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],o.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:o.stripFlags(f[h-4],f[h]),loc:o.locInfo(this._$)};break;case 25:this.$=o.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:o.stripFlags(f[h-4],f[h])};break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:o.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:o.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:o.id(f[h-2]),value:f[h],loc:o.locInfo(this._$)};break;case 32:this.$=o.id(f[h-1]);break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:o.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:o.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:f[h]==="true",original:f[h]==="true",loc:o.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:o.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:o.locInfo(this._$)};break;case 42:this.$=o.preparePath(!0,f[h],this._$);break;case 43:this.$=o.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:o.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:o.id(f[h]),original:f[h]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[h-1].push(f[h]);break;case 98:case 100:this.$=[f[h]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(C,l){throw new Error(C)},parse:function(C){function l(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,o=[0],v=[null],f=[],g=this.table,h="",u=0,_=0,k=0;this.lexer.setInput(C),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,this.lexer.yylloc===void 0&&(this.lexer.yylloc={});var A=this.lexer.yylloc;f.push(A);var I=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var P,N,q,j,D,L,V,J,se,ne={};;){if(q=o[o.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(P!=null||(P=l()),j=g[q]&&g[q][P]),j===void 0||!j.length||!j[0]){var Y="";{for(L in se=[],g[q])this.terminals_[L]&&L>2&&se.push("'"+this.terminals_[L]+"'");Y=this.lexer.showPosition?"Parse error on line "+(u+1)+`:
435
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function l(){s(h).forEach(function(u){delete h[u]})}var a=y(34).default,s=y(13).default,v=y(3).default;n.__esModule=!0,n.createProtoAccessControl=r,n.resultIsAllowed=e,n.resetLoggedProperties=l;var f=y(36),g=v(y(32)),h=a(null)},function(c,n,y){c.exports={default:y(35),__esModule:!0}},function(c,n,y){var r=y(9);c.exports=function(e,d){return r.create(e,d)}},function(c,n,y){function r(){for(var C=arguments.length,l=Array(C),a=0;a<C;a++)l[a]=arguments[a];return d.extend.apply(void 0,[e(null)].concat(l))}var e=y(34).default;n.__esModule=!0,n.createNewLookupObject=r;var d=y(5)},function(c,n){function y(r){this.string=r}n.__esModule=!0,y.prototype.toString=y.prototype.toHTML=function(){return""+this.string},n.default=y,c.exports=n.default},function(c,n,y){function r(D){var L=D&&D[0]||1,V=P.COMPILER_REVISION;if(!(L>=P.LAST_COMPATIBLE_COMPILER_REVISION&&L<=P.COMPILER_REVISION)){if(L<P.LAST_COMPATIBLE_COMPILER_REVISION){var J=P.REVISION_CHANGES[V],oe=P.REVISION_CHANGES[L];throw new T.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+J+") or downgrade your runtime to an older version ("+oe+").")}throw new T.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+D[1]+").")}}function e(D,L){function V(Y,W,X){X.hash&&(W=I.extend({},W,X.hash),X.ids&&(X.ids[0]=!0)),Y=L.VM.resolvePartial.call(this,Y,W,X);var ue=I.extend({},X,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),xe=L.VM.invokePartial.call(this,Y,W,ue);if(xe==null&&L.compile&&(X.partials[X.name]=L.compile(Y,D.compilerOptions,L),xe=X.partials[X.name](W,ue)),xe!=null){if(X.indent){for(var Ae=xe.split(`
436
+ `),Oe=0,Ce=Ae.length;Oe<Ce&&(Ae[Oe]||Oe+1!==Ce);Oe++)Ae[Oe]=X.indent+Ae[Oe];xe=Ae.join(`
437
+ `)}return xe}throw new T.default("The partial "+X.name+" could not be compiled when running in runtime-only mode")}function J(Y){function W(Oe){return""+D.main(ne,Oe,ne.helpers,ne.partials,ue,Ae,xe)}var X=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ue=X.data;J._setup(X),!X.partial&&D.useData&&(ue=s(Y,ue));var xe=void 0,Ae=D.useBlockParams?[]:void 0;return D.useDepths&&(xe=X.depths?Y!=X.depths[0]?[Y].concat(X.depths):X.depths:[Y]),(W=v(D.main,W,ne,X.depths||[],ue,Ae))(Y,X)}if(!L)throw new T.default("No environment passed to template");if(!D||!D.main)throw new T.default("Unknown template object: "+typeof D);D.main.decorator=D.main_d,L.VM.checkRevision(D.compiler);var oe=D.compiler&&D.compiler[0]===7,ne={strict:function(Y,W,X){if(!Y||!(W in Y))throw new T.default('"'+W+'" not defined in '+Y,{loc:X});return ne.lookupProperty(Y,W)},lookupProperty:function(Y,W){var X=Y[W];return X==null||Object.prototype.hasOwnProperty.call(Y,W)||j.resultIsAllowed(X,ne.protoAccessControl,W)?X:void 0},lookup:function(Y,W){for(var X=Y.length,ue=0;ue<X;ue++)if((Y[ue]&&ne.lookupProperty(Y[ue],W))!=null)return Y[ue][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:I.escapeExpression,invokePartial:V,fn:function(Y){var W=D[Y];return W.decorator=D[Y+"_d"],W},programs:[],program:function(Y,W,X,ue,xe){var Ae=this.programs[Y],Oe=this.fn(Y);return W||xe||ue||X?Ae=d(this,Y,Oe,W,X,ue,xe):Ae||(Ae=this.programs[Y]=d(this,Y,Oe)),Ae},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var X=Y||W;return Y&&W&&Y!==W&&(X=I.extend({},W,Y)),X},nullContext:h({}),noop:L.VM.noop,compilerInfo:D.compiler};return J.isTop=!0,J._setup=function(Y){if(Y.partial)ne.protoAccessControl=Y.protoAccessControl,ne.helpers=Y.helpers,ne.partials=Y.partials,ne.decorators=Y.decorators,ne.hooks=Y.hooks;else{var W=I.extend({},L.helpers,Y.helpers);f(W,ne),ne.helpers=W,D.usePartial&&(ne.partials=ne.mergeIfNeeded(Y.partials,L.partials)),(D.usePartial||D.useDecorators)&&(ne.decorators=I.extend({},L.decorators,Y.decorators)),ne.hooks={},ne.protoAccessControl=j.createProtoAccessControl(Y);var X=Y.allowCallsToHelperMissing||oe;N.moveHelperToHooks(ne,"helperMissing",X),N.moveHelperToHooks(ne,"blockHelperMissing",X)}},J._child=function(Y,W,X,ue){if(D.useBlockParams&&!X)throw new T.default("must pass block params");if(D.useDepths&&!ue)throw new T.default("must pass parent depths");return d(ne,Y,D[Y],W,0,X,ue)},J}function d(D,L,V,J,oe,ne,Y){function W(X){var ue=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],xe=Y;return!Y||X==Y[0]||X===D.nullContext&&Y[0]===null||(xe=[X].concat(Y)),V(D,X,D.helpers,D.partials,ue.data||J,ne&&[ue.blockParams].concat(ne),xe)}return(W=v(V,W,D,Y,J,ne)).program=L,W.depth=Y?Y.length:0,W.blockParams=oe||0,W}function C(D,L,V){return D?D.call||V.name||(V.name=D,D=V.partials[D]):D=V.name==="@partial-block"?V.data["partial-block"]:V.partials[V.name],D}function l(D,L,V){var J=V.data&&V.data["partial-block"];V.partial=!0,V.ids&&(V.data.contextPath=V.ids[0]||V.data.contextPath);var oe=void 0;if(V.fn&&V.fn!==a&&function(){V.data=P.createFrame(V.data);var ne=V.fn;oe=V.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=P.createFrame(W.data),W.data["partial-block"]=J,ne(Y,W)},ne.partials&&(V.partials=I.extend({},V.partials,ne.partials))}(),D===void 0&&oe&&(D=oe),D===void 0)throw new T.default("The partial "+V.name+" could not be found");if(D instanceof Function)return D(L,V)}function a(){return""}function s(D,L){return L&&"root"in L||((L=L?P.createFrame(L):{}).root=D),L}function v(D,L,V,J,oe,ne){if(D.decorator){var Y={};L=D.decorator(L,Y,V,J&&J[0],oe,ne,J),I.extend(L,Y)}return L}function f(D,L){u(D).forEach(function(V){var J=D[V];D[V]=g(J,L)})}function g(D,L){var V=L.lookupProperty;return q.wrapHelper(D,function(J){return I.extend({lookupProperty:V},J)})}var h=y(39).default,u=y(13).default,_=y(3).default,S=y(1).default;n.__esModule=!0,n.checkRevision=r,n.template=e,n.wrapProgram=d,n.resolvePartial=C,n.invokePartial=l,n.noop=a;var I=_(y(5)),T=S(y(6)),P=y(4),N=y(10),q=y(43),j=y(33)},function(c,n,y){c.exports={default:y(40),__esModule:!0}},function(c,n,y){y(41),c.exports=y(21).Object.seal},function(c,n,y){var r=y(42);y(18)("seal",function(e){return function(d){return e&&r(d)?e(d):d}})},function(c,n){c.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},function(c,n){function y(r,e){if(typeof r!="function")return r;var d=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),r.apply(this,arguments)};return d}n.__esModule=!0,n.wrapHelper=y},function(c,n){(function(y){n.__esModule=!0,n.default=function(r){var e=y!==void 0?y:window,d=e.Handlebars;r.noConflict=function(){return e.Handlebars===r&&(e.Handlebars=d),r}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var y={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!y.helpers.scopedId(r)&&!r.depth}}};n.default=y,c.exports=n.default},function(c,n,y){function r(g,h){return g.type==="Program"?g:(l.default.yy=f,f.locInfo=function(u){return new f.SourceLocation(h&&h.srcName,u)},l.default.parse(g))}function e(g,h){var u=r(g,h);return new a.default(h).accept(u)}var d=y(1).default,C=y(3).default;n.__esModule=!0,n.parseWithoutProcessing=r,n.parse=e;var l=d(y(47)),a=d(y(48)),s=C(y(50)),v=y(5);n.parser=l.default;var f={};v.extend(f,s)},function(c,n){n.__esModule=!0;var y=function(){function r(){this.yy={}}var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(C,l,a,s,v,f,g){var h=f.length-1;switch(v){case 1:return f[h-1];case 2:this.$=s.prepareProgram(f[h]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:s.stripComment(f[h]),strip:s.stripFlags(f[h],f[h]),loc:s.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:s.locInfo(this._$)};break;case 11:this.$=s.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=s.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=s.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:s.stripFlags(f[h-5],f[h])};break;case 16:case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:s.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:s.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var u=s.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),_=s.prepareProgram([u],f[h-1].loc);_.chained=!0,this.$={strip:f[h-2].strip,program:_,chain:!0};break;case 21:this.$={path:f[h-1],strip:s.stripFlags(f[h-2],f[h])};break;case 22:case 23:this.$=s.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],s.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:s.stripFlags(f[h-4],f[h]),loc:s.locInfo(this._$)};break;case 25:this.$=s.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:s.stripFlags(f[h-4],f[h])};break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:s.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:s.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:s.id(f[h-2]),value:f[h],loc:s.locInfo(this._$)};break;case 32:this.$=s.id(f[h-1]);break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:s.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:s.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:f[h]==="true",original:f[h]==="true",loc:s.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:s.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:s.locInfo(this._$)};break;case 42:this.$=s.preparePath(!0,f[h],this._$);break;case 43:this.$=s.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:s.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:s.id(f[h]),original:f[h]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[h-1].push(f[h]);break;case 98:case 100:this.$=[f[h]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(C,l){throw new Error(C)},parse:function(C){function l(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,s=[0],v=[null],f=[],g=this.table,h="",u=0,_=0,S=0;this.lexer.setInput(C),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,this.lexer.yylloc===void 0&&(this.lexer.yylloc={});var I=this.lexer.yylloc;f.push(I);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var P,N,q,j,D,L,V,J,oe,ne={};;){if(q=s[s.length-1],this.defaultActions[q]?j=this.defaultActions[q]:(P!=null||(P=l()),j=g[q]&&g[q][P]),j===void 0||!j.length||!j[0]){var Y="";{for(L in oe=[],g[q])this.terminals_[L]&&L>2&&oe.push("'"+this.terminals_[L]+"'");Y=this.lexer.showPosition?"Parse error on line "+(u+1)+`:
437
438
  `+this.lexer.showPosition()+`
438
- Expecting `+se.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on line "+(u+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:A,expected:se})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(j[0]){case 1:o.push(P),v.push(this.lexer.yytext),f.push(this.lexer.yylloc),o.push(j[1]),P=null,N?(P=N,N=null):(_=this.lexer.yyleng,h=this.lexer.yytext,u=this.lexer.yylineno,A=this.lexer.yylloc,k>0);break;case 2:if(V=this.productions_[j[1]][1],ne.$=v[v.length-V],ne._$={first_line:f[f.length-(V||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(V||1)].first_column,last_column:f[f.length-1].last_column},I&&(ne._$.range=[f[f.length-(V||1)].range[0],f[f.length-1].range[1]]),(D=this.performAction.call(ne,h,_,u,this.yy,j[1],v,f))!==void 0)return D;V&&(o=o.slice(0,-1*V*2),v=v.slice(0,-1*V),f=f.slice(0,-1*V)),o.push(this.productions_[j[1]][0]),v.push(ne.$),f.push(ne._$),J=g[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0}},d=function(){var C={EOF:1,parseError:function(l,a){if(!this.yy.parser)throw new Error(l);this.yy.parser.parseError(l,a)},setInput:function(l){return this._input=l,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];return this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l,l.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var a=l.length,o=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===v.length?this.yylloc.first_column:0)+v[v.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),a=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
439
- `+a+"^"},next:function(){if(this.done)return this.EOF;var l,a,o,v,f;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),h=0;h<g.length&&(!(o=this._input.match(this.rules[g[h]]))||a&&!(o[0].length>a[0].length)||(a=o,v=h,this.options.flex));h++);return a?((f=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,g[v],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
440
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l!==void 0?l:this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(l){this.begin(l)},options:{},performAction:function(l,a,o,v){function f(g,h){return a.yytext=a.yytext.substring(g,a.yyleng-h+g)}switch(o){case 0:if(a.yytext.slice(-2)==="\\\\"?(f(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(f(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(f(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return a.yytext=f(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=f(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return C}();return e.lexer=d,r.prototype=e,e.Parser=r,new r}();n.default=y,c.exports=n.default},function(c,n,y){function r(){var v=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=v}function e(v,f,g){f===void 0&&(f=v.length);var h=v[f-1],u=v[f-2];return h?h.type==="ContentStatement"?(u||!g?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original):void 0:g}function d(v,f,g){f===void 0&&(f=-1);var h=v[f+1],u=v[f+2];return h?h.type==="ContentStatement"?(u||!g?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original):void 0:g}function C(v,f,g){var h=v[f==null?0:f+1];if(h&&h.type==="ContentStatement"&&(g||!h.rightStripped)){var u=h.value;h.value=h.value.replace(g?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==u}}function l(v,f,g){var h=v[f==null?v.length-1:f-1];if(h&&h.type==="ContentStatement"&&(g||!h.leftStripped)){var u=h.value;return h.value=h.value.replace(g?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==u,h.leftStripped}}var a=y(1).default;n.__esModule=!0;var o=a(y(49));r.prototype=new o.default,r.prototype.Program=function(v){var f=!this.options.ignoreStandalone,g=!this.isRootSeen;this.isRootSeen=!0;for(var h=v.body,u=0,_=h.length;u<_;u++){var k=h[u],A=this.accept(k);if(A){var I=e(h,u,g),P=d(h,u,g),N=A.openStandalone&&I,q=A.closeStandalone&&P,j=A.inlineStandalone&&I&&P;A.close&&C(h,u,!0),A.open&&l(h,u,!0),f&&j&&(C(h,u),l(h,u)&&k.type==="PartialStatement"&&(k.indent=/([ \t]+$)/.exec(h[u-1].original)[1])),f&&N&&(C((k.program||k.inverse).body),l(h,u)),f&&q&&(C(h,u),l((k.inverse||k.program).body))}}return v},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(v){this.accept(v.program),this.accept(v.inverse);var f=v.program||v.inverse,g=v.program&&v.inverse,h=g,u=g;if(g&&g.chained)for(h=g.body[0].program;u.chained;)u=u.body[u.body.length-1].program;var _={open:v.openStrip.open,close:v.closeStrip.close,openStandalone:d(f.body),closeStandalone:e((h||f).body)};if(v.openStrip.close&&C(f.body,null,!0),g){var k=v.inverseStrip;k.open&&l(f.body,null,!0),k.close&&C(h.body,null,!0),v.closeStrip.open&&l(u.body,null,!0),!this.options.ignoreStandalone&&e(f.body)&&d(h.body)&&(l(f.body),C(h.body))}else v.closeStrip.open&&l(f.body,null,!0);return _},r.prototype.Decorator=r.prototype.MustacheStatement=function(v){return v.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(v){var f=v.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}},n.default=r,c.exports=n.default},function(c,n,y){function r(){this.parents=[]}function e(o){this.acceptRequired(o,"path"),this.acceptArray(o.params),this.acceptKey(o,"hash")}function d(o){e.call(this,o),this.acceptKey(o,"program"),this.acceptKey(o,"inverse")}function C(o){this.acceptRequired(o,"name"),this.acceptArray(o.params),this.acceptKey(o,"hash")}var l=y(1).default;n.__esModule=!0;var a=l(y(6));r.prototype={constructor:r,mutating:!1,acceptKey:function(o,v){var f=this.accept(o[v]);if(this.mutating){if(f&&!r.prototype[f.type])throw new a.default('Unexpected node type "'+f.type+'" found when accepting '+v+" on "+o.type);o[v]=f}},acceptRequired:function(o,v){if(this.acceptKey(o,v),!o[v])throw new a.default(o.type+" requires "+v)},acceptArray:function(o){for(var v=0,f=o.length;v<f;v++)this.acceptKey(o,v),o[v]||(o.splice(v,1),v--,f--)},accept:function(o){if(o){if(!this[o.type])throw new a.default("Unknown type: "+o.type,o);this.current&&this.parents.unshift(this.current),this.current=o;var v=this[o.type](o);return this.current=this.parents.shift(),!this.mutating||v?v:v!==!1?o:void 0}},Program:function(o){this.acceptArray(o.body)},MustacheStatement:e,Decorator:e,BlockStatement:d,DecoratorBlock:d,PartialStatement:C,PartialBlockStatement:function(o){C.call(this,o),this.acceptKey(o,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(o){this.acceptArray(o.pairs)},HashPair:function(o){this.acceptRequired(o,"value")}},n.default=r,c.exports=n.default},function(c,n,y){function r(k,A){if(A=A.path?A.path.original:A,k.path.original!==A){var I={loc:k.path.loc};throw new _.default(k.path.original+" doesn't match "+A,I)}}function e(k,A){this.source=k,this.start={line:A.first_line,column:A.first_column},this.end={line:A.last_line,column:A.last_column}}function d(k){return/^\[.*\]$/.test(k)?k.substring(1,k.length-1):k}function C(k,A){return{open:k.charAt(2)==="~",close:A.charAt(A.length-3)==="~"}}function l(k){return k.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function a(k,A,I){I=this.locInfo(I);for(var P=k?"@":"",N=[],q=0,j=0,D=A.length;j<D;j++){var L=A[j].part,V=A[j].original!==L;if(P+=(A[j].separator||"")+L,V||L!==".."&&L!=="."&&L!=="this")N.push(L);else{if(N.length>0)throw new _.default("Invalid path: "+P,{loc:I});L===".."&&q++}}return{type:"PathExpression",data:k,depth:q,parts:N,original:P,loc:I}}function o(k,A,I,P,N,q){var j=P.charAt(3)||P.charAt(2),D=j!=="{"&&j!=="&";return{type:/\*/.test(P)?"Decorator":"MustacheStatement",path:k,params:A,hash:I,escaped:D,strip:N,loc:this.locInfo(q)}}function v(k,A,I,P){r(k,I);var N={type:"Program",body:A,strip:{},loc:P=this.locInfo(P)};return{type:"BlockStatement",path:k.path,params:k.params,hash:k.hash,program:N,openStrip:{},inverseStrip:{},closeStrip:{},loc:P}}function f(k,A,I,P,N,q){P&&P.path&&r(k,P);var j=/\*/.test(k.open);A.blockParams=k.blockParams;var D=void 0,L=void 0;if(I){if(j)throw new _.default("Unexpected inverse block on decorator",I);I.chain&&(I.program.body[0].closeStrip=P.strip),L=I.strip,D=I.program}return N&&(N=D,D=A,A=N),{type:j?"DecoratorBlock":"BlockStatement",path:k.path,params:k.params,hash:k.hash,program:A,inverse:D,openStrip:k.strip,inverseStrip:L,closeStrip:P&&P.strip,loc:this.locInfo(q)}}function g(k,A){if(!A&&k.length){var I=k[0].loc,P=k[k.length-1].loc;I&&P&&(A={source:I.source,start:{line:I.start.line,column:I.start.column},end:{line:P.end.line,column:P.end.column}})}return{type:"Program",body:k,strip:{},loc:A}}function h(k,A,I,P){return r(k,I),{type:"PartialBlockStatement",name:k.path,params:k.params,hash:k.hash,program:A,openStrip:k.strip,closeStrip:I&&I.strip,loc:this.locInfo(P)}}var u=y(1).default;n.__esModule=!0,n.SourceLocation=e,n.id=d,n.stripFlags=C,n.stripComment=l,n.preparePath=a,n.prepareMustache=o,n.prepareRawBlock=v,n.prepareBlock=f,n.prepareProgram=g,n.preparePartialBlock=h;var _=u(y(6))},function(c,n,y){function r(){}function e(u,_,k){if(u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+u);"data"in(_=_||{})||(_.data=!0),_.compat&&(_.useDepths=!0);var A=k.parse(u,_),I=new k.Compiler().compile(A,_);return new k.JavaScriptCompiler().compile(I,_)}function d(u,_,k){function A(){var N=k.parse(u,_),q=new k.Compiler().compile(N,_),j=new k.JavaScriptCompiler().compile(q,_,void 0,!0);return k.template(j)}function I(N,q){return P||(P=A()),P.call(this,N,q)}if(_===void 0&&(_={}),u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+u);"data"in(_=f.extend({},_))||(_.data=!0),_.compat&&(_.useDepths=!0);var P=void 0;return I._setup=function(N){return P||(P=A()),P._setup(N)},I._child=function(N,q,j,D){return P||(P=A()),P._child(N,q,j,D)},I}function C(u,_){if(u===_)return!0;if(f.isArray(u)&&f.isArray(_)&&u.length===_.length){for(var k=0;k<u.length;k++)if(!C(u[k],_[k]))return!1;return!0}}function l(u){if(!u.path.parts){var _=u.path;u.path={type:"PathExpression",data:!1,depth:0,parts:[_.original+""],original:_.original+"",loc:_.loc}}}var a=y(34).default,o=y(1).default;n.__esModule=!0,n.Compiler=r,n.precompile=e,n.compile=d;var v=o(y(6)),f=y(5),g=o(y(45)),h=[].slice;r.prototype={compiler:r,equals:function(u){var _=this.opcodes.length;if(u.opcodes.length!==_)return!1;for(var k=0;k<_;k++){var A=this.opcodes[k],I=u.opcodes[k];if(A.opcode!==I.opcode||!C(A.args,I.args))return!1}for(_=this.children.length,k=0;k<_;k++)if(!this.children[k].equals(u.children[k]))return!1;return!0},guid:0,compile:function(u,_){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=_,this.stringParams=_.stringParams,this.trackIds=_.trackIds,_.blockParams=_.blockParams||[],_.knownHelpers=f.extend(a(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},_.knownHelpers),this.accept(u)},compileProgram:function(u){var _=new this.compiler().compile(u,this.options),k=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[k]=_,this.useDepths=this.useDepths||_.useDepths,k},accept:function(u){if(!this[u.type])throw new v.default("Unknown type: "+u.type,u);this.sourceNode.unshift(u);var _=this[u.type](u);return this.sourceNode.shift(),_},Program:function(u){this.options.blockParams.unshift(u.blockParams);for(var _=u.body,k=_.length,A=0;A<k;A++)this.accept(_[A]);return this.options.blockParams.shift(),this.isSimple=k===1,this.blockParams=u.blockParams?u.blockParams.length:0,this},BlockStatement:function(u){l(u);var _=u.program,k=u.inverse;_=_&&this.compileProgram(_),k=k&&this.compileProgram(k);var A=this.classifySexpr(u);A==="helper"?this.helperSexpr(u,_,k):A==="simple"?(this.simpleSexpr(u),this.opcode("pushProgram",_),this.opcode("pushProgram",k),this.opcode("emptyHash"),this.opcode("blockValue",u.path.original)):(this.ambiguousSexpr(u,_,k),this.opcode("pushProgram",_),this.opcode("pushProgram",k),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(u){var _=u.program&&this.compileProgram(u.program),k=this.setupFullMustacheParams(u,_,void 0),A=u.path;this.useDecorators=!0,this.opcode("registerDecorator",k.length,A.original)},PartialStatement:function(u){this.usePartial=!0;var _=u.program;_&&(_=this.compileProgram(u.program));var k=u.params;if(k.length>1)throw new v.default("Unsupported number of partial arguments: "+k.length,u);k.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):k.push({type:"PathExpression",parts:[],depth:0}));var A=u.name.original,I=u.name.type==="SubExpression";I&&this.accept(u.name),this.setupFullMustacheParams(u,_,void 0,!0);var P=u.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",I,A,P),this.opcode("append")},PartialBlockStatement:function(u){this.PartialStatement(u)},MustacheStatement:function(u){this.SubExpression(u),u.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(u){this.DecoratorBlock(u)},ContentStatement:function(u){u.value&&this.opcode("appendContent",u.value)},CommentStatement:function(){},SubExpression:function(u){l(u);var _=this.classifySexpr(u);_==="simple"?this.simpleSexpr(u):_==="helper"?this.helperSexpr(u):this.ambiguousSexpr(u)},ambiguousSexpr:function(u,_,k){var A=u.path,I=A.parts[0],P=_!=null||k!=null;this.opcode("getContext",A.depth),this.opcode("pushProgram",_),this.opcode("pushProgram",k),A.strict=!0,this.accept(A),this.opcode("invokeAmbiguous",I,P)},simpleSexpr:function(u){var _=u.path;_.strict=!0,this.accept(_),this.opcode("resolvePossibleLambda")},helperSexpr:function(u,_,k){var A=this.setupFullMustacheParams(u,_,k),I=u.path,P=I.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",A.length,P);else{if(this.options.knownHelpersOnly)throw new v.default("You specified knownHelpersOnly, but used the unknown helper "+P,u);I.strict=!0,I.falsy=!0,this.accept(I),this.opcode("invokeHelper",A.length,I.original,g.default.helpers.simpleId(I))}},PathExpression:function(u){this.addDepth(u.depth),this.opcode("getContext",u.depth);var _=u.parts[0],k=g.default.helpers.scopedId(u),A=!u.depth&&!k&&this.blockParamIndex(_);A?this.opcode("lookupBlockParam",A,u.parts):_?u.data?(this.options.data=!0,this.opcode("lookupData",u.depth,u.parts,u.strict)):this.opcode("lookupOnContext",u.parts,u.falsy,u.strict,k):this.opcode("pushContext")},StringLiteral:function(u){this.opcode("pushString",u.value)},NumberLiteral:function(u){this.opcode("pushLiteral",u.value)},BooleanLiteral:function(u){this.opcode("pushLiteral",u.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(u){var _=u.pairs,k=0,A=_.length;for(this.opcode("pushHash");k<A;k++)this.pushParam(_[k].value);for(;k--;)this.opcode("assignToHash",_[k].key);this.opcode("popHash")},opcode:function(u){this.opcodes.push({opcode:u,args:h.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(u){u&&(this.useDepths=!0)},classifySexpr:function(u){var _=g.default.helpers.simpleId(u.path),k=_&&!!this.blockParamIndex(u.path.parts[0]),A=!k&&g.default.helpers.helperExpression(u),I=!k&&(A||_);if(I&&!A){var P=u.path.parts[0],N=this.options;N.knownHelpers[P]?A=!0:N.knownHelpersOnly&&(I=!1)}return A?"helper":I?"ambiguous":"simple"},pushParams:function(u){for(var _=0,k=u.length;_<k;_++)this.pushParam(u[_])},pushParam:function(u){var _=u.value!=null?u.value:u.original||"";if(this.stringParams)_.replace&&(_=_.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),u.depth&&this.addDepth(u.depth),this.opcode("getContext",u.depth||0),this.opcode("pushStringParam",_,u.type),u.type==="SubExpression"&&this.accept(u);else{if(this.trackIds){var k=void 0;if(!u.parts||g.default.helpers.scopedId(u)||u.depth||(k=this.blockParamIndex(u.parts[0])),k){var A=u.parts.slice(1).join(".");this.opcode("pushId","BlockParam",k,A)}else(_=u.original||_).replace&&(_=_.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",u.type,_)}this.accept(u)}},setupFullMustacheParams:function(u,_,k,A){var I=u.params;return this.pushParams(I),this.opcode("pushProgram",_),this.opcode("pushProgram",k),u.hash?this.accept(u.hash):this.opcode("emptyHash",A),I},blockParamIndex:function(u){for(var _=0,k=this.options.blockParams.length;_<k;_++){var A=this.options.blockParams[_],I=A&&f.indexOf(A,u);if(A&&I>=0)return[_,I]}}}},function(c,n,y){function r(g){this.value=g}function e(){}function d(g,h,u,_){var k=h.popStack(),A=0,I=u.length;for(g&&I--;A<I;A++)k=h.nameLookup(k,u[A],_);return g?[h.aliasable("container.strict"),"(",k,", ",h.quotedString(u[A]),", ",JSON.stringify(h.source.currentLocation)," )"]:k}var C=y(13).default,l=y(1).default;n.__esModule=!0;var a=y(4),o=l(y(6)),v=y(5),f=l(y(53));e.prototype={nameLookup:function(g,h){return this.internalNameLookup(g,h)},depthedLookup:function(g){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(g),")"]},compilerInfo:function(){var g=a.COMPILER_REVISION;return[g,a.REVISION_CHANGES[g]]},appendToBuffer:function(g,h,u){return v.isArray(g)||(g=[g]),g=this.source.wrap(g,h),this.environment.isSimple?["return ",g,";"]:u?["buffer += ",g,";"]:(g.appendToBuffer=!0,g)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(g,h){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",g,",",JSON.stringify(h),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(g,h,u,_){this.environment=g,this.options=h,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!u,this.context=u||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(g,h),this.useDepths=this.useDepths||g.useDepths||g.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||g.useBlockParams;var k=g.opcodes,A=void 0,I=void 0,P=void 0,N=void 0;for(P=0,N=k.length;P<N;P++)A=k[P],this.source.currentLocation=A.loc,I=I||A.loc,this[A.opcode].apply(this,A.args);if(this.source.currentLocation=I,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
439
+ Expecting `+oe.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on line "+(u+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:I,expected:oe})}}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+P);switch(j[0]){case 1:s.push(P),v.push(this.lexer.yytext),f.push(this.lexer.yylloc),s.push(j[1]),P=null,N?(P=N,N=null):(_=this.lexer.yyleng,h=this.lexer.yytext,u=this.lexer.yylineno,I=this.lexer.yylloc,S>0);break;case 2:if(V=this.productions_[j[1]][1],ne.$=v[v.length-V],ne._$={first_line:f[f.length-(V||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(V||1)].first_column,last_column:f[f.length-1].last_column},T&&(ne._$.range=[f[f.length-(V||1)].range[0],f[f.length-1].range[1]]),(D=this.performAction.call(ne,h,_,u,this.yy,j[1],v,f))!==void 0)return D;V&&(s=s.slice(0,-1*V*2),v=v.slice(0,-1*V),f=f.slice(0,-1*V)),s.push(this.productions_[j[1]][0]),v.push(ne.$),f.push(ne._$),J=g[s[s.length-2]][s[s.length-1]],s.push(J);break;case 3:return!0}}return!0}},d=function(){var C={EOF:1,parseError:function(l,a){if(!this.yy.parser)throw new Error(l);this.yy.parser.parseError(l,a)},setInput:function(l){return this._input=l,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var l=this._input[0];return this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l,l.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var a=l.length,s=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var v=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===v.length?this.yylloc.first_column:0)+v[v.length-s.length].length-s[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),a=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
440
+ `+a+"^"},next:function(){if(this.done)return this.EOF;var l,a,s,v,f;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),h=0;h<g.length&&(!(s=this._input.match(this.rules[g[h]]))||a&&!(s[0].length>a[0].length)||(a=s,v=h,this.options.flex));h++);return a?((f=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],l=this.performAction.call(this,this.yy,this,g[v],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
441
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l!==void 0?l:this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(l){this.begin(l)},options:{},performAction:function(l,a,s,v){function f(g,h){return a.yytext=a.yytext.substring(g,a.yyleng-h+g)}switch(s){case 0:if(a.yytext.slice(-2)==="\\\\"?(f(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(f(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(f(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return a.yytext=f(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=f(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return C}();return e.lexer=d,r.prototype=e,e.Parser=r,new r}();n.default=y,c.exports=n.default},function(c,n,y){function r(){var v=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=v}function e(v,f,g){f===void 0&&(f=v.length);var h=v[f-1],u=v[f-2];return h?h.type==="ContentStatement"?(u||!g?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original):void 0:g}function d(v,f,g){f===void 0&&(f=-1);var h=v[f+1],u=v[f+2];return h?h.type==="ContentStatement"?(u||!g?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original):void 0:g}function C(v,f,g){var h=v[f==null?0:f+1];if(h&&h.type==="ContentStatement"&&(g||!h.rightStripped)){var u=h.value;h.value=h.value.replace(g?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==u}}function l(v,f,g){var h=v[f==null?v.length-1:f-1];if(h&&h.type==="ContentStatement"&&(g||!h.leftStripped)){var u=h.value;return h.value=h.value.replace(g?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==u,h.leftStripped}}var a=y(1).default;n.__esModule=!0;var s=a(y(49));r.prototype=new s.default,r.prototype.Program=function(v){var f=!this.options.ignoreStandalone,g=!this.isRootSeen;this.isRootSeen=!0;for(var h=v.body,u=0,_=h.length;u<_;u++){var S=h[u],I=this.accept(S);if(I){var T=e(h,u,g),P=d(h,u,g),N=I.openStandalone&&T,q=I.closeStandalone&&P,j=I.inlineStandalone&&T&&P;I.close&&C(h,u,!0),I.open&&l(h,u,!0),f&&j&&(C(h,u),l(h,u)&&S.type==="PartialStatement"&&(S.indent=/([ \t]+$)/.exec(h[u-1].original)[1])),f&&N&&(C((S.program||S.inverse).body),l(h,u)),f&&q&&(C(h,u),l((S.inverse||S.program).body))}}return v},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(v){this.accept(v.program),this.accept(v.inverse);var f=v.program||v.inverse,g=v.program&&v.inverse,h=g,u=g;if(g&&g.chained)for(h=g.body[0].program;u.chained;)u=u.body[u.body.length-1].program;var _={open:v.openStrip.open,close:v.closeStrip.close,openStandalone:d(f.body),closeStandalone:e((h||f).body)};if(v.openStrip.close&&C(f.body,null,!0),g){var S=v.inverseStrip;S.open&&l(f.body,null,!0),S.close&&C(h.body,null,!0),v.closeStrip.open&&l(u.body,null,!0),!this.options.ignoreStandalone&&e(f.body)&&d(h.body)&&(l(f.body),C(h.body))}else v.closeStrip.open&&l(f.body,null,!0);return _},r.prototype.Decorator=r.prototype.MustacheStatement=function(v){return v.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(v){var f=v.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}},n.default=r,c.exports=n.default},function(c,n,y){function r(){this.parents=[]}function e(s){this.acceptRequired(s,"path"),this.acceptArray(s.params),this.acceptKey(s,"hash")}function d(s){e.call(this,s),this.acceptKey(s,"program"),this.acceptKey(s,"inverse")}function C(s){this.acceptRequired(s,"name"),this.acceptArray(s.params),this.acceptKey(s,"hash")}var l=y(1).default;n.__esModule=!0;var a=l(y(6));r.prototype={constructor:r,mutating:!1,acceptKey:function(s,v){var f=this.accept(s[v]);if(this.mutating){if(f&&!r.prototype[f.type])throw new a.default('Unexpected node type "'+f.type+'" found when accepting '+v+" on "+s.type);s[v]=f}},acceptRequired:function(s,v){if(this.acceptKey(s,v),!s[v])throw new a.default(s.type+" requires "+v)},acceptArray:function(s){for(var v=0,f=s.length;v<f;v++)this.acceptKey(s,v),s[v]||(s.splice(v,1),v--,f--)},accept:function(s){if(s){if(!this[s.type])throw new a.default("Unknown type: "+s.type,s);this.current&&this.parents.unshift(this.current),this.current=s;var v=this[s.type](s);return this.current=this.parents.shift(),!this.mutating||v?v:v!==!1?s:void 0}},Program:function(s){this.acceptArray(s.body)},MustacheStatement:e,Decorator:e,BlockStatement:d,DecoratorBlock:d,PartialStatement:C,PartialBlockStatement:function(s){C.call(this,s),this.acceptKey(s,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(s){this.acceptArray(s.pairs)},HashPair:function(s){this.acceptRequired(s,"value")}},n.default=r,c.exports=n.default},function(c,n,y){function r(S,I){if(I=I.path?I.path.original:I,S.path.original!==I){var T={loc:S.path.loc};throw new _.default(S.path.original+" doesn't match "+I,T)}}function e(S,I){this.source=S,this.start={line:I.first_line,column:I.first_column},this.end={line:I.last_line,column:I.last_column}}function d(S){return/^\[.*\]$/.test(S)?S.substring(1,S.length-1):S}function C(S,I){return{open:S.charAt(2)==="~",close:I.charAt(I.length-3)==="~"}}function l(S){return S.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function a(S,I,T){T=this.locInfo(T);for(var P=S?"@":"",N=[],q=0,j=0,D=I.length;j<D;j++){var L=I[j].part,V=I[j].original!==L;if(P+=(I[j].separator||"")+L,V||L!==".."&&L!=="."&&L!=="this")N.push(L);else{if(N.length>0)throw new _.default("Invalid path: "+P,{loc:T});L===".."&&q++}}return{type:"PathExpression",data:S,depth:q,parts:N,original:P,loc:T}}function s(S,I,T,P,N,q){var j=P.charAt(3)||P.charAt(2),D=j!=="{"&&j!=="&";return{type:/\*/.test(P)?"Decorator":"MustacheStatement",path:S,params:I,hash:T,escaped:D,strip:N,loc:this.locInfo(q)}}function v(S,I,T,P){r(S,T);var N={type:"Program",body:I,strip:{},loc:P=this.locInfo(P)};return{type:"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:N,openStrip:{},inverseStrip:{},closeStrip:{},loc:P}}function f(S,I,T,P,N,q){P&&P.path&&r(S,P);var j=/\*/.test(S.open);I.blockParams=S.blockParams;var D=void 0,L=void 0;if(T){if(j)throw new _.default("Unexpected inverse block on decorator",T);T.chain&&(T.program.body[0].closeStrip=P.strip),L=T.strip,D=T.program}return N&&(N=D,D=I,I=N),{type:j?"DecoratorBlock":"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:I,inverse:D,openStrip:S.strip,inverseStrip:L,closeStrip:P&&P.strip,loc:this.locInfo(q)}}function g(S,I){if(!I&&S.length){var T=S[0].loc,P=S[S.length-1].loc;T&&P&&(I={source:T.source,start:{line:T.start.line,column:T.start.column},end:{line:P.end.line,column:P.end.column}})}return{type:"Program",body:S,strip:{},loc:I}}function h(S,I,T,P){return r(S,T),{type:"PartialBlockStatement",name:S.path,params:S.params,hash:S.hash,program:I,openStrip:S.strip,closeStrip:T&&T.strip,loc:this.locInfo(P)}}var u=y(1).default;n.__esModule=!0,n.SourceLocation=e,n.id=d,n.stripFlags=C,n.stripComment=l,n.preparePath=a,n.prepareMustache=s,n.prepareRawBlock=v,n.prepareBlock=f,n.prepareProgram=g,n.preparePartialBlock=h;var _=u(y(6))},function(c,n,y){function r(){}function e(u,_,S){if(u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+u);"data"in(_=_||{})||(_.data=!0),_.compat&&(_.useDepths=!0);var I=S.parse(u,_),T=new S.Compiler().compile(I,_);return new S.JavaScriptCompiler().compile(T,_)}function d(u,_,S){function I(){var N=S.parse(u,_),q=new S.Compiler().compile(N,_),j=new S.JavaScriptCompiler().compile(q,_,void 0,!0);return S.template(j)}function T(N,q){return P||(P=I()),P.call(this,N,q)}if(_===void 0&&(_={}),u==null||typeof u!="string"&&u.type!=="Program")throw new v.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+u);"data"in(_=f.extend({},_))||(_.data=!0),_.compat&&(_.useDepths=!0);var P=void 0;return T._setup=function(N){return P||(P=I()),P._setup(N)},T._child=function(N,q,j,D){return P||(P=I()),P._child(N,q,j,D)},T}function C(u,_){if(u===_)return!0;if(f.isArray(u)&&f.isArray(_)&&u.length===_.length){for(var S=0;S<u.length;S++)if(!C(u[S],_[S]))return!1;return!0}}function l(u){if(!u.path.parts){var _=u.path;u.path={type:"PathExpression",data:!1,depth:0,parts:[_.original+""],original:_.original+"",loc:_.loc}}}var a=y(34).default,s=y(1).default;n.__esModule=!0,n.Compiler=r,n.precompile=e,n.compile=d;var v=s(y(6)),f=y(5),g=s(y(45)),h=[].slice;r.prototype={compiler:r,equals:function(u){var _=this.opcodes.length;if(u.opcodes.length!==_)return!1;for(var S=0;S<_;S++){var I=this.opcodes[S],T=u.opcodes[S];if(I.opcode!==T.opcode||!C(I.args,T.args))return!1}for(_=this.children.length,S=0;S<_;S++)if(!this.children[S].equals(u.children[S]))return!1;return!0},guid:0,compile:function(u,_){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=_,this.stringParams=_.stringParams,this.trackIds=_.trackIds,_.blockParams=_.blockParams||[],_.knownHelpers=f.extend(a(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},_.knownHelpers),this.accept(u)},compileProgram:function(u){var _=new this.compiler().compile(u,this.options),S=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[S]=_,this.useDepths=this.useDepths||_.useDepths,S},accept:function(u){if(!this[u.type])throw new v.default("Unknown type: "+u.type,u);this.sourceNode.unshift(u);var _=this[u.type](u);return this.sourceNode.shift(),_},Program:function(u){this.options.blockParams.unshift(u.blockParams);for(var _=u.body,S=_.length,I=0;I<S;I++)this.accept(_[I]);return this.options.blockParams.shift(),this.isSimple=S===1,this.blockParams=u.blockParams?u.blockParams.length:0,this},BlockStatement:function(u){l(u);var _=u.program,S=u.inverse;_=_&&this.compileProgram(_),S=S&&this.compileProgram(S);var I=this.classifySexpr(u);I==="helper"?this.helperSexpr(u,_,S):I==="simple"?(this.simpleSexpr(u),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("blockValue",u.path.original)):(this.ambiguousSexpr(u,_,S),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(u){var _=u.program&&this.compileProgram(u.program),S=this.setupFullMustacheParams(u,_,void 0),I=u.path;this.useDecorators=!0,this.opcode("registerDecorator",S.length,I.original)},PartialStatement:function(u){this.usePartial=!0;var _=u.program;_&&(_=this.compileProgram(u.program));var S=u.params;if(S.length>1)throw new v.default("Unsupported number of partial arguments: "+S.length,u);S.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):S.push({type:"PathExpression",parts:[],depth:0}));var I=u.name.original,T=u.name.type==="SubExpression";T&&this.accept(u.name),this.setupFullMustacheParams(u,_,void 0,!0);var P=u.indent||"";this.options.preventIndent&&P&&(this.opcode("appendContent",P),P=""),this.opcode("invokePartial",T,I,P),this.opcode("append")},PartialBlockStatement:function(u){this.PartialStatement(u)},MustacheStatement:function(u){this.SubExpression(u),u.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(u){this.DecoratorBlock(u)},ContentStatement:function(u){u.value&&this.opcode("appendContent",u.value)},CommentStatement:function(){},SubExpression:function(u){l(u);var _=this.classifySexpr(u);_==="simple"?this.simpleSexpr(u):_==="helper"?this.helperSexpr(u):this.ambiguousSexpr(u)},ambiguousSexpr:function(u,_,S){var I=u.path,T=I.parts[0],P=_!=null||S!=null;this.opcode("getContext",I.depth),this.opcode("pushProgram",_),this.opcode("pushProgram",S),I.strict=!0,this.accept(I),this.opcode("invokeAmbiguous",T,P)},simpleSexpr:function(u){var _=u.path;_.strict=!0,this.accept(_),this.opcode("resolvePossibleLambda")},helperSexpr:function(u,_,S){var I=this.setupFullMustacheParams(u,_,S),T=u.path,P=T.parts[0];if(this.options.knownHelpers[P])this.opcode("invokeKnownHelper",I.length,P);else{if(this.options.knownHelpersOnly)throw new v.default("You specified knownHelpersOnly, but used the unknown helper "+P,u);T.strict=!0,T.falsy=!0,this.accept(T),this.opcode("invokeHelper",I.length,T.original,g.default.helpers.simpleId(T))}},PathExpression:function(u){this.addDepth(u.depth),this.opcode("getContext",u.depth);var _=u.parts[0],S=g.default.helpers.scopedId(u),I=!u.depth&&!S&&this.blockParamIndex(_);I?this.opcode("lookupBlockParam",I,u.parts):_?u.data?(this.options.data=!0,this.opcode("lookupData",u.depth,u.parts,u.strict)):this.opcode("lookupOnContext",u.parts,u.falsy,u.strict,S):this.opcode("pushContext")},StringLiteral:function(u){this.opcode("pushString",u.value)},NumberLiteral:function(u){this.opcode("pushLiteral",u.value)},BooleanLiteral:function(u){this.opcode("pushLiteral",u.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(u){var _=u.pairs,S=0,I=_.length;for(this.opcode("pushHash");S<I;S++)this.pushParam(_[S].value);for(;S--;)this.opcode("assignToHash",_[S].key);this.opcode("popHash")},opcode:function(u){this.opcodes.push({opcode:u,args:h.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(u){u&&(this.useDepths=!0)},classifySexpr:function(u){var _=g.default.helpers.simpleId(u.path),S=_&&!!this.blockParamIndex(u.path.parts[0]),I=!S&&g.default.helpers.helperExpression(u),T=!S&&(I||_);if(T&&!I){var P=u.path.parts[0],N=this.options;N.knownHelpers[P]?I=!0:N.knownHelpersOnly&&(T=!1)}return I?"helper":T?"ambiguous":"simple"},pushParams:function(u){for(var _=0,S=u.length;_<S;_++)this.pushParam(u[_])},pushParam:function(u){var _=u.value!=null?u.value:u.original||"";if(this.stringParams)_.replace&&(_=_.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),u.depth&&this.addDepth(u.depth),this.opcode("getContext",u.depth||0),this.opcode("pushStringParam",_,u.type),u.type==="SubExpression"&&this.accept(u);else{if(this.trackIds){var S=void 0;if(!u.parts||g.default.helpers.scopedId(u)||u.depth||(S=this.blockParamIndex(u.parts[0])),S){var I=u.parts.slice(1).join(".");this.opcode("pushId","BlockParam",S,I)}else(_=u.original||_).replace&&(_=_.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",u.type,_)}this.accept(u)}},setupFullMustacheParams:function(u,_,S,I){var T=u.params;return this.pushParams(T),this.opcode("pushProgram",_),this.opcode("pushProgram",S),u.hash?this.accept(u.hash):this.opcode("emptyHash",I),T},blockParamIndex:function(u){for(var _=0,S=this.options.blockParams.length;_<S;_++){var I=this.options.blockParams[_],T=I&&f.indexOf(I,u);if(I&&T>=0)return[_,T]}}}},function(c,n,y){function r(g){this.value=g}function e(){}function d(g,h,u,_){var S=h.popStack(),I=0,T=u.length;for(g&&T--;I<T;I++)S=h.nameLookup(S,u[I],_);return g?[h.aliasable("container.strict"),"(",S,", ",h.quotedString(u[I]),", ",JSON.stringify(h.source.currentLocation)," )"]:S}var C=y(13).default,l=y(1).default;n.__esModule=!0;var a=y(4),s=l(y(6)),v=y(5),f=l(y(53));e.prototype={nameLookup:function(g,h){return this.internalNameLookup(g,h)},depthedLookup:function(g){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(g),")"]},compilerInfo:function(){var g=a.COMPILER_REVISION;return[g,a.REVISION_CHANGES[g]]},appendToBuffer:function(g,h,u){return v.isArray(g)||(g=[g]),g=this.source.wrap(g,h),this.environment.isSimple?["return ",g,";"]:u?["buffer += ",g,";"]:(g.appendToBuffer=!0,g)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(g,h){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",g,",",JSON.stringify(h),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(g,h,u,_){this.environment=g,this.options=h,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!u,this.context=u||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(g,h),this.useDepths=this.useDepths||g.useDepths||g.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||g.useBlockParams;var S=g.opcodes,I=void 0,T=void 0,P=void 0,N=void 0;for(P=0,N=S.length;P<N;P++)I=S[P],this.source.currentLocation=I.loc,T=T||I.loc,this[I.opcode].apply(this,I.args);if(this.source.currentLocation=T,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
441
442
  `]),this.decorators.push("return fn;"),_?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
442
443
  `),this.decorators.push(`}
443
- `),this.decorators=this.decorators.merge()));var q=this.createFunctionContext(_);if(this.isChild)return q;var j={compiler:this.compilerInfo(),main:q};this.decorators&&(j.main_d=this.decorators,j.useDecorators=!0);var D=this.context,L=D.programs,V=D.decorators;for(P=0,N=L.length;P<N;P++)L[P]&&(j[P]=L[P],V[P]&&(j[P+"_d"]=V[P],j.useDecorators=!0));return this.environment.usePartial&&(j.usePartial=!0),this.options.data&&(j.useData=!0),this.useDepths&&(j.useDepths=!0),this.useBlockParams&&(j.useBlockParams=!0),this.options.compat&&(j.compat=!0),_?j.compilerOptions=this.options:(j.compiler=JSON.stringify(j.compiler),this.source.currentLocation={start:{line:1,column:0}},j=this.objectLiteral(j),h.srcName?(j=j.toStringWithSourceMap({file:h.destName})).map=j.map&&j.map.toString():j=j.toString()),j},preamble:function(){this.lastContext=0,this.source=new f.default(this.options.srcName),this.decorators=new f.default(this.options.srcName)},createFunctionContext:function(g){var h=this,u="",_=this.stackVars.concat(this.registers.list);_.length>0&&(u+=", "+_.join(", "));var k=0;C(this.aliases).forEach(function(P){var N=h.aliases[P];N.children&&N.referenceCount>1&&(u+=", alias"+ ++k+"="+P,N.children[0]="alias"+k)}),this.lookupPropertyFunctionIsUsed&&(u+=", "+this.lookupPropertyFunctionVarDeclaration());var A=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&A.push("blockParams"),this.useDepths&&A.push("depths");var I=this.mergeSource(u);return g?(A.push(I),Function.apply(this,A)):this.source.wrap(["function(",A.join(","),`) {
444
- `,I,"}"])},mergeSource:function(g){var h=this.environment.isSimple,u=!this.forceBuffer,_=void 0,k=void 0,A=void 0,I=void 0;return this.source.each(function(P){P.appendToBuffer?(A?P.prepend(" + "):A=P,I=P):(A&&(k?A.prepend("buffer += "):_=!0,I.add(";"),A=I=void 0),k=!0,h||(u=!1))}),u?A?(A.prepend("return "),I.add(";")):k||this.source.push('return "";'):(g+=", buffer = "+(_?"":this.initializeBuffer()),A?(A.prepend("return buffer + "),I.add(";")):this.source.push("return buffer;")),g&&this.source.prepend("var "+g.substring(2)+(_?"":`;
444
+ `),this.decorators=this.decorators.merge()));var q=this.createFunctionContext(_);if(this.isChild)return q;var j={compiler:this.compilerInfo(),main:q};this.decorators&&(j.main_d=this.decorators,j.useDecorators=!0);var D=this.context,L=D.programs,V=D.decorators;for(P=0,N=L.length;P<N;P++)L[P]&&(j[P]=L[P],V[P]&&(j[P+"_d"]=V[P],j.useDecorators=!0));return this.environment.usePartial&&(j.usePartial=!0),this.options.data&&(j.useData=!0),this.useDepths&&(j.useDepths=!0),this.useBlockParams&&(j.useBlockParams=!0),this.options.compat&&(j.compat=!0),_?j.compilerOptions=this.options:(j.compiler=JSON.stringify(j.compiler),this.source.currentLocation={start:{line:1,column:0}},j=this.objectLiteral(j),h.srcName?(j=j.toStringWithSourceMap({file:h.destName})).map=j.map&&j.map.toString():j=j.toString()),j},preamble:function(){this.lastContext=0,this.source=new f.default(this.options.srcName),this.decorators=new f.default(this.options.srcName)},createFunctionContext:function(g){var h=this,u="",_=this.stackVars.concat(this.registers.list);_.length>0&&(u+=", "+_.join(", "));var S=0;C(this.aliases).forEach(function(P){var N=h.aliases[P];N.children&&N.referenceCount>1&&(u+=", alias"+ ++S+"="+P,N.children[0]="alias"+S)}),this.lookupPropertyFunctionIsUsed&&(u+=", "+this.lookupPropertyFunctionVarDeclaration());var I=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&I.push("blockParams"),this.useDepths&&I.push("depths");var T=this.mergeSource(u);return g?(I.push(T),Function.apply(this,I)):this.source.wrap(["function(",I.join(","),`) {
445
+ `,T,"}"])},mergeSource:function(g){var h=this.environment.isSimple,u=!this.forceBuffer,_=void 0,S=void 0,I=void 0,T=void 0;return this.source.each(function(P){P.appendToBuffer?(I?P.prepend(" + "):I=P,T=P):(I&&(S?I.prepend("buffer += "):_=!0,T.add(";"),I=T=void 0),S=!0,h||(u=!1))}),u?I?(I.prepend("return "),T.add(";")):S||this.source.push('return "";'):(g+=", buffer = "+(_?"":this.initializeBuffer()),I?(I.prepend("return buffer + "),T.add(";")):this.source.push("return buffer;")),g&&this.source.prepend("var "+g.substring(2)+(_?"":`;
445
446
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
446
447
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
447
448
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -449,6 +450,6 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[P]||P)+"'":"Parse error on
449
450
  }
450
451
  return undefined
451
452
  }
452
- `.trim()},blockValue:function(g){var h=this.aliasable("container.hooks.blockHelperMissing"),u=[this.contextName(0)];this.setupHelperArgs(g,0,u);var _=this.popStack();u.splice(1,0,_),this.push(this.source.functionCall(h,"call",u))},ambiguousBlockValue:function(){var g=this.aliasable("container.hooks.blockHelperMissing"),h=[this.contextName(0)];this.setupHelperArgs("",0,h,!0),this.flushInline();var u=this.topStack();h.splice(1,0,u),this.pushSource(["if (!",this.lastHelper,") { ",u," = ",this.source.functionCall(g,"call",h),"}"])},appendContent:function(g){this.pendingContent?g=this.pendingContent+g:this.pendingLocation=this.source.currentLocation,this.pendingContent=g},append:function(){if(this.isInline())this.replaceStack(function(h){return[" != null ? ",h,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var g=this.popStack();this.pushSource(["if (",g," != null) { ",this.appendToBuffer(g,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(g){this.lastContext=g},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(g,h,u,_){var k=0;_||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(g[k++])),this.resolvePath("context",g,k,h,u)},lookupBlockParam:function(g,h){this.useBlockParams=!0,this.push(["blockParams[",g[0],"][",g[1],"]"]),this.resolvePath("context",h,1)},lookupData:function(g,h,u){g?this.pushStackLiteral("container.data(data, "+g+")"):this.pushStackLiteral("data"),this.resolvePath("data",h,0,!0,u)},resolvePath:function(g,h,u,_,k){var A=this;if(this.options.strict||this.options.assumeObjects)this.push(d(this.options.strict&&k,this,h,g));else for(var I=h.length;u<I;u++)this.replaceStack(function(P){var N=A.nameLookup(P,h[u],g);return _?[" && ",N]:[" != null ? ",N," : ",P]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(g,h){this.pushContext(),this.pushString(h),h!=="SubExpression"&&(typeof g=="string"?this.pushString(g):this.pushStackLiteral(g))},emptyHash:function(g){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(g?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var g=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(g.ids)),this.stringParams&&(this.push(this.objectLiteral(g.contexts)),this.push(this.objectLiteral(g.types))),this.push(this.objectLiteral(g.values))},pushString:function(g){this.pushStackLiteral(this.quotedString(g))},pushLiteral:function(g){this.pushStackLiteral(g)},pushProgram:function(g){g!=null?this.pushStackLiteral(this.programExpression(g)):this.pushStackLiteral(null)},registerDecorator:function(g,h){var u=this.nameLookup("decorators",h,"decorator"),_=this.setupHelperArgs(h,g);this.decorators.push(["fn = ",this.decorators.functionCall(u,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(g,h,u){var _=this.popStack(),k=this.setupHelper(g,h),A=[];u&&A.push(k.name),A.push(_),this.options.strict||A.push(this.aliasable("container.hooks.helperMissing"));var I=["(",this.itemsSeparatedBy(A,"||"),")"],P=this.source.functionCall(I,"call",k.callParams);this.push(P)},itemsSeparatedBy:function(g,h){var u=[];u.push(g[0]);for(var _=1;_<g.length;_++)u.push(h,g[_]);return u},invokeKnownHelper:function(g,h){var u=this.setupHelper(g,h);this.push(this.source.functionCall(u.name,"call",u.callParams))},invokeAmbiguous:function(g,h){this.useRegister("helper");var u=this.popStack();this.emptyHash();var _=this.setupHelper(0,g,h),k=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",g,"helper")," || ",u,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,_.paramsInit?["),(",_.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",_.callParams)," : helper))"])},invokePartial:function(g,h,u){var _=[],k=this.setupParams(h,1,_);g&&(h=this.popStack(),delete k.name),u&&(k.indent=JSON.stringify(u)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",g?_.unshift(h):_.unshift(this.nameLookup("partials",h,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),_.push(k),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(g){var h=this.popStack(),u=void 0,_=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(_=this.popStack(),u=this.popStack());var A=this.hash;u&&(A.contexts[g]=u),_&&(A.types[g]=_),k&&(A.ids[g]=k),A.values[g]=h},pushId:function(g,h,u){g==="BlockParam"?this.pushStackLiteral("blockParams["+h[0]+"].path["+h[1]+"]"+(u?" + "+JSON.stringify("."+u):"")):g==="PathExpression"?this.pushString(h):g==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(g,h){for(var u=g.children,_=void 0,k=void 0,A=0,I=u.length;A<I;A++){_=u[A],k=new this.compiler;var P=this.matchExistingProgram(_);if(P==null){this.context.programs.push("");var N=this.context.programs.length;_.index=N,_.name="program"+N,this.context.programs[N]=k.compile(_,h,this.context,!this.precompile),this.context.decorators[N]=k.decorators,this.context.environments[N]=_,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=P.index,_.name="program"+P.index,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams}},matchExistingProgram:function(g){for(var h=0,u=this.context.environments.length;h<u;h++){var _=this.context.environments[h];if(_&&_.equals(g))return _}},programExpression:function(g){var h=this.environment.children[g],u=[h.index,"data",h.blockParams];return(this.useBlockParams||this.useDepths)&&u.push("blockParams"),this.useDepths&&u.push("depths"),"container.program("+u.join(", ")+")"},useRegister:function(g){this.registers[g]||(this.registers[g]=!0,this.registers.list.push(g))},push:function(g){return g instanceof r||(g=this.source.wrap(g)),this.inlineStack.push(g),g},pushStackLiteral:function(g){this.push(new r(g))},pushSource:function(g){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),g&&this.source.push(g)},replaceStack:function(g){var h=["("],u=void 0,_=void 0,k=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var A=this.popStack(!0);if(A instanceof r)h=["(",u=[A.value]],k=!0;else{_=!0;var I=this.incrStack();h=["((",this.push(I)," = ",A,")"],u=this.topStack()}var P=g.call(this,u);k||this.popStack(),_&&this.stackSlot--,this.push(h.concat(P,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var g=this.inlineStack;this.inlineStack=[];for(var h=0,u=g.length;h<u;h++){var _=g[h];if(_ instanceof r)this.compileStack.push(_);else{var k=this.incrStack();this.pushSource([k," = ",_,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(g){var h=this.isInline(),u=(h?this.inlineStack:this.compileStack).pop();if(!g&&u instanceof r)return u.value;if(!h){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return u},topStack:function(){var g=this.isInline()?this.inlineStack:this.compileStack,h=g[g.length-1];return h instanceof r?h.value:h},contextName:function(g){return this.useDepths&&g?"depths["+g+"]":"depth"+g},quotedString:function(g){return this.source.quotedString(g)},objectLiteral:function(g){return this.source.objectLiteral(g)},aliasable:function(g){var h=this.aliases[g];return h?(h.referenceCount++,h):((h=this.aliases[g]=this.source.wrap(g)).aliasable=!0,h.referenceCount=1,h)},setupHelper:function(g,h,u){var _=[];return{params:_,paramsInit:this.setupHelperArgs(h,g,_,u),name:this.nameLookup("helpers",h,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(_)}},setupParams:function(g,h,u){var _={},k=[],A=[],I=[],P=!u,N=void 0;P&&(u=[]),_.name=this.quotedString(g),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var q=this.popStack(),j=this.popStack();(j||q)&&(_.fn=j||"container.noop",_.inverse=q||"container.noop");for(var D=h;D--;)N=this.popStack(),u[D]=N,this.trackIds&&(I[D]=this.popStack()),this.stringParams&&(A[D]=this.popStack(),k[D]=this.popStack());return P&&(_.args=this.source.generateArray(u)),this.trackIds&&(_.ids=this.source.generateArray(I)),this.stringParams&&(_.types=this.source.generateArray(A),_.contexts=this.source.generateArray(k)),this.options.data&&(_.data="data"),this.useBlockParams&&(_.blockParams="blockParams"),_},setupHelperArgs:function(g,h,u,_){var k=this.setupParams(g,h,u);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),_?(this.useRegister("options"),u.push("options"),["options=",k]):u?(u.push(k),""):k}},function(){for(var g="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=e.RESERVED_WORDS={},u=0,_=g.length;u<_;u++)h[g[u]]=!0}(),e.isValidJavaScriptVariableName=function(g){return!e.RESERVED_WORDS[g]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(g)},n.default=e,c.exports=n.default},function(c,n,y){function r(a,o,v){if(C.isArray(a)){for(var f=[],g=0,h=a.length;g<h;g++)f.push(o.wrap(a[g],v));return f}return typeof a=="boolean"||typeof a=="number"?a+"":a}function e(a){this.srcFile=a,this.source=[]}var d=y(13).default;n.__esModule=!0;var C=y(5),l=void 0;l||(l=function(a,o,v,f){this.src="",f&&this.add(f)},l.prototype={add:function(a){C.isArray(a)&&(a=a.join("")),this.src+=a},prepend:function(a){C.isArray(a)&&(a=a.join("")),this.src=a+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),e.prototype={isEmpty:function(){return!this.source.length},prepend:function(a,o){this.source.unshift(this.wrap(a,o))},push:function(a,o){this.source.push(this.wrap(a,o))},merge:function(){var a=this.empty();return this.each(function(o){a.add([" ",o,`
453
- `])}),a},each:function(a){for(var o=0,v=this.source.length;o<v;o++)a(this.source[o])},empty:function(){var a=this.currentLocation||{start:{}};return new l(a.start.line,a.start.column,this.srcFile)},wrap:function(a){var o=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return a instanceof l?a:(a=r(a,this,o),new l(o.start.line,o.start.column,this.srcFile,a))},functionCall:function(a,o,v){return v=this.generateList(v),this.wrap([a,o?"."+o+"(":"(",v,")"])},quotedString:function(a){return'"'+(a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var o=this,v=[];d(a).forEach(function(g){var h=r(a[g],o);h!=="undefined"&&v.push([o.quotedString(g),":",h])});var f=this.generateList(v);return f.prepend("{"),f.add("}"),f},generateList:function(a){for(var o=this.empty(),v=0,f=a.length;v<f;v++)v&&o.add(","),o.add(r(a[v],this));return o},generateArray:function(a){var o=this.generateList(a);return o.prepend("["),o.add("]"),o}},n.default=e,c.exports=n.default}])},3633:function(b,c,n){b.exports=n(261).default}},s={};function w(b){var c=s[b];if(c!==void 0)return c.exports;var n=s[b]={exports:{}};return p[b].call(n.exports,n,n.exports,w),n.exports}return w.n=function(b){var c=b&&b.__esModule?function(){return b.default}:function(){return b};return w.d(c,{a:c}),c},w.d=function(b,c){for(var n in c)w.o(c,n)&&!w.o(b,n)&&Object.defineProperty(b,n,{enumerable:!0,get:c[n]})},w.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),w.o=function(b,c){return Object.prototype.hasOwnProperty.call(b,c)},w(2987)}()})})(oo);var yl=oo.exports;const Ct=qr(yl),vl=({addSearchUi:t,searchFieldMaxWidthInPixels:i,searchFieldHeaderText:p,searchInputPlaceholderText:s,searchButtonText:w,hasSearchInputAutofocus:b,hasSearchAsYouType:c,minLengthToShowSearchAsYouTypeResults:n,hasSearchInputFieldIcon:y,hasAutocomplete:r,hasConversationalSearch:e,hasConversationalSearchHideToggle:d,loadMoreResults:C,sortByOptions:l,filters:a,hasActiveFilters:o})=>{const[v,f]=wt.useState(!1),g=wt.useRef(null),h=wt.useMemo(()=>a.filter(A=>A.type==="checkbox-group"||A.type==="radio-group"||A.type==="tags"),[a]),u=wt.useMemo(()=>h.length>0,[h]),_=wt.useMemo(()=>a&&a.find(A=>A.type==="tabs"),[]),k=wt.useMemo(()=>a&&a.find(A=>A.type==="select-list"),[]);return wt.useEffect(()=>{t.searchField({containerId:"search-field-container",placeholder:s,button:w,icon:y,autofocus:b,searchAsYouType:c,minLengthToShowResults:n}),e&&t.conversationalSearchResult({containerId:"conversational-search-result-container",mainHeadlineText:"AI-generated answer",answerMaxHeight:150,sourcesHeadlineText:"Based on the following sources:",hasHideToggle:d}),t.searchResults({containerId:"search-results-container"}),r&&t.autocomplete({containerId:"autocomplete-container",sources:[{type:Ct.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),C==="button"?t.loadMore({containerId:"loadmore-container",type:Ct.LOAD_MORE_TYPE.BUTTON}):C==="pagination"?t.pagination({containerId:"pagination-container"}):C==="scroll"&&t.loadMore({containerId:g.current,type:Ct.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:g.current}),l!=null&&l.length&&(l==null?void 0:l.length)>0&&t.sortBy({containerId:"sortby-container",options:l}),a&&a.length>0&&(a.forEach((A,I)=>{A.type==="checkbox-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.CHECKBOX_GROUP,options:A.options}):A.type==="radio-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.RADIO_GROUP,options:A.options}):A.type==="tags"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.TAGS,options:A.options}):A.type==="tabs"?t.filters({containerId:"tab-filters-container",type:Ct.FILTER_TYPE.TABS,options:A.options}):A.type==="select-list"&&(t.filters({containerId:"select-list-filters-container",type:Ct.FILTER_TYPE.SELECT_LIST,options:A.options}),t.filters({containerId:"select-list-filters-container-mobile",type:Ct.FILTER_TYPE.SELECT_LIST,options:A.options}))}),o&&t.activeFilters({containerId:"active-filters-container"})),t.start()},[v,g.current,a,l,o,C,o,r,c,b,y,w,s,p]),_e.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[_e.jsxs("div",{className:"flex items-center gap-4",children:[p&&_e.jsx("h2",{className:"text-xl font-semibold",children:p}),_e.jsx("div",{style:{maxWidth:`${i}px`},id:"search-field-container"})]}),_e.jsx("div",{id:"autocomplete-container"}),_e.jsx("div",{id:"conversational-search-result-container"}),_&&_e.jsx("div",{className:"mt-10 flex justify-center",children:_e.jsx("div",{id:"tab-filters-container"})}),u&&_e.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${v?"bg-gray-50":""}`,children:[_e.jsxs("button",{onClick:()=>f(!v),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[_e.jsxs("div",{className:"flex items-center gap-2",children:[_e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{d:"M20 5.6C20 5.04 20 4.76 19.89 4.546C19.7944 4.358 19.6418 4.20504 19.454 4.109C19.24 4 18.96 4 18.4 4H5.6C5.04 4 4.76 4 4.546 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.546C4 4.76 4 5.04 4 5.6V6.337C4 6.582 4 6.704 4.028 6.819C4.05249 6.92138 4.09299 7.01925 4.148 7.109C4.209 7.209 4.296 7.296 4.468 7.469L9.531 12.531C9.704 12.704 9.791 12.791 9.852 12.891C9.90733 12.9817 9.94733 13.0783 9.972 13.181C10 13.295 10 13.416 10 13.655V18.411C10 19.268 10 19.697 10.18 19.955C10.2581 20.0666 10.3582 20.161 10.4741 20.2326C10.59 20.3041 10.7192 20.3512 10.854 20.371C11.165 20.417 11.549 20.226 12.315 19.842L13.115 19.442C13.437 19.282 13.597 19.202 13.714 19.082C13.8178 18.976 13.8967 18.8483 13.945 18.708C14 18.55 14 18.37 14 18.011V13.663C14 13.418 14 13.296 14.028 13.181C14.0525 13.0786 14.093 12.9807 14.148 12.891C14.208 12.791 14.295 12.705 14.465 12.535L14.469 12.531L19.532 7.469C19.704 7.296 19.79 7.209 19.852 7.109C19.9073 7.01833 19.9473 6.92167 19.972 6.819C20 6.706 20 6.584 20 6.345V5.6Z",stroke:"#8D8D8D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Filter by"]}),_e.jsx("svg",{className:`${v?"transform rotate-180":""}`,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.64604 4.64601C1.69249 4.59945 1.74766 4.5625 1.80841 4.5373C1.86915 4.51209 1.93427 4.49911 2.00004 4.49911C2.06581 4.49911 2.13093 4.51209 2.19167 4.5373C2.25242 4.5625 2.30759 4.59945 2.35404 4.64601L8.00004 10.293L13.646 4.64601C13.6925 4.59952 13.7477 4.56264 13.8085 4.53749C13.8692 4.51233 13.9343 4.49938 14 4.49938C14.0658 4.49938 14.1309 4.51233 14.1916 4.53749C14.2524 4.56264 14.3076 4.59952 14.354 4.64601C14.4005 4.6925 14.4374 4.74769 14.4626 4.80842C14.4877 4.86916 14.5007 4.93426 14.5007 5.00001C14.5007 5.06575 14.4877 5.13085 14.4626 5.19159C14.4374 5.25233 14.4005 5.30752 14.354 5.35401L8.35404 11.354C8.30759 11.4006 8.25242 11.4375 8.19167 11.4627C8.13093 11.4879 8.06581 11.5009 8.00004 11.5009C7.93427 11.5009 7.86915 11.4879 7.80841 11.4627C7.74766 11.4375 7.69248 11.4006 7.64604 11.354L1.64604 5.35401C1.59948 5.30756 1.56253 5.25239 1.53733 5.19164C1.51212 5.1309 1.49915 5.06578 1.49915 5.00001C1.49915 4.93424 1.51212 4.86912 1.53733 4.80837C1.56253 4.74763 1.59948 4.69245 1.64604 4.64601Z",fill:"#3A3A3A"})})]}),v&&_e.jsx("div",{className:"p-4 flex flex-col gap-6",children:h.map((A,I)=>_e.jsxs("div",{children:[A.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:A.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},A.type))})]}),k&&_e.jsx("div",{className:"mt-10 w-full flex justify-end",children:_e.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),_e.jsxs("div",{className:"mt-2 md:mt-8 flex flex-col items-end md:flex-row md:items-center md:justify-between gap-2",children:[o&&_e.jsx("div",{children:_e.jsx("div",{id:"active-filters-container"})}),(k||(l==null?void 0:l.length)&&l.length>0)&&_e.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[k&&_e.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(l==null?void 0:l.length)&&l.length>0&&_e.jsx("div",{id:"sortby-container"})]})]}),_e.jsx("div",{className:"mt-4",children:u?_e.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[_e.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:h.map((A,I)=>_e.jsxs("div",{children:[A.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:A.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},A.type))}),_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:g,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})]}):_e.jsx("div",{className:"flex",children:_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:g,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})})})]})},xl=({publicSiteKey:t,primaryColor:i,customFont:p,searchFieldMaxWidthInPixels:s=600,searchFieldHeaderText:w,searchButtonText:b,searchInputPlaceholderText:c="Keyword...",hasSearchInputAutofocus:n=!0,hasSearchAsYouType:y=!1,minLengthToShowSearchAsYouTypeResults:r=3,hasSearchInputFieldIcon:e=!0,hasAutocomplete:d=!0,hasConversationalSearch:C=!1,hasConversationalSearchHideToggle:l,loadMoreResults:a="pagination",sortByOptions:o=[],filters:v=[],hasActiveFilters:f=!0})=>{const[g,h]=wt.useState(null);return wt.useEffect(()=>{const u=new gl(t),_=new Ct(u,{hasConversationalSearch:!0});h(_)},[]),wt.useEffect(()=>{i&&document.documentElement.style.setProperty("--addsearch-primary-color",i)},[i]),wt.useEffect(()=>{p&&document.documentElement.style.setProperty("--addsearch-font-family",`'${p}', sans-serif`)},[p]),g&&_e.jsx(vl,{addSearchUi:g,searchFieldMaxWidthInPixels:s,searchFieldHeaderText:w,searchButtonText:b,searchInputPlaceholderText:c,hasSearchInputAutofocus:n,hasSearchAsYouType:y,minLengthToShowSearchAsYouTypeResults:r,hasSearchInputFieldIcon:e,hasAutocomplete:d,hasConversationalSearch:C,hasConversationalSearchHideToggle:l,loadMoreResults:a,sortByOptions:o,filters:v,hasActiveFilters:f})};ut.AddSearchUiIntegration=xl,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})});
453
+ `.trim()},blockValue:function(g){var h=this.aliasable("container.hooks.blockHelperMissing"),u=[this.contextName(0)];this.setupHelperArgs(g,0,u);var _=this.popStack();u.splice(1,0,_),this.push(this.source.functionCall(h,"call",u))},ambiguousBlockValue:function(){var g=this.aliasable("container.hooks.blockHelperMissing"),h=[this.contextName(0)];this.setupHelperArgs("",0,h,!0),this.flushInline();var u=this.topStack();h.splice(1,0,u),this.pushSource(["if (!",this.lastHelper,") { ",u," = ",this.source.functionCall(g,"call",h),"}"])},appendContent:function(g){this.pendingContent?g=this.pendingContent+g:this.pendingLocation=this.source.currentLocation,this.pendingContent=g},append:function(){if(this.isInline())this.replaceStack(function(h){return[" != null ? ",h,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var g=this.popStack();this.pushSource(["if (",g," != null) { ",this.appendToBuffer(g,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(g){this.lastContext=g},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(g,h,u,_){var S=0;_||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(g[S++])),this.resolvePath("context",g,S,h,u)},lookupBlockParam:function(g,h){this.useBlockParams=!0,this.push(["blockParams[",g[0],"][",g[1],"]"]),this.resolvePath("context",h,1)},lookupData:function(g,h,u){g?this.pushStackLiteral("container.data(data, "+g+")"):this.pushStackLiteral("data"),this.resolvePath("data",h,0,!0,u)},resolvePath:function(g,h,u,_,S){var I=this;if(this.options.strict||this.options.assumeObjects)this.push(d(this.options.strict&&S,this,h,g));else for(var T=h.length;u<T;u++)this.replaceStack(function(P){var N=I.nameLookup(P,h[u],g);return _?[" && ",N]:[" != null ? ",N," : ",P]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(g,h){this.pushContext(),this.pushString(h),h!=="SubExpression"&&(typeof g=="string"?this.pushString(g):this.pushStackLiteral(g))},emptyHash:function(g){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(g?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var g=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(g.ids)),this.stringParams&&(this.push(this.objectLiteral(g.contexts)),this.push(this.objectLiteral(g.types))),this.push(this.objectLiteral(g.values))},pushString:function(g){this.pushStackLiteral(this.quotedString(g))},pushLiteral:function(g){this.pushStackLiteral(g)},pushProgram:function(g){g!=null?this.pushStackLiteral(this.programExpression(g)):this.pushStackLiteral(null)},registerDecorator:function(g,h){var u=this.nameLookup("decorators",h,"decorator"),_=this.setupHelperArgs(h,g);this.decorators.push(["fn = ",this.decorators.functionCall(u,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(g,h,u){var _=this.popStack(),S=this.setupHelper(g,h),I=[];u&&I.push(S.name),I.push(_),this.options.strict||I.push(this.aliasable("container.hooks.helperMissing"));var T=["(",this.itemsSeparatedBy(I,"||"),")"],P=this.source.functionCall(T,"call",S.callParams);this.push(P)},itemsSeparatedBy:function(g,h){var u=[];u.push(g[0]);for(var _=1;_<g.length;_++)u.push(h,g[_]);return u},invokeKnownHelper:function(g,h){var u=this.setupHelper(g,h);this.push(this.source.functionCall(u.name,"call",u.callParams))},invokeAmbiguous:function(g,h){this.useRegister("helper");var u=this.popStack();this.emptyHash();var _=this.setupHelper(0,g,h),S=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",g,"helper")," || ",u,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,_.paramsInit?["),(",_.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",_.callParams)," : helper))"])},invokePartial:function(g,h,u){var _=[],S=this.setupParams(h,1,_);g&&(h=this.popStack(),delete S.name),u&&(S.indent=JSON.stringify(u)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",g?_.unshift(h):_.unshift(this.nameLookup("partials",h,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),_.push(S),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(g){var h=this.popStack(),u=void 0,_=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(_=this.popStack(),u=this.popStack());var I=this.hash;u&&(I.contexts[g]=u),_&&(I.types[g]=_),S&&(I.ids[g]=S),I.values[g]=h},pushId:function(g,h,u){g==="BlockParam"?this.pushStackLiteral("blockParams["+h[0]+"].path["+h[1]+"]"+(u?" + "+JSON.stringify("."+u):"")):g==="PathExpression"?this.pushString(h):g==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(g,h){for(var u=g.children,_=void 0,S=void 0,I=0,T=u.length;I<T;I++){_=u[I],S=new this.compiler;var P=this.matchExistingProgram(_);if(P==null){this.context.programs.push("");var N=this.context.programs.length;_.index=N,_.name="program"+N,this.context.programs[N]=S.compile(_,h,this.context,!this.precompile),this.context.decorators[N]=S.decorators,this.context.environments[N]=_,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=P.index,_.name="program"+P.index,this.useDepths=this.useDepths||P.useDepths,this.useBlockParams=this.useBlockParams||P.useBlockParams}},matchExistingProgram:function(g){for(var h=0,u=this.context.environments.length;h<u;h++){var _=this.context.environments[h];if(_&&_.equals(g))return _}},programExpression:function(g){var h=this.environment.children[g],u=[h.index,"data",h.blockParams];return(this.useBlockParams||this.useDepths)&&u.push("blockParams"),this.useDepths&&u.push("depths"),"container.program("+u.join(", ")+")"},useRegister:function(g){this.registers[g]||(this.registers[g]=!0,this.registers.list.push(g))},push:function(g){return g instanceof r||(g=this.source.wrap(g)),this.inlineStack.push(g),g},pushStackLiteral:function(g){this.push(new r(g))},pushSource:function(g){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),g&&this.source.push(g)},replaceStack:function(g){var h=["("],u=void 0,_=void 0,S=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var I=this.popStack(!0);if(I instanceof r)h=["(",u=[I.value]],S=!0;else{_=!0;var T=this.incrStack();h=["((",this.push(T)," = ",I,")"],u=this.topStack()}var P=g.call(this,u);S||this.popStack(),_&&this.stackSlot--,this.push(h.concat(P,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var g=this.inlineStack;this.inlineStack=[];for(var h=0,u=g.length;h<u;h++){var _=g[h];if(_ instanceof r)this.compileStack.push(_);else{var S=this.incrStack();this.pushSource([S," = ",_,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(g){var h=this.isInline(),u=(h?this.inlineStack:this.compileStack).pop();if(!g&&u instanceof r)return u.value;if(!h){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return u},topStack:function(){var g=this.isInline()?this.inlineStack:this.compileStack,h=g[g.length-1];return h instanceof r?h.value:h},contextName:function(g){return this.useDepths&&g?"depths["+g+"]":"depth"+g},quotedString:function(g){return this.source.quotedString(g)},objectLiteral:function(g){return this.source.objectLiteral(g)},aliasable:function(g){var h=this.aliases[g];return h?(h.referenceCount++,h):((h=this.aliases[g]=this.source.wrap(g)).aliasable=!0,h.referenceCount=1,h)},setupHelper:function(g,h,u){var _=[];return{params:_,paramsInit:this.setupHelperArgs(h,g,_,u),name:this.nameLookup("helpers",h,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(_)}},setupParams:function(g,h,u){var _={},S=[],I=[],T=[],P=!u,N=void 0;P&&(u=[]),_.name=this.quotedString(g),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var q=this.popStack(),j=this.popStack();(j||q)&&(_.fn=j||"container.noop",_.inverse=q||"container.noop");for(var D=h;D--;)N=this.popStack(),u[D]=N,this.trackIds&&(T[D]=this.popStack()),this.stringParams&&(I[D]=this.popStack(),S[D]=this.popStack());return P&&(_.args=this.source.generateArray(u)),this.trackIds&&(_.ids=this.source.generateArray(T)),this.stringParams&&(_.types=this.source.generateArray(I),_.contexts=this.source.generateArray(S)),this.options.data&&(_.data="data"),this.useBlockParams&&(_.blockParams="blockParams"),_},setupHelperArgs:function(g,h,u,_){var S=this.setupParams(g,h,u);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),_?(this.useRegister("options"),u.push("options"),["options=",S]):u?(u.push(S),""):S}},function(){for(var g="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=e.RESERVED_WORDS={},u=0,_=g.length;u<_;u++)h[g[u]]=!0}(),e.isValidJavaScriptVariableName=function(g){return!e.RESERVED_WORDS[g]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(g)},n.default=e,c.exports=n.default},function(c,n,y){function r(a,s,v){if(C.isArray(a)){for(var f=[],g=0,h=a.length;g<h;g++)f.push(s.wrap(a[g],v));return f}return typeof a=="boolean"||typeof a=="number"?a+"":a}function e(a){this.srcFile=a,this.source=[]}var d=y(13).default;n.__esModule=!0;var C=y(5),l=void 0;l||(l=function(a,s,v,f){this.src="",f&&this.add(f)},l.prototype={add:function(a){C.isArray(a)&&(a=a.join("")),this.src+=a},prepend:function(a){C.isArray(a)&&(a=a.join("")),this.src=a+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),e.prototype={isEmpty:function(){return!this.source.length},prepend:function(a,s){this.source.unshift(this.wrap(a,s))},push:function(a,s){this.source.push(this.wrap(a,s))},merge:function(){var a=this.empty();return this.each(function(s){a.add([" ",s,`
454
+ `])}),a},each:function(a){for(var s=0,v=this.source.length;s<v;s++)a(this.source[s])},empty:function(){var a=this.currentLocation||{start:{}};return new l(a.start.line,a.start.column,this.srcFile)},wrap:function(a){var s=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return a instanceof l?a:(a=r(a,this,s),new l(s.start.line,s.start.column,this.srcFile,a))},functionCall:function(a,s,v){return v=this.generateList(v),this.wrap([a,s?"."+s+"(":"(",v,")"])},quotedString:function(a){return'"'+(a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var s=this,v=[];d(a).forEach(function(g){var h=r(a[g],s);h!=="undefined"&&v.push([s.quotedString(g),":",h])});var f=this.generateList(v);return f.prepend("{"),f.add("}"),f},generateList:function(a){for(var s=this.empty(),v=0,f=a.length;v<f;v++)v&&s.add(","),s.add(r(a[v],this));return s},generateArray:function(a){var s=this.generateList(a);return s.prepend("["),s.add("]"),s}},n.default=e,c.exports=n.default}])},3633:function(w,c,n){w.exports=n(261).default}},o={};function E(w){var c=o[w];if(c!==void 0)return c.exports;var n=o[w]={exports:{}};return p[w].call(n.exports,n,n.exports,E),n.exports}return E.n=function(w){var c=w&&w.__esModule?function(){return w.default}:function(){return w};return E.d(c,{a:c}),c},E.d=function(w,c){for(var n in c)E.o(c,n)&&!E.o(w,n)&&Object.defineProperty(w,n,{enumerable:!0,get:c[n]})},E.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),E.o=function(w,c){return Object.prototype.hasOwnProperty.call(w,c)},E(2987)}()})})(ss);var yl=ss.exports;const Ct=qr(yl),vl=({addSearchUi:t,searchFieldMaxWidthInPixels:i,searchFieldHeaderText:p,searchInputPlaceholderText:o,searchButtonText:E,hasSearchInputAutofocus:w,hasSearchAsYouType:c,minLengthToShowSearchAsYouTypeResults:n,hasSearchInputFieldIcon:y,hasAutocomplete:r,hasAiAnswers:e,loadMoreResults:d,sortByOptions:C,filters:l,hasActiveFilters:a})=>{const[s,v]=St.useState(!1),f=St.useRef(null),g=St.useMemo(()=>l.filter(S=>S.type==="checkbox-group"||S.type==="radio-group"||S.type==="tags"),[l]),h=St.useMemo(()=>g.length>0,[g]),u=St.useMemo(()=>l&&l.find(S=>S.type==="tabs"),[]),_=St.useMemo(()=>l&&l.find(S=>S.type==="select-list"),[]);return St.useEffect(()=>{t.searchField({containerId:"search-field-container",placeholder:o,button:E,icon:y,autofocus:w,searchAsYouType:c,minLengthToShowResults:n}),e&&t.aiAnswersResult({containerId:"conversational-search-result-container",mainHeadlineText:"AI-generated answer",answerMaxHeight:150,sourcesHeadlineText:"Based on the following sources:",hasHideToggle:!1}),t.searchResults({containerId:"search-results-container"}),r&&t.autocomplete({containerId:"autocomplete-container",sources:[{type:Ct.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),d==="button"?t.loadMore({containerId:"loadmore-container",type:Ct.LOAD_MORE_TYPE.BUTTON}):d==="pagination"?t.pagination({containerId:"pagination-container"}):d==="scroll"&&t.loadMore({containerId:f.current,type:Ct.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:f.current}),C!=null&&C.length&&(C==null?void 0:C.length)>0&&t.sortBy({containerId:"sortby-container",options:C}),l&&l.length>0&&(l.forEach((S,I)=>{S.type==="checkbox-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.CHECKBOX_GROUP,options:S.options}):S.type==="radio-group"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.RADIO_GROUP,options:S.options}):S.type==="tags"?t.filters({containerId:`filters-container-${I}`,type:Ct.FILTER_TYPE.TAGS,options:S.options}):S.type==="tabs"?t.filters({containerId:"tab-filters-container",type:Ct.FILTER_TYPE.TABS,options:S.options}):S.type==="select-list"&&(t.filters({containerId:"select-list-filters-container",type:Ct.FILTER_TYPE.SELECT_LIST,options:S.options}),t.filters({containerId:"select-list-filters-container-mobile",type:Ct.FILTER_TYPE.SELECT_LIST,options:S.options}))}),a&&t.activeFilters({containerId:"active-filters-container"})),t.start()},[s,f.current,l,C,a,d,a,r,c,w,y,E,o,p]),_e.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[_e.jsxs("div",{className:"flex items-center gap-4",children:[p&&_e.jsx("h2",{className:"text-xl font-semibold",children:p}),_e.jsx("div",{style:{maxWidth:`${i}px`},id:"search-field-container"})]}),_e.jsx("div",{id:"autocomplete-container"}),_e.jsx("div",{id:"conversational-search-result-container"}),u&&_e.jsx("div",{className:"mt-10 flex justify-center",children:_e.jsx("div",{id:"tab-filters-container"})}),h&&_e.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${s?"bg-gray-50":""}`,children:[_e.jsxs("button",{onClick:()=>v(!s),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[_e.jsxs("div",{className:"flex items-center gap-2",children:[_e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{d:"M20 5.6C20 5.04 20 4.76 19.89 4.546C19.7944 4.358 19.6418 4.20504 19.454 4.109C19.24 4 18.96 4 18.4 4H5.6C5.04 4 4.76 4 4.546 4.109C4.35785 4.20487 4.20487 4.35785 4.109 4.546C4 4.76 4 5.04 4 5.6V6.337C4 6.582 4 6.704 4.028 6.819C4.05249 6.92138 4.09299 7.01925 4.148 7.109C4.209 7.209 4.296 7.296 4.468 7.469L9.531 12.531C9.704 12.704 9.791 12.791 9.852 12.891C9.90733 12.9817 9.94733 13.0783 9.972 13.181C10 13.295 10 13.416 10 13.655V18.411C10 19.268 10 19.697 10.18 19.955C10.2581 20.0666 10.3582 20.161 10.4741 20.2326C10.59 20.3041 10.7192 20.3512 10.854 20.371C11.165 20.417 11.549 20.226 12.315 19.842L13.115 19.442C13.437 19.282 13.597 19.202 13.714 19.082C13.8178 18.976 13.8967 18.8483 13.945 18.708C14 18.55 14 18.37 14 18.011V13.663C14 13.418 14 13.296 14.028 13.181C14.0525 13.0786 14.093 12.9807 14.148 12.891C14.208 12.791 14.295 12.705 14.465 12.535L14.469 12.531L19.532 7.469C19.704 7.296 19.79 7.209 19.852 7.109C19.9073 7.01833 19.9473 6.92167 19.972 6.819C20 6.706 20 6.584 20 6.345V5.6Z",stroke:"#8D8D8D",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),"Filter by"]}),_e.jsx("svg",{className:`${s?"transform rotate-180":""}`,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.64604 4.64601C1.69249 4.59945 1.74766 4.5625 1.80841 4.5373C1.86915 4.51209 1.93427 4.49911 2.00004 4.49911C2.06581 4.49911 2.13093 4.51209 2.19167 4.5373C2.25242 4.5625 2.30759 4.59945 2.35404 4.64601L8.00004 10.293L13.646 4.64601C13.6925 4.59952 13.7477 4.56264 13.8085 4.53749C13.8692 4.51233 13.9343 4.49938 14 4.49938C14.0658 4.49938 14.1309 4.51233 14.1916 4.53749C14.2524 4.56264 14.3076 4.59952 14.354 4.64601C14.4005 4.6925 14.4374 4.74769 14.4626 4.80842C14.4877 4.86916 14.5007 4.93426 14.5007 5.00001C14.5007 5.06575 14.4877 5.13085 14.4626 5.19159C14.4374 5.25233 14.4005 5.30752 14.354 5.35401L8.35404 11.354C8.30759 11.4006 8.25242 11.4375 8.19167 11.4627C8.13093 11.4879 8.06581 11.5009 8.00004 11.5009C7.93427 11.5009 7.86915 11.4879 7.80841 11.4627C7.74766 11.4375 7.69248 11.4006 7.64604 11.354L1.64604 5.35401C1.59948 5.30756 1.56253 5.25239 1.53733 5.19164C1.51212 5.1309 1.49915 5.06578 1.49915 5.00001C1.49915 4.93424 1.51212 4.86912 1.53733 4.80837C1.56253 4.74763 1.59948 4.69245 1.64604 4.64601Z",fill:"#3A3A3A"})})]}),s&&_e.jsx("div",{className:"p-4 flex flex-col gap-6",children:g.map((S,I)=>_e.jsxs("div",{children:[S.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},S.type))})]}),_&&_e.jsx("div",{className:"mt-10 w-full flex justify-end",children:_e.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),_e.jsxs("div",{className:"mt-2 md:mt-8 flex flex-col items-end md:flex-row md:items-center md:justify-between gap-2",children:[a&&_e.jsx("div",{children:_e.jsx("div",{id:"active-filters-container"})}),(_||(C==null?void 0:C.length)&&C.length>0)&&_e.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[_&&_e.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(C==null?void 0:C.length)&&C.length>0&&_e.jsx("div",{id:"sortby-container"})]})]}),_e.jsx("div",{className:"mt-4",children:h?_e.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[_e.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:g.map((S,I)=>_e.jsxs("div",{children:[S.labelText&&_e.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),_e.jsx("div",{id:`filters-container-${I}`})]},S.type))}),_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:f,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})]}):_e.jsx("div",{className:"flex",children:_e.jsxs("div",{className:"w-full h-full",children:[_e.jsx("div",{className:"h-[500px]",children:_e.jsx("div",{ref:f,id:"search-results-container"})}),_e.jsx("div",{className:"flex justify-center",children:_e.jsx("div",{id:"loadmore-container"})}),_e.jsx("div",{id:"pagination-container"})]})})})]})},xl=({publicSiteKey:t,primaryColor:i,customFont:p,searchFieldMaxWidthInPixels:o=600,searchFieldHeaderText:E,searchButtonText:w,searchInputPlaceholderText:c="Keyword...",hasSearchInputAutofocus:n=!0,hasSearchAsYouType:y=!1,minLengthToShowSearchAsYouTypeResults:r=3,hasSearchInputFieldIcon:e=!0,hasAutocomplete:d=!0,hasAiAnswers:C=!1,hasAiAnswersHideToggle:l,loadMoreResults:a="pagination",sortByOptions:s=[],filters:v=[],hasActiveFilters:f=!0})=>{const[g,h]=St.useState(null);return St.useEffect(()=>{const u=new gl(t),_=new Ct(u,{hasAiAnswers:!0});h(_)},[]),St.useEffect(()=>{i&&document.documentElement.style.setProperty("--addsearch-primary-color",i)},[i]),St.useEffect(()=>{p&&document.documentElement.style.setProperty("--addsearch-font-family",`'${p}', sans-serif`)},[p]),g&&_e.jsx(vl,{addSearchUi:g,searchFieldMaxWidthInPixels:o,searchFieldHeaderText:E,searchButtonText:w,searchInputPlaceholderText:c,hasSearchInputAutofocus:n,hasSearchAsYouType:y,minLengthToShowSearchAsYouTypeResults:r,hasSearchInputFieldIcon:e,hasAutocomplete:d,hasAiAnswers:C,hasAiAnswersHideToggle:l,loadMoreResults:a,sortByOptions:s,filters:v,hasActiveFilters:f})};ut.AddSearchUiIntegration=xl,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})});
454
455
  //# sourceMappingURL=index.umd.js.map