react-addsearch-ui 0.2.11 → 0.2.13
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.es.js +3066 -3013
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +141 -141
- package/dist/index.umd.js.map +1 -1
- package/package.json +115 -106
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(dt,lt){typeof exports=="object"&&typeof module<"u"?lt(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],lt):(dt=typeof globalThis<"u"?globalThis:dt||self,lt(dt["zenloop-components"]={},dt.React))})(this,function(dt,lt){"use strict";var Kl=Object.defineProperty;var Wl=(dt,lt,qt)=>lt in dt?Kl(dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):dt[lt]=qt;var Ve=(dt,lt,qt)=>Wl(dt,typeof lt!="symbol"?lt+"":lt,qt);function qt(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const f in t)if(f!=="default"){const r=Object.getOwnPropertyDescriptor(t,f);Object.defineProperty(i,f,r.get?r:{enumerable:!0,get:()=>t[f]})}}return i.default=t,Object.freeze(i)}const kt=qt(lt);var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var er={exports:{}},Xt={};/**
|
|
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
|
|
9
|
+
*/var Kr;function po(){if(Kr)return Xt;Kr=1;var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b={key:!0,ref:!0,__self:!0,__source:!0};function c(n,v,o){var e,p={},C=null,u=null;o!==void 0&&(C=""+o),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(u=v.ref);for(e in v)r.call(v,e)&&!b.hasOwnProperty(e)&&(p[e]=v[e]);if(n&&n.defaultProps)for(e in v=n.defaultProps,v)p[e]===void 0&&(p[e]=v[e]);return{$$typeof:i,type:n,key:C,ref:u,props:p,_owner:E.current}}return Xt.Fragment=f,Xt.jsx=c,Xt.jsxs=c,Xt}var en={};/**
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),Je=
|
|
21
|
-
`+
|
|
17
|
+
*/var Wr;function mo(){return Wr||(Wr=1,process.env.NODE_ENV!=="production"&&function(){var t=lt,i=Symbol.for("react.element"),f=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),n=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),e=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),a=Symbol.iterator,s="@@iterator";function g(D){if(D===null||typeof D!="object")return null;var ae=a&&D[a]||D[s];return typeof ae=="function"?ae:null}var d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(D){{for(var ae=arguments.length,fe=new Array(ae>1?ae-1:0),Ee=1;Ee<ae;Ee++)fe[Ee-1]=arguments[Ee];l("error",D,fe)}}function l(D,ae,fe){{var Ee=d.ReactDebugCurrentFrame,De=Ee.getStackAddendum();De!==""&&(ae+="%s",fe=fe.concat([De]));var He=fe.map(function(je){return String(je)});He.unshift("Warning: "+ae),Function.prototype.apply.call(console[D],console,He)}}var h=!1,_=!1,S=!1,I=!1,T=!1,A;A=Symbol.for("react.module.reference");function j(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===b||T||D===E||D===o||D===e||I||D===u||h||_||S||typeof D=="object"&&D!==null&&(D.$$typeof===C||D.$$typeof===p||D.$$typeof===c||D.$$typeof===n||D.$$typeof===v||D.$$typeof===A||D.getModuleId!==void 0))}function U(D,ae,fe){var Ee=D.displayName;if(Ee)return Ee;var De=ae.displayName||ae.name||"";return De!==""?fe+"("+De+")":fe}function L(D){return D.displayName||"Context"}function B(D){if(D==null)return null;if(typeof D.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case r:return"Fragment";case f:return"Portal";case b:return"Profiler";case E:return"StrictMode";case o:return"Suspense";case e:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case n:var ae=D;return L(ae)+".Consumer";case c:var fe=D;return L(fe._context)+".Provider";case v:return U(D,D.render,"ForwardRef");case p:var Ee=D.displayName||null;return Ee!==null?Ee:B(D.type)||"Memo";case C:{var De=D,He=De._payload,je=De._init;try{return B(je(He))}catch{return null}}}return null}var N=Object.assign,z=0,G,oe,ee,Y,W,Z,ce;function ye(){}ye.__reactDisabledLog=!0;function _e(){{if(z===0){G=console.log,oe=console.info,ee=console.warn,Y=console.error,W=console.group,Z=console.groupCollapsed,ce=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}z++}}function Ce(){{if(z--,z===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},D,{value:G}),info:N({},D,{value:oe}),warn:N({},D,{value:ee}),error:N({},D,{value:Y}),group:N({},D,{value:W}),groupCollapsed:N({},D,{value:Z}),groupEnd:N({},D,{value:ce})})}z<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Re=d.ReactCurrentDispatcher,Ue;function Ie(D,ae,fe){{if(Ue===void 0)try{throw Error()}catch(De){var Ee=De.stack.trim().match(/\n( *(at )?)/);Ue=Ee&&Ee[1]||""}return`
|
|
18
|
+
`+Ue+D}}var Ke=!1,Ne;{var We=typeof WeakMap=="function"?WeakMap:Map;Ne=new We}function V(D,ae){if(!D||Ke)return"";{var fe=Ne.get(D);if(fe!==void 0)return fe}var Ee;Ke=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var He;He=Re.current,Re.current=null,_e();try{if(ae){var je=function(){throw Error()};if(Object.defineProperty(je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(je,[])}catch(Ze){Ee=Ze}Reflect.construct(D,[],je)}else{try{je.call()}catch(Ze){Ee=Ze}D.call(je.prototype)}}else{try{throw Error()}catch(Ze){Ee=Ze}D()}}catch(Ze){if(Ze&&Ee&&typeof Ze.stack=="string"){for(var Fe=Ze.stack.split(`
|
|
19
|
+
`),nt=Ee.stack.split(`
|
|
20
|
+
`),Je=Fe.length-1,Ye=nt.length-1;Je>=1&&Ye>=0&&Fe[Je]!==nt[Ye];)Ye--;for(;Je>=1&&Ye>=0;Je--,Ye--)if(Fe[Je]!==nt[Ye]){if(Je!==1||Ye!==1)do if(Je--,Ye--,Ye<0||Fe[Je]!==nt[Ye]){var ft=`
|
|
21
|
+
`+Fe[Je].replace(" at new "," at ");return D.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",D.displayName)),typeof D=="function"&&Ne.set(D,ft),ft}while(Je>=1&&Ye>=0);break}}}finally{Ke=!1,Re.current=He,Ce(),Error.prepareStackTrace=De}var jt=D?D.displayName||D.name:"",Tt=jt?Ie(jt):"";return typeof D=="function"&&Ne.set(D,Tt),Tt}function H(D,ae,fe){return V(D,!1)}function se(D){var ae=D.prototype;return!!(ae&&ae.isReactComponent)}function de(D,ae,fe){if(D==null)return"";if(typeof D=="function")return V(D,se(D));if(typeof D=="string")return Ie(D);switch(D){case o:return Ie("Suspense");case e:return Ie("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case v:return H(D.render);case p:return de(D.type,ae,fe);case C:{var Ee=D,De=Ee._payload,He=Ee._init;try{return de(He(De),ae,fe)}catch{}}}return""}var we=Object.prototype.hasOwnProperty,Se={},Ae=d.ReactDebugCurrentFrame;function me(D){if(D){var ae=D._owner,fe=de(D.type,D._source,ae?ae.type:null);Ae.setExtraStackFrame(fe)}else Ae.setExtraStackFrame(null)}function ve(D,ae,fe,Ee,De){{var He=Function.call.bind(we);for(var je in D)if(He(D,je)){var Fe=void 0;try{if(typeof D[je]!="function"){var nt=Error((Ee||"React class")+": "+fe+" type `"+je+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[je]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}Fe=D[je](ae,je,Ee,fe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Je){Fe=Je}Fe&&!(Fe instanceof Error)&&(me(De),m("%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",fe,je,typeof Fe),me(null)),Fe instanceof Error&&!(Fe.message in Se)&&(Se[Fe.message]=!0,me(De),m("Failed %s type: %s",fe,Fe.message),me(null))}}}var be=Array.isArray;function Me(D){return be(D)}function X(D){{var ae=typeof Symbol=="function"&&Symbol.toStringTag,fe=ae&&D[Symbol.toStringTag]||D.constructor.name||"Object";return fe}}function le(D){try{return ie(D),!1}catch{return!0}}function ie(D){return""+D}function he(D){if(le(D))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",X(D)),ie(D)}var O=d.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0},w,F;function q(D){if(we.call(D,"ref")){var ae=Object.getOwnPropertyDescriptor(D,"ref").get;if(ae&&ae.isReactWarning)return!1}return D.ref!==void 0}function J(D){if(we.call(D,"key")){var ae=Object.getOwnPropertyDescriptor(D,"key").get;if(ae&&ae.isReactWarning)return!1}return D.key!==void 0}function te(D,ae){typeof D.ref=="string"&&O.current}function Te(D,ae){{var fe=function(){w||(w=!0,m("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"key",{get:fe,configurable:!0})}}function ze(D,ae){{var fe=function(){F||(F=!0,m("%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))};fe.isReactWarning=!0,Object.defineProperty(D,"ref",{get:fe,configurable:!0})}}var Pe=function(D,ae,fe,Ee,De,He,je){var Fe={$$typeof:i,type:D,key:ae,ref:fe,props:je,_owner:He};return Fe._store={},Object.defineProperty(Fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.defineProperty(Fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(Fe.props),Object.freeze(Fe)),Fe};function Ge(D,ae,fe,Ee,De){{var He,je={},Fe=null,nt=null;fe!==void 0&&(he(fe),Fe=""+fe),J(ae)&&(he(ae.key),Fe=""+ae.key),q(ae)&&(nt=ae.ref,te(ae,De));for(He in ae)we.call(ae,He)&&!y.hasOwnProperty(He)&&(je[He]=ae[He]);if(D&&D.defaultProps){var Je=D.defaultProps;for(He in Je)je[He]===void 0&&(je[He]=Je[He])}if(Fe||nt){var Ye=typeof D=="function"?D.displayName||D.name||"Unknown":D;Fe&&Te(je,Ye),nt&&ze(je,Ye)}return Pe(D,Fe,nt,De,Ee,O.current,je)}}var ge=d.ReactCurrentOwner,mn=d.ReactDebugCurrentFrame;function xt(D){if(D){var ae=D._owner,fe=de(D.type,D._source,ae?ae.type:null);mn.setExtraStackFrame(fe)}else mn.setExtraStackFrame(null)}var Yt;Yt=!1;function At(D){return typeof D=="object"&&D!==null&&D.$$typeof===i}function gn(){{if(ge.current){var D=B(ge.current.type);if(D)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+D+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+D+"`."}return""}}function Qt(D){return""}var Lt={};function Gn(D){{var ae=gn();if(!ae){var fe=typeof D=="string"?D:D.displayName||D.name;fe&&(ae=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+fe+">.")}return ae}}function yn(D,ae){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var fe=Gn(ae);if(Lt[fe])return;Lt[fe]=!0;var Ee="";D&&D._owner&&D._owner!==ge.current&&(Ee=" It was passed a child from "+B(D._owner.type)+"."),xt(D),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',fe,Ee),xt(null)}}function Zt(D,ae){{if(typeof D!="object")return;if(Me(D))for(var fe=0;fe<D.length;fe++){var Ee=D[fe];At(Ee)&&yn(Ee,ae)}else if(At(D))D._store&&(D._store.validated=!0);else if(D){var De=g(D);if(typeof De=="function"&&De!==D.entries)for(var He=De.call(D),je;!(je=He.next()).done;)At(je.value)&&yn(je.value,ae)}}}function vn(D){{var ae=D.type;if(ae==null||typeof ae=="string")return;var fe;if(typeof ae=="function")fe=ae.propTypes;else if(typeof ae=="object"&&(ae.$$typeof===v||ae.$$typeof===p))fe=ae.propTypes;else return;if(fe){var Ee=B(ae);ve(fe,D.props,"prop",Ee,D)}else if(ae.PropTypes!==void 0&&!Yt){Yt=!0;var De=B(ae);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"Unknown")}typeof ae.getDefaultProps=="function"&&!ae.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dr(D){{for(var ae=Object.keys(D.props),fe=0;fe<ae.length;fe++){var Ee=ae[fe];if(Ee!=="children"&&Ee!=="key"){xt(D),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ee),xt(null);break}}D.ref!==null&&(xt(D),m("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var Kn={};function Ht(D,ae,fe,Ee,De,He){{var je=j(D);if(!je){var Fe="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Fe+=" 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 nt=Qt();nt?Fe+=nt:Fe+=gn();var Je;D===null?Je="null":Me(D)?Je="array":D!==void 0&&D.$$typeof===i?(Je="<"+(B(D.type)||"Unknown")+" />",Fe=" Did you accidentally export a JSX literal instead of a component?"):Je=typeof D,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Je,Fe)}var Ye=Ge(D,ae,fe,De,He);if(Ye==null)return Ye;if(je){var ft=ae.children;if(ft!==void 0)if(Ee)if(Me(ft)){for(var jt=0;jt<ft.length;jt++)Zt(ft[jt],D);Object.freeze&&Object.freeze(ft)}else m("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 Zt(ft,D)}if(we.call(ae,"key")){var Tt=B(D),Ze=Object.keys(ae).filter(function(Yn){return Yn!=="key"}),wn=Ze.length>0?"{key: someKey, "+Ze.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[Tt+wn]){var Jn=Ze.length>0?"{"+Ze.join(": ..., ")+": ...}":"{}";m(`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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,wn,Tt,Jn,Tt),Kn[Tt+wn]=!0}}return D===r?Dr(Ye):vn(Ye),Ye}}function xn(D,ae,fe){return Ht(D,ae,fe,!0)}function Hr(D,ae,fe){return Ht(D,ae,fe,!1)}var Wn=Hr,bn=xn;en.Fragment=r,en.jsx=Wn,en.jsxs=bn}()),en}process.env.NODE_ENV==="production"?er.exports=po():er.exports=mo();var Oe=er.exports,tr={};function go(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 Jr={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(f,r){t.exports=r()})(Ze,function(){function f(X){var le=typeof X;return X!==null&&(le==="object"||le==="function")}function r(X){return typeof X=="function"}var E=void 0;Array.isArray?E=Array.isArray:E=function(X){return Object.prototype.toString.call(X)==="[object Array]"};var b=E,l=0,n=void 0,v=void 0,o=function(le,ie){S[l]=le,S[l+1]=ie,l+=2,l===2&&(v?v(F):R())};function e(X){v=X}function p(X){o=X}var C=typeof window<"u"?window:void 0,u=C||{},a=u.MutationObserver||u.WebKitMutationObserver,s=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",g=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function d(){return function(){return process.nextTick(F)}}function m(){return typeof n<"u"?function(){n(F)}:_()}function c(){var X=0,le=new a(F),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=X=++X%2}}function h(){var X=new MessageChannel;return X.port1.onmessage=F,function(){return X.port2.postMessage(0)}}function _(){var X=setTimeout;return function(){return X(F,1)}}var S=new Array(1e3);function F(){for(var X=0;X<l;X+=2){var le=S[X],ie=S[X+1];le(ie),S[X]=void 0,S[X+1]=void 0}l=0}function T(){try{var X=Function("return this")().require("vertx");return n=X.runOnLoop||X.runOnContext,m()}catch{return _()}}var R=void 0;s?R=d():a?R=c():g?R=h():C===void 0&&typeof yo=="function"?R=T():R=_();function j(X,le){var ie=this,fe=new this.constructor(B);fe[L]===void 0&&H(fe);var O=ie._state;if(O){var y=arguments[O-1];o(function(){return Ke(O,fe,y,ie._result)})}else He(ie,fe,X,le);return fe}function U(X){var le=this;if(X&&typeof X=="object"&&X.constructor===le)return X;var ie=new le(B);return ge(ie,X),ie}var L=Math.random().toString(36).substring(2);function B(){}var N=void 0,z=1,K=2;function oe(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function Y(X,le,ie,fe){try{X.call(le,ie,fe)}catch(O){return O}}function W(X,le,ie){o(function(fe){var O=!1,y=Y(ie,le,function(w){O||(O=!0,le!==w?ge(fe,w):Ce(fe,w))},function(w){O||(O=!0,Ae(fe,w))},"Settle: "+(fe._label||" unknown promise"));!O&&y&&(O=!0,Ae(fe,y))},X)}function Z(X,le){le._state===z?Ce(X,le._result):le._state===K?Ae(X,le._result):He(le,void 0,function(ie){return ge(X,ie)},function(ie){return Ae(X,ie)})}function ce(X,le,ie){le.constructor===X.constructor&&ie===j&&le.constructor.resolve===U?Z(X,le):ie===void 0?Ce(X,le):r(ie)?W(X,le,ie):Ce(X,le)}function ge(X,le){if(X===le)Ae(X,oe());else if(f(le)){var ie=void 0;try{ie=le.then}catch(fe){Ae(X,fe);return}ce(X,le,ie)}else Ce(X,le)}function _e(X){X._onerror&&X._onerror(X._result),Ie(X)}function Ce(X,le){X._state===N&&(X._result=le,X._state=z,X._subscribers.length!==0&&o(Ie,X))}function Ae(X,le){X._state===N&&(X._state=K,X._result=le,o(_e,X))}function He(X,le,ie,fe){var O=X._subscribers,y=O.length;X._onerror=null,O[y]=le,O[y+z]=ie,O[y+K]=fe,y===0&&X._state&&o(Ie,X)}function Ie(X){var le=X._subscribers,ie=X._state;if(le.length!==0){for(var fe=void 0,O=void 0,y=X._result,w=0;w<le.length;w+=3)fe=le[w],O=le[w+ie],fe?Ke(ie,fe,O,y):O(y);X._subscribers.length=0}}function Ke(X,le,ie,fe){var O=r(ie),y=void 0,w=void 0,I=!0;if(O){try{y=ie(fe)}catch($){I=!1,w=$}if(le===y){Ae(le,ee());return}}else y=fe;le._state!==N||(O&&I?ge(le,y):I===!1?Ae(le,w):X===z?Ce(le,y):X===K&&Ae(le,y))}function Me(X,le){try{le(function(fe){ge(X,fe)},function(fe){Ae(X,fe)})}catch(ie){Ae(X,ie)}}var We=0;function V(){return We++}function H(X){X[L]=We++,X._state=void 0,X._result=void 0,X._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var de=function(){function X(le,ie){this._instanceConstructor=le,this.promise=new le(B),this.promise[L]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Ce(this.promise,this._result))):Ae(this.promise,se())}return X.prototype._enumerate=function(ie){for(var fe=0;this._state===N&&fe<ie.length;fe++)this._eachEntry(ie[fe],fe)},X.prototype._eachEntry=function(ie,fe){var O=this._instanceConstructor,y=O.resolve;if(y===U){var w=void 0,I=void 0,$=!1;try{w=ie.then}catch(te){$=!0,I=te}if(w===j&&ie._state!==N)this._settledAt(ie._state,fe,ie._result);else if(typeof w!="function")this._remaining--,this._result[fe]=ie;else if(O===be){var J=new O(B);$?Ae(J,I):ce(J,ie,w),this._willSettleAt(J,fe)}else this._willSettleAt(new O(function(te){return te(ie)}),fe)}else this._willSettleAt(y(ie),fe)},X.prototype._settledAt=function(ie,fe,O){var y=this.promise;y._state===N&&(this._remaining--,ie===K?Ae(y,O):this._result[fe]=O),this._remaining===0&&Ce(y,this._result)},X.prototype._willSettleAt=function(ie,fe){var O=this;He(ie,void 0,function(y){return O._settledAt(z,fe,y)},function(y){return O._settledAt(K,fe,y)})},X}();function we(X){return new de(this,X).promise}function Se(X){var le=this;return b(X)?new le(function(ie,fe){for(var O=X.length,y=0;y<O;y++)le.resolve(X[y]).then(ie,fe)}):new le(function(ie,fe){return fe(new TypeError("You must pass an array to race."))})}function Re(X){var le=this,ie=new le(B);return Ae(ie,X),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ve(){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 X(le){this[L]=V(),this._result=this._state=void 0,this._subscribers=[],B!==le&&(typeof le!="function"&&me(),this instanceof X?Me(this,le):ve())}return X.prototype.catch=function(ie){return this.then(null,ie)},X.prototype.finally=function(ie){var fe=this,O=fe.constructor;return r(ie)?fe.then(function(y){return O.resolve(ie()).then(function(){return y})},function(y){return O.resolve(ie()).then(function(){throw y})}):fe.then(ie,ie)},X}();be.prototype.then=j,be.all=we,be.race=Se,be.resolve=U,be.reject=Re,be._setScheduler=e,be._setAsap=p,be._asap=o;function Be(){var X=void 0;if(typeof Ze<"u")X=Ze;else if(typeof self<"u")X=self;else try{X=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=X.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}X.Promise=be}return be.polyfill=Be,be.Promise=be,be})})(Kr);var Wr=Kr.exports;Wr.polyfill();var Xe={};/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */function Jr(t,i){return function(){return t.apply(i,arguments)}}const{toString:vo}=Object.prototype,{getPrototypeOf:tr}=Object,{iterator:_n,toStringTag:Yr}=Symbol,Cn=(t=>i=>{const f=vo.call(i);return t[f]||(t[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),Et=t=>(t=t.toLowerCase(),i=>Cn(i)===t),On=t=>i=>typeof i===t,{isArray:Vt}=Array,Gt=On("undefined");function an(t){return t!==null&&!Gt(t)&&t.constructor!==null&&!Gt(t.constructor)&&ut(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Qr=Et("ArrayBuffer");function xo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Qr(t.buffer),i}const bo=On("string"),ut=On("function"),Zr=On("number"),ln=t=>t!==null&&typeof t=="object",wo=t=>t===!0||t===!1,An=t=>{if(Cn(t)!=="object")return!1;const i=tr(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Yr in t)&&!(_n in t)},So=t=>{if(!ln(t)||an(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Eo=Et("Date"),ko=Et("File"),_o=Et("Blob"),Co=Et("FileList"),Oo=t=>ln(t)&&ut(t.pipe),Ao=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ut(t.append)&&((i=Cn(t))==="formdata"||i==="object"&&ut(t.toString)&&t.toString()==="[object FormData]"))},Ro=Et("URLSearchParams"),[To,Po,Fo,Io]=["ReadableStream","Request","Response","Headers"].map(Et),Lo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(t,i,{allOwnKeys:f=!1}={}){if(t===null||typeof t>"u")return;let r,E;if(typeof t!="object"&&(t=[t]),Vt(t))for(r=0,E=t.length;r<E;r++)i.call(null,t[r],r,t);else{if(an(t))return;const b=f?Object.getOwnPropertyNames(t):Object.keys(t),l=b.length;let n;for(r=0;r<l;r++)n=b[r],i.call(null,t[n],n,t)}}function Xr(t,i){if(an(t))return null;i=i.toLowerCase();const f=Object.keys(t);let r=f.length,E;for(;r-- >0;)if(E=f[r],i===E.toLowerCase())return E;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ze,ei=t=>!Gt(t)&&t!==jt;function nr(){const{caseless:t,skipUndefined:i}=ei(this)&&this||{},f={},r=(E,b)=>{const l=t&&Xr(f,b)||b;An(f[l])&&An(E)?f[l]=nr(f[l],E):An(E)?f[l]=nr({},E):Vt(E)?f[l]=E.slice():(!i||!Gt(E))&&(f[l]=E)};for(let E=0,b=arguments.length;E<b;E++)arguments[E]&&cn(arguments[E],r);return f}const jo=(t,i,f,{allOwnKeys:r}={})=>(cn(i,(E,b)=>{f&&ut(E)?t[b]=Jr(E,f):t[b]=E},{allOwnKeys:r}),t),No=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Mo=(t,i,f,r)=>{t.prototype=Object.create(i.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),f&&Object.assign(t.prototype,f)},Bo=(t,i,f,r)=>{let E,b,l;const n={};if(i=i||{},t==null)return i;do{for(E=Object.getOwnPropertyNames(t),b=E.length;b-- >0;)l=E[b],(!r||r(l,t,i))&&!n[l]&&(i[l]=t[l],n[l]=!0);t=f!==!1&&tr(t)}while(t&&(!f||f(t,i))&&t!==Object.prototype);return i},Do=(t,i,f)=>{t=String(t),(f===void 0||f>t.length)&&(f=t.length),f-=i.length;const r=t.indexOf(i,f);return r!==-1&&r===f},Ho=t=>{if(!t)return null;if(Vt(t))return t;let i=t.length;if(!Zr(i))return null;const f=new Array(i);for(;i-- >0;)f[i]=t[i];return f},Uo=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&tr(Uint8Array)),$o=(t,i)=>{const r=(t&&t[_n]).call(t);let E;for(;(E=r.next())&&!E.done;){const b=E.value;i.call(t,b[0],b[1])}},qo=(t,i)=>{let f;const r=[];for(;(f=t.exec(i))!==null;)r.push(f);return r},zo=Et("HTMLFormElement"),Vo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,r,E){return r.toUpperCase()+E}),ti=(({hasOwnProperty:t})=>(i,f)=>t.call(i,f))(Object.prototype),Go=Et("RegExp"),ni=(t,i)=>{const f=Object.getOwnPropertyDescriptors(t),r={};cn(f,(E,b)=>{let l;(l=i(E,b,t))!==!1&&(r[b]=l||E)}),Object.defineProperties(t,r)},Ko=t=>{ni(t,(i,f)=>{if(ut(t)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const r=t[f];if(ut(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},Wo=(t,i)=>{const f={},r=E=>{E.forEach(b=>{f[b]=!0})};return Vt(t)?r(t):r(String(t).split(i)),f},Jo=()=>{},Yo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Qo(t){return!!(t&&ut(t.append)&&t[Yr]==="FormData"&&t[_n])}const Zo=t=>{const i=new Array(10),f=(r,E)=>{if(ln(r)){if(i.indexOf(r)>=0)return;if(an(r))return r;if(!("toJSON"in r)){i[E]=r;const b=Vt(r)?[]:{};return cn(r,(l,n)=>{const v=f(l,E+1);!Gt(v)&&(b[n]=v)}),i[E]=void 0,b}}return r};return f(t,0)},Xo=Et("AsyncFunction"),es=t=>t&&(ln(t)||ut(t))&&ut(t.then)&&ut(t.catch),ri=((t,i)=>t?setImmediate:i?((f,r)=>(jt.addEventListener("message",({source:E,data:b})=>{E===jt&&b===f&&r.length&&r.shift()()},!1),E=>{r.push(E),jt.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",ut(jt.postMessage)),ts=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ri;var Q={isArray:Vt,isArrayBuffer:Qr,isBuffer:an,isFormData:Ao,isArrayBufferView:xo,isString:bo,isNumber:Zr,isBoolean:wo,isObject:ln,isPlainObject:An,isEmptyObject:So,isReadableStream:To,isRequest:Po,isResponse:Fo,isHeaders:Io,isUndefined:Gt,isDate:Eo,isFile:ko,isBlob:_o,isRegExp:Go,isFunction:ut,isStream:Oo,isURLSearchParams:Ro,isTypedArray:Uo,isFileList:Co,forEach:cn,merge:nr,extend:jo,trim:Lo,stripBOM:No,inherits:Mo,toFlatObject:Bo,kindOf:Cn,kindOfTest:Et,endsWith:Do,toArray:Ho,forEachEntry:$o,matchAll:qo,isHTMLForm:zo,hasOwnProperty:ti,hasOwnProp:ti,reduceDescriptors:ni,freezeMethods:Ko,toObjectSet:Wo,toCamelCase:Vo,noop:Jo,toFiniteNumber:Yo,findKey:Xr,global:jt,isContextDefined:ei,isSpecCompliantForm:Qo,toJSONObject:Zo,isAsyncFn:Xo,isThenable:es,setImmediate:ri,asap:ts,isIterable:t=>t!=null&&ut(t[_n])};function Te(t,i,f,r,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),f&&(this.config=f),r&&(this.request=r),E&&(this.response=E,this.status=E.status?E.status:null)}Q.inherits(Te,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=Te.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(Te,oi),Object.defineProperty(ii,"isAxiosError",{value:!0}),Te.from=(t,i,f,r,E,b)=>{const l=Object.create(ii);Q.toFlatObject(t,l,function(e){return e!==Error.prototype},o=>o!=="isAxiosError");const n=t&&t.message?t.message:"Error",v=i==null&&t?t.code:i;return Te.call(l,n,v,f,r,E),t&&l.cause==null&&Object.defineProperty(l,"cause",{value:t,configurable:!0}),l.name=t&&t.name||"Error",b&&Object.assign(l,b),l};var ns=null;function rr(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,f){return t?t.concat(i).map(function(E,b){return E=si(E),!f&&b?"["+E+"]":E}).join(f?".":""):i}function rs(t){return Q.isArray(t)&&!t.some(rr)}const is=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function Rn(t,i,f){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,f=Q.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,g){return!Q.isUndefined(g[s])});const r=f.metaTokens,E=f.visitor||e,b=f.dots,l=f.indexes,v=(f.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(E))throw new TypeError("visitor must be a function");function o(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(Q.isBoolean(a))return a.toString();if(!v&&Q.isBlob(a))throw new Te("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?v&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,s,g){let d=a;if(a&&!g&&typeof a=="object"){if(Q.endsWith(s,"{}"))s=r?s:s.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&rs(a)||(Q.isFileList(a)||Q.endsWith(s,"[]"))&&(d=Q.toArray(a)))return s=si(s),d.forEach(function(c,h){!(Q.isUndefined(c)||c===null)&&i.append(l===!0?ai([s],h,b):l===null?s:s+"[]",o(c))}),!1}return rr(a)?!0:(i.append(ai(g,s,b),o(a)),!1)}const p=[],C=Object.assign(is,{defaultVisitor:e,convertValue:o,isVisitable:rr});function u(a,s){if(!Q.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+s.join("."));p.push(a),Q.forEach(a,function(d,m){(!(Q.isUndefined(d)||d===null)&&E.call(i,d,Q.isString(m)?m.trim():m,s,C))===!0&&u(d,s?s.concat(m):[m])}),p.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return u(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function ir(t,i){this._pairs=[],t&&Rn(t,this,i)}const ci=ir.prototype;ci.append=function(i,f){this._pairs.push([i,f])},ci.toString=function(i){const f=i?function(r){return i.call(this,r,li)}:li;return this._pairs.map(function(E){return f(E[0])+"="+f(E[1])},"").join("&")};function os(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ui(t,i,f){if(!i)return t;const r=f&&f.encode||os;Q.isFunction(f)&&(f={serialize:f});const E=f&&f.serialize;let b;if(E?b=E(i,f):b=Q.isURLSearchParams(i)?i.toString():new ir(i,f).toString(r),b){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+b}return t}class ss{constructor(){this.handlers=[]}use(i,f,r){return this.handlers.push({fulfilled:i,rejected:f,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&i(r)})}}var hi=ss,fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},as=typeof URLSearchParams<"u"?URLSearchParams:ir,ls=typeof FormData<"u"?FormData:null,cs=typeof Blob<"u"?Blob:null,us={isBrowser:!0,classes:{URLSearchParams:as,FormData:ls,Blob:cs},protocols:["http","https","file","blob","url","data"]};const or=typeof window<"u"&&typeof document<"u",sr=typeof navigator=="object"&&navigator||void 0,hs=or&&(!sr||["ReactNative","NativeScript","NS"].indexOf(sr.product)<0),fs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ds=or&&window.location.href||"http://localhost";var ps=Object.freeze({__proto__:null,hasBrowserEnv:or,hasStandardBrowserWebWorkerEnv:fs,hasStandardBrowserEnv:hs,navigator:sr,origin:ds}),nt={...ps,...us};function ms(t,i){return Rn(t,new nt.classes.URLSearchParams,{visitor:function(f,r,E,b){return nt.isNode&&Q.isBuffer(f)?(this.append(r,f.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)},...i})}function gs(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function ys(t){const i={},f=Object.keys(t);let r;const E=f.length;let b;for(r=0;r<E;r++)b=f[r],i[b]=t[b];return i}function di(t){function i(f,r,E,b){let l=f[b++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),v=b>=f.length;return l=!l&&Q.isArray(E)?E.length:l,v?(Q.hasOwnProp(E,l)?E[l]=[E[l],r]:E[l]=r,!n):((!E[l]||!Q.isObject(E[l]))&&(E[l]=[]),i(f,r,E[l],b)&&Q.isArray(E[l])&&(E[l]=ys(E[l])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const f={};return Q.forEachEntry(t,(r,E)=>{i(gs(r),E,f,0)}),f}return null}function vs(t,i,f){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const ar={transitional:fi,adapter:["xhr","http","fetch"],transformRequest:[function(i,f){const r=f.getContentType()||"",E=r.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return E?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 f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ms(i,this.formSerializer).toString();if((n=Q.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Rn(n?{"files[]":i}:i,v&&new v,this.formSerializer)}}return b||E?(f.setContentType("application/json",!1),vs(i)):i}],transformResponse:[function(i){const f=this.transitional||ar.transitional,r=f&&f.forcedJSONParsing,E=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(r&&!this.responseType||E)){const l=!(f&&f.silentJSONParsing)&&E;try{return JSON.parse(i,this.parseReviver)}catch(n){if(l)throw n.name==="SyntaxError"?Te.from(n,Te.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:nt.classes.FormData,Blob:nt.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=>{ar.headers[t]={}});var lr=ar;const xs=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 bs=t=>{const i={};let f,r,E;return t&&t.split(`
|
|
37
|
-
`).forEach(function(
|
|
38
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...f){const r=new this(i);return f.forEach(E=>r.set(E)),r}static accessor(i){const r=(this[pi]=this[pi]={accessors:{}}).accessors,E=this.prototype;function b(l){const n=un(l);r[n]||(ks(E,l),r[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}Pn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Pn.prototype,({value:t},i)=>{let f=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(r){this[f]=r}}}),Q.freezeMethods(Pn);var kt=Pn;function ur(t,i){const f=this||lr,r=i||f,E=kt.from(r.headers);let b=r.data;return Q.forEach(t,function(n){b=n.call(f,b,E.normalize(),i?i.status:void 0)}),E.normalize(),b}function mi(t){return!!(t&&t.__CANCEL__)}function Kt(t,i,f){Te.call(this,t??"canceled",Te.ERR_CANCELED,i,f),this.name="CanceledError"}Q.inherits(Kt,Te,{__CANCEL__:!0});function gi(t,i,f){const r=f.config.validateStatus;!f.status||!r||r(f.status)?t(f):i(new Te("Request failed with status code "+f.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function _s(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Cs(t,i){t=t||10;const f=new Array(t),r=new Array(t);let E=0,b=0,l;return i=i!==void 0?i:1e3,function(v){const o=Date.now(),e=r[b];l||(l=o),f[E]=v,r[E]=o;let p=b,C=0;for(;p!==E;)C+=f[p++],p=p%t;if(E=(E+1)%t,E===b&&(b=(b+1)%t),o-l<i)return;const u=e&&o-e;return u?Math.round(C*1e3/u):void 0}}function Os(t,i){let f=0,r=1e3/i,E,b;const l=(o,e=Date.now())=>{f=e,E=null,b&&(clearTimeout(b),b=null),t(...o)};return[(...o)=>{const e=Date.now(),p=e-f;p>=r?l(o,e):(E=o,b||(b=setTimeout(()=>{b=null,l(E)},r-p)))},()=>E&&l(E)]}const Fn=(t,i,f=3)=>{let r=0;const E=Cs(50,250);return Os(b=>{const l=b.loaded,n=b.lengthComputable?b.total:void 0,v=l-r,o=E(v),e=l<=n;r=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:v,rate:o||void 0,estimated:o&&n&&e?(n-l)/o:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},f)},yi=(t,i)=>{const f=t!=null;return[r=>i[0]({lengthComputable:f,total:t,loaded:r}),i[1]]},vi=t=>(...i)=>Q.asap(()=>t(...i));var As=nt.hasStandardBrowserEnv?((t,i)=>f=>(f=new URL(f,nt.origin),t.protocol===f.protocol&&t.host===f.host&&(i||t.port===f.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,Rs=nt.hasStandardBrowserEnv?{write(t,i,f,r,E,b){const l=[t+"="+encodeURIComponent(i)];Q.isNumber(f)&&l.push("expires="+new Date(f).toGMTString()),Q.isString(r)&&l.push("path="+r),Q.isString(E)&&l.push("domain="+E),b===!0&&l.push("secure"),document.cookie=l.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 Ts(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ps(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function xi(t,i,f){let r=!Ts(i);return t&&(r||f==!1)?Ps(t,i):i}const bi=t=>t instanceof kt?{...t}:t;function Nt(t,i){i=i||{};const f={};function r(o,e,p,C){return Q.isPlainObject(o)&&Q.isPlainObject(e)?Q.merge.call({caseless:C},o,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function E(o,e,p,C){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o,p,C)}else return r(o,e,p,C)}function b(o,e){if(!Q.isUndefined(e))return r(void 0,e)}function l(o,e){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o)}else return r(void 0,e)}function n(o,e,p){if(p in i)return r(o,e);if(p in t)return r(void 0,o)}const v={url:b,method:b,data:b,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(o,e,p)=>E(bi(o),bi(e),p,!0)};return Q.forEach(Object.keys({...t,...i}),function(e){const p=v[e]||E,C=p(t[e],i[e],e);Q.isUndefined(C)&&p!==n||(f[e]=C)}),f}var wi=t=>{const i=Nt({},t);let{data:f,withXSRFToken:r,xsrfHeaderName:E,xsrfCookieName:b,headers:l,auth:n}=i;if(i.headers=l=kt.from(l),i.url=ui(xi(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),Q.isFormData(f)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(Q.isFunction(f.getHeaders)){const v=f.getHeaders(),o=["content-type","content-length"];Object.entries(v).forEach(([e,p])=>{o.includes(e.toLowerCase())&&l.set(e,p)})}}if(nt.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(i)),r||r!==!1&&As(i.url))){const v=E&&b&&Rs.read(b);v&&l.set(E,v)}return i},Fs=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(f,r){const E=wi(t);let b=E.data;const l=kt.from(E.headers).normalize();let{responseType:n,onUploadProgress:v,onDownloadProgress:o}=E,e,p,C,u,a;function s(){u&&u(),a&&a(),E.cancelToken&&E.cancelToken.unsubscribe(e),E.signal&&E.signal.removeEventListener("abort",e)}let g=new XMLHttpRequest;g.open(E.method.toUpperCase(),E.url,!0),g.timeout=E.timeout;function d(){if(!g)return;const c=kt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:c,config:t,request:g};gi(function(F){f(F),s()},function(F){r(F),s()},_),g=null}"onloadend"in g?g.onloadend=d:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(d)},g.onabort=function(){g&&(r(new Te("Request aborted",Te.ECONNABORTED,t,g)),g=null)},g.onerror=function(h){const _=h&&h.message?h.message:"Network Error",S=new Te(_,Te.ERR_NETWORK,t,g);S.event=h||null,r(S),g=null},g.ontimeout=function(){let h=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const _=E.transitional||fi;E.timeoutErrorMessage&&(h=E.timeoutErrorMessage),r(new Te(h,_.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,t,g)),g=null},b===void 0&&l.setContentType(null),"setRequestHeader"in g&&Q.forEach(l.toJSON(),function(h,_){g.setRequestHeader(_,h)}),Q.isUndefined(E.withCredentials)||(g.withCredentials=!!E.withCredentials),n&&n!=="json"&&(g.responseType=E.responseType),o&&([C,a]=Fn(o,!0),g.addEventListener("progress",C)),v&&g.upload&&([p,u]=Fn(v),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",u)),(E.cancelToken||E.signal)&&(e=c=>{g&&(r(!c||c.type?new Kt(null,t,g):c),g.abort(),g=null)},E.cancelToken&&E.cancelToken.subscribe(e),E.signal&&(E.signal.aborted?e():E.signal.addEventListener("abort",e)));const m=_s(E.url);if(m&&nt.protocols.indexOf(m)===-1){r(new Te("Unsupported protocol "+m+":",Te.ERR_BAD_REQUEST,t));return}g.send(b||null)})},Is=(t,i)=>{const{length:f}=t=t?t.filter(Boolean):[];if(i||f){let r=new AbortController,E;const b=function(o){if(!E){E=!0,n();const e=o instanceof Error?o:this.reason;r.abort(e instanceof Te?e:new Kt(e instanceof Error?e.message:e))}};let l=i&&setTimeout(()=>{l=null,b(new Te(`timeout ${i} of ms exceeded`,Te.ETIMEDOUT))},i);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(o=>{o.unsubscribe?o.unsubscribe(b):o.removeEventListener("abort",b)}),t=null)};t.forEach(o=>o.addEventListener("abort",b));const{signal:v}=r;return v.unsubscribe=()=>Q.asap(n),v}};const Ls=function*(t,i){let f=t.byteLength;if(f<i){yield t;return}let r=0,E;for(;r<f;)E=r+i,yield t.slice(r,E),r=E},js=async function*(t,i){for await(const f of Ns(t))yield*Ls(f,i)},Ns=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:f,value:r}=await i.read();if(f)break;yield r}}finally{await i.cancel()}},Si=(t,i,f,r)=>{const E=js(t,i);let b=0,l,n=v=>{l||(l=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:o,value:e}=await E.next();if(o){n(),v.close();return}let p=e.byteLength;if(f){let C=b+=p;f(C)}v.enqueue(new Uint8Array(e))}catch(o){throw n(o),o}},cancel(v){return n(v),E.return()}},{highWaterMark:2})},Ei=64*1024,{isFunction:In}=Q,Ms=(({Request:t,Response:i})=>({Request:t,Response:i}))(Q.global),{ReadableStream:ki,TextEncoder:_i}=Q.global,Ci=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Bs=t=>{t=Q.merge.call({skipUndefined:!0},Ms,t);const{fetch:i,Request:f,Response:r}=t,E=i?In(i):typeof fetch=="function",b=In(f),l=In(r);if(!E)return!1;const n=E&&In(ki),v=E&&(typeof _i=="function"?(a=>s=>a.encode(s))(new _i):async a=>new Uint8Array(await new f(a).arrayBuffer())),o=b&&n&&Ci(()=>{let a=!1;const s=new f(nt.origin,{body:new ki,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!s}),e=l&&n&&Ci(()=>Q.isReadableStream(new r("").body)),p={stream:e&&(a=>a.body)};E&&["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!p[a]&&(p[a]=(s,g)=>{let d=s&&s[a];if(d)return d.call(s);throw new Te(`Response type '${a}' is not supported`,Te.ERR_NOT_SUPPORT,g)})});const C=async a=>{if(a==null)return 0;if(Q.isBlob(a))return a.size;if(Q.isSpecCompliantForm(a))return(await new f(nt.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(a)||Q.isArrayBuffer(a))return a.byteLength;if(Q.isURLSearchParams(a)&&(a=a+""),Q.isString(a))return(await v(a)).byteLength},u=async(a,s)=>{const g=Q.toFiniteNumber(a.getContentLength());return g??C(s)};return async a=>{let{url:s,method:g,data:d,signal:m,cancelToken:c,timeout:h,onDownloadProgress:_,onUploadProgress:S,responseType:F,headers:T,withCredentials:R="same-origin",fetchOptions:j}=wi(a),U=i||fetch;F=F?(F+"").toLowerCase():"text";let L=Is([m,c&&c.toAbortSignal()],h),B=null;const N=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let z;try{if(S&&o&&g!=="get"&&g!=="head"&&(z=await u(T,d))!==0){let Z=new f(s,{method:"POST",body:d,duplex:"half"}),ce;if(Q.isFormData(d)&&(ce=Z.headers.get("content-type"))&&T.setContentType(ce),Z.body){const[ge,_e]=yi(z,Fn(vi(S)));d=Si(Z.body,Ei,ge,_e)}}Q.isString(R)||(R=R?"include":"omit");const K=b&&"credentials"in f.prototype,oe={...j,signal:L,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:d,duplex:"half",credentials:K?R:void 0};B=b&&new f(s,oe);let ee=await(b?U(B,j):U(s,oe));const Y=e&&(F==="stream"||F==="response");if(e&&(_||Y&&N)){const Z={};["status","statusText","headers"].forEach(Ce=>{Z[Ce]=ee[Ce]});const ce=Q.toFiniteNumber(ee.headers.get("content-length")),[ge,_e]=_&&yi(ce,Fn(vi(_),!0))||[];ee=new r(Si(ee.body,Ei,ge,()=>{_e&&_e(),N&&N()}),Z)}F=F||"text";let W=await p[Q.findKey(p,F)||"text"](ee,a);return!Y&&N&&N(),await new Promise((Z,ce)=>{gi(Z,ce,{data:W,headers:kt.from(ee.headers),status:ee.status,statusText:ee.statusText,config:a,request:B})})}catch(K){throw N&&N(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,a,B),{cause:K.cause||K}):Te.from(K,K&&K.code,a,B)}}},Ds=new Map,Oi=t=>{let i=t?t.env:{};const{fetch:f,Request:r,Response:E}=i,b=[r,E,f];let l=b.length,n=l,v,o,e=Ds;for(;n--;)v=b[n],o=e.get(v),o===void 0&&e.set(v,o=n?new Map:Bs(i)),e=o;return o};Oi();const hr={http:ns,xhr:Fs,fetch:{get:Oi}};Q.forEach(hr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Ai=t=>`- ${t}`,Hs=t=>Q.isFunction(t)||t===null||t===!1;var Ri={getAdapter:(t,i)=>{t=Q.isArray(t)?t:[t];const{length:f}=t;let r,E;const b={};for(let l=0;l<f;l++){r=t[l];let n;if(E=r,!Hs(r)&&(E=hr[(n=String(r)).toLowerCase()],E===void 0))throw new Te(`Unknown adapter '${n}'`);if(E&&(Q.isFunction(E)||(E=E.get(i))))break;b[n||"#"+l]=E}if(!E){const l=Object.entries(b).map(([v,o])=>`adapter ${v} `+(o===!1?"is not supported by the environment":"is not available in the build"));let n=f?l.length>1?`since :
|
|
39
|
-
`+
|
|
40
|
-
`):" "+
|
|
41
|
-
`+b):r.stack=b}catch{}}throw r}}_request(i,f){typeof i=="string"?(f=f||{},f.url=i):f=i||{},f=
|
|
36
|
+
*/(function(t,i){(function(f,r){t.exports=r()})(Xe,function(){function f(X){var le=typeof X;return X!==null&&(le==="object"||le==="function")}function r(X){return typeof X=="function"}var E=void 0;Array.isArray?E=Array.isArray:E=function(X){return Object.prototype.toString.call(X)==="[object Array]"};var b=E,c=0,n=void 0,v=void 0,o=function(le,ie){S[c]=le,S[c+1]=ie,c+=2,c===2&&(v?v(I):A())};function e(X){v=X}function p(X){o=X}var C=typeof window<"u"?window:void 0,u=C||{},a=u.MutationObserver||u.WebKitMutationObserver,s=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",g=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function d(){return function(){return process.nextTick(I)}}function m(){return typeof n<"u"?function(){n(I)}:_()}function l(){var X=0,le=new a(I),ie=document.createTextNode("");return le.observe(ie,{characterData:!0}),function(){ie.data=X=++X%2}}function h(){var X=new MessageChannel;return X.port1.onmessage=I,function(){return X.port2.postMessage(0)}}function _(){var X=setTimeout;return function(){return X(I,1)}}var S=new Array(1e3);function I(){for(var X=0;X<c;X+=2){var le=S[X],ie=S[X+1];le(ie),S[X]=void 0,S[X+1]=void 0}c=0}function T(){try{var X=Function("return this")().require("vertx");return n=X.runOnLoop||X.runOnContext,m()}catch{return _()}}var A=void 0;s?A=d():a?A=l():g?A=h():C===void 0&&typeof go=="function"?A=T():A=_();function j(X,le){var ie=this,he=new this.constructor(B);he[L]===void 0&&H(he);var O=ie._state;if(O){var y=arguments[O-1];o(function(){return Ke(O,he,y,ie._result)})}else Ue(ie,he,X,le);return he}function U(X){var le=this;if(X&&typeof X=="object"&&X.constructor===le)return X;var ie=new le(B);return ye(ie,X),ie}var L=Math.random().toString(36).substring(2);function B(){}var N=void 0,z=1,G=2;function oe(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function Y(X,le,ie,he){try{X.call(le,ie,he)}catch(O){return O}}function W(X,le,ie){o(function(he){var O=!1,y=Y(ie,le,function(w){O||(O=!0,le!==w?ye(he,w):Ce(he,w))},function(w){O||(O=!0,Re(he,w))},"Settle: "+(he._label||" unknown promise"));!O&&y&&(O=!0,Re(he,y))},X)}function Z(X,le){le._state===z?Ce(X,le._result):le._state===G?Re(X,le._result):Ue(le,void 0,function(ie){return ye(X,ie)},function(ie){return Re(X,ie)})}function ce(X,le,ie){le.constructor===X.constructor&&ie===j&&le.constructor.resolve===U?Z(X,le):ie===void 0?Ce(X,le):r(ie)?W(X,le,ie):Ce(X,le)}function ye(X,le){if(X===le)Re(X,oe());else if(f(le)){var ie=void 0;try{ie=le.then}catch(he){Re(X,he);return}ce(X,le,ie)}else Ce(X,le)}function _e(X){X._onerror&&X._onerror(X._result),Ie(X)}function Ce(X,le){X._state===N&&(X._result=le,X._state=z,X._subscribers.length!==0&&o(Ie,X))}function Re(X,le){X._state===N&&(X._state=G,X._result=le,o(_e,X))}function Ue(X,le,ie,he){var O=X._subscribers,y=O.length;X._onerror=null,O[y]=le,O[y+z]=ie,O[y+G]=he,y===0&&X._state&&o(Ie,X)}function Ie(X){var le=X._subscribers,ie=X._state;if(le.length!==0){for(var he=void 0,O=void 0,y=X._result,w=0;w<le.length;w+=3)he=le[w],O=le[w+ie],he?Ke(ie,he,O,y):O(y);X._subscribers.length=0}}function Ke(X,le,ie,he){var O=r(ie),y=void 0,w=void 0,F=!0;if(O){try{y=ie(he)}catch(q){F=!1,w=q}if(le===y){Re(le,ee());return}}else y=he;le._state!==N||(O&&F?ye(le,y):F===!1?Re(le,w):X===z?Ce(le,y):X===G&&Re(le,y))}function Ne(X,le){try{le(function(he){ye(X,he)},function(he){Re(X,he)})}catch(ie){Re(X,ie)}}var We=0;function V(){return We++}function H(X){X[L]=We++,X._state=void 0,X._result=void 0,X._subscribers=[]}function se(){return new Error("Array Methods must be provided an Array")}var de=function(){function X(le,ie){this._instanceConstructor=le,this.promise=new le(B),this.promise[L]||H(this.promise),b(ie)?(this.length=ie.length,this._remaining=ie.length,this._result=new Array(this.length),this.length===0?Ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(ie),this._remaining===0&&Ce(this.promise,this._result))):Re(this.promise,se())}return X.prototype._enumerate=function(ie){for(var he=0;this._state===N&&he<ie.length;he++)this._eachEntry(ie[he],he)},X.prototype._eachEntry=function(ie,he){var O=this._instanceConstructor,y=O.resolve;if(y===U){var w=void 0,F=void 0,q=!1;try{w=ie.then}catch(te){q=!0,F=te}if(w===j&&ie._state!==N)this._settledAt(ie._state,he,ie._result);else if(typeof w!="function")this._remaining--,this._result[he]=ie;else if(O===be){var J=new O(B);q?Re(J,F):ce(J,ie,w),this._willSettleAt(J,he)}else this._willSettleAt(new O(function(te){return te(ie)}),he)}else this._willSettleAt(y(ie),he)},X.prototype._settledAt=function(ie,he,O){var y=this.promise;y._state===N&&(this._remaining--,ie===G?Re(y,O):this._result[he]=O),this._remaining===0&&Ce(y,this._result)},X.prototype._willSettleAt=function(ie,he){var O=this;Ue(ie,void 0,function(y){return O._settledAt(z,he,y)},function(y){return O._settledAt(G,he,y)})},X}();function we(X){return new de(this,X).promise}function Se(X){var le=this;return b(X)?new le(function(ie,he){for(var O=X.length,y=0;y<O;y++)le.resolve(X[y]).then(ie,he)}):new le(function(ie,he){return he(new TypeError("You must pass an array to race."))})}function Ae(X){var le=this,ie=new le(B);return Re(ie,X),ie}function me(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ve(){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 X(le){this[L]=V(),this._result=this._state=void 0,this._subscribers=[],B!==le&&(typeof le!="function"&&me(),this instanceof X?Ne(this,le):ve())}return X.prototype.catch=function(ie){return this.then(null,ie)},X.prototype.finally=function(ie){var he=this,O=he.constructor;return r(ie)?he.then(function(y){return O.resolve(ie()).then(function(){return y})},function(y){return O.resolve(ie()).then(function(){throw y})}):he.then(ie,ie)},X}();be.prototype.then=j,be.all=we,be.race=Se,be.resolve=U,be.reject=Ae,be._setScheduler=e,be._setAsap=p,be._asap=o;function Me(){var X=void 0;if(typeof Xe<"u")X=Xe;else if(typeof self<"u")X=self;else try{X=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var le=X.Promise;if(le){var ie=null;try{ie=Object.prototype.toString.call(le.resolve())}catch{}if(ie==="[object Promise]"&&!le.cast)return}X.Promise=be}return be.polyfill=Me,be.Promise=be,be})})(Jr);var Yr=Jr.exports;Yr.polyfill();var et={};/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */function Qr(t,i){return function(){return t.apply(i,arguments)}}const{toString:yo}=Object.prototype,{getPrototypeOf:nr}=Object,{iterator:_n,toStringTag:Zr}=Symbol,Cn=(t=>i=>{const f=yo.call(i);return t[f]||(t[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),_t=t=>(t=t.toLowerCase(),i=>Cn(i)===t),On=t=>i=>typeof i===t,{isArray:zt}=Array,Vt=On("undefined");function tn(t){return t!==null&&!Vt(t)&&t.constructor!==null&&!Vt(t.constructor)&&ht(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Xr=_t("ArrayBuffer");function vo(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Xr(t.buffer),i}const xo=On("string"),ht=On("function"),ei=On("number"),nn=t=>t!==null&&typeof t=="object",bo=t=>t===!0||t===!1,Rn=t=>{if(Cn(t)!=="object")return!1;const i=nr(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Zr in t)&&!(_n in t)},wo=t=>{if(!nn(t)||tn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},So=_t("Date"),Eo=_t("File"),ko=_t("Blob"),_o=_t("FileList"),Co=t=>nn(t)&&ht(t.pipe),Oo=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||ht(t.append)&&((i=Cn(t))==="formdata"||i==="object"&&ht(t.toString)&&t.toString()==="[object FormData]"))},Ro=_t("URLSearchParams"),[Ao,To,Po,Io]=["ReadableStream","Request","Response","Headers"].map(_t),Fo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rn(t,i,{allOwnKeys:f=!1}={}){if(t===null||typeof t>"u")return;let r,E;if(typeof t!="object"&&(t=[t]),zt(t))for(r=0,E=t.length;r<E;r++)i.call(null,t[r],r,t);else{if(tn(t))return;const b=f?Object.getOwnPropertyNames(t):Object.keys(t),c=b.length;let n;for(r=0;r<c;r++)n=b[r],i.call(null,t[n],n,t)}}function ti(t,i){if(tn(t))return null;i=i.toLowerCase();const f=Object.keys(t);let r=f.length,E;for(;r-- >0;)if(E=f[r],i===E.toLowerCase())return E;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Xe,ni=t=>!Vt(t)&&t!==Nt;function rr(){const{caseless:t,skipUndefined:i}=ni(this)&&this||{},f={},r=(E,b)=>{if(b==="__proto__"||b==="constructor"||b==="prototype")return;const c=t&&ti(f,b)||b;Rn(f[c])&&Rn(E)?f[c]=rr(f[c],E):Rn(E)?f[c]=rr({},E):zt(E)?f[c]=E.slice():(!i||!Vt(E))&&(f[c]=E)};for(let E=0,b=arguments.length;E<b;E++)arguments[E]&&rn(arguments[E],r);return f}const Lo=(t,i,f,{allOwnKeys:r}={})=>(rn(i,(E,b)=>{f&&ht(E)?Object.defineProperty(t,b,{value:Qr(E,f),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,b,{value:E,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),jo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),No=(t,i,f,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:i.prototype}),f&&Object.assign(t.prototype,f)},Mo=(t,i,f,r)=>{let E,b,c;const n={};if(i=i||{},t==null)return i;do{for(E=Object.getOwnPropertyNames(t),b=E.length;b-- >0;)c=E[b],(!r||r(c,t,i))&&!n[c]&&(i[c]=t[c],n[c]=!0);t=f!==!1&&nr(t)}while(t&&(!f||f(t,i))&&t!==Object.prototype);return i},Bo=(t,i,f)=>{t=String(t),(f===void 0||f>t.length)&&(f=t.length),f-=i.length;const r=t.indexOf(i,f);return r!==-1&&r===f},Do=t=>{if(!t)return null;if(zt(t))return t;let i=t.length;if(!ei(i))return null;const f=new Array(i);for(;i-- >0;)f[i]=t[i];return f},Ho=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&nr(Uint8Array)),Uo=(t,i)=>{const r=(t&&t[_n]).call(t);let E;for(;(E=r.next())&&!E.done;){const b=E.value;i.call(t,b[0],b[1])}},$o=(t,i)=>{let f;const r=[];for(;(f=t.exec(i))!==null;)r.push(f);return r},qo=_t("HTMLFormElement"),zo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,r,E){return r.toUpperCase()+E}),ri=(({hasOwnProperty:t})=>(i,f)=>t.call(i,f))(Object.prototype),Vo=_t("RegExp"),ii=(t,i)=>{const f=Object.getOwnPropertyDescriptors(t),r={};rn(f,(E,b)=>{let c;(c=i(E,b,t))!==!1&&(r[b]=c||E)}),Object.defineProperties(t,r)},Go=t=>{ii(t,(i,f)=>{if(ht(t)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const r=t[f];if(ht(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},Ko=(t,i)=>{const f={},r=E=>{E.forEach(b=>{f[b]=!0})};return zt(t)?r(t):r(String(t).split(i)),f},Wo=()=>{},Jo=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Yo(t){return!!(t&&ht(t.append)&&t[Zr]==="FormData"&&t[_n])}const Qo=t=>{const i=new Array(10),f=(r,E)=>{if(nn(r)){if(i.indexOf(r)>=0)return;if(tn(r))return r;if(!("toJSON"in r)){i[E]=r;const b=zt(r)?[]:{};return rn(r,(c,n)=>{const v=f(c,E+1);!Vt(v)&&(b[n]=v)}),i[E]=void 0,b}}return r};return f(t,0)},Zo=_t("AsyncFunction"),Xo=t=>t&&(nn(t)||ht(t))&&ht(t.then)&&ht(t.catch),oi=((t,i)=>t?setImmediate:i?((f,r)=>(Nt.addEventListener("message",({source:E,data:b})=>{E===Nt&&b===f&&r.length&&r.shift()()},!1),E=>{r.push(E),Nt.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",ht(Nt.postMessage)),es=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||oi;var Q={isArray:zt,isArrayBuffer:Xr,isBuffer:tn,isFormData:Oo,isArrayBufferView:vo,isString:xo,isNumber:ei,isBoolean:bo,isObject:nn,isPlainObject:Rn,isEmptyObject:wo,isReadableStream:Ao,isRequest:To,isResponse:Po,isHeaders:Io,isUndefined:Vt,isDate:So,isFile:Eo,isBlob:ko,isRegExp:Vo,isFunction:ht,isStream:Co,isURLSearchParams:Ro,isTypedArray:Ho,isFileList:_o,forEach:rn,merge:rr,extend:Lo,trim:Fo,stripBOM:jo,inherits:No,toFlatObject:Mo,kindOf:Cn,kindOfTest:_t,endsWith:Bo,toArray:Do,forEachEntry:Uo,matchAll:$o,isHTMLForm:qo,hasOwnProperty:ri,hasOwnProp:ri,reduceDescriptors:ii,freezeMethods:Go,toObjectSet:Ko,toCamelCase:zo,noop:Wo,toFiniteNumber:Jo,findKey:ti,global:Nt,isContextDefined:ni,isSpecCompliantForm:Yo,toJSONObject:Qo,isAsyncFn:Zo,isThenable:Xo,setImmediate:oi,asap:es,isIterable:t=>t!=null&&ht(t[_n])};class ct extends Error{static from(i,f,r,E,b,c){const n=new ct(i.message,f||i.code,r,E,b);return n.cause=i,n.name=i.name,c&&Object.assign(n,c),n}constructor(i,f,r,E,b){super(i),this.name="AxiosError",this.isAxiosError=!0,f&&(this.code=f),r&&(this.config=r),E&&(this.request=E),b&&(this.response=b,this.status=b.status)}toJSON(){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}}}ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ct.ERR_BAD_OPTION="ERR_BAD_OPTION",ct.ECONNABORTED="ECONNABORTED",ct.ETIMEDOUT="ETIMEDOUT",ct.ERR_NETWORK="ERR_NETWORK",ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ct.ERR_DEPRECATED="ERR_DEPRECATED",ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ct.ERR_CANCELED="ERR_CANCELED",ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ct.ERR_INVALID_URL="ERR_INVALID_URL";var Le=ct,ts=null;function ir(t){return Q.isPlainObject(t)||Q.isArray(t)}function si(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ai(t,i,f){return t?t.concat(i).map(function(E,b){return E=si(E),!f&&b?"["+E+"]":E}).join(f?".":""):i}function ns(t){return Q.isArray(t)&&!t.some(ir)}const rs=Q.toFlatObject(Q,{},null,function(i){return/^is[A-Z]/.test(i)});function An(t,i,f){if(!Q.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,f=Q.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(s,g){return!Q.isUndefined(g[s])});const r=f.metaTokens,E=f.visitor||e,b=f.dots,c=f.indexes,v=(f.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(i);if(!Q.isFunction(E))throw new TypeError("visitor must be a function");function o(a){if(a===null)return"";if(Q.isDate(a))return a.toISOString();if(Q.isBoolean(a))return a.toString();if(!v&&Q.isBlob(a))throw new Le("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(a)||Q.isTypedArray(a)?v&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function e(a,s,g){let d=a;if(a&&!g&&typeof a=="object"){if(Q.endsWith(s,"{}"))s=r?s:s.slice(0,-2),a=JSON.stringify(a);else if(Q.isArray(a)&&ns(a)||(Q.isFileList(a)||Q.endsWith(s,"[]"))&&(d=Q.toArray(a)))return s=si(s),d.forEach(function(l,h){!(Q.isUndefined(l)||l===null)&&i.append(c===!0?ai([s],h,b):c===null?s:s+"[]",o(l))}),!1}return ir(a)?!0:(i.append(ai(g,s,b),o(a)),!1)}const p=[],C=Object.assign(rs,{defaultVisitor:e,convertValue:o,isVisitable:ir});function u(a,s){if(!Q.isUndefined(a)){if(p.indexOf(a)!==-1)throw Error("Circular reference detected in "+s.join("."));p.push(a),Q.forEach(a,function(d,m){(!(Q.isUndefined(d)||d===null)&&E.call(i,d,Q.isString(m)?m.trim():m,s,C))===!0&&u(d,s?s.concat(m):[m])}),p.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return u(t),i}function li(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function or(t,i){this._pairs=[],t&&An(t,this,i)}const ci=or.prototype;ci.append=function(i,f){this._pairs.push([i,f])},ci.toString=function(i){const f=i?function(r){return i.call(this,r,li)}:li;return this._pairs.map(function(E){return f(E[0])+"="+f(E[1])},"").join("&")};function is(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ui(t,i,f){if(!i)return t;const r=f&&f.encode||is,E=Q.isFunction(f)?{serialize:f}:f,b=E&&E.serialize;let c;if(b?c=b(i,E):c=Q.isURLSearchParams(i)?i.toString():new or(i,E).toString(r),c){const n=t.indexOf("#");n!==-1&&(t=t.slice(0,n)),t+=(t.indexOf("?")===-1?"?":"&")+c}return t}class os{constructor(){this.handlers=[]}use(i,f,r){return this.handlers.push({fulfilled:i,rejected:f,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&i(r)})}}var hi=os,sr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ss=typeof URLSearchParams<"u"?URLSearchParams:or,as=typeof FormData<"u"?FormData:null,ls=typeof Blob<"u"?Blob:null,cs={isBrowser:!0,classes:{URLSearchParams:ss,FormData:as,Blob:ls},protocols:["http","https","file","blob","url","data"]};const ar=typeof window<"u"&&typeof document<"u",lr=typeof navigator=="object"&&navigator||void 0,us=ar&&(!lr||["ReactNative","NativeScript","NS"].indexOf(lr.product)<0),hs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fs=ar&&window.location.href||"http://localhost";var ds=Object.freeze({__proto__:null,hasBrowserEnv:ar,hasStandardBrowserWebWorkerEnv:hs,hasStandardBrowserEnv:us,navigator:lr,origin:fs}),rt={...ds,...cs};function ps(t,i){return An(t,new rt.classes.URLSearchParams,{visitor:function(f,r,E,b){return rt.isNode&&Q.isBuffer(f)?(this.append(r,f.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)},...i})}function ms(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function gs(t){const i={},f=Object.keys(t);let r;const E=f.length;let b;for(r=0;r<E;r++)b=f[r],i[b]=t[b];return i}function fi(t){function i(f,r,E,b){let c=f[b++];if(c==="__proto__")return!0;const n=Number.isFinite(+c),v=b>=f.length;return c=!c&&Q.isArray(E)?E.length:c,v?(Q.hasOwnProp(E,c)?E[c]=[E[c],r]:E[c]=r,!n):((!E[c]||!Q.isObject(E[c]))&&(E[c]=[]),i(f,r,E[c],b)&&Q.isArray(E[c])&&(E[c]=gs(E[c])),!n)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const f={};return Q.forEachEntry(t,(r,E)=>{i(ms(r),E,f,0)}),f}return null}function ys(t,i,f){if(Q.isString(t))try{return(i||JSON.parse)(t),Q.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(f||JSON.stringify)(t)}const cr={transitional:sr,adapter:["xhr","http","fetch"],transformRequest:[function(i,f){const r=f.getContentType()||"",E=r.indexOf("application/json")>-1,b=Q.isObject(i);if(b&&Q.isHTMLForm(i)&&(i=new FormData(i)),Q.isFormData(i))return E?JSON.stringify(fi(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 f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let n;if(b){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ps(i,this.formSerializer).toString();if((n=Q.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return An(n?{"files[]":i}:i,v&&new v,this.formSerializer)}}return b||E?(f.setContentType("application/json",!1),ys(i)):i}],transformResponse:[function(i){const f=this.transitional||cr.transitional,r=f&&f.forcedJSONParsing,E=this.responseType==="json";if(Q.isResponse(i)||Q.isReadableStream(i))return i;if(i&&Q.isString(i)&&(r&&!this.responseType||E)){const c=!(f&&f.silentJSONParsing)&&E;try{return JSON.parse(i,this.parseReviver)}catch(n){if(c)throw n.name==="SyntaxError"?Le.from(n,Le.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:rt.classes.FormData,Blob:rt.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=>{cr.headers[t]={}});var ur=cr;const vs=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 xs=t=>{const i={};let f,r,E;return t&&t.split(`
|
|
37
|
+
`).forEach(function(c){E=c.indexOf(":"),f=c.substring(0,E).trim().toLowerCase(),r=c.substring(E+1).trim(),!(!f||i[f]&&vs[f])&&(f==="set-cookie"?i[f]?i[f].push(r):i[f]=[r]:i[f]=i[f]?i[f]+", "+r:r)}),i};const di=Symbol("internals");function on(t){return t&&String(t).trim().toLowerCase()}function Tn(t){return t===!1||t==null?t:Q.isArray(t)?t.map(Tn):String(t)}function bs(t){const i=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=f.exec(t);)i[r[1]]=r[2];return i}const ws=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function hr(t,i,f,r,E){if(Q.isFunction(r))return r.call(this,i,f);if(E&&(i=f),!!Q.isString(i)){if(Q.isString(r))return i.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(i)}}function Ss(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,f,r)=>f.toUpperCase()+r)}function Es(t,i){const f=Q.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+f,{value:function(E,b,c){return this[r].call(this,i,E,b,c)},configurable:!0})})}class Pn{constructor(i){i&&this.set(i)}set(i,f,r){const E=this;function b(n,v,o){const e=on(v);if(!e)throw new Error("header name must be a non-empty string");const p=Q.findKey(E,e);(!p||E[p]===void 0||o===!0||o===void 0&&E[p]!==!1)&&(E[p||v]=Tn(n))}const c=(n,v)=>Q.forEach(n,(o,e)=>b(o,e,v));if(Q.isPlainObject(i)||i instanceof this.constructor)c(i,f);else if(Q.isString(i)&&(i=i.trim())&&!ws(i))c(xs(i),f);else if(Q.isObject(i)&&Q.isIterable(i)){let n={},v,o;for(const e of i){if(!Q.isArray(e))throw TypeError("Object iterator must return a key-value pair");n[o=e[0]]=(v=n[o])?Q.isArray(v)?[...v,e[1]]:[v,e[1]]:e[1]}c(n,f)}else i!=null&&b(f,i,r);return this}get(i,f){if(i=on(i),i){const r=Q.findKey(this,i);if(r){const E=this[r];if(!f)return E;if(f===!0)return bs(E);if(Q.isFunction(f))return f.call(this,E,r);if(Q.isRegExp(f))return f.exec(E);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,f){if(i=on(i),i){const r=Q.findKey(this,i);return!!(r&&this[r]!==void 0&&(!f||hr(this,this[r],r,f)))}return!1}delete(i,f){const r=this;let E=!1;function b(c){if(c=on(c),c){const n=Q.findKey(r,c);n&&(!f||hr(r,r[n],n,f))&&(delete r[n],E=!0)}}return Q.isArray(i)?i.forEach(b):b(i),E}clear(i){const f=Object.keys(this);let r=f.length,E=!1;for(;r--;){const b=f[r];(!i||hr(this,this[b],b,i,!0))&&(delete this[b],E=!0)}return E}normalize(i){const f=this,r={};return Q.forEach(this,(E,b)=>{const c=Q.findKey(r,b);if(c){f[c]=Tn(E),delete f[b];return}const n=i?Ss(b):String(b).trim();n!==b&&delete f[b],f[n]=Tn(E),r[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const f=Object.create(null);return Q.forEach(this,(r,E)=>{r!=null&&r!==!1&&(f[E]=i&&Q.isArray(r)?r.join(", "):r)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,f])=>i+": "+f).join(`
|
|
38
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...f){const r=new this(i);return f.forEach(E=>r.set(E)),r}static accessor(i){const r=(this[di]=this[di]={accessors:{}}).accessors,E=this.prototype;function b(c){const n=on(c);r[n]||(Es(E,c),r[n]=!0)}return Q.isArray(i)?i.forEach(b):b(i),this}}Pn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(Pn.prototype,({value:t},i)=>{let f=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(r){this[f]=r}}}),Q.freezeMethods(Pn);var Ct=Pn;function fr(t,i){const f=this||ur,r=i||f,E=Ct.from(r.headers);let b=r.data;return Q.forEach(t,function(n){b=n.call(f,b,E.normalize(),i?i.status:void 0)}),E.normalize(),b}function pi(t){return!!(t&&t.__CANCEL__)}class ks extends Le{constructor(i,f,r){super(i??"canceled",Le.ERR_CANCELED,f,r),this.name="CanceledError",this.__CANCEL__=!0}}var sn=ks;function mi(t,i,f){const r=f.config.validateStatus;!f.status||!r||r(f.status)?t(f):i(new Le("Request failed with status code "+f.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function _s(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Cs(t,i){t=t||10;const f=new Array(t),r=new Array(t);let E=0,b=0,c;return i=i!==void 0?i:1e3,function(v){const o=Date.now(),e=r[b];c||(c=o),f[E]=v,r[E]=o;let p=b,C=0;for(;p!==E;)C+=f[p++],p=p%t;if(E=(E+1)%t,E===b&&(b=(b+1)%t),o-c<i)return;const u=e&&o-e;return u?Math.round(C*1e3/u):void 0}}function Os(t,i){let f=0,r=1e3/i,E,b;const c=(o,e=Date.now())=>{f=e,E=null,b&&(clearTimeout(b),b=null),t(...o)};return[(...o)=>{const e=Date.now(),p=e-f;p>=r?c(o,e):(E=o,b||(b=setTimeout(()=>{b=null,c(E)},r-p)))},()=>E&&c(E)]}const In=(t,i,f=3)=>{let r=0;const E=Cs(50,250);return Os(b=>{const c=b.loaded,n=b.lengthComputable?b.total:void 0,v=c-r,o=E(v),e=c<=n;r=c;const p={loaded:c,total:n,progress:n?c/n:void 0,bytes:v,rate:o||void 0,estimated:o&&n&&e?(n-c)/o:void 0,event:b,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},f)},gi=(t,i)=>{const f=t!=null;return[r=>i[0]({lengthComputable:f,total:t,loaded:r}),i[1]]},yi=t=>(...i)=>Q.asap(()=>t(...i));var Rs=rt.hasStandardBrowserEnv?((t,i)=>f=>(f=new URL(f,rt.origin),t.protocol===f.protocol&&t.host===f.host&&(i||t.port===f.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,As=rt.hasStandardBrowserEnv?{write(t,i,f,r,E,b,c){if(typeof document>"u")return;const n=[`${t}=${encodeURIComponent(i)}`];Q.isNumber(f)&&n.push(`expires=${new Date(f).toUTCString()}`),Q.isString(r)&&n.push(`path=${r}`),Q.isString(E)&&n.push(`domain=${E}`),b===!0&&n.push("secure"),Q.isString(c)&&n.push(`SameSite=${c}`),document.cookie=n.join("; ")},read(t){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ts(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ps(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function vi(t,i,f){let r=!Ts(i);return t&&(r||f==!1)?Ps(t,i):i}const xi=t=>t instanceof Ct?{...t}:t;function Mt(t,i){i=i||{};const f={};function r(o,e,p,C){return Q.isPlainObject(o)&&Q.isPlainObject(e)?Q.merge.call({caseless:C},o,e):Q.isPlainObject(e)?Q.merge({},e):Q.isArray(e)?e.slice():e}function E(o,e,p,C){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o,p,C)}else return r(o,e,p,C)}function b(o,e){if(!Q.isUndefined(e))return r(void 0,e)}function c(o,e){if(Q.isUndefined(e)){if(!Q.isUndefined(o))return r(void 0,o)}else return r(void 0,e)}function n(o,e,p){if(p in i)return r(o,e);if(p in t)return r(void 0,o)}const v={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:(o,e,p)=>E(xi(o),xi(e),p,!0)};return Q.forEach(Object.keys({...t,...i}),function(e){if(e==="__proto__"||e==="constructor"||e==="prototype")return;const p=Q.hasOwnProp(v,e)?v[e]:E,C=p(t[e],i[e],e);Q.isUndefined(C)&&p!==n||(f[e]=C)}),f}var bi=t=>{const i=Mt({},t);let{data:f,withXSRFToken:r,xsrfHeaderName:E,xsrfCookieName:b,headers:c,auth:n}=i;if(i.headers=c=Ct.from(c),i.url=ui(vi(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&c.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):""))),Q.isFormData(f)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(Q.isFunction(f.getHeaders)){const v=f.getHeaders(),o=["content-type","content-length"];Object.entries(v).forEach(([e,p])=>{o.includes(e.toLowerCase())&&c.set(e,p)})}}if(rt.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(i)),r||r!==!1&&Rs(i.url))){const v=E&&b&&As.read(b);v&&c.set(E,v)}return i},Is=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(f,r){const E=bi(t);let b=E.data;const c=Ct.from(E.headers).normalize();let{responseType:n,onUploadProgress:v,onDownloadProgress:o}=E,e,p,C,u,a;function s(){u&&u(),a&&a(),E.cancelToken&&E.cancelToken.unsubscribe(e),E.signal&&E.signal.removeEventListener("abort",e)}let g=new XMLHttpRequest;g.open(E.method.toUpperCase(),E.url,!0),g.timeout=E.timeout;function d(){if(!g)return;const l=Ct.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),_={data:!n||n==="text"||n==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:l,config:t,request:g};mi(function(I){f(I),s()},function(I){r(I),s()},_),g=null}"onloadend"in g?g.onloadend=d:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(d)},g.onabort=function(){g&&(r(new Le("Request aborted",Le.ECONNABORTED,t,g)),g=null)},g.onerror=function(h){const _=h&&h.message?h.message:"Network Error",S=new Le(_,Le.ERR_NETWORK,t,g);S.event=h||null,r(S),g=null},g.ontimeout=function(){let h=E.timeout?"timeout of "+E.timeout+"ms exceeded":"timeout exceeded";const _=E.transitional||sr;E.timeoutErrorMessage&&(h=E.timeoutErrorMessage),r(new Le(h,_.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,t,g)),g=null},b===void 0&&c.setContentType(null),"setRequestHeader"in g&&Q.forEach(c.toJSON(),function(h,_){g.setRequestHeader(_,h)}),Q.isUndefined(E.withCredentials)||(g.withCredentials=!!E.withCredentials),n&&n!=="json"&&(g.responseType=E.responseType),o&&([C,a]=In(o,!0),g.addEventListener("progress",C)),v&&g.upload&&([p,u]=In(v),g.upload.addEventListener("progress",p),g.upload.addEventListener("loadend",u)),(E.cancelToken||E.signal)&&(e=l=>{g&&(r(!l||l.type?new sn(null,t,g):l),g.abort(),g=null)},E.cancelToken&&E.cancelToken.subscribe(e),E.signal&&(E.signal.aborted?e():E.signal.addEventListener("abort",e)));const m=_s(E.url);if(m&&rt.protocols.indexOf(m)===-1){r(new Le("Unsupported protocol "+m+":",Le.ERR_BAD_REQUEST,t));return}g.send(b||null)})},Fs=(t,i)=>{const{length:f}=t=t?t.filter(Boolean):[];if(i||f){let r=new AbortController,E;const b=function(o){if(!E){E=!0,n();const e=o instanceof Error?o:this.reason;r.abort(e instanceof Le?e:new sn(e instanceof Error?e.message:e))}};let c=i&&setTimeout(()=>{c=null,b(new Le(`timeout of ${i}ms exceeded`,Le.ETIMEDOUT))},i);const n=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(o=>{o.unsubscribe?o.unsubscribe(b):o.removeEventListener("abort",b)}),t=null)};t.forEach(o=>o.addEventListener("abort",b));const{signal:v}=r;return v.unsubscribe=()=>Q.asap(n),v}};const Ls=function*(t,i){let f=t.byteLength;if(f<i){yield t;return}let r=0,E;for(;r<f;)E=r+i,yield t.slice(r,E),r=E},js=async function*(t,i){for await(const f of Ns(t))yield*Ls(f,i)},Ns=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:f,value:r}=await i.read();if(f)break;yield r}}finally{await i.cancel()}},wi=(t,i,f,r)=>{const E=js(t,i);let b=0,c,n=v=>{c||(c=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:o,value:e}=await E.next();if(o){n(),v.close();return}let p=e.byteLength;if(f){let C=b+=p;f(C)}v.enqueue(new Uint8Array(e))}catch(o){throw n(o),o}},cancel(v){return n(v),E.return()}},{highWaterMark:2})},Si=64*1024,{isFunction:Fn}=Q,Ms=(({Request:t,Response:i})=>({Request:t,Response:i}))(Q.global),{ReadableStream:Ei,TextEncoder:ki}=Q.global,_i=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Bs=t=>{t=Q.merge.call({skipUndefined:!0},Ms,t);const{fetch:i,Request:f,Response:r}=t,E=i?Fn(i):typeof fetch=="function",b=Fn(f),c=Fn(r);if(!E)return!1;const n=E&&Fn(Ei),v=E&&(typeof ki=="function"?(a=>s=>a.encode(s))(new ki):async a=>new Uint8Array(await new f(a).arrayBuffer())),o=b&&n&&_i(()=>{let a=!1;const s=new f(rt.origin,{body:new Ei,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!s}),e=c&&n&&_i(()=>Q.isReadableStream(new r("").body)),p={stream:e&&(a=>a.body)};E&&["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!p[a]&&(p[a]=(s,g)=>{let d=s&&s[a];if(d)return d.call(s);throw new Le(`Response type '${a}' is not supported`,Le.ERR_NOT_SUPPORT,g)})});const C=async a=>{if(a==null)return 0;if(Q.isBlob(a))return a.size;if(Q.isSpecCompliantForm(a))return(await new f(rt.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(a)||Q.isArrayBuffer(a))return a.byteLength;if(Q.isURLSearchParams(a)&&(a=a+""),Q.isString(a))return(await v(a)).byteLength},u=async(a,s)=>{const g=Q.toFiniteNumber(a.getContentLength());return g??C(s)};return async a=>{let{url:s,method:g,data:d,signal:m,cancelToken:l,timeout:h,onDownloadProgress:_,onUploadProgress:S,responseType:I,headers:T,withCredentials:A="same-origin",fetchOptions:j}=bi(a),U=i||fetch;I=I?(I+"").toLowerCase():"text";let L=Fs([m,l&&l.toAbortSignal()],h),B=null;const N=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let z;try{if(S&&o&&g!=="get"&&g!=="head"&&(z=await u(T,d))!==0){let Z=new f(s,{method:"POST",body:d,duplex:"half"}),ce;if(Q.isFormData(d)&&(ce=Z.headers.get("content-type"))&&T.setContentType(ce),Z.body){const[ye,_e]=gi(z,In(yi(S)));d=wi(Z.body,Si,ye,_e)}}Q.isString(A)||(A=A?"include":"omit");const G=b&&"credentials"in f.prototype,oe={...j,signal:L,method:g.toUpperCase(),headers:T.normalize().toJSON(),body:d,duplex:"half",credentials:G?A:void 0};B=b&&new f(s,oe);let ee=await(b?U(B,j):U(s,oe));const Y=e&&(I==="stream"||I==="response");if(e&&(_||Y&&N)){const Z={};["status","statusText","headers"].forEach(Ce=>{Z[Ce]=ee[Ce]});const ce=Q.toFiniteNumber(ee.headers.get("content-length")),[ye,_e]=_&&gi(ce,In(yi(_),!0))||[];ee=new r(wi(ee.body,Si,ye,()=>{_e&&_e(),N&&N()}),Z)}I=I||"text";let W=await p[Q.findKey(p,I)||"text"](ee,a);return!Y&&N&&N(),await new Promise((Z,ce)=>{mi(Z,ce,{data:W,headers:Ct.from(ee.headers),status:ee.status,statusText:ee.statusText,config:a,request:B})})}catch(G){throw N&&N(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,a,B,G&&G.response),{cause:G.cause||G}):Le.from(G,G&&G.code,a,B,G&&G.response)}}},Ds=new Map,Ci=t=>{let i=t&&t.env||{};const{fetch:f,Request:r,Response:E}=i,b=[r,E,f];let c=b.length,n=c,v,o,e=Ds;for(;n--;)v=b[n],o=e.get(v),o===void 0&&e.set(v,o=n?new Map:Bs(i)),e=o;return o};Ci();const dr={http:ts,xhr:Is,fetch:{get:Ci}};Q.forEach(dr,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Oi=t=>`- ${t}`,Hs=t=>Q.isFunction(t)||t===null||t===!1;function Us(t,i){t=Q.isArray(t)?t:[t];const{length:f}=t;let r,E;const b={};for(let c=0;c<f;c++){r=t[c];let n;if(E=r,!Hs(r)&&(E=dr[(n=String(r)).toLowerCase()],E===void 0))throw new Le(`Unknown adapter '${n}'`);if(E&&(Q.isFunction(E)||(E=E.get(i))))break;b[n||"#"+c]=E}if(!E){const c=Object.entries(b).map(([v,o])=>`adapter ${v} `+(o===!1?"is not supported by the environment":"is not available in the build"));let n=f?c.length>1?`since :
|
|
39
|
+
`+c.map(Oi).join(`
|
|
40
|
+
`):" "+Oi(c[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return E}var Ri={getAdapter:Us,adapters:dr};function pr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new sn(null,t)}function Ai(t){return pr(t),t.headers=Ct.from(t.headers),t.data=fr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ri.getAdapter(t.adapter||ur.adapter,t)(t).then(function(r){return pr(t),r.data=fr.call(t,t.transformResponse,r),r.headers=Ct.from(r.headers),r},function(r){return pi(r)||(pr(t),r&&r.response&&(r.response.data=fr.call(t,t.transformResponse,r.response),r.response.headers=Ct.from(r.response.headers))),Promise.reject(r)})}const Ti="1.13.5",Ln={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ln[t]=function(r){return typeof r===t||"a"+(i<1?"n ":" ")+t}});const Pi={};Ln.transitional=function(i,f,r){function E(b,c){return"[Axios v"+Ti+"] Transitional option '"+b+"'"+c+(r?". "+r:"")}return(b,c,n)=>{if(i===!1)throw new Le(E(c," has been removed"+(f?" in "+f:"")),Le.ERR_DEPRECATED);return f&&!Pi[c]&&(Pi[c]=!0,console.warn(E(c," has been deprecated since v"+f+" and will be removed in the near future"))),i?i(b,c,n):!0}},Ln.spelling=function(i){return(f,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function $s(t,i,f){if(typeof t!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let E=r.length;for(;E-- >0;){const b=r[E],c=i[b];if(c){const n=t[b],v=n===void 0||c(n,b,t);if(v!==!0)throw new Le("option "+b+" must be "+v,Le.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new Le("Unknown option "+b,Le.ERR_BAD_OPTION)}}var jn={assertOptions:$s,validators:Ln};const pt=jn.validators;class Nn{constructor(i){this.defaults=i||{},this.interceptors={request:new hi,response:new hi}}async request(i,f){try{return await this._request(i,f)}catch(r){if(r instanceof Error){let E={};Error.captureStackTrace?Error.captureStackTrace(E):E=new Error;const b=E.stack?E.stack.replace(/^.+\n/,""):"";try{r.stack?b&&!String(r.stack).endsWith(b.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
41
|
+
`+b):r.stack=b}catch{}}throw r}}_request(i,f){typeof i=="string"?(f=f||{},f.url=i):f=i||{},f=Mt(this.defaults,f);const{transitional:r,paramsSerializer:E,headers:b}=f;r!==void 0&&jn.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean),legacyInterceptorReqResOrdering:pt.transitional(pt.boolean)},!1),E!=null&&(Q.isFunction(E)?f.paramsSerializer={serialize:E}:jn.assertOptions(E,{encode:pt.function,serialize:pt.function},!0)),f.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?f.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:f.allowAbsoluteUrls=!0),jn.assertOptions(f,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),f.method=(f.method||this.defaults.method||"get").toLowerCase();let c=b&&Q.merge(b.common,b[f.method]);b&&Q.forEach(["delete","get","head","post","put","patch","common"],a=>{delete b[a]}),f.headers=Ct.concat(c,b);const n=[];let v=!0;this.interceptors.request.forEach(function(s){if(typeof s.runWhen=="function"&&s.runWhen(f)===!1)return;v=v&&s.synchronous;const g=f.transitional||sr;g&&g.legacyInterceptorReqResOrdering?n.unshift(s.fulfilled,s.rejected):n.push(s.fulfilled,s.rejected)});const o=[];this.interceptors.response.forEach(function(s){o.push(s.fulfilled,s.rejected)});let e,p=0,C;if(!v){const a=[Ai.bind(this),void 0];for(a.unshift(...n),a.push(...o),C=a.length,e=Promise.resolve(f);p<C;)e=e.then(a[p++],a[p++]);return e}C=n.length;let u=f;for(;p<C;){const a=n[p++],s=n[p++];try{u=a(u)}catch(g){s.call(this,g);break}}try{e=Ai.call(this,u)}catch(a){return Promise.reject(a)}for(p=0,C=o.length;p<C;)e=e.then(o[p++],o[p++]);return e}getUri(i){i=Mt(this.defaults,i);const f=vi(i.baseURL,i.url,i.allowAbsoluteUrls);return ui(f,i.params,i.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(i){Nn.prototype[i]=function(f,r){return this.request(Mt(r||{},{method:i,url:f,data:(r||{}).data}))}}),Q.forEach(["post","put","patch"],function(i){function f(r){return function(b,c,n){return this.request(Mt(n||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:b,data:c}))}}Nn.prototype[i]=f(),Nn.prototype[i+"Form"]=f(!0)});var Mn=Nn;class mr{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let f;this.promise=new Promise(function(b){f=b});const r=this;this.promise.then(E=>{if(!r._listeners)return;let b=r._listeners.length;for(;b-- >0;)r._listeners[b](E);r._listeners=null}),this.promise.then=E=>{let b;const c=new Promise(n=>{r.subscribe(n),b=n}).then(E);return c.cancel=function(){r.unsubscribe(b)},c},i(function(b,c,n){r.reason||(r.reason=new sn(b,c,n),f(r.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 f=this._listeners.indexOf(i);f!==-1&&this._listeners.splice(f,1)}toAbortSignal(){const i=new AbortController,f=r=>{i.abort(r)};return this.subscribe(f),i.signal.unsubscribe=()=>this.unsubscribe(f),i.signal}static source(){let i;return{token:new mr(function(E){i=E}),cancel:i}}}var qs=mr;function zs(t){return function(f){return t.apply(null,f)}}function Vs(t){return Q.isObject(t)&&t.isAxiosError===!0}const gr={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([t,i])=>{gr[i]=t});var Gs=gr;function Ii(t){const i=new Mn(t),f=Qr(Mn.prototype.request,i);return Q.extend(f,Mn.prototype,i,{allOwnKeys:!0}),Q.extend(f,i,null,{allOwnKeys:!0}),f.create=function(E){return Ii(Mt(t,E))},f}const Qe=Ii(ur);Qe.Axios=Mn,Qe.CanceledError=sn,Qe.CancelToken=qs,Qe.isCancel=pi,Qe.VERSION=Ti,Qe.toFormData=An,Qe.AxiosError=Le,Qe.Cancel=Qe.CanceledError,Qe.all=function(i){return Promise.all(i)},Qe.spread=zs,Qe.isAxiosError=Vs,Qe.mergeConfig=Mt,Qe.AxiosHeaders=Ct,Qe.formToJSON=t=>fi(Q.isHTMLForm(t)?new FormData(t):t),Qe.getAdapter=Ri.getAdapter,Qe.HttpStatusCode=Gs,Qe.default=Qe;var Fi=Qe,Ks=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(et,"__esModule",{value:!0}),et.RESPONSE_SERVER_ERROR=et.RESPONSE_BAD_REQUEST=et.setRequestInterceptor=et.aiAnswersInteractionsInstance=et.statsInstance=et.apiInstance=void 0;const yr=Ks(Fi),Li=yr.default.create();et.apiInstance=Li;const ji=yr.default.create();et.statsInstance=ji;const Ws=yr.default.create();et.aiAnswersInteractionsInstance=Ws;const Js=400;et.RESPONSE_BAD_REQUEST=Js;const Ys=500;et.RESPONSE_SERVER_ERROR=Ys;const Qs=(t,i)=>{(i==="searchApi"?Li:ji).interceptors.request.use(r=>{const E=t({url:r.url,headers:r.headers});return r=Object.assign(Object.assign({},r),E),r},r=>Promise.reject(new Error(JSON.stringify(r))))};et.setRequestInterceptor=Qs;var ut={},Ni={},Bn={};Bn.byteLength=ea,Bn.toByteArray=na,Bn.fromByteArray=oa;for(var Ot=[],mt=[],Zs=typeof Uint8Array<"u"?Uint8Array:Array,vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt=0,Xs=vr.length;Gt<Xs;++Gt)Ot[Gt]=vr[Gt],mt[vr.charCodeAt(Gt)]=Gt;mt[45]=62,mt[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 f=t.indexOf("=");f===-1&&(f=i);var r=f===i?0:4-f%4;return[f,r]}function ea(t){var i=Mi(t),f=i[0],r=i[1];return(f+r)*3/4-r}function ta(t,i,f){return(i+f)*3/4-f}function na(t){var i,f=Mi(t),r=f[0],E=f[1],b=new Zs(ta(t,r,E)),c=0,n=E>0?r-4:r,v;for(v=0;v<n;v+=4)i=mt[t.charCodeAt(v)]<<18|mt[t.charCodeAt(v+1)]<<12|mt[t.charCodeAt(v+2)]<<6|mt[t.charCodeAt(v+3)],b[c++]=i>>16&255,b[c++]=i>>8&255,b[c++]=i&255;return E===2&&(i=mt[t.charCodeAt(v)]<<2|mt[t.charCodeAt(v+1)]>>4,b[c++]=i&255),E===1&&(i=mt[t.charCodeAt(v)]<<10|mt[t.charCodeAt(v+1)]<<4|mt[t.charCodeAt(v+2)]>>2,b[c++]=i>>8&255,b[c++]=i&255),b}function ra(t){return Ot[t>>18&63]+Ot[t>>12&63]+Ot[t>>6&63]+Ot[t&63]}function ia(t,i,f){for(var r,E=[],b=i;b<f;b+=3)r=(t[b]<<16&16711680)+(t[b+1]<<8&65280)+(t[b+2]&255),E.push(ra(r));return E.join("")}function oa(t){for(var i,f=t.length,r=f%3,E=[],b=16383,c=0,n=f-r;c<n;c+=b)E.push(ia(t,c,c+b>n?n:c+b));return r===1?(i=t[f-1],E.push(Ot[i>>2]+Ot[i<<4&63]+"==")):r===2&&(i=(t[f-2]<<8)+t[f-1],E.push(Ot[i>>10]+Ot[i>>4&63]+Ot[i<<2&63]+"=")),E.join("")}var xr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */xr.read=function(t,i,f,r,E){var b,c,n=E*8-r-1,v=(1<<n)-1,o=v>>1,e=-7,p=f?E-1:0,C=f?-1:1,u=t[i+p];for(p+=C,b=u&(1<<-e)-1,u>>=-e,e+=n;e>0;b=b*256+t[i+p],p+=C,e-=8);for(c=b&(1<<-e)-1,b>>=-e,e+=r;e>0;c=c*256+t[i+p],p+=C,e-=8);if(b===0)b=1-o;else{if(b===v)return c?NaN:(u?-1:1)*(1/0);c=c+Math.pow(2,r),b=b-o}return(u?-1:1)*c*Math.pow(2,b-r)},xr.write=function(t,i,f,r,E,b){var c,n,v,o=b*8-E-1,e=(1<<o)-1,p=e>>1,C=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:b-1,a=r?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*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+p>=1?i+=C/v:i+=C*Math.pow(2,1-p),i*v>=2&&(c++,v/=2),c+p>=e?(n=0,c=e):c+p>=1?(n=(i*v-1)*Math.pow(2,E),c=c+p):(n=i*Math.pow(2,p-1)*Math.pow(2,E),c=0));E>=8;t[f+u]=n&255,u+=a,n/=256,E-=8);for(c=c<<E|n,o+=E;o>0;t[f+u]=c&255,u+=a,c/=256,o-=8);t[f+u-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=Bn,f=yr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;const E=2147483647;t.kMaxLength=E,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),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(O,y),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 l(O){if(O>E)throw new RangeError('The value "'+O+'" is invalid for option "size"');const y=new Uint8Array(O);return Object.setPrototypeOf(y,n.prototype),y}function n(O,y,w){if(typeof O=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return v(O,y,w)}n.poolSize=8192;function v(O,y,w){if(typeof O=="string")return C(O,y);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,y,w);if(typeof O=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const I=O.valueOf&&O.valueOf();if(I!=null&&I!==O)return n.from(I,y,w);const $=g(O);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),y,w);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,y,w){return v(O,y,w)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function o(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,y,w){return o(O),O<=0?l(O):y!==void 0?typeof w=="string"?l(O).fill(y,w):l(O).fill(y):l(O)}n.alloc=function(O,y,w){return e(O,y,w)};function p(O){return o(O),l(O<0?0:d(O)|0)}n.allocUnsafe=function(O){return p(O)},n.allocUnsafeSlow=function(O){return p(O)};function C(O,y){if((typeof y!="string"||y==="")&&(y="utf8"),!n.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=c(O,y)|0;let I=l(w);const $=I.write(O,y);return $!==w&&(I=I.slice(0,$)),I}function u(O){const y=O.length<0?0:d(O.length)|0,w=l(y);for(let I=0;I<y;I+=1)w[I]=O[I]&255;return w}function a(O){if(Be(O,Uint8Array)){const y=new Uint8Array(O);return s(y.buffer,y.byteOffset,y.byteLength)}return u(O)}function s(O,y,w){if(y<0||O.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let I;return y===void 0&&w===void 0?I=new Uint8Array(O):w===void 0?I=new Uint8Array(O,y):I=new Uint8Array(O,y,w),Object.setPrototypeOf(I,n.prototype),I}function g(O){if(n.isBuffer(O)){const y=d(O.length)|0,w=l(y);return w.length===0||O.copy(w,0,0,y),w}if(O.length!==void 0)return typeof O.length!="number"||X(O.length)?l(0):u(O);if(O.type==="Buffer"&&Array.isArray(O.data))return u(O.data)}function d(O){if(O>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return O|0}function m(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==n.prototype},n.compare=function(y,w){if(Be(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),Be(w,Uint8Array)&&(w=n.from(w,w.offset,w.byteLength)),!n.isBuffer(y)||!n.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let I=y.length,$=w.length;for(let J=0,te=Math.min(I,$);J<te;++J)if(y[J]!==w[J]){I=y[J],$=w[J];break}return I<$?-1:$<I?1:0},n.isEncoding=function(y){switch(String(y).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(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return n.alloc(0);let I;if(w===void 0)for(w=0,I=0;I<y.length;++I)w+=y[I].length;const $=n.allocUnsafe(w);let J=0;for(I=0;I<y.length;++I){let te=y[I];if(Be(te,Uint8Array))J+te.length>$.length?(n.isBuffer(te)||(te=n.from(te)),te.copy($,J)):Uint8Array.prototype.set.call($,te,J);else if(n.isBuffer(te))te.copy($,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return $};function c(O,y){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 w=O.length,I=arguments.length>2&&arguments[2]===!0;if(!I&&w===0)return 0;let $=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Se(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return ve(O).length;default:if($)return I?-1:Se(O).length;y=(""+y).toLowerCase(),$=!0}}n.byteLength=c;function h(O,y,w){let I=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,y,w);case"utf8":case"utf-8":return N(this,y,w);case"ascii":return oe(this,y,w);case"latin1":case"binary":return ee(this,y,w);case"base64":return B(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,y,w);default:if(I)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),I=!0}}n.prototype._isBuffer=!0;function _(O,y,w){const I=O[y];O[y]=O[w],O[w]=I}n.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)_(this,w,w+1);return this},n.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)_(this,w,w+3),_(this,w+1,w+2);return this},n.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)_(this,w,w+7),_(this,w+1,w+6),_(this,w+2,w+5),_(this,w+3,w+4);return this},n.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?N(this,0,y):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(y){if(!n.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:n.compare(this,y)===0},n.prototype.inspect=function(){let y="";const w=t.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},r&&(n.prototype[r]=n.prototype.inspect),n.prototype.compare=function(y,w,I,$,J){if(Be(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),!n.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),I===void 0&&(I=y?y.length:0),$===void 0&&($=0),J===void 0&&(J=this.length),w<0||I>y.length||$<0||J>this.length)throw new RangeError("out of range index");if($>=J&&w>=I)return 0;if($>=J)return-1;if(w>=I)return 1;if(w>>>=0,I>>>=0,$>>>=0,J>>>=0,this===y)return 0;let te=J-$,Pe=I-w;const ze=Math.min(te,Pe),Fe=this.slice($,J),Ge=y.slice(w,I);for(let ye=0;ye<ze;++ye)if(Fe[ye]!==Ge[ye]){te=Fe[ye],Pe=Ge[ye];break}return te<Pe?-1:Pe<te?1:0};function S(O,y,w,I,$){if(O.length===0)return-1;if(typeof w=="string"?(I=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,X(w)&&(w=$?0:O.length-1),w<0&&(w=O.length+w),w>=O.length){if($)return-1;w=O.length-1}else if(w<0)if($)w=0;else return-1;if(typeof y=="string"&&(y=n.from(y,I)),n.isBuffer(y))return y.length===0?-1:F(O,y,w,I,$);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(O,y,w):Uint8Array.prototype.lastIndexOf.call(O,y,w):F(O,[y],w,I,$);throw new TypeError("val must be string, number or Buffer")}function F(O,y,w,I,$){let J=1,te=O.length,Pe=y.length;if(I!==void 0&&(I=String(I).toLowerCase(),I==="ucs2"||I==="ucs-2"||I==="utf16le"||I==="utf-16le")){if(O.length<2||y.length<2)return-1;J=2,te/=2,Pe/=2,w/=2}function ze(Ge,ye){return J===1?Ge[ye]:Ge.readUInt16BE(ye*J)}let Fe;if($){let Ge=-1;for(Fe=w;Fe<te;Fe++)if(ze(O,Fe)===ze(y,Ge===-1?0:Fe-Ge)){if(Ge===-1&&(Ge=Fe),Fe-Ge+1===Pe)return Ge*J}else Ge!==-1&&(Fe-=Fe-Ge),Ge=-1}else for(w+Pe>te&&(w=te-Pe),Fe=w;Fe>=0;Fe--){let Ge=!0;for(let ye=0;ye<Pe;ye++)if(ze(O,Fe+ye)!==ze(y,ye)){Ge=!1;break}if(Ge)return Fe}return-1}n.prototype.includes=function(y,w,I){return this.indexOf(y,w,I)!==-1},n.prototype.indexOf=function(y,w,I){return S(this,y,w,I,!0)},n.prototype.lastIndexOf=function(y,w,I){return S(this,y,w,I,!1)};function T(O,y,w,I){w=Number(w)||0;const $=O.length-w;I?(I=Number(I),I>$&&(I=$)):I=$;const J=y.length;I>J/2&&(I=J/2);let te;for(te=0;te<I;++te){const Pe=parseInt(y.substr(te*2,2),16);if(X(Pe))return te;O[w+te]=Pe}return te}function R(O,y,w,I){return be(Se(y,O.length-w),O,w,I)}function j(O,y,w,I){return be(Re(y),O,w,I)}function U(O,y,w,I){return be(ve(y),O,w,I)}function L(O,y,w,I){return be(me(y,O.length-w),O,w,I)}n.prototype.write=function(y,w,I,$){if(w===void 0)$="utf8",I=this.length,w=0;else if(I===void 0&&typeof w=="string")$=w,I=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(I)?(I=I>>>0,$===void 0&&($="utf8")):($=I,I=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-w;if((I===void 0||I>J)&&(I=J),y.length>0&&(I<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let te=!1;for(;;)switch($){case"hex":return T(this,y,w,I);case"utf8":case"utf-8":return R(this,y,w,I);case"ascii":case"latin1":case"binary":return j(this,y,w,I);case"base64":return U(this,y,w,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,y,w,I);default:if(te)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),te=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(O,y,w){return y===0&&w===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(y,w))}function N(O,y,w){w=Math.min(O.length,w);const I=[];let $=y;for(;$<w;){const J=O[$];let te=null,Pe=J>239?4:J>223?3:J>191?2:1;if($+Pe<=w){let ze,Fe,Ge,ye;switch(Pe){case 1:J<128&&(te=J);break;case 2:ze=O[$+1],(ze&192)===128&&(ye=(J&31)<<6|ze&63,ye>127&&(te=ye));break;case 3:ze=O[$+1],Fe=O[$+2],(ze&192)===128&&(Fe&192)===128&&(ye=(J&15)<<12|(ze&63)<<6|Fe&63,ye>2047&&(ye<55296||ye>57343)&&(te=ye));break;case 4:ze=O[$+1],Fe=O[$+2],Ge=O[$+3],(ze&192)===128&&(Fe&192)===128&&(Ge&192)===128&&(ye=(J&15)<<18|(ze&63)<<12|(Fe&63)<<6|Ge&63,ye>65535&&ye<1114112&&(te=ye))}}te===null?(te=65533,Pe=1):te>65535&&(te-=65536,I.push(te>>>10&1023|55296),te=56320|te&1023),I.push(te),$+=Pe}return K(I)}const z=4096;function K(O){const y=O.length;if(y<=z)return String.fromCharCode.apply(String,O);let w="",I=0;for(;I<y;)w+=String.fromCharCode.apply(String,O.slice(I,I+=z));return w}function oe(O,y,w){let I="";w=Math.min(O.length,w);for(let $=y;$<w;++$)I+=String.fromCharCode(O[$]&127);return I}function ee(O,y,w){let I="";w=Math.min(O.length,w);for(let $=y;$<w;++$)I+=String.fromCharCode(O[$]);return I}function Y(O,y,w){const I=O.length;(!y||y<0)&&(y=0),(!w||w<0||w>I)&&(w=I);let $="";for(let J=y;J<w;++J)$+=le[O[J]];return $}function W(O,y,w){const I=O.slice(y,w);let $="";for(let J=0;J<I.length-1;J+=2)$+=String.fromCharCode(I[J]+I[J+1]*256);return $}n.prototype.slice=function(y,w){const I=this.length;y=~~y,w=w===void 0?I:~~w,y<0?(y+=I,y<0&&(y=0)):y>I&&(y=I),w<0?(w+=I,w<0&&(w=0)):w>I&&(w=I),w<y&&(w=y);const $=this.subarray(y,w);return Object.setPrototypeOf($,n.prototype),$};function Z(O,y,w){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+y>w)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(y,w,I){y=y>>>0,w=w>>>0,I||Z(y,w,this.length);let $=this[y],J=1,te=0;for(;++te<w&&(J*=256);)$+=this[y+te]*J;return $},n.prototype.readUintBE=n.prototype.readUIntBE=function(y,w,I){y=y>>>0,w=w>>>0,I||Z(y,w,this.length);let $=this[y+--w],J=1;for(;w>0&&(J*=256);)$+=this[y+--w]*J;return $},n.prototype.readUint8=n.prototype.readUInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]|this[y+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]<<8|this[y+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},n.prototype.readBigUInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],I=this[y+7];(w===void 0||I===void 0)&&se(y,this.length-8);const $=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,J=this[++y]+this[++y]*2**8+this[++y]*2**16+I*2**24;return BigInt($)+(BigInt(J)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],I=this[y+7];(w===void 0||I===void 0)&&se(y,this.length-8);const $=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],J=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+I;return(BigInt($)<<BigInt(32))+BigInt(J)}),n.prototype.readIntLE=function(y,w,I){y=y>>>0,w=w>>>0,I||Z(y,w,this.length);let $=this[y],J=1,te=0;for(;++te<w&&(J*=256);)$+=this[y+te]*J;return J*=128,$>=J&&($-=Math.pow(2,8*w)),$},n.prototype.readIntBE=function(y,w,I){y=y>>>0,w=w>>>0,I||Z(y,w,this.length);let $=w,J=1,te=this[y+--$];for(;$>0&&(J*=256);)te+=this[y+--$]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*w)),te},n.prototype.readInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},n.prototype.readInt16LE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const I=this[y]|this[y+1]<<8;return I&32768?I|4294901760:I},n.prototype.readInt16BE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const I=this[y+1]|this[y]<<8;return I&32768?I|4294901760:I},n.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},n.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},n.prototype.readBigInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],I=this[y+7];(w===void 0||I===void 0)&&se(y,this.length-8);const $=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(I<<24);return(BigInt($)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),n.prototype.readBigInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],I=this[y+7];(w===void 0||I===void 0)&&se(y,this.length-8);const $=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt($)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+I)}),n.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!0,23,4)},n.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!1,23,4)},n.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!0,52,8)},n.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!1,52,8)};function ce(O,y,w,I,$,J){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>$||y<J)throw new RangeError('"value" argument is out of bounds');if(w+I>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(y,w,I,$){if(y=+y,w=w>>>0,I=I>>>0,!$){const Pe=Math.pow(2,8*I)-1;ce(this,y,w,I,Pe,0)}let J=1,te=0;for(this[w]=y&255;++te<I&&(J*=256);)this[w+te]=y/J&255;return w+I},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(y,w,I,$){if(y=+y,w=w>>>0,I=I>>>0,!$){const Pe=Math.pow(2,8*I)-1;ce(this,y,w,I,Pe,0)}let J=I-1,te=1;for(this[w+J]=y&255;--J>=0&&(te*=256);)this[w+J]=y/te&255;return w+I},n.prototype.writeUint8=n.prototype.writeUInt8=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,1,255,0),this[w]=y&255,w+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function ge(O,y,w,I,$){V(y,I,$,O,w,7);let J=Number(y&BigInt(4294967295));O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,w}function _e(O,y,w,I,$){V(y,I,$,O,w,7);let J=Number(y&BigInt(4294967295));O[w+7]=J,J=J>>8,O[w+6]=J,J=J>>8,O[w+5]=J,J=J>>8,O[w+4]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w+3]=te,te=te>>8,O[w+2]=te,te=te>>8,O[w+1]=te,te=te>>8,O[w]=te,w+8}n.prototype.writeBigUInt64LE=ie(function(y,w=0){return ge(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(y,w=0){return _e(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(y,w,I,$){if(y=+y,w=w>>>0,!$){const ze=Math.pow(2,8*I-1);ce(this,y,w,I,ze-1,-ze)}let J=0,te=1,Pe=0;for(this[w]=y&255;++J<I&&(te*=256);)y<0&&Pe===0&&this[w+J-1]!==0&&(Pe=1),this[w+J]=(y/te>>0)-Pe&255;return w+I},n.prototype.writeIntBE=function(y,w,I,$){if(y=+y,w=w>>>0,!$){const ze=Math.pow(2,8*I-1);ce(this,y,w,I,ze-1,-ze)}let J=I-1,te=1,Pe=0;for(this[w+J]=y&255;--J>=0&&(te*=256);)y<0&&Pe===0&&this[w+J+1]!==0&&(Pe=1),this[w+J]=(y/te>>0)-Pe&255;return w+I},n.prototype.writeInt8=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},n.prototype.writeInt16LE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeInt16BE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeInt32LE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},n.prototype.writeInt32BE=function(y,w,I){return y=+y,w=w>>>0,I||ce(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},n.prototype.writeBigInt64LE=ie(function(y,w=0){return ge(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(y,w=0){return _e(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(O,y,w,I,$,J){if(w+I>O.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Ae(O,y,w,I,$){return y=+y,w=w>>>0,$||Ce(O,y,w,4),f.write(O,y,w,I,23,4),w+4}n.prototype.writeFloatLE=function(y,w,I){return Ae(this,y,w,!0,I)},n.prototype.writeFloatBE=function(y,w,I){return Ae(this,y,w,!1,I)};function He(O,y,w,I,$){return y=+y,w=w>>>0,$||Ce(O,y,w,8),f.write(O,y,w,I,52,8),w+8}n.prototype.writeDoubleLE=function(y,w,I){return He(this,y,w,!0,I)},n.prototype.writeDoubleBE=function(y,w,I){return He(this,y,w,!1,I)},n.prototype.copy=function(y,w,I,$){if(!n.isBuffer(y))throw new TypeError("argument should be a Buffer");if(I||(I=0),!$&&$!==0&&($=this.length),w>=y.length&&(w=y.length),w||(w=0),$>0&&$<I&&($=I),$===I||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(I<0||I>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),y.length-w<$-I&&($=y.length-w+I);const J=$-I;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,I,$):Uint8Array.prototype.set.call(y,this.subarray(I,$),w),J},n.prototype.fill=function(y,w,I,$){if(typeof y=="string"){if(typeof w=="string"?($=w,w=0,I=this.length):typeof I=="string"&&($=I,I=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!n.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(y.length===1){const te=y.charCodeAt(0);($==="utf8"&&te<128||$==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<I)throw new RangeError("Out of range index");if(I<=w)return this;w=w>>>0,I=I===void 0?this.length:I>>>0,y||(y=0);let J;if(typeof y=="number")for(J=w;J<I;++J)this[J]=y;else{const te=n.isBuffer(y)?y:n.from(y,$),Pe=te.length;if(Pe===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(J=0;J<I-w;++J)this[J+w]=te[J%Pe]}return this};const Ie={};function Ke(O,y,w){Ie[O]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,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,y){return`The "${O}" argument must be of type number. Received type ${typeof y}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,y,w){let I=`The value of "${O}" is out of range.`,$=w;return Number.isInteger(w)&&Math.abs(w)>2**32?$=Me(String(w)):typeof w=="bigint"&&($=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&($=Me($)),$+="n"),I+=` It must be ${y}. Received ${$}`,I},RangeError);function Me(O){let y="",w=O.length;const I=O[0]==="-"?1:0;for(;w>=I+4;w-=3)y=`_${O.slice(w-3,w)}${y}`;return`${O.slice(0,w)}${y}`}function We(O,y,w){H(y,"offset"),(O[y]===void 0||O[y+w]===void 0)&&se(y,O.length-(w+1))}function V(O,y,w,I,$,J){if(O>w||O<y){const te=typeof y=="bigint"?"n":"";let Pe;throw y===0||y===BigInt(0)?Pe=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Pe=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`,new Ie.ERR_OUT_OF_RANGE("value",Pe,O)}We(I,$,J)}function H(O,y){if(typeof O!="number")throw new Ie.ERR_INVALID_ARG_TYPE(y,"number",O)}function se(O,y,w){throw Math.floor(O)!==O?(H(O,w),new Ie.ERR_OUT_OF_RANGE("offset","an integer",O)):y<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,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,y){y=y||1/0;let w;const I=O.length;let $=null;const J=[];for(let te=0;te<I;++te){if(w=O.charCodeAt(te),w>55295&&w<57344){if(!$){if(w>56319){(y-=3)>-1&&J.push(239,191,189);continue}else if(te+1===I){(y-=3)>-1&&J.push(239,191,189);continue}$=w;continue}if(w<56320){(y-=3)>-1&&J.push(239,191,189),$=w;continue}w=($-55296<<10|w-56320)+65536}else $&&(y-=3)>-1&&J.push(239,191,189);if($=null,w<128){if((y-=1)<0)break;J.push(w)}else if(w<2048){if((y-=2)<0)break;J.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;J.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;J.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return J}function Re(O){const y=[];for(let w=0;w<O.length;++w)y.push(O.charCodeAt(w)&255);return y}function me(O,y){let w,I,$;const J=[];for(let te=0;te<O.length&&!((y-=2)<0);++te)w=O.charCodeAt(te),I=w>>8,$=w%256,J.push($),J.push(I);return J}function ve(O){return i.toByteArray(we(O))}function be(O,y,w,I){let $;for($=0;$<I&&!($+w>=y.length||$>=O.length);++$)y[$+w]=O[$];return $}function Be(O,y){return O instanceof y||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===y.name}function X(O){return O!==O}const le=function(){const O="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const I=w*16;for(let $=0;$<16;++$)y[I+$]=O[w]+O[$]}return y}();function ie(O){return typeof BigInt>"u"?fe:O}function fe(){throw new Error("BigInt not supported")}})(Mi);var Di={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var xr={};Object.defineProperty(xr,"__esModule",{value:!0}),xr.default="00000000-0000-0000-0000-000000000000";var Jt={},Yt={},br={};Object.defineProperty(br,"__esModule",{value:!0}),br.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(Yt,"__esModule",{value:!0});const oa=br;function sa(t){return typeof t=="string"&&oa.default.test(t)}Yt.default=sa,Object.defineProperty(Jt,"__esModule",{value:!0});const aa=Yt;function la(t){if(!(0,aa.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)}Jt.default=la;var pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.unsafeStringify=void 0;const ca=Yt,et=[];for(let t=0;t<256;++t)et.push((t+256).toString(16).slice(1));function Hi(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()}pt.unsafeStringify=Hi;function ua(t,i=0){const f=Hi(t,i);if(!(0,ca.default)(f))throw TypeError("Stringified UUID is invalid");return f}pt.default=ua;var Qt={},hn={};Object.defineProperty(hn,"__esModule",{value:!0});let wr;const ha=new Uint8Array(16);function fa(){if(!wr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wr=crypto.getRandomValues.bind(crypto)}return wr(ha)}hn.default=fa,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.updateV1State=void 0;const Ui=hn,da=pt,fn={};function pa(t,i,f){var b;let r;const E=(t==null?void 0:t._v6)??!1;if(t){const l=Object.keys(t);l.length===1&&l[0]==="_v6"&&(t=void 0)}if(t)r=qi(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Ui.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,f);else{const l=Date.now(),n=(0,Ui.default)();$i(fn,l,n),r=qi(n,fn.msecs,fn.nsecs,E?void 0:fn.clockseq,E?void 0:fn.node,i,f)}return i?r:(0,da.unsafeStringify)(r)}function $i(t,i,f){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=f.slice(10,16),t.node[0]|=1,t.clockseq=(f[8]<<8|f[9])&16383),t.msecs=i,t}Qt.updateV1State=$i;function qi(t,i,f,r,E,b,l=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!b)b=new Uint8Array(16),l=0;else if(l<0||l+16>b.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);i??(i=Date.now()),f??(f=0),r??(r=(t[8]<<8|t[9])&16383),E??(E=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+f)%4294967296;b[l++]=n>>>24&255,b[l++]=n>>>16&255,b[l++]=n>>>8&255,b[l++]=n&255;const v=i/4294967296*1e4&268435455;b[l++]=v>>>8&255,b[l++]=v&255,b[l++]=v>>>24&15|16,b[l++]=v>>>16&255,b[l++]=r>>>8|128,b[l++]=r&255;for(let o=0;o<6;++o)b[l++]=E[o];return b}Qt.default=pa;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const ma=Jt,ga=pt;function ya(t){const i=typeof t=="string"?(0,ma.default)(t):t,f=va(i);return typeof t=="string"?(0,ga.unsafeStringify)(f):f}Dn.default=ya;function va(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 zi={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});function xa(t){const i=Sa(t),f=wa(i,t.length*8);return ba(f)}function ba(t){const i=new Uint8Array(t.length*4);for(let f=0;f<t.length*4;f++)i[f]=t[f>>2]>>>f%4*8&255;return i}function Vi(t){return(t+64>>>9<<4)+14+1}function wa(t,i){const f=new Uint32Array(Vi(i)).fill(0);f.set(t),f[i>>5]|=128<<i%32,f[f.length-1]=i,t=f;let r=1732584193,E=-271733879,b=-1732584194,l=271733878;for(let n=0;n<t.length;n+=16){const v=r,o=E,e=b,p=l;r=rt(r,E,b,l,t[n],7,-680876936),l=rt(l,r,E,b,t[n+1],12,-389564586),b=rt(b,l,r,E,t[n+2],17,606105819),E=rt(E,b,l,r,t[n+3],22,-1044525330),r=rt(r,E,b,l,t[n+4],7,-176418897),l=rt(l,r,E,b,t[n+5],12,1200080426),b=rt(b,l,r,E,t[n+6],17,-1473231341),E=rt(E,b,l,r,t[n+7],22,-45705983),r=rt(r,E,b,l,t[n+8],7,1770035416),l=rt(l,r,E,b,t[n+9],12,-1958414417),b=rt(b,l,r,E,t[n+10],17,-42063),E=rt(E,b,l,r,t[n+11],22,-1990404162),r=rt(r,E,b,l,t[n+12],7,1804603682),l=rt(l,r,E,b,t[n+13],12,-40341101),b=rt(b,l,r,E,t[n+14],17,-1502002290),E=rt(E,b,l,r,t[n+15],22,1236535329),r=it(r,E,b,l,t[n+1],5,-165796510),l=it(l,r,E,b,t[n+6],9,-1069501632),b=it(b,l,r,E,t[n+11],14,643717713),E=it(E,b,l,r,t[n],20,-373897302),r=it(r,E,b,l,t[n+5],5,-701558691),l=it(l,r,E,b,t[n+10],9,38016083),b=it(b,l,r,E,t[n+15],14,-660478335),E=it(E,b,l,r,t[n+4],20,-405537848),r=it(r,E,b,l,t[n+9],5,568446438),l=it(l,r,E,b,t[n+14],9,-1019803690),b=it(b,l,r,E,t[n+3],14,-187363961),E=it(E,b,l,r,t[n+8],20,1163531501),r=it(r,E,b,l,t[n+13],5,-1444681467),l=it(l,r,E,b,t[n+2],9,-51403784),b=it(b,l,r,E,t[n+7],14,1735328473),E=it(E,b,l,r,t[n+12],20,-1926607734),r=ot(r,E,b,l,t[n+5],4,-378558),l=ot(l,r,E,b,t[n+8],11,-2022574463),b=ot(b,l,r,E,t[n+11],16,1839030562),E=ot(E,b,l,r,t[n+14],23,-35309556),r=ot(r,E,b,l,t[n+1],4,-1530992060),l=ot(l,r,E,b,t[n+4],11,1272893353),b=ot(b,l,r,E,t[n+7],16,-155497632),E=ot(E,b,l,r,t[n+10],23,-1094730640),r=ot(r,E,b,l,t[n+13],4,681279174),l=ot(l,r,E,b,t[n],11,-358537222),b=ot(b,l,r,E,t[n+3],16,-722521979),E=ot(E,b,l,r,t[n+6],23,76029189),r=ot(r,E,b,l,t[n+9],4,-640364487),l=ot(l,r,E,b,t[n+12],11,-421815835),b=ot(b,l,r,E,t[n+15],16,530742520),E=ot(E,b,l,r,t[n+2],23,-995338651),r=st(r,E,b,l,t[n],6,-198630844),l=st(l,r,E,b,t[n+7],10,1126891415),b=st(b,l,r,E,t[n+14],15,-1416354905),E=st(E,b,l,r,t[n+5],21,-57434055),r=st(r,E,b,l,t[n+12],6,1700485571),l=st(l,r,E,b,t[n+3],10,-1894986606),b=st(b,l,r,E,t[n+10],15,-1051523),E=st(E,b,l,r,t[n+1],21,-2054922799),r=st(r,E,b,l,t[n+8],6,1873313359),l=st(l,r,E,b,t[n+15],10,-30611744),b=st(b,l,r,E,t[n+6],15,-1560198380),E=st(E,b,l,r,t[n+13],21,1309151649),r=st(r,E,b,l,t[n+4],6,-145523070),l=st(l,r,E,b,t[n+11],10,-1120210379),b=st(b,l,r,E,t[n+2],15,718787259),E=st(E,b,l,r,t[n+9],21,-343485551),r=Pt(r,v),E=Pt(E,o),b=Pt(b,e),l=Pt(l,p)}return Uint32Array.of(r,E,b,l)}function Sa(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(Vi(t.length*8)).fill(0);for(let f=0;f<t.length;f++)i[f>>2]|=(t[f]&255)<<f%4*8;return i}function Pt(t,i){const f=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(f>>16)<<16|f&65535}function Ea(t,i){return t<<i|t>>>32-i}function Hn(t,i,f,r,E,b){return Pt(Ea(Pt(Pt(i,t),Pt(r,b)),E),f)}function rt(t,i,f,r,E,b,l){return Hn(i&f|~i&r,t,i,E,b,l)}function it(t,i,f,r,E,b,l){return Hn(i&r|f&~r,t,i,E,b,l)}function ot(t,i,f,r,E,b,l){return Hn(i^f^r,t,i,E,b,l)}function st(t,i,f,r,E,b,l){return Hn(f^(i|~r),t,i,E,b,l)}Sr.default=xa;var mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.URL=mt.DNS=mt.stringToBytes=void 0;const Gi=Jt,ka=pt;function Ki(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let f=0;f<t.length;++f)i[f]=t.charCodeAt(f);return i}mt.stringToBytes=Ki,mt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",mt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function _a(t,i,f,r,E,b){const l=typeof f=="string"?Ki(f):f,n=typeof r=="string"?(0,Gi.default)(r):r;if(typeof r=="string"&&(r=(0,Gi.default)(r)),(r==null?void 0:r.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+l.length);if(v.set(n),v.set(l,n.length),v=i(v),v[6]=v[6]&15|t,v[8]=v[8]&63|128,E){b=b||0;for(let o=0;o<16;++o)E[b+o]=v[o];return E}return(0,ka.unsafeStringify)(v)}mt.default=_a,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=Sr,f=mt;var r=mt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,l,n,v){return(0,f.default)(48,i.default,b,l,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(zi);var Er={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});const Ca=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);kr.default={randomUUID:Ca},Object.defineProperty(Er,"__esModule",{value:!0});const Wi=kr,Oa=hn,Aa=pt;function Ra(t,i,f){var E;if(Wi.default.randomUUID&&!i&&!t)return Wi.default.randomUUID();t=t||{};const r=t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Oa.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,i){if(f=f||0,f<0||f+16>i.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[f+b]=r[b];return i}return(0,Aa.unsafeStringify)(r)}Er.default=Ra;var Ji={},_r={};Object.defineProperty(_r,"__esModule",{value:!0});function Ta(t,i,f,r){switch(t){case 0:return i&f^~i&r;case 1:return i^f^r;case 2:return i&f^i&r^f&r;case 3:return i^f^r}}function Cr(t,i){return t<<i|t>>>32-i}function Pa(t){const i=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(t.length+1);r.set(t),r[t.length]=128,t=r;const E=t.length/4+2,b=Math.ceil(E/16),l=new Array(b);for(let n=0;n<b;++n){const v=new Uint32Array(16);for(let o=0;o<16;++o)v[o]=t[n*64+o*4]<<24|t[n*64+o*4+1]<<16|t[n*64+o*4+2]<<8|t[n*64+o*4+3];l[n]=v}l[b-1][14]=(t.length-1)*8/Math.pow(2,32),l[b-1][14]=Math.floor(l[b-1][14]),l[b-1][15]=(t.length-1)*8&4294967295;for(let n=0;n<b;++n){const v=new Uint32Array(80);for(let a=0;a<16;++a)v[a]=l[n][a];for(let a=16;a<80;++a)v[a]=Cr(v[a-3]^v[a-8]^v[a-14]^v[a-16],1);let o=f[0],e=f[1],p=f[2],C=f[3],u=f[4];for(let a=0;a<80;++a){const s=Math.floor(a/20),g=Cr(o,5)+Ta(s,e,p,C)+u+i[s]+v[a]>>>0;u=C,C=p,p=Cr(e,30)>>>0,e=o,o=g}f[0]=f[0]+o>>>0,f[1]=f[1]+e>>>0,f[2]=f[2]+p>>>0,f[3]=f[3]+C>>>0,f[4]=f[4]+u>>>0}return Uint8Array.of(f[0]>>24,f[0]>>16,f[0]>>8,f[0],f[1]>>24,f[1]>>16,f[1]>>8,f[1],f[2]>>24,f[2]>>16,f[2]>>8,f[2],f[3]>>24,f[3]>>16,f[3]>>8,f[3],f[4]>>24,f[4]>>16,f[4]>>8,f[4])}_r.default=Pa,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=_r,f=mt;var r=mt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,l,n,v){return(0,f.default)(80,i.default,b,l,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(Ji);var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const Fa=pt,Ia=Qt,La=Dn;function ja(t,i,f){t??(t={}),f??(f=0);let r=(0,Ia.default)({...t,_v6:!0},new Uint8Array(16));if(r=(0,La.default)(r),i){for(let E=0;E<16;E++)i[f+E]=r[E];return i}return(0,Fa.unsafeStringify)(r)}Or.default=ja;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});const Na=Jt,Ma=pt;function Ba(t){const i=typeof t=="string"?(0,Na.default)(t):t,f=Da(i);return typeof t=="string"?(0,Ma.unsafeStringify)(f):f}Ar.default=Ba;function Da(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 dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.updateV7State=void 0;const Yi=hn,Ha=pt,Rr={};function Ua(t,i,f){var E;let r;if(t)r=Zi(t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Yi.default)(),t.msecs,t.seq,i,f);else{const b=Date.now(),l=(0,Yi.default)();Qi(Rr,b,l),r=Zi(l,Rr.msecs,Rr.seq,i,f)}return i?r:(0,Ha.unsafeStringify)(r)}function Qi(t,i,f){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}dn.updateV7State=Qi;function Zi(t,i,f,r,E=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),E=0;else if(E<0||E+16>r.length)throw new RangeError(`UUID byte range ${E}:${E+15} is out of buffer bounds`);return i??(i=Date.now()),f??(f=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),r[E++]=i/1099511627776&255,r[E++]=i/4294967296&255,r[E++]=i/16777216&255,r[E++]=i/65536&255,r[E++]=i/256&255,r[E++]=i&255,r[E++]=112|f>>>28&15,r[E++]=f>>>20&255,r[E++]=128|f>>>14&63,r[E++]=f>>>6&255,r[E++]=f<<2&255|t[10]&3,r[E++]=t[11],r[E++]=t[12],r[E++]=t[13],r[E++]=t[14],r[E++]=t[15],r}dn.default=Ua;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const $a=Yt;function qa(t){if(!(0,$a.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Tr.default=qa,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=vr;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var f=xr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return f.default}});var r=Jt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var E=pt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.default}});var b=Qt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var l=Dn;Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return l.default}});var n=zi;Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return n.default}});var v=Er;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return v.default}});var o=Ji;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}});var e=Or;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var p=Ar;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var C=dn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var u=Yt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}});var a=Tr;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Di),Object.defineProperty(ct,"__esModule",{value:!0}),ct.isEmptyObject=ct.generateUUID=ct.validateSetPagingParams=ct.base64=ct.isFunction=void 0;const Xi=Mi,za=Di,Va=t=>typeof t=="function";ct.isFunction=Va;const Ga=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Xi.Buffer)return Xi.Buffer.from(t).toString("base64")};ct.base64=Ga;const Ka=(t,i,f,r)=>{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(!f||!r)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof f=="string"&&typeof r=="string"||Array.isArray(f)&&Array.isArray(r)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(f)&&f.length!==r.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof r=="string"&&r!=="asc"&&r!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(r)&&r.some(E=>E!=="desc"&&E!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};ct.validateSetPagingParams=Ka;const Wa=()=>(0,za.v4)().replace(/-/g,"");ct.generateUUID=Wa;const Ja=t=>t==null||Array.isArray(t)||Object.prototype.toString.call(t)!=="[object Object]"?!0:Object.keys(t).length===0;ct.isEmptyObject=Ja,Object.defineProperty(er,"__esModule",{value:!0});const Mt=Xe,eo=ct,to=function(t,i,f,r,E,b,l,n){var v,o,e,p,C,u,a,s;const g=function(S,F){return S||S===!1?"&"+F+"="+S:""};if(f!=="search"&&f!=="ai-answers"&&f!=="suggest"&&f!=="autocomplete"&&f!=="recommend"){E({error:{response:Mt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let d="",m="",c={},h=null,_=null;if(f==="search"){_=f,d=r==null?void 0:r.keyword,d=r!=null&&r.enableLogicalOperators?d.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):d.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),d=encodeURIComponent(d);let S=r==null?void 0:r.fuzzy;if(S==="retry"&&(b!==!0?S=!1:S=!0),m=g(r==null?void 0:r.lang,"lang")+g(S,"fuzzy")+g(r==null?void 0:r.collectAnalytics,"collectAnalytics")+g(r==null?void 0:r.postfixWildcard,"postfixWildcard")+g(r==null?void 0:r.categories,"categories")+g(r==null?void 0:r.priceFromCents,"priceFromCents")+g(r==null?void 0:r.priceToCents,"priceToCents")+g(r==null?void 0:r.dateFrom,"dateFrom")+g(r==null?void 0:r.dateTo,"dateTo")+g(r==null?void 0:r.paging.page,"page")+g(r==null?void 0:r.paging.pageSize,"limit")+g(r==null?void 0:r.shuffleAndLimitTo,"shuffleAndLimitTo")+g(r==null?void 0:r.jwt,"jwt")+g(r==null?void 0:r.resultType,"resultType")+g(r==null?void 0:r.userToken,"userToken")+g(r==null?void 0:r.numFacets,"numFacets")+g(r==null?void 0:r.cacheResponseTime,"cacheResponseWithTtlSeconds")+g(r==null?void 0:r.searchOperator,"defaultOperator")+g(r==null?void 0:r.analyticsTag,"analyticsTag"),c=Object.assign(Object.assign({},c),{language:r==null?void 0:r.lang,fuzzy:S!==!0&&S!==!1?S:JSON.stringify(S),collectAnalytics:r==null?void 0:r.collectAnalytics,postfixWildcard:r==null?void 0:r.postfixWildcard,categories:r!=null&&r.categories?r==null?void 0:r.categories.split(","):void 0,priceFromCents:r!=null&&r.priceFromCents?parseInt(r==null?void 0:r.priceFromCents,10):void 0,priceToCents:r!=null&&r.priceToCents?parseInt(r==null?void 0:r.priceToCents,10):void 0,dateFrom:r==null?void 0:r.dateFrom,dateTo:r==null?void 0:r.dateTo,paging:{page:(v=r==null?void 0:r.paging.page)!==null&&v!==void 0?v:1,pageSize:(o=r==null?void 0:r.paging.pageSize)!==null&&o!==void 0?o:10,shuffleAndLimitTo:(e=r==null?void 0:r.shuffleAndLimitTo)!==null&&e!==void 0?e:void 0,sortByField:r==null?void 0:r.paging.sortBy,sortOrder:r==null?void 0:r.paging.sortOrder},jwt:r==null?void 0:r.jwt,resultType:r==null?void 0:r.resultType,userToken:(p=r==null?void 0:r.userToken)!==null&&p!==void 0?p:void 0,numFacets:r==null?void 0:r.numFacets,cacheResponseWithTtlSeconds:(C=r==null?void 0:r.cacheResponseTime)!==null&&C!==void 0?C:void 0,defaultOperator:(u=r==null?void 0:r.searchOperator)!==null&&u!==void 0?u:void 0,analyticsTag:r==null?void 0:r.analyticsTag}),Array.isArray(r==null?void 0:r.paging.sortBy)&&(r==null?void 0:r.paging.sortBy.length)>1?r==null||r.paging.sortBy.forEach(function(F,T){m=m+g(F,"sort")+g(r==null?void 0:r.paging.sortOrder[T],"order")}):m=m+g(r==null?void 0:r.paging.sortBy,"sort")+g(r==null?void 0:r.paging.sortOrder,"order"),r!=null&&r.customFieldFilters){const F={};for(let T=0;T<(r==null?void 0:r.customFieldFilters.length);T++){m=m+"&customField="+(r==null?void 0:r.customFieldFilters[T]);const j=decodeURIComponent(r==null?void 0:r.customFieldFilters[T]).split("="),U=j[0],L=j[1];F[U]=L}c=Object.assign(Object.assign({},c),{customField:(0,eo.isEmptyObject)(F)?void 0:F})}if(r!=null&&r.facetFields){const F=[];for(let T=0;T<(r==null?void 0:r.facetFields.length);T++)m=m+"&facet="+(r==null?void 0:r.facetFields[T]),F.push(r==null?void 0:r.facetFields[T]);c=Object.assign(Object.assign({},c),{facet:F.length>0?F:void 0})}if(r!=null&&r.rangeFacets&&(m=m+"&rangeFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.rangeFacets)),c=Object.assign(Object.assign({},c),{rangeFacets:r==null?void 0:r.rangeFacets})),r!=null&&r.hierarchicalFacetSetting&&(m=m+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.hierarchicalFacetSetting)),c=Object.assign(Object.assign({},c),{hierarchicalFacets:r==null?void 0:r.hierarchicalFacetSetting})),r!=null&&r.statsFields){const F=[];for(let T=0;T<(r==null?void 0:r.statsFields.length);T++)m=m+"&fieldStat="+(r==null?void 0:r.statsFields[T]),F.push(r==null?void 0:r.statsFields[T]);c=Object.assign(Object.assign({},c),{statsFields:F})}if(r!=null&&r.personalizationEvents&&Array.isArray(r==null?void 0:r.personalizationEvents)){const F=[];for(let T=0;T<(r==null?void 0:r.personalizationEvents.length);T++){const R=r==null?void 0:r.personalizationEvents[T],j=Object.keys(R)[0];m=m+"&personalizationEvent="+encodeURIComponent(j+"="+R[j]),F.push(R)}c=Object.assign(Object.assign({},c),{personalizationEvents:F})}l?(m=m+"&filter="+encodeURIComponent(JSON.stringify(l)),c=Object.assign(Object.assign({},c),{filter:l})):r!=null&&r.filterObject&&(m=m+"&filter="+encodeURIComponent(JSON.stringify(r==null?void 0:r.filterObject)),c=Object.assign(Object.assign({},c),{filter:(0,eo.isEmptyObject)(r==null?void 0:r.filterObject)||r==null?void 0:r.filterObject})),h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m}else f==="ai-answers"?Mt.apiInstance.post(`https://${t}/v2/indices/${i}/conversations`,{question:r==null?void 0:r.keyword}).then(function(S){S.data.response?E(S.data.response):E({error:{response:Mt.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})}).catch(function(S){console.error(S),E({error:{response:Mt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):f==="suggest"?(_=f,m=g(r==null?void 0:r.suggestionsSize,"size")+g(r==null?void 0:r.lang,"language"),c=Object.assign(Object.assign({},c),{size:r==null?void 0:r.suggestionsSize,language:r==null?void 0:r.lang}),d=r==null?void 0:r.suggestionsPrefix,h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m):f==="autocomplete"?(_="autocomplete/document-field",m=g(r==null?void 0:r.autocomplete.field,"source")+g(r==null?void 0:r.autocomplete.size,"size"),d=(r==null?void 0:r.autocomplete.prefix)||"",h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m,c=Object.assign(Object.assign({},c),{source:r==null?void 0:r.autocomplete.field,size:r==null?void 0:r.autocomplete.size})):f==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(m=g(n.itemId,"itemId"),_="recommendations/index/"+i+"/block/"+n.blockId+"?"+m,c=Object.assign(Object.assign({},c),{itemId:(a=n.itemId)!==null&&a!==void 0?a:void 0,blockId:n.blockId})):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(m=g(n.itemId,"itemId"),_="recommendations/"+i+"?configurationKey="+n.configurationKey+m,c=Object.assign(Object.assign({},c),{itemId:(s=n.itemId)!==null&&s!==void 0?s:void 0,configurationKey:n.configurationKey})),h="https://"+t+"/v1/"+_);if(f!=="ai-answers"){const S=function(T){var R,j,U;const L=T.data;f==="search"&&(r==null?void 0:r.fuzzy)==="retry"&&L.total_hits===0&&b!==!0?to(t,i,f,r,E,!0):(b===!0&&(L.total_hits=Math.min((R=L.total_hits)!==null&&R!==void 0?R:1/0,(U=(j=r==null?void 0:r.paging)===null||j===void 0?void 0:j.pageSize)!==null&&U!==void 0?U:1/0)),E(L))},F=function(T){console.error(T),E({error:{response:Mt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})};if((r==null?void 0:r.apiMethod)==="POST"&&["search","suggest","autocomplete"].includes(f)){h="https://"+t+"/v1/"+_+"/"+i;const T=f==="search"?decodeURIComponent(d):d;c=Object.assign({term:T},c),Mt.apiInstance.post(h,c).then(S).catch(F)}else Mt.apiInstance.get(h).then(S).catch(F)}};er.default=to;var gt={},Ya=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.deleteDocumentsBatch=gt.deleteDocument=gt.saveDocumentsBatch=gt.saveDocument=gt.getDocument=void 0;const pn=Ya(Li),Qa=ct,mn=(t,i)=>({Authorization:"Basic "+(0,Qa.base64)(t+":"+i),"Content-Type":"application/json"}),Za=(t,i,f,r)=>new Promise((E,b)=>{pn.default.get(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:mn(i,f)}).then(l=>{l.status===200?E(l.data):b(new Error(JSON.stringify({status:l.status,text:l.statusText})))}).catch(l=>{b(new Error(JSON.stringify({status:400,text:l})))})});gt.getDocument=Za;const Xa=(t,i,f,r)=>{const E=!!(r.id||r.url);return new Promise((b,l)=>{(0,pn.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:E?"put":"post",headers:mn(i,f),data:r}).then(n=>{n.status===202?b({status:n.status,text:n.statusText}):l(new Error(JSON.stringify({status:n.status,text:n.statusText})))}).catch(n=>{l(new Error(JSON.stringify({status:400,text:n})))})})};gt.saveDocument=Xa;const el=(t,i,f,r)=>new Promise((E,b)=>{(0,pn.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:mn(i,f),data:r}).then(l=>{l.status===202?E({status:l.status,text:l.statusText}):b(new Error(JSON.stringify({status:l.status,text:l.statusText})))}).catch(l=>{b(new Error(JSON.stringify({status:400,text:l})))})});gt.saveDocumentsBatch=el;const tl=(t,i,f,r)=>new Promise((E,b)=>{pn.default.delete(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:mn(i,f)}).then(l=>{l.status===202?E({status:l.status,text:l.statusText}):b(new Error(JSON.stringify({status:l.status,text:l.statusText})))}).catch(l=>{b(new Error(JSON.stringify({status:400,text:l})))})});gt.deleteDocument=tl;const nl=(t,i,f,r)=>new Promise((E,b)=>{pn.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:mn(i,f),data:r}).then(l=>{l.status===202?E({status:l.status,text:l.statusText}):b(new Error(JSON.stringify({status:l.status,text:l.statusText})))}).catch(l=>{b(new Error(JSON.stringify({status:400,text:l})))})});gt.deleteDocumentsBatch=nl;var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});const rl=Wr,il=Xe;(0,rl.polyfill)();const ol=(t,i,f,r)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!r?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(f)):il.statsInstance.post(`https://${t}/v1/stats/${i}/`,f,{headers:{"Content-Type":"text/plain"}}).then().catch(E=>{console.error(E)})};Pr.default=ol;var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.putSentimentClick=void 0;const Fr=Xe,sl=(t,i,f,r)=>new Promise((E,b)=>{Fr.aiAnswersInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${f}/rating`,{value:r==="positive"?1:r==="negative"?-1:0}).then(l=>{l.status===200?E(!0):b(new Error(JSON.stringify({type:Fr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(l=>{console.error(l),b(new Error(JSON.stringify({type:Fr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Un.putSentimentClick=sl;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const al=ct;class ll{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,apiMethod:"GET"}}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,f){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=f}setLanguage(i){let f;if(Intl&&Intl.Locale)try{f=new Intl.Locale(i).language}catch(r){throw console.debug(r),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else f=i;if(f&&f.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=f}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,f){this.settings.priceFromCents=i,this.settings.priceToCents=f}addCustomFieldFilter(i,f){const r=encodeURIComponent(`${i}=${f}`);this.settings.customFieldFilters.includes(r)||this.settings.customFieldFilters.push(r)}removeCustomFieldFilter(i,f){const r=!f,E=encodeURIComponent(`${i}=${f||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>r?!b.startsWith(E):b!==E)}setDateFilter(i,f){this.settings.dateFrom=i,this.settings.dateTo=f}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,f){var r,E;(r=(E=this.settings).rangeFacets)!==null&&r!==void 0||(E.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:f})}addStatsField(i){var f,r;(f=(r=this.settings).statsFields)!==null&&f!==void 0||(r.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,f,r,E){(0,al.validateSetPagingParams)(i,f,r,E),this.settings.paging={page:i,pageSize:f,sortBy:r,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}setApiMethod(i){if(i!=="GET"&&i!=="POST")throw new Error("API method must be 'GET' or 'POST'");this.settings.apiMethod=i}}Ir.default=ll;var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});const cl=(t,i)=>{let f=0,r=null;function E(){r!==null&&(clearTimeout(r),r=null)}function b(...l){const n=Date.now()-f,v=()=>{f=Date.now(),i(...l)};E(),n>t?v():r=setTimeout(v,t-n)}return b};Lr.default=cl;var Ft={},$n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.parse=gl,$n.serialize=yl;const ul=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,hl=/^[\u0021-\u003A\u003C-\u007E]*$/,fl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,dl=/^[\u0020-\u003A\u003D-\u007E]*$/,pl=Object.prototype.toString,ml=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function gl(t,i){const f=new ml,r=t.length;if(r<2)return f;const E=(i==null?void 0:i.decode)||vl;let b=0;do{const l=t.indexOf("=",b);if(l===-1)break;const n=t.indexOf(";",b),v=n===-1?r:n;if(l>v){b=t.lastIndexOf(";",l-1)+1;continue}const o=no(t,b,l),e=ro(t,l,o),p=t.slice(o,e);if(f[p]===void 0){let C=no(t,l+1,v),u=ro(t,v,C);const a=E(t.slice(C,u));f[p]=a}b=v+1}while(b<r);return f}function no(t,i,f){do{const r=t.charCodeAt(i);if(r!==32&&r!==9)return i}while(++i<f);return f}function ro(t,i,f){for(;i>f;){const r=t.charCodeAt(--i);if(r!==32&&r!==9)return i+1}return f}function yl(t,i,f){const r=(f==null?void 0:f.encode)||encodeURIComponent;if(!ul.test(t))throw new TypeError(`argument name is invalid: ${t}`);const E=r(i);if(!hl.test(E))throw new TypeError(`argument val is invalid: ${i}`);let b=t+"="+E;if(!f)return b;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);b+="; Max-Age="+f.maxAge}if(f.domain){if(!fl.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);b+="; Domain="+f.domain}if(f.path){if(!dl.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);b+="; Path="+f.path}if(f.expires){if(!xl(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);b+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(b+="; HttpOnly"),f.secure&&(b+="; Secure"),f.partitioned&&(b+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return b}function vl(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function xl(t){return pl.call(t)==="[object Date]"}Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.deleteCookie=Ft.getCookie=Ft.setCookie=void 0;const jr=$n,bl=(t,i,f)=>{if(typeof document>"u")return;const r=new Date;r.setTime(r.getTime()+f*24*60*60*1e3),document.cookie=(0,jr.serialize)(t,i,{expires:r,path:"/"})};Ft.setCookie=bl;const wl=t=>{if(!(typeof document>"u"))try{return(0,jr.parse)(document.cookie)[t]}catch(i){console.debug("Error parsing cookies:",i);return}};Ft.getCookie=wl;const Sl=t=>{typeof document>"u"||(document.cookie=(0,jr.serialize)(t,"",{expires:new Date(0),path:"/"}))};Ft.deleteCookie=Sl;var El=Ze&&Ze.__createBinding||(Object.create?function(t,i,f,r){r===void 0&&(r=f);var E=Object.getOwnPropertyDescriptor(i,f);(!E||("get"in E?!i.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(t,r,E)}:function(t,i,f,r){r===void 0&&(r=f),t[r]=i[f]}),kl=Ze&&Ze.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),io=Ze&&Ze.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(f){var r=[];for(var E in f)Object.prototype.hasOwnProperty.call(f,E)&&(r[r.length]=E);return r},t(i)};return function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var r=t(i),E=0;E<r.length;E++)r[E]!=="default"&&El(f,i,r[E]);return kl(f,i),f}}(),qn=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Bt=qn(er),gn=gt,oo=qn(Pr),_l=Un,Cl=qn(Ir),zn=io(ct),yn=qn(Lr),vn=io(Ft),Vn=Xe,so="api.addsearch.com",Nr="addsearchUserToken";class Ol{constructor(i,f){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=f||"",this.apiHostname=so,this.statsApiHostname=so,this.settings=new Cl.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=vn.getCookie(Nr)||zn.generateUUID()}search(i,f){var r;let E=null,b=null;if(typeof i=="string"&&typeof f=="function")E=i,b=f;else if(typeof i=="function"&&!f)E=this.settings.getSettings().keyword||null,b=i;else if(this.settings.getSettings().callback)E=this.settings.getSettings().keyword||null,b=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>b),this.settings.setKeyword(E),(r=this.throttledSearchFetch)!==null&&r!==void 0||(this.throttledSearchFetch=(0,yn.default)(this.settings.getSettings().throttleTimeMs,Bt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),b)}aiAnswers(i,f){var r;this.settings.setCallback(()=>f),this.settings.setKeyword(i),(r=this.throttledAiAnswersFetch)!==null&&r!==void 0||(this.throttledAiAnswersFetch=(0,yn.default)(this.settings.getSettings().throttleTimeMs,Bt.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),f)}putSentimentClick(i,f){return(0,_l.putSentimentClick)(this.apiHostname,this.sitekey,i,f)}suggestions(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),(r=this.throttledSuggestionsFetch)!==null&&r!==void 0||(this.throttledSuggestionsFetch=(0,yn.default)(this.settings.getSettings().throttleTimeMs,Bt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),f)}autocomplete(i,f,r){var E;if(!i||!f||!r||!zn.isFunction(r))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,f),(E=this.throttledAutocompleteFetch)!==null&&E!==void 0||(this.throttledAutocompleteFetch=(0,yn.default)(this.settings.getSettings().throttleTimeMs,Bt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),r)}fetchCustomApi(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());b.facetFields=(E=b.facetFields)===null||E===void 0?void 0:E.filter(l=>i===l),(0,Bt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}fetchRangeFacets(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());(E=b.rangeFacets)!==null&&E!==void 0||(b.rangeFacets=[]),b.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Bt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}recommendations(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");(r=this.throttledRecommendationFetch)!==null&&r!==void 0||(this.throttledRecommendationFetch=(0,yn.default)(this.settings.getSettings().throttleTimeMs,Bt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",this.settings.getSettings(),f,!1,null,i)}getDocument(i){return(0,gn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,gn.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,gn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,gn.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,gn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,f){(!f||!f.statsApiRequestOnly)&&(this.apiHostname=i),(!f||!f.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,f){this.settings.addCustomFieldFilter(i,f)}removeCustomFieldFilter(i,f){this.settings.removeCustomFieldFilter(i,f)}setPriceRangeFilter(i,f){this.settings.setPriceRangeFilter(i,f)}setDateFilter(i,f){this.settings.setDateFilter(i,f)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,f,r,E){this.settings.setPaging(i,f,r,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,f){this.settings.addRangeFacet(i,f)}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)}setApiMethod(i){this.settings.setApiMethod(i)}sendStatsEvent(i,f,r){const E=!this.useStatsSessionId&&ao&&lo;if(E&&!vn.getCookie(Nr)&&vn.setCookie(Nr,this.userTokenInPersonalization,co),i==="search"){const b={action:"search",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,numberOfResults:r.numberOfResults,tag:this.getSettings().analyticsTag};(0,oo.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,docid:r.documentId,position:r.position,tag:this.getSettings().analyticsTag};(0,oo.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,f){ao=i,f&&(co=f)}consentAddSearchCookie(i){lo=i}setApiRequestInterceptor(i,f={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:r=!1,statsApiRequestOnly:E=!1}=f;!r&&!E?((0,Vn.setRequestInterceptor)(i,"searchApi"),(0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(r&&(0,Vn.setRequestInterceptor)(i,"searchApi"),E&&((0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}setCookie(i,f,r){vn.setCookie(i,f,r)}getCookie(i){return vn.getCookie(i)}searchResultClicked(i,f){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:f})}}let ao=!1,lo=!1,co=180;var Al=Ol;const Rl=zr(Al);var uo={exports:{}};/*! addsearch-search-ui 0.9.2 */(function(t,i){(function(f,r){t.exports=r()})(Ze,function(){return function(){var f={2987:function(b,l,n){b.exports=n(9770).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)},1543:function(b,l,n){n.d(l,{FW:function(){return o},mQ:function(){return e},Lt:function(){return v},Rn:function(){return C},jK:function(){return u},wF:function(){return p},On:function(){return a},bz:function(){return s}});const v="IS_LOADING_AI_ANSWERS",o="AI_ANSWERS_RESULT",e="AI_ANSWERS_RESULT_ERROR",p="SET_AI_ANSWERS_SENTIMENT",C="SET_AI_ANSWERS_ANSWER_EXPANDED",u="SET_AI_ANSWERS_HIDDEN";function a(g,d){return m=>{m({type:e,payload:!1}),m({type:v,payload:!0}),g.aiAnswers(d,c=>{if(c.error)m({type:e,payload:!0});else{const S={id:(h=c).conversation_id,answerText:h.answer||"",sources:((_=h.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(F=>({url:F.url,title:F.title})))||[]};m({type:p,payload:"neutral"}),m({type:o,payload:S})}var h,_;m({type:v,payload:!1})})}}function s(g,d,m){return c=>{c({type:p,payload:m}),g.putSentimentClick(d,m).then().catch(h=>{console.error(h)})}}},6148:function(b,l,n){n.d(l,{Ah:function(){return ee},B5:function(){return d},C0:function(){return K},FJ:function(){return m},GA:function(){return B},GB:function(){return g},Jd:function(){return _},KR:function(){return o},Km:function(){return a},MO:function(){return R},OA:function(){return U},Pf:function(){return F},VW:function(){return v},XD:function(){return oe},Xr:function(){return T},d5:function(){return S},dC:function(){return z},h$:function(){return s},hR:function(){return j},hx:function(){return c},il:function(){return h},kw:function(){return e},nl:function(){return N},nn:function(){return C},p3:function(){return u},vT:function(){return p}});const v="AUTOCOMPLETE_FETCH_START",o="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",p="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",u="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",s="AUTOCOMPLETE_SHOW",g="AUTOCOMPLETE_HIDE",d="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",m="HIDE_AUTOMATICALLY",c="KEYBOARD_EVENT",h="ARROW_UP",_="ARROW_DOWN",S="SET_ACTIVE_SUGGESTION",F="suggestions",T="custom_fields";function R(Y,W){return W&&W!==""?(Z,ce)=>{const ge=ce().keyword.minLengthRequiredToFetch;W.length<ge||(Z(L(F)),Y.suggestions(W,_e=>{ce().keyword.value!==""&&Z(function(Ce,Ae){return{type:o,keyword:Ce,results:Ae}}(W,_e))}))}:{type:p}}function j(Y,W,Z){return W&&W!==""?(ce,ge)=>{const _e=ge().keyword.minLengthRequiredToFetch;W.length<_e||(ce(L(T)),Y.autocomplete(Z,W,Ce=>{ge().keyword.value!==""&&ce({type:e,results:Ce})}))}:{type:C}}function U(Y,W,Z,ce){return Z&&Z!==""?(ge,_e)=>{const Ce=_e().keyword.minLengthRequiredToFetch;Z.length<Ce||(ge(L(W)),Y.search(Z,Ae=>{_e().keyword.value!==""&&ge(function(He,Ie,Ke,Me){return{type:u,keyword:He,results:Ie,jsonKey:Ke,appendResults:Me}}(Z,Ae,W,ce))}))}:{type:a}}function L(Y){return{type:v,jsonKey:Y}}function B(){return{type:s}}function N(){return{type:g}}function z(){return{type:d}}function K(Y){return{type:c,direction:Y}}function oe(Y,W){return{type:S,index:Y,setSuggestionToSearchField:W}}function ee(Y){return{type:m,hideAutomatically:Y}}},6843:function(b,l,n){n.d(l,{IJ:function(){return v},Ow:function(){return e},nb:function(){return o},np:function(){return p}});const v="SET_FIELD_STATS",o="CLEAR_FIELD_STATS";function e(C,u){return{type:v,fieldStats:C,callBy:u}}function p(){return{type:o}}},549:function(b,l,n){n.d(l,{CY:function(){return v},Gc:function(){return L},II:function(){return R},IS:function(){return g},JS:function(){return u},Ni:function(){return j},QW:function(){return s},Tv:function(){return m},Uj:function(){return o},VH:function(){return h},VN:function(){return C},XI:function(){return e},Xh:function(){return F},cl:function(){return a},eu:function(){return S},hx:function(){return B},jU:function(){return U},ks:function(){return T},u3:function(){return _},uR:function(){return p},ul:function(){return c},vj:function(){return d}});const v="TOGGLE_FILTER",o="SET_RANGE_FILTER",e="REGISTER_FILTER",p="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",u="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",s="TOGGLE_HIERARCHICAL_FACET_FILTER",g="TOGGLE_RANGE_FACET_FILTER",d="CLEAR_SELECTED_FILTERS_AND_FACETS",m="CLEAR_SELECTED_RANGE_FACETS";function c(N){return{type:e,filterObj:N}}function h(N,z,K){return{type:v,filterName:N,value:z,refreshSearch:K}}function _(N,z,K){return{type:o,field:N,from:z,to:K}}function S(N){return{type:p,json:N}}function F(N){return{type:C,json:N}}function T(N,z,K){return{type:u,json:N,refreshSearch:z,field:K}}function R(N,z,K){return{type:a,field:N,value:z,refreshSearch:K}}function j(N,z,K,oe,ee){return{type:s,field:N,container:z,confFields:K,value:oe,refreshSearch:ee}}function U(N,z,K,oe,ee){return{type:g,field:N,values:z,key:K,refreshSearch:oe,byActiveFilterComponent:ee}}function L(N,z){return{type:m,refreshSearch:N,setHistory:z}}function B(N,z){return{type:d,refreshSearch:N,byActiveFilterComponent:z}}},6993:function(b,l,n){n.d(l,{Ai:function(){return e},Le:function(){return o},QR:function(){return v},_T:function(){return p}});const v="KEYWORD",o="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,u,a,s){return{type:v,value:C,skipAutocomplete:u,searchFieldContainerId:a||null,setSearchFieldValue:s||!1}}function p(C){return{type:o,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,l,n){n.d(l,{I:function(){return e},N:function(){return o}});var v=n(4903);const o="SET_PAGE";function e(p,C,u,a){u===!1||p.getSettings().paging.page===C&&C!==1||(0,v.Dh)(v.sh.PAGE,C+"",null,a);const s=p.getSettings().paging;return p.setPaging(C,s.pageSize,s.sortBy,s.sortOrder),{type:o,page:C}}},878:function(b,l,n){n.d(l,{KE:function(){return p},OU:function(){return e},T7:function(){return u},iM:function(){return o},vh:function(){return C}}),n(9770),n(4903);var v=n(3007);const o="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",p="CLEAR_RECOMMENDATION";function C(a,s){return g=>{switch(s.type){case v.Qc:a.recommendations(s,d=>{var m;g((m=s.container,{type:o,container:m,recommendType:"frequently-bought-together",results:d}))});break;case v.uH:a.recommendations(s,d=>{var m;g((m=s.container,{type:e,container:m,recommendType:"related-items",results:d}))})}}}function u(){return{type:p}}},1944:function(b,l,n){n.d(l,{AX:function(){return d},EF:function(){return g},d3:function(){return p},j2:function(){return C},lq:function(){return m},mY:function(){return a},xE:function(){return u},y$:function(){return s}});var v=n(9770),o=n(4903),e=n(6351);const p="START",C="SET_SEARCH_RESULTS_PAGE_URL",u="SEARCH_FETCH_START",a="SEARCH_RESULTS",s="CLEAR_SEARCH_RESULTS";function g(c,h,_,S,F,T,R,j,U){return(0,o.Dh)(o.sh.SEARCH,h,F,T),h&&h!==""?(L,B)=>{const N=B().keyword.minLengthRequiredToFetch;F&&h.length<N||(L({type:u}),c.search(h,z=>{if((U||R)&&z&&z.hits&&z.hits.length){var K=(U||R).replace("custom_fields.",""),oe=function(ee,Y,W){return Y.find(Z=>{if(!Z.custom_fields||!Z.custom_fields[W])return!1;if(typeof Z.custom_fields[W]=="string")return ee.toLowerCase()===Z.custom_fields[W].toLowerCase();if(typeof Z.custom_fields[W]=="object"&&Z.custom_fields[W].length){const ce=Z.custom_fields[W].map(_e=>_e.toLowerCase()),ge=ee.toLowerCase();return ce.indexOf(ge)>-1}return!1})}(h,z.hits,K);if(oe&&!F)return void window.location.replace(oe.url)}L(function(ee,Y,W,Z,ce,ge){if(/top-delay-\d*$/.test(Z)){var _e=parseInt(Z.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},_e)}else Z==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(v.H)===-1){const Ce=W?W.total_hits:0,Ae=W?W.processing_time_ms:0;(0,e.mh)(ee,Y,Ce,Ae)}return{type:a,keyword:Y,results:W,appendResults:ce,requestBy:ge}}(c,h,z,_,S,j))}))}:{type:s}}function d(c){return c==="top"&&window.scrollTo(0,0),{type:s}}function m(c){return{type:C,url:c}}},4826:function(b,l,n){n.d(l,{JK:function(){return o},VD:function(){return e},l$:function(){return p},lD:function(){return v}});const v="SEGMENTED_SEARCH_START",o="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function p(C,u,a){return a&&a!==""?s=>{s(function(g){return{type:v,jsonKey:g}}(u)),C.search(a,g=>s(function(d,m,c){return{type:o,jsonKey:d,keyword:m,results:c}}(u,a,g)))}:{type:e}}},6353:function(b,l,n){n.d(l,{ER:function(){return e},O0:function(){return o},Ul:function(){return p}});var v=n(4903);const o="SORTBY",e="desc";function p(C,u,a,s){s&&(0,v.Dh)(v.sh.SORTBY,JSON.stringify({field:u,order:a}),null,s);const g=C.getSettings().paging;return C.setPaging(g.page,g.pageSize,u,a),{type:o,field:u,order:a}}},6510:function(b,l,n){n.d(l,{AUTOCOMPLETE_TYPE:function(){return F},A:function(){return S}});var v=n(2334),o=n.n(v),e=n(6148),p=n(1944),C=n(6993),u=n(4922),a=n(4379),s=n(6351),g=n(4903),d=n(3923),m=n(209),c=n.n(m),h=n(1543);function _(T,R,j){var U;return(R=typeof(U=function(L,B){if(typeof L!="object"||!L)return L;var N=L[Symbol.toPrimitive];if(N!==void 0){var z=N.call(L,B||"default");if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(L)}(R,"string"))=="symbol"?U:String(U))in T?Object.defineProperty(T,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):T[R]=j,T}class S{constructor(R,j,U,L){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=R,this.reduxStore=j,this.hasAiAnswers=U,this.conf=L,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const B=this.conf.categorySelectionFunction||d.GK;(0,d.g3)("selectSearchResultCategory",N=>B(N,this.conf.categoryAliases)),(0,a.A)(L.containerId)&&((0,u.G)(this.reduxStore,"autocomplete",N=>this.autocompleteResultsChanged(N)),(0,u.G)(this.reduxStore,"keyword",N=>this.keywordChanged(N))),L.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),L.sources&&L.sources.length&&L.sources.forEach(N=>{N.client&&N.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(R){if(R.dropRendering)return void this.clearRenderedHtml();const j=this.reduxStore.getState().keyword.value;R.pendingRequests.length>0||j.length<this.minLengthRequired||(R.keyword&&R.keyword!==""&&this.sendSearchAnalytics(R),this.render(R))}sendSearchAnalytics(R){let j=[];this.conf.sources.forEach(U=>{if(U.type===F.SEARCH&&U.collectSearchAnalytics){const L=U.client||this.client,B=R.searchResultsStats[U.jsonKey]?R.searchResultsStats[U.jsonKey].total_hits:0;j.push({client:L,numberOfResults:B})}}),(0,s.ME)(R.keyword,j)}keywordChanged(R){if(R.skipAutocomplete)return;const j=R.value;this.conf.sources.forEach(U=>{const L=U.client||this.client;if(U.type===F.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(L,j));else if(U.type===F.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(L,j,U.field));else if(U.type===F.SEARCH){const B=L.getSettings().paging;L.setPaging(1,B.pageSize,B.sortBy,B.sortOrder),this.reduxStore.dispatch((0,e.OA)(L,U.jsonKey,j,this.hasAiAnswers))}})}loadMore(R){this.conf.sources.forEach(j=>{const U=j.client;U&&j.type===F.SEARCH&&(U.nextPage(),this.reduxStore.dispatch((0,e.OA)(U,j.jsonKey,R,this.hasAiAnswers,!0)))})}render(R){if(R.visible===!1)return void this.clearRenderedHtml();const{suggestions:j,customFields:U,searchResults:L,activeSuggestionIndex:B}=R,N={activeSuggestionIndex:B,suggestions:j,customFields:U,searchResults:L};let z;if(z=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):c()(N),this.renderedHtml===z)return;const K=document.getElementById(this.conf.containerId);K.innerHTML=z,this.renderedHtml=z,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const oe=K.querySelector(".suggestions")?K.querySelectorAll(".suggestions > li"):[],ee=K.querySelectorAll(".suggestions");for(let Y=0;Y<oe.length;Y++)oe[Y].onmousedown=W=>this.suggestionMouseDown(W),ee.length<=1&&(oe[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(L[Object.keys(L)[0]]){const Y=K.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(Z=>{Z.type===F.SEARCH&&(W||(W=Z.client))}),W||(W=this.client),(0,s.$P)(W,Y,{hits:L[Object.keys(L)[0]]})}this.conf.infiniteScrollElement&&!R.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(K)}suggestionMouseDown(R){const j=R.target.getAttribute("data-keyword"),U=this.reduxStore;U.dispatch((0,e.dC)()),U.dispatch((0,C.Ai)(j,!0,null,!0));const L=U.getState().search.searchResultsPageUrl;L?(0,g.lG)(L,j):(U.dispatch((0,p.EF)(this.client,j,null,null,null,U)),this.hasAiAnswers&&U.dispatch((0,h.On)(this.client,j)))}suggestionMouseEnter(R){const j=parseInt(R.target.getAttribute("data-index"),10);j!==null&&j!==this.lastOnmouseOver&&(this.lastOnmouseOver=j,this.reduxStore.dispatch((0,e.XD)(j,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const R=this.conf.infiniteScrollElement;if(R.scrollHeight>0&&Math.ceil(R.offsetHeight+R.scrollTop)>=R.scrollHeight){const j=this.reduxStore.getState().keyword.value;this.loadMore(j)}}}}const F={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,l,n){n.d(l,{A:function(){return a},a:function(){return u}});var v=n(1944),o=n(5756),e=n(4922),p=n(4903),C=n(4826);function u(s,g,d){let m={and:[]};g&&m.and.push(g);let c={};s.allAvailableFilters.forEach(h=>{let _={or:[]};for(let S in h)s.activeFilters[S]&&!c[S]&&(_.or.push(h[S].filter),c[S]=!0);_.or.length>0&&m.and.push(_)});for(let h in s.activeRangeFilters)m.and.push({range:{[h]:Object.assign({},s.activeRangeFilters[h])}});for(let h in s.activeFacets){let _={or:[]};for(let S in s.activeFacets[h])if(h!==d){const F={};F[h]=S,_.or.push(F)}_.or.length>0&&m.and.push(_)}for(let h in s.activeHierarchicalFacets){let _={or:[]};for(let S in s.activeHierarchicalFacets[h])for(let F in s.activeHierarchicalFacets[h][S])if(!d||d.indexOf(S)===-1){const T={};T[S]=F,_.or.push(T)}_.or.length>0&&m.and.push(_)}for(let h in s.activeRangeFacets){let _={or:[]};for(let S in s.activeRangeFacets[h])if(h!==d){const F={range:{[h]:s.activeRangeFacets[h][S]}};_.or.push(F)}_.or.length>0&&m.and.push(_)}return m.and.length>0?m:{}}class a{constructor(g,d,m,c,h,_,S){this.client=g,this.reduxStore=d,this.createFilterObjectFunction=m,this.onFilterChange=c,this.onFilteredSearchRefresh=S,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",F=>this.onFilterStateChange(F,h))}onFilterStateChange(g,d){if(g.refreshSearch){(0,p.Dh)(p.sh.FILTERS,(0,p.IR)(g.activeFilters),null,this.reduxStore),(0,p.Dh)(p.sh.FACETS,(0,p.IR)(g.activeFacets),null,this.reduxStore),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore);const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m);const c=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,o.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,v.EF)(this.client,c,null,null,null,this.reduxStore,null,g.targetFacetGroup));for(let h in this.segmentedSearchClients){const _=this.createFilterObjectFunction(g,this.segmentedSearchClients[h].originalFilters);this.segmentedSearchClients[h].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[h].client,h,c))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(g.setHistory){const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(g.activeFilters)}}},9369:function(b,l,n){n.d(l,{FILTER_TYPE:function(){return L},A:function(){return U}});var v=n(2334),o=n.n(v),e=n(4922),p=n(549),C=n(6353),u=n(4379),a=n(3668),s=n.n(a),g=n(8810),d=n.n(g),m=n(5509),c=n.n(m),h=n(1572),_=n.n(h),S=n(948),F=n.n(S),T=n(3329),R=n.n(T);const j="nofilter";class U{constructor(N,z,K){this.client=N,this.reduxStore=z,this.conf=K,this.activeFilter=null,(0,u.A)(K.containerId)&&(this.reduxStore.dispatch((0,p.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",oe=>this.render(oe)),this.conf.type===L.RANGE&&(0,e.G)(this.reduxStore,"search",oe=>this.searchResultsChanged(oe)))}searchResultsChanged(N){!N.loading&&N.results.fieldStats&&N.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(N){let z=Object.assign({},this.conf);this.activeFilter=null;let K=!1;for(let W in z.options)N.activeFilters[W]?(z.options[W].active=!0,this.activeFilter=W,K=!0):z.options[W].active=!1;!K&&z.options&&z.options[j]&&(z.options[j].active=!0);let oe,ee=null;if(this.conf.type===L.TABS)ee=_();else if(this.conf.type===L.TAGS)ee=c();else if(this.conf.type===L.CHECKBOX_GROUP)ee=s();else if(this.conf.type===L.RADIO_GROUP)ee=d();else if(this.conf.type===L.RANGE){N.activeRangeFilters[this.conf.field]&&(z.from=N.activeRangeFilters[this.conf.field].gte,z.to=N.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:Z,max:ce}=W.fieldStats[this.conf.field];z.fromPlaceholder=Z==="Infinity"?"":Z,z.toPlaceholder=ce==="-Infinity"?"":ce}ee=R()}else ee=F();if(oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(z):this.conf.template?o().compile(this.conf.template)(z):ee(z),this.renderedHtml===oe)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=oe,this.renderedHtml=oe,this.conf.type===L.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===L.TABS){const W=Y.querySelectorAll("[data-filter]");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.getAttribute("data-filter")))}else if(this.conf.type===L.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.value))}else this.conf.type===L.RANGE?this.attachRangeFilterEvents(Y):(0,u.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,p.VH)(W,1))})}singleActiveChangeEvent(N){const z=N===j,K=this.reduxStore;N!==this.activeFilter&&(this.conf.setSorting&&K.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?K.dispatch((0,p.hx)(z)):this.activeFilter&&K.dispatch((0,p.VH)(this.activeFilter,1,z)),z?this.activeFilter=null:(this.activeFilter=N,K.dispatch((0,p.VH)(N,1,!0))))}attachRangeFilterEvents(N){const z=N.querySelectorAll("input");for(let oe=0;oe<z.length;oe++)z[oe].addEventListener("change",ee=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ee.target.value)?ee.target.setAttribute("data-valid","false"):(ee.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,N.querySelector('input[name="from"]').value,N.querySelector('input[name="to"]').value))});const K=N.querySelector("button");K&&K.addEventListener("click",oe=>this.reduxStore.dispatch((0,p.u3)(this.conf.field,null,null)))}rangeChangeEvent(N,z,K){const oe=z!==""?z:null,ee=K!==""?K:null;this.reduxStore.dispatch((0,p.u3)(N,oe,ee))}}const L={CHECKBOX_GROUP:"CHECKBOX_GROUP",RADIO_GROUP:"RADIO_GROUP",SELECT_LIST:"SELECT_LIST",RANGE:"RANGE",TABS:"TABS",TAGS:"TAGS"}},3816:function(b,l,n){n.d(l,{LOAD_MORE_TYPE:function(){return d},A:function(){return g}});var v=n(2334),o=n.n(v),e=n(5756),p=n(1944),C=n(4922),u=n(4379),a=n(8905),s=n.n(a);class g{constructor(c,h,_){this.client=c,this.reduxStore=h,this.conf=_,(0,u.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",S=>this.render(S)),_.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(c){const h=c.results.page||1,_=this.client.getSettings().paging.pageSize,S=c.results.total_hits||0,F=Math.ceil(S/_),T={type:this.conf.type,hasMorePages:h<F,isLoading:c.loading,totalHits:S};let R;if(R=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):this.conf.template?o().compile(this.conf.template)(T):s()(T),this.renderedHtml===R)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=R,this.renderedHtml=R,this.conf.type===d.BUTTON){const U=j.querySelector("button");U&&(U.onclick=L=>this.loadMore())}else this.conf.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&c.results.page===1&&!c.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const c=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,c,!1,this.reduxStore));const h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,h,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const c=this.reduxStore.getState().search.loading,h=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!c&&h)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,S=h.getBoundingClientRect().top;S>0&&S<_&&this.loadMore()}}}const d={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,l,n){n.d(l,{RANGE_FACETS_TYPE:function(){return R},A:function(){return T}});var v=n(2334),o=n.n(v),e=n(549),p=n(4922),C=n(4379),u=n(8526),a=n(6843);function s(j){var U=Math.ceil(Math.log10(j+1));if(U===1)return 0;var L=Math.pow(10,U-1);return Math.floor(j/L)*L}function g(j){var U=Math.ceil(Math.log10(j+1)),L=Math.pow(10,U-1);return Math.ceil(j/L)*L}var d=n(7435),m=n(6427),c=n.n(m),h=n(1204),_=n.n(h);function S(){let j,U;function L(oe,ee){oe&&(oe.textContent=ee)}function B(oe,ee){const[Y,W]=N(oe,ee);typeof j=="function"&&j({activeRange:[Y,W]})}function N(oe,ee){return[parseFloat(oe.value),parseFloat(ee.value)]}function z(oe,ee,Y,W,Z){const ce=ee.max-ee.min,ge=oe.value-ee.min,_e=ee.value-ee.min;Z.style.background=`linear-gradient(
|
|
46
|
+
*/(function(t){const i=Bn,f=xr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=n,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50;const E=2147483647;t.kMaxLength=E,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),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(O,y),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 y=new Uint8Array(O);return Object.setPrototypeOf(y,n.prototype),y}function n(O,y,w){if(typeof O=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(O)}return v(O,y,w)}n.poolSize=8192;function v(O,y,w){if(typeof O=="string")return C(O,y);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(Me(O,ArrayBuffer)||O&&Me(O.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(O,SharedArrayBuffer)||O&&Me(O.buffer,SharedArrayBuffer)))return s(O,y,w);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,y,w);const q=g(O);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof O[Symbol.toPrimitive]=="function")return n.from(O[Symbol.toPrimitive]("string"),y,w);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,y,w){return v(O,y,w)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function o(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,y,w){return o(O),O<=0?c(O):y!==void 0?typeof w=="string"?c(O).fill(y,w):c(O).fill(y):c(O)}n.alloc=function(O,y,w){return e(O,y,w)};function p(O){return o(O),c(O<0?0:d(O)|0)}n.allocUnsafe=function(O){return p(O)},n.allocUnsafeSlow=function(O){return p(O)};function C(O,y){if((typeof y!="string"||y==="")&&(y="utf8"),!n.isEncoding(y))throw new TypeError("Unknown encoding: "+y);const w=l(O,y)|0;let F=c(w);const q=F.write(O,y);return q!==w&&(F=F.slice(0,q)),F}function u(O){const y=O.length<0?0:d(O.length)|0,w=c(y);for(let F=0;F<y;F+=1)w[F]=O[F]&255;return w}function a(O){if(Me(O,Uint8Array)){const y=new Uint8Array(O);return s(y.buffer,y.byteOffset,y.byteLength)}return u(O)}function s(O,y,w){if(y<0||O.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(O.byteLength<y+(w||0))throw new RangeError('"length" is outside of buffer bounds');let F;return y===void 0&&w===void 0?F=new Uint8Array(O):w===void 0?F=new Uint8Array(O,y):F=new Uint8Array(O,y,w),Object.setPrototypeOf(F,n.prototype),F}function g(O){if(n.isBuffer(O)){const y=d(O.length)|0,w=c(y);return w.length===0||O.copy(w,0,0,y),w}if(O.length!==void 0)return typeof O.length!="number"||X(O.length)?c(0):u(O);if(O.type==="Buffer"&&Array.isArray(O.data))return u(O.data)}function d(O){if(O>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return O|0}function m(O){return+O!=O&&(O=0),n.alloc(+O)}n.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==n.prototype},n.compare=function(y,w){if(Me(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),Me(w,Uint8Array)&&(w=n.from(w,w.offset,w.byteLength)),!n.isBuffer(y)||!n.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===w)return 0;let F=y.length,q=w.length;for(let J=0,te=Math.min(F,q);J<te;++J)if(y[J]!==w[J]){F=y[J],q=w[J];break}return F<q?-1:q<F?1:0},n.isEncoding=function(y){switch(String(y).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(y,w){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return n.alloc(0);let F;if(w===void 0)for(w=0,F=0;F<y.length;++F)w+=y[F].length;const q=n.allocUnsafe(w);let J=0;for(F=0;F<y.length;++F){let te=y[F];if(Me(te,Uint8Array))J+te.length>q.length?(n.isBuffer(te)||(te=n.from(te)),te.copy(q,J)):Uint8Array.prototype.set.call(q,te,J);else if(n.isBuffer(te))te.copy(q,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return q};function l(O,y){if(n.isBuffer(O))return O.length;if(ArrayBuffer.isView(O)||Me(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 w=O.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&w===0)return 0;let q=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return Se(O).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return ve(O).length;default:if(q)return F?-1:Se(O).length;y=(""+y).toLowerCase(),q=!0}}n.byteLength=l;function h(O,y,w){let F=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,y>>>=0,w<=y))return"";for(O||(O="utf8");;)switch(O){case"hex":return Y(this,y,w);case"utf8":case"utf-8":return N(this,y,w);case"ascii":return oe(this,y,w);case"latin1":case"binary":return ee(this,y,w);case"base64":return B(this,y,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,y,w);default:if(F)throw new TypeError("Unknown encoding: "+O);O=(O+"").toLowerCase(),F=!0}}n.prototype._isBuffer=!0;function _(O,y,w){const F=O[y];O[y]=O[w],O[w]=F}n.prototype.swap16=function(){const y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let w=0;w<y;w+=2)_(this,w,w+1);return this},n.prototype.swap32=function(){const y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let w=0;w<y;w+=4)_(this,w,w+3),_(this,w+1,w+2);return this},n.prototype.swap64=function(){const y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let w=0;w<y;w+=8)_(this,w,w+7),_(this,w+1,w+6),_(this,w+2,w+5),_(this,w+3,w+4);return this},n.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?N(this,0,y):h.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(y){if(!n.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:n.compare(this,y)===0},n.prototype.inspect=function(){let y="";const w=t.INSPECT_MAX_BYTES;return y=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(y+=" ... "),"<Buffer "+y+">"},r&&(n.prototype[r]=n.prototype.inspect),n.prototype.compare=function(y,w,F,q,J){if(Me(y,Uint8Array)&&(y=n.from(y,y.offset,y.byteLength)),!n.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(w===void 0&&(w=0),F===void 0&&(F=y?y.length:0),q===void 0&&(q=0),J===void 0&&(J=this.length),w<0||F>y.length||q<0||J>this.length)throw new RangeError("out of range index");if(q>=J&&w>=F)return 0;if(q>=J)return-1;if(w>=F)return 1;if(w>>>=0,F>>>=0,q>>>=0,J>>>=0,this===y)return 0;let te=J-q,Te=F-w;const ze=Math.min(te,Te),Pe=this.slice(q,J),Ge=y.slice(w,F);for(let ge=0;ge<ze;++ge)if(Pe[ge]!==Ge[ge]){te=Pe[ge],Te=Ge[ge];break}return te<Te?-1:Te<te?1:0};function S(O,y,w,F,q){if(O.length===0)return-1;if(typeof w=="string"?(F=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,X(w)&&(w=q?0:O.length-1),w<0&&(w=O.length+w),w>=O.length){if(q)return-1;w=O.length-1}else if(w<0)if(q)w=0;else return-1;if(typeof y=="string"&&(y=n.from(y,F)),n.isBuffer(y))return y.length===0?-1:I(O,y,w,F,q);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(O,y,w):Uint8Array.prototype.lastIndexOf.call(O,y,w):I(O,[y],w,F,q);throw new TypeError("val must be string, number or Buffer")}function I(O,y,w,F,q){let J=1,te=O.length,Te=y.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(O.length<2||y.length<2)return-1;J=2,te/=2,Te/=2,w/=2}function ze(Ge,ge){return J===1?Ge[ge]:Ge.readUInt16BE(ge*J)}let Pe;if(q){let Ge=-1;for(Pe=w;Pe<te;Pe++)if(ze(O,Pe)===ze(y,Ge===-1?0:Pe-Ge)){if(Ge===-1&&(Ge=Pe),Pe-Ge+1===Te)return Ge*J}else Ge!==-1&&(Pe-=Pe-Ge),Ge=-1}else for(w+Te>te&&(w=te-Te),Pe=w;Pe>=0;Pe--){let Ge=!0;for(let ge=0;ge<Te;ge++)if(ze(O,Pe+ge)!==ze(y,ge)){Ge=!1;break}if(Ge)return Pe}return-1}n.prototype.includes=function(y,w,F){return this.indexOf(y,w,F)!==-1},n.prototype.indexOf=function(y,w,F){return S(this,y,w,F,!0)},n.prototype.lastIndexOf=function(y,w,F){return S(this,y,w,F,!1)};function T(O,y,w,F){w=Number(w)||0;const q=O.length-w;F?(F=Number(F),F>q&&(F=q)):F=q;const J=y.length;F>J/2&&(F=J/2);let te;for(te=0;te<F;++te){const Te=parseInt(y.substr(te*2,2),16);if(X(Te))return te;O[w+te]=Te}return te}function A(O,y,w,F){return be(Se(y,O.length-w),O,w,F)}function j(O,y,w,F){return be(Ae(y),O,w,F)}function U(O,y,w,F){return be(ve(y),O,w,F)}function L(O,y,w,F){return be(me(y,O.length-w),O,w,F)}n.prototype.write=function(y,w,F,q){if(w===void 0)q="utf8",F=this.length,w=0;else if(F===void 0&&typeof w=="string")q=w,F=this.length,w=0;else if(isFinite(w))w=w>>>0,isFinite(F)?(F=F>>>0,q===void 0&&(q="utf8")):(q=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-w;if((F===void 0||F>J)&&(F=J),y.length>0&&(F<0||w<0)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");let te=!1;for(;;)switch(q){case"hex":return T(this,y,w,F);case"utf8":case"utf-8":return A(this,y,w,F);case"ascii":case"latin1":case"binary":return j(this,y,w,F);case"base64":return U(this,y,w,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,y,w,F);default:if(te)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),te=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(O,y,w){return y===0&&w===O.length?i.fromByteArray(O):i.fromByteArray(O.slice(y,w))}function N(O,y,w){w=Math.min(O.length,w);const F=[];let q=y;for(;q<w;){const J=O[q];let te=null,Te=J>239?4:J>223?3:J>191?2:1;if(q+Te<=w){let ze,Pe,Ge,ge;switch(Te){case 1:J<128&&(te=J);break;case 2:ze=O[q+1],(ze&192)===128&&(ge=(J&31)<<6|ze&63,ge>127&&(te=ge));break;case 3:ze=O[q+1],Pe=O[q+2],(ze&192)===128&&(Pe&192)===128&&(ge=(J&15)<<12|(ze&63)<<6|Pe&63,ge>2047&&(ge<55296||ge>57343)&&(te=ge));break;case 4:ze=O[q+1],Pe=O[q+2],Ge=O[q+3],(ze&192)===128&&(Pe&192)===128&&(Ge&192)===128&&(ge=(J&15)<<18|(ze&63)<<12|(Pe&63)<<6|Ge&63,ge>65535&&ge<1114112&&(te=ge))}}te===null?(te=65533,Te=1):te>65535&&(te-=65536,F.push(te>>>10&1023|55296),te=56320|te&1023),F.push(te),q+=Te}return G(F)}const z=4096;function G(O){const y=O.length;if(y<=z)return String.fromCharCode.apply(String,O);let w="",F=0;for(;F<y;)w+=String.fromCharCode.apply(String,O.slice(F,F+=z));return w}function oe(O,y,w){let F="";w=Math.min(O.length,w);for(let q=y;q<w;++q)F+=String.fromCharCode(O[q]&127);return F}function ee(O,y,w){let F="";w=Math.min(O.length,w);for(let q=y;q<w;++q)F+=String.fromCharCode(O[q]);return F}function Y(O,y,w){const F=O.length;(!y||y<0)&&(y=0),(!w||w<0||w>F)&&(w=F);let q="";for(let J=y;J<w;++J)q+=le[O[J]];return q}function W(O,y,w){const F=O.slice(y,w);let q="";for(let J=0;J<F.length-1;J+=2)q+=String.fromCharCode(F[J]+F[J+1]*256);return q}n.prototype.slice=function(y,w){const F=this.length;y=~~y,w=w===void 0?F:~~w,y<0?(y+=F,y<0&&(y=0)):y>F&&(y=F),w<0?(w+=F,w<0&&(w=0)):w>F&&(w=F),w<y&&(w=y);const q=this.subarray(y,w);return Object.setPrototypeOf(q,n.prototype),q};function Z(O,y,w){if(O%1!==0||O<0)throw new RangeError("offset is not uint");if(O+y>w)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUintLE=n.prototype.readUIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y],J=1,te=0;for(;++te<w&&(J*=256);)q+=this[y+te]*J;return q},n.prototype.readUintBE=n.prototype.readUIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y+--w],J=1;for(;w>0&&(J*=256);)q+=this[y+--w]*J;return q},n.prototype.readUint8=n.prototype.readUInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]},n.prototype.readUint16LE=n.prototype.readUInt16LE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]|this[y+1]<<8},n.prototype.readUint16BE=n.prototype.readUInt16BE=function(y,w){return y=y>>>0,w||Z(y,2,this.length),this[y]<<8|this[y+1]},n.prototype.readUint32LE=n.prototype.readUInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},n.prototype.readUint32BE=n.prototype.readUInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},n.prototype.readBigUInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24,J=this[++y]+this[++y]*2**8+this[++y]*2**16+F*2**24;return BigInt(q)+(BigInt(J)<<BigInt(32))}),n.prototype.readBigUInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=w*2**24+this[++y]*2**16+this[++y]*2**8+this[++y],J=this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F;return(BigInt(q)<<BigInt(32))+BigInt(J)}),n.prototype.readIntLE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=this[y],J=1,te=0;for(;++te<w&&(J*=256);)q+=this[y+te]*J;return J*=128,q>=J&&(q-=Math.pow(2,8*w)),q},n.prototype.readIntBE=function(y,w,F){y=y>>>0,w=w>>>0,F||Z(y,w,this.length);let q=w,J=1,te=this[y+--q];for(;q>0&&(J*=256);)te+=this[y+--q]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*w)),te},n.prototype.readInt8=function(y,w){return y=y>>>0,w||Z(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},n.prototype.readInt16LE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y]|this[y+1]<<8;return F&32768?F|4294901760:F},n.prototype.readInt16BE=function(y,w){y=y>>>0,w||Z(y,2,this.length);const F=this[y+1]|this[y]<<8;return F&32768?F|4294901760:F},n.prototype.readInt32LE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},n.prototype.readInt32BE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},n.prototype.readBigInt64LE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=this[y+4]+this[y+5]*2**8+this[y+6]*2**16+(F<<24);return(BigInt(q)<<BigInt(32))+BigInt(w+this[++y]*2**8+this[++y]*2**16+this[++y]*2**24)}),n.prototype.readBigInt64BE=ie(function(y){y=y>>>0,H(y,"offset");const w=this[y],F=this[y+7];(w===void 0||F===void 0)&&se(y,this.length-8);const q=(w<<24)+this[++y]*2**16+this[++y]*2**8+this[++y];return(BigInt(q)<<BigInt(32))+BigInt(this[++y]*2**24+this[++y]*2**16+this[++y]*2**8+F)}),n.prototype.readFloatLE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!0,23,4)},n.prototype.readFloatBE=function(y,w){return y=y>>>0,w||Z(y,4,this.length),f.read(this,y,!1,23,4)},n.prototype.readDoubleLE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!0,52,8)},n.prototype.readDoubleBE=function(y,w){return y=y>>>0,w||Z(y,8,this.length),f.read(this,y,!1,52,8)};function ce(O,y,w,F,q,J){if(!n.isBuffer(O))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>q||y<J)throw new RangeError('"value" argument is out of bounds');if(w+F>O.length)throw new RangeError("Index out of range")}n.prototype.writeUintLE=n.prototype.writeUIntLE=function(y,w,F,q){if(y=+y,w=w>>>0,F=F>>>0,!q){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=1,te=0;for(this[w]=y&255;++te<F&&(J*=256);)this[w+te]=y/J&255;return w+F},n.prototype.writeUintBE=n.prototype.writeUIntBE=function(y,w,F,q){if(y=+y,w=w>>>0,F=F>>>0,!q){const Te=Math.pow(2,8*F)-1;ce(this,y,w,F,Te,0)}let J=F-1,te=1;for(this[w+J]=y&255;--J>=0&&(te*=256);)this[w+J]=y/te&255;return w+F},n.prototype.writeUint8=n.prototype.writeUInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,255,0),this[w]=y&255,w+1},n.prototype.writeUint16LE=n.prototype.writeUInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeUint16BE=n.prototype.writeUInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,65535,0),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeUint32LE=n.prototype.writeUInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w+3]=y>>>24,this[w+2]=y>>>16,this[w+1]=y>>>8,this[w]=y&255,w+4},n.prototype.writeUint32BE=n.prototype.writeUInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,4294967295,0),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4};function ye(O,y,w,F,q){V(y,F,q,O,w,7);let J=Number(y&BigInt(4294967295));O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J,J=J>>8,O[w++]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,te=te>>8,O[w++]=te,w}function _e(O,y,w,F,q){V(y,F,q,O,w,7);let J=Number(y&BigInt(4294967295));O[w+7]=J,J=J>>8,O[w+6]=J,J=J>>8,O[w+5]=J,J=J>>8,O[w+4]=J;let te=Number(y>>BigInt(32)&BigInt(4294967295));return O[w+3]=te,te=te>>8,O[w+2]=te,te=te>>8,O[w+1]=te,te=te>>8,O[w]=te,w+8}n.prototype.writeBigUInt64LE=ie(function(y,w=0){return ye(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeBigUInt64BE=ie(function(y,w=0){return _e(this,y,w,BigInt(0),BigInt("0xffffffffffffffff"))}),n.prototype.writeIntLE=function(y,w,F,q){if(y=+y,w=w>>>0,!q){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=0,te=1,Te=0;for(this[w]=y&255;++J<F&&(te*=256);)y<0&&Te===0&&this[w+J-1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeIntBE=function(y,w,F,q){if(y=+y,w=w>>>0,!q){const ze=Math.pow(2,8*F-1);ce(this,y,w,F,ze-1,-ze)}let J=F-1,te=1,Te=0;for(this[w+J]=y&255;--J>=0&&(te*=256);)y<0&&Te===0&&this[w+J+1]!==0&&(Te=1),this[w+J]=(y/te>>0)-Te&255;return w+F},n.prototype.writeInt8=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,1,127,-128),y<0&&(y=255+y+1),this[w]=y&255,w+1},n.prototype.writeInt16LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y&255,this[w+1]=y>>>8,w+2},n.prototype.writeInt16BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,2,32767,-32768),this[w]=y>>>8,this[w+1]=y&255,w+2},n.prototype.writeInt32LE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),this[w]=y&255,this[w+1]=y>>>8,this[w+2]=y>>>16,this[w+3]=y>>>24,w+4},n.prototype.writeInt32BE=function(y,w,F){return y=+y,w=w>>>0,F||ce(this,y,w,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[w]=y>>>24,this[w+1]=y>>>16,this[w+2]=y>>>8,this[w+3]=y&255,w+4},n.prototype.writeBigInt64LE=ie(function(y,w=0){return ye(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),n.prototype.writeBigInt64BE=ie(function(y,w=0){return _e(this,y,w,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ce(O,y,w,F,q,J){if(w+F>O.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function Re(O,y,w,F,q){return y=+y,w=w>>>0,q||Ce(O,y,w,4),f.write(O,y,w,F,23,4),w+4}n.prototype.writeFloatLE=function(y,w,F){return Re(this,y,w,!0,F)},n.prototype.writeFloatBE=function(y,w,F){return Re(this,y,w,!1,F)};function Ue(O,y,w,F,q){return y=+y,w=w>>>0,q||Ce(O,y,w,8),f.write(O,y,w,F,52,8),w+8}n.prototype.writeDoubleLE=function(y,w,F){return Ue(this,y,w,!0,F)},n.prototype.writeDoubleBE=function(y,w,F){return Ue(this,y,w,!1,F)},n.prototype.copy=function(y,w,F,q){if(!n.isBuffer(y))throw new TypeError("argument should be a Buffer");if(F||(F=0),!q&&q!==0&&(q=this.length),w>=y.length&&(w=y.length),w||(w=0),q>0&&q<F&&(q=F),q===F||y.length===0||this.length===0)return 0;if(w<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),y.length-w<q-F&&(q=y.length-w+F);const J=q-F;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(w,F,q):Uint8Array.prototype.set.call(y,this.subarray(F,q),w),J},n.prototype.fill=function(y,w,F,q){if(typeof y=="string"){if(typeof w=="string"?(q=w,w=0,F=this.length):typeof F=="string"&&(q=F,F=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!n.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(y.length===1){const te=y.charCodeAt(0);(q==="utf8"&&te<128||q==="latin1")&&(y=te)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(w<0||this.length<w||this.length<F)throw new RangeError("Out of range index");if(F<=w)return this;w=w>>>0,F=F===void 0?this.length:F>>>0,y||(y=0);let J;if(typeof y=="number")for(J=w;J<F;++J)this[J]=y;else{const te=n.isBuffer(y)?y:n.from(y,q),Te=te.length;if(Te===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(J=0;J<F-w;++J)this[J+w]=te[J%Te]}return this};const Ie={};function Ke(O,y,w){Ie[O]=class extends w{constructor(){super(),Object.defineProperty(this,"message",{value:y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${O}]`,this.stack,delete this.name}get code(){return O}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,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,y){return`The "${O}" argument must be of type number. Received type ${typeof y}`},TypeError),Ke("ERR_OUT_OF_RANGE",function(O,y,w){let F=`The value of "${O}" is out of range.`,q=w;return Number.isInteger(w)&&Math.abs(w)>2**32?q=Ne(String(w)):typeof w=="bigint"&&(q=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(q=Ne(q)),q+="n"),F+=` It must be ${y}. Received ${q}`,F},RangeError);function Ne(O){let y="",w=O.length;const F=O[0]==="-"?1:0;for(;w>=F+4;w-=3)y=`_${O.slice(w-3,w)}${y}`;return`${O.slice(0,w)}${y}`}function We(O,y,w){H(y,"offset"),(O[y]===void 0||O[y+w]===void 0)&&se(y,O.length-(w+1))}function V(O,y,w,F,q,J){if(O>w||O<y){const te=typeof y=="bigint"?"n":"";let Te;throw y===0||y===BigInt(0)?Te=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Te=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`,new Ie.ERR_OUT_OF_RANGE("value",Te,O)}We(F,q,J)}function H(O,y){if(typeof O!="number")throw new Ie.ERR_INVALID_ARG_TYPE(y,"number",O)}function se(O,y,w){throw Math.floor(O)!==O?(H(O,w),new Ie.ERR_OUT_OF_RANGE("offset","an integer",O)):y<0?new Ie.ERR_BUFFER_OUT_OF_BOUNDS:new Ie.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${y}`,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,y){y=y||1/0;let w;const F=O.length;let q=null;const J=[];for(let te=0;te<F;++te){if(w=O.charCodeAt(te),w>55295&&w<57344){if(!q){if(w>56319){(y-=3)>-1&&J.push(239,191,189);continue}else if(te+1===F){(y-=3)>-1&&J.push(239,191,189);continue}q=w;continue}if(w<56320){(y-=3)>-1&&J.push(239,191,189),q=w;continue}w=(q-55296<<10|w-56320)+65536}else q&&(y-=3)>-1&&J.push(239,191,189);if(q=null,w<128){if((y-=1)<0)break;J.push(w)}else if(w<2048){if((y-=2)<0)break;J.push(w>>6|192,w&63|128)}else if(w<65536){if((y-=3)<0)break;J.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((y-=4)<0)break;J.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return J}function Ae(O){const y=[];for(let w=0;w<O.length;++w)y.push(O.charCodeAt(w)&255);return y}function me(O,y){let w,F,q;const J=[];for(let te=0;te<O.length&&!((y-=2)<0);++te)w=O.charCodeAt(te),F=w>>8,q=w%256,J.push(q),J.push(F);return J}function ve(O){return i.toByteArray(we(O))}function be(O,y,w,F){let q;for(q=0;q<F&&!(q+w>=y.length||q>=O.length);++q)y[q+w]=O[q];return q}function Me(O,y){return O instanceof y||O!=null&&O.constructor!=null&&O.constructor.name!=null&&O.constructor.name===y.name}function X(O){return O!==O}const le=function(){const O="0123456789abcdef",y=new Array(256);for(let w=0;w<16;++w){const F=w*16;for(let q=0;q<16;++q)y[F+q]=O[w]+O[q]}return y}();function ie(O){return typeof BigInt>"u"?he:O}function he(){throw new Error("BigInt not supported")}})(Ni);var Bi={},br={};Object.defineProperty(br,"__esModule",{value:!0}),br.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.default="00000000-0000-0000-0000-000000000000";var Kt={},Wt={},Sr={};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.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(Wt,"__esModule",{value:!0});const sa=Sr;function aa(t){return typeof t=="string"&&sa.default.test(t)}Wt.default=aa,Object.defineProperty(Kt,"__esModule",{value:!0});const la=Wt;function ca(t){if(!(0,la.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)}Kt.default=ca;var gt={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.unsafeStringify=void 0;const ua=Wt,tt=[];for(let t=0;t<256;++t)tt.push((t+256).toString(16).slice(1));function Di(t,i=0){return(tt[t[i+0]]+tt[t[i+1]]+tt[t[i+2]]+tt[t[i+3]]+"-"+tt[t[i+4]]+tt[t[i+5]]+"-"+tt[t[i+6]]+tt[t[i+7]]+"-"+tt[t[i+8]]+tt[t[i+9]]+"-"+tt[t[i+10]]+tt[t[i+11]]+tt[t[i+12]]+tt[t[i+13]]+tt[t[i+14]]+tt[t[i+15]]).toLowerCase()}gt.unsafeStringify=Di;function ha(t,i=0){const f=Di(t,i);if(!(0,ua.default)(f))throw TypeError("Stringified UUID is invalid");return f}gt.default=ha;var Jt={},an={};Object.defineProperty(an,"__esModule",{value:!0});let Er;const fa=new Uint8Array(16);function da(){if(!Er){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Er=crypto.getRandomValues.bind(crypto)}return Er(fa)}an.default=da,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.updateV1State=void 0;const Hi=an,pa=gt,ln={};function ma(t,i,f){var b;let r;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)r=$i(t.random??((b=t.rng)==null?void 0:b.call(t))??(0,Hi.default)(),t.msecs,t.nsecs,t.clockseq,t.node,i,f);else{const c=Date.now(),n=(0,Hi.default)();Ui(ln,c,n),r=$i(n,ln.msecs,ln.nsecs,E?void 0:ln.clockseq,E?void 0:ln.node,i,f)}return i?r:(0,pa.unsafeStringify)(r)}function Ui(t,i,f){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=f.slice(10,16),t.node[0]|=1,t.clockseq=(f[8]<<8|f[9])&16383),t.msecs=i,t}Jt.updateV1State=Ui;function $i(t,i,f,r,E,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()),f??(f=0),r??(r=(t[8]<<8|t[9])&16383),E??(E=t.slice(10,16)),i+=122192928e5;const n=((i&268435455)*1e4+f)%4294967296;b[c++]=n>>>24&255,b[c++]=n>>>16&255,b[c++]=n>>>8&255,b[c++]=n&255;const v=i/4294967296*1e4&268435455;b[c++]=v>>>8&255,b[c++]=v&255,b[c++]=v>>>24&15|16,b[c++]=v>>>16&255,b[c++]=r>>>8|128,b[c++]=r&255;for(let o=0;o<6;++o)b[c++]=E[o];return b}Jt.default=ma;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const ga=Kt,ya=gt;function va(t){const i=typeof t=="string"?(0,ga.default)(t):t,f=xa(i);return typeof t=="string"?(0,ya.unsafeStringify)(f):f}Dn.default=va;function xa(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={},kr={};Object.defineProperty(kr,"__esModule",{value:!0});function ba(t){const i=Ea(t),f=Sa(i,t.length*8);return wa(f)}function wa(t){const i=new Uint8Array(t.length*4);for(let f=0;f<t.length*4;f++)i[f]=t[f>>2]>>>f%4*8&255;return i}function zi(t){return(t+64>>>9<<4)+14+1}function Sa(t,i){const f=new Uint32Array(zi(i)).fill(0);f.set(t),f[i>>5]|=128<<i%32,f[f.length-1]=i,t=f;let r=1732584193,E=-271733879,b=-1732584194,c=271733878;for(let n=0;n<t.length;n+=16){const v=r,o=E,e=b,p=c;r=it(r,E,b,c,t[n],7,-680876936),c=it(c,r,E,b,t[n+1],12,-389564586),b=it(b,c,r,E,t[n+2],17,606105819),E=it(E,b,c,r,t[n+3],22,-1044525330),r=it(r,E,b,c,t[n+4],7,-176418897),c=it(c,r,E,b,t[n+5],12,1200080426),b=it(b,c,r,E,t[n+6],17,-1473231341),E=it(E,b,c,r,t[n+7],22,-45705983),r=it(r,E,b,c,t[n+8],7,1770035416),c=it(c,r,E,b,t[n+9],12,-1958414417),b=it(b,c,r,E,t[n+10],17,-42063),E=it(E,b,c,r,t[n+11],22,-1990404162),r=it(r,E,b,c,t[n+12],7,1804603682),c=it(c,r,E,b,t[n+13],12,-40341101),b=it(b,c,r,E,t[n+14],17,-1502002290),E=it(E,b,c,r,t[n+15],22,1236535329),r=ot(r,E,b,c,t[n+1],5,-165796510),c=ot(c,r,E,b,t[n+6],9,-1069501632),b=ot(b,c,r,E,t[n+11],14,643717713),E=ot(E,b,c,r,t[n],20,-373897302),r=ot(r,E,b,c,t[n+5],5,-701558691),c=ot(c,r,E,b,t[n+10],9,38016083),b=ot(b,c,r,E,t[n+15],14,-660478335),E=ot(E,b,c,r,t[n+4],20,-405537848),r=ot(r,E,b,c,t[n+9],5,568446438),c=ot(c,r,E,b,t[n+14],9,-1019803690),b=ot(b,c,r,E,t[n+3],14,-187363961),E=ot(E,b,c,r,t[n+8],20,1163531501),r=ot(r,E,b,c,t[n+13],5,-1444681467),c=ot(c,r,E,b,t[n+2],9,-51403784),b=ot(b,c,r,E,t[n+7],14,1735328473),E=ot(E,b,c,r,t[n+12],20,-1926607734),r=st(r,E,b,c,t[n+5],4,-378558),c=st(c,r,E,b,t[n+8],11,-2022574463),b=st(b,c,r,E,t[n+11],16,1839030562),E=st(E,b,c,r,t[n+14],23,-35309556),r=st(r,E,b,c,t[n+1],4,-1530992060),c=st(c,r,E,b,t[n+4],11,1272893353),b=st(b,c,r,E,t[n+7],16,-155497632),E=st(E,b,c,r,t[n+10],23,-1094730640),r=st(r,E,b,c,t[n+13],4,681279174),c=st(c,r,E,b,t[n],11,-358537222),b=st(b,c,r,E,t[n+3],16,-722521979),E=st(E,b,c,r,t[n+6],23,76029189),r=st(r,E,b,c,t[n+9],4,-640364487),c=st(c,r,E,b,t[n+12],11,-421815835),b=st(b,c,r,E,t[n+15],16,530742520),E=st(E,b,c,r,t[n+2],23,-995338651),r=at(r,E,b,c,t[n],6,-198630844),c=at(c,r,E,b,t[n+7],10,1126891415),b=at(b,c,r,E,t[n+14],15,-1416354905),E=at(E,b,c,r,t[n+5],21,-57434055),r=at(r,E,b,c,t[n+12],6,1700485571),c=at(c,r,E,b,t[n+3],10,-1894986606),b=at(b,c,r,E,t[n+10],15,-1051523),E=at(E,b,c,r,t[n+1],21,-2054922799),r=at(r,E,b,c,t[n+8],6,1873313359),c=at(c,r,E,b,t[n+15],10,-30611744),b=at(b,c,r,E,t[n+6],15,-1560198380),E=at(E,b,c,r,t[n+13],21,1309151649),r=at(r,E,b,c,t[n+4],6,-145523070),c=at(c,r,E,b,t[n+11],10,-1120210379),b=at(b,c,r,E,t[n+2],15,718787259),E=at(E,b,c,r,t[n+9],21,-343485551),r=It(r,v),E=It(E,o),b=It(b,e),c=It(c,p)}return Uint32Array.of(r,E,b,c)}function Ea(t){if(t.length===0)return new Uint32Array;const i=new Uint32Array(zi(t.length*8)).fill(0);for(let f=0;f<t.length;f++)i[f>>2]|=(t[f]&255)<<f%4*8;return i}function It(t,i){const f=(t&65535)+(i&65535);return(t>>16)+(i>>16)+(f>>16)<<16|f&65535}function ka(t,i){return t<<i|t>>>32-i}function Hn(t,i,f,r,E,b){return It(ka(It(It(i,t),It(r,b)),E),f)}function it(t,i,f,r,E,b,c){return Hn(i&f|~i&r,t,i,E,b,c)}function ot(t,i,f,r,E,b,c){return Hn(i&r|f&~r,t,i,E,b,c)}function st(t,i,f,r,E,b,c){return Hn(i^f^r,t,i,E,b,c)}function at(t,i,f,r,E,b,c){return Hn(f^(i|~r),t,i,E,b,c)}kr.default=ba;var yt={};Object.defineProperty(yt,"__esModule",{value:!0}),yt.URL=yt.DNS=yt.stringToBytes=void 0;const Vi=Kt,_a=gt;function Gi(t){t=unescape(encodeURIComponent(t));const i=new Uint8Array(t.length);for(let f=0;f<t.length;++f)i[f]=t.charCodeAt(f);return i}yt.stringToBytes=Gi,yt.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",yt.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ca(t,i,f,r,E,b){const c=typeof f=="string"?Gi(f):f,n=typeof r=="string"?(0,Vi.default)(r):r;if(typeof r=="string"&&(r=(0,Vi.default)(r)),(r==null?void 0:r.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+c.length);if(v.set(n),v.set(c,n.length),v=i(v),v[6]=v[6]&15|t,v[8]=v[8]&63|128,E){b=b||0;for(let o=0;o<16;++o)E[b+o]=v[o];return E}return(0,_a.unsafeStringify)(v)}yt.default=Ca,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=kr,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(48,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(qi);var _r={},Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const Oa=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Cr.default={randomUUID:Oa},Object.defineProperty(_r,"__esModule",{value:!0});const Ki=Cr,Ra=an,Aa=gt;function Ta(t,i,f){var E;if(Ki.default.randomUUID&&!i&&!t)return Ki.default.randomUUID();t=t||{};const r=t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ra.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,i){if(f=f||0,f<0||f+16>i.length)throw new RangeError(`UUID byte range ${f}:${f+15} is out of buffer bounds`);for(let b=0;b<16;++b)i[f+b]=r[b];return i}return(0,Aa.unsafeStringify)(r)}_r.default=Ta;var Wi={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});function Pa(t,i,f,r){switch(t){case 0:return i&f^~i&r;case 1:return i^f^r;case 2:return i&f^i&r^f&r;case 3:return i^f^r}}function Rr(t,i){return t<<i|t>>>32-i}function Ia(t){const i=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(t.length+1);r.set(t),r[t.length]=128,t=r;const E=t.length/4+2,b=Math.ceil(E/16),c=new Array(b);for(let n=0;n<b;++n){const v=new Uint32Array(16);for(let o=0;o<16;++o)v[o]=t[n*64+o*4]<<24|t[n*64+o*4+1]<<16|t[n*64+o*4+2]<<8|t[n*64+o*4+3];c[n]=v}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 v=new Uint32Array(80);for(let a=0;a<16;++a)v[a]=c[n][a];for(let a=16;a<80;++a)v[a]=Rr(v[a-3]^v[a-8]^v[a-14]^v[a-16],1);let o=f[0],e=f[1],p=f[2],C=f[3],u=f[4];for(let a=0;a<80;++a){const s=Math.floor(a/20),g=Rr(o,5)+Pa(s,e,p,C)+u+i[s]+v[a]>>>0;u=C,C=p,p=Rr(e,30)>>>0,e=o,o=g}f[0]=f[0]+o>>>0,f[1]=f[1]+e>>>0,f[2]=f[2]+p>>>0,f[3]=f[3]+C>>>0,f[4]=f[4]+u>>>0}return Uint8Array.of(f[0]>>24,f[0]>>16,f[0]>>8,f[0],f[1]>>24,f[1]>>16,f[1]>>8,f[1],f[2]>>24,f[2]>>16,f[2]>>8,f[2],f[3]>>24,f[3]>>16,f[3]>>8,f[3],f[4]>>24,f[4]>>16,f[4]>>8,f[4])}Or.default=Ia,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;const i=Or,f=yt;var r=yt;Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return r.URL}});function E(b,c,n,v){return(0,f.default)(80,i.default,b,c,n,v)}E.DNS=f.DNS,E.URL=f.URL,t.default=E}(Wi);var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});const Fa=gt,La=Jt,ja=Dn;function Na(t,i,f){t??(t={}),f??(f=0);let r=(0,La.default)({...t,_v6:!0},new Uint8Array(16));if(r=(0,ja.default)(r),i){for(let E=0;E<16;E++)i[f+E]=r[E];return i}return(0,Fa.unsafeStringify)(r)}Ar.default=Na;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ma=Kt,Ba=gt;function Da(t){const i=typeof t=="string"?(0,Ma.default)(t):t,f=Ha(i);return typeof t=="string"?(0,Ba.unsafeStringify)(f):f}Tr.default=Da;function Ha(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 cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.updateV7State=void 0;const Ji=an,Ua=gt,Pr={};function $a(t,i,f){var E;let r;if(t)r=Qi(t.random??((E=t.rng)==null?void 0:E.call(t))??(0,Ji.default)(),t.msecs,t.seq,i,f);else{const b=Date.now(),c=(0,Ji.default)();Yi(Pr,b,c),r=Qi(c,Pr.msecs,Pr.seq,i,f)}return i?r:(0,Ua.unsafeStringify)(r)}function Yi(t,i,f){return t.msecs??(t.msecs=-1/0),t.seq??(t.seq=0),i>t.msecs?(t.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],t.msecs=i):(t.seq=t.seq+1|0,t.seq===0&&t.msecs++),t}cn.updateV7State=Yi;function Qi(t,i,f,r,E=0){if(t.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),E=0;else if(E<0||E+16>r.length)throw new RangeError(`UUID byte range ${E}:${E+15} is out of buffer bounds`);return i??(i=Date.now()),f??(f=t[6]*127<<24|t[7]<<16|t[8]<<8|t[9]),r[E++]=i/1099511627776&255,r[E++]=i/4294967296&255,r[E++]=i/16777216&255,r[E++]=i/65536&255,r[E++]=i/256&255,r[E++]=i&255,r[E++]=112|f>>>28&15,r[E++]=f>>>20&255,r[E++]=128|f>>>14&63,r[E++]=f>>>6&255,r[E++]=f<<2&255|t[10]&3,r[E++]=t[11],r[E++]=t[12],r[E++]=t[13],r[E++]=t[14],r[E++]=t[15],r}cn.default=$a;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});const qa=Wt;function za(t){if(!(0,qa.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}Ir.default=za,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=br;Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return i.default}});var f=wr;Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return f.default}});var r=Kt;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.default}});var E=gt;Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return E.default}});var b=Jt;Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return b.default}});var c=Dn;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 v=_r;Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return v.default}});var o=Wi;Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}});var e=Ar;Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return e.default}});var p=Tr;Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var C=cn;Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return C.default}});var u=Wt;Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}});var a=Ir;Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}})}(Bi),Object.defineProperty(ut,"__esModule",{value:!0}),ut.isEmptyObject=ut.generateUUID=ut.validateSetPagingParams=ut.base64=ut.isFunction=void 0;const Zi=Ni,Va=Bi,Ga=t=>typeof t=="function";ut.isFunction=Ga;const Ka=t=>{if(typeof window<"u"&&window.btoa)return window.btoa(t);if(Zi.Buffer)return Zi.Buffer.from(t).toString("base64")};ut.base64=Ka;const Wa=(t,i,f,r)=>{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(!f||!r)throw new Error("Invalid values for sortBy or sortOrder:");if(!(typeof f=="string"&&typeof r=="string"||Array.isArray(f)&&Array.isArray(r)))throw new Error("sortBy and sortOrder must have the same type: string or Array");if(Array.isArray(f)&&f.length!==r.length)throw new Error("sortBy and sortOrder must have the same size");if(typeof r=="string"&&r!=="asc"&&r!=="desc")throw new Error("sortOrder must be asc or desc");if(Array.isArray(r)&&r.some(E=>E!=="desc"&&E!=="asc"))throw new Error("All values of sortOrder array must be asc or desc")};ut.validateSetPagingParams=Wa;const Ja=()=>(0,Va.v4)().replace(/-/g,"");ut.generateUUID=Ja;const Ya=t=>t==null||Array.isArray(t)||Object.prototype.toString.call(t)!=="[object Object]"?!0:Object.keys(t).length===0;ut.isEmptyObject=Ya,Object.defineProperty(tr,"__esModule",{value:!0});const Bt=et,Xi=ut,eo=function(t,i,f,r,E,b,c,n){var v,o,e,p,C,u,a,s;const g=function(S,I){return S||S===!1?"&"+I+"="+S:""};if(f!=="search"&&f!=="ai-answers"&&f!=="suggest"&&f!=="autocomplete"&&f!=="recommend"){E({error:{response:Bt.RESPONSE_BAD_REQUEST,message:"invalid query type"}});return}let d="",m="",l={},h=null,_=null;if(f==="search"){_=f,d=r==null?void 0:r.keyword,d=r!=null&&r.enableLogicalOperators?d.replace(/ and /g," AND ").replace(/ or /g," OR ").replace(/ not /g," NOT "):d.replace(/ AND /g," and ").replace(/ OR /g," or ").replace(/ NOT /g," not "),d=encodeURIComponent(d);let S=r==null?void 0:r.fuzzy;if(S==="retry"&&(b!==!0?S=!1:S=!0),m=g(r==null?void 0:r.lang,"lang")+g(S,"fuzzy")+g(r==null?void 0:r.collectAnalytics,"collectAnalytics")+g(r==null?void 0:r.postfixWildcard,"postfixWildcard")+g(r==null?void 0:r.categories,"categories")+g(r==null?void 0:r.priceFromCents,"priceFromCents")+g(r==null?void 0:r.priceToCents,"priceToCents")+g(r==null?void 0:r.dateFrom,"dateFrom")+g(r==null?void 0:r.dateTo,"dateTo")+g(r==null?void 0:r.paging.page,"page")+g(r==null?void 0:r.paging.pageSize,"limit")+g(r==null?void 0:r.shuffleAndLimitTo,"shuffleAndLimitTo")+g(r==null?void 0:r.jwt,"jwt")+g(r==null?void 0:r.resultType,"resultType")+g(r==null?void 0:r.userToken,"userToken")+g(r==null?void 0:r.numFacets,"numFacets")+g(r==null?void 0:r.cacheResponseTime,"cacheResponseWithTtlSeconds")+g(r==null?void 0:r.searchOperator,"defaultOperator")+g(r==null?void 0:r.analyticsTag,"analyticsTag"),l=Object.assign(Object.assign({},l),{language:r==null?void 0:r.lang,fuzzy:S!==!0&&S!==!1?S:JSON.stringify(S),collectAnalytics:r==null?void 0:r.collectAnalytics,postfixWildcard:r==null?void 0:r.postfixWildcard,categories:r!=null&&r.categories?r==null?void 0:r.categories.split(","):void 0,priceFromCents:r!=null&&r.priceFromCents?parseInt(r==null?void 0:r.priceFromCents,10):void 0,priceToCents:r!=null&&r.priceToCents?parseInt(r==null?void 0:r.priceToCents,10):void 0,dateFrom:r==null?void 0:r.dateFrom,dateTo:r==null?void 0:r.dateTo,paging:{page:(v=r==null?void 0:r.paging.page)!==null&&v!==void 0?v:1,pageSize:(o=r==null?void 0:r.paging.pageSize)!==null&&o!==void 0?o:10,shuffleAndLimitTo:(e=r==null?void 0:r.shuffleAndLimitTo)!==null&&e!==void 0?e:void 0,sortByField:r==null?void 0:r.paging.sortBy,sortOrder:r==null?void 0:r.paging.sortOrder},jwt:r==null?void 0:r.jwt,resultType:r==null?void 0:r.resultType,userToken:(p=r==null?void 0:r.userToken)!==null&&p!==void 0?p:void 0,numFacets:r==null?void 0:r.numFacets,cacheResponseWithTtlSeconds:(C=r==null?void 0:r.cacheResponseTime)!==null&&C!==void 0?C:void 0,defaultOperator:(u=r==null?void 0:r.searchOperator)!==null&&u!==void 0?u:void 0,analyticsTag:r==null?void 0:r.analyticsTag}),Array.isArray(r==null?void 0:r.paging.sortBy)&&(r==null?void 0:r.paging.sortBy.length)>1?r==null||r.paging.sortBy.forEach(function(I,T){m=m+g(I,"sort")+g(r==null?void 0:r.paging.sortOrder[T],"order")}):m=m+g(r==null?void 0:r.paging.sortBy,"sort")+g(r==null?void 0:r.paging.sortOrder,"order"),r!=null&&r.customFieldFilters){const I={};for(let T=0;T<(r==null?void 0:r.customFieldFilters.length);T++){m=m+"&customField="+(r==null?void 0:r.customFieldFilters[T]);const j=decodeURIComponent(r==null?void 0:r.customFieldFilters[T]).split("="),U=j[0],L=j[1];I[U]=L}l=Object.assign(Object.assign({},l),{customField:(0,Xi.isEmptyObject)(I)?void 0:I})}if(r!=null&&r.facetFields){const I=[];for(let T=0;T<(r==null?void 0:r.facetFields.length);T++)m=m+"&facet="+(r==null?void 0:r.facetFields[T]),I.push(r==null?void 0:r.facetFields[T]);l=Object.assign(Object.assign({},l),{facet:I.length>0?I:void 0})}if(r!=null&&r.rangeFacets&&(m=m+"&rangeFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.rangeFacets)),l=Object.assign(Object.assign({},l),{rangeFacets:r==null?void 0:r.rangeFacets})),r!=null&&r.hierarchicalFacetSetting&&(m=m+"&hierarchicalFacets="+encodeURIComponent(JSON.stringify(r==null?void 0:r.hierarchicalFacetSetting)),l=Object.assign(Object.assign({},l),{hierarchicalFacets:r==null?void 0:r.hierarchicalFacetSetting})),r!=null&&r.statsFields){const I=[];for(let T=0;T<(r==null?void 0:r.statsFields.length);T++)m=m+"&fieldStat="+(r==null?void 0:r.statsFields[T]),I.push(r==null?void 0:r.statsFields[T]);l=Object.assign(Object.assign({},l),{statsFields:I})}if(r!=null&&r.personalizationEvents&&Array.isArray(r==null?void 0:r.personalizationEvents)){const I=[];for(let T=0;T<(r==null?void 0:r.personalizationEvents.length);T++){const A=r==null?void 0:r.personalizationEvents[T],j=Object.keys(A)[0];m=m+"&personalizationEvent="+encodeURIComponent(j+"="+A[j]),I.push(A)}l=Object.assign(Object.assign({},l),{personalizationEvents:I})}c?(m=m+"&filter="+encodeURIComponent(JSON.stringify(c)),l=Object.assign(Object.assign({},l),{filter:c})):r!=null&&r.filterObject&&(m=m+"&filter="+encodeURIComponent(JSON.stringify(r==null?void 0:r.filterObject)),l=Object.assign(Object.assign({},l),{filter:(0,Xi.isEmptyObject)(r==null?void 0:r.filterObject)||r==null?void 0:r.filterObject})),h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m}else f==="ai-answers"?Bt.apiInstance.post(`https://${t}/v2/indices/${i}/conversations`,{question:r==null?void 0:r.keyword}).then(function(S){S.data.response?E(S.data.response):E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"Could not get ai-answers response in the expected data format"}})}).catch(function(S){console.error(S),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})}):f==="suggest"?(_=f,m=g(r==null?void 0:r.suggestionsSize,"size")+g(r==null?void 0:r.lang,"language"),l=Object.assign(Object.assign({},l),{size:r==null?void 0:r.suggestionsSize,language:r==null?void 0:r.lang}),d=r==null?void 0:r.suggestionsPrefix,h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m):f==="autocomplete"?(_="autocomplete/document-field",m=g(r==null?void 0:r.autocomplete.field,"source")+g(r==null?void 0:r.autocomplete.size,"size"),d=(r==null?void 0:r.autocomplete.prefix)||"",h="https://"+t+"/v1/"+_+"/"+i+"?term="+d+m,l=Object.assign(Object.assign({},l),{source:r==null?void 0:r.autocomplete.field,size:r==null?void 0:r.autocomplete.size})):f==="recommend"&&((n==null?void 0:n.type)==="RELATED_ITEMS"?(m=g(n.itemId,"itemId"),_="recommendations/index/"+i+"/block/"+n.blockId+"?"+m,l=Object.assign(Object.assign({},l),{itemId:(a=n.itemId)!==null&&a!==void 0?a:void 0,blockId:n.blockId})):(n==null?void 0:n.type)==="FREQUENTLY_BOUGHT_TOGETHER"&&(m=g(n.itemId,"itemId"),_="recommendations/"+i+"?configurationKey="+n.configurationKey+m,l=Object.assign(Object.assign({},l),{itemId:(s=n.itemId)!==null&&s!==void 0?s:void 0,configurationKey:n.configurationKey})),h="https://"+t+"/v1/"+_);if(f!=="ai-answers"){const S=function(T){var A,j,U;const L=T.data;f==="search"&&(r==null?void 0:r.fuzzy)==="retry"&&L.total_hits===0&&b!==!0?eo(t,i,f,r,E,!0):(b===!0&&(L.total_hits=Math.min((A=L.total_hits)!==null&&A!==void 0?A:1/0,(U=(j=r==null?void 0:r.paging)===null||j===void 0?void 0:j.pageSize)!==null&&U!==void 0?U:1/0)),E(L))},I=function(T){console.error(T),E({error:{response:Bt.RESPONSE_SERVER_ERROR,message:"invalid server response"}})};if((r==null?void 0:r.apiMethod)==="POST"&&["search","suggest","autocomplete"].includes(f)){h="https://"+t+"/v1/"+_+"/"+i;const T=f==="search"?decodeURIComponent(d):d;l=Object.assign({term:T},l),Bt.apiInstance.post(h,l).then(S).catch(I)}else Bt.apiInstance.get(h).then(S).catch(I)}};tr.default=eo;var vt={},Qa=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vt,"__esModule",{value:!0}),vt.deleteDocumentsBatch=vt.deleteDocument=vt.saveDocumentsBatch=vt.saveDocument=vt.getDocument=void 0;const un=Qa(Fi),Za=ut,hn=(t,i)=>({Authorization:"Basic "+(0,Za.base64)(t+":"+i),"Content-Type":"application/json"}),Xa=(t,i,f,r)=>new Promise((E,b)=>{un.default.get(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:hn(i,f)}).then(c=>{c.status===200?E(c.data):b(new Error(JSON.stringify({status:c.status,text:c.statusText})))}).catch(c=>{b(new Error(JSON.stringify({status:400,text:c})))})});vt.getDocument=Xa;const el=(t,i,f,r)=>{const E=!!(r.id||r.url);return new Promise((b,c)=>{(0,un.default)({url:`https://${t}/v2/indices/${i}/documents/`,method:E?"put":"post",headers:hn(i,f),data:r}).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})))})})};vt.saveDocument=el;const tl=(t,i,f,r)=>new Promise((E,b)=>{(0,un.default)({method:"put",url:`https://${t}/v2/indices/${i}/documents:batch`,headers:hn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.saveDocumentsBatch=tl;const nl=(t,i,f,r)=>new Promise((E,b)=>{un.default.delete(`https://${t}/v2/indices/${i}/documents/${r}`,{headers:hn(i,f)}).then(c=>{c.status===202?E({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})))})});vt.deleteDocument=nl;const rl=(t,i,f,r)=>new Promise((E,b)=>{un.default.delete(`https://${t}/v2/indices/${i}/documents:batch`,{headers:hn(i,f),data:r}).then(c=>{c.status===202?E({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})))})});vt.deleteDocumentsBatch=rl;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});const il=Yr,ol=et;(0,il.polyfill)();const sl=(t,i,f,r)=>{typeof window<"u"&&window.navigator&&window.navigator.sendBeacon&&!r?window.navigator.sendBeacon(`https://${t}/v1/stats/${i}/`,JSON.stringify(f)):ol.statsInstance.post(`https://${t}/v1/stats/${i}/`,f,{headers:{"Content-Type":"text/plain"}}).then().catch(E=>{console.error(E)})};Fr.default=sl;var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.putSentimentClick=void 0;const Lr=et,al=(t,i,f,r)=>new Promise((E,b)=>{Lr.aiAnswersInteractionsInstance.put(`https://${t}/v2/indices/${i}/conversations/${f}/rating`,{value:r==="positive"?1:r==="negative"?-1:0}).then(c=>{c.status===200?E(!0):b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))}).catch(c=>{console.error(c),b(new Error(JSON.stringify({type:Lr.RESPONSE_SERVER_ERROR,message:"Unable to put sentiment click value."})))})});Un.putSentimentClick=al;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});const ll=ut;class cl{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,apiMethod:"GET"}}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,f){this.settings.autocomplete.field=i,this.settings.autocomplete.prefix=f}setLanguage(i){let f;if(Intl&&Intl.Locale)try{f=new Intl.Locale(i).language}catch(r){throw console.debug(r),new Error('Use an accepted language code provided by the ECMAScript Internationalization API (e.g., "en", "en-GB").')}else f=i;if(f&&f.length!==2)throw new Error('Use a 2-char/4-char language code (e.g., "en", "en-GB")');this.settings.lang=f}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,f){this.settings.priceFromCents=i,this.settings.priceToCents=f}addCustomFieldFilter(i,f){const r=encodeURIComponent(`${i}=${f}`);this.settings.customFieldFilters.includes(r)||this.settings.customFieldFilters.push(r)}removeCustomFieldFilter(i,f){const r=!f,E=encodeURIComponent(`${i}=${f||""}`);this.settings.customFieldFilters=this.settings.customFieldFilters.filter(b=>r?!b.startsWith(E):b!==E)}setDateFilter(i,f){this.settings.dateFrom=i,this.settings.dateTo=f}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,f){var r,E;(r=(E=this.settings).rangeFacets)!==null&&r!==void 0||(E.rangeFacets=[]),this.settings.rangeFacets.push({field:i,ranges:f})}addStatsField(i){var f,r;(f=(r=this.settings).statsFields)!==null&&f!==void 0||(r.statsFields=[]),this.settings.statsFields.includes(i)||this.settings.statsFields.push(i)}setNumberOfFacets(i){this.settings.numFacets=i}setPaging(i,f,r,E){(0,ll.validateSetPagingParams)(i,f,r,E),this.settings.paging={page:i,pageSize:f,sortBy:r,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}setApiMethod(i){if(i!=="GET"&&i!=="POST")throw new Error("API method must be 'GET' or 'POST'");this.settings.apiMethod=i}}jr.default=cl;var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});const ul=(t,i)=>{let f=0,r=null;function E(){r!==null&&(clearTimeout(r),r=null)}function b(...c){const n=Date.now()-f,v=()=>{f=Date.now(),i(...c)};E(),n>t?v():r=setTimeout(v,t-n)}return b};Nr.default=ul;var Ft={},$n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.parse=yl,$n.serialize=vl;const hl=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,fl=/^[\u0021-\u003A\u003C-\u007E]*$/,dl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,pl=/^[\u0020-\u003A\u003D-\u007E]*$/,ml=Object.prototype.toString,gl=(()=>{const t=function(){};return t.prototype=Object.create(null),t})();function yl(t,i){const f=new gl,r=t.length;if(r<2)return f;const E=(i==null?void 0:i.decode)||xl;let b=0;do{const c=t.indexOf("=",b);if(c===-1)break;const n=t.indexOf(";",b),v=n===-1?r:n;if(c>v){b=t.lastIndexOf(";",c-1)+1;continue}const o=to(t,b,c),e=no(t,c,o),p=t.slice(o,e);if(f[p]===void 0){let C=to(t,c+1,v),u=no(t,v,C);const a=E(t.slice(C,u));f[p]=a}b=v+1}while(b<r);return f}function to(t,i,f){do{const r=t.charCodeAt(i);if(r!==32&&r!==9)return i}while(++i<f);return f}function no(t,i,f){for(;i>f;){const r=t.charCodeAt(--i);if(r!==32&&r!==9)return i+1}return f}function vl(t,i,f){const r=(f==null?void 0:f.encode)||encodeURIComponent;if(!hl.test(t))throw new TypeError(`argument name is invalid: ${t}`);const E=r(i);if(!fl.test(E))throw new TypeError(`argument val is invalid: ${i}`);let b=t+"="+E;if(!f)return b;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);b+="; Max-Age="+f.maxAge}if(f.domain){if(!dl.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);b+="; Domain="+f.domain}if(f.path){if(!pl.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);b+="; Path="+f.path}if(f.expires){if(!bl(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);b+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(b+="; HttpOnly"),f.secure&&(b+="; Secure"),f.partitioned&&(b+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":b+="; Priority=Low";break;case"medium":b+="; Priority=Medium";break;case"high":b+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":b+="; SameSite=Strict";break;case"lax":b+="; SameSite=Lax";break;case"none":b+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return b}function xl(t){if(t.indexOf("%")===-1)return t;try{return decodeURIComponent(t)}catch{return t}}function bl(t){return ml.call(t)==="[object Date]"}Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.deleteCookie=Ft.getCookie=Ft.setCookie=void 0;const Mr=$n,wl=(t,i,f)=>{if(typeof document>"u")return;const r=new Date;r.setTime(r.getTime()+f*24*60*60*1e3),document.cookie=(0,Mr.serialize)(t,i,{expires:r,path:"/"})};Ft.setCookie=wl;const Sl=t=>{if(!(typeof document>"u"))try{return(0,Mr.parse)(document.cookie)[t]}catch(i){console.debug("Error parsing cookies:",i);return}};Ft.getCookie=Sl;const El=t=>{typeof document>"u"||(document.cookie=(0,Mr.serialize)(t,"",{expires:new Date(0),path:"/"}))};Ft.deleteCookie=El;var kl=Xe&&Xe.__createBinding||(Object.create?function(t,i,f,r){r===void 0&&(r=f);var E=Object.getOwnPropertyDescriptor(i,f);(!E||("get"in E?!i.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return i[f]}}),Object.defineProperty(t,r,E)}:function(t,i,f,r){r===void 0&&(r=f),t[r]=i[f]}),_l=Xe&&Xe.__setModuleDefault||(Object.create?function(t,i){Object.defineProperty(t,"default",{enumerable:!0,value:i})}:function(t,i){t.default=i}),ro=Xe&&Xe.__importStar||function(){var t=function(i){return t=Object.getOwnPropertyNames||function(f){var r=[];for(var E in f)Object.prototype.hasOwnProperty.call(f,E)&&(r[r.length]=E);return r},t(i)};return function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var r=t(i),E=0;E<r.length;E++)r[E]!=="default"&&kl(f,i,r[E]);return _l(f,i),f}}(),qn=Xe&&Xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const Dt=qn(tr),fn=vt,io=qn(Fr),Cl=Un,Ol=qn(jr),zn=ro(ut),dn=qn(Nr),pn=ro(Ft),Vn=et,oo="api.addsearch.com",Br="addsearchUserToken";let Rl=class{constructor(i,f){this.useStatsSessionId=!1,this.sitekey=i,this.privatekey=f||"",this.apiHostname=oo,this.statsApiHostname=oo,this.settings=new Ol.default,this.sessionId=`a-${Math.random()*1e8}`.substring(0,10),this.userTokenInPersonalization=pn.getCookie(Br)||zn.generateUUID()}search(i,f){var r;let E=null,b=null;if(typeof i=="string"&&typeof f=="function")E=i,b=f;else if(typeof i=="function"&&!f)E=this.settings.getSettings().keyword||null,b=i;else if(this.settings.getSettings().callback)E=this.settings.getSettings().keyword||null,b=this.settings.getSettings().callback;else throw new Error("Illegal search parameters. Should be (keyword, callbackFunction) or (callbackFunction)");this.settings.setCallback(()=>b),this.settings.setKeyword(E),(r=this.throttledSearchFetch)!==null&&r!==void 0||(this.throttledSearchFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSearchFetch(this.apiHostname,this.sitekey,"search",this.settings.getSettings(),b)}aiAnswers(i,f){var r;this.settings.setCallback(()=>f),this.settings.setKeyword(i),(r=this.throttledAiAnswersFetch)!==null&&r!==void 0||(this.throttledAiAnswersFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAiAnswersFetch(this.apiHostname,this.sitekey,"ai-answers",this.settings.getSettings(),f)}putSentimentClick(i,f){return(0,Cl.putSentimentClick)(this.apiHostname,this.sitekey,i,f)}suggestions(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal suggestions parameters. Should be (prefix, callbackFunction)");this.settings.setSuggestionsPrefix(i),(r=this.throttledSuggestionsFetch)!==null&&r!==void 0||(this.throttledSuggestionsFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledSuggestionsFetch(this.apiHostname,this.sitekey,"suggest",this.settings.getSettings(),f)}autocomplete(i,f,r){var E;if(!i||!f||!r||!zn.isFunction(r))throw new Error("Illegal autocomplete parameters. Should be (field, prefix, callbackFunction)");this.settings.setAutocompleteParams(i,f),(E=this.throttledAutocompleteFetch)!==null&&E!==void 0||(this.throttledAutocompleteFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledAutocompleteFetch(this.apiHostname,this.sitekey,"autocomplete",this.settings.getSettings(),r)}fetchCustomApi(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());b.facetFields=(E=b.facetFields)===null||E===void 0?void 0:E.filter(c=>i===c),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}fetchRangeFacets(i,f,r){var E;const b=Object.assign({},this.settings.getSettings());(E=b.rangeFacets)!==null&&E!==void 0||(b.rangeFacets=[]),b.rangeFacets.push({field:i.field,ranges:i.ranges}),(0,Dt.default)(this.apiHostname,this.sitekey,"search",b,r,null,f)}recommendations(i,f){var r;if(!i||!f||!zn.isFunction(f))throw new Error("Illegal recommendations parameters. Should be (options, callbackFunction)");(r=this.throttledRecommendationFetch)!==null&&r!==void 0||(this.throttledRecommendationFetch=(0,dn.default)(this.settings.getSettings().throttleTimeMs,Dt.default)),this.throttledRecommendationFetch(this.apiHostname,this.sitekey,"recommend",this.settings.getSettings(),f,!1,null,i)}getDocument(i){return(0,fn.getDocument)(this.apiHostname,this.sitekey,this.privatekey,i)}saveDocument(i){return(0,fn.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,fn.saveDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}deleteDocument(i){return(0,fn.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,fn.deleteDocumentsBatch)(this.apiHostname,this.sitekey,this.privatekey,i)}setApiHostname(i,f){(!f||!f.statsApiRequestOnly)&&(this.apiHostname=i),(!f||!f.searchApiRequestOnly)&&(this.statsApiHostname=i)}getSettings(){return this.settings.getSettings()}setLanguage(i){this.settings.setLanguage(i)}setCategoryFilters(i){this.settings.setCategoryFilters(i)}addCustomFieldFilter(i,f){this.settings.addCustomFieldFilter(i,f)}removeCustomFieldFilter(i,f){this.settings.removeCustomFieldFilter(i,f)}setPriceRangeFilter(i,f){this.settings.setPriceRangeFilter(i,f)}setDateFilter(i,f){this.settings.setDateFilter(i,f)}setJWT(i){this.settings.setJWT(i)}setUserToken(i){this.settings.setUserToken(i)}setPaging(i,f,r,E){this.settings.setPaging(i,f,r,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,f){this.settings.addRangeFacet(i,f)}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)}setApiMethod(i){this.settings.setApiMethod(i)}sendStatsEvent(i,f,r){const E=!this.useStatsSessionId&&so&&ao;if(E&&!pn.getCookie(Br)&&pn.setCookie(Br,this.userTokenInPersonalization,lo),i==="search"){const b={action:"search",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,numberOfResults:r.numberOfResults,tag:this.getSettings().analyticsTag};(0,io.default)(this.statsApiHostname,this.sitekey,b,this.settings.getSettings().statsRequestIntercepted)}else if(i==="click"){const b={action:"click",session:E?this.userTokenInPersonalization:this.sessionId,keyword:f,docid:r.documentId,position:r.position,tag:this.getSettings().analyticsTag};(0,io.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,f){so=i,f&&(lo=f)}consentAddSearchCookie(i){ao=i}setApiRequestInterceptor(i,f={}){if(typeof i!="function"){console.error("API interceptor must be a function");return}const{searchApiRequestOnly:r=!1,statsApiRequestOnly:E=!1}=f;!r&&!E?((0,Vn.setRequestInterceptor)(i,"searchApi"),(0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)):(r&&(0,Vn.setRequestInterceptor)(i,"searchApi"),E&&((0,Vn.setRequestInterceptor)(i,"statsApi"),this.settings.setStatsRequestIntercepted(!0)))}setCookie(i,f,r){pn.setCookie(i,f,r)}getCookie(i){return pn.getCookie(i)}searchResultClicked(i,f){this.sendStatsEvent("click",this.settings.getSettings().keyword||"",{documentId:i,position:f})}},so=!1,ao=!1,lo=180;var Al=Rl;const Tl=Gr(Al);var co={exports:{}};/*! addsearch-search-ui 0.9.2 */(function(t,i){(function(f,r){t.exports=r()})(Xe,function(){return function(){var f={2987:function(b,c,n){b.exports=n(9770).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)},1543:function(b,c,n){n.d(c,{FW:function(){return o},mQ:function(){return e},Lt:function(){return v},Rn:function(){return C},jK:function(){return u},wF:function(){return p},On:function(){return a},bz:function(){return s}});const v="IS_LOADING_AI_ANSWERS",o="AI_ANSWERS_RESULT",e="AI_ANSWERS_RESULT_ERROR",p="SET_AI_ANSWERS_SENTIMENT",C="SET_AI_ANSWERS_ANSWER_EXPANDED",u="SET_AI_ANSWERS_HIDDEN";function a(g,d){return m=>{m({type:e,payload:!1}),m({type:v,payload:!0}),g.aiAnswers(d,l=>{if(l.error)m({type:e,payload:!0});else{const S={id:(h=l).conversation_id,answerText:h.answer||"",sources:((_=h.source_documents)===null||_===void 0||(_=_.hits)===null||_===void 0?void 0:_.map(I=>({url:I.url,title:I.title})))||[]};m({type:p,payload:"neutral"}),m({type:o,payload:S})}var h,_;m({type:v,payload:!1})})}}function s(g,d,m){return l=>{l({type:p,payload:m}),g.putSentimentClick(d,m).then().catch(h=>{console.error(h)})}}},6148:function(b,c,n){n.d(c,{Ah:function(){return ee},B5:function(){return d},C0:function(){return G},FJ:function(){return m},GA:function(){return B},GB:function(){return g},Jd:function(){return _},KR:function(){return o},Km:function(){return a},MO:function(){return A},OA:function(){return U},Pf:function(){return I},VW:function(){return v},XD:function(){return oe},Xr:function(){return T},d5:function(){return S},dC:function(){return z},h$:function(){return s},hR:function(){return j},hx:function(){return l},il:function(){return h},kw:function(){return e},nl:function(){return N},nn:function(){return C},p3:function(){return u},vT:function(){return p}});const v="AUTOCOMPLETE_FETCH_START",o="AUTOCOMPLETE_SUGGESTIONS_RESULTS",e="AUTOCOMPLETE_CUSTOM_FIELDS_RESULTS",p="AUTOCOMPLETE_SUGGESTIONS_CLEAR",C="AUTOCOMPLETE_CUSTOM_FIELDS_CLEAR",u="AUTOCOMPLETE_SEARCH_RESULTS",a="AUTOCOMPLETE_SEARCH_CLEAR",s="AUTOCOMPLETE_SHOW",g="AUTOCOMPLETE_HIDE",d="AUTOCOMPLETE_HIDE_AND_DROP_RENDERING",m="HIDE_AUTOMATICALLY",l="KEYBOARD_EVENT",h="ARROW_UP",_="ARROW_DOWN",S="SET_ACTIVE_SUGGESTION",I="suggestions",T="custom_fields";function A(Y,W){return W&&W!==""?(Z,ce)=>{const ye=ce().keyword.minLengthRequiredToFetch;W.length<ye||(Z(L(I)),Y.suggestions(W,_e=>{ce().keyword.value!==""&&Z(function(Ce,Re){return{type:o,keyword:Ce,results:Re}}(W,_e))}))}:{type:p}}function j(Y,W,Z){return W&&W!==""?(ce,ye)=>{const _e=ye().keyword.minLengthRequiredToFetch;W.length<_e||(ce(L(T)),Y.autocomplete(Z,W,Ce=>{ye().keyword.value!==""&&ce({type:e,results:Ce})}))}:{type:C}}function U(Y,W,Z,ce){return Z&&Z!==""?(ye,_e)=>{const Ce=_e().keyword.minLengthRequiredToFetch;Z.length<Ce||(ye(L(W)),Y.search(Z,Re=>{_e().keyword.value!==""&&ye(function(Ue,Ie,Ke,Ne){return{type:u,keyword:Ue,results:Ie,jsonKey:Ke,appendResults:Ne}}(Z,Re,W,ce))}))}:{type:a}}function L(Y){return{type:v,jsonKey:Y}}function B(){return{type:s}}function N(){return{type:g}}function z(){return{type:d}}function G(Y){return{type:l,direction:Y}}function oe(Y,W){return{type:S,index:Y,setSuggestionToSearchField:W}}function ee(Y){return{type:m,hideAutomatically:Y}}},6843:function(b,c,n){n.d(c,{IJ:function(){return v},Ow:function(){return e},nb:function(){return o},np:function(){return p}});const v="SET_FIELD_STATS",o="CLEAR_FIELD_STATS";function e(C,u){return{type:v,fieldStats:C,callBy:u}}function p(){return{type:o}}},549:function(b,c,n){n.d(c,{CY:function(){return v},Gc:function(){return L},II:function(){return A},IS:function(){return g},JS:function(){return u},Ni:function(){return j},QW:function(){return s},Tv:function(){return m},Uj:function(){return o},VH:function(){return h},VN:function(){return C},XI:function(){return e},Xh:function(){return I},cl:function(){return a},eu:function(){return S},hx:function(){return B},jU:function(){return U},ks:function(){return T},u3:function(){return _},uR:function(){return p},ul:function(){return l},vj:function(){return d}});const v="TOGGLE_FILTER",o="SET_RANGE_FILTER",e="REGISTER_FILTER",p="SET_ACTIVE_FILTERS",C="SET_ACTIVE_FACETS",u="SET_ACTIVE_RANGE_FACETS",a="TOGGLE_FACET_FILTER",s="TOGGLE_HIERARCHICAL_FACET_FILTER",g="TOGGLE_RANGE_FACET_FILTER",d="CLEAR_SELECTED_FILTERS_AND_FACETS",m="CLEAR_SELECTED_RANGE_FACETS";function l(N){return{type:e,filterObj:N}}function h(N,z,G){return{type:v,filterName:N,value:z,refreshSearch:G}}function _(N,z,G){return{type:o,field:N,from:z,to:G}}function S(N){return{type:p,json:N}}function I(N){return{type:C,json:N}}function T(N,z,G){return{type:u,json:N,refreshSearch:z,field:G}}function A(N,z,G){return{type:a,field:N,value:z,refreshSearch:G}}function j(N,z,G,oe,ee){return{type:s,field:N,container:z,confFields:G,value:oe,refreshSearch:ee}}function U(N,z,G,oe,ee){return{type:g,field:N,values:z,key:G,refreshSearch:oe,byActiveFilterComponent:ee}}function L(N,z){return{type:m,refreshSearch:N,setHistory:z}}function B(N,z){return{type:d,refreshSearch:N,byActiveFilterComponent:z}}},6993:function(b,c,n){n.d(c,{Ai:function(){return e},Le:function(){return o},QR:function(){return v},_T:function(){return p}});const v="KEYWORD",o="KEYWORD_MIN_LENGTH_REQUIRED_TO_FETCH";function e(C,u,a,s){return{type:v,value:C,skipAutocomplete:u,searchFieldContainerId:a||null,setSearchFieldValue:s||!1}}function p(C){return{type:o,minLengthRequiredToFetch:C.minLengthRequiredToFetch}}},5756:function(b,c,n){n.d(c,{I:function(){return e},N:function(){return o}});var v=n(4903);const o="SET_PAGE";function e(p,C,u,a){u===!1||p.getSettings().paging.page===C&&C!==1||(0,v.Dh)(v.sh.PAGE,C+"",null,a);const s=p.getSettings().paging;return p.setPaging(C,s.pageSize,s.sortBy,s.sortOrder),{type:o,page:C}}},878:function(b,c,n){n.d(c,{KE:function(){return p},OU:function(){return e},T7:function(){return u},iM:function(){return o},vh:function(){return C}}),n(9770),n(4903);var v=n(3007);const o="FETCH_RECO_FBT",e="FETCH_RELATED_ITEMS",p="CLEAR_RECOMMENDATION";function C(a,s){return g=>{switch(s.type){case v.Qc:a.recommendations(s,d=>{var m;g((m=s.container,{type:o,container:m,recommendType:"frequently-bought-together",results:d}))});break;case v.uH:a.recommendations(s,d=>{var m;g((m=s.container,{type:e,container:m,recommendType:"related-items",results:d}))})}}}function u(){return{type:p}}},1944:function(b,c,n){n.d(c,{AX:function(){return d},EF:function(){return g},d3:function(){return p},j2:function(){return C},lq:function(){return m},mY:function(){return a},xE:function(){return u},y$:function(){return s}});var v=n(9770),o=n(4903),e=n(6351);const p="START",C="SET_SEARCH_RESULTS_PAGE_URL",u="SEARCH_FETCH_START",a="SEARCH_RESULTS",s="CLEAR_SEARCH_RESULTS";function g(l,h,_,S,I,T,A,j,U){return(0,o.Dh)(o.sh.SEARCH,h,I,T),h&&h!==""?(L,B)=>{const N=B().keyword.minLengthRequiredToFetch;I&&h.length<N||(L({type:u}),l.search(h,z=>{if((U||A)&&z&&z.hits&&z.hits.length){var G=(U||A).replace("custom_fields.",""),oe=function(ee,Y,W){return Y.find(Z=>{if(!Z.custom_fields||!Z.custom_fields[W])return!1;if(typeof Z.custom_fields[W]=="string")return ee.toLowerCase()===Z.custom_fields[W].toLowerCase();if(typeof Z.custom_fields[W]=="object"&&Z.custom_fields[W].length){const ce=Z.custom_fields[W].map(_e=>_e.toLowerCase()),ye=ee.toLowerCase();return ce.indexOf(ye)>-1}return!1})}(h,z.hits,G);if(oe&&!I)return void window.location.replace(oe.url)}L(function(ee,Y,W,Z,ce,ye){if(/top-delay-\d*$/.test(Z)){var _e=parseInt(Z.replace("top-delay-",""),10);window.setTimeout(function(){window.scrollTo(0,0)},_e)}else Z==="top"&&window.scrollTo(0,0);if(Y&&Y.indexOf(v.H)===-1){const Ce=W?W.total_hits:0,Re=W?W.processing_time_ms:0;(0,e.mh)(ee,Y,Ce,Re)}return{type:a,keyword:Y,results:W,appendResults:ce,requestBy:ye}}(l,h,z,_,S,j))}))}:{type:s}}function d(l){return l==="top"&&window.scrollTo(0,0),{type:s}}function m(l){return{type:C,url:l}}},4826:function(b,c,n){n.d(c,{JK:function(){return o},VD:function(){return e},l$:function(){return p},lD:function(){return v}});const v="SEGMENTED_SEARCH_START",o="SEGMENTED_SEARCH_RESULTS",e="CLEAR_SEGMENTED_SEARCH_RESULTS";function p(C,u,a){return a&&a!==""?s=>{s(function(g){return{type:v,jsonKey:g}}(u)),C.search(a,g=>s(function(d,m,l){return{type:o,jsonKey:d,keyword:m,results:l}}(u,a,g)))}:{type:e}}},6353:function(b,c,n){n.d(c,{ER:function(){return e},O0:function(){return o},Ul:function(){return p}});var v=n(4903);const o="SORTBY",e="desc";function p(C,u,a,s){s&&(0,v.Dh)(v.sh.SORTBY,JSON.stringify({field:u,order:a}),null,s);const g=C.getSettings().paging;return C.setPaging(g.page,g.pageSize,u,a),{type:o,field:u,order:a}}},6510:function(b,c,n){n.d(c,{AUTOCOMPLETE_TYPE:function(){return I},A:function(){return S}});var v=n(2334),o=n.n(v),e=n(6148),p=n(1944),C=n(6993),u=n(4922),a=n(4379),s=n(6351),g=n(4903),d=n(3923),m=n(209),l=n.n(m),h=n(1543);function _(T,A,j){var U;return(A=typeof(U=function(L,B){if(typeof L!="object"||!L)return L;var N=L[Symbol.toPrimitive];if(N!==void 0){var z=N.call(L,B);if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(L)}(A,"string"))=="symbol"?U:String(U))in T?Object.defineProperty(T,A,{value:j,enumerable:!0,configurable:!0,writable:!0}):T[A]=j,T}class S{constructor(A,j,U,L){_(this,"clearRenderedHtml",()=>{document.getElementById(this.conf.containerId).innerHTML="",this.renderedHtml=""}),this.client=A,this.reduxStore=j,this.hasAiAnswers=U,this.conf=L,this.lastOnmouseOver=null,this.minLengthRequired=this.reduxStore.getState().keyword.minLengthRequiredToFetch,this.conf.hideAutomatically===!1&&this.reduxStore.dispatch((0,e.Ah)(!1));const B=this.conf.categorySelectionFunction||d.GK;(0,d.g3)("selectSearchResultCategory",N=>B(N,this.conf.categoryAliases)),(0,a.A)(L.containerId)&&((0,u.G)(this.reduxStore,"autocomplete",N=>this.autocompleteResultsChanged(N)),(0,u.G)(this.reduxStore,"keyword",N=>this.keywordChanged(N))),L.infiniteScrollElement&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll()),L.sources&&L.sources.length&&L.sources.forEach(N=>{N.client&&N.client.setCollectAnalytics(!1)})}autocompleteResultsChanged(A){if(A.dropRendering)return void this.clearRenderedHtml();const j=this.reduxStore.getState().keyword.value;A.pendingRequests.length>0||j.length<this.minLengthRequired||(A.keyword&&A.keyword!==""&&this.sendSearchAnalytics(A),this.render(A))}sendSearchAnalytics(A){let j=[];this.conf.sources.forEach(U=>{if(U.type===I.SEARCH&&U.collectSearchAnalytics){const L=U.client||this.client,B=A.searchResultsStats[U.jsonKey]?A.searchResultsStats[U.jsonKey].total_hits:0;j.push({client:L,numberOfResults:B})}}),(0,s.ME)(A.keyword,j)}keywordChanged(A){if(A.skipAutocomplete)return;const j=A.value;this.conf.sources.forEach(U=>{const L=U.client||this.client;if(U.type===I.SUGGESTIONS)this.reduxStore.dispatch((0,e.MO)(L,j));else if(U.type===I.CUSTOM_FIELDS)this.reduxStore.dispatch((0,e.hR)(L,j,U.field));else if(U.type===I.SEARCH){const B=L.getSettings().paging;L.setPaging(1,B.pageSize,B.sortBy,B.sortOrder),this.reduxStore.dispatch((0,e.OA)(L,U.jsonKey,j,this.hasAiAnswers))}})}loadMore(A){this.conf.sources.forEach(j=>{const U=j.client;U&&j.type===I.SEARCH&&(U.nextPage(),this.reduxStore.dispatch((0,e.OA)(U,j.jsonKey,A,this.hasAiAnswers,!0)))})}render(A){if(A.visible===!1)return void this.clearRenderedHtml();const{suggestions:j,customFields:U,searchResults:L,activeSuggestionIndex:B}=A,N={activeSuggestionIndex:B,suggestions:j,customFields:U,searchResults:L};let z;if(z=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):l()(N),this.renderedHtml===z)return;const G=document.getElementById(this.conf.containerId);G.innerHTML=z,this.renderedHtml=z,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const oe=G.querySelector(".suggestions")?G.querySelectorAll(".suggestions > li"):[],ee=G.querySelectorAll(".suggestions");for(let Y=0;Y<oe.length;Y++)oe[Y].onmousedown=W=>this.suggestionMouseDown(W),ee.length<=1&&(oe[Y].onmouseenter=W=>this.suggestionMouseEnter(W));if(L[Object.keys(L)[0]]){const Y=G.querySelectorAll("[data-analytics-click]");let W=null;this.conf.sources.forEach(Z=>{Z.type===I.SEARCH&&(W||(W=Z.client))}),W||(W=this.client),(0,s.$P)(W,Y,{hits:L[Object.keys(L)[0]]})}this.conf.infiniteScrollElement&&!A.appendResults&&(this.conf.infiniteScrollElement.scrollTop=0),this.conf.onShow&&this.conf.onShow(G)}suggestionMouseDown(A){const j=A.target.getAttribute("data-keyword"),U=this.reduxStore;U.dispatch((0,e.dC)()),U.dispatch((0,C.Ai)(j,!0,null,!0));const L=U.getState().search.searchResultsPageUrl;L?(0,g.lG)(L,j):(U.dispatch((0,p.EF)(this.client,j,null,null,null,U)),this.hasAiAnswers&&U.dispatch((0,h.On)(this.client,j)))}suggestionMouseEnter(A){const j=parseInt(A.target.getAttribute("data-index"),10);j!==null&&j!==this.lastOnmouseOver&&(this.lastOnmouseOver=j,this.reduxStore.dispatch((0,e.XD)(j,!1)))}onScroll(){if(this.reduxStore.getState().autocomplete.pendingRequests.length===0){const A=this.conf.infiniteScrollElement;if(A.scrollHeight>0&&Math.ceil(A.offsetHeight+A.scrollTop)>=A.scrollHeight){const j=this.reduxStore.getState().keyword.value;this.loadMore(j)}}}}const I={SEARCH:"SEARCH",SUGGESTIONS:"SUGGESTIONS",CUSTOM_FIELDS:"CUSTOM_FIELDS"}},8526:function(b,c,n){n.d(c,{A:function(){return a},a:function(){return u}});var v=n(1944),o=n(5756),e=n(4922),p=n(4903),C=n(4826);function u(s,g,d){let m={and:[]};g&&m.and.push(g);let l={};s.allAvailableFilters.forEach(h=>{let _={or:[]};for(let S in h)s.activeFilters[S]&&!l[S]&&(_.or.push(h[S].filter),l[S]=!0);_.or.length>0&&m.and.push(_)});for(let h in s.activeRangeFilters)m.and.push({range:{[h]:Object.assign({},s.activeRangeFilters[h])}});for(let h in s.activeFacets){let _={or:[]};for(let S in s.activeFacets[h])if(h!==d){const I={};I[h]=S,_.or.push(I)}_.or.length>0&&m.and.push(_)}for(let h in s.activeHierarchicalFacets){let _={or:[]};for(let S in s.activeHierarchicalFacets[h])for(let I in s.activeHierarchicalFacets[h][S])if(!d||d.indexOf(S)===-1){const T={};T[S]=I,_.or.push(T)}_.or.length>0&&m.and.push(_)}for(let h in s.activeRangeFacets){let _={or:[]};for(let S in s.activeRangeFacets[h])if(h!==d){const I={range:{[h]:s.activeRangeFacets[h][S]}};_.or.push(I)}_.or.length>0&&m.and.push(_)}return m.and.length>0?m:{}}class a{constructor(g,d,m,l,h,_,S){this.client=g,this.reduxStore=d,this.createFilterObjectFunction=m,this.onFilterChange=l,this.onFilteredSearchRefresh=S,this.segmentedSearchClients=_,(0,e.G)(this.reduxStore,"filters",I=>this.onFilterStateChange(I,h))}onFilterStateChange(g,d){if(g.refreshSearch){(0,p.Dh)(p.sh.FILTERS,(0,p.IR)(g.activeFilters),null,this.reduxStore),(0,p.Dh)(p.sh.FACETS,(0,p.IR)(g.activeFacets),null,this.reduxStore),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore);const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m);const l=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,o.I)(this.client,1,null,this.reduxStore)),this.reduxStore.dispatch((0,v.EF)(this.client,l,null,null,null,this.reduxStore,null,g.targetFacetGroup));for(let h in this.segmentedSearchClients){const _=this.createFilterObjectFunction(g,this.segmentedSearchClients[h].originalFilters);this.segmentedSearchClients[h].client.setFilterObject(_),this.reduxStore.dispatch((0,C.l$)(this.segmentedSearchClients[h].client,h,l))}this.onFilteredSearchRefresh&&this.onFilteredSearchRefresh()}else if(g.setHistory){const m=this.createFilterObjectFunction(g,d);this.client.setFilterObject(m),(0,p.Dh)(p.sh.RANGE_FACETS,(0,p.IR)(g.activeRangeFacets),null,this.reduxStore)}this.onFilterChange&&this.onFilterChange(g.activeFilters)}}},9369:function(b,c,n){n.d(c,{FILTER_TYPE:function(){return L},A:function(){return U}});var v=n(2334),o=n.n(v),e=n(4922),p=n(549),C=n(6353),u=n(4379),a=n(3668),s=n.n(a),g=n(8810),d=n.n(g),m=n(5509),l=n.n(m),h=n(1572),_=n.n(h),S=n(948),I=n.n(S),T=n(3329),A=n.n(T);const j="nofilter";class U{constructor(N,z,G){this.client=N,this.reduxStore=z,this.conf=G,this.activeFilter=null,(0,u.A)(G.containerId)&&(this.reduxStore.dispatch((0,p.ul)(this.conf)),(0,e.G)(this.reduxStore,"filters",oe=>this.render(oe)),this.conf.type===L.RANGE&&(0,e.G)(this.reduxStore,"search",oe=>this.searchResultsChanged(oe)))}searchResultsChanged(N){!N.loading&&N.results.fieldStats&&N.results.fieldStats[this.conf.field]&&this.render(this.reduxStore.getState().filters)}render(N){let z=Object.assign({},this.conf);this.activeFilter=null;let G=!1;for(let W in z.options)N.activeFilters[W]?(z.options[W].active=!0,this.activeFilter=W,G=!0):z.options[W].active=!1;!G&&z.options&&z.options[j]&&(z.options[j].active=!0);let oe,ee=null;if(this.conf.type===L.TABS)ee=_();else if(this.conf.type===L.TAGS)ee=l();else if(this.conf.type===L.CHECKBOX_GROUP)ee=s();else if(this.conf.type===L.RADIO_GROUP)ee=d();else if(this.conf.type===L.RANGE){N.activeRangeFilters[this.conf.field]&&(z.from=N.activeRangeFilters[this.conf.field].gte,z.to=N.activeRangeFilters[this.conf.field].lte);const W=this.reduxStore.getState().search.results;if(W&&W.fieldStats&&W.fieldStats[this.conf.field]){const{min:Z,max:ce}=W.fieldStats[this.conf.field];z.fromPlaceholder=Z==="Infinity"?"":Z,z.toPlaceholder=ce==="-Infinity"?"":ce}ee=A()}else ee=I();if(oe=this.conf.precompiledTemplate?this.conf.precompiledTemplate(z):this.conf.template?o().compile(this.conf.template)(z):ee(z),this.renderedHtml===oe)return;const Y=document.getElementById(this.conf.containerId);if(Y.innerHTML=oe,this.renderedHtml=oe,this.conf.type===L.SELECT_LIST)Y.querySelector("select").addEventListener("change",W=>this.singleActiveChangeEvent(W.target.value));else if(this.conf.type===L.TABS){const W=Y.querySelectorAll("[data-filter]");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.getAttribute("data-filter")))}else if(this.conf.type===L.RADIO_GROUP){const W=Y.querySelectorAll("input");for(let Z=0;Z<W.length;Z++)W[Z].addEventListener("click",ce=>this.singleActiveChangeEvent(ce.target.value))}else this.conf.type===L.RANGE?this.attachRangeFilterEvents(Y):(0,u.h)(Y,"data-filter","click",W=>{this.reduxStore.dispatch((0,p.VH)(W,1))})}singleActiveChangeEvent(N){const z=N===j,G=this.reduxStore;N!==this.activeFilter&&(this.conf.setSorting&&G.dispatch((0,C.Ul)(this.client,this.conf.setSorting.field,this.conf.setSorting.order,this.reduxStore)),this.conf.clearOtherFilters===!0?G.dispatch((0,p.hx)(z)):this.activeFilter&&G.dispatch((0,p.VH)(this.activeFilter,1,z)),z?this.activeFilter=null:(this.activeFilter=N,G.dispatch((0,p.VH)(N,1,!0))))}attachRangeFilterEvents(N){const z=N.querySelectorAll("input");for(let oe=0;oe<z.length;oe++)z[oe].addEventListener("change",ee=>{this.conf.validator&&!new RegExp(this.conf.validator).test(ee.target.value)?ee.target.setAttribute("data-valid","false"):(ee.target.setAttribute("data-valid","true"),this.rangeChangeEvent(this.conf.field,N.querySelector('input[name="from"]').value,N.querySelector('input[name="to"]').value))});const G=N.querySelector("button");G&&G.addEventListener("click",oe=>this.reduxStore.dispatch((0,p.u3)(this.conf.field,null,null)))}rangeChangeEvent(N,z,G){const oe=z!==""?z:null,ee=G!==""?G:null;this.reduxStore.dispatch((0,p.u3)(N,oe,ee))}}const L={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 d},A:function(){return g}});var v=n(2334),o=n.n(v),e=n(5756),p=n(1944),C=n(4922),u=n(4379),a=n(8905),s=n.n(a);class g{constructor(l,h,_){this.client=l,this.reduxStore=h,this.conf=_,(0,u.A)(_.containerId)&&(0,C.G)(this.reduxStore,"search",S=>this.render(S)),_.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.addEventListener("scroll",()=>this.onScroll())}render(l){const h=l.results.page||1,_=this.client.getSettings().paging.pageSize,S=l.results.total_hits||0,I=Math.ceil(S/_),T={type:this.conf.type,hasMorePages:h<I,isLoading:l.loading,totalHits:S};let A;if(A=this.conf.precompiledTemplate?this.conf.precompiledTemplate(T):this.conf.template?o().compile(this.conf.template)(T):s()(T),this.renderedHtml===A)return;const j=document.getElementById(this.conf.containerId);if(j.innerHTML=A,this.renderedHtml=A,this.conf.type===d.BUTTON){const U=j.querySelector("button");U&&(U.onclick=L=>this.loadMore())}else this.conf.type===d.INFINITE_SCROLL&&this.conf.infiniteScrollElement.tagName&&l.results.page===1&&!l.loading&&(this.conf.infiniteScrollElement.scrollTop=0)}loadMore(){const l=(this.reduxStore.getState().pagination.page||1)+1;this.reduxStore.dispatch((0,e.I)(this.client,l,!1,this.reduxStore));const h=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,h,null,!0,null,this.reduxStore,null,"component.loadMore"))}onScroll(){const l=this.reduxStore.getState().search.loading,h=document.querySelector("#"+this.conf.containerId+" .loadmore-infinite-scroll");if(!l&&h)if(this.conf.infiniteScrollElement.tagName){const _=this.conf.infiniteScrollElement;Math.ceil(_.offsetHeight+_.scrollTop)>=_.scrollHeight&&this.loadMore()}else{const _=window.innerHeight,S=h.getBoundingClientRect().top;S>0&&S<_&&this.loadMore()}}}const d={BUTTON:"BUTTON",INFINITE_SCROLL:"INFINITE_SCROLL"}},1990:function(b,c,n){n.d(c,{RANGE_FACETS_TYPE:function(){return A},A:function(){return T}});var v=n(2334),o=n.n(v),e=n(549),p=n(4922),C=n(4379),u=n(8526),a=n(6843);function s(j){var U=Math.ceil(Math.log10(j+1));if(U===1)return 0;var L=Math.pow(10,U-1);return Math.floor(j/L)*L}function g(j){var U=Math.ceil(Math.log10(j+1)),L=Math.pow(10,U-1);return Math.ceil(j/L)*L}var d=n(7435),m=n(6427),l=n.n(m),h=n(1204),_=n.n(h);function S(){let j,U;function L(oe,ee){oe&&(oe.textContent=ee)}function B(oe,ee){const[Y,W]=N(oe,ee);typeof j=="function"&&j({activeRange:[Y,W]})}function N(oe,ee){return[parseFloat(oe.value),parseFloat(ee.value)]}function z(oe,ee,Y,W,Z){const ce=ee.max-ee.min,ye=oe.value-ee.min,_e=ee.value-ee.min;Z.style.background=`linear-gradient(
|
|
47
47
|
to right,
|
|
48
48
|
`.concat(Y,` 0%,
|
|
49
|
-
`).concat(Y," ").concat(
|
|
50
|
-
`).concat(W," ").concat(
|
|
49
|
+
`).concat(Y," ").concat(ye/ce*100,`%,
|
|
50
|
+
`).concat(W," ").concat(ye/ce*100,`%,
|
|
51
51
|
`).concat(W," ").concat(_e/ce*100,`%,
|
|
52
52
|
`).concat(Y," ").concat(_e/ce*100,`%,
|
|
53
|
-
`).concat(Y," 100%)")}function
|
|
53
|
+
`).concat(Y," 100%)")}function G(oe){const ee=document.querySelector("#"+U+" [data-id=adds-slider-control-from]"),Y=document.querySelector("#"+U+" [data-id=adds-slider-control-to]");Number(oe.value)<=ee.value?Y.style.zIndex="2":Y.style.zIndex="0"}this.initialize=function(oe,ee,Y){j=ee,U=oe;const[W,Z,ce,ye]=function(){const Ne=document.querySelector("#"+U+" .adds-range-slider-container");return[Ne.getAttribute("data-slider-min"),Ne.getAttribute("data-slider-max"),Ne.getAttribute("data-slider-start"),Ne.getAttribute("data-slider-end")]}(),_e=Math.ceil(parseFloat(Z));(function(Ne,We){const V=document.querySelector("#"+U+" .adds-range-slider-container"),[H,se,de,we]=Ne,Se=`
|
|
54
54
|
<div class="adds-range-slider-control">
|
|
55
55
|
<input data-id="adds-slider-control-from" type="range" value="`.concat(de||H,'" min="').concat(H,'" max="').concat(se,'" step="').concat(We,`" />
|
|
56
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
|
-
`);V.innerHTML=Se})([Math.floor(parseFloat(W)),_e,ce,
|
|
58
|
+
`);V.innerHTML=Se})([Math.floor(parseFloat(W)),_e,ce,ye],Y.step);const Ce=Y.styles,Re=document.querySelector("#"+oe+" [data-id=adds-slider-control-from]"),Ue=document.querySelector("#"+oe+" [data-id=adds-slider-control-to]"),Ie=document.querySelector("#"+oe+" [data-id=adds-slider-display-start]"),Ke=document.querySelector("#"+oe+" [data-id=adds-slider-display-end]");z(Re,Ue,Ce.trackColor,Ce.progressColor,Ue),G(Ue),L(Ie,ce||W),L(Ke,ye||Z),Re.oninput=()=>function(Ne,We,V,H){const[se,de]=N(Ne,We);z(Ne,We,H.trackColor,H.progressColor,We),se>de?(Ne.value=de,L(V,de)):L(V,se)}(Re,Ue,Ie,Ce),Ue.oninput=()=>function(Ne,We,V,H){const[se,de]=N(Ne,We);z(Ne,We,H.trackColor,H.progressColor,We),G(We),se<=de?(We.value=de,L(V,de)):(We.value=se,L(V,se))}(Re,Ue,Ke,Ce),Re.onchange=()=>B(Re,Ue),Ue.onchange=()=>B(Re,Ue)}}S.init=function(j,U,L){new S().initialize(j,U,L)};var I=S;class T{constructor(U,L,B){this.client=U,this.reduxStore=L,this.conf=B,this.maxNumberOfRangeBuckets=this.conf.maxNumberOfRangeBuckets||5,this.ranges=[];var N=["component.loadMore","component.pagination","component.sortby"];function z(){var G=L.getState().filters.activeRangeFacets[B.field];return!!G&&!(0,d.I)(G)}this.conf.type===A.SLIDER?(this.maxNumberOfRangeBuckets=1,this.conf.styles=this.conf.styles||{trackColor:"#C6C6C6",progressColor:"#25daa5"}):this.conf.type=A.CHECKBOX,(0,C.A)(B.containerId)&&((0,p.G)(this.reduxStore,"search",G=>{const oe=z();if(!(!G.started||G.loading||G.callBy===this.conf.field&&oe||N.indexOf(G.callBy)>-1))if(G.results.hits&&G.results.hits.length){if(oe&&this.conf.type===A.SLIDER){var ee=this.getActiveRangeFacets(this.conf.field)[0];this.reduxStore.dispatch((0,a.Ow)({[this.conf.field]:{min:ee.gte,max:ee.lte}},this.conf.field))}else if(oe&&this.conf.type===A.CHECKBOX){const Y=(0,u.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 G.callBy==="component.activeFilters"?(this.reduxStore.dispatch((0,a.np)()),this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field))):this.reduxStore.dispatch((0,a.Ow)(G.results.fieldStats,this.conf.field));this.handleCheckboxStates(!1)}else this.renderClear()}),(0,p.G)(this.reduxStore,"fieldstats",G=>{var oe=G.fieldStats[this.conf.field];if(G.callBy!==this.conf.field||oe===void 0)return;if(oe===null)return void this.renderRangeSlider();if(z()?this.ranges=function(W){const Z=[];for(const ce in W)Z.push({from:W[ce].gte,to:W[ce].lt});return Z}(this.reduxStore.getState().filters.activeRangeFacets[this.conf.field]):this.ranges=function(W,Z,ce){const ye=W>=0?s(W):-1*g(-1*W),_e=Z>=0?g(Z):-1*s(-1*Z),Ce=[];let Re=ye;const Ue=g((_e-ye)/ce);for(var Ie=0;Ie<ce;Ie++)Ce.push({from:Re,to:Re+Ue}),Re+=Ue;return Ce}(oe.min,oe.max,this.maxNumberOfRangeBuckets),this.conf.type===A.SLIDER)return void this.renderRangeSlider(G);var ee={field:this.conf.field,ranges:this.ranges};const Y=(0,u.a)(this.reduxStore.getState().filters,this.reduxStore.getState().configuration.baseFilters,this.conf.field);this.client.fetchRangeFacets(ee,Y,W=>{this.render(W)})}))}setRangeFilter(U,L,B){const N={min:L,max:B};this.reduxStore.dispatch((0,e.jU)(this.conf.field,N,U,!0))}setRangeSlider(U){this.reduxStore.dispatch((0,e.ks)(function(L,B,N){const z="".concat(B,"-").concat(N);return{[L]:{[z]:{gte:B,lte:N}}}}(this.conf.field,U[0],U[1]),!0,this.conf.field))}render(U){const L=document.getElementById(this.conf.containerId);if(U){const B={conf:this.conf,rangeFacets:U.rangeFacets[this.conf.field]};let N;N=this.conf.precompiledTemplate?this.conf.precompiledTemplate(B):this.conf.template?o().compile(this.conf.template)(B):l()(B),L.innerHTML=N}else L.innerHTML="";this.handleCheckboxStates(!0)}renderClear(){this.reduxStore.dispatch((0,a.np)()),document.getElementById(this.conf.containerId).innerHTML=""}renderRangeSlider(U){const L=this,B=document.getElementById(this.conf.containerId),N={conf:this.conf};if(!U)return void(B.innerHTML="");const z=this.getActiveRangeFacets(this.conf.field);let G;N.sliderConfig=Object.assign({},function(oe,ee){return!oe.fieldStats&&!oe.fieldStats[ee]?{min:null,max:null}:{min:oe.fieldStats[ee].min,max:oe.fieldStats[ee].max}}(U,this.conf.field),function(oe){let ee,Y;return oe.forEach(W=>{const Z=W.gte,ce=W.lte;(ee===void 0||Z<ee)&&(ee=Z),(Y===void 0||ce>Y)&&(Y=ce)}),{start:ee,end:Y}}(z)),G=this.conf.precompiledTemplate?this.conf.precompiledTemplate(N):this.conf.template?o().compile(this.conf.template)(N):_()(N),B.innerHTML=G,I.init(this.conf.containerId,function(oe){oe.activeRange.length&&L.setRangeSlider(oe.activeRange)},{styles:{trackColor:this.conf.styles.trackColor,progressColor:this.conf.styles.progressColor},step:this.conf.step||1})}handleCheckboxStates(U){const L=document.getElementById(this.conf.containerId),B=this.getActiveRangeFacets(this.conf.field),N=L.getElementsByTagName("input");for(let z=0;z<N.length;z++){let G=N[z];G.checked=!!B.find(oe=>oe.key===G.value),U&&(G.onchange=oe=>{this.setRangeFilter(oe.target.value,oe.target.getAttribute("data-value-min"),oe.target.getAttribute("data-value-max"))})}}getActiveRangeFacets(U){let L=[];const B=this.reduxStore.getState().filters.activeRangeFacets;if(B[U])for(let N in B[U])L.push(B[U][N]);return L}}const A={CHECKBOX:"CHECKBOX",SLIDER:"SLIDER"}},4128:function(b,c,n){n.d(c,{A:function(){return v.Ay},RECOMMENDATION_TYPE:function(){return o}});var v=n(3007);const o={FREQUENTLY_BOUGHT_TOGETHER:"FREQUENTLY_BOUGHT_TOGETHER",RELATED_ITEMS:"RELATED_ITEMS"}},3007:function(b,c,n){n.d(c,{Qc:function(){return s},uH:function(){return g},Ay:function(){return d}});const v=`
|
|
59
59
|
<div class="addsearch-recommendations">
|
|
60
60
|
{{#each hits}}
|
|
61
61
|
<div class="hit">
|
|
@@ -78,64 +78,64 @@ React keys must be passed directly to JSX without using spread:
|
|
|
78
78
|
</div>
|
|
79
79
|
{{/each}}
|
|
80
80
|
</div>
|
|
81
|
-
`;var o=n(2334),e=n.n(o),p=n(4922),C=n(4379),u=n(878),a=n(4128);const s=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,g=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class d{constructor(c,h,_,S){this.client=c,this.conf=_,this.reduxStore=h,S.push(_),(0,C.A)(_.containerId)&&(0,p.G)(this.reduxStore,"recommendation",F=>{F.container===_.containerId&&this.render(F)})}render(c){const h=c.results||{};h.blockId=this.conf.blockId;let _,S=this.conf.template||v;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(h):(S=this.conf.template||v,_=e().compile(S)(h)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,u.T7)()))}}},8909:function(b,l,n){n.d(l,{SORTBY_TYPE:function(){return h},A:function(){return c}});var v=n(2334),o=n.n(v),e=n(6353),p=n(1944),C=n(5756),u=n(4922),a=n(4379),s=n(6868),g=n.n(s),d=n(9462),m=n.n(d);class c{constructor(S,F,T){this.client=S,this.conf=T,this.reduxStore=F,this.conf.options.forEach(R=>{R.sortBy=typeof R.sortBy=="string"?R.sortBy.split(","):R.sortBy,R.order=typeof R.order=="string"?R.order.split(","):R.order}),(0,a.A)(T.containerId)&&(0,u.G)(this.reduxStore,"sortby",R=>this.render(R))}onChangeSelect(S){const F=S.options[S.selectedIndex],T=F.getAttribute("data-field"),R=F.getAttribute("data-order");this.dispatchAndRefresh(T,R)}onChangeRadio(S){const F=S.target.getAttribute("data-field"),T=S.target.getAttribute("data-order");this.dispatchAndRefresh(F,T)}dispatchAndRefresh(S,F){const T=S.split(","),R=F.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,T,R,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const j=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,j,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(S,F){return S.length===F.length&&S.every((T,R)=>T===F[R])}render(S){const{field:F,order:T}=S;let R=null;R=this.conf.type===h.RADIO_GROUP?g():m();let j,U=Object.assign({},this.conf);if(U.options.forEach(B=>{this.arraysMatch(B.sortBy,F)&&this.arraysMatch(B.order,T)?B.active=!0:B.active=!1}),j=this.conf.precompiledTemplate?this.conf.precompiledTemplate(U):this.conf.template?o().compile(this.conf.template)(U):R(U),this.renderedHtml===j)return;const L=document.getElementById(this.conf.containerId);if(L.innerHTML=j,this.renderedHtml=j,this.conf.type===h.RADIO_GROUP){const B=L.querySelectorAll("input");for(let N=0;N<B.length;N++)B[N].onclick=z=>this.onChangeRadio(z)}else if(L.querySelector("select").onchange=B=>this.onChangeSelect(B.target),S){const B=L.getElementsByTagName("option");for(let N=0;N<B.length;N++)if(B[N].getAttribute("data-field")===F&&B[N].getAttribute("data-order")===T){L.querySelector("select").value=B[N].text;break}}}}const h={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},9770:function(b,l,n){n.d(l,{Z:function(){return Tt},H:function(){return Zn},default:function(){return zl}});var v=n(9491),o=n.n(v),e=n(2334),p=n.n(e),C=n(549),u=n(4379),a=n(4922),s=n(3787),g=n.n(s);const d="FILTER",m="RANGE_FILTER",c="FACET",h="RANGE_FACET",_="HIERARCHICAL_FACET";class S{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"filters",A=>this.render(A))}getFilterLabel(x,k){for(let P=0;P<k.length;P++)if(k[P][x])return k[P][x].label}emptyIfNull(x){return x??""}render(x){let k=[];for(let re in x.activeFilters)k.push({type:d,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ue=x.activeRangeFilters[re];k.push({type:m,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ue.gte)+"-"+this.emptyIfNull(ue.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var P in x.activeFacets[re])k.push({name:re,type:c,value:P,label:P.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ue in x.activeHierarchicalFacets[re])for(let xe in x.activeHierarchicalFacets[re][ue])k.push({name:ue,type:_,container:re,value:xe,label:xe});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ue in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ue)&&k.push({name:re,type:h,value:ue,label:ue,rangeMin:x.activeRangeFacets[re][ue].gte,rangeMax:x.activeRangeFacets[re][ue].lte});const A={active:k,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(A):this.conf.template?p().compile(this.conf.template)(A):g()(A),this.renderedHtml===M)return;const q=document.getElementById(this.conf.containerId);q.innerHTML=M,this.renderedHtml=M;const G=q.querySelectorAll("[data-type]");for(let re=0;re<G.length;re++)G[re].addEventListener("click",ue=>this.handleFilterClick(ue));const ne=q.querySelector("[data-clearall]");ne&&ne.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const k=x.target.getAttribute("data-type"),P=x.target.getAttribute("data-name"),A=x.target.getAttribute("data-value"),M=x.target.getAttribute("data-container"),q=x.target.getAttribute("data-conf-fields")?x.target.getAttribute("data-conf-fields").split(","):[],G=x.target.getAttribute("data-range-min"),ne=x.target.getAttribute("data-range-max");if(k===d)this.reduxStore.dispatch((0,C.VH)(P,A,!0));else if(k===m)this.reduxStore.dispatch((0,C.u3)(P,null,null));else if(k===c)this.reduxStore.dispatch((0,C.II)(P,A));else if(k===_)this.reduxStore.dispatch((0,C.Ni)(P,M,q,A,!0));else if(k===h){const re={min:G,max:ne};this.reduxStore.dispatch((0,C.jU)(P,re,A,!0,!0))}}}var F=n(6510),T=n(8526),R=n(1353),j=n.n(R);class U{constructor(x,k,P,A){this.client=x,this.reduxStore=k,this.conf=P;var M=["component.loadMore","component.pagination","component.sortby"];(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",q=>{var G,ne=this.reduxStore.getState().filters.activeFacets;if(!(q.loading||M.indexOf(q.callBy)>-1))if((G=ne[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(q.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ue=>{this.render(ue,!0)});else{const ue=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ue)}}else this.render(q)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.field,A=k?x:x.results;let M=[];A&&A.facets&&A.facets[P]&&(M=A.facets[P]);const q=this.getActiveFacets(P);this.conf.sticky!==!0||this.conf.advancedSticky||(this.keyword===x.keyword&&this.stickyFacets&&q.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 ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?p().compile(this.conf.template)(G):j()(G),this.renderedHtml===ne&&q===this.renderedActiveFacets)return;this.renderedActiveFacets=q;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("input");for(let xe=0;xe<ue.length;xe++){let ke=ue[xe];ke.checked=q.indexOf(ke.value)!==-1,ke.onchange=De=>{this.setFilter(De.target.value,De.target.checked)}}}getActiveFacets(x){let k=[];const P=this.reduxStore.getState().filters.activeFacets;if(P[x])for(let A in P[x])k.push(A);return k}updateCheckboxStates(x){const k=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let P=0;P<k.length;P++){let A=k[P];A.checked=x.indexOf(A.value)!==-1}}}var L=n(4278),B=n.n(L),N=n(3923),z=n(2009),K=n.n(z);class oe{constructor(x,k,P,A){function M(ne,re){let ue=!0;return ne&&re.forEach(xe=>{var ke;(ke=ne[xe])&&Object.keys(ke).length!==0&&(ue=!1)}),ue}this.client=x,this.reduxStore=k,this.conf=P;var q=["component.loadMore","component.pagination","component.sortby"];const G=this.conf.template_subHierarchicalFacetsTemplate||K();(0,N.bp)("subHierarchicalFacetsTemplate",G),(0,N.g3)("validateOpenState",function(ne){return k.getState().filters.openedHierarchicalFacetGroups.indexOf(ne)===-1}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",ne=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(ne.loading||q.indexOf(ne.callBy)>-1))if(M(re,this.conf.fields)||!ne.results.hits.length)this.render(ne);else{var ue=(0,T.a)(this.reduxStore.getState().filters,A,this.conf.fields);if(this.conf.fields.indexOf(ne.callBy)===-1)x.fetchCustomApi(this.conf.field,ue,ke=>{this.render(ke,!0)});else{var xe=document.getElementById(this.conf.containerId);this._updateCheckBoxes(xe,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 P=this.conf.fields,A=k?x:x.results;let M=[];A&&A.hierarchicalFacets&&A.hierarchicalFacets[P[0]]&&(M=A.hierarchicalFacets[P[0]],M=M.map(xe=>(xe.field=xe.field.replace("hierarchical_facet.",""),xe)));const q=this.getActiveFacets(P,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const G={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?p().compile(this.conf.template)(G):B()(G),this.renderedHtml===ne&&q===this.renderedActiveFacets)return;this.renderedActiveFacets=q;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne,this._updateCheckBoxes(re,q,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ue=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let xe=0;xe<ue.length;xe++)ue[xe].addEventListener("click",()=>{ue[xe].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ue[xe].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,k){let P=[];const A=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(A[k]&&A[k][M])for(let q in A[k][M])P.push(q)}),P}_toggleFacetGroupOpenState(x){const k=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,P=k.indexOf(x);P===-1?k.push(x):k.splice(P,1)}_updateCheckBoxes(x,k,P,A){const M=x.getElementsByTagName("input");for(let q=0;q<M.length;q++){let G=M[q];G.checked=k.indexOf(G.value)!==-1,G.indeterminate=A.indexOf(G.value)>-1,P&&(G.onchange=ne=>{this.setFilter(ne.target.value,ne.target.getAttribute("data-field"))})}}}var ee=n(1990),Y=n(9369),W=n(3816),Z=n(5756),ce=n(1944),ge=n(4245),_e=n.n(ge);class Ce{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),k=x.search.results.page||1,P=this.client.getSettings().paging.pageSize,A=x.search.results.total_hits||0,M=Math.ceil(A/P),q=function(xe,ke){if(!ke||ke<2||!xe||xe>ke)return null;for(var De=[],Ue=0;Ue<ke;Ue++)De.push(Ue+1);if(ke<=9)return De;if(ke>9&&xe<7)return De.slice(0,9);if(ke>9&&xe>=ke-3)return De.slice(ke-9);var bt=De.indexOf(xe);return bt-4>=0&&bt+5<=De.length?De.slice(bt-4,bt+5):null}(k,M),G={currentPage:k,lastPage:q?q[q.length-1]:0,totalPages:M,pages:q};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(G):this.conf.template?p().compile(this.conf.template)(G):_e()(G),this.renderedHtml===ne)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("button");for(let xe=0;xe<ue.length;xe++)ue[xe].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const k=x.target;let P=null;k.getAttribute("data-page")==="previous"?P=this.reduxStore.getState().pagination.page-1:k.getAttribute("data-page")==="next"?P=(this.reduxStore.getState().pagination.page||1)+1:P=parseInt(k.getAttribute("data-page"),10),this.reduxStore.dispatch((0,Z.I)(this.client,P,null,this.reduxStore));const A=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ce.EF)(this.client,A,M,null,null,this.reduxStore,null,"component.pagination"))}}var Ae=n(8505),He=n.n(Ae),Ie=n(6148),Ke=n(6993),Me=n(4903);const We=40,V=38,H=13,se=8,de=46;class we{constructor(x,k,P,A,M){this.client=x,this.reduxStore=k,this.conf=P,this.matchAllQuery=A,this.minLengthToShowResults=P.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const q=P.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:q})),P.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,u.A)(P.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 P=k.value;this.updateValueOnAllBoundFields(P)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,k,P){P||this.reduxStore.dispatch((0,Ie.dC)());let A=k;A===""&&this.matchAllQuery&&(A=Tt),A.indexOf(Zn)!==0&&this.reduxStore.dispatch((0,Z.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(A,!1,P,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=Tt),k.dispatch((0,Ie.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!==Tt&&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=p().compile(this.conf.template)(this.conf):k.innerHTML=He()(this.conf),this.field=k.querySelector("input"),x!==Tt&&(this.field.value=x),this.addEventListenersToField(this.field),k.querySelector("button")&&(k.querySelector("button").onclick=()=>{let P=this.field.value;this.handleSubmitKeyword(P)}),k.querySelector("form")&&(k.querySelector("form").onsubmit=P=>P.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 P=this.boundFields[0].value;this.handleSubmitKeyword(P)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const k=this.reduxStore;let P=x.target.value;P===""&&this.matchAllQuery&&(P=Tt),x.keyCode!==se&&x.keyCode!==de||k.dispatch((0,Ie.XD)(null,!1));const A=this.conf.ignoreAutocomplete===!0;k.dispatch((0,Ke.Ai)(P,A,this.conf.containerId)),k.dispatch((0,Ie.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,P,!0)}onkeyup(x){const k=this.reduxStore;x.keyCode===We?k.dispatch((0,Ie.C0)(Ie.Jd)):x.keyCode===V&&k.dispatch((0,Ie.C0)(Ie.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)(Tt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Zn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Ie.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Ie.dC)())}}var Se=n(6351),Re=n(6873),me=n.n(Re),ve=n(303),be=n.n(ve),Be=n(2123),X=n.n(Be),le=n(4111),ie=n.n(le);class fe{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k;const A=this.conf.template_resultcount||X(),M=this.conf.template_image||ie();(0,N.bp)("numberOfResultsTemplate",A),(0,N.bp)("searchResultImageTemplate",M),(0,N.g3)("removeTrailingQueriesFromUrl",G=>{if(G)return G.replace(/\?.*$/,"")});const q=this.conf.categorySelectionFunction||N.GK;(0,N.g3)("selectCategory",G=>q(G,this.conf.categoryAliases)),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,k=x.results||{};let P;if(k.resultcount=k.hits&&this.conf.showNumberOfResults!==!1,k.keyword=x.keyword,P=k.hits&&k.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(k):this.conf.template_noresults?p().compile(this.conf.template_noresults)(k):be()(k):this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?p().compile(this.conf.template)(k):me()(k),this.renderedHtml===P)return;const A=document.getElementById(this.conf.containerId);A.innerHTML=P,this.renderedHtml=P,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 y={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function w(pe){y=pe}const I=/[&<>"']/,$=new RegExp(I.source,"g"),J=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,te=new RegExp(J.source,"g"),Pe={"&":"&","<":"<",">":">",'"':""","'":"'"},ze=pe=>Pe[pe];function Fe(pe,x){if(x){if(I.test(pe))return pe.replace($,ze)}else if(J.test(pe))return pe.replace(te,ze);return pe}const Ge=/(^|[^\[])\^/g;function ye(pe,x){let k=typeof pe=="string"?pe:pe.source;x=x||"";const P={replace:(A,M)=>{let q=typeof M=="string"?M:M.source;return q=q.replace(Ge,"$1"),k=k.replace(A,q),P},getRegex:()=>new RegExp(k,x)};return P}function Zt(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const It={exec:()=>null};function At(pe,x){const k=pe.replace(/\|/g,(A,M,q)=>{let G=!1,ne=M;for(;--ne>=0&&q[ne]==="\\";)G=!G;return G?"|":" |"}).split(/ \|/);let P=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(;P<k.length;P++)k[P]=k[P].trim().replace(/\\\|/g,"|");return k}function Rt(pe,x,k){const P=pe.length;if(P===0)return"";let A=0;for(;A<P;){const M=pe.charAt(P-A-1);if(M!==x||k){if(M===x||!k)break;A++}else A++}return pe.slice(0,P-A)}function Xt(pe,x,k,P){const A=x.href,M=x.title?Fe(x.title):null,q=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){P.state.inLink=!0;const G={type:"link",raw:k,href:A,title:M,text:q,tokens:P.inlineTokens(q)};return P.state.inLink=!1,G}return{type:"image",raw:k,href:A,title:M,text:Fe(q)}}class Dt{constructor(x){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=x||y}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 P=k[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:k[0],codeBlockStyle:"indented",text:this.options.pedantic?P:Rt(P,`
|
|
82
|
-
`)}}}fences(x){const k=this.rules.block.fences.exec(x);if(k){const P=k[0],
|
|
81
|
+
`;var o=n(2334),e=n.n(o),p=n(4922),C=n(4379),u=n(878),a=n(4128);const s=a.RECOMMENDATION_TYPE.FREQUENTLY_BOUGHT_TOGETHER,g=a.RECOMMENDATION_TYPE.RELATED_ITEMS;class d{constructor(l,h,_,S){this.client=l,this.conf=_,this.reduxStore=h,S.push(_),(0,C.A)(_.containerId)&&(0,p.G)(this.reduxStore,"recommendation",I=>{I.container===_.containerId&&this.render(I)})}render(l){const h=l.results||{};h.blockId=this.conf.blockId;let _,S=this.conf.template||v;this.conf.precompiledTemplate?_=this.conf.precompiledTemplate(h):(S=this.conf.template||v,_=e().compile(S)(h)),this.renderedHtml!==_&&(document.getElementById(this.conf.containerId).innerHTML=_,this.renderedHtml=_,this.reduxStore.dispatch((0,u.T7)()))}}},8909:function(b,c,n){n.d(c,{SORTBY_TYPE:function(){return h},A:function(){return l}});var v=n(2334),o=n.n(v),e=n(6353),p=n(1944),C=n(5756),u=n(4922),a=n(4379),s=n(6868),g=n.n(s),d=n(9462),m=n.n(d);class l{constructor(S,I,T){this.client=S,this.conf=T,this.reduxStore=I,this.conf.options.forEach(A=>{A.sortBy=typeof A.sortBy=="string"?A.sortBy.split(","):A.sortBy,A.order=typeof A.order=="string"?A.order.split(","):A.order}),(0,a.A)(T.containerId)&&(0,u.G)(this.reduxStore,"sortby",A=>this.render(A))}onChangeSelect(S){const I=S.options[S.selectedIndex],T=I.getAttribute("data-field"),A=I.getAttribute("data-order");this.dispatchAndRefresh(T,A)}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(","),A=I.split(",");this.reduxStore.dispatch((0,e.Ul)(this.client,T,A,this.reduxStore)),this.reduxStore.dispatch((0,C.I)(this.client,1,null,this.reduxStore));const j=this.reduxStore.getState().keyword.value;this.reduxStore.dispatch((0,p.EF)(this.client,j,null,null,null,this.reduxStore,null,"component.sortby"))}arraysMatch(S,I){return S.length===I.length&&S.every((T,A)=>T===I[A])}render(S){const{field:I,order:T}=S;let A=null;A=this.conf.type===h.RADIO_GROUP?g():m();let j,U=Object.assign({},this.conf);if(U.options.forEach(B=>{this.arraysMatch(B.sortBy,I)&&this.arraysMatch(B.order,T)?B.active=!0:B.active=!1}),j=this.conf.precompiledTemplate?this.conf.precompiledTemplate(U):this.conf.template?o().compile(this.conf.template)(U):A(U),this.renderedHtml===j)return;const L=document.getElementById(this.conf.containerId);if(L.innerHTML=j,this.renderedHtml=j,this.conf.type===h.RADIO_GROUP){const B=L.querySelectorAll("input");for(let N=0;N<B.length;N++)B[N].onclick=z=>this.onChangeRadio(z)}else if(L.querySelector("select").onchange=B=>this.onChangeSelect(B.target),S){const B=L.getElementsByTagName("option");for(let N=0;N<B.length;N++)if(B[N].getAttribute("data-field")===I&&B[N].getAttribute("data-order")===T){L.querySelector("select").value=B[N].text;break}}}}const h={SELECT_LIST:"SELECT_LIST",RADIO_GROUP:"RADIO_GROUP"}},9770:function(b,c,n){n.d(c,{Z:function(){return Pt},H:function(){return Xn},default:function(){return Vl}});var v=n(9491),o=n.n(v),e=n(2334),p=n.n(e),C=n(549),u=n(4379),a=n(4922),s=n(3787),g=n.n(s);const d="FILTER",m="RANGE_FILTER",l="FACET",h="RANGE_FACET",_="HIERARCHICAL_FACET";class S{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"filters",R=>this.render(R))}getFilterLabel(x,k){for(let P=0;P<k.length;P++)if(k[P][x])return k[P][x].label}emptyIfNull(x){return x??""}render(x){let k=[];for(let re in x.activeFilters)k.push({type:d,name:re,value:x.activeFilters[re],label:this.getFilterLabel(re,x.allAvailableFilters)});for(let re in x.activeRangeFilters){const ue=x.activeRangeFilters[re];k.push({type:m,name:re,label:this.getFilterLabel(re,x.allAvailableFilters)+": "+this.emptyIfNull(ue.gte)+"-"+this.emptyIfNull(ue.lte)})}for(let re in x.activeFacets)if(re==="category"||re.indexOf("custom_fields.")===0)for(var P in x.activeFacets[re])k.push({name:re,type:l,value:P,label:P.replace(/^[0-9]+[x]{1}/,"")});for(let re in x.activeHierarchicalFacets)for(let ue in x.activeHierarchicalFacets[re])for(let xe in x.activeHierarchicalFacets[re][ue])k.push({name:ue,type:_,container:re,value:xe,label:xe});for(let re in x.activeRangeFacets)if(x.activeRangeFacets.hasOwnProperty(re))for(let ue in x.activeRangeFacets[re])x.activeRangeFacets[re].hasOwnProperty(ue)&&k.push({name:re,type:h,value:ue,label:ue,rangeMin:x.activeRangeFacets[re][ue].gte,rangeMax:x.activeRangeFacets[re][ue].lte});const R={active:k,clearAll:this.conf.clearAll!==!1};let M;if(M=this.conf.precompiledTemplate?this.conf.precompiledTemplate(R):this.conf.template?p().compile(this.conf.template)(R):g()(R),this.renderedHtml===M)return;const $=document.getElementById(this.conf.containerId);$.innerHTML=M,this.renderedHtml=M;const K=$.querySelectorAll("[data-type]");for(let re=0;re<K.length;re++)K[re].addEventListener("click",ue=>this.handleFilterClick(ue));const ne=$.querySelector("[data-clearall]");ne&&ne.addEventListener("click",re=>this.reduxStore.dispatch((0,C.hx)(!0,!0)))}handleFilterClick(x){const k=x.target.getAttribute("data-type"),P=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(","):[],K=x.target.getAttribute("data-range-min"),ne=x.target.getAttribute("data-range-max");if(k===d)this.reduxStore.dispatch((0,C.VH)(P,R,!0));else if(k===m)this.reduxStore.dispatch((0,C.u3)(P,null,null));else if(k===l)this.reduxStore.dispatch((0,C.II)(P,R));else if(k===_)this.reduxStore.dispatch((0,C.Ni)(P,M,$,R,!0));else if(k===h){const re={min:K,max:ne};this.reduxStore.dispatch((0,C.jU)(P,re,R,!0,!0))}}}var I=n(6510),T=n(8526),A=n(1353),j=n.n(A);class U{constructor(x,k,P,R){this.client=x,this.reduxStore=k,this.conf=P;var M=["component.loadMore","component.pagination","component.sortby"];(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",$=>{var K,ne=this.reduxStore.getState().filters.activeFacets;if(!($.loading||M.indexOf($.callBy)>-1))if((K=ne[this.conf.field])&&Object.keys(K).length!==0&&this.conf.advancedSticky){var re=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.field);if($.callBy!==this.conf.field)x.fetchCustomApi(this.conf.field,re,ue=>{this.render(ue,!0)});else{const ue=this.getActiveFacets(this.conf.field);this.updateCheckboxStates(ue)}}else this.render($)})}setFilter(x){this.reduxStore.dispatch((0,C.II)(this.conf.field,x,!0))}render(x,k){if(x.loading)return;const P=this.conf.field,R=k?x:x.results;let M=[];R&&R.facets&&R.facets[P]&&(M=R.facets[P]);const $=this.getActiveFacets(P);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 K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):j()(K),this.renderedHtml===ne&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("input");for(let xe=0;xe<ue.length;xe++){let ke=ue[xe];ke.checked=$.indexOf(ke.value)!==-1,ke.onchange=Be=>{this.setFilter(Be.target.value,Be.target.checked)}}}getActiveFacets(x){let k=[];const P=this.reduxStore.getState().filters.activeFacets;if(P[x])for(let R in P[x])k.push(R);return k}updateCheckboxStates(x){const k=document.getElementById(this.conf.containerId).getElementsByTagName("input");for(let P=0;P<k.length;P++){let R=k[P];R.checked=x.indexOf(R.value)!==-1}}}var L=n(4278),B=n.n(L),N=n(3923),z=n(2009),G=n.n(z);class oe{constructor(x,k,P,R){function M(ne,re){let ue=!0;return ne&&re.forEach(xe=>{var ke;(ke=ne[xe])&&Object.keys(ke).length!==0&&(ue=!1)}),ue}this.client=x,this.reduxStore=k,this.conf=P;var $=["component.loadMore","component.pagination","component.sortby"];const K=this.conf.template_subHierarchicalFacetsTemplate||G();(0,N.bp)("subHierarchicalFacetsTemplate",K),(0,N.g3)("validateOpenState",function(ne){return k.getState().filters.openedHierarchicalFacetGroups.indexOf(ne)===-1}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",ne=>{var re=this.reduxStore.getState().filters.activeHierarchicalFacets[this.conf.containerId];if(!(ne.loading||$.indexOf(ne.callBy)>-1))if(M(re,this.conf.fields)||!ne.results.hits.length)this.render(ne);else{var ue=(0,T.a)(this.reduxStore.getState().filters,R,this.conf.fields);if(this.conf.fields.indexOf(ne.callBy)===-1)x.fetchCustomApi(this.conf.field,ue,ke=>{this.render(ke,!0)});else{var xe=document.getElementById(this.conf.containerId);this._updateCheckBoxes(xe,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 P=this.conf.fields,R=k?x:x.results;let M=[];R&&R.hierarchicalFacets&&R.hierarchicalFacets[P[0]]&&(M=R.hierarchicalFacets[P[0]],M=M.map(xe=>(xe.field=xe.field.replace("hierarchical_facet.",""),xe)));const $=this.getActiveFacets(P,this.conf.containerId);this.conf.facetsFilter&&(M=this.conf.facetsFilter(M));const K={conf:this.conf,facets:M};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):B()(K),this.renderedHtml===ne&&$===this.renderedActiveFacets)return;this.renderedActiveFacets=$;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne,this._updateCheckBoxes(re,$,!0,this.reduxStore.getState().filters.indeterminateHierarchicalFacets);const ue=re.getElementsByClassName("addsearch-facet-group-expansion-arrow");for(let xe=0;xe<ue.length;xe++)ue[xe].addEventListener("click",()=>{ue[xe].parentNode.parentNode.classList.toggle("shrink"),this._toggleFacetGroupOpenState(ue[xe].parentNode.parentNode.getAttribute("data-facet"))})}getActiveFacets(x,k){let P=[];const R=this.reduxStore.getState().filters.activeHierarchicalFacets;return x.forEach(function(M){if(R[k]&&R[k][M])for(let $ in R[k][M])P.push($)}),P}_toggleFacetGroupOpenState(x){const k=this.reduxStore.getState().filters.openedHierarchicalFacetGroups,P=k.indexOf(x);P===-1?k.push(x):k.splice(P,1)}_updateCheckBoxes(x,k,P,R){const M=x.getElementsByTagName("input");for(let $=0;$<M.length;$++){let K=M[$];K.checked=k.indexOf(K.value)!==-1,K.indeterminate=R.indexOf(K.value)>-1,P&&(K.onchange=ne=>{this.setFilter(ne.target.value,ne.target.getAttribute("data-field"))})}}}var ee=n(1990),Y=n(9369),W=n(3816),Z=n(5756),ce=n(1944),ye=n(4245),_e=n.n(ye);class Ce{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState(),k=x.search.results.page||1,P=this.client.getSettings().paging.pageSize,R=x.search.results.total_hits||0,M=Math.ceil(R/P),$=function(xe,ke){if(!ke||ke<2||!xe||xe>ke)return null;for(var Be=[],$e=0;$e<ke;$e++)Be.push($e+1);if(ke<=9)return Be;if(ke>9&&xe<7)return Be.slice(0,9);if(ke>9&&xe>=ke-3)return Be.slice(ke-9);var St=Be.indexOf(xe);return St-4>=0&&St+5<=Be.length?Be.slice(St-4,St+5):null}(k,M),K={currentPage:k,lastPage:$?$[$.length-1]:0,totalPages:M,pages:$};let ne;if(ne=this.conf.precompiledTemplate?this.conf.precompiledTemplate(K):this.conf.template?p().compile(this.conf.template)(K):_e()(K),this.renderedHtml===ne)return;const re=document.getElementById(this.conf.containerId);re.innerHTML=ne,this.renderedHtml=ne;const ue=re.getElementsByTagName("button");for(let xe=0;xe<ue.length;xe++)ue[xe].onclick=ke=>this.handleOnclick(ke)}handleOnclick(x){const k=x.target;let P=null;k.getAttribute("data-page")==="previous"?P=this.reduxStore.getState().pagination.page-1:k.getAttribute("data-page")==="next"?P=(this.reduxStore.getState().pagination.page||1)+1:P=parseInt(k.getAttribute("data-page"),10),this.reduxStore.dispatch((0,Z.I)(this.client,P,null,this.reduxStore));const R=this.reduxStore.getState().keyword.value,M=this.conf.onResultsScrollTo||"top";this.reduxStore.dispatch((0,ce.EF)(this.client,R,M,null,null,this.reduxStore,null,"component.pagination"))}}var Re=n(8505),Ue=n.n(Re),Ie=n(6148),Ke=n(6993),Ne=n(4903);const We=40,V=38,H=13,se=8,de=46;class we{constructor(x,k,P,R,M){this.client=x,this.reduxStore=k,this.conf=P,this.matchAllQuery=R,this.minLengthToShowResults=P.minLengthToShowResults||1,this.firstRenderDone=!1,this.onSearch=M;const $=P.minLengthToShowResults||0;this.reduxStore.dispatch((0,Ke._T)({minLengthRequiredToFetch:$})),P.selectorToBind?(this.bindContainer(),(0,a.G)(this.reduxStore,"keyword",K=>{K.setSearchFieldValue&&this.updateValueOnAllBoundFields(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdateBoundField(K))):(0,u.A)(P.containerId)&&((0,a.G)(this.reduxStore,"keyword",K=>{K.searchFieldContainerId!==this.conf.containerId&&K.searchFieldContainerId!==null||this.render(K.value)}),(0,a.G)(this.reduxStore,"autocomplete",K=>this.onAutocompleteUpdate(K)))}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 P=k.value;this.updateValueOnAllBoundFields(P)}else this.updateValueOnAllBoundFields(this.reduxStore.getState().keyword.value)}executeSearch(x,k,P){P||this.reduxStore.dispatch((0,Ie.dC)());let R=k;R===""&&this.matchAllQuery&&(R=Pt),R.indexOf(Xn)!==0&&this.reduxStore.dispatch((0,Z.I)(x,1,null,this.reduxStore)),this.reduxStore.dispatch((0,C.Gc)(!1,!0)),this.onSearch(R,!1,P,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,Ne.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=Pt),k.dispatch((0,Ie.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!==Pt&&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=p().compile(this.conf.template)(this.conf):k.innerHTML=Ue()(this.conf),this.field=k.querySelector("input"),x!==Pt&&(this.field.value=x),this.addEventListenersToField(this.field),k.querySelector("button")&&(k.querySelector("button").onclick=()=>{let P=this.field.value;this.handleSubmitKeyword(P)}),k.querySelector("form")&&(k.querySelector("form").onsubmit=P=>P.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 P=this.boundFields[0].value;this.handleSubmitKeyword(P)}}this.boundFields.length===1&&this.handleAutoFocus(this.boundFields[0])}oninput(x){const k=this.reduxStore;let P=x.target.value;P===""&&this.matchAllQuery&&(P=Pt),x.keyCode!==se&&x.keyCode!==de||k.dispatch((0,Ie.XD)(null,!1));const R=this.conf.ignoreAutocomplete===!0;k.dispatch((0,Ke.Ai)(P,R,this.conf.containerId)),k.dispatch((0,Ie.GA)()),this.conf.searchAsYouType===!0&&this.executeSearch(this.client,P,!0)}onkeyup(x){const k=this.reduxStore;x.keyCode===We?k.dispatch((0,Ie.C0)(Ie.Jd)):x.keyCode===V&&k.dispatch((0,Ie.C0)(Ie.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)(Pt,!1)):this.warmupQueryCompleted||this.matchAllQuery||(this.executeSearch(this.client,Xn+Math.random(),!1),this.warmupQueryCompleted=!0)),this.reduxStore.dispatch((0,Ie.GA)())}onblur(){this.reduxStore.getState().autocomplete.hideAutomatically&&this.reduxStore.dispatch((0,Ie.dC)())}}var Se=n(6351),Ae=n(6873),me=n.n(Ae),ve=n(303),be=n.n(ve),Me=n(2123),X=n.n(Me),le=n(4111),ie=n.n(le);class he{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k;const R=this.conf.template_resultcount||X(),M=this.conf.template_image||ie();(0,N.bp)("numberOfResultsTemplate",R),(0,N.bp)("searchResultImageTemplate",M),(0,N.g3)("removeTrailingQueriesFromUrl",K=>{if(K)return K.replace(/\?.*$/,"")});const $=this.conf.categorySelectionFunction||N.GK;(0,N.g3)("selectCategory",K=>$(K,this.conf.categoryAliases)),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render())}render(){const x=this.reduxStore.getState().search,k=x.results||{};let P;if(k.resultcount=k.hits&&this.conf.showNumberOfResults!==!1,k.keyword=x.keyword,P=k.hits&&k.hits.length===0?this.conf.precompiledTemplateNoResults?this.conf.precompiledTemplateNoResults(k):this.conf.template_noresults?p().compile(this.conf.template_noresults)(k):be()(k):this.conf.precompiledTemplate?this.conf.precompiledTemplate(k):this.conf.template?p().compile(this.conf.template)(k):me()(k),this.renderedHtml===P)return;const R=document.getElementById(this.conf.containerId);R.innerHTML=P,this.renderedHtml=P,this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback();const M=R.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 y={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function w(pe){y=pe}const F=/[&<>"']/,q=new RegExp(F.source,"g"),J=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,te=new RegExp(J.source,"g"),Te={"&":"&","<":"<",">":">",'"':""","'":"'"},ze=pe=>Te[pe];function Pe(pe,x){if(x){if(F.test(pe))return pe.replace(q,ze)}else if(J.test(pe))return pe.replace(te,ze);return pe}const Ge=/(^|[^\[])\^/g;function ge(pe,x){let k=typeof pe=="string"?pe:pe.source;x=x||"";const P={replace:(R,M)=>{let $=typeof M=="string"?M:M.source;return $=$.replace(Ge,"$1"),k=k.replace(R,$),P},getRegex:()=>new RegExp(k,x)};return P}function mn(pe){try{pe=encodeURI(pe).replace(/%25/g,"%")}catch{return null}return pe}const xt={exec:()=>null};function Yt(pe,x){const k=pe.replace(/\|/g,(R,M,$)=>{let K=!1,ne=M;for(;--ne>=0&&$[ne]==="\\";)K=!K;return K?"|":" |"}).split(/ \|/);let P=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(;P<k.length;P++)k[P]=k[P].trim().replace(/\\\|/g,"|");return k}function At(pe,x,k){const P=pe.length;if(P===0)return"";let R=0;for(;R<P&&!(pe.charAt(P-R-1)!==x||k);)R++;return pe.slice(0,P-R)}function gn(pe,x,k,P){const R=x.href,M=x.title?Pe(x.title):null,$=pe[1].replace(/\\([\[\]])/g,"$1");if(pe[0].charAt(0)!=="!"){P.state.inLink=!0;const K={type:"link",raw:k,href:R,title:M,text:$,tokens:P.inlineTokens($)};return P.state.inLink=!1,K}return{type:"image",raw:k,href:R,title:M,text:Pe($)}}class Qt{constructor(x){Ve(this,"options");Ve(this,"rules");Ve(this,"lexer");this.options=x||y}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 P=k[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:k[0],codeBlockStyle:"indented",text:this.options.pedantic?P:At(P,`
|
|
82
|
+
`)}}}fences(x){const k=this.rules.block.fences.exec(x);if(k){const P=k[0],R=function(M,$){const K=M.match(/^(\s+)(?:```)/);if(K===null)return $;const ne=K[1];return $.split(`
|
|
83
83
|
`).map(re=>{const ue=re.match(/^\s+/);if(ue===null)return re;const[xe]=ue;return xe.length>=ne.length?re.slice(ne.length):re}).join(`
|
|
84
|
-
`)}(P,k[3]||"");return{type:"code",raw:P,lang:k[2]?k[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):k[2],text:
|
|
85
|
-
`)}}blockquote(x){const k=this.rules.block.blockquote.exec(x);if(k){let P=
|
|
84
|
+
`)}(P,k[3]||"");return{type:"code",raw:P,lang:k[2]?k[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):k[2],text:R}}}heading(x){const k=this.rules.block.heading.exec(x);if(k){let P=k[2].trim();if(/#$/.test(P)){const R=At(P,"#");this.options.pedantic?P=R.trim():R&&!/ $/.test(R)||(P=R.trim())}return{type:"heading",raw:k[0],depth:k[1].length,text:P,tokens:this.lexer.inline(P)}}}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 P=At(k[0],`
|
|
86
86
|
`).split(`
|
|
87
|
-
`),
|
|
87
|
+
`),R="",M="";const $=[];for(;P.length>0;){let K=!1;const ne=[];let re;for(re=0;re<P.length;re++)if(/^ {0,3}>/.test(P[re]))ne.push(P[re]),K=!0;else{if(K)break;ne.push(P[re])}P=P.slice(re);const ue=ne.join(`
|
|
88
88
|
`),xe=ue.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
89
|
-
$1`).replace(/^ {0,3}>[ \t]?/gm,"");
|
|
89
|
+
$1`).replace(/^ {0,3}>[ \t]?/gm,"");R=R?`${R}
|
|
90
90
|
${ue}`:ue,M=M?`${M}
|
|
91
|
-
${xe}`:xe;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(xe
|
|
91
|
+
${xe}`:xe;const ke=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(xe,$,!0),this.lexer.state.top=ke,P.length===0)break;const Be=$[$.length-1];if((Be==null?void 0:Be.type)==="code")break;if((Be==null?void 0:Be.type)==="blockquote"){const $e=Be,St=$e.raw+`
|
|
92
92
|
`+P.join(`
|
|
93
|
-
`),
|
|
93
|
+
`),Et=this.blockquote(St);$[$.length-1]=Et,R=R.substring(0,R.length-$e.raw.length)+Et.raw,M=M.substring(0,M.length-$e.text.length)+Et.text;break}if((Be==null?void 0:Be.type)==="list"){const $e=Be,St=$e.raw+`
|
|
94
94
|
`+P.join(`
|
|
95
|
-
`),
|
|
96
|
-
`)}}return{type:"blockquote",raw:
|
|
97
|
-
`,1)[0].replace(/^\t
|
|
98
|
-
`,1)[0],
|
|
99
|
-
`,x=x.substring(ke.length+1),ne=!0),!ne){const
|
|
100
|
-
`,1)[0];let kn;if(ke=
|
|
101
|
-
`+kn.slice(
|
|
102
|
-
`+ke}
|
|
103
|
-
`,x=x.substring(
|
|
104
|
-
`):[]
|
|
105
|
-
`?k[1].slice(0,-1):k[1];return{type:"paragraph",raw:k[0],text:P,tokens:this.lexer.inline(P)}}}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:
|
|
106
|
-
]`).replace("lheading",
|
|
107
|
-
`),this.blockTokens(x,this.tokens);for(let k=0;k<this.inlineQueue.length;k++){const P=this.inlineQueue[k];this.inlineTokens(P.src,P.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,k=[],P=!1){let
|
|
108
|
-
`:k.push(
|
|
109
|
-
`+
|
|
110
|
-
`+
|
|
111
|
-
`+
|
|
112
|
-
`+
|
|
113
|
-
`+
|
|
114
|
-
`+
|
|
115
|
-
`+
|
|
116
|
-
`+
|
|
117
|
-
`;return
|
|
118
|
-
`:"<pre><code>"+(P?M:
|
|
95
|
+
`),Et=this.list(St);$[$.length-1]=Et,R=R.substring(0,R.length-Be.raw.length)+Et.raw,M=M.substring(0,M.length-$e.raw.length)+Et.raw,P=St.substring($[$.length-1].raw.length).split(`
|
|
96
|
+
`)}}return{type:"blockquote",raw:R,tokens:$,text:M}}}list(x){let k=this.rules.block.list.exec(x);if(k){let P=k[1].trim();const R=P.length>1,M={type:"list",raw:"",ordered:R,start:R?+P.slice(0,-1):"",loose:!1,items:[]};P=R?`\\d{1,9}\\${P.slice(-1)}`:`\\${P}`,this.options.pedantic&&(P=R?P:"[*+-]");const $=new RegExp(`^( {0,3}${P})((?:[ ][^\\n]*)?(?:\\n|$))`);let K=!1;for(;x;){let ne=!1,re="",ue="";if(!(k=$.exec(x))||this.rules.block.hr.test(x))break;re=k[0],x=x.substring(re.length);let xe=k[2].split(`
|
|
97
|
+
`,1)[0].replace(/^\t+/,zr=>" ".repeat(3*zr.length)),ke=x.split(`
|
|
98
|
+
`,1)[0],Be=!xe.trim(),$e=0;if(this.options.pedantic?($e=2,ue=xe.trimStart()):Be?$e=k[1].length+1:($e=k[2].search(/[^ ]/),$e=$e>4?1:$e,ue=xe.slice($e),$e+=k[1].length),Be&&/^[ \t]*$/.test(ke)&&(re+=ke+`
|
|
99
|
+
`,x=x.substring(ke.length+1),ne=!0),!ne){const zr=new RegExp(`^ {0,${Math.min(3,$e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),uo=new RegExp(`^ {0,${Math.min(3,$e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ho=new RegExp(`^ {0,${Math.min(3,$e-1)}}(?:\`\`\`|~~~)`),fo=new RegExp(`^ {0,${Math.min(3,$e-1)}}#`),Gl=new RegExp(`^ {0,${Math.min(3,$e-1)}}<[a-z].*>`,"i");for(;x;){const Vr=x.split(`
|
|
100
|
+
`,1)[0];let kn;if(ke=Vr,this.options.pedantic?(ke=ke.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),kn=ke):kn=ke.replace(/\t/g," "),ho.test(ke)||fo.test(ke)||Gl.test(ke)||zr.test(ke)||uo.test(ke))break;if(kn.search(/[^ ]/)>=$e||!ke.trim())ue+=`
|
|
101
|
+
`+kn.slice($e);else{if(Be||xe.replace(/\t/g," ").search(/[^ ]/)>=4||ho.test(xe)||fo.test(xe)||uo.test(xe))break;ue+=`
|
|
102
|
+
`+ke}Be||ke.trim()||(Be=!0),re+=Vr+`
|
|
103
|
+
`,x=x.substring(Vr.length+1),xe=kn.slice($e)}}M.loose||(K?M.loose=!0:/\n[ \t]*\n[ \t]*$/.test(re)&&(K=!0));let St,Et=null;this.options.gfm&&(Et=/^\[[ xX]\] /.exec(ue),Et&&(St=Et[0]!=="[ ] ",ue=ue.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:re,task:!!Et,checked:St,loose:!1,text:ue,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 ne=0;ne<M.items.length;ne++)if(this.lexer.state.top=!1,M.items[ne].tokens=this.lexer.blockTokens(M.items[ne].text,[]),!M.loose){const re=M.items[ne].tokens.filter(xe=>xe.type==="space"),ue=re.length>0&&re.some(xe=>/\n.*\n/.test(xe.raw));M.loose=ue}if(M.loose)for(let ne=0;ne<M.items.length;ne++)M.items[ne].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 P=k[1].toLowerCase().replace(/\s+/g," "),R=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:P,raw:k[0],href:R,title:M}}}table(x){const k=this.rules.block.table.exec(x);if(!k||!/[:|]/.test(k[2]))return;const P=Yt(k[1]),R=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(P.length===R.length){for(const K of R)/^ *-+: *$/.test(K)?$.align.push("right"):/^ *:-+: *$/.test(K)?$.align.push("center"):/^ *:-+ *$/.test(K)?$.align.push("left"):$.align.push(null);for(let K=0;K<P.length;K++)$.header.push({text:P[K],tokens:this.lexer.inline(P[K]),header:!0,align:$.align[K]});for(const K of M)$.rows.push(Yt(K,$.header.length).map((ne,re)=>({text:ne,tokens:this.lexer.inline(ne),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 P=k[1].charAt(k[1].length-1)===`
|
|
105
|
+
`?k[1].slice(0,-1):k[1];return{type:"paragraph",raw:k[0],text:P,tokens:this.lexer.inline(P)}}}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:Pe(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 P=k[2].trim();if(!this.options.pedantic&&/^</.test(P)){if(!/>$/.test(P))return;const $=At(P.slice(0,-1),"\\");if((P.length-$.length)%2==0)return}else{const $=function(K,ne){if(K.indexOf(ne[1])===-1)return-1;let re=0;for(let ue=0;ue<K.length;ue++)if(K[ue]==="\\")ue++;else if(K[ue]===ne[0])re++;else if(K[ue]===ne[1]&&(re--,re<0))return ue;return-1}(k[2],"()");if($>-1){const K=(k[0].indexOf("!")===0?5:4)+k[1].length+$;k[2]=k[2].substring(0,$),k[0]=k[0].substring(0,K).trim(),k[3]=""}}let R=k[2],M="";if(this.options.pedantic){const $=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(R);$&&(R=$[1],M=$[3])}else M=k[3]?k[3].slice(1,-1):"";return R=R.trim(),/^</.test(R)&&(R=this.options.pedantic&&!/>$/.test(P)?R.slice(1):R.slice(1,-1)),gn(k,{href:R&&R.replace(this.rules.inline.anyPunctuation,"$1"),title:M&&M.replace(this.rules.inline.anyPunctuation,"$1")},k[0],this.lexer)}}reflink(x,k){let P;if((P=this.rules.inline.reflink.exec(x))||(P=this.rules.inline.nolink.exec(x))){const R=k[(P[2]||P[1]).replace(/\s+/g," ").toLowerCase()];if(!R){const M=P[0].charAt(0);return{type:"text",raw:M,text:M}}return gn(P,R,P[0],this.lexer)}}emStrong(x,k,P=""){let R=this.rules.inline.emStrongLDelim.exec(x);if(R&&!(R[3]&&P.match(/[\p{L}\p{N}]/u))&&(!(R[1]||R[2])||!P||this.rules.inline.punctuation.exec(P))){const M=[...R[0]].length-1;let $,K,ne=M,re=0;const ue=R[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(ue.lastIndex=0,k=k.slice(-1*x.length+M);(R=ue.exec(k))!=null;){if($=R[1]||R[2]||R[3]||R[4]||R[5]||R[6],!$)continue;if(K=[...$].length,R[3]||R[4]){ne+=K;continue}if((R[5]||R[6])&&M%3&&!((M+K)%3)){re+=K;continue}if(ne-=K,ne>0)continue;K=Math.min(K,K+ne+re);const xe=[...R[0]][0].length,ke=x.slice(0,M+R.index+xe+K);if(Math.min(M,K)%2){const $e=ke.slice(1,-1);return{type:"em",raw:ke,text:$e,tokens:this.lexer.inlineTokens($e)}}const Be=ke.slice(2,-2);return{type:"strong",raw:ke,text:Be,tokens:this.lexer.inlineTokens(Be)}}}}codespan(x){const k=this.rules.inline.code.exec(x);if(k){let P=k[2].replace(/\n/g," ");const R=/[^ ]/.test(P),M=/^ /.test(P)&&/ $/.test(P);return R&&M&&(P=P.substring(1,P.length-1)),P=Pe(P,!0),{type:"codespan",raw:k[0],text:P}}}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 P,R;return k[2]==="@"?(P=Pe(k[1]),R="mailto:"+P):(P=Pe(k[1]),R=P),{type:"link",raw:k[0],text:P,href:R,tokens:[{type:"text",raw:P,text:P}]}}}url(x){var P;let k;if(k=this.rules.inline.url.exec(x)){let R,M;if(k[2]==="@")R=Pe(k[0]),M="mailto:"+R;else{let $;do $=k[0],k[0]=((P=this.rules.inline._backpedal.exec(k[0]))==null?void 0:P[0])??"";while($!==k[0]);R=Pe(k[0]),M=k[1]==="www."?"http://"+k[0]:k[0]}return{type:"link",raw:k[0],text:R,href:M,tokens:[{type:"text",raw:R,text:R}]}}}inlineText(x){const k=this.rules.inline.text.exec(x);if(k){let P;return P=this.lexer.state.inRawBlock?k[0]:Pe(k[0]),{type:"text",raw:k[0],text:P}}}}const Lt=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Gn=/(?:[*+-]|\d{1,9}[.)])/,yn=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(),Zt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Dr=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kn=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",xn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Hr=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",xn).replace("tag",Ht).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Wn=ge(Zt).replace("hr",Lt).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(),bn={blockquote:ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Wn).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Dr,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Lt,html:Hr,lheading:yn,list:Kn,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Wn,table:xt,text:/^[^\n]+/},D=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Lt).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(),ae={...bn,table:D,paragraph:ge(Zt).replace("hr",Lt).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",D).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()},fe={...bn,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",xn).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:xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge(Zt).replace("hr",Lt).replace("heading",` *#{1,6} *[^
|
|
106
|
+
]`).replace("lheading",yn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ee=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,De=/^( {2,}|\\)\n(?!\s*$)/,He="\\p{P}\\p{S}",je=ge(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,He).getRegex(),Fe=ge(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,He).getRegex(),nt=ge("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,He).getRegex(),Je=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,He).getRegex(),Ye=ge(/\\([punct])/,"gu").replace(/punct/g,He).getRegex(),ft=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(),jt=ge(xn).replace("(?:-->|$)","-->").getRegex(),Tt=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",jt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ze=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wn=ge(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ze).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Jn=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",Ze).replace("ref",vn).getRegex(),Yn=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",vn).getRegex(),Ur={_backpedal:xt,anyPunctuation:Ye,autolink:ft,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:De,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:xt,emStrongLDelim:Fe,emStrongRDelimAst:nt,emStrongRDelimUnd:Je,escape:Ee,link:wn,nolink:Yn,punctuation:je,reflink:Jn,reflinkSearch:ge("reflink|nolink(?!\\()","g").replace("reflink",Jn).replace("nolink",Yn).getRegex(),tag:Tt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:xt},Ll={...Ur,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze).getRegex()},$r={...Ur,escape:ge(Ee).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.!#$%&'*+\/=?_`{\|}~-]+@)))/},jl={...$r,br:ge(De).replace("{2,}","*").getRegex(),text:ge($r.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qn={normal:bn,gfm:ae,pedantic:fe},Sn={normal:Ur,gfm:$r,breaks:jl,pedantic:Ll};class bt{constructor(x){Ve(this,"tokens");Ve(this,"options");Ve(this,"state");Ve(this,"tokenizer");Ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=x||y,this.options.tokenizer=this.options.tokenizer||new Qt,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:Qn.normal,inline:Sn.normal};this.options.pedantic?(k.block=Qn.pedantic,k.inline=Sn.pedantic):this.options.gfm&&(k.block=Qn.gfm,this.options.breaks?k.inline=Sn.breaks:k.inline=Sn.gfm),this.tokenizer.rules=k}static get rules(){return{block:Qn,inline:Sn}}static lex(x,k){return new bt(k).lex(x)}static lexInline(x,k){return new bt(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 P=this.inlineQueue[k];this.inlineTokens(P.src,P.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(x,k=[],P=!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(K=>!!(R=K.call({lexer:this},x,k))&&(x=x.substring(R.raw.length),k.push(R),!0))))if(R=this.tokenizer.space(x))x=x.substring(R.raw.length),R.raw.length===1&&k.length>0?k[k.length-1].raw+=`
|
|
108
|
+
`:k.push(R);else if(R=this.tokenizer.code(x))x=x.substring(R.raw.length),M=k[k.length-1],!M||M.type!=="paragraph"&&M.type!=="text"?k.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),k.push(R);else if(R=this.tokenizer.heading(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.hr(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.blockquote(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.list(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.html(x))x=x.substring(R.raw.length),k.push(R);else if(R=this.tokenizer.def(x))x=x.substring(R.raw.length),M=k[k.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),k.push(R);else if(R=this.tokenizer.lheading(x))x=x.substring(R.raw.length),k.push(R);else{if($=x,this.options.extensions&&this.options.extensions.startBlock){let K=1/0;const ne=x.slice(1);let re;this.options.extensions.startBlock.forEach(ue=>{re=ue.call({lexer:this},ne),typeof re=="number"&&re>=0&&(K=Math.min(K,re))}),K<1/0&&K>=0&&($=x.substring(0,K+1))}if(this.state.top&&(R=this.tokenizer.paragraph($)))M=k[k.length-1],P&&(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):k.push(R),P=$.length!==x.length,x=x.substring(R.raw.length);else if(R=this.tokenizer.text(x))x=x.substring(R.raw.length),M=k[k.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):k.push(R);else if(x){const K="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(K);break}throw new Error(K)}}return this.state.top=!0,k}inline(x,k=[]){return this.inlineQueue.push({src:x,tokens:k}),k}inlineTokens(x,k=[]){let P,R,M,$,K,ne,re=x;if(this.tokens.links){const ue=Object.keys(this.tokens.links);if(ue.length>0)for(;($=this.tokenizer.rules.inline.reflinkSearch.exec(re))!=null;)ue.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(K||(ne=""),K=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ue=>!!(P=ue.call({lexer:this},x,k))&&(x=x.substring(P.raw.length),k.push(P),!0))))if(P=this.tokenizer.escape(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.tag(x))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.link(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.reflink(x,this.tokens.links))x=x.substring(P.raw.length),R=k[k.length-1],R&&P.type==="text"&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(P=this.tokenizer.emStrong(x,re,ne))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.codespan(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.br(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.del(x))x=x.substring(P.raw.length),k.push(P);else if(P=this.tokenizer.autolink(x))x=x.substring(P.raw.length),k.push(P);else if(this.state.inLink||!(P=this.tokenizer.url(x))){if(M=x,this.options.extensions&&this.options.extensions.startInline){let ue=1/0;const xe=x.slice(1);let ke;this.options.extensions.startInline.forEach(Be=>{ke=Be.call({lexer:this},xe),typeof ke=="number"&&ke>=0&&(ue=Math.min(ue,ke))}),ue<1/0&&ue>=0&&(M=x.substring(0,ue+1))}if(P=this.tokenizer.inlineText(M))x=x.substring(P.raw.length),P.raw.slice(-1)!=="_"&&(ne=P.raw.slice(-1)),K=!0,R=k[k.length-1],R&&R.type==="text"?(R.raw+=P.raw,R.text+=P.text):k.push(P);else if(x){const ue="Infinite loop on byte: "+x.charCodeAt(0);if(this.options.silent){console.error(ue);break}throw new Error(ue)}}else x=x.substring(P.raw.length),k.push(P);return k}}class Zn{constructor(x){Ve(this,"options");Ve(this,"parser");this.options=x||y}space(x){return""}code({text:x,lang:k,escaped:P}){var $;const R=($=(k||"").match(/^\S*/))==null?void 0:$[0],M=x.replace(/\n$/,"")+`
|
|
117
|
+
`;return R?'<pre><code class="language-'+Pe(R)+'">'+(P?M:Pe(M,!0))+`</code></pre>
|
|
118
|
+
`:"<pre><code>"+(P?M:Pe(M,!0))+`</code></pre>
|
|
119
119
|
`}blockquote({tokens:x}){return`<blockquote>
|
|
120
120
|
${this.parser.parse(x)}</blockquote>
|
|
121
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 k=x.ordered,P=x.start;let
|
|
124
|
-
`+
|
|
123
|
+
`}list(x){const k=x.ordered,P=x.start;let R="";for(let $=0;$<x.items.length;$++){const K=x.items[$];R+=this.listitem(K)}const M=k?"ol":"ul";return"<"+M+(k&&P!==1?' start="'+P+'"':"")+`>
|
|
124
|
+
`+R+"</"+M+`>
|
|
125
125
|
`}listitem(x){let k="";if(x.task){const P=this.checkbox({checked:!!x.checked});x.loose?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=P+" "+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=P+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",raw:P+" ",text:P+" "}):k+=P+" "}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 k="",P="";for(let M=0;M<x.header.length;M++)P+=this.tablecell(x.header[M]);k+=this.tablerow({text:P});let
|
|
127
|
+
`}table(x){let k="",P="";for(let M=0;M<x.header.length;M++)P+=this.tablecell(x.header[M]);k+=this.tablerow({text:P});let R="";for(let M=0;M<x.rows.length;M++){const $=x.rows[M];P="";for(let K=0;K<$.length;K++)P+=this.tablecell($[K]);R+=this.tablerow({text:P})}return R&&(R=`<tbody>${R}</tbody>`),`<table>
|
|
128
128
|
<thead>
|
|
129
129
|
`+k+`</thead>
|
|
130
|
-
`+
|
|
130
|
+
`+R+`</table>
|
|
131
131
|
`}tablerow({text:x}){return`<tr>
|
|
132
132
|
${x}</tr>
|
|
133
133
|
`}tablecell(x){const k=this.parser.parseInline(x.tokens),P=x.header?"th":"td";return(x.align?`<${P} align="${x.align}">`:`<${P}>`)+k+`</${P}>
|
|
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:P}){const
|
|
135
|
-
`+this.renderer.text(
|
|
136
|
-
Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An error occurred:</p><pre>"+Fe(k.message+"",!0)+"</pre>";return x?Promise.resolve(P):P}if(x)return Promise.reject(k);throw k}}};function qe(pe,x){return $t.parse(pe,x)}qe.options=qe.setOptions=function(pe){return $t.setOptions(pe),qe.defaults=$t.defaults,w(qe.defaults),qe},qe.getDefaults=O,qe.defaults=y,qe.use=function(...pe){return $t.use(...pe),qe.defaults=$t.defaults,w(qe.defaults),qe},qe.walkTokens=function(pe,x){return $t.walkTokens(pe,x)},qe.parseInline=$t.parseInline,qe.Parser=xt,qe.parser=xt.parse,qe.Renderer=Qn,qe.TextRenderer=Ur,qe.Lexer=vt,qe.lexer=vt.lex,qe.Tokenizer=Dt,qe.Hooks=En,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,xt.parse,vt.lex;var jl=n(5230),Nl=n.n(jl),qt=n(1543);class Ml{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,this.answerMaxHeight=P.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,N.g3)("markdown",function(M){return typeof M!="string"?"":new(p()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,u.A)(P.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:qt.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 P=this.reduxStore.getState().search.isAiAnswersHidden;this.reduxStore.dispatch({type:qt.jK,payload:!P}),localStorage.setItem("addSearch-isAiAnswersHidden",JSON.stringify(!P))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),k=x&&x.querySelector(".fade-out-overlay"),P=document.querySelector(".show-more-btn"),A=P&&P.querySelector(".button-text"),M=P&&P.querySelector(".chevron");x&&k&&P&&A&&M&&(this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),P.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?(P.style.display="flex",k.style.display="block"):(P.style.display="none",k.style.display="none")),P.addEventListener("click",()=>{this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(this.reduxStore.dispatch({type:qt.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:qt.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"),P=x.querySelector(".copy-confirm-message"),A=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&k&&P&&A&&M&&(k.addEventListener("click",()=>{const q=document.querySelector(".answer-text").textContent;navigator.clipboard.writeText(q).then(()=>{P.textContent="Answer copied!"}).catch(G=>{console.error("Failed to copy answer text with following error: ",G)})}),A.addEventListener("click",()=>{const q=this.reduxStore.getState().search;this.reduxStore.dispatch((0,qt.bz)(this.client,q.aiAnswersResult.id,q.aiAnswersSentiment==="positive"?"neutral":"positive"))}),M.addEventListener("click",()=>{const q=this.reduxStore.getState().search;this.reduxStore.dispatch((0,qt.bz)(this.client,q.aiAnswersResult.id,q.aiAnswersSentiment==="negative"?"neutral":"negative"))}))}render(){const x=this.reduxStore.getState().search,k=x.aiAnswersResult,P=x.loadingAiAnswersResult,A=x.keyword,M=x.aiAnswersResultError,q={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&&P)&&(G=this.conf.precompiledTemplate?this.conf.precompiledTemplate(q):this.conf.template?p().compile(this.conf.template)(q):Nl()(q)),!(!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 Bl{constructor(x,k,P){this.client=x,this.reduxStore=k,this.conf=P,(0,u.A)(P.containerId)&&(P.template||P.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):p().compile(this.conf.template)(x),this.renderedHtml===k)return;const P=document.getElementById(this.conf.containerId);P.innerHTML=k,this.renderedHtml=k;const A=P.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,A,x)}}var Dl=n(8909),Hl=n(4826),Ul=n(6353),$l=n(4128),ql=n(878);const Zn="_addsearch_",Tt="*";o().polyfill(),(0,N.ud)();class zl{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,ce.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,(P,A)=>{this.executeSearch(P,A,!1,null,this.settings.fieldForInstantRedirect),P&&this.settings.hasAiAnswers&&this.executeAiAnswers(P,!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:ce.d3})}executeSearch(x,k,P,A,M){this.reduxStore.dispatch((0,ce.EF)(this.client,x,k,!1,P,this.reduxStore,A,"executeSearch",M));for(let q in this.segmentedSearchClients)this.reduxStore.dispatch((0,Hl.l$)(this.segmentedSearchClients[q].client,q,x))}executeAiAnswers(x){this.reduxStore.dispatch((0,qt.On)(this.client,x))}fetchRecommendation(x){const k=this.recommendationsSettings.filter(P=>P.containerId===x)[0];k&&this.reduxStore.dispatch((0,ql.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,Ul.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const k=this.reduxStore;k.getState().keyword.value===""&&(k.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 we(this.client,this.reduxStore,x,this.settings.matchAllQuery===!0,(k,P,A,M,q)=>{this.executeSearch(k,P,A,M,q),!k.startsWith(Zn)&&this.settings.hasAiAnswers&&!A&&this.executeAiAnswers(k,A)})}autocomplete(x){new F.A(this.client,this.reduxStore,this.settings.hasAiAnswers,x)}aiAnswersResult(x){this.shouldInitializeFromBrowserHistory=!0,new Ml(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 Bl(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new U(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new oe(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ee.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Dl.A(this.client,this.reduxStore,x)}pagination(x){new Ce(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 $l.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,Ie.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,ce.AX)("top"))}registerHandlebarsHelper(x,k){(0,N.g3)(x,k)}registerHandlebarsPartial(x,k){(0,N.bp)(x,k)}}},4922:function(b,l,n){function v(V,H,se){return H in V?Object.defineProperty(V,H,{value:se,enumerable:!0,configurable:!0,writable:!0}):V[H]=se,V}function o(V,H){var se=Object.keys(V);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(V);H&&(de=de.filter(function(we){return Object.getOwnPropertyDescriptor(V,we).enumerable})),se.push.apply(se,de)}return se}function e(V){for(var H=1;H<arguments.length;H++){var se=arguments[H]!=null?arguments[H]:{};H%2?o(Object(se),!0).forEach(function(de){v(V,de,se[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(se)):o(Object(se)).forEach(function(de){Object.defineProperty(V,de,Object.getOwnPropertyDescriptor(se,de))})}return V}function p(V){return"Minified Redux error #"+V+"; visit https://redux.js.org/Errors?code="+V+" for the full message or use the non-minified dev environment for full errors. "}n.d(l,{N:function(){return Me},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(V){if(typeof V!="object"||V===null)return!1;for(var H=V;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(V)===H}function g(V,H,se){var de;if(typeof H=="function"&&typeof se=="function"||typeof se=="function"&&typeof arguments[3]=="function")throw new Error(p(0));if(typeof H=="function"&&se===void 0&&(se=H,H=void 0),se!==void 0){if(typeof se!="function")throw new Error(p(1));return se(g)(V,H)}if(typeof V!="function")throw new Error(p(2));var we=V,Se=H,Re=[],me=Re,ve=!1;function be(){me===Re&&(me=Re.slice())}function Be(){if(ve)throw new Error(p(3));return Se}function X(ie){if(typeof ie!="function")throw new Error(p(4));if(ve)throw new Error(p(5));var fe=!0;return be(),me.push(ie),function(){if(fe){if(ve)throw new Error(p(6));fe=!1,be();var O=me.indexOf(ie);me.splice(O,1),Re=null}}}function le(ie){if(!s(ie))throw new Error(p(7));if(ie.type===void 0)throw new Error(p(8));if(ve)throw new Error(p(9));try{ve=!0,Se=we(Se,ie)}finally{ve=!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:X,getState:Be,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(p(10));we=ie,le({type:a.REPLACE})}})[C]=function(){var ie,fe=X;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(p(11));function y(){O.next&&O.next(Be())}return y(),{unsubscribe:fe(y)}}})[C]=function(){return this},ie},de}function d(){for(var V=arguments.length,H=new Array(V),se=0;se<V;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 m=n(6148);const c={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var h=n(549),_=n(9369);const S={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},F=function(V,H,se){if(V[se.container]||(V[se.container]={}),V[se.container][se.field]||(V[se.container][se.field]={}),V[se.container][se.field][se.value]){const Re=se.value.lastIndexOf(">"),me=Re>-1?se.value.slice(0,Re-1):null;if(delete V[se.container][se.field][se.value],me&&(de=V[se.container][se.field],we=me,!(Object.keys(de).filter(function(ve){return ve.indexOf(we+" >")>-1}).length>0))){const ve=H.indexOf(me);ve>-1&&H.splice(ve,1)}}else{V[se.container][se.field][se.value]="true";for(let me in V[se.container])for(let ve in V[se.container][me])ve.indexOf(se.value+" >")===0&&delete V[se.container][me][ve];H=H.filter(me=>me.indexOf(se.value+" > ")!==0);const Re=se.value.split(" > ").reduce((me,ve)=>{const be=me[me.length-1],Be=be?be+" > "+ve:ve;return Be!==se.value&&me.push(Be),me},[]);for(let me in V[se.container])for(let ve in V[se.container][me])Re.indexOf(ve)!==-1&&delete V[se.container][me][ve];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:V,indeterminateHierarchicalFacets:H}};var T=n(6993);const R={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var j=n(5756);const U={page:1};var L=n(9770),B=n(1944),N=n(1543);const z={started:!1,keyword:null,results:{},loading:!1,aiAnswersResult:{},loadingAiAnswersResult:!1,aiAnswersResultError:!1,aiAnswerSentiment:"neutral",isAiAnswersAnswerExpanded:!1,isAiAnswersHidden:!1,searchResultsPageUrl:null};var K=n(4826);const oe={pendingSegments:[]};var ee=n(6353);const Y={field:["relevance"],order:[ee.ER]},W={};var Z=n(6843);const ce={fieldStats:{}};var ge=n(878);const _e={container:null,recommendType:null,results:null};var Ae=function(V){for(var H=Object.keys(V),se={},de=0;de<H.length;de++){var we=H[de];typeof V[we]=="function"&&(se[we]=V[we])}var Se,Re=Object.keys(se);try{(function(me){Object.keys(me).forEach(function(ve){var be=me[ve];if(be(void 0,{type:a.INIT})===void 0)throw new Error(p(12));if(be(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(p(13))})})(se)}catch(me){Se=me}return function(me,ve){if(me===void 0&&(me={}),Se)throw Se;for(var be=!1,Be={},X=0;X<Re.length;X++){var le=Re[X],ie=se[le],fe=me[le],O=ie(fe,ve);if(O===void 0)throw ve&&ve.type,new Error(p(14));Be[le]=O,be=be||O!==fe}return(be=be||Re.length!==Object.keys(me).length)?Be:me}}({autocomplete:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case m.VW:let se=[...V.pendingRequests];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingRequests:se});case m.vT:return Object.assign({},V,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case m.nn:return Object.assign({},V,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case m.KR:let de=[...V.pendingRequests];return de.indexOf(m.Pf)!==-1&&de.splice(de.indexOf(m.Pf),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case m.kw:let we=[...V.pendingRequests];return we.indexOf(m.Xr)!==-1&&we.splice(we.indexOf(m.Xr),1),Object.assign({},V,{pendingRequests:we,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case m.Km:return Object.assign({},V,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case m.p3:const Se=Object.assign({},V.searchResults);Se[H.jsonKey]=H.results.hits;const Re=Object.assign({},V.searchResultsStats);H.appendResults===!0&&V.searchResults[H.jsonKey]?Se[H.jsonKey]=[...V.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=[...V.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:me,searchResults:Se,searchResultsStats:Re,visible:!0,appendResults:H.appendResults===!0});case m.GB:return Object.assign({},V,{visible:!1,activeSuggestionIndex:null});case m.B5:return Object.assign({},V,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case m.h$:return Object.assign({},V,{visible:!0,dropRendering:!1});case m.FJ:return Object.assign({},V,{hideAutomatically:H.hideAutomatically});case m.d5:return Object.assign({},V,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case m.hx:let ve=V.activeSuggestionIndex;if(V.suggestions.length&&V.customFields.length)ve=null;else{const be=V.suggestions.length?"suggestions":"customFields";H.direction===m.Jd?ve===null&&V[be].length>0?ve=0:ve===V[be].length-1?ve=null:ve+=1:H.direction===m.il&&(ve===null&&V[be].length>0?ve=V[be].length-1:ve===0?ve=null:ve-=1)}return Object.assign({},V,{visible:!0,activeSuggestionIndex:ve,setSuggestionToSearchField:!0});default:return V}},filters:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case h.XI:let se=V.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({},V,{allAvailableFilters:se});case h.CY:let de=Object.assign({},V.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},V,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case h.Uj:let we=Object.assign({},V.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({},V,{activeRangeFilters:we,refreshSearch:!0});case h.vj:return Object.assign({},V,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case h.Tv:return Object.assign({},V,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case h.uR:return Object.assign({},V,{activeFilters:H.json||{},refreshSearch:!1});case h.VN:return Object.assign({},V,{activeFacets:H.json||{},refreshSearch:!1});case h.JS:return Object.assign({},V,{activeRangeFacets:Object.assign({},V.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case h.cl:let Se=Object.assign({},V.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({},V,{activeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.QW:let Re=Object.assign({},V.activeHierarchicalFacets),me=V.indeterminateHierarchicalFacets.slice();const ve=F(Re,me,H);return Re=ve.activeHierarchicalFacetState,me=ve.indeterminateHierarchicalFacets,Re.v=Re.v?Re.v+1:1,Object.assign({},V,{activeHierarchicalFacets:Re,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.IS:let be=Object.assign({},V.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({},V,{activeRangeFacets:be,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return V}},keyword:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case T.QR:return Object.assign({},V,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case T.Le:return Object.assign({},V,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return V}},pagination:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,H=arguments.length>1?arguments[1]:void 0;return H.type===j.N?Object.assign({},V,{page:H.page}):V},search:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case B.d3:return Object.assign({},V,{started:!0});case B.y$:return Object.assign({},V,{keyword:null,results:{},loading:!1,aiAnswersResult:{},aiAnswersResultError:!1,loadingAiAnswersResult:!1,aiAnswersSentiment:"neutral",dropReturningResults:!0});case B.xE:return Object.assign({},V,{loading:!0,dropReturningResults:!1});case B.mY:if(V.started||console.log("WARNING: AddSearch UI not started with the start() function"),V.dropReturningResults===!0)return V;if(H.keyword.indexOf(L.H)===0)return Object.assign({},V,{loading:!1});let se=H.results;if(H.appendResults===!0&&V.results.hits){const de=[...V.results.hits,...H.results.hits];se.hits=de}return Object.assign({},V,{keyword:H.keyword,results:se,loading:!1,callBy:H.requestBy});case N.Lt:return Object.assign({},V,{loadingAiAnswersResult:H.payload});case N.FW:return Object.assign({},V,{aiAnswersResult:H.payload});case N.mQ:return Object.assign({},V,{aiAnswersResultError:H.payload});case N.wF:return Object.assign({},V,{aiAnswersSentiment:H.payload});case N.Rn:return Object.assign({},V,{isAiAnswersAnswerExpanded:H.payload});case N.jK:return Object.assign({},V,{isAiAnswersHidden:H.payload});case B.j2:return Object.assign({},V,{searchResultsPageUrl:H.url});default:return V}},segmentedsearch:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case K.lD:let se=[...V.pendingSegments];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingSegments:se,dropReturningResults:!1});case K.JK:if(H.keyword.indexOf(L.H)===0||V.dropReturningResults===!0)return V;const de={};de[H.jsonKey]=H.results;let we=[...V.pendingSegments];return we.indexOf(H.jsonKey)!==-1&&we.splice(we.indexOf(H.jsonKey),1),Object.assign({},V,de,{pendingSegments:we});case K.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return V}},sortby:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ee.O0?Object.assign({},V,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):V},fieldstats:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case Z.IJ:return Object.assign({},V,{fieldStats:H.fieldStats,callBy:H.callBy});case Z.nb:return Object.assign({},V,{fieldStats:{}});default:return V}},recommendation:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_e,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case ge.iM:case ge.OU:return Object.assign({},V,{container:H.container,recommendType:H.recommendType,results:H.results});case ge.KE:return Object.assign({},_e);default:return V}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function He(V){return function(H){var se=H.dispatch,de=H.getState;return function(we){return function(Se){return typeof Se=="function"?Se(se,de,V):we(Se)}}}}var Ie=He();Ie.withExtraArgument=He;var Ke=Ie;function Me(V){const H={configuration:V};let se=d;return V.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(se=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),g(Ae,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),ve=function(){throw new Error(p(15))},be={getState:me.getState,dispatch:function(){return ve.apply(void 0,arguments)}},Be=we.map(function(X){return X(be)});return ve=d.apply(void 0,Be)(me.dispatch),e(e({},me),{},{dispatch:ve})}}}(Ke)))}function We(V,H,se){let de={};function we(){const Re=V.getState()[H];JSON.stringify(Re)!==JSON.stringify(de[H])&&(de[H]=Re,se(de[H]))}let Se=V.subscribe(we);return we(),Se}},6351:function(b,l,n){n.d(l,{$P:function(){return _},ME:function(){return h},b8:function(){return e},d_:function(){return u},mh:function(){return d}});const v=2500;let o=null;function e(T){o=T}function p(T){o&&o(T)}let C=!0;function u(T){C=T}let a=null,s=null,g=!1;function d(T,R,j,U){if(C===!1)return;const L="search";a&&clearTimeout(a),a=setTimeout(()=>{R!==s&&(T.sendStatsEvent(L,R,{numberOfResults:j}),p({action:L,keyword:R,numberOfResults:j,processingTimeMs:U}),s=R,g=!0)},v)}let m=null,c=null;function h(T,R){C===!1||!R||R.length<1||(m&&clearTimeout(m),m=setTimeout(()=>{T!==c&&(R.forEach(j=>j.client.sendStatsEvent("search",T,{numberOfResults:j.numberOfResults})),c=T,g=!0)},v))}function _(T,R,j){if(R&&R.length>0)for(let U=0;U<R.length;U++)R[U].addEventListener("keyup",L=>{L.keyCode===13&&F(L,T,j)}),R[U].addEventListener("pointerdown",L=>{L.button&&L.buttons&&L.button===L.buttons||F(L,T,j)})}function S(T){const R=T.getAttribute("data-analytics-click");return T.nodeName==="BODY"||T.nodeName==="body"?null:R||S(T.parentNode)}function F(T,R,j){if(C===!1)return;const U=S(T.target),L=function(N,z,K){if(z&&z.hits){const oe=((z.page||1)-1)*N;for(let ee=0;ee<z.hits.length;ee++)if(z.hits[ee].id===K)return oe+(ee+1)}return 0}(R.getSettings().paging.pageSize,j,U),B=R.getSettings().keyword;if(R.sendStatsEvent("click",B,{documentId:U,position:L}),p({action:"click",keyword:B,documentId:U,position:L}),g===!1){const N=j?j.total_hits:0,z=j?j.processing_time_ms:0;R.sendStatsEvent("search",B,{numberOfResults:N}),p({action:"search",keyword:B,numberOfResults:N,processingTimeMs:z})}}},4379:function(b,l,n){function v(e,p,C,u){const a=e.querySelectorAll("["+p+"]");for(let s=0;s<a.length;s++)a[s].addEventListener(C,g=>{u(g.target.getAttribute(p))})}function o(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(l,{A:function(){return o},h:function(){return v}})},3923:function(b,l,n){n.d(l,{GK:function(){return u},bp:function(){return d},g3:function(){return g},ud:function(){return s}});var v=n(2334),o=n.n(v),e=n(261),p=n.n(e),C=n(7435);function u(m,c){const h=m.categories||[];let _="",S=1;c=(0,C.y)(c);do _=h.length>S?h[S]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),S++;while(_.length<3&&h.length>S);return c&&c[_]?c[_]:_.replace(/[-_]+/g," ")}let a=null;function s(){g("equals",(m,c,h)=>m+""==c+""?h.fn(this):h.inverse(this)),g("not",(m,c,h)=>m+""!=c+""?h.fn(this):h.inverse(this)),g("gt",(m,c,h)=>m>c?h.fn(this):h.inverse(this)),g("lt",(m,c,h)=>m<c?h.fn(this):h.inverse(this)),g("or",(m,c,h)=>m||c?h.fn(this):h.inverse(this)),g("formatPrice",(m,c,h)=>{if(m===void 0||typeof m!="number"||!c||!h)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(c,{style:"currency",currency:h,minimumFractionDigits:2})),a)return a.format(m)}catch{}return m/100+" "+h})}function g(m,c){o().registerHelper(m,c),p().registerHelper(m,c)}function d(m,c){o().registerPartial(m,c),p().registerPartial(m,c)}},4903:function(b,l,n){n.d(l,{Dh:function(){return g},I5:function(){return m},IR:function(){return S},lG:function(){return F},sh:function(){return u}});var v=n(9770),o=n(6993),e=n(5756),p=n(549),C=n(6353);const u={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let s=null;function g(T,R,j,U){const L=U.getState();L&&L.configuration&&L.configuration.updateBrowserHistory===!1||(j?(s&&clearTimeout(s),s=setTimeout(()=>{d(T,R)},a)):d(T,R))}function d(T,R){if(T===u.SEARCH&&R&&R.indexOf(v.H)===0)return;let j=window.location.href;j.indexOf("#")!==-1&&(j=j.substring(0,j.indexOf("#")));const U=window.location.hash||"",L=h(j);T===u.PAGE&&R==1||T===u.SEARCH&&R==v.Z?delete L[T]:T&&R!==null&&R!==""?L[T]=R:T&&delete L[T];let B=j;j.indexOf("?")!==-1&&(B=j.substring(0,j.indexOf("?"))),JSON.stringify(L)!==JSON.stringify({})&&(B=B+"?"+function(N){let z="";for(let K in N)if(N.hasOwnProperty(K)){z!==""&&(z+="&");let oe="";if(K==="addsearchUnrelatedParams"){z+=N[K].split("&").join("&");continue}N[K]!==null&&N[K]!==void 0&&K!=="addsearchUnrelatedParams"&&(oe="="+encodeURIComponent(N[K])),z=z+K+oe}return z}(L)),B+=U,history.state===null?history.replaceState(L,"",B):JSON.stringify(history.state)!==JSON.stringify(L)&&history.pushState(L,"",B)}function m(T,R,j,U,L,B){const N=h(window.location.href);c(T,R,N,j,U,!1,B),window.onpopstate=z=>{const K=h(window.location.href);c(T,R,K,j,U,L,B)}}function c(T,R,j,U,L,B,N){let z=!1;if(j[u.FILTERS]){const K=_(j[u.FILTERS]);R.dispatch((0,p.eu)(K)),z=!0}if(j[u.FACETS]){const K=_(j[u.FACETS]);R.dispatch((0,p.Xh)(K)),z=!0}if(j[u.RANGE_FACETS]){const K=_(j[u.RANGE_FACETS]);R.dispatch((0,p.ks)(K)),z=!0}if(z){const K=U(R.getState().filters,N);T.setFilterObject(K)}else R.dispatch((0,p.eu)(null)),R.dispatch((0,p.Xh)(null)),T.setFilterObject(N||null);if(j[u.SORTBY]){const K=_(j[u.SORTBY]);R.dispatch((0,C.Ul)(T,K.field,K.order))}if(j[u.PAGE])R.dispatch((0,e.I)(T,parseInt(j[u.PAGE],10),null,R));else{const K=T.getSettings().paging;R.dispatch((0,e.I)(T,K.page,null,R))}if(j[u.SEARCH]){const K=decodeURIComponent(j[u.SEARCH]);R.dispatch((0,o.Ai)(K,!0,null,!0)),L(K)}else B===!0&&(R.dispatch((0,o.Ai)(v.Z,!0,null,!0)),L(v.Z))}function h(T){if(T.indexOf("?")===-1)return{};let R=T.substring(T.indexOf("?")+1);if(R==="")return{};R.indexOf("#")!==-1&&(R=R.substring(0,R.indexOf("#")));let j={};const U=R.split("&"),L=U.filter(N=>N.indexOf(u.SEARCH)===-1&&N.indexOf(u.PAGE)===-1&&N.indexOf(u.SORTBY)===-1&&N.indexOf(u.FILTERS)===-1&&N.indexOf(u.FACETS)===-1&&N.indexOf(u.RANGE_FACETS)===-1),B=U.filter(N=>!L.includes(N));return L.length&&(j.addsearchUnrelatedParams=L.join("&")),B.forEach(N=>{const z=N.split("=");if(z[0]&&z[0].length>0){let K=null;z.length>1&&(K=z[1]||"",K=K.replace(/\+/g,"%20"),K=decodeURIComponent(K)),j[z[0]]=K}}),j}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 F(T,R){T.indexOf("?")===-1?window.location.href=T+"?"+u.SEARCH+"="+encodeURIComponent(R):window.location.href=T+"&"+u.SEARCH+"="+encodeURIComponent(R)}},7435:function(b,l,n){function v(e){return!e||Object.keys(e).length===0}function o(e){if(e)return Object.keys(e).reduce((p,C)=>(p[C.toLowerCase()]=e[C],p),{})}n.d(l,{I:function(){return v},y:function(){return o}})},9491:function(b){function l(n,v){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(n),e=1;e<arguments.length;e++){var p=arguments[e];if(p!=null)for(var C=Object.keys(Object(p)),u=0,a=C.length;u<a;u++){var s=C[u],g=Object.getOwnPropertyDescriptor(p,s);g!==void 0&&g.enumerable&&(o[s]=p[s])}}return o}b.exports={assign:l,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:l})}}},3787:function(b,l,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",c=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <div class="item">
|
|
137
|
-
<span>`+
|
|
138
|
-
<button data-type="`+
|
|
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:P}){const R=this.parser.parseInline(P),M=mn(x);if(M===null)return R;let $='<a href="'+(x=M)+'"';return k&&($+=' title="'+k+'"'),$+=">"+R+"</a>",$}image({href:x,title:k,text:P}){const R=mn(x);if(R===null)return P;let M=`<img src="${x=R}" alt="${P}"`;return k&&(M+=` title="${k}"`),M+=">",M}text(x){return"tokens"in x&&x.tokens?this.parser.parseInline(x.tokens):x.text}}class qr{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 wt{constructor(x){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=x||y,this.options.renderer=this.options.renderer||new Zn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qr}static parse(x,k){return new wt(k).parse(x)}static parseInline(x,k){return new wt(k).parseInline(x)}parse(x,k=!0){let P="";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 K=M,ne=this.options.extensions.renderers[K.type].call({parser:this},K);if(ne!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(K.type)){P+=ne||"";continue}}const $=M;switch($.type){case"space":P+=this.renderer.space($);continue;case"hr":P+=this.renderer.hr($);continue;case"heading":P+=this.renderer.heading($);continue;case"code":P+=this.renderer.code($);continue;case"table":P+=this.renderer.table($);continue;case"blockquote":P+=this.renderer.blockquote($);continue;case"list":P+=this.renderer.list($);continue;case"html":P+=this.renderer.html($);continue;case"paragraph":P+=this.renderer.paragraph($);continue;case"text":{let K=$,ne=this.renderer.text(K);for(;R+1<x.length&&x[R+1].type==="text";)K=x[++R],ne+=`
|
|
135
|
+
`+this.renderer.text(K);P+=k?this.renderer.paragraph({type:"paragraph",raw:ne,text:ne,tokens:[{type:"text",raw:ne,text:ne}]}):ne;continue}default:{const K='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}parseInline(x,k){k=k||this.renderer;let P="";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 K=this.options.extensions.renderers[M.type].call({parser:this},M);if(K!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(M.type)){P+=K||"";continue}}const $=M;switch($.type){case"escape":case"text":P+=k.text($);break;case"html":P+=k.html($);break;case"link":P+=k.link($);break;case"image":P+=k.image($);break;case"strong":P+=k.strong($);break;case"em":P+=k.em($);break;case"codespan":P+=k.codespan($);break;case"br":P+=k.br($);break;case"del":P+=k.del($);break;default:{const K='Token with "'+$.type+'" type was not found.';if(this.options.silent)return console.error(K),"";throw new Error(K)}}}return P}}class En{constructor(x){Ve(this,"options");Ve(this,"block");this.options=x||y}preprocess(x){return x}postprocess(x){return x}processAllTokens(x){return x}provideLexer(){return this.block?bt.lex:bt.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}}Ve(En,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));const Ut=new class{constructor(...pe){Ve(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null});Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",wt);Ve(this,"Renderer",Zn);Ve(this,"TextRenderer",qr);Ve(this,"Lexer",bt);Ve(this,"Tokenizer",Qt);Ve(this,"Hooks",En);this.use(...pe)}walkTokens(pe,x){var P,R;let k=[];for(const M of pe)switch(k=k.concat(x.call(this,M)),M.type){case"table":{const $=M;for(const K of $.header)k=k.concat(this.walkTokens(K.tokens,x));for(const K of $.rows)for(const ne of K)k=k.concat(this.walkTokens(ne.tokens,x));break}case"list":{const $=M;k=k.concat(this.walkTokens($.items,x));break}default:{const $=M;(R=(P=this.defaults.extensions)==null?void 0:P.childTokens)!=null&&R[$.type]?this.defaults.extensions.childTokens[$.type].forEach(K=>{const ne=$[K].flat(1/0);k=k.concat(this.walkTokens(ne,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 P={...k};if(P.async=this.defaults.async||P.async||!1,k.extensions&&(k.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 K=R.renderer.apply(this,$);return K===!1&&(K=M.apply(this,$)),K}: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)}),P.extensions=x),k.renderer){const R=this.defaults.renderer||new Zn(this.defaults);for(const M in k.renderer){if(!(M in R))throw new Error(`renderer '${M}' does not exist`);if(["options","parser"].includes(M))continue;const $=M,K=k.renderer[$],ne=R[$];R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue||""}}P.renderer=R}if(k.tokenizer){const R=this.defaults.tokenizer||new Qt(this.defaults);for(const M in k.tokenizer){if(!(M in R))throw new Error(`tokenizer '${M}' does not exist`);if(["options","rules","lexer"].includes(M))continue;const $=M,K=k.tokenizer[$],ne=R[$];R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.tokenizer=R}if(k.hooks){const R=this.defaults.hooks||new En;for(const M in k.hooks){if(!(M in R))throw new Error(`hook '${M}' does not exist`);if(["options","block"].includes(M))continue;const $=M,K=k.hooks[$],ne=R[$];En.passThroughHooks.has(M)?R[$]=re=>{if(this.defaults.async)return Promise.resolve(K.call(R,re)).then(xe=>ne.call(R,xe));const ue=K.call(R,re);return ne.call(R,ue)}:R[$]=(...re)=>{let ue=K.apply(R,re);return ue===!1&&(ue=ne.apply(R,re)),ue}}P.hooks=R}if(k.walkTokens){const R=this.defaults.walkTokens,M=k.walkTokens;P.walkTokens=function($){let K=[];return K.push(M.call(this,$)),R&&(K=K.concat(R.call(this,$))),K}}this.defaults={...this.defaults,...P}}),this}setOptions(pe){return this.defaults={...this.defaults,...pe},this}lexer(pe,x){return bt.lex(pe,x??this.defaults)}parser(pe,x){return wt.parse(pe,x??this.defaults)}parseMarkdown(pe){return(x,k)=>{const P={...k},R={...this.defaults,...P},M=this.onError(!!R.silent,!!R.async);if(this.defaults.async===!0&&P.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?bt.lex:bt.lexInline,K=R.hooks?R.hooks.provideParser():pe?wt.parse:wt.parseInline;if(R.async)return Promise.resolve(R.hooks?R.hooks.preprocess(x):x).then(ne=>$(ne,R)).then(ne=>R.hooks?R.hooks.processAllTokens(ne):ne).then(ne=>R.walkTokens?Promise.all(this.walkTokens(ne,R.walkTokens)).then(()=>ne):ne).then(ne=>K(ne,R)).then(ne=>R.hooks?R.hooks.postprocess(ne):ne).catch(M);try{R.hooks&&(x=R.hooks.preprocess(x));let ne=$(x,R);R.hooks&&(ne=R.hooks.processAllTokens(ne)),R.walkTokens&&this.walkTokens(ne,R.walkTokens);let re=K(ne,R);return R.hooks&&(re=R.hooks.postprocess(re)),re}catch(ne){return M(ne)}}}onError(pe,x){return k=>{if(k.message+=`
|
|
136
|
+
Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An error occurred:</p><pre>"+Pe(k.message+"",!0)+"</pre>";return x?Promise.resolve(P):P}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,w(qe.defaults),qe},qe.getDefaults=O,qe.defaults=y,qe.use=function(...pe){return Ut.use(...pe),qe.defaults=Ut.defaults,w(qe.defaults),qe},qe.walkTokens=function(pe,x){return Ut.walkTokens(pe,x)},qe.parseInline=Ut.parseInline,qe.Parser=wt,qe.parser=wt.parse,qe.Renderer=Zn,qe.TextRenderer=qr,qe.Lexer=bt,qe.lexer=bt.lex,qe.Tokenizer=Qt,qe.Hooks=En,qe.parse=qe,qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,wt.parse,bt.lex;var Nl=n(5230),Ml=n.n(Nl),$t=n(1543);class Bl{constructor(x,k,P){this.client=x,this.conf=P,this.reduxStore=k,this.answerMaxHeight=P.answerMaxHeight||150,this.isSearchResultLoading=!1,this.observeResultLoadingState(),(0,N.g3)("markdown",function(M){return typeof M!="string"?"":new(p()).SafeString(qe.parse(M,{breaks:!0,gfm:!0}))}),(0,u.A)(P.containerId)&&(0,a.G)(this.reduxStore,"search",()=>this.render());const R=localStorage.getItem("addSearch-isAiAnswersHidden");if(R!==null){const M=JSON.parse(R);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 P=this.reduxStore.getState().search.isAiAnswersHidden;this.reduxStore.dispatch({type:$t.jK,payload:!P}),localStorage.setItem("addSearch-isAiAnswersHidden",JSON.stringify(!P))})}setupShowMoreButton(){const x=document.querySelector(".answer-container"),k=x&&x.querySelector(".fade-out-overlay"),P=document.querySelector(".show-more-btn"),R=P&&P.querySelector(".button-text"),M=P&&P.querySelector(".chevron");x&&k&&P&&R&&M&&(this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(x.style.maxHeight="".concat(x.scrollHeight,"px"),P.style.display="flex",R.textContent="Show less",k.style.display="none",M.style.transform="rotate(180deg)"):(x.style.maxHeight="".concat(this.answerMaxHeight,"px"),x.scrollHeight>this.answerMaxHeight?(P.style.display="flex",k.style.display="block"):(P.style.display="none",k.style.display="none")),P.addEventListener("click",()=>{this.reduxStore.getState().search.isAiAnswersAnswerExpanded?(this.reduxStore.dispatch({type:$t.Rn,payload:!1}),x.style.maxHeight="".concat(this.answerMaxHeight,"px"),R.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"),R.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"),P=x.querySelector(".copy-confirm-message"),R=x.querySelector(".thumbs-up-btn"),M=x.querySelector(".thumbs-down-btn");x&&k&&P&&R&&M&&(k.addEventListener("click",()=>{const $=document.querySelector(".answer-text").textContent;navigator.clipboard.writeText($).then(()=>{P.textContent="Answer copied!"}).catch(K=>{console.error("Failed to copy answer text with following error: ",K)})}),R.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,P=x.loadingAiAnswersResult,R=x.keyword,M=x.aiAnswersResultError,$={mainHeadlineText:this.conf.mainHeadlineText||"Answer",subHeadlineText:R,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 K;(k.answerText||R&&P)&&(K=this.conf.precompiledTemplate?this.conf.precompiledTemplate($):this.conf.template?p().compile(this.conf.template)($):Ml()($)),!(!K||this.renderedHtml===K)&&(document.getElementById(this.conf.containerId).innerHTML=K,this.renderedHtml=K,this.setupHideAIAnswersToggle(),this.setupShowMoreButton(),this.setupActionButtons(),this.conf.renderCompleteCallback&&typeof this.conf.renderCompleteCallback=="function"&&this.conf.renderCompleteCallback())}}class Dl{constructor(x,k,P){this.client=x,this.reduxStore=k,this.conf=P,(0,u.A)(P.containerId)&&(P.template||P.precompiledTemplate)&&(0,a.G)(this.reduxStore,"segmentedsearch",R=>this.render(R)),this.client.setCollectAnalytics(!1)}render(x){if(x.pendingSegments.length!==0)return;let k;if(k=this.conf.precompiledTemplate?this.conf.precompiledTemplate(x):p().compile(this.conf.template)(x),this.renderedHtml===k)return;const P=document.getElementById(this.conf.containerId);P.innerHTML=k,this.renderedHtml=k;const R=P.querySelectorAll("[data-analytics-click]");(0,Se.$P)(this.client,R,x)}}var Hl=n(8909),Ul=n(4826),$l=n(6353),ql=n(4128),zl=n(878);const Xn="_addsearch_",Pt="*";o().polyfill(),(0,N.ud)();class Vl{constructor(x,k){this.client=x,this.segmentedSearchClients={},this.recommendationsSettings=[],this.settings=k||{},Ne.sh.SEARCH=this.settings.searchParameter||Ne.sh.SEARCH,Ne.sh.FACETS=this.settings.facetsParameter||Ne.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,ce.lq)(this.settings.searchResultsPageUrl));const x=this.settings&&this.settings.createFilterObjectFunction?this.settings.createFilterObjectFunction:T.a;this.shouldInitializeFromBrowserHistory&&(0,Ne.I5)(this.client,this.reduxStore,x,(P,R)=>{this.executeSearch(P,R,!1,null,this.settings.fieldForInstantRedirect),P&&this.settings.hasAiAnswers&&this.executeAiAnswers(P,!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:ce.d3})}executeSearch(x,k,P,R,M){this.reduxStore.dispatch((0,ce.EF)(this.client,x,k,!1,P,this.reduxStore,R,"executeSearch",M));for(let $ in this.segmentedSearchClients)this.reduxStore.dispatch((0,Ul.l$)(this.segmentedSearchClients[$].client,$,x))}executeAiAnswers(x){this.reduxStore.dispatch((0,$t.On)(this.client,x))}fetchRecommendation(x){const k=this.recommendationsSettings.filter(P=>P.containerId===x)[0];k&&this.reduxStore.dispatch((0,zl.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,$l.Ul)(this.client,x.sortBy,x.sortOrder))}matchAllQuery(x){const k=this.reduxStore;k.getState().keyword.value===""&&(k.dispatch((0,Ke.Ai)(Pt,!0)),this.executeSearch(Pt,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,P,R,M,$)=>{this.executeSearch(k,P,R,M,$),!k.startsWith(Xn)&&this.settings.hasAiAnswers&&!R&&this.executeAiAnswers(k,R)})}autocomplete(x){new I.A(this.client,this.reduxStore,this.settings.hasAiAnswers,x)}aiAnswersResult(x){this.shouldInitializeFromBrowserHistory=!0,new Bl(this.client,this.reduxStore,x)}searchResults(x){this.shouldInitializeFromBrowserHistory=!0,new he(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 Dl(x.client,this.reduxStore,x)):console.log("WARNING: segmentedResults component must have a client instance")}facets(x){new U(this.client,this.reduxStore,x,this.settings.baseFilters)}hierarchicalFacets(x){new oe(this.client,this.reduxStore,x,this.settings.baseFilters)}rangeFacets(x){new ee.A(this.client,this.reduxStore,x,this.settings.baseFilters)}filters(x){new Y.A(this.client,this.reduxStore,x)}sortBy(x){new Hl.A(this.client,this.reduxStore,x)}pagination(x){new Ce(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 ql.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,Ie.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,ce.AX)("top"))}registerHandlebarsHelper(x,k){(0,N.g3)(x,k)}registerHandlebarsPartial(x,k){(0,N.bp)(x,k)}}},4922:function(b,c,n){function v(V,H,se){return H in V?Object.defineProperty(V,H,{value:se,enumerable:!0,configurable:!0,writable:!0}):V[H]=se,V}function o(V,H){var se=Object.keys(V);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(V);H&&(de=de.filter(function(we){return Object.getOwnPropertyDescriptor(V,we).enumerable})),se.push.apply(se,de)}return se}function e(V){for(var H=1;H<arguments.length;H++){var se=arguments[H]!=null?arguments[H]:{};H%2?o(Object(se),!0).forEach(function(de){v(V,de,se[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(se)):o(Object(se)).forEach(function(de){Object.defineProperty(V,de,Object.getOwnPropertyDescriptor(se,de))})}return V}function p(V){return"Minified Redux error #"+V+"; visit https://redux.js.org/Errors?code="+V+" for the full message or use the non-minified dev environment for full errors. "}n.d(c,{N:function(){return Ne},G:function(){return We}});var C=typeof Symbol=="function"&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(V){if(typeof V!="object"||V===null)return!1;for(var H=V;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);return Object.getPrototypeOf(V)===H}function g(V,H,se){var de;if(typeof H=="function"&&typeof se=="function"||typeof se=="function"&&typeof arguments[3]=="function")throw new Error(p(0));if(typeof H=="function"&&se===void 0&&(se=H,H=void 0),se!==void 0){if(typeof se!="function")throw new Error(p(1));return se(g)(V,H)}if(typeof V!="function")throw new Error(p(2));var we=V,Se=H,Ae=[],me=Ae,ve=!1;function be(){me===Ae&&(me=Ae.slice())}function Me(){if(ve)throw new Error(p(3));return Se}function X(ie){if(typeof ie!="function")throw new Error(p(4));if(ve)throw new Error(p(5));var he=!0;return be(),me.push(ie),function(){if(he){if(ve)throw new Error(p(6));he=!1,be();var O=me.indexOf(ie);me.splice(O,1),Ae=null}}}function le(ie){if(!s(ie))throw new Error(p(7));if(ie.type===void 0)throw new Error(p(8));if(ve)throw new Error(p(9));try{ve=!0,Se=we(Se,ie)}finally{ve=!1}for(var he=Ae=me,O=0;O<he.length;O++)(0,he[O])();return ie}return le({type:a.INIT}),(de={dispatch:le,subscribe:X,getState:Me,replaceReducer:function(ie){if(typeof ie!="function")throw new Error(p(10));we=ie,le({type:a.REPLACE})}})[C]=function(){var ie,he=X;return(ie={subscribe:function(O){if(typeof O!="object"||O===null)throw new Error(p(11));function y(){O.next&&O.next(Me())}return y(),{unsubscribe:he(y)}}})[C]=function(){return this},ie},de}function d(){for(var V=arguments.length,H=new Array(V),se=0;se<V;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 m=n(6148);const l={pendingRequests:[],keyword:null,suggestions:[],customFields:[],activeSuggestionIndex:null,setSuggestionToSearchField:!1,searchResults:{},searchResultsStats:{},hideAutomatically:!0,visible:!1};var h=n(549),_=n(9369);const S={allAvailableFilters:[],activeFilters:{},activeFacets:{},activeRangeFacets:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],openedHierarchicalFacetGroups:[],activeRangeFilters:{},refreshSearch:!0},I=function(V,H,se){if(V[se.container]||(V[se.container]={}),V[se.container][se.field]||(V[se.container][se.field]={}),V[se.container][se.field][se.value]){const Ae=se.value.lastIndexOf(">"),me=Ae>-1?se.value.slice(0,Ae-1):null;if(delete V[se.container][se.field][se.value],me&&(de=V[se.container][se.field],we=me,!(Object.keys(de).filter(function(ve){return ve.indexOf(we+" >")>-1}).length>0))){const ve=H.indexOf(me);ve>-1&&H.splice(ve,1)}}else{V[se.container][se.field][se.value]="true";for(let me in V[se.container])for(let ve in V[se.container][me])ve.indexOf(se.value+" >")===0&&delete V[se.container][me][ve];H=H.filter(me=>me.indexOf(se.value+" > ")!==0);const Ae=se.value.split(" > ").reduce((me,ve)=>{const be=me[me.length-1],Me=be?be+" > "+ve:ve;return Me!==se.value&&me.push(Me),me},[]);for(let me in V[se.container])for(let ve in V[se.container][me])Ae.indexOf(ve)!==-1&&delete V[se.container][me][ve];H=H.filter(me=>Ae.indexOf(me)===-1).concat(Ae)}var de,we;const Se=H.indexOf(se.value);return Se>-1&&H.splice(Se,1),{activeHierarchicalFacetState:V,indeterminateHierarchicalFacets:H}};var T=n(6993);const A={value:"",skipAutocomplete:!1,searchFieldContainerId:null,setSearchFieldValue:null,minLengthRequiredToFetch:0};var j=n(5756);const U={page:1};var L=n(9770),B=n(1944),N=n(1543);const z={started:!1,keyword:null,results:{},loading:!1,aiAnswersResult:{},loadingAiAnswersResult:!1,aiAnswersResultError:!1,aiAnswerSentiment:"neutral",isAiAnswersAnswerExpanded:!1,isAiAnswersHidden:!1,searchResultsPageUrl:null};var G=n(4826);const oe={pendingSegments:[]};var ee=n(6353);const Y={field:["relevance"],order:[ee.ER]},W={};var Z=n(6843);const ce={fieldStats:{}};var ye=n(878);const _e={container:null,recommendType:null,results:null};var Re=function(V){for(var H=Object.keys(V),se={},de=0;de<H.length;de++){var we=H[de];typeof V[we]=="function"&&(se[we]=V[we])}var Se,Ae=Object.keys(se);try{(function(me){Object.keys(me).forEach(function(ve){var be=me[ve];if(be(void 0,{type:a.INIT})===void 0)throw new Error(p(12));if(be(void 0,{type:a.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(p(13))})})(se)}catch(me){Se=me}return function(me,ve){if(me===void 0&&(me={}),Se)throw Se;for(var be=!1,Me={},X=0;X<Ae.length;X++){var le=Ae[X],ie=se[le],he=me[le],O=ie(he,ve);if(O===void 0)throw ve&&ve.type,new Error(p(14));Me[le]=O,be=be||O!==he}return(be=be||Ae.length!==Object.keys(me).length)?Me:me}}({autocomplete:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case m.VW:let se=[...V.pendingRequests];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingRequests:se});case m.vT:return Object.assign({},V,{suggestions:[],activeSuggestionIndex:null,pendingRequests:[]});case m.nn:return Object.assign({},V,{customFields:[],activeSuggestionIndex:null,pendingRequests:[]});case m.KR:let de=[...V.pendingRequests];return de.indexOf(m.Pf)!==-1&&de.splice(de.indexOf(m.Pf),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:de,suggestions:H.results.suggestions,activeSuggestionIndex:null,visible:!0});case m.kw:let we=[...V.pendingRequests];return we.indexOf(m.Xr)!==-1&&we.splice(we.indexOf(m.Xr),1),Object.assign({},V,{pendingRequests:we,customFields:H.results.autocomplete,activeSuggestionIndex:null,visible:!0});case m.Km:return Object.assign({},V,{keyword:"",pendingRequests:[],searchResults:{},searchResultsStats:{}});case m.p3:const Se=Object.assign({},V.searchResults);Se[H.jsonKey]=H.results.hits;const Ae=Object.assign({},V.searchResultsStats);H.appendResults===!0&&V.searchResults[H.jsonKey]?Se[H.jsonKey]=[...V.searchResults[H.jsonKey],...H.results.hits]:(Ae[H.jsonKey]||(Ae[H.jsonKey]={}),Ae[H.jsonKey].total_hits=H.results.total_hits,Ae[H.jsonKey].processing_time_ms=H.results.processing_time_ms);let me=[...V.pendingRequests];return me.indexOf(H.jsonKey)!==-1&&me.splice(me.indexOf(H.jsonKey),1),Object.assign({},V,{keyword:H.keyword,pendingRequests:me,searchResults:Se,searchResultsStats:Ae,visible:!0,appendResults:H.appendResults===!0});case m.GB:return Object.assign({},V,{visible:!1,activeSuggestionIndex:null});case m.B5:return Object.assign({},V,{dropRendering:!0,visible:!1,activeSuggestionIndex:null});case m.h$:return Object.assign({},V,{visible:!0,dropRendering:!1});case m.FJ:return Object.assign({},V,{hideAutomatically:H.hideAutomatically});case m.d5:return Object.assign({},V,{activeSuggestionIndex:H.index,setSuggestionToSearchField:H.setSuggestionToSearchField});case m.hx:let ve=V.activeSuggestionIndex;if(V.suggestions.length&&V.customFields.length)ve=null;else{const be=V.suggestions.length?"suggestions":"customFields";H.direction===m.Jd?ve===null&&V[be].length>0?ve=0:ve===V[be].length-1?ve=null:ve+=1:H.direction===m.il&&(ve===null&&V[be].length>0?ve=V[be].length-1:ve===0?ve=null:ve-=1)}return Object.assign({},V,{visible:!0,activeSuggestionIndex:ve,setSuggestionToSearchField:!0});default:return V}},filters:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case h.XI:let se=V.allAvailableFilters.slice();if(H.filterObj.type===_.FILTER_TYPE.RANGE){let Me={};Me[H.filterObj.field]={label:H.filterObj.labelShort?H.filterObj.labelShort:H.filterObj.label},se.push(Me)}else if(H.filterObj.options){const Me=Object.assign({},H.filterObj.options);se.push(Me)}return Object.assign({},V,{allAvailableFilters:se});case h.CY:let de=Object.assign({},V.activeFilters);return de[H.filterName]?delete de[H.filterName]:de[H.filterName]=H.value,Object.assign({},V,{activeFilters:de,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:null});case h.Uj:let we=Object.assign({},V.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({},V,{activeRangeFilters:we,refreshSearch:!0});case h.vj:return Object.assign({},V,{activeFacets:{},activeFilters:{},activeHierarchicalFacets:{},indeterminateHierarchicalFacets:[],activeRangeFilters:{},activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":null});case h.Tv:return Object.assign({},V,{activeRangeFacets:{},refreshSearch:H.refreshSearch!==!1,setHistory:H.setHistory});case h.uR:return Object.assign({},V,{activeFilters:H.json||{},refreshSearch:!1});case h.VN:return Object.assign({},V,{activeFacets:H.json||{},refreshSearch:!1});case h.JS:return Object.assign({},V,{activeRangeFacets:Object.assign({},V.activeRangeFacets,H.json),refreshSearch:!!H.refreshSearch,targetFacetGroup:H.field});case h.cl:let Se=Object.assign({},V.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({},V,{activeFacets:Se,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.QW:let Ae=Object.assign({},V.activeHierarchicalFacets),me=V.indeterminateHierarchicalFacets.slice();const ve=I(Ae,me,H);return Ae=ve.activeHierarchicalFacetState,me=ve.indeterminateHierarchicalFacets,Ae.v=Ae.v?Ae.v+1:1,Object.assign({},V,{activeHierarchicalFacets:Ae,indeterminateHierarchicalFacets:me,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.field});case h.IS:let be=Object.assign({},V.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({},V,{activeRangeFacets:be,refreshSearch:H.refreshSearch!==!1,targetFacetGroup:H.byActiveFilterComponent?"component.activeFilters":H.field});default:return V}},keyword:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case T.QR:return Object.assign({},V,{value:H.value,skipAutocomplete:H.skipAutocomplete===!0,searchFieldContainerId:H.searchFieldContainerId,setSearchFieldValue:H.setSearchFieldValue});case T.Le:return Object.assign({},V,{minLengthRequiredToFetch:H.minLengthRequiredToFetch});default:return V}},pagination:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U,H=arguments.length>1?arguments[1]:void 0;return H.type===j.N?Object.assign({},V,{page:H.page}):V},search:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case B.d3:return Object.assign({},V,{started:!0});case B.y$:return Object.assign({},V,{keyword:null,results:{},loading:!1,aiAnswersResult:{},aiAnswersResultError:!1,loadingAiAnswersResult:!1,aiAnswersSentiment:"neutral",dropReturningResults:!0});case B.xE:return Object.assign({},V,{loading:!0,dropReturningResults:!1});case B.mY:if(V.started||console.log("WARNING: AddSearch UI not started with the start() function"),V.dropReturningResults===!0)return V;if(H.keyword.indexOf(L.H)===0)return Object.assign({},V,{loading:!1});let se=H.results;if(H.appendResults===!0&&V.results.hits){const de=[...V.results.hits,...H.results.hits];se.hits=de}return Object.assign({},V,{keyword:H.keyword,results:se,loading:!1,callBy:H.requestBy});case N.Lt:return Object.assign({},V,{loadingAiAnswersResult:H.payload});case N.FW:return Object.assign({},V,{aiAnswersResult:H.payload});case N.mQ:return Object.assign({},V,{aiAnswersResultError:H.payload});case N.wF:return Object.assign({},V,{aiAnswersSentiment:H.payload});case N.Rn:return Object.assign({},V,{isAiAnswersAnswerExpanded:H.payload});case N.jK:return Object.assign({},V,{isAiAnswersHidden:H.payload});case B.j2:return Object.assign({},V,{searchResultsPageUrl:H.url});default:return V}},segmentedsearch:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case G.lD:let se=[...V.pendingSegments];return se.indexOf(H.jsonKey)===-1&&se.push(H.jsonKey),Object.assign({},V,{pendingSegments:se,dropReturningResults:!1});case G.JK:if(H.keyword.indexOf(L.H)===0||V.dropReturningResults===!0)return V;const de={};de[H.jsonKey]=H.results;let we=[...V.pendingSegments];return we.indexOf(H.jsonKey)!==-1&&we.splice(we.indexOf(H.jsonKey),1),Object.assign({},V,de,{pendingSegments:we});case G.VD:return Object.assign({},{pendingSegments:[],dropReturningResults:!0});default:return V}},sortby:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y,H=arguments.length>1?arguments[1]:void 0;return H.type===ee.O0?Object.assign({},V,{field:typeof H.field=="string"?H.field.split(","):H.field,order:typeof H.order=="string"?H.order.split(","):H.order}):V},fieldstats:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case Z.IJ:return Object.assign({},V,{fieldStats:H.fieldStats,callBy:H.callBy});case Z.nb:return Object.assign({},V,{fieldStats:{}});default:return V}},recommendation:function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_e,H=arguments.length>1?arguments[1]:void 0;switch(H.type){case ye.iM:case ye.OU:return Object.assign({},V,{container:H.container,recommendType:H.recommendType,results:H.results});case ye.KE:return Object.assign({},_e);default:return V}},configuration:function(){return arguments.length>0&&arguments[0]!==void 0?arguments[0]:W}});function Ue(V){return function(H){var se=H.dispatch,de=H.getState;return function(we){return function(Se){return typeof Se=="function"?Se(se,de,V):we(Se)}}}}var Ie=Ue();Ie.withExtraArgument=Ue;var Ke=Ie;function Ne(V){const H={configuration:V};let se=d;return V.debug&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&(se=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__),g(Re,H,se(function(){for(var de=arguments.length,we=new Array(de),Se=0;Se<de;Se++)we[Se]=arguments[Se];return function(Ae){return function(){var me=Ae.apply(void 0,arguments),ve=function(){throw new Error(p(15))},be={getState:me.getState,dispatch:function(){return ve.apply(void 0,arguments)}},Me=we.map(function(X){return X(be)});return ve=d.apply(void 0,Me)(me.dispatch),e(e({},me),{},{dispatch:ve})}}}(Ke)))}function We(V,H,se){let de={};function we(){const Ae=V.getState()[H];JSON.stringify(Ae)!==JSON.stringify(de[H])&&(de[H]=Ae,se(de[H]))}let Se=V.subscribe(we);return we(),Se}},6351:function(b,c,n){n.d(c,{$P:function(){return _},ME:function(){return h},b8:function(){return e},d_:function(){return u},mh:function(){return d}});const v=2500;let o=null;function e(T){o=T}function p(T){o&&o(T)}let C=!0;function u(T){C=T}let a=null,s=null,g=!1;function d(T,A,j,U){if(C===!1)return;const L="search";a&&clearTimeout(a),a=setTimeout(()=>{A!==s&&(T.sendStatsEvent(L,A,{numberOfResults:j}),p({action:L,keyword:A,numberOfResults:j,processingTimeMs:U}),s=A,g=!0)},v)}let m=null,l=null;function h(T,A){C===!1||!A||A.length<1||(m&&clearTimeout(m),m=setTimeout(()=>{T!==l&&(A.forEach(j=>j.client.sendStatsEvent("search",T,{numberOfResults:j.numberOfResults})),l=T,g=!0)},v))}function _(T,A,j){if(A&&A.length>0)for(let U=0;U<A.length;U++)A[U].addEventListener("keyup",L=>{L.keyCode===13&&I(L,T,j)}),A[U].addEventListener("pointerdown",L=>{L.button&&L.buttons&&L.button===L.buttons||I(L,T,j)})}function S(T){const A=T.getAttribute("data-analytics-click");return T.nodeName==="BODY"||T.nodeName==="body"?null:A||S(T.parentNode)}function I(T,A,j){if(C===!1)return;const U=S(T.target),L=function(N,z,G){if(z&&z.hits){const oe=((z.page||1)-1)*N;for(let ee=0;ee<z.hits.length;ee++)if(z.hits[ee].id===G)return oe+(ee+1)}return 0}(A.getSettings().paging.pageSize,j,U),B=A.getSettings().keyword;if(A.sendStatsEvent("click",B,{documentId:U,position:L}),p({action:"click",keyword:B,documentId:U,position:L}),g===!1){const N=j?j.total_hits:0,z=j?j.processing_time_ms:0;A.sendStatsEvent("search",B,{numberOfResults:N}),p({action:"search",keyword:B,numberOfResults:N,processingTimeMs:z})}}},4379:function(b,c,n){function v(e,p,C,u){const a=e.querySelectorAll("["+p+"]");for(let s=0;s<a.length;s++)a[s].addEventListener(C,g=>{u(g.target.getAttribute(p))})}function o(e){return!!document.getElementById(e)||(console.log('WARNING: Search UI container with id "'+e+'" not found'),!1)}n.d(c,{A:function(){return o},h:function(){return v}})},3923:function(b,c,n){n.d(c,{GK:function(){return u},bp:function(){return d},g3:function(){return g},ud:function(){return s}});var v=n(2334),o=n.n(v),e=n(261),p=n.n(e),C=n(7435);function u(m,l){const h=m.categories||[];let _="",S=1;l=(0,C.y)(l);do _=h.length>S?h[S]:"",_=_.replace(/^[0-9]+[x]{1}/,"").toLowerCase(),S++;while(_.length<3&&h.length>S);return l&&l[_]?l[_]:_.replace(/[-_]+/g," ")}let a=null;function s(){g("equals",(m,l,h)=>m+""==l+""?h.fn(this):h.inverse(this)),g("not",(m,l,h)=>m+""!=l+""?h.fn(this):h.inverse(this)),g("gt",(m,l,h)=>m>l?h.fn(this):h.inverse(this)),g("lt",(m,l,h)=>m<l?h.fn(this):h.inverse(this)),g("or",(m,l,h)=>m||l?h.fn(this):h.inverse(this)),g("formatPrice",(m,l,h)=>{if(m===void 0||typeof m!="number"||!l||!h)return"";try{if(window.Intl&&!a&&(a=new Intl.NumberFormat(l,{style:"currency",currency:h,minimumFractionDigits:2})),a)return a.format(m)}catch{}return m/100+" "+h})}function g(m,l){o().registerHelper(m,l),p().registerHelper(m,l)}function d(m,l){o().registerPartial(m,l),p().registerPartial(m,l)}},4903:function(b,c,n){n.d(c,{Dh:function(){return g},I5:function(){return m},IR:function(){return S},lG:function(){return I},sh:function(){return u}});var v=n(9770),o=n(6993),e=n(5756),p=n(549),C=n(6353);const u={SEARCH:"search",FILTERS:"search_filters",FACETS:"search_facets",PAGE:"search_page",SORTBY:"search_sort",RANGE_FACETS:"range_facets"},a=1500;let s=null;function g(T,A,j,U){const L=U.getState();L&&L.configuration&&L.configuration.updateBrowserHistory===!1||(j?(s&&clearTimeout(s),s=setTimeout(()=>{d(T,A)},a)):d(T,A))}function d(T,A){if(T===u.SEARCH&&A&&A.indexOf(v.H)===0)return;let j=window.location.href;j.indexOf("#")!==-1&&(j=j.substring(0,j.indexOf("#")));const U=window.location.hash||"",L=h(j);T===u.PAGE&&A==1||T===u.SEARCH&&A==v.Z?delete L[T]:T&&A!==null&&A!==""?L[T]=A:T&&delete L[T];let B=j;j.indexOf("?")!==-1&&(B=j.substring(0,j.indexOf("?"))),JSON.stringify(L)!==JSON.stringify({})&&(B=B+"?"+function(N){let z="";for(let G in N)if(N.hasOwnProperty(G)){z!==""&&(z+="&");let oe="";if(G==="addsearchUnrelatedParams"){z+=N[G].split("&").join("&");continue}N[G]!==null&&N[G]!==void 0&&G!=="addsearchUnrelatedParams"&&(oe="="+encodeURIComponent(N[G])),z=z+G+oe}return z}(L)),B+=U,history.state===null?history.replaceState(L,"",B):JSON.stringify(history.state)!==JSON.stringify(L)&&history.pushState(L,"",B)}function m(T,A,j,U,L,B){const N=h(window.location.href);l(T,A,N,j,U,!1,B),window.onpopstate=z=>{const G=h(window.location.href);l(T,A,G,j,U,L,B)}}function l(T,A,j,U,L,B,N){let z=!1;if(j[u.FILTERS]){const G=_(j[u.FILTERS]);A.dispatch((0,p.eu)(G)),z=!0}if(j[u.FACETS]){const G=_(j[u.FACETS]);A.dispatch((0,p.Xh)(G)),z=!0}if(j[u.RANGE_FACETS]){const G=_(j[u.RANGE_FACETS]);A.dispatch((0,p.ks)(G)),z=!0}if(z){const G=U(A.getState().filters,N);T.setFilterObject(G)}else A.dispatch((0,p.eu)(null)),A.dispatch((0,p.Xh)(null)),T.setFilterObject(N||null);if(j[u.SORTBY]){const G=_(j[u.SORTBY]);A.dispatch((0,C.Ul)(T,G.field,G.order))}if(j[u.PAGE])A.dispatch((0,e.I)(T,parseInt(j[u.PAGE],10),null,A));else{const G=T.getSettings().paging;A.dispatch((0,e.I)(T,G.page,null,A))}if(j[u.SEARCH]){const G=decodeURIComponent(j[u.SEARCH]);A.dispatch((0,o.Ai)(G,!0,null,!0)),L(G)}else B===!0&&(A.dispatch((0,o.Ai)(v.Z,!0,null,!0)),L(v.Z))}function h(T){if(T.indexOf("?")===-1)return{};let A=T.substring(T.indexOf("?")+1);if(A==="")return{};A.indexOf("#")!==-1&&(A=A.substring(0,A.indexOf("#")));let j={};const U=A.split("&"),L=U.filter(N=>N.indexOf(u.SEARCH)===-1&&N.indexOf(u.PAGE)===-1&&N.indexOf(u.SORTBY)===-1&&N.indexOf(u.FILTERS)===-1&&N.indexOf(u.FACETS)===-1&&N.indexOf(u.RANGE_FACETS)===-1),B=U.filter(N=>!L.includes(N));return L.length&&(j.addsearchUnrelatedParams=L.join("&")),B.forEach(N=>{const z=N.split("=");if(z[0]&&z[0].length>0){let G=null;z.length>1&&(G=z[1]||"",G=G.replace(/\+/g,"%20"),G=decodeURIComponent(G)),j[z[0]]=G}}),j}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,A){T.indexOf("?")===-1?window.location.href=T+"?"+u.SEARCH+"="+encodeURIComponent(A):window.location.href=T+"&"+u.SEARCH+"="+encodeURIComponent(A)}},7435:function(b,c,n){function v(e){return!e||Object.keys(e).length===0}function o(e){if(e)return Object.keys(e).reduce((p,C)=>(p[C.toLowerCase()]=e[C],p),{})}n.d(c,{I:function(){return v},y:function(){return o}})},9491:function(b){function c(n,v){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(n),e=1;e<arguments.length;e++){var p=arguments[e];if(p!=null)for(var C=Object.keys(Object(p)),u=0,a=C.length;u<a;u++){var s=C[u],g=Object.getOwnPropertyDescriptor(p,s);g!==void 0&&g.enumerable&&(o[s]=p[s])}}return o}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 v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <div class="item">
|
|
137
|
+
<span>`+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):s)+`</span>
|
|
138
|
+
<button data-type="`+l(typeof(s=(s=h(p,"type")||(e!=null?h(e,"type"):e))!=null?s:d)===m?s.call(g,{name:"type",hash:{},data:u,loc:{start:{line:5,column:25},end:{line:5,column:33}}}):s)+'" data-name="'+l(typeof(s=(s=h(p,"name")||(e!=null?h(e,"name"):e))!=null?s:d)===m?s.call(g,{name:"name",hash:{},data:u,loc:{start:{line:5,column:46},end:{line:5,column:54}}}):s)+'" data-value="'+l(typeof(s=(s=h(p,"value")||(e!=null?h(e,"value"):e))!=null?s:d)===m?s.call(g,{name:"value",hash:{},data:u,loc:{start:{line:5,column:68},end:{line:5,column:77}}}):s)+`"
|
|
139
139
|
`+((a=h(p,"if").call(g,e!=null?h(e,"rangeMin"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:6,column:14},end:{line:6,column:66}}}))!=null?a:"")+`
|
|
140
140
|
`+((a=h(p,"if").call(g,e!=null?h(e,"rangeMax"):e,{name:"if",hash:{},fn:o.program(4,u,0),inverse:o.noop,data:u,loc:{start:{line:7,column:8},end:{line:7,column:60}}}))!=null?a:"")+`
|
|
141
141
|
`+((a=h(p,"if").call(g,e!=null?h(e,"container"):e,{name:"if",hash:{},fn:o.program(6,u,0),inverse:o.noop,data:u,loc:{start:{line:8,column:8},end:{line:8,column:62}}}))!=null?a:"")+`
|
|
@@ -143,7 +143,7 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
143
143
|
</div>
|
|
144
144
|
`},2:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return'data-range-min="'+o.escapeExpression(typeof(a=(a=s(p,"rangeMin")||(e!=null?s(e,"rangeMin"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"rangeMin",hash:{},data:u,loc:{start:{line:6,column:46},end:{line:6,column:58}}}):a)+'"'},4:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return'data-range-max="'+o.escapeExpression(typeof(a=(a=s(p,"rangeMax")||(e!=null?s(e,"rangeMax"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"rangeMax",hash:{},data:u,loc:{start:{line:7,column:40},end:{line:7,column:52}}}):a)+'"'},6:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return'data-container="'+o.escapeExpression(typeof(a=(a=s(p,"container")||(e!=null?s(e,"container"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"container",hash:{},data:u,loc:{start:{line:8,column:41},end:{line:8,column:54}}}):a)+'"'},8:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return'data-conf-fields="'+o.escapeExpression(typeof(a=(a=s(p,"confFields")||(e!=null?s(e,"confFields"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"confFields",hash:{},data:u,loc:{start:{line:9,column:44},end:{line:9,column:58}}}):a)+'"'},10:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=(s(p,"gt")||e&&s(e,"gt")||o.hooks.helperMissing).call(e??(o.nullContext||{}),(a=e!=null?s(e,"active"):e)!=null?s(a,"length"):a,1,{name:"gt",hash:{},fn:o.program(11,u,0),inverse:o.noop,data:u,loc:{start:{line:13,column:4},end:{line:15,column:11}}}))!=null?a:""},11:function(o,e,p,C,u){return` <div class="item"><button data-clearall="true">Clear all</button></div>
|
|
145
145
|
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.lookupProperty||function(d,m){if(Object.prototype.hasOwnProperty.call(d,m))return d[m]};return`<div class="addsearch-active-filters">
|
|
146
|
-
`+((a=g(p,"each").call(s,e!=null?g(e,"active"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?a:"")+((a=g(p,"if").call(s,e!=null?g(e,"clearAll"):e,{name:"if",hash:{},fn:o.program(10,u,0),inverse:o.noop,data:u,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},5230:function(b,
|
|
146
|
+
`+((a=g(p,"each").call(s,e!=null?g(e,"active"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:11,column:11}}}))!=null?a:"")+((a=g(p,"if").call(s,e!=null?g(e,"clearAll"):e,{name:"if",hash:{},fn:o.program(10,u,0),inverse:o.noop,data:u,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},5230:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return` <label class="toggle-switch">
|
|
147
147
|
<input type="checkbox" `+((a=s(p,"unless").call(e??(o.nullContext||{}),e!=null?s(e,"isHidden"):e,{name:"unless",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:30,column:33},end:{line:30,column:71}}}))!=null?a:"")+`>
|
|
148
148
|
<span class="slider round"></span>
|
|
149
149
|
</label>
|
|
@@ -151,12 +151,12 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
151
151
|
<h2 class='error-message-headline'>Unable to generate AI Answer at this time.</h2>
|
|
152
152
|
<p class='error-message-text'></p>We apologize for the inconvenience. Please try again later.</p>
|
|
153
153
|
</div>
|
|
154
|
-
`},7:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m=o.escapeExpression,
|
|
154
|
+
`},7:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m=o.escapeExpression,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return((a=l(p,"if").call(g,e!=null?l(e,"isResultLoading"):e,{name:"if",hash:{},fn:o.program(8,u,0),inverse:o.noop,data:u,loc:{start:{line:44,column:6},end:{line:62,column:13}}}))!=null?a:"")+` <h4 class='sub-headline'>Question: "`+m(typeof(s=(s=l(p,"subHeadlineText")||(e!=null?l(e,"subHeadlineText"):e))!=null?s:d)=="function"?s.call(g,{name:"subHeadlineText",hash:{},data:u,loc:{start:{line:63,column:42},end:{line:63,column:61}}}):s)+`"</h4>
|
|
155
155
|
<div>
|
|
156
156
|
<div class='answer-container'>
|
|
157
157
|
<div class='fade-out-overlay'></div>
|
|
158
158
|
<div class='answer-text'>
|
|
159
|
-
<p>`+m((
|
|
159
|
+
<p>`+m((l(p,"markdown")||e&&l(e,"markdown")||d).call(g,e!=null?l(e,"answerText"):e,{name:"markdown",hash:{},data:u,loc:{start:{line:68,column:15},end:{line:68,column:38}}}))+`</p>
|
|
160
160
|
</div>
|
|
161
161
|
<div class='action-buttons-group'>
|
|
162
162
|
<span class='copy-confirm-message'></span>
|
|
@@ -174,11 +174,11 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
174
174
|
</svg>
|
|
175
175
|
</button>
|
|
176
176
|
<button class='thumbs-up-btn'>
|
|
177
|
-
`+((a=(
|
|
177
|
+
`+((a=(l(p,"equals")||e&&l(e,"equals")||d).call(g,e!=null?l(e,"sentimentState"):e,"positive",{name:"equals",hash:{},fn:o.program(10,u,0),inverse:o.program(12,u,0),data:u,loc:{start:{line:86,column:14},end:{line:109,column:25}}}))!=null?a:"")+` </button>
|
|
178
178
|
<button class='thumbs-down-btn'>
|
|
179
|
-
`+((a=(
|
|
179
|
+
`+((a=(l(p,"equals")||e&&l(e,"equals")||d).call(g,e!=null?l(e,"sentimentState"):e,"negative",{name:"equals",hash:{},fn:o.program(14,u,0),inverse:o.program(16,u,0),data:u,loc:{start:{line:112,column:14},end:{line:135,column:25}}}))!=null?a:"")+` </button>
|
|
180
180
|
</div>
|
|
181
|
-
`+((a=
|
|
181
|
+
`+((a=l(p,"if").call(g,e!=null?l(e,"answerText"):e,{name:"if",hash:{},fn:o.program(18,u,0),inverse:o.noop,data:u,loc:{start:{line:138,column:10},end:{line:149,column:17}}}))!=null?a:"")+` </div>
|
|
182
182
|
<button class='show-more-btn'>
|
|
183
183
|
<span class='button-text'>Show more</span>
|
|
184
184
|
<svg
|
|
@@ -258,15 +258,15 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
258
258
|
</clipPath>
|
|
259
259
|
</defs>
|
|
260
260
|
</svg>
|
|
261
|
-
`},18:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.lookupProperty||function(m,
|
|
261
|
+
`},18:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return` <div class='sources'>
|
|
262
262
|
<h4 class='sources-headline'>`+o.escapeExpression(typeof(s=(s=d(p,"sourcesHeadlineText")||(e!=null?d(e,"sourcesHeadlineText"):e))!=null?s:o.hooks.helperMissing)=="function"?s.call(g,{name:"sourcesHeadlineText",hash:{},data:u,loc:{start:{line:140,column:43},end:{line:140,column:66}}}):s)+`</h4>
|
|
263
263
|
<div class='sources-list'>
|
|
264
264
|
`+((a=d(p,"each").call(g,e!=null?d(e,"sources"):e,{name:"each",hash:{},fn:o.program(19,u,0),inverse:o.noop,data:u,loc:{start:{line:142,column:16},end:{line:146,column:25}}}))!=null?a:"")+` </div>
|
|
265
265
|
</div>
|
|
266
|
-
`},19:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.hooks.helperMissing,d="function",m=o.escapeExpression,
|
|
267
|
-
`+m(typeof(a=(a=
|
|
266
|
+
`},19:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.hooks.helperMissing,d="function",m=o.escapeExpression,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return" <a href='"+m(typeof(a=(a=l(p,"url")||(e!=null?l(e,"url"):e))!=null?a:g)===d?a.call(s,{name:"url",hash:{},data:u,loc:{start:{line:143,column:27},end:{line:143,column:34}}}):a)+`' class='source'>
|
|
267
|
+
`+m(typeof(a=(a=l(p,"title")||(e!=null?l(e,"title"):e))!=null?a:g)===d?a.call(s,{name:"title",hash:{},data:u,loc:{start:{line:144,column:20},end:{line:144,column:29}}}):a)+`
|
|
268
268
|
</a>
|
|
269
|
-
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",
|
|
269
|
+
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class='addsearch-ai-answers-result'>
|
|
270
270
|
<div class='header'>
|
|
271
271
|
<div>
|
|
272
272
|
<div class='main-headline'>
|
|
@@ -283,95 +283,95 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
283
283
|
/>
|
|
284
284
|
</svg>
|
|
285
285
|
|
|
286
|
-
<h3 class='main-headline-text'>`+
|
|
286
|
+
<h3 class='main-headline-text'>`+l(typeof(s=(s=h(p,"mainHeadlineText")||(e!=null?h(e,"mainHeadlineText"):e))!=null?s:d)===m?s.call(g,{name:"mainHeadlineText",hash:{},data:u,loc:{start:{line:18,column:39},end:{line:18,column:59}}}):s)+`</h3>
|
|
287
287
|
</div>
|
|
288
288
|
<p class='ai-explanation-text-mobile'>
|
|
289
|
-
`+
|
|
289
|
+
`+l(typeof(s=(s=h(p,"aiExplanationText")||(e!=null?h(e,"aiExplanationText"):e))!=null?s:d)===m?s.call(g,{name:"aiExplanationText",hash:{},data:u,loc:{start:{line:21,column:8},end:{line:21,column:29}}}):s)+`
|
|
290
290
|
</p>
|
|
291
291
|
</div>
|
|
292
292
|
<div class="header-right-hand-side-container" >
|
|
293
293
|
<p class='ai-explanation-text'>
|
|
294
|
-
`+
|
|
294
|
+
`+l(typeof(s=(s=h(p,"aiExplanationText")||(e!=null?h(e,"aiExplanationText"):e))!=null?s:d)===m?s.call(g,{name:"aiExplanationText",hash:{},data:u,loc:{start:{line:26,column:8},end:{line:26,column:29}}}):s)+`
|
|
295
295
|
</p>
|
|
296
296
|
`+((a=h(p,"if").call(g,e!=null?h(e,"showHideToggle"):e,{name:"if",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:28,column:6},end:{line:33,column:13}}}))!=null?a:"")+` </div>
|
|
297
297
|
</div>
|
|
298
298
|
`+((a=h(p,"unless").call(g,e!=null?h(e,"isHidden"):e,{name:"unless",hash:{},fn:o.program(4,u,0),inverse:o.noop,data:u,loc:{start:{line:36,column:2},end:{line:172,column:13}}}))!=null?a:"")+`</div>
|
|
299
|
-
`},useData:!0})},209:function(b,
|
|
299
|
+
`},useData:!0})},209:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return` <ul class="suggestions">
|
|
300
300
|
`+((g=d(p,"each").call(e??(o.nullContext||{}),s[1]!=null?d(s[1],"suggestions"):s[1],{name:"each",hash:{},fn:o.program(2,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))!=null?g:"")+` </ul>
|
|
301
|
-
`},2:function(o,e,p,C,u,a,s){var g,d,m=e??(o.nullContext||{}),
|
|
302
|
-
`+_(typeof(d=(d=S(p,"value")||(e!=null?S(e,"value"):e))!=null?d:
|
|
301
|
+
`},2:function(o,e,p,C,u,a,s){var g,d,m=e??(o.nullContext||{}),l=o.hooks.helperMissing,h="function",_=o.escapeExpression,S=o.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return' <li data-keyword="'+_(typeof(d=(d=S(p,"value")||(e!=null?S(e,"value"):e))!=null?d:l)===h?d.call(m,{name:"value",hash:{},data:u,loc:{start:{line:5,column:26},end:{line:5,column:35}}}):d)+'" data-index="'+_(typeof(d=(d=S(p,"index")||u&&S(u,"index"))!=null?d:l)===h?d.call(m,{name:"index",hash:{},data:u,loc:{start:{line:5,column:49},end:{line:5,column:59}}}):d)+'" '+((g=(S(p,"equals")||e&&S(e,"equals")||l).call(m,s[2]!=null?S(s[2],"activeSuggestionIndex"):s[2],u&&S(u,"index"),{name:"equals",hash:{},fn:o.program(3,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:5,column:61},end:{line:5,column:132}}}))!=null?g:"")+`>
|
|
302
|
+
`+_(typeof(d=(d=S(p,"value")||(e!=null?S(e,"value"):e))!=null?d:l)===h?d.call(m,{name:"value",hash:{},data:u,loc:{start:{line:6,column:10},end:{line:6,column:19}}}):d)+`
|
|
303
303
|
</li>
|
|
304
|
-
`},3:function(o,e,p,C,u){return'class="active"'},5:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,
|
|
304
|
+
`},3:function(o,e,p,C,u){return'class="active"'},5:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return` <ul class="suggestions">
|
|
305
305
|
`+((g=d(p,"each").call(e??(o.nullContext||{}),s[1]!=null?d(s[1],"customFields"):s[1],{name:"each",hash:{},fn:o.program(2,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:13,column:6},end:{line:17,column:15}}}))!=null?g:"")+` </ul>
|
|
306
|
-
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.hooks.helperMissing,
|
|
307
|
-
`+((g=(
|
|
306
|
+
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.hooks.helperMissing,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return`<div class="addsearch-autocomplete">
|
|
307
|
+
`+((g=(l(p,"gt")||e&&l(e,"gt")||m).call(d,(g=e!=null?l(e,"suggestions"):e)!=null?l(g,"length"):g,0,{name:"gt",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:10,column:9}}}))!=null?g:"")+((g=(l(p,"gt")||e&&l(e,"gt")||m).call(d,(g=e!=null?l(e,"customFields"):e)!=null?l(g,"length"):g,0,{name:"gt",hash:{},fn:o.program(5,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:11,column:2},end:{line:19,column:9}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},1353:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.hooks.helperMissing,d="function",m=o.escapeExpression,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return' <li data-facet="'+m(typeof(a=(a=l(p,"value")||(e!=null?l(e,"value"):e))!=null?a:g)===d?a.call(s,{name:"value",hash:{},data:u,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):a)+`">
|
|
308
308
|
<label>
|
|
309
|
-
<input type="checkbox" value="`+m(typeof(a=(a=
|
|
309
|
+
<input type="checkbox" value="`+m(typeof(a=(a=l(p,"value")||(e!=null?l(e,"value"):e))!=null?a:g)===d?a.call(s,{name:"value",hash:{},data:u,loc:{start:{line:6,column:40},end:{line:6,column:49}}}):a)+'" /><span>'+m(typeof(a=(a=l(p,"value")||(e!=null?l(e,"value"):e))!=null?a:g)===d?a.call(s,{name:"value",hash:{},data:u,loc:{start:{line:6,column:59},end:{line:6,column:68}}}):a)+"</span> <em>("+m(typeof(a=(a=l(p,"count")||(e!=null?l(e,"count"):e))!=null?a:g)===d?a.call(s,{name:"count",hash:{},data:u,loc:{start:{line:6,column:81},end:{line:6,column:90}}}):a)+`)</em>
|
|
310
310
|
</label>
|
|
311
311
|
</li>
|
|
312
312
|
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-facets">
|
|
313
313
|
<ul>
|
|
314
314
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"facets"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))!=null?a:"")+` </ul>
|
|
315
|
-
</div>`},useData:!0})},3668:function(b,
|
|
316
|
-
<input type="checkbox" data-filter="`+
|
|
315
|
+
</div>`},useData:!0})},3668:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return` <label>
|
|
316
|
+
<input type="checkbox" data-filter="`+l(typeof(s=(s=h(p,"key")||u&&h(u,"key"))!=null?s:d)===m?s.call(g,{name:"key",hash:{},data:u,loc:{start:{line:4,column:42},end:{line:4,column:50}}}):s)+'" '+((a=h(p,"if").call(g,e!=null?h(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:52},end:{line:4,column:80}}}))!=null?a:"")+">"+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:81},end:{line:4,column:90}}}):s)+`
|
|
317
317
|
</label>
|
|
318
318
|
`},2:function(o,e,p,C,u){return"checked"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-filters-checkboxgroup">
|
|
319
|
-
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},8810:function(b,
|
|
320
|
-
<input type="radio" name=`+m(o.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+' value="'+m(typeof(d=(d=S(p,"key")||u&&S(u,"key"))!=null?d:h)===_?d.call(
|
|
319
|
+
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},8810:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u,a,s){var g,d,m=o.escapeExpression,l=e??(o.nullContext||{}),h=o.hooks.helperMissing,_="function",S=o.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return` <label>
|
|
320
|
+
<input type="radio" name=`+m(o.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+' value="'+m(typeof(d=(d=S(p,"key")||u&&S(u,"key"))!=null?d:h)===_?d.call(l,{name:"key",hash:{},data:u,loc:{start:{line:4,column:57},end:{line:4,column:65}}}):d)+'" '+((g=S(p,"if").call(l,e!=null?S(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:4,column:67},end:{line:4,column:95}}}))!=null?g:"")+">"+m(typeof(d=(d=S(p,"label")||(e!=null?S(e,"label"):e))!=null?d:h)===_?d.call(l,{name:"label",hash:{},data:u,loc:{start:{line:4,column:96},end:{line:4,column:105}}}):d)+`
|
|
321
321
|
</label>
|
|
322
|
-
`},2:function(o,e,p,C,u){return"checked"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,
|
|
323
|
-
`+((g=d(p,"each").call(e??(o.nullContext||{}),e!=null?d(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(b,
|
|
324
|
-
<label>`+
|
|
325
|
-
<input type="text" name="from" value="`+
|
|
322
|
+
`},2:function(o,e,p,C,u){return"checked"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return`<div class="addsearch-filters-radiogroup">
|
|
323
|
+
`+((g=d(p,"each").call(e??(o.nullContext||{}),e!=null?d(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},3329:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){return"<button>×</button>"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class="addsearch-filters-range">
|
|
324
|
+
<label>`+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:2,column:9},end:{line:2,column:18}}}):s)+`</label>
|
|
325
|
+
<input type="text" name="from" value="`+l(typeof(s=(s=h(p,"from")||(e!=null?h(e,"from"):e))!=null?s:d)===m?s.call(g,{name:"from",hash:{},data:u,loc:{start:{line:3,column:40},end:{line:3,column:48}}}):s)+'" placeholder="'+l(typeof(s=(s=h(p,"fromPlaceholder")||(e!=null?h(e,"fromPlaceholder"):e))!=null?s:d)===m?s.call(g,{name:"fromPlaceholder",hash:{},data:u,loc:{start:{line:3,column:63},end:{line:3,column:82}}}):s)+'"> - <input type="text" name="to" value="'+l(typeof(s=(s=h(p,"to")||(e!=null?h(e,"to"):e))!=null?s:d)===m?s.call(g,{name:"to",hash:{},data:u,loc:{start:{line:3,column:123},end:{line:3,column:129}}}):s)+'" placeholder="'+l(typeof(s=(s=h(p,"toPlaceholder")||(e!=null?h(e,"toPlaceholder"):e))!=null?s:d)===m?s.call(g,{name:"toPlaceholder",hash:{},data:u,loc:{start:{line:3,column:144},end:{line:3,column:161}}}):s)+`">
|
|
326
326
|
`+((a=(h(p,"or")||e&&h(e,"or")||d).call(g,e!=null?h(e,"from"):e,e!=null?h(e,"to"):e,{name:"or",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:2},end:{line:4,column:47}}}))!=null?a:"")+`
|
|
327
|
-
</div>`},useData:!0})},948:function(b,
|
|
327
|
+
</div>`},useData:!0})},948:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <option value="'+l(typeof(s=(s=h(p,"key")||u&&h(u,"key"))!=null?s:d)===m?s.call(g,{name:"key",hash:{},data:u,loc:{start:{line:4,column:21},end:{line:4,column:29}}}):s)+'" '+((a=h(p,"if").call(g,e!=null?h(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:31},end:{line:4,column:60}}}))!=null?a:"")+">"+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:61},end:{line:4,column:70}}}):s)+`</option>
|
|
328
328
|
`},2:function(o,e,p,C,u){return"selected"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-filters-selectlist">
|
|
329
329
|
<select>
|
|
330
330
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
|
|
331
|
-
</div>`},useData:!0})},1572:function(b,
|
|
331
|
+
</div>`},useData:!0})},1572:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <button data-filter="'+l(typeof(s=(s=h(p,"key")||u&&h(u,"key"))!=null?s:d)===m?s.call(g,{name:"key",hash:{},data:u,loc:{start:{line:4,column:27},end:{line:4,column:35}}}):s)+'" '+((a=h(p,"if").call(g,e!=null?h(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:37},end:{line:4,column:72}}}))!=null?a:"")+">"+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:73},end:{line:4,column:82}}}):s)+`</button>
|
|
332
332
|
`},2:function(o,e,p,C,u){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-filters-tabs">
|
|
333
333
|
<div class="tabs">
|
|
334
334
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </div>
|
|
335
|
-
</div>`},useData:!0})},5509:function(b,
|
|
335
|
+
</div>`},useData:!0})},5509:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <button data-filter="'+l(typeof(s=(s=h(p,"key")||u&&h(u,"key"))!=null?s:d)===m?s.call(g,{name:"key",hash:{},data:u,loc:{start:{line:3,column:25},end:{line:3,column:33}}}):s)+'" '+((a=h(p,"if").call(g,e!=null?h(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:35},end:{line:3,column:70}}}))!=null?a:"")+">"+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:3,column:71},end:{line:3,column:80}}}):s)+`</button>
|
|
336
336
|
`},2:function(o,e,p,C,u){return'class="active"'},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-filters-tags">
|
|
337
|
-
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},4278:function(b,
|
|
337
|
+
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+"</div>"},useData:!0})},4278:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a;return(a=o.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<ul class="addsearch-hierarchical-facets">
|
|
338
338
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"facets"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:4,column:11}}}))!=null?a:"")+`</ul>
|
|
339
|
-
`},usePartial:!0,useData:!0})},2009:function(b,
|
|
339
|
+
`},usePartial:!0,useData:!0})},2009:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){return"shrink"},3:function(o,e,p,C,u){return"adds-visibility-hidden"},5:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return` <ul class="addsearch-facet-child-container">
|
|
340
340
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"children"):e,{name:"each",hash:{},fn:o.program(6,u,0),inverse:o.noop,data:u,loc:{start:{line:12,column:8},end:{line:14,column:17}}}))!=null?a:"")+` </ul>
|
|
341
|
-
`},6:function(o,e,p,C,u){var a;return(a=o.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",
|
|
342
|
-
<div class="adds-facet-wrap `+((a=h(p,"if").call(g,(h(p,"validateOpenState")||e&&h(e,"validateOpenState")||d).call(g,e!=null?h(e,"value"):e,{name:"validateOpenState",hash:{},data:u,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?a:"")+'" data-facet="'+
|
|
341
|
+
`},6:function(o,e,p,C,u){var a;return(a=o.invokePartial(n(2009),e,{name:"subHierarchicalFacetsTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?a:""},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<li>
|
|
342
|
+
<div class="adds-facet-wrap `+((a=h(p,"if").call(g,(h(p,"validateOpenState")||e&&h(e,"validateOpenState")||d).call(g,e!=null?h(e,"value"):e,{name:"validateOpenState",hash:{},data:u,loc:{start:{line:2,column:36},end:{line:2,column:61}}}),{name:"if",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:2,column:30},end:{line:2,column:76}}}))!=null?a:"")+'" data-facet="'+l(typeof(s=(s=h(p,"value")||(e!=null?h(e,"value"):e))!=null?s:d)===m?s.call(g,{name:"value",hash:{},data:u,loc:{start:{line:2,column:90},end:{line:2,column:99}}}):s)+`">
|
|
343
343
|
<div class="adds-facet-container">
|
|
344
344
|
<span class="addsearch-facet-group-expansion-arrow `+((a=h(p,"unless").call(g,e!=null?h(e,"children"):e,{name:"unless",hash:{},fn:o.program(3,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:57},end:{line:4,column:110}}}))!=null?a:"")+`"></span>
|
|
345
|
-
<label title="`+
|
|
346
|
-
<input type="checkbox" value="`+
|
|
347
|
-
<span>`+
|
|
345
|
+
<label title="`+l(typeof(s=(s=h(p,"displayValue")||(e!=null?h(e,"displayValue"):e))!=null?s:d)===m?s.call(g,{name:"displayValue",hash:{},data:u,loc:{start:{line:5,column:20},end:{line:5,column:36}}}):s)+"("+l(typeof(s=(s=h(p,"count")||(e!=null?h(e,"count"):e))!=null?s:d)===m?s.call(g,{name:"count",hash:{},data:u,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):s)+`)">
|
|
346
|
+
<input type="checkbox" value="`+l(typeof(s=(s=h(p,"value")||(e!=null?h(e,"value"):e))!=null?s:d)===m?s.call(g,{name:"value",hash:{},data:u,loc:{start:{line:6,column:38},end:{line:6,column:47}}}):s)+'" data-field="'+l(typeof(s=(s=h(p,"field")||(e!=null?h(e,"field"):e))!=null?s:d)===m?s.call(g,{name:"field",hash:{},data:u,loc:{start:{line:6,column:61},end:{line:6,column:70}}}):s)+`" />
|
|
347
|
+
<span>`+l(typeof(s=(s=h(p,"displayValue")||(e!=null?h(e,"displayValue"):e))!=null?s:d)===m?s.call(g,{name:"displayValue",hash:{},data:u,loc:{start:{line:7,column:14},end:{line:7,column:30}}}):s)+"</span> <em>("+l(typeof(s=(s=h(p,"count")||(e!=null?h(e,"count"):e))!=null?s:d)===m?s.call(g,{name:"count",hash:{},data:u,loc:{start:{line:7,column:43},end:{line:7,column:52}}}):s)+`)</em>
|
|
348
348
|
</label>
|
|
349
349
|
</div>
|
|
350
350
|
`+((a=h(p,"if").call(g,e!=null?h(e,"children"):e,{name:"if",hash:{},fn:o.program(5,u,0),inverse:o.noop,data:u,loc:{start:{line:10,column:4},end:{line:16,column:11}}}))!=null?a:"")+` </div>
|
|
351
351
|
</li>
|
|
352
|
-
`},usePartial:!0,useData:!0})},8905:function(b,
|
|
353
|
-
`},4:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=s(p,"if").call(e??(o.nullContext||{}),e!=null?s(e,"hasMorePages"):e,{name:"if",hash:{},fn:o.program(5,u,0),inverse:o.noop,data:u,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?a:""},5:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.hooks.helperMissing,d=o.lookupProperty||function(m,
|
|
352
|
+
`},usePartial:!0,useData:!0})},8905:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=(s(p,"gt")||e&&s(e,"gt")||o.hooks.helperMissing).call(e??(o.nullContext||{}),e!=null?s(e,"totalHits"):e,0,{name:"gt",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:5,column:11}}}))!=null?a:""},2:function(o,e,p,C,u){return` <span>Loading more..</span>
|
|
353
|
+
`},4:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=s(p,"if").call(e??(o.nullContext||{}),e!=null?s(e,"hasMorePages"):e,{name:"if",hash:{},fn:o.program(5,u,0),inverse:o.noop,data:u,loc:{start:{line:6,column:2},end:{line:13,column:2}}}))!=null?a:""},5:function(o,e,p,C,u){var a,s=e??(o.nullContext||{}),g=o.hooks.helperMissing,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return((a=(d(p,"equals")||e&&d(e,"equals")||g).call(s,e!=null?d(e,"type"):e,"BUTTON",{name:"equals",hash:{},fn:o.program(6,u,0),inverse:o.noop,data:u,loc:{start:{line:7,column:4},end:{line:9,column:15}}}))!=null?a:"")+((a=(d(p,"equals")||e&&d(e,"equals")||g).call(s,e!=null?d(e,"type"):e,"INFINITE_SCROLL",{name:"equals",hash:{},fn:o.program(8,u,0),inverse:o.noop,data:u,loc:{start:{line:10,column:4},end:{line:12,column:15}}}))!=null?a:"")+" "},6:function(o,e,p,C,u){return` <button>Load more</button>
|
|
354
354
|
`},8:function(o,e,p,C,u){return` <span class="loadmore-infinite-scroll"></span>
|
|
355
355
|
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-loadmore">
|
|
356
|
-
`+((a=s(p,"if").call(e??(o.nullContext||{}),e!=null?s(e,"isLoading"):e,{name:"if",hash:{},fn:o.program(1,u,0),inverse:o.program(4,u,0),data:u,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},4245:function(b,
|
|
357
|
-
`},3:function(o,e,p,C,u,a,s){var g,d=o.lambda,m=o.escapeExpression,
|
|
356
|
+
`+((a=s(p,"if").call(e??(o.nullContext||{}),e!=null?s(e,"isLoading"):e,{name:"if",hash:{},fn:o.program(1,u,0),inverse:o.program(4,u,0),data:u,loc:{start:{line:2,column:2},end:{line:13,column:9}}}))!=null?a:"")+"</div>"},useData:!0})},4245:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){return` <button data-page="previous" aria-label="Previous page">❮</button>
|
|
357
|
+
`},3:function(o,e,p,C,u,a,s){var g,d=o.lambda,m=o.escapeExpression,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return' <button data-page="'+m(d(e,e))+'" aria-label="Go to results page '+m(d(e,e))+'" '+((g=(l(p,"equals")||e&&l(e,"equals")||o.hooks.helperMissing).call(e??(o.nullContext||{}),s[1]!=null?l(s[1],"currentPage"):s[1],e,{name:"equals",hash:{},fn:o.program(4,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:6,column:74},end:{line:6,column:154}}}))!=null?g:"")+`>
|
|
358
358
|
`+m(d(e,e))+`
|
|
359
359
|
</button>
|
|
360
360
|
`},4:function(o,e,p,C,u){return'data-active="true" aria-current="true"'},6:function(o,e,p,C,u){return` <button data-page="next" aria-label="Next page">❯</button>
|
|
361
|
-
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.hooks.helperMissing,
|
|
362
|
-
`+((g=(
|
|
361
|
+
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.hooks.helperMissing,l=o.lookupProperty||function(h,_){if(Object.prototype.hasOwnProperty.call(h,_))return h[_]};return`<div class="addsearch-pagination">
|
|
362
|
+
`+((g=(l(p,"gt")||e&&l(e,"gt")||m).call(d,e!=null?l(e,"currentPage"):e,1,{name:"gt",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:4,column:9}}}))!=null?g:"")+((g=l(p,"each").call(d,e!=null?l(e,"pages"):e,{name:"each",hash:{},fn:o.program(3,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:5,column:2},end:{line:9,column:11}}}))!=null?g:"")+((g=(l(p,"lt")||e&&l(e,"lt")||m).call(d,e!=null?l(e,"currentPage"):e,e!=null?l(e,"lastPage"):e,{name:"lt",hash:{},fn:o.program(6,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:10,column:2},end:{line:12,column:9}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},6427:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return' <li data-facet="'+l(typeof(s=(s=h(p,"value")||(e!=null?h(e,"value"):e))!=null?s:d)===m?s.call(g,{name:"value",hash:{},data:u,loc:{start:{line:4,column:22},end:{line:4,column:31}}}):s)+'" '+((a=h(p,"unless").call(g,e!=null?h(e,"count"):e,{name:"unless",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:33},end:{line:4,column:82}}}))!=null?a:"")+`>
|
|
363
363
|
<label>
|
|
364
|
-
<input type="checkbox" value="`+
|
|
365
|
-
data-value-min="`+
|
|
366
|
-
data-value-max="`+
|
|
367
|
-
<span>`+
|
|
364
|
+
<input type="checkbox" value="`+l(typeof(s=(s=h(p,"key")||(e!=null?h(e,"key"):e))!=null?s:d)===m?s.call(g,{name:"key",hash:{},data:u,loc:{start:{line:6,column:40},end:{line:6,column:47}}}):s)+`"
|
|
365
|
+
data-value-min="`+l(typeof(s=(s=h(p,"from")||(e!=null?h(e,"from"):e))!=null?s:d)===m?s.call(g,{name:"from",hash:{},data:u,loc:{start:{line:7,column:33},end:{line:7,column:41}}}):s)+`"
|
|
366
|
+
data-value-max="`+l(typeof(s=(s=h(p,"to")||(e!=null?h(e,"to"):e))!=null?s:d)===m?s.call(g,{name:"to",hash:{},data:u,loc:{start:{line:8,column:33},end:{line:8,column:39}}}):s)+`" />
|
|
367
|
+
<span>`+l(typeof(s=(s=h(p,"from")||(e!=null?h(e,"from"):e))!=null?s:d)===m?s.call(g,{name:"from",hash:{},data:u,loc:{start:{line:9,column:16},end:{line:9,column:24}}}):s)+"-"+l(typeof(s=(s=h(p,"to")||(e!=null?h(e,"to"):e))!=null?s:d)===m?s.call(g,{name:"to",hash:{},data:u,loc:{start:{line:9,column:25},end:{line:9,column:31}}}):s)+"</span> <em>("+l(typeof(s=(s=h(p,"count")||(e!=null?h(e,"count"):e))!=null?s:d)===m?s.call(g,{name:"count",hash:{},data:u,loc:{start:{line:9,column:44},end:{line:9,column:53}}}):s)+`)</em>
|
|
368
368
|
</label>
|
|
369
369
|
</li>
|
|
370
370
|
`},2:function(o,e,p,C,u){return'style="display: none"'},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-facets">
|
|
371
371
|
<ul>
|
|
372
372
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"rangeFacets"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:12,column:13}}}))!=null?a:"")+` </ul>
|
|
373
373
|
</div>
|
|
374
|
-
`},useData:!0})},1204:function(b,
|
|
374
|
+
`},useData:!0})},1204:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lambda,g=o.escapeExpression,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return`<div class="addsearch-range-slider">
|
|
375
375
|
<div class="adds-range-slider-container"
|
|
376
376
|
data-slider-min="`+g(s((a=e!=null?d(e,"sliderConfig"):e)!=null?d(a,"min"):a,e))+`"
|
|
377
377
|
data-slider-max="`+g(s((a=e!=null?d(e,"sliderConfig"):e)!=null?d(a,"max"):a,e))+`"
|
|
@@ -387,62 +387,62 @@ Please report this to https://github.com/markedjs/marked.`,pe){const P="<p>An er
|
|
|
387
387
|
</span>
|
|
388
388
|
</div>
|
|
389
389
|
</div>
|
|
390
|
-
`},useData:!0})},8505:function(b,
|
|
391
|
-
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m=o.lookupProperty||function(
|
|
390
|
+
`},useData:!0})},8505:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){return"icon"},3:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return' <button type="button" aria-label="Search button" >'+o.escapeExpression(typeof(a=(a=s(p,"button")||(e!=null?s(e,"button"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"button",hash:{},data:u,loc:{start:{line:7,column:56},end:{line:7,column:66}}}):a)+`</button>
|
|
391
|
+
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m=o.lookupProperty||function(l,h){if(Object.prototype.hasOwnProperty.call(l,h))return l[h]};return`<div class="addsearch-searchfield-container">
|
|
392
392
|
<form class="addsearch-searchfield" autocomplete="off" action="?" role="search">
|
|
393
393
|
<div class="search-field-wrapper">
|
|
394
394
|
<input type="search" placeholder="`+o.escapeExpression(typeof(s=(s=m(p,"placeholder")||(e!=null?m(e,"placeholder"):e))!=null?s:d)=="function"?s.call(g,{name:"placeholder",hash:{},data:u,loc:{start:{line:4,column:40},end:{line:4,column:55}}}):s)+'" aria-label="Search field" class="'+((a=(m(p,"not")||e&&m(e,"not")||d).call(g,e!=null?m(e,"icon"):e,!1,{name:"not",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:90},end:{line:4,column:121}}}))!=null?a:"")+`" />
|
|
395
395
|
</div>
|
|
396
396
|
`+((a=m(p,"if").call(g,e!=null?m(e,"button"):e,{name:"if",hash:{},fn:o.program(3,u,0),inverse:o.noop,data:u,loc:{start:{line:6,column:4},end:{line:8,column:11}}}))!=null?a:"")+` </form>
|
|
397
|
-
</div>`},useData:!0})},303:function(b,
|
|
397
|
+
</div>`},useData:!0})},303:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-searchresults addsearch-searchresults-no-results">
|
|
398
398
|
<h2>No search results with keyword <em>`+o.escapeExpression(typeof(a=(a=s(p,"keyword")||(e!=null?s(e,"keyword"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"keyword",hash:{},data:u,loc:{start:{line:2,column:41},end:{line:2,column:52}}}):a)+`</em></h2>
|
|
399
|
-
</div>`},useData:!0})},2123:function(b,
|
|
400
|
-
`+((g=(h(p,"gt")||e&&h(e,"gt")||
|
|
401
|
-
`+o.escapeExpression(typeof(d=(d=h(p,"total_hits")||(e!=null?h(e,"total_hits"):e))!=null?d:
|
|
399
|
+
</div>`},useData:!0})},2123:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u,a,s){var g=o.lookupProperty||function(d,m){if(Object.prototype.hasOwnProperty.call(d,m))return d[m]};return"Page "+o.escapeExpression(o.lambda(s[1]!=null?g(s[1],"page"):s[1],e))+" of "},3:function(o,e,p,C,u){return"+"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d,m=e??(o.nullContext||{}),l=o.hooks.helperMissing,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return`<div class="number-of-results">
|
|
400
|
+
`+((g=(h(p,"gt")||e&&h(e,"gt")||l).call(m,e!=null?h(e,"page"):e,1,{name:"gt",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:2,column:43}}}))!=null?g:"")+`
|
|
401
|
+
`+o.escapeExpression(typeof(d=(d=h(p,"total_hits")||(e!=null?h(e,"total_hits"):e))!=null?d:l)=="function"?d.call(m,{name:"total_hits",hash:{},data:u,loc:{start:{line:3,column:2},end:{line:3,column:16}}}):d)+((g=(h(p,"equals")||e&&h(e,"equals")||l).call(m,e!=null?h(e,"total_hits"):e,1e4,{name:"equals",hash:{},fn:o.program(3,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:3,column:16},end:{line:3,column:56}}}))!=null?g:"")+` results
|
|
402
402
|
</div>
|
|
403
|
-
`},useData:!0,useDepths:!0})},4111:function(b,
|
|
404
|
-
`},7:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=s(p,"if").call(e??(o.nullContext||{}),(a=e!=null?s(e,"style"):e)!=null?s(a,"image_url"):a,{name:"if",hash:{},fn:o.program(8,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?a:""},8:function(o,e,p,C,u){var a,s,g=o.escapeExpression,d=o.lookupProperty||function(m,
|
|
403
|
+
`},useData:!0,useDepths:!0})},4111:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){return"noimage"},3:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return' style="background-image: url(data:image/jpeg;base64,'+o.escapeExpression(o.lambda((a=e!=null?s(e,"images"):e)!=null?s(a,"main_b64"):a,e))+')"'},5:function(o,e,p,C,u){var a,s,g=o.escapeExpression,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return'<img src="'+g(o.lambda((a=e!=null?d(e,"images"):e)!=null?d(a,"main"):a,e))+'" alt="'+g(typeof(s=(s=d(p,"title")||(e!=null?d(e,"title"):e))!=null?s:o.hooks.helperMissing)=="function"?s.call(e??(o.nullContext||{}),{name:"title",hash:{},data:u,loc:{start:{line:2,column:53},end:{line:2,column:62}}}):s)+`" />
|
|
404
|
+
`},7:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return(a=s(p,"if").call(e??(o.nullContext||{}),(a=e!=null?s(e,"style"):e)!=null?s(a,"image_url"):a,{name:"if",hash:{},fn:o.program(8,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:2},end:{line:3,column:78}}}))!=null?a:""},8:function(o,e,p,C,u){var a,s,g=o.escapeExpression,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return'<img src="'+g(o.lambda((a=e!=null?d(e,"style"):e)!=null?d(a,"image_url"):a,e))+'" alt="'+g(typeof(s=(s=d(p,"title")||(e!=null?d(e,"title"):e))!=null?s:o.hooks.helperMissing)=="function"?s.call(e??(o.nullContext||{}),{name:"title",hash:{},data:u,loc:{start:{line:3,column:65},end:{line:3,column:74}}}):s)+'" />'},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return'<span class="main-image '+o.escapeExpression(typeof(s=(s=d(p,"document_type")||(e!=null?d(e,"document_type"):e))!=null?s:o.hooks.helperMissing)=="function"?s.call(g,{name:"document_type",hash:{},data:u,loc:{start:{line:1,column:24},end:{line:1,column:41}}}):s)+" "+((a=d(p,"unless").call(g,(a=e!=null?d(e,"images"):e)!=null?d(a,"main"):a,{name:"unless",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:1,column:42},end:{line:1,column:83}}}))!=null?a:"")+'"'+((a=d(p,"if").call(g,(a=e!=null?d(e,"images"):e)!=null?d(a,"main"):a,{name:"if",hash:{},fn:o.program(3,u,0),inverse:o.noop,data:u,loc:{start:{line:1,column:84},end:{line:1,column:184}}}))!=null?a:"")+`>
|
|
405
405
|
`+((a=d(p,"if").call(g,(a=e!=null?d(e,"images"):e)!=null?d(a,"main"):a,{name:"if",hash:{},fn:o.program(5,u,0),inverse:o.program(7,u,0),data:u,loc:{start:{line:2,column:2},end:{line:3,column:85}}}))!=null?a:"")+`
|
|
406
406
|
</span>
|
|
407
|
-
`},useData:!0})},6873:function(b,
|
|
407
|
+
`},useData:!0})},6873:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a;return(a=o.invokePartial(n(2123),e,{name:"numberOfResultsTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?a:""},3:function(o,e,p,C,u,a,s){var g,d,m=e??(o.nullContext||{}),l=o.hooks.helperMissing,h="function",_=o.escapeExpression,S=o.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return' <div class="hit'+((g=(S(p,"equals")||e&&S(e,"equals")||l).call(m,e!=null?S(e,"type"):e,"PROMOTED",{name:"equals",hash:{},fn:o.program(4,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:9,column:19},end:{line:9,column:66}}}))!=null?g:"")+`">
|
|
408
408
|
<h3>
|
|
409
|
-
<a href="`+_(typeof(d=(d=S(p,"url")||(e!=null?S(e,"url"):e))!=null?d:
|
|
409
|
+
<a href="`+_(typeof(d=(d=S(p,"url")||(e!=null?S(e,"url"):e))!=null?d:l)===h?d.call(m,{name:"url",hash:{},data:u,loc:{start:{line:11,column:17},end:{line:11,column:24}}}):d)+'" data-analytics-click="'+_(typeof(d=(d=S(p,"id")||(e!=null?S(e,"id"):e))!=null?d:l)===h?d.call(m,{name:"id",hash:{},data:u,loc:{start:{line:11,column:48},end:{line:11,column:54}}}):d)+'">'+((g=S(p,"if").call(m,e!=null?S(e,"title"):e,{name:"if",hash:{},fn:o.program(6,u,0,a,s),inverse:o.program(8,u,0,a,s),data:u,loc:{start:{line:11,column:56},end:{line:11,column:133}}}))!=null?g:"")+`</a>
|
|
410
410
|
</h3>
|
|
411
411
|
<div class="highlight">
|
|
412
|
-
`+((g=o.invokePartial(n(4111),e,{name:"searchResultImageTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?g:"")+" "+((g=typeof(d=(d=S(p,"highlight")||(e!=null?S(e,"highlight"):e))!=null?d:
|
|
412
|
+
`+((g=o.invokePartial(n(4111),e,{name:"searchResultImageTemplate",data:u,indent:" ",helpers:p,partials:C,decorators:o.decorators}))!=null?g:"")+" "+((g=typeof(d=(d=S(p,"highlight")||(e!=null?S(e,"highlight"):e))!=null?d:l)===h?d.call(m,{name:"highlight",hash:{},data:u,loc:{start:{line:15,column:8},end:{line:15,column:23}}}):d)!=null?g:"")+((g=(S(p,"not")||e&&S(e,"not")||l).call(m,e!=null?S(e,"type"):e,"PROMOTED",{name:"not",hash:{},fn:o.program(10,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:15,column:23},end:{line:15,column:62}}}))!=null?g:"")+`
|
|
413
413
|
</div>
|
|
414
|
-
`+((g=(S(p,"gt")||e&&S(e,"gt")||
|
|
414
|
+
`+((g=(S(p,"gt")||e&&S(e,"gt")||l).call(m,(g=e!=null?S(e,"categories"):e)!=null?S(g,"length"):g,1,{name:"gt",hash:{},fn:o.program(12,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:17,column:6},end:{line:21,column:13}}}))!=null?g:"")+` </div>
|
|
415
415
|
`},4:function(o,e,p,C,u){return" promoted"},6:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return" "+o.escapeExpression(typeof(a=(a=s(p,"title")||(e!=null?s(e,"title"):e))!=null?a:o.hooks.helperMissing)=="function"?a.call(e??(o.nullContext||{}),{name:"title",hash:{},data:u,loc:{start:{line:11,column:70},end:{line:11,column:79}}}):a)+" "},8:function(o,e,p,C,u){var a=o.lookupProperty||function(s,g){if(Object.prototype.hasOwnProperty.call(s,g))return s[g]};return" "+o.escapeExpression((a(p,"removeTrailingQueriesFromUrl")||e&&a(e,"removeTrailingQueriesFromUrl")||o.hooks.helperMissing).call(e??(o.nullContext||{}),e!=null?a(e,"url"):e,{name:"removeTrailingQueriesFromUrl",hash:{},data:u,loc:{start:{line:11,column:89},end:{line:11,column:125}}}))+" "},10:function(o,e,p,C,u){return"…"},12:function(o,e,p,C,u,a,s){var g=o.lookupProperty||function(d,m){if(Object.prototype.hasOwnProperty.call(d,m))return d[m]};return` <div class="category">
|
|
416
416
|
`+o.escapeExpression((g(p,"selectCategory")||e&&g(e,"selectCategory")||o.hooks.helperMissing).call(e??(o.nullContext||{}),s[1],{name:"selectCategory",hash:{},data:u,loc:{start:{line:19,column:10},end:{line:19,column:31}}}))+`
|
|
417
417
|
</div>
|
|
418
|
-
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.lookupProperty||function(
|
|
418
|
+
`},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=e??(o.nullContext||{}),m=o.lookupProperty||function(l,h){if(Object.prototype.hasOwnProperty.call(l,h))return l[h]};return`<div class="addsearch-searchresults">
|
|
419
419
|
`+((g=m(p,"if").call(d,e!=null?m(e,"resultcount"):e,{name:"if",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:4,column:2},end:{line:6,column:9}}}))!=null?g:"")+`
|
|
420
420
|
`+((g=m(p,"each").call(d,e!=null?m(e,"hits"):e,{name:"each",hash:{},fn:o.program(3,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:8,column:2},end:{line:23,column:11}}}))!=null?g:"")+`</div>
|
|
421
|
-
`},usePartial:!0,useData:!0,useDepths:!0})},6868:function(b,
|
|
422
|
-
<input type="radio" name=`+m(o.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+" data-field="+m(typeof(d=(d=S(p,"sortBy")||(e!=null?S(e,"sortBy"):e))!=null?d:h)===_?d.call(
|
|
421
|
+
`},usePartial:!0,useData:!0,useDepths:!0})},6868:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u,a,s){var g,d,m=o.escapeExpression,l=e??(o.nullContext||{}),h=o.hooks.helperMissing,_="function",S=o.lookupProperty||function(I,T){if(Object.prototype.hasOwnProperty.call(I,T))return I[T]};return` <label>
|
|
422
|
+
<input type="radio" name=`+m(o.lambda(s[1]!=null?S(s[1],"containerId"):s[1],e))+" data-field="+m(typeof(d=(d=S(p,"sortBy")||(e!=null?S(e,"sortBy"):e))!=null?d:h)===_?d.call(l,{name:"sortBy",hash:{},data:u,loc:{start:{line:4,column:61},end:{line:4,column:71}}}):d)+" data-order="+m(typeof(d=(d=S(p,"order")||(e!=null?S(e,"order"):e))!=null?d:h)===_?d.call(l,{name:"order",hash:{},data:u,loc:{start:{line:4,column:83},end:{line:4,column:92}}}):d)+' value="" '+((g=S(p,"if").call(l,e!=null?S(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:4,column:102},end:{line:4,column:130}}}))!=null?g:"")+">"+m(typeof(d=(d=S(p,"label")||(e!=null?S(e,"label"):e))!=null?d:h)===_?d.call(l,{name:"label",hash:{},data:u,loc:{start:{line:4,column:131},end:{line:4,column:140}}}):d)+`
|
|
423
423
|
</label>
|
|
424
|
-
`},2:function(o,e,p,C,u){return"checked"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,
|
|
425
|
-
`+((g=d(p,"each").call(e??(o.nullContext||{}),e!=null?d(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(b,
|
|
424
|
+
`},2:function(o,e,p,C,u){return"checked"},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u,a,s){var g,d=o.lookupProperty||function(m,l){if(Object.prototype.hasOwnProperty.call(m,l))return m[l]};return`<div class="addsearch-sortby-radiogroup">
|
|
425
|
+
`+((g=d(p,"each").call(e??(o.nullContext||{}),e!=null?d(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0,a,s),inverse:o.noop,data:u,loc:{start:{line:2,column:2},end:{line:6,column:11}}}))!=null?g:"")+"</div>"},useData:!0,useDepths:!0})},9462:function(b,c,n){var v=n(3633);b.exports=(v.default||v).template({1:function(o,e,p,C,u){var a,s,g=e??(o.nullContext||{}),d=o.hooks.helperMissing,m="function",l=o.escapeExpression,h=o.lookupProperty||function(_,S){if(Object.prototype.hasOwnProperty.call(_,S))return _[S]};return" <option data-field="+l(typeof(s=(s=h(p,"sortBy")||(e!=null?h(e,"sortBy"):e))!=null?s:d)===m?s.call(g,{name:"sortBy",hash:{},data:u,loc:{start:{line:4,column:25},end:{line:4,column:35}}}):s)+" data-order="+l(typeof(s=(s=h(p,"order")||(e!=null?h(e,"order"):e))!=null?s:d)===m?s.call(g,{name:"order",hash:{},data:u,loc:{start:{line:4,column:47},end:{line:4,column:56}}}):s)+" "+((a=h(p,"if").call(g,e!=null?h(e,"active"):e,{name:"if",hash:{},fn:o.program(2,u,0),inverse:o.noop,data:u,loc:{start:{line:4,column:57},end:{line:4,column:97}}}))!=null?a:"")+">"+l(typeof(s=(s=h(p,"label")||(e!=null?h(e,"label"):e))!=null?s:d)===m?s.call(g,{name:"label",hash:{},data:u,loc:{start:{line:4,column:98},end:{line:4,column:107}}}):s)+`</option>
|
|
426
426
|
`},2:function(o,e,p,C,u){return'selected="selected"'},compiler:[8,">= 4.3.0"],main:function(o,e,p,C,u){var a,s=o.lookupProperty||function(g,d){if(Object.prototype.hasOwnProperty.call(g,d))return g[d]};return`<div class="addsearch-sortby">
|
|
427
427
|
<select>
|
|
428
428
|
`+((a=s(p,"each").call(e??(o.nullContext||{}),e!=null?s(e,"options"):e,{name:"each",hash:{},fn:o.program(1,u,0),inverse:o.noop,data:u,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))!=null?a:"")+` </select>
|
|
429
|
-
</div>`},useData:!0})},261:function(b,
|
|
429
|
+
</div>`},useData:!0})},261:function(b,c,n){function v(m){return m&&m.__esModule?m:{default:m}}function o(m){if(m&&m.__esModule)return m;var l={};if(m!=null)for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&(l[h]=m[h]);return l.default=m,l}c.__esModule=!0;var e=o(n(2871)),p=v(n(9613)),C=v(n(3769)),u=o(n(2849)),a=o(n(7624)),s=v(n(1148));function g(){var m=new e.HandlebarsEnvironment;return u.extend(m,e),m.SafeString=p.default,m.Exception=C.default,m.Utils=u,m.escapeExpression=u.escapeExpression,m.VM=a,m.template=function(l){return a.template(l,m)},m}var d=g();d.create=g,s.default(d),d.default=d,c.default=d,b.exports=c.default},2871:function(b,c,n){function v(m){return m&&m.__esModule?m:{default:m}}c.__esModule=!0,c.HandlebarsEnvironment=g;var o=n(2849),e=v(n(3769)),p=n(2277),C=n(5940),u=v(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 g(m,l,h){this.helpers=m||{},this.partials=l||{},this.decorators=h||{},p.registerDefaultHelpers(this),C.registerDefaultDecorators(this)}g.prototype={constructor:g,logger:u.default,log:u.default.log,registerHelper:function(m,l){if(o.toString.call(m)===s){if(l)throw new e.default("Arg not supported with multiple helpers");o.extend(this.helpers,m)}else this.helpers[m]=l},unregisterHelper:function(m){delete this.helpers[m]},registerPartial:function(m,l){if(o.toString.call(m)===s)o.extend(this.partials,m);else{if(l===void 0)throw new e.default('Attempting to register a partial called "'+m+'" as undefined');this.partials[m]=l}},unregisterPartial:function(m){delete this.partials[m]},registerDecorator:function(m,l){if(o.toString.call(m)===s){if(l)throw new e.default("Arg not supported with multiple decorators");o.extend(this.decorators,m)}else this.decorators[m]=l},unregisterDecorator:function(m){delete this.decorators[m]},resetLoggedPropertyAccesses:function(){a.resetLoggedProperties()}};var d=u.default.log;c.log=d,c.createFrame=o.createFrame,c.logger=u.default},5940:function(b,c,n){c.__esModule=!0,c.registerDefaultDecorators=function(p){e.default(p)};var v,o=n(7430),e=(v=o)&&v.__esModule?v:{default:v}},7430:function(b,c,n){c.__esModule=!0;var v=n(2849);c.default=function(o){o.registerDecorator("inline",function(e,p,C,u){var a=e;return p.partials||(p.partials={},a=function(s,g){var d=C.partials;C.partials=v.extend({},d,p.partials);var m=e(s,g);return C.partials=d,m}),p.partials[u.args[0]]=u.fn,a})},b.exports=c.default},3769:function(b,c){c.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function v(o,e){var p=e&&e.loc,C=void 0,u=void 0,a=void 0,s=void 0;p&&(C=p.start.line,u=p.end.line,a=p.start.column,s=p.end.column,o+=" - "+C+":"+a);for(var g=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=g[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,v);try{p&&(this.lineNumber=C,this.endLineNumber=u,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{}}v.prototype=new Error,c.default=v,b.exports=c.default},2277:function(b,c,n){function v(g){return g&&g.__esModule?g:{default:g}}c.__esModule=!0,c.registerDefaultHelpers=function(g){o.default(g),e.default(g),p.default(g),C.default(g),u.default(g),a.default(g),s.default(g)},c.moveHelperToHooks=function(g,d,m){g.helpers[d]&&(g.hooks[d]=g.helpers[d],m||delete g.helpers[d])};var o=v(n(6097)),e=v(n(6785)),p=v(n(4353)),C=v(n(2355)),u=v(n(5300)),a=v(n(7466)),s=v(n(908))},6097:function(b,c,n){c.__esModule=!0;var v=n(2849);c.default=function(o){o.registerHelper("blockHelperMissing",function(e,p){var C=p.inverse,u=p.fn;if(e===!0)return u(this);if(e===!1||e==null)return C(this);if(v.isArray(e))return e.length>0?(p.ids&&(p.ids=[p.name]),o.helpers.each(e,p)):C(this);if(p.data&&p.ids){var a=v.createFrame(p.data);a.contextPath=v.appendContextPath(p.data.contextPath,p.name),p={data:a}}return u(e,p)})},b.exports=c.default},6785:function(b,c,n){c.__esModule=!0;var v,o=n(2849),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v};c.default=function(C){C.registerHelper("each",function(u,a){if(!a)throw new p.default("Must pass iterator to #each");var s,g=a.fn,d=a.inverse,m=0,l="",h=void 0,_=void 0;function S(U,L,B){h&&(h.key=U,h.index=L,h.first=L===0,h.last=!!B,_&&(h.contextPath=_+U)),l+=g(u[U],{data:h,blockParams:o.blockParams([u[U],U],[_+U,null])})}if(a.data&&a.ids&&(_=o.appendContextPath(a.data.contextPath,a.ids[0])+"."),o.isFunction(u)&&(u=u.call(this)),a.data&&(h=o.createFrame(a.data)),u&&typeof u=="object")if(o.isArray(u))for(var I=u.length;m<I;m++)m in u&&S(m,m,m===u.length-1);else if(n.g.Symbol&&u[n.g.Symbol.iterator]){for(var T=[],A=u[n.g.Symbol.iterator](),j=A.next();!j.done;j=A.next())T.push(j.value);for(I=(u=T).length;m<I;m++)S(m,m,m===u.length-1)}else s=void 0,Object.keys(u).forEach(function(U){s!==void 0&&S(s,m-1),s=U,m++}),s!==void 0&&S(s,m-1,!0);return m===0&&(l=d(this)),l})},b.exports=c.default},4353:function(b,c,n){c.__esModule=!0;var v,o=n(3769),e=(v=o)&&v.__esModule?v:{default:v};c.default=function(p){p.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 v,o=n(2849),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v};c.default=function(C){C.registerHelper("if",function(u,a){if(arguments.length!=2)throw new p.default("#if requires exactly one argument");return o.isFunction(u)&&(u=u.call(this)),!a.hash.includeZero&&!u||o.isEmpty(u)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(u,a){if(arguments.length!=2)throw new p.default("#unless requires exactly one argument");return C.helpers.if.call(this,u,{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 v=[void 0],o=arguments[arguments.length-1],e=0;e<arguments.length-1;e++)v.push(arguments[e]);var p=1;o.hash.level!=null?p=o.hash.level:o.data&&o.data.level!=null&&(p=o.data.level),v[0]=p,n.log.apply(n,v)})},b.exports=c.default},7466:function(b,c){c.__esModule=!0,c.default=function(n){n.registerHelper("lookup",function(v,o,e){return v&&e.lookupProperty(v,o)})},b.exports=c.default},908:function(b,c,n){c.__esModule=!0;var v,o=n(2849),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v};c.default=function(C){C.registerHelper("with",function(u,a){if(arguments.length!=2)throw new p.default("#with requires exactly one argument");o.isFunction(u)&&(u=u.call(this));var s=a.fn;if(o.isEmpty(u))return a.inverse(this);var g=a.data;return a.data&&a.ids&&((g=o.createFrame(a.data)).contextPath=o.appendContextPath(a.data.contextPath,a.ids[0])),s(u,{data:g,blockParams:o.blockParams([u],[g&&g.contextPath])})})},b.exports=c.default},9726:function(b,c,n){c.__esModule=!0,c.createNewLookupObject=function(){for(var o=arguments.length,e=Array(o),p=0;p<o;p++)e[p]=arguments[p];return v.extend.apply(void 0,[Object.create(null)].concat(e))};var v=n(2849)},3865:function(b,c,n){c.__esModule=!0,c.createProtoAccessControl=function(C){var u=Object.create(null);u.constructor=!1,u.__defineGetter__=!1,u.__defineSetter__=!1,u.__lookupGetter__=!1;var a=Object.create(null);return a.__proto__=!1,{properties:{whitelist:v.createNewLookupObject(a,C.allowedProtoProperties),defaultValue:C.allowProtoPropertiesByDefault},methods:{whitelist:v.createNewLookupObject(u,C.allowedProtoMethods),defaultValue:C.allowProtoMethodsByDefault}}},c.resultIsAllowed=function(C,u,a){return p(typeof C=="function"?u.methods:u.properties,a)},c.resetLoggedProperties=function(){Object.keys(e).forEach(function(C){delete e[C]})};var v=n(9726),o=function(C){if(C&&C.__esModule)return C;var u={};if(C!=null)for(var a in C)Object.prototype.hasOwnProperty.call(C,a)&&(u[a]=C[a]);return u.default=C,u}(n(566)),e=Object.create(null);function p(C,u){return C.whitelist[u]!==void 0?C.whitelist[u]===!0:C.defaultValue!==void 0?C.defaultValue:(function(a){e[a]!==!0&&(e[a]=!0,o.log("error",'Handlebars: Access has been denied to resolve the property "'+a+`" because it is not an "own property" of its parent.
|
|
430
430
|
You can add a runtime option to disable the check or this warning:
|
|
431
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(u),!1)}},2614:function(b,
|
|
431
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}(u),!1)}},2614:function(b,c){c.__esModule=!0,c.wrapHelper=function(n,v){return typeof n!="function"?n:function(){return arguments[arguments.length-1]=v(arguments[arguments.length-1]),n.apply(this,arguments)}}},566:function(b,c,n){c.__esModule=!0;var v=n(2849),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var p=v.indexOf(o.methodMap,e.toLowerCase());e=p>=0?p:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),typeof console<"u"&&o.lookupLevel(o.level)<=e){var p=o.methodMap[e];console[p]||(p="log");for(var C=arguments.length,u=Array(C>1?C-1:0),a=1;a<C;a++)u[a-1]=arguments[a];console[p].apply(console,u)}}};c.default=o,b.exports=c.default},1148:function(b,c,n){c.__esModule=!0,c.default=function(v){var o=n.g!==void 0?n.g:window,e=o.Handlebars;v.noConflict=function(){return o.Handlebars===v&&(o.Handlebars=e),v}},b.exports=c.default},7624:function(b,c,n){c.__esModule=!0,c.checkRevision=function(l){var h=l&&l[0]||1,_=C.COMPILER_REVISION;if(!(h>=C.LAST_COMPATIBLE_COMPILER_REVISION&&h<=C.COMPILER_REVISION)){if(h<C.LAST_COMPATIBLE_COMPILER_REVISION){var S=C.REVISION_CHANGES[_],I=C.REVISION_CHANGES[h];throw new p.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 p.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+l[1]+").")}},c.template=function(l,h){if(!h)throw new p.default("No environment passed to template");if(!l||!l.main)throw new p.default("Unknown template object: "+typeof l);l.main.decorator=l.main_d,h.VM.checkRevision(l.compiler);var _=l.compiler&&l.compiler[0]===7,S={strict:function(T,A,j){if(!T||!(A in T))throw new p.default('"'+A+'" not defined in '+T,{loc:j});return S.lookupProperty(T,A)},lookupProperty:function(T,A){var j=T[A];return j==null||Object.prototype.hasOwnProperty.call(T,A)||s.resultIsAllowed(j,S.protoAccessControl,A)?j:void 0},lookup:function(T,A){for(var j=T.length,U=0;U<j;U++)if((T[U]&&S.lookupProperty(T[U],A))!=null)return T[U][A]},lambda:function(T,A){return typeof T=="function"?T.call(A):T},escapeExpression:o.escapeExpression,invokePartial:function(T,A,j){j.hash&&(A=o.extend({},A,j.hash),j.ids&&(j.ids[0]=!0)),T=h.VM.resolvePartial.call(this,T,A,j);var U=o.extend({},j,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),L=h.VM.invokePartial.call(this,T,A,U);if(L==null&&h.compile&&(j.partials[j.name]=h.compile(T,l.compilerOptions,h),L=j.partials[j.name](A,U)),L!=null){if(j.indent){for(var B=L.split(`
|
|
432
432
|
`),N=0,z=B.length;N<z&&(B[N]||N+1!==z);N++)B[N]=j.indent+B[N];L=B.join(`
|
|
433
|
-
`)}return L}throw new p.default("The partial "+j.name+" could not be compiled when running in runtime-only mode")},fn:function(T){var R=c[T];return R.decorator=c[T+"_d"],R},programs:[],program:function(T,R,j,U,L){var B=this.programs[T],N=this.fn(T);return R||L||U||j?B=g(this,T,N,R,j,U,L):B||(B=this.programs[T]=g(this,T,N)),B},data:function(T,R){for(;T&&R--;)T=T._parent;return T},mergeIfNeeded:function(T,R){var j=T||R;return T&&R&&T!==R&&(j=o.extend({},R,T)),j},nullContext:Object.seal({}),noop:h.VM.noop,compilerInfo:c.compiler};function F(T){var R=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],j=R.data;F._setup(R),!R.partial&&c.useData&&(j=function(N,z){return z&&"root"in z||((z=z?C.createFrame(z):{}).root=N),z}(T,j));var U=void 0,L=c.useBlockParams?[]:void 0;function B(N){return""+c.main(S,N,S.helpers,S.partials,j,L,U)}return c.useDepths&&(U=R.depths?T!=R.depths[0]?[T].concat(R.depths):R.depths:[T]),(B=m(c.main,B,S,R.depths||[],j,L))(T,R)}return F.isTop=!0,F._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 R=o.extend({},h.helpers,T.helpers);(function(U,L){Object.keys(U).forEach(function(B){var N=U[B];U[B]=function(z,K){var oe=K.lookupProperty;return a.wrapHelper(z,function(ee){return o.extend({lookupProperty:oe},ee)})}(N,L)})})(R,S),S.helpers=R,c.usePartial&&(S.partials=S.mergeIfNeeded(T.partials,h.partials)),(c.usePartial||c.useDecorators)&&(S.decorators=o.extend({},h.decorators,T.decorators)),S.hooks={},S.protoAccessControl=s.createProtoAccessControl(T);var j=T.allowCallsToHelperMissing||_;u.moveHelperToHooks(S,"helperMissing",j),u.moveHelperToHooks(S,"blockHelperMissing",j)}},F._child=function(T,R,j,U){if(c.useBlockParams&&!j)throw new p.default("must pass block params");if(c.useDepths&&!U)throw new p.default("must pass parent depths");return g(S,T,c[T],R,0,j,U)},F},l.wrapProgram=g,l.resolvePartial=function(c,h,_){return c?c.call||_.name||(_.name=c,c=_.partials[c]):c=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],c},l.invokePartial=function(c,h,_){var S=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var F=void 0;if(_.fn&&_.fn!==d&&function(){_.data=C.createFrame(_.data);var T=_.fn;F=_.data["partial-block"]=function(R){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return j.data=C.createFrame(j.data),j.data["partial-block"]=S,T(R,j)},T.partials&&(_.partials=o.extend({},_.partials,T.partials))}(),c===void 0&&F&&(c=F),c===void 0)throw new p.default("The partial "+_.name+" could not be found");if(c instanceof Function)return c(h,_)},l.noop=d;var v,o=function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var _ in c)Object.prototype.hasOwnProperty.call(c,_)&&(h[_]=c[_]);return h.default=c,h}(n(2849)),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v},C=n(2871),u=n(2277),a=n(2614),s=n(3865);function g(c,h,_,S,F,T,R){function j(U){var L=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],B=R;return!R||U==R[0]||U===c.nullContext&&R[0]===null||(B=[U].concat(R)),_(c,U,c.helpers,c.partials,L.data||S,T&&[L.blockParams].concat(T),B)}return(j=m(_,j,c,R,S,T)).program=h,j.depth=R?R.length:0,j.blockParams=F||0,j}function d(){return""}function m(c,h,_,S,F,T){if(c.decorator){var R={};h=c.decorator(h,R,_,S&&S[0],F,T,S),o.extend(h,R)}return h}},9613:function(b,l){function n(v){this.string=v}l.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},l.default=n,b.exports=l.default},2849:function(b,l){l.__esModule=!0,l.extend=p,l.indexOf=function(s,g){for(var d=0,m=s.length;d<m;d++)if(s[d]===g)return d;return-1},l.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 o.test(s)?s.replace(v,e):s},l.isEmpty=function(s){return!s&&s!==0||!(!a(s)||s.length!==0)},l.createFrame=function(s){var g=p({},s);return g._parent=s,g},l.blockParams=function(s,g){return s.path=g,s},l.appendContextPath=function(s,g){return(s?s+".":"")+g};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},v=/[&<>"'`=]/g,o=/[&<>"'`=]/;function e(s){return n[s]}function p(s){for(var g=1;g<arguments.length;g++)for(var d in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],d)&&(s[d]=arguments[g][d]);return s}var C=Object.prototype.toString;l.toString=C;var u=function(s){return typeof s=="function"};u(/x/)&&(l.isFunction=u=function(s){return typeof s=="function"&&C.call(s)==="[object Function]"}),l.isFunction=u;var a=Array.isArray||function(s){return!(!s||typeof s!="object")&&C.call(s)==="[object Array]"};l.isArray=a},2334:function(b){b.exports=function(l){function n(o){if(v[o])return v[o].exports;var e=v[o]={exports:{},id:o,loaded:!1};return l[o].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var v={};return n.m=l,n.c=v,n.p="",n(0)}([function(l,n,v){function o(){var h=m();return h.compile=function(_,S){return a.compile(_,S,h)},h.precompile=function(_,S){return a.precompile(_,S,h)},h.AST=C.default,h.Compiler=a.Compiler,h.JavaScriptCompiler=s.default,h.Parser=u.parser,h.parse=u.parse,h.parseWithoutProcessing=u.parseWithoutProcessing,h}var e=v(1).default;n.__esModule=!0;var p=e(v(2)),C=e(v(45)),u=v(46),a=v(51),s=e(v(52)),g=e(v(49)),d=e(v(44)),m=p.default.create,c=o();c.create=o,d.default(c),c.Visitor=g.default,c.default=c,n.default=c,l.exports=n.default},function(l,n){n.default=function(v){return v&&v.__esModule?v:{default:v}},n.__esModule=!0},function(l,n,v){function o(){var c=new C.HandlebarsEnvironment;return s.extend(c,C),c.SafeString=u.default,c.Exception=a.default,c.Utils=s,c.escapeExpression=s.escapeExpression,c.VM=g,c.template=function(h){return g.template(h,c)},c}var e=v(3).default,p=v(1).default;n.__esModule=!0;var C=e(v(4)),u=p(v(37)),a=p(v(6)),s=e(v(5)),g=e(v(38)),d=p(v(44)),m=o();m.create=o,d.default(m),m.default=m,n.default=m,l.exports=n.default},function(l,n){n.default=function(v){if(v&&v.__esModule)return v;var o={};if(v!=null)for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(o[e]=v[e]);return o.default=v,o},n.__esModule=!0},function(l,n,v){function o(F,T,R){this.helpers=F||{},this.partials=T||{},this.decorators=R||{},u.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=v(1).default;n.__esModule=!0,n.HandlebarsEnvironment=o;var p=v(5),C=e(v(6)),u=v(10),a=v(30),s=e(v(32)),g=v(33),d="4.7.7";n.VERSION=d;var m=8;n.COMPILER_REVISION=m;var c=7;n.LAST_COMPATIBLE_COMPILER_REVISION=c;var h={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=h;var _="[object Object]";o.prototype={constructor:o,logger:s.default,log:s.default.log,registerHelper:function(F,T){if(p.toString.call(F)===_){if(T)throw new C.default("Arg not supported with multiple helpers");p.extend(this.helpers,F)}else this.helpers[F]=T},unregisterHelper:function(F){delete this.helpers[F]},registerPartial:function(F,T){if(p.toString.call(F)===_)p.extend(this.partials,F);else{if(T===void 0)throw new C.default('Attempting to register a partial called "'+F+'" as undefined');this.partials[F]=T}},unregisterPartial:function(F){delete this.partials[F]},registerDecorator:function(F,T){if(p.toString.call(F)===_){if(T)throw new C.default("Arg not supported with multiple decorators");p.extend(this.decorators,F)}else this.decorators[F]=T},unregisterDecorator:function(F){delete this.decorators[F]},resetLoggedPropertyAccesses:function(){g.resetLoggedProperties()}};var S=s.default.log;n.log=S,n.createFrame=p.createFrame,n.logger=s.default},function(l,n){function v(S){return g[S]}function o(S){for(var F=1;F<arguments.length;F++)for(var T in arguments[F])Object.prototype.hasOwnProperty.call(arguments[F],T)&&(S[T]=arguments[F][T]);return S}function e(S,F){for(var T=0,R=S.length;T<R;T++)if(S[T]===F)return T;return-1}function p(S){if(typeof S!="string"){if(S&&S.toHTML)return S.toHTML();if(S==null)return"";if(!S)return S+"";S=""+S}return m.test(S)?S.replace(d,v):S}function C(S){return!S&&S!==0||!(!_(S)||S.length!==0)}function u(S){var F=o({},S);return F._parent=S,F}function a(S,F){return S.path=F,S}function s(S,F){return(S?S+".":"")+F}n.__esModule=!0,n.extend=o,n.indexOf=e,n.escapeExpression=p,n.isEmpty=C,n.createFrame=u,n.blockParams=a,n.appendContextPath=s;var g={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},d=/[&<>"'`=]/g,m=/[&<>"'`=]/,c=Object.prototype.toString;n.toString=c;var h=function(S){return typeof S=="function"};h(/x/)&&(n.isFunction=h=function(S){return typeof S=="function"&&c.call(S)==="[object Function]"}),n.isFunction=h;var _=Array.isArray||function(S){return!(!S||typeof S!="object")&&c.call(S)==="[object Array]"};n.isArray=_},function(l,n,v){function o(C,u){var a=u&&u.loc,s=void 0,g=void 0,d=void 0,m=void 0;a&&(s=a.start.line,g=a.end.line,d=a.start.column,m=a.end.column,C+=" - "+s+":"+d);for(var c=Error.prototype.constructor.call(this,C),h=0;h<p.length;h++)this[p[h]]=c[p[h]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=s,this.endLineNumber=g,e?(Object.defineProperty(this,"column",{value:d,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=d,this.endColumn=m))}catch{}}var e=v(7).default;n.__esModule=!0;var p=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];o.prototype=new Error,n.default=o,l.exports=n.default},function(l,n,v){l.exports={default:v(8),__esModule:!0}},function(l,n,v){var o=v(9);l.exports=function(e,p,C){return o.setDesc(e,p,C)}},function(l,n){var v=Object;l.exports={create:v.create,getProto:v.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:v.getOwnPropertyDescriptor,setDesc:v.defineProperty,setDescs:v.defineProperties,getKeys:v.keys,getNames:v.getOwnPropertyNames,getSymbols:v.getOwnPropertySymbols,each:[].forEach}},function(l,n,v){function o(c){C.default(c),u.default(c),a.default(c),s.default(c),g.default(c),d.default(c),m.default(c)}function e(c,h,_){c.helpers[h]&&(c.hooks[h]=c.helpers[h],_||delete c.helpers[h])}var p=v(1).default;n.__esModule=!0,n.registerDefaultHelpers=o,n.moveHelperToHooks=e;var C=p(v(11)),u=p(v(12)),a=p(v(25)),s=p(v(26)),g=p(v(27)),d=p(v(28)),m=p(v(29))},function(l,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(p,C){var u=C.inverse,a=C.fn;if(p===!0)return a(this);if(p===!1||p==null)return u(this);if(o.isArray(p))return p.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(p,C)):u(this);if(C.data&&C.ids){var s=o.createFrame(C.data);s.contextPath=o.appendContextPath(C.data.contextPath,C.name),C={data:s}}return a(p,C)})},l.exports=n.default},function(l,n,v){(function(o){var e=v(13).default,p=v(1).default;n.__esModule=!0;var C=v(5),u=p(v(6));n.default=function(a){a.registerHelper("each",function(s,g){function d(L,B,N){S&&(S.key=L,S.index=B,S.first=B===0,S.last=!!N,F&&(S.contextPath=F+L)),_+=m(s[L],{data:S,blockParams:C.blockParams([s[L],L],[F+L,null])})}if(!g)throw new u.default("Must pass iterator to #each");var m=g.fn,c=g.inverse,h=0,_="",S=void 0,F=void 0;if(g.data&&g.ids&&(F=C.appendContextPath(g.data.contextPath,g.ids[0])+"."),C.isFunction(s)&&(s=s.call(this)),g.data&&(S=C.createFrame(g.data)),s&&typeof s=="object")if(C.isArray(s))for(var T=s.length;h<T;h++)h in s&&d(h,h,h===s.length-1);else if(o.Symbol&&s[o.Symbol.iterator]){for(var R=[],j=s[o.Symbol.iterator](),U=j.next();!U.done;U=j.next())R.push(U.value);for(T=(s=R).length;h<T;h++)d(h,h,h===s.length-1)}else(function(){var L=void 0;e(s).forEach(function(B){L!==void 0&&d(L,h-1),L=B,h++}),L!==void 0&&d(L,h-1,!0)})();return h===0&&(_=c(this)),_})},l.exports=n.default}).call(n,function(){return this}())},function(l,n,v){l.exports={default:v(14),__esModule:!0}},function(l,n,v){v(15),l.exports=v(21).Object.keys},function(l,n,v){var o=v(16);v(18)("keys",function(e){return function(p){return e(o(p))}})},function(l,n,v){var o=v(17);l.exports=function(e){return Object(o(e))}},function(l,n){l.exports=function(v){if(v==null)throw TypeError("Can't call method on "+v);return v}},function(l,n,v){var o=v(19),e=v(21),p=v(24);l.exports=function(C,u){var a=(e.Object||{})[C]||Object[C],s={};s[C]=u(a),o(o.S+o.F*p(function(){a(1)}),"Object",s)}},function(l,n,v){var o=v(20),e=v(21),p=v(22),C="prototype",u=function(a,s,g){var d,m,c,h=a&u.F,_=a&u.G,S=a&u.S,F=a&u.P,T=a&u.B,R=a&u.W,j=_?e:e[s]||(e[s]={}),U=_?o:S?o[s]:(o[s]||{})[C];for(d in _&&(g=s),g)(m=!h&&U&&d in U)&&d in j||(c=m?U[d]:g[d],j[d]=_&&typeof U[d]!="function"?g[d]:T&&m?p(c,o):R&&U[d]==c?function(L){var B=function(N){return this instanceof L?new L(N):L(N)};return B[C]=L[C],B}(c):F&&typeof c=="function"?p(Function.call,c):c,F&&((j[C]||(j[C]={}))[d]=c))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,l.exports=u},function(l,n){var v=l.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=v)},function(l,n){var v=l.exports={version:"1.2.6"};typeof __e=="number"&&(__e=v)},function(l,n,v){var o=v(23);l.exports=function(e,p,C){if(o(e),p===void 0)return e;switch(C){case 1:return function(u){return e.call(p,u)};case 2:return function(u,a){return e.call(p,u,a)};case 3:return function(u,a,s){return e.call(p,u,a,s)}}return function(){return e.apply(p,arguments)}}},function(l,n){l.exports=function(v){if(typeof v!="function")throw TypeError(v+" is not a function!");return v}},function(l,n){l.exports=function(v){try{return!!v()}catch{return!0}}},function(l,n,v){var o=v(1).default;n.__esModule=!0;var e=o(v(6));n.default=function(p){p.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new e.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},l.exports=n.default},function(l,n,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("if",function(u,a){if(arguments.length!=2)throw new p.default("#if requires exactly one argument");return e.isFunction(u)&&(u=u.call(this)),!a.hash.includeZero&&!u||e.isEmpty(u)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(u,a){if(arguments.length!=2)throw new p.default("#unless requires exactly one argument");return C.helpers.if.call(this,u,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},l.exports=n.default},function(l,n){n.__esModule=!0,n.default=function(v){v.registerHelper("log",function(){for(var o=[void 0],e=arguments[arguments.length-1],p=0;p<arguments.length-1;p++)o.push(arguments[p]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),o[0]=C,v.log.apply(v,o)})},l.exports=n.default},function(l,n){n.__esModule=!0,n.default=function(v){v.registerHelper("lookup",function(o,e,p){return o&&p.lookupProperty(o,e)})},l.exports=n.default},function(l,n,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("with",function(u,a){if(arguments.length!=2)throw new p.default("#with requires exactly one argument");e.isFunction(u)&&(u=u.call(this));var s=a.fn;if(e.isEmpty(u))return a.inverse(this);var g=a.data;return a.data&&a.ids&&((g=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),s(u,{data:g,blockParams:e.blockParams([u],[g&&g.contextPath])})})},l.exports=n.default},function(l,n,v){function o(C){p.default(C)}var e=v(1).default;n.__esModule=!0,n.registerDefaultDecorators=o;var p=e(v(31))},function(l,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerDecorator("inline",function(p,C,u,a){var s=p;return C.partials||(C.partials={},s=function(g,d){var m=u.partials;u.partials=o.extend({},m,C.partials);var c=p(g,d);return u.partials=m,c}),C.partials[a.args[0]]=a.fn,s})},l.exports=n.default},function(l,n,v){n.__esModule=!0;var o=v(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(p){if(typeof p=="string"){var C=o.indexOf(e.methodMap,p.toLowerCase());p=C>=0?C:parseInt(p,10)}return p},log:function(p){if(p=e.lookupLevel(p),typeof console<"u"&&e.lookupLevel(e.level)<=p){var C=e.methodMap[p];console[C]||(C="log");for(var u=arguments.length,a=Array(u>1?u-1:0),s=1;s<u;s++)a[s-1]=arguments[s];console[C].apply(console,a)}}};n.default=e,l.exports=n.default},function(l,n,v){function o(h){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var S=a(null);return S.__proto__=!1,{properties:{whitelist:d.createNewLookupObject(S,h.allowedProtoProperties),defaultValue:h.allowProtoPropertiesByDefault},methods:{whitelist:d.createNewLookupObject(_,h.allowedProtoMethods),defaultValue:h.allowProtoMethodsByDefault}}}function e(h,_,S){return p(typeof h=="function"?_.methods:_.properties,S)}function p(h,_){return h.whitelist[_]!==void 0?h.whitelist[_]===!0:h.defaultValue!==void 0?h.defaultValue:(C(_),!1)}function C(h){c[h]!==!0&&(c[h]=!0,m.log("error",'Handlebars: Access has been denied to resolve the property "'+h+`" because it is not an "own property" of its parent.
|
|
433
|
+
`)}return L}throw new p.default("The partial "+j.name+" could not be compiled when running in runtime-only mode")},fn:function(T){var A=l[T];return A.decorator=l[T+"_d"],A},programs:[],program:function(T,A,j,U,L){var B=this.programs[T],N=this.fn(T);return A||L||U||j?B=g(this,T,N,A,j,U,L):B||(B=this.programs[T]=g(this,T,N)),B},data:function(T,A){for(;T&&A--;)T=T._parent;return T},mergeIfNeeded:function(T,A){var j=T||A;return T&&A&&T!==A&&(j=o.extend({},A,T)),j},nullContext:Object.seal({}),noop:h.VM.noop,compilerInfo:l.compiler};function I(T){var A=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],j=A.data;I._setup(A),!A.partial&&l.useData&&(j=function(N,z){return z&&"root"in z||((z=z?C.createFrame(z):{}).root=N),z}(T,j));var U=void 0,L=l.useBlockParams?[]:void 0;function B(N){return""+l.main(S,N,S.helpers,S.partials,j,L,U)}return l.useDepths&&(U=A.depths?T!=A.depths[0]?[T].concat(A.depths):A.depths:[T]),(B=m(l.main,B,S,A.depths||[],j,L))(T,A)}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 A=o.extend({},h.helpers,T.helpers);(function(U,L){Object.keys(U).forEach(function(B){var N=U[B];U[B]=function(z,G){var oe=G.lookupProperty;return a.wrapHelper(z,function(ee){return o.extend({lookupProperty:oe},ee)})}(N,L)})})(A,S),S.helpers=A,l.usePartial&&(S.partials=S.mergeIfNeeded(T.partials,h.partials)),(l.usePartial||l.useDecorators)&&(S.decorators=o.extend({},h.decorators,T.decorators)),S.hooks={},S.protoAccessControl=s.createProtoAccessControl(T);var j=T.allowCallsToHelperMissing||_;u.moveHelperToHooks(S,"helperMissing",j),u.moveHelperToHooks(S,"blockHelperMissing",j)}},I._child=function(T,A,j,U){if(l.useBlockParams&&!j)throw new p.default("must pass block params");if(l.useDepths&&!U)throw new p.default("must pass parent depths");return g(S,T,l[T],A,0,j,U)},I},c.wrapProgram=g,c.resolvePartial=function(l,h,_){return l?l.call||_.name||(_.name=l,l=_.partials[l]):l=_.name==="@partial-block"?_.data["partial-block"]:_.partials[_.name],l},c.invokePartial=function(l,h,_){var S=_.data&&_.data["partial-block"];_.partial=!0,_.ids&&(_.data.contextPath=_.ids[0]||_.data.contextPath);var I=void 0;if(_.fn&&_.fn!==d&&function(){_.data=C.createFrame(_.data);var T=_.fn;I=_.data["partial-block"]=function(A){var j=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return j.data=C.createFrame(j.data),j.data["partial-block"]=S,T(A,j)},T.partials&&(_.partials=o.extend({},_.partials,T.partials))}(),l===void 0&&I&&(l=I),l===void 0)throw new p.default("The partial "+_.name+" could not be found");if(l instanceof Function)return l(h,_)},c.noop=d;var v,o=function(l){if(l&&l.__esModule)return l;var h={};if(l!=null)for(var _ in l)Object.prototype.hasOwnProperty.call(l,_)&&(h[_]=l[_]);return h.default=l,h}(n(2849)),e=n(3769),p=(v=e)&&v.__esModule?v:{default:v},C=n(2871),u=n(2277),a=n(2614),s=n(3865);function g(l,h,_,S,I,T,A){function j(U){var L=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],B=A;return!A||U==A[0]||U===l.nullContext&&A[0]===null||(B=[U].concat(A)),_(l,U,l.helpers,l.partials,L.data||S,T&&[L.blockParams].concat(T),B)}return(j=m(_,j,l,A,S,T)).program=h,j.depth=A?A.length:0,j.blockParams=I||0,j}function d(){return""}function m(l,h,_,S,I,T){if(l.decorator){var A={};h=l.decorator(h,A,_,S&&S[0],I,T,S),o.extend(h,A)}return h}},9613:function(b,c){function n(v){this.string=v}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=p,c.indexOf=function(s,g){for(var d=0,m=s.length;d<m;d++)if(s[d]===g)return d;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 o.test(s)?s.replace(v,e):s},c.isEmpty=function(s){return!s&&s!==0||!(!a(s)||s.length!==0)},c.createFrame=function(s){var g=p({},s);return g._parent=s,g},c.blockParams=function(s,g){return s.path=g,s},c.appendContextPath=function(s,g){return(s?s+".":"")+g};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},v=/[&<>"'`=]/g,o=/[&<>"'`=]/;function e(s){return n[s]}function p(s){for(var g=1;g<arguments.length;g++)for(var d in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],d)&&(s[d]=arguments[g][d]);return s}var C=Object.prototype.toString;c.toString=C;var u=function(s){return typeof s=="function"};u(/x/)&&(c.isFunction=u=function(s){return typeof s=="function"&&C.call(s)==="[object Function]"}),c.isFunction=u;var a=Array.isArray||function(s){return!(!s||typeof s!="object")&&C.call(s)==="[object Array]"};c.isArray=a},2334:function(b){b.exports=function(c){function n(o){if(v[o])return v[o].exports;var e=v[o]={exports:{},id:o,loaded:!1};return c[o].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var v={};return n.m=c,n.c=v,n.p="",n(0)}([function(c,n,v){function o(){var h=m();return h.compile=function(_,S){return a.compile(_,S,h)},h.precompile=function(_,S){return a.precompile(_,S,h)},h.AST=C.default,h.Compiler=a.Compiler,h.JavaScriptCompiler=s.default,h.Parser=u.parser,h.parse=u.parse,h.parseWithoutProcessing=u.parseWithoutProcessing,h}var e=v(1).default;n.__esModule=!0;var p=e(v(2)),C=e(v(45)),u=v(46),a=v(51),s=e(v(52)),g=e(v(49)),d=e(v(44)),m=p.default.create,l=o();l.create=o,d.default(l),l.Visitor=g.default,l.default=l,n.default=l,c.exports=n.default},function(c,n){n.default=function(v){return v&&v.__esModule?v:{default:v}},n.__esModule=!0},function(c,n,v){function o(){var l=new C.HandlebarsEnvironment;return s.extend(l,C),l.SafeString=u.default,l.Exception=a.default,l.Utils=s,l.escapeExpression=s.escapeExpression,l.VM=g,l.template=function(h){return g.template(h,l)},l}var e=v(3).default,p=v(1).default;n.__esModule=!0;var C=e(v(4)),u=p(v(37)),a=p(v(6)),s=e(v(5)),g=e(v(38)),d=p(v(44)),m=o();m.create=o,d.default(m),m.default=m,n.default=m,c.exports=n.default},function(c,n){n.default=function(v){if(v&&v.__esModule)return v;var o={};if(v!=null)for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(o[e]=v[e]);return o.default=v,o},n.__esModule=!0},function(c,n,v){function o(I,T,A){this.helpers=I||{},this.partials=T||{},this.decorators=A||{},u.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}var e=v(1).default;n.__esModule=!0,n.HandlebarsEnvironment=o;var p=v(5),C=e(v(6)),u=v(10),a=v(30),s=e(v(32)),g=v(33),d="4.7.7";n.VERSION=d;var m=8;n.COMPILER_REVISION=m;var l=7;n.LAST_COMPATIBLE_COMPILER_REVISION=l;var h={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=h;var _="[object Object]";o.prototype={constructor:o,logger:s.default,log:s.default.log,registerHelper:function(I,T){if(p.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple helpers");p.extend(this.helpers,I)}else this.helpers[I]=T},unregisterHelper:function(I){delete this.helpers[I]},registerPartial:function(I,T){if(p.toString.call(I)===_)p.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(p.toString.call(I)===_){if(T)throw new C.default("Arg not supported with multiple decorators");p.extend(this.decorators,I)}else this.decorators[I]=T},unregisterDecorator:function(I){delete this.decorators[I]},resetLoggedPropertyAccesses:function(){g.resetLoggedProperties()}};var S=s.default.log;n.log=S,n.createFrame=p.createFrame,n.logger=s.default},function(c,n){function v(S){return g[S]}function o(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,A=S.length;T<A;T++)if(S[T]===I)return T;return-1}function p(S){if(typeof S!="string"){if(S&&S.toHTML)return S.toHTML();if(S==null)return"";if(!S)return S+"";S=""+S}return m.test(S)?S.replace(d,v):S}function C(S){return!S&&S!==0||!(!_(S)||S.length!==0)}function u(S){var I=o({},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=o,n.indexOf=e,n.escapeExpression=p,n.isEmpty=C,n.createFrame=u,n.blockParams=a,n.appendContextPath=s;var g={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},d=/[&<>"'`=]/g,m=/[&<>"'`=]/,l=Object.prototype.toString;n.toString=l;var h=function(S){return typeof S=="function"};h(/x/)&&(n.isFunction=h=function(S){return typeof S=="function"&&l.call(S)==="[object Function]"}),n.isFunction=h;var _=Array.isArray||function(S){return!(!S||typeof S!="object")&&l.call(S)==="[object Array]"};n.isArray=_},function(c,n,v){function o(C,u){var a=u&&u.loc,s=void 0,g=void 0,d=void 0,m=void 0;a&&(s=a.start.line,g=a.end.line,d=a.start.column,m=a.end.column,C+=" - "+s+":"+d);for(var l=Error.prototype.constructor.call(this,C),h=0;h<p.length;h++)this[p[h]]=l[p[h]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=s,this.endLineNumber=g,e?(Object.defineProperty(this,"column",{value:d,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:m,enumerable:!0})):(this.column=d,this.endColumn=m))}catch{}}var e=v(7).default;n.__esModule=!0;var p=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];o.prototype=new Error,n.default=o,c.exports=n.default},function(c,n,v){c.exports={default:v(8),__esModule:!0}},function(c,n,v){var o=v(9);c.exports=function(e,p,C){return o.setDesc(e,p,C)}},function(c,n){var v=Object;c.exports={create:v.create,getProto:v.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:v.getOwnPropertyDescriptor,setDesc:v.defineProperty,setDescs:v.defineProperties,getKeys:v.keys,getNames:v.getOwnPropertyNames,getSymbols:v.getOwnPropertySymbols,each:[].forEach}},function(c,n,v){function o(l){C.default(l),u.default(l),a.default(l),s.default(l),g.default(l),d.default(l),m.default(l)}function e(l,h,_){l.helpers[h]&&(l.hooks[h]=l.helpers[h],_||delete l.helpers[h])}var p=v(1).default;n.__esModule=!0,n.registerDefaultHelpers=o,n.moveHelperToHooks=e;var C=p(v(11)),u=p(v(12)),a=p(v(25)),s=p(v(26)),g=p(v(27)),d=p(v(28)),m=p(v(29))},function(c,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerHelper("blockHelperMissing",function(p,C){var u=C.inverse,a=C.fn;if(p===!0)return a(this);if(p===!1||p==null)return u(this);if(o.isArray(p))return p.length>0?(C.ids&&(C.ids=[C.name]),e.helpers.each(p,C)):u(this);if(C.data&&C.ids){var s=o.createFrame(C.data);s.contextPath=o.appendContextPath(C.data.contextPath,C.name),C={data:s}}return a(p,C)})},c.exports=n.default},function(c,n,v){(function(o){var e=v(13).default,p=v(1).default;n.__esModule=!0;var C=v(5),u=p(v(6));n.default=function(a){a.registerHelper("each",function(s,g){function d(L,B,N){S&&(S.key=L,S.index=B,S.first=B===0,S.last=!!N,I&&(S.contextPath=I+L)),_+=m(s[L],{data:S,blockParams:C.blockParams([s[L],L],[I+L,null])})}if(!g)throw new u.default("Must pass iterator to #each");var m=g.fn,l=g.inverse,h=0,_="",S=void 0,I=void 0;if(g.data&&g.ids&&(I=C.appendContextPath(g.data.contextPath,g.ids[0])+"."),C.isFunction(s)&&(s=s.call(this)),g.data&&(S=C.createFrame(g.data)),s&&typeof s=="object")if(C.isArray(s))for(var T=s.length;h<T;h++)h in s&&d(h,h,h===s.length-1);else if(o.Symbol&&s[o.Symbol.iterator]){for(var A=[],j=s[o.Symbol.iterator](),U=j.next();!U.done;U=j.next())A.push(U.value);for(T=(s=A).length;h<T;h++)d(h,h,h===s.length-1)}else(function(){var L=void 0;e(s).forEach(function(B){L!==void 0&&d(L,h-1),L=B,h++}),L!==void 0&&d(L,h-1,!0)})();return h===0&&(_=l(this)),_})},c.exports=n.default}).call(n,function(){return this}())},function(c,n,v){c.exports={default:v(14),__esModule:!0}},function(c,n,v){v(15),c.exports=v(21).Object.keys},function(c,n,v){var o=v(16);v(18)("keys",function(e){return function(p){return e(o(p))}})},function(c,n,v){var o=v(17);c.exports=function(e){return Object(o(e))}},function(c,n){c.exports=function(v){if(v==null)throw TypeError("Can't call method on "+v);return v}},function(c,n,v){var o=v(19),e=v(21),p=v(24);c.exports=function(C,u){var a=(e.Object||{})[C]||Object[C],s={};s[C]=u(a),o(o.S+o.F*p(function(){a(1)}),"Object",s)}},function(c,n,v){var o=v(20),e=v(21),p=v(22),C="prototype",u=function(a,s,g){var d,m,l,h=a&u.F,_=a&u.G,S=a&u.S,I=a&u.P,T=a&u.B,A=a&u.W,j=_?e:e[s]||(e[s]={}),U=_?o:S?o[s]:(o[s]||{})[C];for(d in _&&(g=s),g)(m=!h&&U&&d in U)&&d in j||(l=m?U[d]:g[d],j[d]=_&&typeof U[d]!="function"?g[d]:T&&m?p(l,o):A&&U[d]==l?function(L){var B=function(N){return this instanceof L?new L(N):L(N)};return B[C]=L[C],B}(l):I&&typeof l=="function"?p(Function.call,l):l,I&&((j[C]||(j[C]={}))[d]=l))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,c.exports=u},function(c,n){var v=c.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=v)},function(c,n){var v=c.exports={version:"1.2.6"};typeof __e=="number"&&(__e=v)},function(c,n,v){var o=v(23);c.exports=function(e,p,C){if(o(e),p===void 0)return e;switch(C){case 1:return function(u){return e.call(p,u)};case 2:return function(u,a){return e.call(p,u,a)};case 3:return function(u,a,s){return e.call(p,u,a,s)}}return function(){return e.apply(p,arguments)}}},function(c,n){c.exports=function(v){if(typeof v!="function")throw TypeError(v+" is not a function!");return v}},function(c,n){c.exports=function(v){try{return!!v()}catch{return!0}}},function(c,n,v){var o=v(1).default;n.__esModule=!0;var e=o(v(6));n.default=function(p){p.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,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("if",function(u,a){if(arguments.length!=2)throw new p.default("#if requires exactly one argument");return e.isFunction(u)&&(u=u.call(this)),!a.hash.includeZero&&!u||e.isEmpty(u)?a.inverse(this):a.fn(this)}),C.registerHelper("unless",function(u,a){if(arguments.length!=2)throw new p.default("#unless requires exactly one argument");return C.helpers.if.call(this,u,{fn:a.inverse,inverse:a.fn,hash:a.hash})})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(v){v.registerHelper("log",function(){for(var o=[void 0],e=arguments[arguments.length-1],p=0;p<arguments.length-1;p++)o.push(arguments[p]);var C=1;e.hash.level!=null?C=e.hash.level:e.data&&e.data.level!=null&&(C=e.data.level),o[0]=C,v.log.apply(v,o)})},c.exports=n.default},function(c,n){n.__esModule=!0,n.default=function(v){v.registerHelper("lookup",function(o,e,p){return o&&p.lookupProperty(o,e)})},c.exports=n.default},function(c,n,v){var o=v(1).default;n.__esModule=!0;var e=v(5),p=o(v(6));n.default=function(C){C.registerHelper("with",function(u,a){if(arguments.length!=2)throw new p.default("#with requires exactly one argument");e.isFunction(u)&&(u=u.call(this));var s=a.fn;if(e.isEmpty(u))return a.inverse(this);var g=a.data;return a.data&&a.ids&&((g=e.createFrame(a.data)).contextPath=e.appendContextPath(a.data.contextPath,a.ids[0])),s(u,{data:g,blockParams:e.blockParams([u],[g&&g.contextPath])})})},c.exports=n.default},function(c,n,v){function o(C){p.default(C)}var e=v(1).default;n.__esModule=!0,n.registerDefaultDecorators=o;var p=e(v(31))},function(c,n,v){n.__esModule=!0;var o=v(5);n.default=function(e){e.registerDecorator("inline",function(p,C,u,a){var s=p;return C.partials||(C.partials={},s=function(g,d){var m=u.partials;u.partials=o.extend({},m,C.partials);var l=p(g,d);return u.partials=m,l}),C.partials[a.args[0]]=a.fn,s})},c.exports=n.default},function(c,n,v){n.__esModule=!0;var o=v(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(p){if(typeof p=="string"){var C=o.indexOf(e.methodMap,p.toLowerCase());p=C>=0?C:parseInt(p,10)}return p},log:function(p){if(p=e.lookupLevel(p),typeof console<"u"&&e.lookupLevel(e.level)<=p){var C=e.methodMap[p];console[C]||(C="log");for(var u=arguments.length,a=Array(u>1?u-1:0),s=1;s<u;s++)a[s-1]=arguments[s];console[C].apply(console,a)}}};n.default=e,c.exports=n.default},function(c,n,v){function o(h){var _=a(null);_.constructor=!1,_.__defineGetter__=!1,_.__defineSetter__=!1,_.__lookupGetter__=!1;var S=a(null);return S.__proto__=!1,{properties:{whitelist:d.createNewLookupObject(S,h.allowedProtoProperties),defaultValue:h.allowProtoPropertiesByDefault},methods:{whitelist:d.createNewLookupObject(_,h.allowedProtoMethods),defaultValue:h.allowProtoMethodsByDefault}}}function e(h,_,S){return p(typeof h=="function"?_.methods:_.properties,S)}function p(h,_){return h.whitelist[_]!==void 0?h.whitelist[_]===!0:h.defaultValue!==void 0?h.defaultValue:(C(_),!1)}function C(h){l[h]!==!0&&(l[h]=!0,m.log("error",'Handlebars: Access has been denied to resolve the property "'+h+`" because it is not an "own property" of its parent.
|
|
434
434
|
You can add a runtime option to disable the check or this warning:
|
|
435
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function u(){s(
|
|
436
|
-
`),Ce=0,
|
|
437
|
-
`)}return ge}throw new T.default("The partial "+Z.name+" could not be compiled when running in runtime-only mode")}function K(Y){function W(Ce){return""+B.main(ee,Ce,ee.helpers,ee.partials,ce,_e,ge)}var Z=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ce=Z.data;K._setup(Z),!Z.partial&&B.useData&&(ce=s(Y,ce));var ge=void 0,_e=B.useBlockParams?[]:void 0;return B.useDepths&&(ge=Z.depths?Y!=Z.depths[0]?[Y].concat(Z.depths):Z.depths:[Y]),(W=g(B.main,W,ee,Z.depths||[],ce,_e))(Y,Z)}if(!N)throw new T.default("No environment passed to template");if(!B||!B.main)throw new T.default("Unknown template object: "+typeof B);B.main.decorator=B.main_d,N.VM.checkRevision(B.compiler);var oe=B.compiler&&B.compiler[0]===7,ee={strict:function(Y,W,Z){if(!Y||!(W in Y))throw new T.default('"'+W+'" not defined in '+Y,{loc:Z});return ee.lookupProperty(Y,W)},lookupProperty:function(Y,W){var Z=Y[W];return Z==null||Object.prototype.hasOwnProperty.call(Y,W)||L.resultIsAllowed(Z,ee.protoAccessControl,W)?Z:void 0},lookup:function(Y,W){for(var Z=Y.length,ce=0;ce<Z;ce++)if((Y[ce]&&ee.lookupProperty(Y[ce],W))!=null)return Y[ce][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:F.escapeExpression,invokePartial:z,fn:function(Y){var W=B[Y];return W.decorator=B[Y+"_d"],W},programs:[],program:function(Y,W,Z,ce,ge){var _e=this.programs[Y],Ce=this.fn(Y);return W||ge||ce||Z?_e=p(this,Y,Ce,W,Z,ce,ge):_e||(_e=this.programs[Y]=p(this,Y,Ce)),_e},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var Z=Y||W;return Y&&W&&Y!==W&&(Z=F.extend({},W,Y)),Z},nullContext:c({}),noop:N.VM.noop,compilerInfo:B.compiler};return K.isTop=!0,K._setup=function(Y){if(Y.partial)ee.protoAccessControl=Y.protoAccessControl,ee.helpers=Y.helpers,ee.partials=Y.partials,ee.decorators=Y.decorators,ee.hooks=Y.hooks;else{var W=F.extend({},N.helpers,Y.helpers);d(W,ee),ee.helpers=W,B.usePartial&&(ee.partials=ee.mergeIfNeeded(Y.partials,N.partials)),(B.usePartial||B.useDecorators)&&(ee.decorators=F.extend({},N.decorators,Y.decorators)),ee.hooks={},ee.protoAccessControl=L.createProtoAccessControl(Y);var Z=Y.allowCallsToHelperMissing||oe;j.moveHelperToHooks(ee,"helperMissing",Z),j.moveHelperToHooks(ee,"blockHelperMissing",Z)}},K._child=function(Y,W,Z,ce){if(B.useBlockParams&&!Z)throw new T.default("must pass block params");if(B.useDepths&&!ce)throw new T.default("must pass parent depths");return p(ee,Y,B[Y],W,0,Z,ce)},K}function p(B,N,z,K,oe,ee,Y){function W(Z){var ce=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ge=Y;return!Y||Z==Y[0]||Z===B.nullContext&&Y[0]===null||(ge=[Z].concat(Y)),z(B,Z,B.helpers,B.partials,ce.data||K,ee&&[ce.blockParams].concat(ee),ge)}return(W=g(z,W,B,Y,K,ee)).program=N,W.depth=Y?Y.length:0,W.blockParams=oe||0,W}function C(B,N,z){return B?B.call||z.name||(z.name=B,B=z.partials[B]):B=z.name==="@partial-block"?z.data["partial-block"]:z.partials[z.name],B}function u(B,N,z){var K=z.data&&z.data["partial-block"];z.partial=!0,z.ids&&(z.data.contextPath=z.ids[0]||z.data.contextPath);var oe=void 0;if(z.fn&&z.fn!==a&&function(){z.data=R.createFrame(z.data);var ee=z.fn;oe=z.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=R.createFrame(W.data),W.data["partial-block"]=K,ee(Y,W)},ee.partials&&(z.partials=F.extend({},z.partials,ee.partials))}(),B===void 0&&oe&&(B=oe),B===void 0)throw new T.default("The partial "+z.name+" could not be found");if(B instanceof Function)return B(N,z)}function a(){return""}function s(B,N){return N&&"root"in N||((N=N?R.createFrame(N):{}).root=B),N}function g(B,N,z,K,oe,ee){if(B.decorator){var Y={};N=B.decorator(N,Y,z,K&&K[0],oe,ee,K),F.extend(N,Y)}return N}function d(B,N){h(B).forEach(function(z){var K=B[z];B[z]=m(K,N)})}function m(B,N){var z=N.lookupProperty;return U.wrapHelper(B,function(K){return F.extend({lookupProperty:z},K)})}var c=v(39).default,h=v(13).default,_=v(3).default,S=v(1).default;n.__esModule=!0,n.checkRevision=o,n.template=e,n.wrapProgram=p,n.resolvePartial=C,n.invokePartial=u,n.noop=a;var F=_(v(5)),T=S(v(6)),R=v(4),j=v(10),U=v(43),L=v(33)},function(l,n,v){l.exports={default:v(40),__esModule:!0}},function(l,n,v){v(41),l.exports=v(21).Object.seal},function(l,n,v){var o=v(42);v(18)("seal",function(e){return function(p){return e&&o(p)?e(p):p}})},function(l,n){l.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},function(l,n){function v(o,e){if(typeof o!="function")return o;var p=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),o.apply(this,arguments)};return p}n.__esModule=!0,n.wrapHelper=v},function(l,n){(function(v){n.__esModule=!0,n.default=function(o){var e=v!==void 0?v:window,p=e.Handlebars;o.noConflict=function(){return e.Handlebars===o&&(e.Handlebars=p),o}},l.exports=n.default}).call(n,function(){return this}())},function(l,n){n.__esModule=!0;var v={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!v.helpers.scopedId(o)&&!o.depth}}};n.default=v,l.exports=n.default},function(l,n,v){function o(m,c){return m.type==="Program"?m:(u.default.yy=d,d.locInfo=function(h){return new d.SourceLocation(c&&c.srcName,h)},u.default.parse(m))}function e(m,c){var h=o(m,c);return new a.default(c).accept(h)}var p=v(1).default,C=v(3).default;n.__esModule=!0,n.parseWithoutProcessing=o,n.parse=e;var u=p(v(47)),a=p(v(48)),s=C(v(50)),g=v(5);n.parser=u.default;var d={};g.extend(d,s)},function(l,n){n.__esModule=!0;var v=function(){function o(){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,u,a,s,g,d,m){var c=d.length-1;switch(g){case 1:return d[c-1];case 2:this.$=s.prepareProgram(d[c]);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.$=d[c];break;case 9:this.$={type:"CommentStatement",value:s.stripComment(d[c]),strip:s.stripFlags(d[c],d[c]),loc:s.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[c],value:d[c],loc:s.locInfo(this._$)};break;case 11:this.$=s.prepareRawBlock(d[c-2],d[c-1],d[c],this._$);break;case 12:this.$={path:d[c-3],params:d[c-2],hash:d[c-1]};break;case 13:this.$=s.prepareBlock(d[c-3],d[c-2],d[c-1],d[c],!1,this._$);break;case 14:this.$=s.prepareBlock(d[c-3],d[c-2],d[c-1],d[c],!0,this._$);break;case 15:this.$={open:d[c-5],path:d[c-4],params:d[c-3],hash:d[c-2],blockParams:d[c-1],strip:s.stripFlags(d[c-5],d[c])};break;case 16:case 17:this.$={path:d[c-4],params:d[c-3],hash:d[c-2],blockParams:d[c-1],strip:s.stripFlags(d[c-5],d[c])};break;case 18:this.$={strip:s.stripFlags(d[c-1],d[c-1]),program:d[c]};break;case 19:var h=s.prepareBlock(d[c-2],d[c-1],d[c],d[c],!1,this._$),_=s.prepareProgram([h],d[c-1].loc);_.chained=!0,this.$={strip:d[c-2].strip,program:_,chain:!0};break;case 21:this.$={path:d[c-1],strip:s.stripFlags(d[c-2],d[c])};break;case 22:case 23:this.$=s.prepareMustache(d[c-3],d[c-2],d[c-1],d[c-4],s.stripFlags(d[c-4],d[c]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[c-3],params:d[c-2],hash:d[c-1],indent:"",strip:s.stripFlags(d[c-4],d[c]),loc:s.locInfo(this._$)};break;case 25:this.$=s.preparePartialBlock(d[c-2],d[c-1],d[c],this._$);break;case 26:this.$={path:d[c-3],params:d[c-2],hash:d[c-1],strip:s.stripFlags(d[c-4],d[c])};break;case 29:this.$={type:"SubExpression",path:d[c-3],params:d[c-2],hash:d[c-1],loc:s.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[c],loc:s.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:s.id(d[c-2]),value:d[c],loc:s.locInfo(this._$)};break;case 32:this.$=s.id(d[c-1]);break;case 35:this.$={type:"StringLiteral",value:d[c],original:d[c],loc:s.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[c]),original:Number(d[c]),loc:s.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[c]==="true",original:d[c]==="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,d[c],this._$);break;case 43:this.$=s.preparePath(!1,d[c],this._$);break;case 44:d[c-2].push({part:s.id(d[c]),original:d[c],separator:d[c-1]}),this.$=d[c-2];break;case 45:this.$=[{part:s.id(d[c]),original:d[c]}];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:d[c-1].push(d[c]);break;case 98:case 100:this.$=[d[c]]}},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,u){throw new Error(C)},parse:function(C){function u(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,s=[0],g=[null],d=[],m=this.table,c="",h=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 F=this.lexer.yylloc;d.push(F);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var R,j,U,L,B,N,z,K,oe,ee={};;){if(U=s[s.length-1],this.defaultActions[U]?L=this.defaultActions[U]:(R!=null||(R=u()),L=m[U]&&m[U][R]),L===void 0||!L.length||!L[0]){var Y="";{for(N in oe=[],m[U])this.terminals_[N]&&N>2&&oe.push("'"+this.terminals_[N]+"'");Y=this.lexer.showPosition?"Parse error on line "+(h+1)+`:
|
|
435
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function u(){s(l).forEach(function(h){delete l[h]})}var a=v(34).default,s=v(13).default,g=v(3).default;n.__esModule=!0,n.createProtoAccessControl=o,n.resultIsAllowed=e,n.resetLoggedProperties=u;var d=v(36),m=g(v(32)),l=a(null)},function(c,n,v){c.exports={default:v(35),__esModule:!0}},function(c,n,v){var o=v(9);c.exports=function(e,p){return o.create(e,p)}},function(c,n,v){function o(){for(var C=arguments.length,u=Array(C),a=0;a<C;a++)u[a]=arguments[a];return p.extend.apply(void 0,[e(null)].concat(u))}var e=v(34).default;n.__esModule=!0,n.createNewLookupObject=o;var p=v(5)},function(c,n){function v(o){this.string=o}n.__esModule=!0,v.prototype.toString=v.prototype.toHTML=function(){return""+this.string},n.default=v,c.exports=n.default},function(c,n,v){function o(B){var N=B&&B[0]||1,z=A.COMPILER_REVISION;if(!(N>=A.LAST_COMPATIBLE_COMPILER_REVISION&&N<=A.COMPILER_REVISION)){if(N<A.LAST_COMPATIBLE_COMPILER_REVISION){var G=A.REVISION_CHANGES[z],oe=A.REVISION_CHANGES[N];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 ("+G+") 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 ("+B[1]+").")}}function e(B,N){function z(Y,W,Z){Z.hash&&(W=I.extend({},W,Z.hash),Z.ids&&(Z.ids[0]=!0)),Y=N.VM.resolvePartial.call(this,Y,W,Z);var ce=I.extend({},Z,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),ye=N.VM.invokePartial.call(this,Y,W,ce);if(ye==null&&N.compile&&(Z.partials[Z.name]=N.compile(Y,B.compilerOptions,N),ye=Z.partials[Z.name](W,ce)),ye!=null){if(Z.indent){for(var _e=ye.split(`
|
|
436
|
+
`),Ce=0,Re=_e.length;Ce<Re&&(_e[Ce]||Ce+1!==Re);Ce++)_e[Ce]=Z.indent+_e[Ce];ye=_e.join(`
|
|
437
|
+
`)}return ye}throw new T.default("The partial "+Z.name+" could not be compiled when running in runtime-only mode")}function G(Y){function W(Ce){return""+B.main(ee,Ce,ee.helpers,ee.partials,ce,_e,ye)}var Z=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ce=Z.data;G._setup(Z),!Z.partial&&B.useData&&(ce=s(Y,ce));var ye=void 0,_e=B.useBlockParams?[]:void 0;return B.useDepths&&(ye=Z.depths?Y!=Z.depths[0]?[Y].concat(Z.depths):Z.depths:[Y]),(W=g(B.main,W,ee,Z.depths||[],ce,_e))(Y,Z)}if(!N)throw new T.default("No environment passed to template");if(!B||!B.main)throw new T.default("Unknown template object: "+typeof B);B.main.decorator=B.main_d,N.VM.checkRevision(B.compiler);var oe=B.compiler&&B.compiler[0]===7,ee={strict:function(Y,W,Z){if(!Y||!(W in Y))throw new T.default('"'+W+'" not defined in '+Y,{loc:Z});return ee.lookupProperty(Y,W)},lookupProperty:function(Y,W){var Z=Y[W];return Z==null||Object.prototype.hasOwnProperty.call(Y,W)||L.resultIsAllowed(Z,ee.protoAccessControl,W)?Z:void 0},lookup:function(Y,W){for(var Z=Y.length,ce=0;ce<Z;ce++)if((Y[ce]&&ee.lookupProperty(Y[ce],W))!=null)return Y[ce][W]},lambda:function(Y,W){return typeof Y=="function"?Y.call(W):Y},escapeExpression:I.escapeExpression,invokePartial:z,fn:function(Y){var W=B[Y];return W.decorator=B[Y+"_d"],W},programs:[],program:function(Y,W,Z,ce,ye){var _e=this.programs[Y],Ce=this.fn(Y);return W||ye||ce||Z?_e=p(this,Y,Ce,W,Z,ce,ye):_e||(_e=this.programs[Y]=p(this,Y,Ce)),_e},data:function(Y,W){for(;Y&&W--;)Y=Y._parent;return Y},mergeIfNeeded:function(Y,W){var Z=Y||W;return Y&&W&&Y!==W&&(Z=I.extend({},W,Y)),Z},nullContext:l({}),noop:N.VM.noop,compilerInfo:B.compiler};return G.isTop=!0,G._setup=function(Y){if(Y.partial)ee.protoAccessControl=Y.protoAccessControl,ee.helpers=Y.helpers,ee.partials=Y.partials,ee.decorators=Y.decorators,ee.hooks=Y.hooks;else{var W=I.extend({},N.helpers,Y.helpers);d(W,ee),ee.helpers=W,B.usePartial&&(ee.partials=ee.mergeIfNeeded(Y.partials,N.partials)),(B.usePartial||B.useDecorators)&&(ee.decorators=I.extend({},N.decorators,Y.decorators)),ee.hooks={},ee.protoAccessControl=L.createProtoAccessControl(Y);var Z=Y.allowCallsToHelperMissing||oe;j.moveHelperToHooks(ee,"helperMissing",Z),j.moveHelperToHooks(ee,"blockHelperMissing",Z)}},G._child=function(Y,W,Z,ce){if(B.useBlockParams&&!Z)throw new T.default("must pass block params");if(B.useDepths&&!ce)throw new T.default("must pass parent depths");return p(ee,Y,B[Y],W,0,Z,ce)},G}function p(B,N,z,G,oe,ee,Y){function W(Z){var ce=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],ye=Y;return!Y||Z==Y[0]||Z===B.nullContext&&Y[0]===null||(ye=[Z].concat(Y)),z(B,Z,B.helpers,B.partials,ce.data||G,ee&&[ce.blockParams].concat(ee),ye)}return(W=g(z,W,B,Y,G,ee)).program=N,W.depth=Y?Y.length:0,W.blockParams=oe||0,W}function C(B,N,z){return B?B.call||z.name||(z.name=B,B=z.partials[B]):B=z.name==="@partial-block"?z.data["partial-block"]:z.partials[z.name],B}function u(B,N,z){var G=z.data&&z.data["partial-block"];z.partial=!0,z.ids&&(z.data.contextPath=z.ids[0]||z.data.contextPath);var oe=void 0;if(z.fn&&z.fn!==a&&function(){z.data=A.createFrame(z.data);var ee=z.fn;oe=z.data["partial-block"]=function(Y){var W=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return W.data=A.createFrame(W.data),W.data["partial-block"]=G,ee(Y,W)},ee.partials&&(z.partials=I.extend({},z.partials,ee.partials))}(),B===void 0&&oe&&(B=oe),B===void 0)throw new T.default("The partial "+z.name+" could not be found");if(B instanceof Function)return B(N,z)}function a(){return""}function s(B,N){return N&&"root"in N||((N=N?A.createFrame(N):{}).root=B),N}function g(B,N,z,G,oe,ee){if(B.decorator){var Y={};N=B.decorator(N,Y,z,G&&G[0],oe,ee,G),I.extend(N,Y)}return N}function d(B,N){h(B).forEach(function(z){var G=B[z];B[z]=m(G,N)})}function m(B,N){var z=N.lookupProperty;return U.wrapHelper(B,function(G){return I.extend({lookupProperty:z},G)})}var l=v(39).default,h=v(13).default,_=v(3).default,S=v(1).default;n.__esModule=!0,n.checkRevision=o,n.template=e,n.wrapProgram=p,n.resolvePartial=C,n.invokePartial=u,n.noop=a;var I=_(v(5)),T=S(v(6)),A=v(4),j=v(10),U=v(43),L=v(33)},function(c,n,v){c.exports={default:v(40),__esModule:!0}},function(c,n,v){v(41),c.exports=v(21).Object.seal},function(c,n,v){var o=v(42);v(18)("seal",function(e){return function(p){return e&&o(p)?e(p):p}})},function(c,n){c.exports=function(v){return typeof v=="object"?v!==null:typeof v=="function"}},function(c,n){function v(o,e){if(typeof o!="function")return o;var p=function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),o.apply(this,arguments)};return p}n.__esModule=!0,n.wrapHelper=v},function(c,n){(function(v){n.__esModule=!0,n.default=function(o){var e=v!==void 0?v:window,p=e.Handlebars;o.noConflict=function(){return e.Handlebars===o&&(e.Handlebars=p),o}},c.exports=n.default}).call(n,function(){return this}())},function(c,n){n.__esModule=!0;var v={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!v.helpers.scopedId(o)&&!o.depth}}};n.default=v,c.exports=n.default},function(c,n,v){function o(m,l){return m.type==="Program"?m:(u.default.yy=d,d.locInfo=function(h){return new d.SourceLocation(l&&l.srcName,h)},u.default.parse(m))}function e(m,l){var h=o(m,l);return new a.default(l).accept(h)}var p=v(1).default,C=v(3).default;n.__esModule=!0,n.parseWithoutProcessing=o,n.parse=e;var u=p(v(47)),a=p(v(48)),s=C(v(50)),g=v(5);n.parser=u.default;var d={};g.extend(d,s)},function(c,n){n.__esModule=!0;var v=function(){function o(){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,u,a,s,g,d,m){var l=d.length-1;switch(g){case 1:return d[l-1];case 2:this.$=s.prepareProgram(d[l]);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.$=d[l];break;case 9:this.$={type:"CommentStatement",value:s.stripComment(d[l]),strip:s.stripFlags(d[l],d[l]),loc:s.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[l],value:d[l],loc:s.locInfo(this._$)};break;case 11:this.$=s.prepareRawBlock(d[l-2],d[l-1],d[l],this._$);break;case 12:this.$={path:d[l-3],params:d[l-2],hash:d[l-1]};break;case 13:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!1,this._$);break;case 14:this.$=s.prepareBlock(d[l-3],d[l-2],d[l-1],d[l],!0,this._$);break;case 15:this.$={open:d[l-5],path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 16:case 17:this.$={path:d[l-4],params:d[l-3],hash:d[l-2],blockParams:d[l-1],strip:s.stripFlags(d[l-5],d[l])};break;case 18:this.$={strip:s.stripFlags(d[l-1],d[l-1]),program:d[l]};break;case 19:var h=s.prepareBlock(d[l-2],d[l-1],d[l],d[l],!1,this._$),_=s.prepareProgram([h],d[l-1].loc);_.chained=!0,this.$={strip:d[l-2].strip,program:_,chain:!0};break;case 21:this.$={path:d[l-1],strip:s.stripFlags(d[l-2],d[l])};break;case 22:case 23:this.$=s.prepareMustache(d[l-3],d[l-2],d[l-1],d[l-4],s.stripFlags(d[l-4],d[l]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[l-3],params:d[l-2],hash:d[l-1],indent:"",strip:s.stripFlags(d[l-4],d[l]),loc:s.locInfo(this._$)};break;case 25:this.$=s.preparePartialBlock(d[l-2],d[l-1],d[l],this._$);break;case 26:this.$={path:d[l-3],params:d[l-2],hash:d[l-1],strip:s.stripFlags(d[l-4],d[l])};break;case 29:this.$={type:"SubExpression",path:d[l-3],params:d[l-2],hash:d[l-1],loc:s.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[l],loc:s.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:s.id(d[l-2]),value:d[l],loc:s.locInfo(this._$)};break;case 32:this.$=s.id(d[l-1]);break;case 35:this.$={type:"StringLiteral",value:d[l],original:d[l],loc:s.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[l]),original:Number(d[l]),loc:s.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[l]==="true",original:d[l]==="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,d[l],this._$);break;case 43:this.$=s.preparePath(!1,d[l],this._$);break;case 44:d[l-2].push({part:s.id(d[l]),original:d[l],separator:d[l-1]}),this.$=d[l-2];break;case 45:this.$=[{part:s.id(d[l]),original:d[l]}];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:d[l-1].push(d[l]);break;case 98:case 100:this.$=[d[l]]}},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,u){throw new Error(C)},parse:function(C){function u(){var W;return typeof(W=a.lexer.lex()||1)!="number"&&(W=a.symbols_[W]||W),W}var a=this,s=[0],g=[null],d=[],m=this.table,l="",h=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;d.push(I);var T=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);for(var A,j,U,L,B,N,z,G,oe,ee={};;){if(U=s[s.length-1],this.defaultActions[U]?L=this.defaultActions[U]:(A!=null||(A=u()),L=m[U]&&m[U][A]),L===void 0||!L.length||!L[0]){var Y="";{for(N in oe=[],m[U])this.terminals_[N]&&N>2&&oe.push("'"+this.terminals_[N]+"'");Y=this.lexer.showPosition?"Parse error on line "+(h+1)+`:
|
|
438
438
|
`+this.lexer.showPosition()+`
|
|
439
|
-
Expecting `+oe.join(", ")+", got '"+(this.terminals_[
|
|
440
|
-
`+a+"^"},next:function(){if(this.done)return this.EOF;var u,a,s,g,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),
|
|
441
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u!==void 0?u:this.lex()},begin:function(u){this.conditionStack.push(u)},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(u){this.begin(u)},options:{},performAction:function(u,a,s,g){function d(m,c){return a.yytext=a.yytext.substring(m,a.yyleng-c+m)}switch(s){case 0:if(a.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(d(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:(d(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=d(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=d(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=p,o.prototype=e,e.Parser=o,new o}();n.default=v,l.exports=n.default},function(l,n,v){function o(){var g=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=g}function e(g,d,m){d===void 0&&(d=g.length);var c=g[d-1],h=g[d-2];return c?c.type==="ContentStatement"?(h||!m?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(c.original):void 0:m}function p(g,d,m){d===void 0&&(d=-1);var c=g[d+1],h=g[d+2];return c?c.type==="ContentStatement"?(h||!m?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(c.original):void 0:m}function C(g,d,m){var c=g[d==null?0:d+1];if(c&&c.type==="ContentStatement"&&(m||!c.rightStripped)){var h=c.value;c.value=c.value.replace(m?/^\s+/:/^[ \t]*\r?\n?/,""),c.rightStripped=c.value!==h}}function u(g,d,m){var c=g[d==null?g.length-1:d-1];if(c&&c.type==="ContentStatement"&&(m||!c.leftStripped)){var h=c.value;return c.value=c.value.replace(m?/\s+$/:/[ \t]+$/,""),c.leftStripped=c.value!==h,c.leftStripped}}var a=v(1).default;n.__esModule=!0;var s=a(v(49));o.prototype=new s.default,o.prototype.Program=function(g){var d=!this.options.ignoreStandalone,m=!this.isRootSeen;this.isRootSeen=!0;for(var c=g.body,h=0,_=c.length;h<_;h++){var S=c[h],F=this.accept(S);if(F){var T=e(c,h,m),R=p(c,h,m),j=F.openStandalone&&T,U=F.closeStandalone&&R,L=F.inlineStandalone&&T&&R;F.close&&C(c,h,!0),F.open&&u(c,h,!0),d&&L&&(C(c,h),u(c,h)&&S.type==="PartialStatement"&&(S.indent=/([ \t]+$)/.exec(c[h-1].original)[1])),d&&j&&(C((S.program||S.inverse).body),u(c,h)),d&&U&&(C(c,h),u((S.inverse||S.program).body))}}return g},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(g){this.accept(g.program),this.accept(g.inverse);var d=g.program||g.inverse,m=g.program&&g.inverse,c=m,h=m;if(m&&m.chained)for(c=m.body[0].program;h.chained;)h=h.body[h.body.length-1].program;var _={open:g.openStrip.open,close:g.closeStrip.close,openStandalone:p(d.body),closeStandalone:e((c||d).body)};if(g.openStrip.close&&C(d.body,null,!0),m){var S=g.inverseStrip;S.open&&u(d.body,null,!0),S.close&&C(c.body,null,!0),g.closeStrip.open&&u(h.body,null,!0),!this.options.ignoreStandalone&&e(d.body)&&p(c.body)&&(u(d.body),C(c.body))}else g.closeStrip.open&&u(d.body,null,!0);return _},o.prototype.Decorator=o.prototype.MustacheStatement=function(g){return g.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(g){var d=g.strip||{};return{inlineStandalone:!0,open:d.open,close:d.close}},n.default=o,l.exports=n.default},function(l,n,v){function o(){this.parents=[]}function e(s){this.acceptRequired(s,"path"),this.acceptArray(s.params),this.acceptKey(s,"hash")}function p(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 u=v(1).default;n.__esModule=!0;var a=u(v(6));o.prototype={constructor:o,mutating:!1,acceptKey:function(s,g){var d=this.accept(s[g]);if(this.mutating){if(d&&!o.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+g+" on "+s.type);s[g]=d}},acceptRequired:function(s,g){if(this.acceptKey(s,g),!s[g])throw new a.default(s.type+" requires "+g)},acceptArray:function(s){for(var g=0,d=s.length;g<d;g++)this.acceptKey(s,g),s[g]||(s.splice(g,1),g--,d--)},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 g=this[s.type](s);return this.current=this.parents.shift(),!this.mutating||g?g:g!==!1?s:void 0}},Program:function(s){this.acceptArray(s.body)},MustacheStatement:e,Decorator:e,BlockStatement:p,DecoratorBlock:p,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=o,l.exports=n.default},function(l,n,v){function o(S,F){if(F=F.path?F.path.original:F,S.path.original!==F){var T={loc:S.path.loc};throw new _.default(S.path.original+" doesn't match "+F,T)}}function e(S,F){this.source=S,this.start={line:F.first_line,column:F.first_column},this.end={line:F.last_line,column:F.last_column}}function p(S){return/^\[.*\]$/.test(S)?S.substring(1,S.length-1):S}function C(S,F){return{open:S.charAt(2)==="~",close:F.charAt(F.length-3)==="~"}}function u(S){return S.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function a(S,F,T){T=this.locInfo(T);for(var R=S?"@":"",j=[],U=0,L=0,B=F.length;L<B;L++){var N=F[L].part,z=F[L].original!==N;if(R+=(F[L].separator||"")+N,z||N!==".."&&N!=="."&&N!=="this")j.push(N);else{if(j.length>0)throw new _.default("Invalid path: "+R,{loc:T});N===".."&&U++}}return{type:"PathExpression",data:S,depth:U,parts:j,original:R,loc:T}}function s(S,F,T,R,j,U){var L=R.charAt(3)||R.charAt(2),B=L!=="{"&&L!=="&";return{type:/\*/.test(R)?"Decorator":"MustacheStatement",path:S,params:F,hash:T,escaped:B,strip:j,loc:this.locInfo(U)}}function g(S,F,T,R){o(S,T);var j={type:"Program",body:F,strip:{},loc:R=this.locInfo(R)};return{type:"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:j,openStrip:{},inverseStrip:{},closeStrip:{},loc:R}}function d(S,F,T,R,j,U){R&&R.path&&o(S,R);var L=/\*/.test(S.open);F.blockParams=S.blockParams;var B=void 0,N=void 0;if(T){if(L)throw new _.default("Unexpected inverse block on decorator",T);T.chain&&(T.program.body[0].closeStrip=R.strip),N=T.strip,B=T.program}return j&&(j=B,B=F,F=j),{type:L?"DecoratorBlock":"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:F,inverse:B,openStrip:S.strip,inverseStrip:N,closeStrip:R&&R.strip,loc:this.locInfo(U)}}function m(S,F){if(!F&&S.length){var T=S[0].loc,R=S[S.length-1].loc;T&&R&&(F={source:T.source,start:{line:T.start.line,column:T.start.column},end:{line:R.end.line,column:R.end.column}})}return{type:"Program",body:S,strip:{},loc:F}}function c(S,F,T,R){return o(S,T),{type:"PartialBlockStatement",name:S.path,params:S.params,hash:S.hash,program:F,openStrip:S.strip,closeStrip:T&&T.strip,loc:this.locInfo(R)}}var h=v(1).default;n.__esModule=!0,n.SourceLocation=e,n.id=p,n.stripFlags=C,n.stripComment=u,n.preparePath=a,n.prepareMustache=s,n.prepareRawBlock=g,n.prepareBlock=d,n.prepareProgram=m,n.preparePartialBlock=c;var _=h(v(6))},function(l,n,v){function o(){}function e(h,_,S){if(h==null||typeof h!="string"&&h.type!=="Program")throw new g.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+h);"data"in(_=_||{})||(_.data=!0),_.compat&&(_.useDepths=!0);var F=S.parse(h,_),T=new S.Compiler().compile(F,_);return new S.JavaScriptCompiler().compile(T,_)}function p(h,_,S){function F(){var j=S.parse(h,_),U=new S.Compiler().compile(j,_),L=new S.JavaScriptCompiler().compile(U,_,void 0,!0);return S.template(L)}function T(j,U){return R||(R=F()),R.call(this,j,U)}if(_===void 0&&(_={}),h==null||typeof h!="string"&&h.type!=="Program")throw new g.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+h);"data"in(_=d.extend({},_))||(_.data=!0),_.compat&&(_.useDepths=!0);var R=void 0;return T._setup=function(j){return R||(R=F()),R._setup(j)},T._child=function(j,U,L,B){return R||(R=F()),R._child(j,U,L,B)},T}function C(h,_){if(h===_)return!0;if(d.isArray(h)&&d.isArray(_)&&h.length===_.length){for(var S=0;S<h.length;S++)if(!C(h[S],_[S]))return!1;return!0}}function u(h){if(!h.path.parts){var _=h.path;h.path={type:"PathExpression",data:!1,depth:0,parts:[_.original+""],original:_.original+"",loc:_.loc}}}var a=v(34).default,s=v(1).default;n.__esModule=!0,n.Compiler=o,n.precompile=e,n.compile=p;var g=s(v(6)),d=v(5),m=s(v(45)),c=[].slice;o.prototype={compiler:o,equals:function(h){var _=this.opcodes.length;if(h.opcodes.length!==_)return!1;for(var S=0;S<_;S++){var F=this.opcodes[S],T=h.opcodes[S];if(F.opcode!==T.opcode||!C(F.args,T.args))return!1}for(_=this.children.length,S=0;S<_;S++)if(!this.children[S].equals(h.children[S]))return!1;return!0},guid:0,compile:function(h,_){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=_,this.stringParams=_.stringParams,this.trackIds=_.trackIds,_.blockParams=_.blockParams||[],_.knownHelpers=d.extend(a(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},_.knownHelpers),this.accept(h)},compileProgram:function(h){var _=new this.compiler().compile(h,this.options),S=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[S]=_,this.useDepths=this.useDepths||_.useDepths,S},accept:function(h){if(!this[h.type])throw new g.default("Unknown type: "+h.type,h);this.sourceNode.unshift(h);var _=this[h.type](h);return this.sourceNode.shift(),_},Program:function(h){this.options.blockParams.unshift(h.blockParams);for(var _=h.body,S=_.length,F=0;F<S;F++)this.accept(_[F]);return this.options.blockParams.shift(),this.isSimple=S===1,this.blockParams=h.blockParams?h.blockParams.length:0,this},BlockStatement:function(h){u(h);var _=h.program,S=h.inverse;_=_&&this.compileProgram(_),S=S&&this.compileProgram(S);var F=this.classifySexpr(h);F==="helper"?this.helperSexpr(h,_,S):F==="simple"?(this.simpleSexpr(h),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("blockValue",h.path.original)):(this.ambiguousSexpr(h,_,S),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(h){var _=h.program&&this.compileProgram(h.program),S=this.setupFullMustacheParams(h,_,void 0),F=h.path;this.useDecorators=!0,this.opcode("registerDecorator",S.length,F.original)},PartialStatement:function(h){this.usePartial=!0;var _=h.program;_&&(_=this.compileProgram(h.program));var S=h.params;if(S.length>1)throw new g.default("Unsupported number of partial arguments: "+S.length,h);S.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):S.push({type:"PathExpression",parts:[],depth:0}));var F=h.name.original,T=h.name.type==="SubExpression";T&&this.accept(h.name),this.setupFullMustacheParams(h,_,void 0,!0);var R=h.indent||"";this.options.preventIndent&&R&&(this.opcode("appendContent",R),R=""),this.opcode("invokePartial",T,F,R),this.opcode("append")},PartialBlockStatement:function(h){this.PartialStatement(h)},MustacheStatement:function(h){this.SubExpression(h),h.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(h){this.DecoratorBlock(h)},ContentStatement:function(h){h.value&&this.opcode("appendContent",h.value)},CommentStatement:function(){},SubExpression:function(h){u(h);var _=this.classifySexpr(h);_==="simple"?this.simpleSexpr(h):_==="helper"?this.helperSexpr(h):this.ambiguousSexpr(h)},ambiguousSexpr:function(h,_,S){var F=h.path,T=F.parts[0],R=_!=null||S!=null;this.opcode("getContext",F.depth),this.opcode("pushProgram",_),this.opcode("pushProgram",S),F.strict=!0,this.accept(F),this.opcode("invokeAmbiguous",T,R)},simpleSexpr:function(h){var _=h.path;_.strict=!0,this.accept(_),this.opcode("resolvePossibleLambda")},helperSexpr:function(h,_,S){var F=this.setupFullMustacheParams(h,_,S),T=h.path,R=T.parts[0];if(this.options.knownHelpers[R])this.opcode("invokeKnownHelper",F.length,R);else{if(this.options.knownHelpersOnly)throw new g.default("You specified knownHelpersOnly, but used the unknown helper "+R,h);T.strict=!0,T.falsy=!0,this.accept(T),this.opcode("invokeHelper",F.length,T.original,m.default.helpers.simpleId(T))}},PathExpression:function(h){this.addDepth(h.depth),this.opcode("getContext",h.depth);var _=h.parts[0],S=m.default.helpers.scopedId(h),F=!h.depth&&!S&&this.blockParamIndex(_);F?this.opcode("lookupBlockParam",F,h.parts):_?h.data?(this.options.data=!0,this.opcode("lookupData",h.depth,h.parts,h.strict)):this.opcode("lookupOnContext",h.parts,h.falsy,h.strict,S):this.opcode("pushContext")},StringLiteral:function(h){this.opcode("pushString",h.value)},NumberLiteral:function(h){this.opcode("pushLiteral",h.value)},BooleanLiteral:function(h){this.opcode("pushLiteral",h.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(h){var _=h.pairs,S=0,F=_.length;for(this.opcode("pushHash");S<F;S++)this.pushParam(_[S].value);for(;S--;)this.opcode("assignToHash",_[S].key);this.opcode("popHash")},opcode:function(h){this.opcodes.push({opcode:h,args:c.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(h){h&&(this.useDepths=!0)},classifySexpr:function(h){var _=m.default.helpers.simpleId(h.path),S=_&&!!this.blockParamIndex(h.path.parts[0]),F=!S&&m.default.helpers.helperExpression(h),T=!S&&(F||_);if(T&&!F){var R=h.path.parts[0],j=this.options;j.knownHelpers[R]?F=!0:j.knownHelpersOnly&&(T=!1)}return F?"helper":T?"ambiguous":"simple"},pushParams:function(h){for(var _=0,S=h.length;_<S;_++)this.pushParam(h[_])},pushParam:function(h){var _=h.value!=null?h.value:h.original||"";if(this.stringParams)_.replace&&(_=_.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),h.depth&&this.addDepth(h.depth),this.opcode("getContext",h.depth||0),this.opcode("pushStringParam",_,h.type),h.type==="SubExpression"&&this.accept(h);else{if(this.trackIds){var S=void 0;if(!h.parts||m.default.helpers.scopedId(h)||h.depth||(S=this.blockParamIndex(h.parts[0])),S){var F=h.parts.slice(1).join(".");this.opcode("pushId","BlockParam",S,F)}else(_=h.original||_).replace&&(_=_.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",h.type,_)}this.accept(h)}},setupFullMustacheParams:function(h,_,S,F){var T=h.params;return this.pushParams(T),this.opcode("pushProgram",_),this.opcode("pushProgram",S),h.hash?this.accept(h.hash):this.opcode("emptyHash",F),T},blockParamIndex:function(h){for(var _=0,S=this.options.blockParams.length;_<S;_++){var F=this.options.blockParams[_],T=F&&d.indexOf(F,h);if(F&&T>=0)return[_,T]}}}},function(l,n,v){function o(m){this.value=m}function e(){}function p(m,c,h,_){var S=c.popStack(),F=0,T=h.length;for(m&&T--;F<T;F++)S=c.nameLookup(S,h[F],_);return m?[c.aliasable("container.strict"),"(",S,", ",c.quotedString(h[F]),", ",JSON.stringify(c.source.currentLocation)," )"]:S}var C=v(13).default,u=v(1).default;n.__esModule=!0;var a=v(4),s=u(v(6)),g=v(5),d=u(v(53));e.prototype={nameLookup:function(m,c){return this.internalNameLookup(m,c)},depthedLookup:function(m){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(m),")"]},compilerInfo:function(){var m=a.COMPILER_REVISION;return[m,a.REVISION_CHANGES[m]]},appendToBuffer:function(m,c,h){return g.isArray(m)||(m=[m]),m=this.source.wrap(m,c),this.environment.isSimple?["return ",m,";"]:h?["buffer += ",m,";"]:(m.appendToBuffer=!0,m)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(m,c){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",m,",",JSON.stringify(c),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(m,c,h,_){this.environment=m,this.options=c,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!h,this.context=h||{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(m,c),this.useDepths=this.useDepths||m.useDepths||m.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||m.useBlockParams;var S=m.opcodes,F=void 0,T=void 0,R=void 0,j=void 0;for(R=0,j=S.length;R<j;R++)F=S[R],this.source.currentLocation=F.loc,T=T||F.loc,this[F.opcode].apply(this,F.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(),`;
|
|
439
|
+
Expecting `+oe.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(h+1)+": Unexpected "+(A==1?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Y,{text:this.lexer.match,token:this.terminals_[A]||A,line:this.lexer.yylineno,loc:I,expected:oe})}}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+A);switch(L[0]){case 1:s.push(A),g.push(this.lexer.yytext),d.push(this.lexer.yylloc),s.push(L[1]),A=null,j?(A=j,j=null):(_=this.lexer.yyleng,l=this.lexer.yytext,h=this.lexer.yylineno,I=this.lexer.yylloc,S>0);break;case 2:if(z=this.productions_[L[1]][1],ee.$=g[g.length-z],ee._$={first_line:d[d.length-(z||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(z||1)].first_column,last_column:d[d.length-1].last_column},T&&(ee._$.range=[d[d.length-(z||1)].range[0],d[d.length-1].range[1]]),(B=this.performAction.call(ee,l,_,h,this.yy,L[1],g,d))!==void 0)return B;z&&(s=s.slice(0,-1*z*2),g=g.slice(0,-1*z),d=d.slice(0,-1*z)),s.push(this.productions_[L[1]][0]),g.push(ee.$),d.push(ee._$),G=m[s[s.length-2]][s[s.length-1]],s.push(G);break;case 3:return!0}}return!0}},p=function(){var C={EOF:1,parseError:function(u,a){if(!this.yy.parser)throw new Error(u);this.yy.parser.parseError(u,a)},setInput:function(u){return this._input=u,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 u=this._input[0];return this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u,u.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),u},unput:function(u){var a=u.length,s=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var g=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 d=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===g.length?this.yylloc.first_column:0)+g[g.length-s.length].length-s[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
440
|
+
`+a+"^"},next:function(){if(this.done)return this.EOF;var u,a,s,g,d;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),l=0;l<m.length&&(!(s=this._input.match(this.rules[m[l]]))||a&&!(s[0].length>a[0].length)||(a=s,g=l,this.options.flex));l++);return a?((d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.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],u=this.performAction.call(this,this.yy,this,m[g],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||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 u=this.next();return u!==void 0?u:this.lex()},begin:function(u){this.conditionStack.push(u)},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(u){this.begin(u)},options:{},performAction:function(u,a,s,g){function d(m,l){return a.yytext=a.yytext.substring(m,a.yyleng-l+m)}switch(s){case 0:if(a.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(d(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:(d(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=d(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=d(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=p,o.prototype=e,e.Parser=o,new o}();n.default=v,c.exports=n.default},function(c,n,v){function o(){var g=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=g}function e(g,d,m){d===void 0&&(d=g.length);var l=g[d-1],h=g[d-2];return l?l.type==="ContentStatement"?(h||!m?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(l.original):void 0:m}function p(g,d,m){d===void 0&&(d=-1);var l=g[d+1],h=g[d+2];return l?l.type==="ContentStatement"?(h||!m?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(l.original):void 0:m}function C(g,d,m){var l=g[d==null?0:d+1];if(l&&l.type==="ContentStatement"&&(m||!l.rightStripped)){var h=l.value;l.value=l.value.replace(m?/^\s+/:/^[ \t]*\r?\n?/,""),l.rightStripped=l.value!==h}}function u(g,d,m){var l=g[d==null?g.length-1:d-1];if(l&&l.type==="ContentStatement"&&(m||!l.leftStripped)){var h=l.value;return l.value=l.value.replace(m?/\s+$/:/[ \t]+$/,""),l.leftStripped=l.value!==h,l.leftStripped}}var a=v(1).default;n.__esModule=!0;var s=a(v(49));o.prototype=new s.default,o.prototype.Program=function(g){var d=!this.options.ignoreStandalone,m=!this.isRootSeen;this.isRootSeen=!0;for(var l=g.body,h=0,_=l.length;h<_;h++){var S=l[h],I=this.accept(S);if(I){var T=e(l,h,m),A=p(l,h,m),j=I.openStandalone&&T,U=I.closeStandalone&&A,L=I.inlineStandalone&&T&&A;I.close&&C(l,h,!0),I.open&&u(l,h,!0),d&&L&&(C(l,h),u(l,h)&&S.type==="PartialStatement"&&(S.indent=/([ \t]+$)/.exec(l[h-1].original)[1])),d&&j&&(C((S.program||S.inverse).body),u(l,h)),d&&U&&(C(l,h),u((S.inverse||S.program).body))}}return g},o.prototype.BlockStatement=o.prototype.DecoratorBlock=o.prototype.PartialBlockStatement=function(g){this.accept(g.program),this.accept(g.inverse);var d=g.program||g.inverse,m=g.program&&g.inverse,l=m,h=m;if(m&&m.chained)for(l=m.body[0].program;h.chained;)h=h.body[h.body.length-1].program;var _={open:g.openStrip.open,close:g.closeStrip.close,openStandalone:p(d.body),closeStandalone:e((l||d).body)};if(g.openStrip.close&&C(d.body,null,!0),m){var S=g.inverseStrip;S.open&&u(d.body,null,!0),S.close&&C(l.body,null,!0),g.closeStrip.open&&u(h.body,null,!0),!this.options.ignoreStandalone&&e(d.body)&&p(l.body)&&(u(d.body),C(l.body))}else g.closeStrip.open&&u(d.body,null,!0);return _},o.prototype.Decorator=o.prototype.MustacheStatement=function(g){return g.strip},o.prototype.PartialStatement=o.prototype.CommentStatement=function(g){var d=g.strip||{};return{inlineStandalone:!0,open:d.open,close:d.close}},n.default=o,c.exports=n.default},function(c,n,v){function o(){this.parents=[]}function e(s){this.acceptRequired(s,"path"),this.acceptArray(s.params),this.acceptKey(s,"hash")}function p(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 u=v(1).default;n.__esModule=!0;var a=u(v(6));o.prototype={constructor:o,mutating:!1,acceptKey:function(s,g){var d=this.accept(s[g]);if(this.mutating){if(d&&!o.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+g+" on "+s.type);s[g]=d}},acceptRequired:function(s,g){if(this.acceptKey(s,g),!s[g])throw new a.default(s.type+" requires "+g)},acceptArray:function(s){for(var g=0,d=s.length;g<d;g++)this.acceptKey(s,g),s[g]||(s.splice(g,1),g--,d--)},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 g=this[s.type](s);return this.current=this.parents.shift(),!this.mutating||g?g:g!==!1?s:void 0}},Program:function(s){this.acceptArray(s.body)},MustacheStatement:e,Decorator:e,BlockStatement:p,DecoratorBlock:p,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=o,c.exports=n.default},function(c,n,v){function o(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 p(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 u(S){return S.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function a(S,I,T){T=this.locInfo(T);for(var A=S?"@":"",j=[],U=0,L=0,B=I.length;L<B;L++){var N=I[L].part,z=I[L].original!==N;if(A+=(I[L].separator||"")+N,z||N!==".."&&N!=="."&&N!=="this")j.push(N);else{if(j.length>0)throw new _.default("Invalid path: "+A,{loc:T});N===".."&&U++}}return{type:"PathExpression",data:S,depth:U,parts:j,original:A,loc:T}}function s(S,I,T,A,j,U){var L=A.charAt(3)||A.charAt(2),B=L!=="{"&&L!=="&";return{type:/\*/.test(A)?"Decorator":"MustacheStatement",path:S,params:I,hash:T,escaped:B,strip:j,loc:this.locInfo(U)}}function g(S,I,T,A){o(S,T);var j={type:"Program",body:I,strip:{},loc:A=this.locInfo(A)};return{type:"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:j,openStrip:{},inverseStrip:{},closeStrip:{},loc:A}}function d(S,I,T,A,j,U){A&&A.path&&o(S,A);var L=/\*/.test(S.open);I.blockParams=S.blockParams;var B=void 0,N=void 0;if(T){if(L)throw new _.default("Unexpected inverse block on decorator",T);T.chain&&(T.program.body[0].closeStrip=A.strip),N=T.strip,B=T.program}return j&&(j=B,B=I,I=j),{type:L?"DecoratorBlock":"BlockStatement",path:S.path,params:S.params,hash:S.hash,program:I,inverse:B,openStrip:S.strip,inverseStrip:N,closeStrip:A&&A.strip,loc:this.locInfo(U)}}function m(S,I){if(!I&&S.length){var T=S[0].loc,A=S[S.length-1].loc;T&&A&&(I={source:T.source,start:{line:T.start.line,column:T.start.column},end:{line:A.end.line,column:A.end.column}})}return{type:"Program",body:S,strip:{},loc:I}}function l(S,I,T,A){return o(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(A)}}var h=v(1).default;n.__esModule=!0,n.SourceLocation=e,n.id=p,n.stripFlags=C,n.stripComment=u,n.preparePath=a,n.prepareMustache=s,n.prepareRawBlock=g,n.prepareBlock=d,n.prepareProgram=m,n.preparePartialBlock=l;var _=h(v(6))},function(c,n,v){function o(){}function e(h,_,S){if(h==null||typeof h!="string"&&h.type!=="Program")throw new g.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+h);"data"in(_=_||{})||(_.data=!0),_.compat&&(_.useDepths=!0);var I=S.parse(h,_),T=new S.Compiler().compile(I,_);return new S.JavaScriptCompiler().compile(T,_)}function p(h,_,S){function I(){var j=S.parse(h,_),U=new S.Compiler().compile(j,_),L=new S.JavaScriptCompiler().compile(U,_,void 0,!0);return S.template(L)}function T(j,U){return A||(A=I()),A.call(this,j,U)}if(_===void 0&&(_={}),h==null||typeof h!="string"&&h.type!=="Program")throw new g.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+h);"data"in(_=d.extend({},_))||(_.data=!0),_.compat&&(_.useDepths=!0);var A=void 0;return T._setup=function(j){return A||(A=I()),A._setup(j)},T._child=function(j,U,L,B){return A||(A=I()),A._child(j,U,L,B)},T}function C(h,_){if(h===_)return!0;if(d.isArray(h)&&d.isArray(_)&&h.length===_.length){for(var S=0;S<h.length;S++)if(!C(h[S],_[S]))return!1;return!0}}function u(h){if(!h.path.parts){var _=h.path;h.path={type:"PathExpression",data:!1,depth:0,parts:[_.original+""],original:_.original+"",loc:_.loc}}}var a=v(34).default,s=v(1).default;n.__esModule=!0,n.Compiler=o,n.precompile=e,n.compile=p;var g=s(v(6)),d=v(5),m=s(v(45)),l=[].slice;o.prototype={compiler:o,equals:function(h){var _=this.opcodes.length;if(h.opcodes.length!==_)return!1;for(var S=0;S<_;S++){var I=this.opcodes[S],T=h.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(h.children[S]))return!1;return!0},guid:0,compile:function(h,_){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=_,this.stringParams=_.stringParams,this.trackIds=_.trackIds,_.blockParams=_.blockParams||[],_.knownHelpers=d.extend(a(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},_.knownHelpers),this.accept(h)},compileProgram:function(h){var _=new this.compiler().compile(h,this.options),S=this.guid++;return this.usePartial=this.usePartial||_.usePartial,this.children[S]=_,this.useDepths=this.useDepths||_.useDepths,S},accept:function(h){if(!this[h.type])throw new g.default("Unknown type: "+h.type,h);this.sourceNode.unshift(h);var _=this[h.type](h);return this.sourceNode.shift(),_},Program:function(h){this.options.blockParams.unshift(h.blockParams);for(var _=h.body,S=_.length,I=0;I<S;I++)this.accept(_[I]);return this.options.blockParams.shift(),this.isSimple=S===1,this.blockParams=h.blockParams?h.blockParams.length:0,this},BlockStatement:function(h){u(h);var _=h.program,S=h.inverse;_=_&&this.compileProgram(_),S=S&&this.compileProgram(S);var I=this.classifySexpr(h);I==="helper"?this.helperSexpr(h,_,S):I==="simple"?(this.simpleSexpr(h),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("blockValue",h.path.original)):(this.ambiguousSexpr(h,_,S),this.opcode("pushProgram",_),this.opcode("pushProgram",S),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(h){var _=h.program&&this.compileProgram(h.program),S=this.setupFullMustacheParams(h,_,void 0),I=h.path;this.useDecorators=!0,this.opcode("registerDecorator",S.length,I.original)},PartialStatement:function(h){this.usePartial=!0;var _=h.program;_&&(_=this.compileProgram(h.program));var S=h.params;if(S.length>1)throw new g.default("Unsupported number of partial arguments: "+S.length,h);S.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):S.push({type:"PathExpression",parts:[],depth:0}));var I=h.name.original,T=h.name.type==="SubExpression";T&&this.accept(h.name),this.setupFullMustacheParams(h,_,void 0,!0);var A=h.indent||"";this.options.preventIndent&&A&&(this.opcode("appendContent",A),A=""),this.opcode("invokePartial",T,I,A),this.opcode("append")},PartialBlockStatement:function(h){this.PartialStatement(h)},MustacheStatement:function(h){this.SubExpression(h),h.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(h){this.DecoratorBlock(h)},ContentStatement:function(h){h.value&&this.opcode("appendContent",h.value)},CommentStatement:function(){},SubExpression:function(h){u(h);var _=this.classifySexpr(h);_==="simple"?this.simpleSexpr(h):_==="helper"?this.helperSexpr(h):this.ambiguousSexpr(h)},ambiguousSexpr:function(h,_,S){var I=h.path,T=I.parts[0],A=_!=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,A)},simpleSexpr:function(h){var _=h.path;_.strict=!0,this.accept(_),this.opcode("resolvePossibleLambda")},helperSexpr:function(h,_,S){var I=this.setupFullMustacheParams(h,_,S),T=h.path,A=T.parts[0];if(this.options.knownHelpers[A])this.opcode("invokeKnownHelper",I.length,A);else{if(this.options.knownHelpersOnly)throw new g.default("You specified knownHelpersOnly, but used the unknown helper "+A,h);T.strict=!0,T.falsy=!0,this.accept(T),this.opcode("invokeHelper",I.length,T.original,m.default.helpers.simpleId(T))}},PathExpression:function(h){this.addDepth(h.depth),this.opcode("getContext",h.depth);var _=h.parts[0],S=m.default.helpers.scopedId(h),I=!h.depth&&!S&&this.blockParamIndex(_);I?this.opcode("lookupBlockParam",I,h.parts):_?h.data?(this.options.data=!0,this.opcode("lookupData",h.depth,h.parts,h.strict)):this.opcode("lookupOnContext",h.parts,h.falsy,h.strict,S):this.opcode("pushContext")},StringLiteral:function(h){this.opcode("pushString",h.value)},NumberLiteral:function(h){this.opcode("pushLiteral",h.value)},BooleanLiteral:function(h){this.opcode("pushLiteral",h.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(h){var _=h.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(h){this.opcodes.push({opcode:h,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(h){h&&(this.useDepths=!0)},classifySexpr:function(h){var _=m.default.helpers.simpleId(h.path),S=_&&!!this.blockParamIndex(h.path.parts[0]),I=!S&&m.default.helpers.helperExpression(h),T=!S&&(I||_);if(T&&!I){var A=h.path.parts[0],j=this.options;j.knownHelpers[A]?I=!0:j.knownHelpersOnly&&(T=!1)}return I?"helper":T?"ambiguous":"simple"},pushParams:function(h){for(var _=0,S=h.length;_<S;_++)this.pushParam(h[_])},pushParam:function(h){var _=h.value!=null?h.value:h.original||"";if(this.stringParams)_.replace&&(_=_.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),h.depth&&this.addDepth(h.depth),this.opcode("getContext",h.depth||0),this.opcode("pushStringParam",_,h.type),h.type==="SubExpression"&&this.accept(h);else{if(this.trackIds){var S=void 0;if(!h.parts||m.default.helpers.scopedId(h)||h.depth||(S=this.blockParamIndex(h.parts[0])),S){var I=h.parts.slice(1).join(".");this.opcode("pushId","BlockParam",S,I)}else(_=h.original||_).replace&&(_=_.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",h.type,_)}this.accept(h)}},setupFullMustacheParams:function(h,_,S,I){var T=h.params;return this.pushParams(T),this.opcode("pushProgram",_),this.opcode("pushProgram",S),h.hash?this.accept(h.hash):this.opcode("emptyHash",I),T},blockParamIndex:function(h){for(var _=0,S=this.options.blockParams.length;_<S;_++){var I=this.options.blockParams[_],T=I&&d.indexOf(I,h);if(I&&T>=0)return[_,T]}}}},function(c,n,v){function o(m){this.value=m}function e(){}function p(m,l,h,_){var S=l.popStack(),I=0,T=h.length;for(m&&T--;I<T;I++)S=l.nameLookup(S,h[I],_);return m?[l.aliasable("container.strict"),"(",S,", ",l.quotedString(h[I]),", ",JSON.stringify(l.source.currentLocation)," )"]:S}var C=v(13).default,u=v(1).default;n.__esModule=!0;var a=v(4),s=u(v(6)),g=v(5),d=u(v(53));e.prototype={nameLookup:function(m,l){return this.internalNameLookup(m,l)},depthedLookup:function(m){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(m),")"]},compilerInfo:function(){var m=a.COMPILER_REVISION;return[m,a.REVISION_CHANGES[m]]},appendToBuffer:function(m,l,h){return g.isArray(m)||(m=[m]),m=this.source.wrap(m,l),this.environment.isSimple?["return ",m,";"]:h?["buffer += ",m,";"]:(m.appendToBuffer=!0,m)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(m,l){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",m,",",JSON.stringify(l),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(m,l,h,_){this.environment=m,this.options=l,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!_,this.name=this.environment.name,this.isChild=!!h,this.context=h||{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(m,l),this.useDepths=this.useDepths||m.useDepths||m.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||m.useBlockParams;var S=m.opcodes,I=void 0,T=void 0,A=void 0,j=void 0;for(A=0,j=S.length;A<j;A++)I=S[A],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(),`;
|
|
442
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) {
|
|
443
443
|
`),this.decorators.push(`}
|
|
444
|
-
`),this.decorators=this.decorators.merge()));var U=this.createFunctionContext(_);if(this.isChild)return U;var L={compiler:this.compilerInfo(),main:U};this.decorators&&(L.main_d=this.decorators,L.useDecorators=!0);var B=this.context,N=B.programs,z=B.decorators;for(
|
|
445
|
-
`,T,"}"])},mergeSource:function(m){var
|
|
444
|
+
`),this.decorators=this.decorators.merge()));var U=this.createFunctionContext(_);if(this.isChild)return U;var L={compiler:this.compilerInfo(),main:U};this.decorators&&(L.main_d=this.decorators,L.useDecorators=!0);var B=this.context,N=B.programs,z=B.decorators;for(A=0,j=N.length;A<j;A++)N[A]&&(L[A]=N[A],z[A]&&(L[A+"_d"]=z[A],L.useDecorators=!0));return this.environment.usePartial&&(L.usePartial=!0),this.options.data&&(L.useData=!0),this.useDepths&&(L.useDepths=!0),this.useBlockParams&&(L.useBlockParams=!0),this.options.compat&&(L.compat=!0),_?L.compilerOptions=this.options:(L.compiler=JSON.stringify(L.compiler),this.source.currentLocation={start:{line:1,column:0}},L=this.objectLiteral(L),l.srcName?(L=L.toStringWithSourceMap({file:l.destName})).map=L.map&&L.map.toString():L=L.toString()),L},preamble:function(){this.lastContext=0,this.source=new d.default(this.options.srcName),this.decorators=new d.default(this.options.srcName)},createFunctionContext:function(m){var l=this,h="",_=this.stackVars.concat(this.registers.list);_.length>0&&(h+=", "+_.join(", "));var S=0;C(this.aliases).forEach(function(A){var j=l.aliases[A];j.children&&j.referenceCount>1&&(h+=", alias"+ ++S+"="+A,j.children[0]="alias"+S)}),this.lookupPropertyFunctionIsUsed&&(h+=", "+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(h);return m?(I.push(T),Function.apply(this,I)):this.source.wrap(["function(",I.join(","),`) {
|
|
445
|
+
`,T,"}"])},mergeSource:function(m){var l=this.environment.isSimple,h=!this.forceBuffer,_=void 0,S=void 0,I=void 0,T=void 0;return this.source.each(function(A){A.appendToBuffer?(I?A.prepend(" + "):I=A,T=A):(I&&(S?I.prepend("buffer += "):_=!0,T.add(";"),I=T=void 0),S=!0,l||(h=!1))}),h?I?(I.prepend("return "),T.add(";")):S||this.source.push('return "";'):(m+=", buffer = "+(_?"":this.initializeBuffer()),I?(I.prepend("return buffer + "),T.add(";")):this.source.push("return buffer;")),m&&this.source.prepend("var "+m.substring(2)+(_?"":`;
|
|
446
446
|
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
447
447
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
448
448
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -450,6 +450,6 @@ Expecting `+oe.join(", ")+", got '"+(this.terminals_[R]||R)+"'":"Parse error on
|
|
|
450
450
|
}
|
|
451
451
|
return undefined
|
|
452
452
|
}
|
|
453
|
-
`.trim()},blockValue:function(m){var c=this.aliasable("container.hooks.blockHelperMissing"),h=[this.contextName(0)];this.setupHelperArgs(m,0,h);var _=this.popStack();h.splice(1,0,_),this.push(this.source.functionCall(c,"call",h))},ambiguousBlockValue:function(){var m=this.aliasable("container.hooks.blockHelperMissing"),c=[this.contextName(0)];this.setupHelperArgs("",0,c,!0),this.flushInline();var h=this.topStack();c.splice(1,0,h),this.pushSource(["if (!",this.lastHelper,") { ",h," = ",this.source.functionCall(m,"call",c),"}"])},appendContent:function(m){this.pendingContent?m=this.pendingContent+m:this.pendingLocation=this.source.currentLocation,this.pendingContent=m},append:function(){if(this.isInline())this.replaceStack(function(c){return[" != null ? ",c,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var m=this.popStack();this.pushSource(["if (",m," != null) { ",this.appendToBuffer(m,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(m){this.lastContext=m},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(m,c,h,_){var S=0;_||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(m[S++])),this.resolvePath("context",m,S,c,h)},lookupBlockParam:function(m,c){this.useBlockParams=!0,this.push(["blockParams[",m[0],"][",m[1],"]"]),this.resolvePath("context",c,1)},lookupData:function(m,c,h){m?this.pushStackLiteral("container.data(data, "+m+")"):this.pushStackLiteral("data"),this.resolvePath("data",c,0,!0,h)},resolvePath:function(m,c,h,_,S){var F=this;if(this.options.strict||this.options.assumeObjects)this.push(p(this.options.strict&&S,this,c,m));else for(var T=c.length;h<T;h++)this.replaceStack(function(R){var j=F.nameLookup(R,c[h],m);return _?[" && ",j]:[" != null ? ",j," : ",R]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(m,c){this.pushContext(),this.pushString(c),c!=="SubExpression"&&(typeof m=="string"?this.pushString(m):this.pushStackLiteral(m))},emptyHash:function(m){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(m?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var m=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(m.ids)),this.stringParams&&(this.push(this.objectLiteral(m.contexts)),this.push(this.objectLiteral(m.types))),this.push(this.objectLiteral(m.values))},pushString:function(m){this.pushStackLiteral(this.quotedString(m))},pushLiteral:function(m){this.pushStackLiteral(m)},pushProgram:function(m){m!=null?this.pushStackLiteral(this.programExpression(m)):this.pushStackLiteral(null)},registerDecorator:function(m,c){var h=this.nameLookup("decorators",c,"decorator"),_=this.setupHelperArgs(c,m);this.decorators.push(["fn = ",this.decorators.functionCall(h,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(m,c,h){var _=this.popStack(),S=this.setupHelper(m,c),F=[];h&&F.push(S.name),F.push(_),this.options.strict||F.push(this.aliasable("container.hooks.helperMissing"));var T=["(",this.itemsSeparatedBy(F,"||"),")"],R=this.source.functionCall(T,"call",S.callParams);this.push(R)},itemsSeparatedBy:function(m,c){var h=[];h.push(m[0]);for(var _=1;_<m.length;_++)h.push(c,m[_]);return h},invokeKnownHelper:function(m,c){var h=this.setupHelper(m,c);this.push(this.source.functionCall(h.name,"call",h.callParams))},invokeAmbiguous:function(m,c){this.useRegister("helper");var h=this.popStack();this.emptyHash();var _=this.setupHelper(0,m,c),S=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",m,"helper")," || ",h,")"];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(m,c,h){var _=[],S=this.setupParams(c,1,_);m&&(c=this.popStack(),delete S.name),h&&(S.indent=JSON.stringify(h)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",m?_.unshift(c):_.unshift(this.nameLookup("partials",c,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),_.push(S),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(m){var c=this.popStack(),h=void 0,_=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(_=this.popStack(),h=this.popStack());var F=this.hash;h&&(F.contexts[m]=h),_&&(F.types[m]=_),S&&(F.ids[m]=S),F.values[m]=c},pushId:function(m,c,h){m==="BlockParam"?this.pushStackLiteral("blockParams["+c[0]+"].path["+c[1]+"]"+(h?" + "+JSON.stringify("."+h):"")):m==="PathExpression"?this.pushString(c):m==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(m,c){for(var h=m.children,_=void 0,S=void 0,F=0,T=h.length;F<T;F++){_=h[F],S=new this.compiler;var R=this.matchExistingProgram(_);if(R==null){this.context.programs.push("");var j=this.context.programs.length;_.index=j,_.name="program"+j,this.context.programs[j]=S.compile(_,c,this.context,!this.precompile),this.context.decorators[j]=S.decorators,this.context.environments[j]=_,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=R.index,_.name="program"+R.index,this.useDepths=this.useDepths||R.useDepths,this.useBlockParams=this.useBlockParams||R.useBlockParams}},matchExistingProgram:function(m){for(var c=0,h=this.context.environments.length;c<h;c++){var _=this.context.environments[c];if(_&&_.equals(m))return _}},programExpression:function(m){var c=this.environment.children[m],h=[c.index,"data",c.blockParams];return(this.useBlockParams||this.useDepths)&&h.push("blockParams"),this.useDepths&&h.push("depths"),"container.program("+h.join(", ")+")"},useRegister:function(m){this.registers[m]||(this.registers[m]=!0,this.registers.list.push(m))},push:function(m){return m instanceof o||(m=this.source.wrap(m)),this.inlineStack.push(m),m},pushStackLiteral:function(m){this.push(new o(m))},pushSource:function(m){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),m&&this.source.push(m)},replaceStack:function(m){var c=["("],h=void 0,_=void 0,S=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var F=this.popStack(!0);if(F instanceof o)c=["(",h=[F.value]],S=!0;else{_=!0;var T=this.incrStack();c=["((",this.push(T)," = ",F,")"],h=this.topStack()}var R=m.call(this,h);S||this.popStack(),_&&this.stackSlot--,this.push(c.concat(R,")"))},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 m=this.inlineStack;this.inlineStack=[];for(var c=0,h=m.length;c<h;c++){var _=m[c];if(_ instanceof o)this.compileStack.push(_);else{var S=this.incrStack();this.pushSource([S," = ",_,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(m){var c=this.isInline(),h=(c?this.inlineStack:this.compileStack).pop();if(!m&&h instanceof o)return h.value;if(!c){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return h},topStack:function(){var m=this.isInline()?this.inlineStack:this.compileStack,c=m[m.length-1];return c instanceof o?c.value:c},contextName:function(m){return this.useDepths&&m?"depths["+m+"]":"depth"+m},quotedString:function(m){return this.source.quotedString(m)},objectLiteral:function(m){return this.source.objectLiteral(m)},aliasable:function(m){var c=this.aliases[m];return c?(c.referenceCount++,c):((c=this.aliases[m]=this.source.wrap(m)).aliasable=!0,c.referenceCount=1,c)},setupHelper:function(m,c,h){var _=[];return{params:_,paramsInit:this.setupHelperArgs(c,m,_,h),name:this.nameLookup("helpers",c,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(_)}},setupParams:function(m,c,h){var _={},S=[],F=[],T=[],R=!h,j=void 0;R&&(h=[]),_.name=this.quotedString(m),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var U=this.popStack(),L=this.popStack();(L||U)&&(_.fn=L||"container.noop",_.inverse=U||"container.noop");for(var B=c;B--;)j=this.popStack(),h[B]=j,this.trackIds&&(T[B]=this.popStack()),this.stringParams&&(F[B]=this.popStack(),S[B]=this.popStack());return R&&(_.args=this.source.generateArray(h)),this.trackIds&&(_.ids=this.source.generateArray(T)),this.stringParams&&(_.types=this.source.generateArray(F),_.contexts=this.source.generateArray(S)),this.options.data&&(_.data="data"),this.useBlockParams&&(_.blockParams="blockParams"),_},setupHelperArgs:function(m,c,h,_){var S=this.setupParams(m,c,h);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),_?(this.useRegister("options"),h.push("options"),["options=",S]):h?(h.push(S),""):S}},function(){for(var m="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(" "),c=e.RESERVED_WORDS={},h=0,_=m.length;h<_;h++)c[m[h]]=!0}(),e.isValidJavaScriptVariableName=function(m){return!e.RESERVED_WORDS[m]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(m)},n.default=e,l.exports=n.default},function(l,n,v){function o(a,s,g){if(C.isArray(a)){for(var d=[],m=0,c=a.length;m<c;m++)d.push(s.wrap(a[m],g));return d}return typeof a=="boolean"||typeof a=="number"?a+"":a}function e(a){this.srcFile=a,this.source=[]}var p=v(13).default;n.__esModule=!0;var C=v(5),u=void 0;u||(u=function(a,s,g,d){this.src="",d&&this.add(d)},u.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,g=this.source.length;s<g;s++)a(this.source[s])},empty:function(){var a=this.currentLocation||{start:{}};return new u(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 u?a:(a=o(a,this,s),new u(s.start.line,s.start.column,this.srcFile,a))},functionCall:function(a,s,g){return g=this.generateList(g),this.wrap([a,s?"."+s+"(":"(",g,")"])},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,g=[];p(a).forEach(function(m){var c=o(a[m],s);c!=="undefined"&&g.push([s.quotedString(m),":",c])});var d=this.generateList(g);return d.prepend("{"),d.add("}"),d},generateList:function(a){for(var s=this.empty(),g=0,d=a.length;g<d;g++)g&&s.add(","),s.add(o(a[g],this));return s},generateArray:function(a){var s=this.generateList(a);return s.prepend("["),s.add("]"),s}},n.default=e,l.exports=n.default}])},3633:function(b,l,n){b.exports=n(261).default}},r={};function E(b){var l=r[b];if(l!==void 0)return l.exports;var n=r[b]={exports:{}};return f[b].call(n.exports,n,n.exports,E),n.exports}return E.n=function(b){var l=b&&b.__esModule?function(){return b.default}:function(){return b};return E.d(l,{a:l}),l},E.d=function(b,l){for(var n in l)E.o(l,n)&&!E.o(b,n)&&Object.defineProperty(b,n,{enumerable:!0,get:l[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(b,l){return Object.prototype.hasOwnProperty.call(b,l)},E(2987)}()})})(uo);var Tl=uo.exports;const Ot=zr(Tl),Pl=({addSearchUi:t,searchFieldMaxWidthInPixels:i,searchFieldHeaderText:f,searchInputPlaceholderText:r,searchButtonText:E,hasSearchInputAutofocus:b,hasSearchAsYouType:l,minLengthToShowSearchAsYouTypeResults:n,hasSearchInputFieldIcon:v,hasAutocomplete:o,hasAiAnswers:e,loadMoreResults:p,sortByOptions:C,filters:u,hasActiveFilters:a})=>{const[s,g]=St.useState(!1),d=St.useRef(null),m=St.useMemo(()=>u.filter(S=>S.type==="checkbox-group"||S.type==="radio-group"||S.type==="tags"),[u]),c=St.useMemo(()=>m.length>0,[m]),h=St.useMemo(()=>u&&u.find(S=>S.type==="tabs"),[]),_=St.useMemo(()=>u&&u.find(S=>S.type==="select-list"),[]);return St.useEffect(()=>{t.searchField({containerId:"search-field-container",placeholder:r,button:E,icon:v,autofocus:b,searchAsYouType:l,minLengthToShowResults:n}),e&&t.aiAnswersResult({containerId:"conversational-search-result-container",mainHeadlineText:"AI-generated answer",answerMaxHeight:150,sourcesHeadlineText:"Based on the following sources:"}),t.searchResults({containerId:"search-results-container"}),o&&t.autocomplete({containerId:"autocomplete-container",sources:[{type:Ot.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),p==="button"?t.loadMore({containerId:"loadmore-container",type:Ot.LOAD_MORE_TYPE.BUTTON}):p==="pagination"?t.pagination({containerId:"pagination-container"}):p==="scroll"&&t.loadMore({containerId:d.current,type:Ot.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:d.current}),C!=null&&C.length&&(C==null?void 0:C.length)>0&&t.sortBy({containerId:"sortby-container",options:C}),u&&u.length>0&&(u.forEach((S,F)=>{S.type==="checkbox-group"?t.filters({containerId:`filters-container-${F}`,type:Ot.FILTER_TYPE.CHECKBOX_GROUP,options:S.options}):S.type==="radio-group"?t.filters({containerId:`filters-container-${F}`,type:Ot.FILTER_TYPE.RADIO_GROUP,options:S.options}):S.type==="tags"?t.filters({containerId:`filters-container-${F}`,type:Ot.FILTER_TYPE.TAGS,options:S.options}):S.type==="tabs"?t.filters({containerId:"tab-filters-container",type:Ot.FILTER_TYPE.TABS,options:S.options}):S.type==="select-list"&&(t.filters({containerId:"select-list-filters-container",type:Ot.FILTER_TYPE.SELECT_LIST,options:S.options}),t.filters({containerId:"select-list-filters-container-mobile",type:Ot.FILTER_TYPE.SELECT_LIST,options:S.options}))}),a&&t.activeFilters({containerId:"active-filters-container"})),t.start()},[s,d.current,u,C,a,p,a,o,l,b,v,E,r,f]),Oe.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[Oe.jsxs("div",{className:"flex items-center gap-4",children:[f&&Oe.jsx("h2",{className:"text-xl font-semibold",children:f}),Oe.jsx("div",{style:{maxWidth:`${i}px`},id:"search-field-container"})]}),Oe.jsx("div",{id:"autocomplete-container"}),Oe.jsx("div",{id:"conversational-search-result-container"}),h&&Oe.jsx("div",{className:"mt-10 flex justify-center",children:Oe.jsx("div",{id:"tab-filters-container"})}),c&&Oe.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${s?"bg-gray-50":""}`,children:[Oe.jsxs("button",{onClick:()=>g(!s),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[Oe.jsxs("div",{className:"flex items-center gap-2",children:[Oe.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Oe.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"]}),Oe.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:Oe.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&&Oe.jsx("div",{className:"p-4 flex flex-col gap-6",children:m.map((S,F)=>Oe.jsxs("div",{children:[S.labelText&&Oe.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),Oe.jsx("div",{id:`filters-container-${F}`})]},S.type))})]}),_&&Oe.jsx("div",{className:"mt-10 w-full flex justify-end",children:Oe.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),Oe.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&&Oe.jsx("div",{children:Oe.jsx("div",{id:"active-filters-container"})}),(_||(C==null?void 0:C.length)&&C.length>0)&&Oe.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[_&&Oe.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(C==null?void 0:C.length)&&C.length>0&&Oe.jsx("div",{id:"sortby-container"})]})]}),Oe.jsx("div",{className:"mt-4",children:c?Oe.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[Oe.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:m.map((S,F)=>Oe.jsxs("div",{children:[S.labelText&&Oe.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),Oe.jsx("div",{id:`filters-container-${F}`})]},S.type))}),Oe.jsxs("div",{className:"w-full h-full",children:[Oe.jsx("div",{className:"h-[500px]",children:Oe.jsx("div",{ref:d,id:"search-results-container"})}),Oe.jsx("div",{className:"flex justify-center",children:Oe.jsx("div",{id:"loadmore-container"})}),Oe.jsx("div",{id:"pagination-container"})]})]}):Oe.jsx("div",{className:"flex",children:Oe.jsxs("div",{className:"w-full h-full",children:[Oe.jsx("div",{className:"h-[500px]",children:Oe.jsx("div",{ref:d,id:"search-results-container"})}),Oe.jsx("div",{className:"flex justify-center",children:Oe.jsx("div",{id:"loadmore-container"})}),Oe.jsx("div",{id:"pagination-container"})]})})})]})},Fl=({publicSiteKey:t,primaryColor:i,customFont:f,searchFieldMaxWidthInPixels:r=600,searchFieldHeaderText:E,searchButtonText:b,searchInputPlaceholderText:l="Keyword...",hasSearchInputAutofocus:n=!0,hasSearchAsYouType:v=!1,minLengthToShowSearchAsYouTypeResults:o=3,hasSearchInputFieldIcon:e=!0,hasAutocomplete:p=!0,hasAiAnswers:C=!1,hasAiAnswersHideToggle:u,loadMoreResults:a="pagination",sortByOptions:s=[],filters:g=[],hasActiveFilters:d=!0})=>{const[m,c]=St.useState(null);return St.useEffect(()=>{const h=new Rl(t),_=new Ot(h,{hasAiAnswers:!0});c(_)},[]),St.useEffect(()=>{i&&document.documentElement.style.setProperty("--addsearch-primary-color",i)},[i]),St.useEffect(()=>{f&&document.documentElement.style.setProperty("--addsearch-font-family",`'${f}', sans-serif`)},[f]),m&&Oe.jsx(Pl,{addSearchUi:m,searchFieldMaxWidthInPixels:r,searchFieldHeaderText:E,searchButtonText:b,searchInputPlaceholderText:l,hasSearchInputAutofocus:n,hasSearchAsYouType:v,minLengthToShowSearchAsYouTypeResults:o,hasSearchInputFieldIcon:e,hasAutocomplete:p,hasAiAnswers:C,hasAiAnswersHideToggle:u,loadMoreResults:a,sortByOptions:s,filters:g,hasActiveFilters:d})};ft.AddSearchUiIntegration=Fl,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
|
|
453
|
+
`.trim()},blockValue:function(m){var l=this.aliasable("container.hooks.blockHelperMissing"),h=[this.contextName(0)];this.setupHelperArgs(m,0,h);var _=this.popStack();h.splice(1,0,_),this.push(this.source.functionCall(l,"call",h))},ambiguousBlockValue:function(){var m=this.aliasable("container.hooks.blockHelperMissing"),l=[this.contextName(0)];this.setupHelperArgs("",0,l,!0),this.flushInline();var h=this.topStack();l.splice(1,0,h),this.pushSource(["if (!",this.lastHelper,") { ",h," = ",this.source.functionCall(m,"call",l),"}"])},appendContent:function(m){this.pendingContent?m=this.pendingContent+m:this.pendingLocation=this.source.currentLocation,this.pendingContent=m},append:function(){if(this.isInline())this.replaceStack(function(l){return[" != null ? ",l,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var m=this.popStack();this.pushSource(["if (",m," != null) { ",this.appendToBuffer(m,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(m){this.lastContext=m},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(m,l,h,_){var S=0;_||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(m[S++])),this.resolvePath("context",m,S,l,h)},lookupBlockParam:function(m,l){this.useBlockParams=!0,this.push(["blockParams[",m[0],"][",m[1],"]"]),this.resolvePath("context",l,1)},lookupData:function(m,l,h){m?this.pushStackLiteral("container.data(data, "+m+")"):this.pushStackLiteral("data"),this.resolvePath("data",l,0,!0,h)},resolvePath:function(m,l,h,_,S){var I=this;if(this.options.strict||this.options.assumeObjects)this.push(p(this.options.strict&&S,this,l,m));else for(var T=l.length;h<T;h++)this.replaceStack(function(A){var j=I.nameLookup(A,l[h],m);return _?[" && ",j]:[" != null ? ",j," : ",A]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(m,l){this.pushContext(),this.pushString(l),l!=="SubExpression"&&(typeof m=="string"?this.pushString(m):this.pushStackLiteral(m))},emptyHash:function(m){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(m?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var m=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(m.ids)),this.stringParams&&(this.push(this.objectLiteral(m.contexts)),this.push(this.objectLiteral(m.types))),this.push(this.objectLiteral(m.values))},pushString:function(m){this.pushStackLiteral(this.quotedString(m))},pushLiteral:function(m){this.pushStackLiteral(m)},pushProgram:function(m){m!=null?this.pushStackLiteral(this.programExpression(m)):this.pushStackLiteral(null)},registerDecorator:function(m,l){var h=this.nameLookup("decorators",l,"decorator"),_=this.setupHelperArgs(l,m);this.decorators.push(["fn = ",this.decorators.functionCall(h,"",["fn","props","container",_])," || fn;"])},invokeHelper:function(m,l,h){var _=this.popStack(),S=this.setupHelper(m,l),I=[];h&&I.push(S.name),I.push(_),this.options.strict||I.push(this.aliasable("container.hooks.helperMissing"));var T=["(",this.itemsSeparatedBy(I,"||"),")"],A=this.source.functionCall(T,"call",S.callParams);this.push(A)},itemsSeparatedBy:function(m,l){var h=[];h.push(m[0]);for(var _=1;_<m.length;_++)h.push(l,m[_]);return h},invokeKnownHelper:function(m,l){var h=this.setupHelper(m,l);this.push(this.source.functionCall(h.name,"call",h.callParams))},invokeAmbiguous:function(m,l){this.useRegister("helper");var h=this.popStack();this.emptyHash();var _=this.setupHelper(0,m,l),S=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",m,"helper")," || ",h,")"];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(m,l,h){var _=[],S=this.setupParams(l,1,_);m&&(l=this.popStack(),delete S.name),h&&(S.indent=JSON.stringify(h)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",m?_.unshift(l):_.unshift(this.nameLookup("partials",l,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),_.push(S),this.push(this.source.functionCall("container.invokePartial","",_))},assignToHash:function(m){var l=this.popStack(),h=void 0,_=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(_=this.popStack(),h=this.popStack());var I=this.hash;h&&(I.contexts[m]=h),_&&(I.types[m]=_),S&&(I.ids[m]=S),I.values[m]=l},pushId:function(m,l,h){m==="BlockParam"?this.pushStackLiteral("blockParams["+l[0]+"].path["+l[1]+"]"+(h?" + "+JSON.stringify("."+h):"")):m==="PathExpression"?this.pushString(l):m==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(m,l){for(var h=m.children,_=void 0,S=void 0,I=0,T=h.length;I<T;I++){_=h[I],S=new this.compiler;var A=this.matchExistingProgram(_);if(A==null){this.context.programs.push("");var j=this.context.programs.length;_.index=j,_.name="program"+j,this.context.programs[j]=S.compile(_,l,this.context,!this.precompile),this.context.decorators[j]=S.decorators,this.context.environments[j]=_,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,_.useDepths=this.useDepths,_.useBlockParams=this.useBlockParams}else _.index=A.index,_.name="program"+A.index,this.useDepths=this.useDepths||A.useDepths,this.useBlockParams=this.useBlockParams||A.useBlockParams}},matchExistingProgram:function(m){for(var l=0,h=this.context.environments.length;l<h;l++){var _=this.context.environments[l];if(_&&_.equals(m))return _}},programExpression:function(m){var l=this.environment.children[m],h=[l.index,"data",l.blockParams];return(this.useBlockParams||this.useDepths)&&h.push("blockParams"),this.useDepths&&h.push("depths"),"container.program("+h.join(", ")+")"},useRegister:function(m){this.registers[m]||(this.registers[m]=!0,this.registers.list.push(m))},push:function(m){return m instanceof o||(m=this.source.wrap(m)),this.inlineStack.push(m),m},pushStackLiteral:function(m){this.push(new o(m))},pushSource:function(m){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),m&&this.source.push(m)},replaceStack:function(m){var l=["("],h=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 o)l=["(",h=[I.value]],S=!0;else{_=!0;var T=this.incrStack();l=["((",this.push(T)," = ",I,")"],h=this.topStack()}var A=m.call(this,h);S||this.popStack(),_&&this.stackSlot--,this.push(l.concat(A,")"))},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 m=this.inlineStack;this.inlineStack=[];for(var l=0,h=m.length;l<h;l++){var _=m[l];if(_ instanceof o)this.compileStack.push(_);else{var S=this.incrStack();this.pushSource([S," = ",_,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(m){var l=this.isInline(),h=(l?this.inlineStack:this.compileStack).pop();if(!m&&h instanceof o)return h.value;if(!l){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return h},topStack:function(){var m=this.isInline()?this.inlineStack:this.compileStack,l=m[m.length-1];return l instanceof o?l.value:l},contextName:function(m){return this.useDepths&&m?"depths["+m+"]":"depth"+m},quotedString:function(m){return this.source.quotedString(m)},objectLiteral:function(m){return this.source.objectLiteral(m)},aliasable:function(m){var l=this.aliases[m];return l?(l.referenceCount++,l):((l=this.aliases[m]=this.source.wrap(m)).aliasable=!0,l.referenceCount=1,l)},setupHelper:function(m,l,h){var _=[];return{params:_,paramsInit:this.setupHelperArgs(l,m,_,h),name:this.nameLookup("helpers",l,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(_)}},setupParams:function(m,l,h){var _={},S=[],I=[],T=[],A=!h,j=void 0;A&&(h=[]),_.name=this.quotedString(m),_.hash=this.popStack(),this.trackIds&&(_.hashIds=this.popStack()),this.stringParams&&(_.hashTypes=this.popStack(),_.hashContexts=this.popStack());var U=this.popStack(),L=this.popStack();(L||U)&&(_.fn=L||"container.noop",_.inverse=U||"container.noop");for(var B=l;B--;)j=this.popStack(),h[B]=j,this.trackIds&&(T[B]=this.popStack()),this.stringParams&&(I[B]=this.popStack(),S[B]=this.popStack());return A&&(_.args=this.source.generateArray(h)),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(m,l,h,_){var S=this.setupParams(m,l,h);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),_?(this.useRegister("options"),h.push("options"),["options=",S]):h?(h.push(S),""):S}},function(){for(var m="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(" "),l=e.RESERVED_WORDS={},h=0,_=m.length;h<_;h++)l[m[h]]=!0}(),e.isValidJavaScriptVariableName=function(m){return!e.RESERVED_WORDS[m]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(m)},n.default=e,c.exports=n.default},function(c,n,v){function o(a,s,g){if(C.isArray(a)){for(var d=[],m=0,l=a.length;m<l;m++)d.push(s.wrap(a[m],g));return d}return typeof a=="boolean"||typeof a=="number"?a+"":a}function e(a){this.srcFile=a,this.source=[]}var p=v(13).default;n.__esModule=!0;var C=v(5),u=void 0;u||(u=function(a,s,g,d){this.src="",d&&this.add(d)},u.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,g=this.source.length;s<g;s++)a(this.source[s])},empty:function(){var a=this.currentLocation||{start:{}};return new u(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 u?a:(a=o(a,this,s),new u(s.start.line,s.start.column,this.srcFile,a))},functionCall:function(a,s,g){return g=this.generateList(g),this.wrap([a,s?"."+s+"(":"(",g,")"])},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,g=[];p(a).forEach(function(m){var l=o(a[m],s);l!=="undefined"&&g.push([s.quotedString(m),":",l])});var d=this.generateList(g);return d.prepend("{"),d.add("}"),d},generateList:function(a){for(var s=this.empty(),g=0,d=a.length;g<d;g++)g&&s.add(","),s.add(o(a[g],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(b,c,n){b.exports=n(261).default}},r={};function E(b){var c=r[b];if(c!==void 0)return c.exports;var n=r[b]={exports:{}};return f[b].call(n.exports,n,n.exports,E),n.exports}return E.n=function(b){var c=b&&b.__esModule?function(){return b.default}:function(){return b};return E.d(c,{a:c}),c},E.d=function(b,c){for(var n in c)E.o(c,n)&&!E.o(b,n)&&Object.defineProperty(b,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(b,c){return Object.prototype.hasOwnProperty.call(b,c)},E(2987)}()})})(co);var Pl=co.exports;const Rt=Gr(Pl),Il=({addSearchUi:t,searchFieldMaxWidthInPixels:i,searchFieldHeaderText:f,searchInputPlaceholderText:r,searchButtonText:E,hasSearchInputAutofocus:b,hasSearchAsYouType:c,minLengthToShowSearchAsYouTypeResults:n,hasSearchInputFieldIcon:v,hasAutocomplete:o,hasAiAnswers:e,loadMoreResults:p,sortByOptions:C,filters:u,hasActiveFilters:a})=>{const[s,g]=kt.useState(!1),d=kt.useRef(null),m=kt.useMemo(()=>u.filter(S=>S.type==="checkbox-group"||S.type==="radio-group"||S.type==="tags"),[u]),l=kt.useMemo(()=>m.length>0,[m]),h=kt.useMemo(()=>u&&u.find(S=>S.type==="tabs"),[]),_=kt.useMemo(()=>u&&u.find(S=>S.type==="select-list"),[]);return kt.useEffect(()=>{t.searchField({containerId:"search-field-container",placeholder:r,button:E,icon:v,autofocus:b,searchAsYouType:c,minLengthToShowResults:n}),e&&t.aiAnswersResult({containerId:"conversational-search-result-container",mainHeadlineText:"AI-generated answer",answerMaxHeight:150,sourcesHeadlineText:"Based on the following sources:"}),t.searchResults({containerId:"search-results-container"}),o&&t.autocomplete({containerId:"autocomplete-container",sources:[{type:Rt.AUTOCOMPLETE_TYPE.SUGGESTIONS}]}),p==="button"?t.loadMore({containerId:"loadmore-container",type:Rt.LOAD_MORE_TYPE.BUTTON}):p==="pagination"?t.pagination({containerId:"pagination-container"}):p==="scroll"&&t.loadMore({containerId:d.current,type:Rt.LOAD_MORE_TYPE.INFINITE_SCROLL,infiniteScrollElement:d.current}),C!=null&&C.length&&(C==null?void 0:C.length)>0&&t.sortBy({containerId:"sortby-container",options:C}),u&&u.length>0&&(u.forEach((S,I)=>{S.type==="checkbox-group"?t.filters({containerId:`filters-container-${I}`,type:Rt.FILTER_TYPE.CHECKBOX_GROUP,options:S.options}):S.type==="radio-group"?t.filters({containerId:`filters-container-${I}`,type:Rt.FILTER_TYPE.RADIO_GROUP,options:S.options}):S.type==="tags"?t.filters({containerId:`filters-container-${I}`,type:Rt.FILTER_TYPE.TAGS,options:S.options}):S.type==="tabs"?t.filters({containerId:"tab-filters-container",type:Rt.FILTER_TYPE.TABS,options:S.options}):S.type==="select-list"&&(t.filters({containerId:"select-list-filters-container",type:Rt.FILTER_TYPE.SELECT_LIST,options:S.options}),t.filters({containerId:"select-list-filters-container-mobile",type:Rt.FILTER_TYPE.SELECT_LIST,options:S.options}))}),a&&t.activeFilters({containerId:"active-filters-container"})),t.start()},[s,d.current,u,C,a,p,a,o,c,b,v,E,r,f]),Oe.jsxs("div",{id:"addsearch-ui-container",className:"flex flex-col p-4 w-full h-full",children:[Oe.jsxs("div",{className:"flex items-center gap-4",children:[f&&Oe.jsx("h2",{className:"text-xl font-semibold",children:f}),Oe.jsx("div",{style:{maxWidth:`${i}px`},id:"search-field-container"})]}),Oe.jsx("div",{id:"autocomplete-container"}),Oe.jsx("div",{id:"conversational-search-result-container"}),h&&Oe.jsx("div",{className:"mt-10 flex justify-center",children:Oe.jsx("div",{id:"tab-filters-container"})}),l&&Oe.jsxs("div",{className:`flex flex-col md:hidden mt-10 border border-gray-300 rounded-md ${s?"bg-gray-50":""}`,children:[Oe.jsxs("button",{onClick:()=>g(!s),className:"flex items-center justify-between w-full text-sm md:text-base p-2",children:[Oe.jsxs("div",{className:"flex items-center gap-2",children:[Oe.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Oe.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"]}),Oe.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:Oe.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&&Oe.jsx("div",{className:"p-4 flex flex-col gap-6",children:m.map((S,I)=>Oe.jsxs("div",{children:[S.labelText&&Oe.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),Oe.jsx("div",{id:`filters-container-${I}`})]},S.type))})]}),_&&Oe.jsx("div",{className:"mt-10 w-full flex justify-end",children:Oe.jsx("div",{className:"md:hidden",id:"select-list-filters-container-mobile"})}),Oe.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&&Oe.jsx("div",{children:Oe.jsx("div",{id:"active-filters-container"})}),(_||(C==null?void 0:C.length)&&C.length>0)&&Oe.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2",children:[_&&Oe.jsx("div",{className:"hidden md:flex",id:"select-list-filters-container"}),(C==null?void 0:C.length)&&C.length>0&&Oe.jsx("div",{id:"sortby-container"})]})]}),Oe.jsx("div",{className:"mt-4",children:l?Oe.jsxs("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-1-4 md:gap-6",children:[Oe.jsx("div",{className:"mt-4 hidden md:flex flex-col gap-6",children:m.map((S,I)=>Oe.jsxs("div",{children:[S.labelText&&Oe.jsx("p",{className:"mb-3 pb-1 border-b border-gray-200 text-sm font-semibold",children:S.labelText}),Oe.jsx("div",{id:`filters-container-${I}`})]},S.type))}),Oe.jsxs("div",{className:"w-full h-full",children:[Oe.jsx("div",{className:"h-[500px]",children:Oe.jsx("div",{ref:d,id:"search-results-container"})}),Oe.jsx("div",{className:"flex justify-center",children:Oe.jsx("div",{id:"loadmore-container"})}),Oe.jsx("div",{id:"pagination-container"})]})]}):Oe.jsx("div",{className:"flex",children:Oe.jsxs("div",{className:"w-full h-full",children:[Oe.jsx("div",{className:"h-[500px]",children:Oe.jsx("div",{ref:d,id:"search-results-container"})}),Oe.jsx("div",{className:"flex justify-center",children:Oe.jsx("div",{id:"loadmore-container"})}),Oe.jsx("div",{id:"pagination-container"})]})})})]})},Fl=({publicSiteKey:t,primaryColor:i,customFont:f,searchFieldMaxWidthInPixels:r=600,searchFieldHeaderText:E,searchButtonText:b,searchInputPlaceholderText:c="Keyword...",hasSearchInputAutofocus:n=!0,hasSearchAsYouType:v=!1,minLengthToShowSearchAsYouTypeResults:o=3,hasSearchInputFieldIcon:e=!0,hasAutocomplete:p=!0,hasAiAnswers:C=!1,hasAiAnswersHideToggle:u,loadMoreResults:a="pagination",sortByOptions:s=[],filters:g=[],hasActiveFilters:d=!0})=>{const[m,l]=kt.useState(null);return kt.useEffect(()=>{const h=new Tl(t),_=new Rt(h,{hasAiAnswers:!0});l(_)},[]),kt.useEffect(()=>{i&&document.documentElement.style.setProperty("--addsearch-primary-color",i)},[i]),kt.useEffect(()=>{f&&document.documentElement.style.setProperty("--addsearch-font-family",`'${f}', sans-serif`)},[f]),m&&Oe.jsx(Il,{addSearchUi:m,searchFieldMaxWidthInPixels:r,searchFieldHeaderText:E,searchButtonText:b,searchInputPlaceholderText:c,hasSearchInputAutofocus:n,hasSearchAsYouType:v,minLengthToShowSearchAsYouTypeResults:o,hasSearchInputFieldIcon:e,hasAutocomplete:p,hasAiAnswers:C,hasAiAnswersHideToggle:u,loadMoreResults:a,sortByOptions:s,filters:g,hasActiveFilters:d})};dt.AddSearchUiIntegration=Fl,Object.defineProperty(dt,Symbol.toStringTag,{value:"Module"})});
|
|
455
455
|
//# sourceMappingURL=index.umd.js.map
|