Files
prestashop/themes/hummingbird/assets/cache/bottom-0f2fca2.js
2026-04-09 18:31:51 +02:00

218 lines
386 KiB
JavaScript
Raw Blame History

(()=>{var e,t,n={263:function(e,t){var n;
/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,o){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,c=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},u=i.push,l=i.indexOf,d={},p=d.toString,f=d.hasOwnProperty,h=f.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,o,i=(n=n||b).createElement("script");if(i.text=e,t)for(r in x)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function j(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var k="3.7.1",C=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=j(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(T.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[t]=T.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)for(;t=e[r++];)n+=T.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?T.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!C.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(S(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c(a)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var E=i.pop,D=i.sort,P=i.splice,q="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function _(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(O,_)};var $=b,H=u;!function(){var e,t,n,o,a,c,u,d,p,h,m=H,v=T.expando,y=0,b=0,x=ee(),w=ee(),j=ee(),k=ee(),C=function(e,t){return e===t&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",_="\\["+q+"*("+O+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+q+"*\\]",L=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_+")*)|.*)\\)|)",R=new RegExp(q+"+","g"),M=new RegExp("^"+q+"*,"+q+"*"),I=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),F=new RegExp(q+"|>"),W=new RegExp(L),Q=new RegExp("^"+O+"$"),B={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+L),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),G=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Y=function(){ce()},K=pe((function(e){return!0===e.disabled&&A(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(i=s.call($.childNodes),$.childNodes),i[$.childNodes.length].nodeType}catch(e){m={apply:function(e,t){H.apply(e,s.call(t))},call:function(e){H.apply(e,s.call(arguments,1))}}}function Z(e,t,n,r){var o,i,a,s,u,l,f,h=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(ce(t),t=t||c,d)){if(11!==y&&(u=X.exec(e)))if(o=u[1]){if(9===y){if(!(a=t.getElementById(o)))return n;if(a.id===o)return m.call(n,a),n}else if(h&&(a=h.getElementById(o))&&Z.contains(t,a)&&a.id===o)return m.call(n,a),n}else{if(u[2])return m.apply(n,t.getElementsByTagName(e)),n;if((o=u[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(o)),n}if(!(k[e+" "]||p&&p.test(e))){if(f=e,h=t,1===y&&(F.test(e)||I.test(e))){for((h=V.test(e)&&se(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=v)),i=(l=le(e)).length;i--;)l[i]=(s?"#"+s:":scope")+" "+de(l[i]);f=l.join(",")}try{return m.apply(n,h.querySelectorAll(f)),n}catch(t){k(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(N,"$1"),t,n,r)}function ee(){var e=[];return function n(r,o){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=o}}function te(e){return e[v]=!0,e}function ne(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function oe(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function ce(e){var n,r=e?e.ownerDocument||e:$;return r!=c&&9===r.nodeType&&r.documentElement?(u=(c=r).documentElement,d=!T.isXMLDoc(c),h=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&$!=c&&(n=c.defaultView)&&n.top!==n&&n.addEventListener("unload",Y),g.getById=ne((function(e){return u.appendChild(e).id=T.expando,!c.getElementsByName||!c.getElementsByName(T.expando).length})),g.disconnectedMatch=ne((function(e){return h.call(e,"*")})),g.scope=ne((function(){return c.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(J,G);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(J,G);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+q+"*(?:value|"+S+")"),e.querySelectorAll("[id~="+v+"-]").length||p.push("~="),e.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+q+"*name"+q+"*="+q+"*(?:''|\"\")")})),g.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),C=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===c||e.ownerDocument==$&&Z.contains($,e)?-1:t===c||t.ownerDocument==$&&Z.contains($,t)?1:o?l.call(o,e)-l.call(o,t):0:4&n?-1:1)},c):c}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(ce(e),d&&!k[t+" "]&&(!p||!p.test(t)))try{var n=h.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){k(t,!0)}return Z(t,c,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=c&&ce(e),T.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=c&&ce(e);var r=t.attrHandle[n.toLowerCase()],o=r&&f.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==o?o:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!g.sortStable,o=!g.sortStable&&s.call(e,0),D.call(e,C),a){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)P.call(e,n[r],1)}return o=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},(t=T.expr={cacheLength:50,createPseudo:te,match:B,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,G),e[3]=(e[3]||e[4]||e[5]||"").replace(J,G),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=le(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(J,G).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=Z.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,f,h=i!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!c&&!s,x=!1;if(m){if(i){for(;h;){for(d=t;d=d[h];)if(s?A(d,g):1===d.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(x=(p=(u=(l=m[v]||(m[v]={}))[e]||[])[0]===y&&u[1])&&u[2],d=p&&m.childNodes[p];d=++p&&d&&d[h]||(x=p=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){l[e]=[y,p,x];break}}else if(b&&(x=p=(u=(l=t[v]||(t[v]={}))[e]||[])[0]===y&&u[1]),!1===x)for(;(d=++p&&d&&d[h]||(x=p=0)||f.pop())&&(!(s?A(d,g):1===d.nodeType)||!++x||(b&&((l=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=o)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var r,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return o[v]?o(n):o.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=l.call(e,i[a])]=!(t[r]=i[a])})):function(e){return o(e,0,r)}):o}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(N,"$1"));return r[v]?te((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(J,G),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return Q.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(J,G).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return z.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ue(){}function le(e,n){var r,o,i,a,s,c,u,l=w[e+" "];if(l)return n?0:l.slice(0);for(s=e,c=[],u=t.preFilter;s;){for(a in r&&!(o=M.exec(s))||(o&&(s=s.slice(o[0].length)||s),c.push(i=[])),r=!1,(o=I.exec(s))&&(r=o.shift(),i.push({value:r,type:o[0].replace(N," ")}),s=s.slice(r.length)),t.filter)!(o=B[a].exec(s))||u[a]&&!(o=u[a](o))||(r=o.shift(),i.push({value:r,type:a,matches:o}),s=s.slice(r.length));if(!r)break}return n?s.length:s?Z.error(e):w(e,c).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=b++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,c){var u,l,d=[y,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(l=t[v]||(t[v]={}),o&&A(t,o))t=t[r]||t;else{if((u=l[i])&&u[0]===y&&u[1]===s)return d[2]=u[2];if(l[i]=d,d[2]=e(t,n,c))return!0}return!1}}function fe(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,o){for(var i,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),u&&t.push(s)));return a}function me(e,t,n,r,o,i){return r&&!r[v]&&(r=me(r)),o&&!o[v]&&(o=me(o,i)),te((function(i,a,s,c){var u,d,p,f,h=[],g=[],v=a.length,y=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)Z(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!i&&t?y:he(y,h,e,s,c);if(n?n(b,f=o||(i?e:v||r)?[]:a,s,c):f=b,r)for(u=he(f,g),r(u,[],s,c),d=u.length;d--;)(p=u[d])&&(f[g[d]]=!(b[g[d]]=p));if(i){if(o||e){if(o){for(u=[],d=f.length;d--;)(p=f[d])&&u.push(b[d]=p);o(null,f=[],u,c)}for(d=f.length;d--;)(p=f[d])&&(u=o?l.call(i,p):h[d])>-1&&(i[u]=!(a[u]=p))}}else f=he(f===a?f.splice(v,f.length):f),o?o(null,a,f,c):m.apply(a,f)}))}function ge(e){for(var r,o,i,a=e.length,s=t.relative[e[0].type],c=s||t.relative[" "],u=s?1:0,d=pe((function(e){return e===r}),c,!0),p=pe((function(e){return l.call(r,e)>-1}),c,!0),f=[function(e,t,o){var i=!s&&(o||t!=n)||((r=t).nodeType?d(e,t,o):p(e,t,o));return r=null,i}];u<a;u++)if(o=t.relative[e[u].type])f=[pe(fe(f),o)];else{if((o=t.filter[e[u].type].apply(null,e[u].matches))[v]){for(i=++u;i<a&&!t.relative[e[i].type];i++);return me(u>1&&fe(f),u>1&&de(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(N,"$1"),o,u<i&&ge(e.slice(u,i)),i<a&&ge(e=e.slice(i)),i<a&&de(e))}f.push(o)}return fe(f)}function ve(e,r){var o,i=[],a=[],s=j[e+" "];if(!s){for(r||(r=le(e)),o=r.length;o--;)(s=ge(r[o]))[v]?i.push(s):a.push(s);s=j(e,function(e,r){var o=r.length>0,i=e.length>0,a=function(a,s,u,l,p){var f,h,g,v=0,b="0",x=a&&[],w=[],j=n,k=a||i&&t.find.TAG("*",p),C=y+=null==j?1:Math.random()||.1,S=k.length;for(p&&(n=s==c||s||p);b!==S&&null!=(f=k[b]);b++){if(i&&f){for(h=0,s||f.ownerDocument==c||(ce(f),u=!d);g=e[h++];)if(g(f,s||c,u)){m.call(l,f);break}p&&(y=C)}o&&((f=!g&&f)&&v--,a&&x.push(f))}if(v+=b,o&&b!==v){for(h=0;g=r[h++];)g(x,w,s,u);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=E.call(l));w=he(w)}m.apply(l,w),p&&!a&&w.length>0&&v+r.length>1&&T.uniqueSort(l)}return p&&(y=C,n=j),x};return o?te(a):a}(a,i)),s.selector=e}return s}function ye(e,n,r,o){var i,a,s,c,u,l="function"==typeof e&&e,p=!o&&le(e=l.selector||e);if(r=r||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(J,G),n)||[])[0]))return r;l&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(i=B.needsContext.test(e)?0:a.length;i--&&(s=a[i],!t.relative[c=s.type]);)if((u=t.find[c])&&(o=u(s.matches[0].replace(J,G),V.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(i,1),!(e=o.length&&de(a)))return m.apply(r,o),r;break}}return(l||ve(e,p))(o,n,!d,r,!n||V.test(e)&&se(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,g.sortStable=v.split("").sort(C).join("")===v,ce(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))})),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=ve,Z.select=ye,Z.setDocument=ce,Z.tokenize=le,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var L=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;r.push(e)}return r},R=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=T.expr.match.needsContext,I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return l.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,o[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&M.test(e)?T(e):e||[],!1).length}});var W,Q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||W,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),I.test(r[1])&&T.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=b.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,W=T(b);var B=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&T(e);if(!M.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?l.call(T(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,n){return L(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,n){return L(e,"nextSibling",n)},prevUntil:function(e,t,n){return L(e,"previousSibling",n)},siblings:function(e){return R((e.parentNode||{}).firstChild,e)},children:function(e){return R(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(z[e]||T.uniqueSort(o),B.test(e)&&o.reverse()),this.pushStack(o)}}));var X=/[^\x20\t\r\n\f]+/g;function V(e){return e}function J(e){throw e}function G(e,t,n,r){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,o,i=[],a=[],s=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){T.each(n,(function(n,r){v(r)?e.unique&&u.has(r)||i.push(r):r&&r.length&&"string"!==j(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var o=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var i=0;function a(e,t,n,o){return function(){var s=this,c=arguments,u=function(){var r,u;if(!(e<i)){if((r=n.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(u)?o?u.call(r,a(i,t,V,o),a(i,t,J,o)):(i++,u.call(r,a(i,t,V,o),a(i,t,J,o),a(i,t,V,t.notifyWith))):(n!==V&&(s=void 0,c=[r]),(o||t.resolveWith)(s,c))}},l=o?u:function(){try{u()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,l.error),e+1>=i&&(n!==J&&(s=void 0,c=[r]),t.rejectWith(s,c))}};e?l():(T.Deferred.getErrorHook?l.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(l.error=T.Deferred.getStackHook()),r.setTimeout(l))}}return T.Deferred((function(r){t[0][3].add(a(0,r,v(o)?o:V,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:V)),t[2][3].add(a(0,r,v(n)?n:J))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},i={};return T.each(t,(function(e,r){var a=r[2],s=r[5];o[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=a.fireWith})),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=s.call(arguments),i=T.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(G(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||v(o[n]&&o[n].then)))return i.then();for(;n--;)G(o[n],a(n),i.reject);return i.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Y.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){r.setTimeout((function(){throw e}))};var K=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),T.ready()}T.fn.ready=function(e){return K.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var ee=function(e,t,n,r,o,i,a){var s=0,c=e.length,u=null==n;if("object"===j(n))for(s in o=!0,n)ee(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(T(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:u?t.call(e):c?t(e[0],n):i},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(ne,re)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[oe(t)]=n;else for(r in t)o[oe(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in r?[t]:t.match(X)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var se=new ae,ce=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,le=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(le,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(e){}ce.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return ce.hasData(e)||se.hasData(e)},data:function(e,t,n){return ce.access(e,t,n)},removeData:function(e,t){ce.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=ce.get(i),1===i.nodeType&&!se.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=oe(r.slice(5)),de(i,r,o[r]));se.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){ce.set(this,e)})):ee(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=ce.get(i,e))||void 0!==(n=de(i,e))?n:void 0;this.each((function(){ce.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){ce.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,o=n.shift(),i=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){T.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:T.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=T.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return T.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===T.css(e,"display")};function be(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},c=s(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),l=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+c)&&fe.exec(T.css(e,t));if(l&&l[3]!==u){for(c/=2,u=u||l[3],l=+c||1;a--;)T.style(e,t,l+u),(1-i)*(1-(i=s()/c||.5))<=0&&(a=0),l/=i;l*=2,T.style(e,t,l+u),n=n||[]}return n&&(l=+l||+c||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=o)),o}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,o=xe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=T.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),xe[r]=o,o)}function je(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=se.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ye(r)&&(o[i]=we(r))):"none"!==n&&(o[i]="none",se.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}T.fn.extend({show:function(){return je(this,!0)},hide:function(){return je(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var ke,Ce,Te=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i;ke=b.createDocumentFragment().appendChild(b.createElement("div")),(Ce=b.createElement("input")).setAttribute("type","radio"),Ce.setAttribute("checked","checked"),Ce.setAttribute("name","t"),ke.appendChild(Ce),g.checkClone=ke.cloneNode(!0).cloneNode(!0).lastChild.checked,ke.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!ke.cloneNode(!0).lastChild.defaultValue,ke.innerHTML="<option></option>",g.option=!!ke.lastChild;var Ee={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function De(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?T.merge([e],n):n}function Pe(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,g.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);var qe=/<|&#?\w+;/;function Ne(e,t,n,r,o){for(var i,a,s,c,u,l,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((i=e[f])||0===i)if("object"===j(i))T.merge(p,i.nodeType?[i]:i);else if(qe.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(Se.exec(i)||["",""])[1].toLowerCase(),c=Ee[s]||Ee._default,a.innerHTML=c[1]+T.htmlPrefilter(i)+c[2],l=c[0];l--;)a=a.lastChild;T.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",f=0;i=p[f++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(u=ge(i),a=De(d.appendChild(i),"script"),u&&Pe(a),n)for(l=0;i=a[l++];)Ae.test(i.type||"")&&n.push(i);return d}var Oe=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function $e(){return!1}function He(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)He(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=$e;else if(!o)return e;return 1===i&&(a=o,o=function(e){return T().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,o,r,n)}))}function Le(e,t,n){n?(se.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=_e)}})):void 0===se.get(e,t)&&T.event.add(e,t,_e)}T.event={global:{},add:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,g=se.get(e);if(ie(e))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&T.find.matchesSelector(me,o),n.guid||(n.guid=T.guid++),(c=g.events)||(c=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(X)||[""]).length;u--;)f=m=(s=Oe.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=T.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=T.event.special[f]||{},l=T.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),T.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,g=se.hasData(e)&&se.get(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(X)||[""]).length;u--;)if(f=m=(s=Oe.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=T.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)l=p[i],!o&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||T.removeEvent(e,f,g.handle),delete c[f])}else for(f in c)T.event.remove(e,f+t[u],n,r,!0);T.isEmptyObject(c)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=new Array(arguments.length),c=T.event.fix(e),u=(se.get(this,"events")||Object.create(null))[c.type]||[],l=T.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,c)){for(a=T.event.handlers.call(this,c,u),t=0;(o=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==i.namespace&&!c.rnamespace.test(i.namespace)||(c.handleObj=i,c.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,o,i,a,s=[],c=t.delegateCount,u=e.target;if(c&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],a={},n=0;n<c;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?T(o,this).index(u)>-1:T.find(o,this,null,[u]).length),a[o]&&i.push(r);i.length&&s.push({elem:u,handlers:i})}return u=this,c<t.length&&s.push({elem:u,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&A(t,"input")&&Le(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&A(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&A(t,"input")&&se.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:$e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:$e,isPropagationStopped:$e,isImmediatePropagationStopped:$e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(Le(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Le(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=b.documentMode?this:r,i=se.get(o,t);i||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(o,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=b.documentMode?this:r,i=se.get(o,t)-1;i?se.set(o,t,i):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(o,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return He(this,e,t,n,r)},one:function(e,t,n,r){return He(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=$e),this.each((function(){T.event.remove(this,e,n,t)}))}});var Re=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function We(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,o,i,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(o in se.remove(t,"handle events"),s)for(n=0,r=s[o].length;n<r;n++)T.event.add(t,o,s[o][n]);ce.hasData(e)&&(i=ce.access(e),a=T.extend({},i),ce.set(t,a))}}function ze(e,t,n,r){t=c(t);var o,i,a,s,u,l,d=0,p=e.length,f=p-1,h=t[0],m=v(h);if(m||p>1&&"string"==typeof h&&!g.checkClone&&Me.test(h))return e.each((function(o){var i=e.eq(o);m&&(t[0]=h.call(this,o,i.html())),ze(i,t,n,r)}));if(p&&(i=(o=Ne(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=T.map(De(o,"script"),We)).length;d<p;d++)u=o,d!==f&&(u=T.clone(u,!0,!0),s&&T.merge(a,De(u,"script"))),n.call(e[d],u,d);if(s)for(l=a[a.length-1].ownerDocument,T.map(a,Qe),d=0;d<s;d++)u=a[d],Ae.test(u.type||"")&&!se.access(u,"globalEval")&&T.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):w(u.textContent.replace(Ie,""),u,l))}return e}function Ue(e,t,n){for(var r,o=t?T.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||T.cleanData(De(r)),r.parentNode&&(n&&ge(r)&&Pe(De(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s,c,u,l=e.cloneNode(!0),d=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=De(l),r=0,o=(i=De(e)).length;r<o;r++)s=i[r],c=a[r],u=void 0,"input"===(u=c.nodeName.toLowerCase())&&Te.test(s.type)?c.checked=s.checked:"input"!==u&&"textarea"!==u||(c.defaultValue=s.defaultValue);if(t)if(n)for(i=i||De(e),a=a||De(l),r=0,o=i.length;r<o;r++)Be(i[r],a[r]);else Be(e,l);return(a=De(l,"script")).length>0&&Pe(a,!d&&De(e,"script")),l},cleanData:function(e){for(var t,n,r,o=T.event.special,i=0;void 0!==(n=e[i]);i++)if(ie(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)o[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[ce.expando]&&(n[ce.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(De(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!Ee[(Se.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(De(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(De(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],o=T(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(o[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var Xe=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Ve=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ge=function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r},Ye=new RegExp(he.join("|"),"i");function Ke(e,t,n){var r,o,i,a,s=Ve.test(t),c=e.style;return(n=n||Je(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(N,"$1")||void 0),""!==a||ge(e)||(a=T.style(e,t)),!g.pixelBoxStyles()&&Xe.test(a)&&Ye.test(t)&&(r=c.width,o=c.minWidth,i=c.maxWidth,c.minWidth=c.maxWidth=c.width=a,a=n.width,c.width=r,c.minWidth=o,c.maxWidth=i)),void 0!==a?a+"":a}function Ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(u).appendChild(l);var e=r.getComputedStyle(l);n="1%"!==e.top,c=12===t(e.marginLeft),l.style.right="60%",a=36===t(e.right),o=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),me.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,o,i,a,s,c,u=b.createElement("div"),l=b.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,o;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),o=r.getComputedStyle(t),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var et=["Webkit","Moz","ms"],tt=b.createElement("div").style,nt={};function rt(e){var t=T.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var r=fe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,o,i){var a="width"===t?1:0,s=0,c=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=T.css(e,n+he[a],!0,o)),r?("content"===n&&(c-=T.css(e,"padding"+he[a],!0,o)),"margin"!==n&&(c-=T.css(e,"border"+he[a]+"Width",!0,o))):(c+=T.css(e,"padding"+he[a],!0,o),"padding"!==n?c+=T.css(e,"border"+he[a]+"Width",!0,o):s+=T.css(e,"border"+he[a]+"Width",!0,o));return!r&&i>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-c-s-.5))||0),c+u}function ut(e,t,n){var r=Je(e),o=(!g.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),i=o,a=Ke(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(o?"border":"content"),i,r,a)+"px"}function lt(e,t,n,r,o){return new lt.prototype.init(e,t,n,r,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ke(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=oe(t),c=Ve.test(t),u=e.style;if(c||(t=rt(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:u[t];"string"===(i=typeof n)&&(o=fe.exec(n))&&o[1]&&(n=be(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||c||(n+=o&&o[3]||(T.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var o,i,a,s=oe(t);return Ve.test(t)||(t=rt(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ke(e,t,r)),"normal"===o&&t in at&&(o=at[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Ge(e,it,(function(){return ut(e,t,r)}))},set:function(e,n,r){var o,i=Je(e),a=!g.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,i),c=r?ct(e,t,r,s,i):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ct(e,t,"border",!1,i)-.5)),c&&(o=fe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),st(0,n,c)}}})),T.cssHooks.marginLeft=Ze(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ke(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+he[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=st)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Je(e),o=t.length;a<o;a++)i[t[a]]=T.css(e,t[a],!1,r);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=lt.propHooks[this.prop];return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,n=lt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=lt.prototype.init,T.fx.step={};var dt,pt,ft=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function mt(){pt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,T.fx.interval),T.fx.tick())}function gt(){return r.setTimeout((function(){dt=void 0})),dt=Date.now()}function vt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=he[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function yt(e,t,n){for(var r,o=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function bt(e,t,n){var r,o,i=0,a=bt.prefilters.length,s=T.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=dt||gt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),l=u.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=oe(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,u.opts.specialEasing);i<a;i++)if(r=bt.prefilters[i].call(u,e,l,u.opts))return v(r.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return T.map(l,yt,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(X);for(var n,r=0,o=e.length;r<o;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,c,u,l,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&ye(e),g=se.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always((function(){p.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(o=t[r],ft.test(o)){if(delete t[r],i=i||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||T.style(e,r)}if((c=!T.isEmptyObject(t))||!T.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=se.get(e,"display")),"none"===(l=T.css(e,"display"))&&(u?l=u:(je([e],!0),u=e.style.display||u,l=T.css(e,"display"),je([e]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===T.css(e,"float")&&(c||(p.done((function(){h.display=u})),null==u&&(l=h.display,u="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),c=!1,f)c||(g?"hidden"in g&&(m=g.hidden):g=se.access(e,"fxshow",{display:u}),i&&(g.hidden=!m),m&&je([e],!0),p.done((function(){for(r in m||je([e]),se.remove(e,"fxshow"),f)T.style(e,r,f[r])}))),c=yt(m?g[r]:0,r,p),r in g||(g[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=T.isEmptyObject(e),i=T.speed(t,n,r),a=function(){var t=bt(this,T.extend({},e),i);(o||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=T.timers,a=se.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&ht.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,r,o)}})),T.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),dt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pt||(pt=!0,mt())},T.fx.stop=function(){pt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var xt,wt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(X);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||T.find.attr;wt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=wt[a],wt[a]=o,o=null!=n(e,t,r)?a:null,wt[a]=i),o}}));var jt=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Ct(e){return(e.match(X)||[]).join(" ")}function Tt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):jt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,o,i,a;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,Tt(this)))})):(t=St(e)).length?this.each((function(){if(r=Tt(this),n=1===this.nodeType&&" "+Ct(r)+" "){for(i=0;i<t.length;i++)o=t[i],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=Ct(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,o,i,a;return v(e)?this.each((function(t){T(this).removeClass(e.call(this,t,Tt(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(r=Tt(this),n=1===this.nodeType&&" "+Ct(r)+" "){for(i=0;i<t.length;i++)for(o=t[i];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=Ct(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,o,i,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,Tt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=St(e),this.each((function(){if(s)for(i=T(this),o=0;o<n.length;o++)r=n[o],i.hasClass(r)?i.removeClass(r):i.addClass(r);else void 0!==e&&"boolean"!==a||((r=Tt(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Ct(Tt(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;T.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(At,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Ct(T.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?i+1:o.length;for(r=i<0?c:a?i:0;r<c;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=T.makeArray(t),a=o.length;a--;)((r=o[a]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=r.location,Dt={guid:Date.now()},Pt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var qt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,o){var i,a,s,c,u,l,d,p,h=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!qt.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[T.expando]?e:new T.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!y(n)){for(c=d.delegateType||m,qt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?c:d.bindType||m,(l=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&l.apply(a,t),(l=u&&a[u])&&l.apply&&ie(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!ie(n)||u&&v(n[m])&&!y(n)&&((s=n[u])&&(n[u]=null),T.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Nt),n[m](),e.isPropagationStopped()&&p.removeEventListener(m,Nt),T.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,_t=/\r?\n/g,$t=/^(?:submit|button|image|reset|file)$/i,Ht=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var o;if(Array.isArray(t))T.each(t,(function(t,o){n||Ot.test(e)?r(e,o):Lt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)}));else if(n||"object"!==j(t))r(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],n,r)}T.param=function(e,t){var n,r=[],o=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){o(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Ht.test(this.nodeName)&&!$t.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(_t,"\r\n")}})):{name:t.name,value:n.replace(_t,"\r\n")}})).get()}});var Rt=/%20/g,Mt=/#.*$/,It=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Bt={},zt={},Ut="*/".concat("*"),Xt=b.createElement("a");function Vt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(X)||[];if(v(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jt(e,t,n,r){var o={},i=e===zt;function a(s){var c;return o[s]=!0,T.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||o[u]?i?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Gt(e,t){var n,r,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Xt.href=Et.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,T.ajaxSettings),t):Gt(T.ajaxSettings,e)},ajaxPrefilter:Vt(Bt),ajaxTransport:Vt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,i,a,s,c,u,l,d,p,f=T.ajaxSetup({},t),h=f.context||f,m=f.context&&(h.nodeType||h.jquery)?T(h):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=f.statusCode||{},x={},w={},j="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ft.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||j;return n&&n.abort(t),C(0,t),this}};if(g.promise(k),f.url=((e||f.url||Et.href)+"").replace(Qt,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){c=b.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Xt.protocol+"//"+Xt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Jt(Bt,f,t,k),u)return k;for(d in(l=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),o=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Pt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(It,"$1"),p=(Pt.test(o)?"&":"?")+"_="+Dt.guid+++p),f.url=o+p),f.ifModified&&(T.lastModified[o]&&k.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&k.setRequestHeader("If-None-Match",T.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ut+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(h,k,f)||u))return k.abort();if(j="abort",v.add(f.complete),k.done(f.success),k.fail(f.error),n=Jt(zt,f,t,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(s=r.setTimeout((function(){k.abort("timeout")}),f.timeout));try{u=!1,n.send(x,C)}catch(e){if(u)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,a,c){var d,p,b,x,w,j=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,i=c||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,o,i,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==c[0]&&c.unshift(i),n[i]}(f,k,a)),!d&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var o,i,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=l.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(a=u[c+" "+i]||u["* "+i]))for(o in u)if((s=o.split(" "))[1]===i&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(f,x,k,d),d?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(T.etag[o]=w)),204===e||"HEAD"===f.type?j="nocontent":304===e?j="notmodified":(j=x.state,p=x.data,d=!(b=x.error))):(b=j,!e&&j||(j="error",e<0&&(e=0))),k.status=e,k.statusText=(t||j)+"",d?g.resolveWith(h,[p,j,k]):g.rejectWith(h,[k,j,b]),k.statusCode(y),y=void 0,l&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,f,d?p:b]),v.fireWith(h,[k,j]),l&&(m.trigger("ajaxComplete",[k,f]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,o){return v(n)&&(o=o||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Kt=T.ajaxSettings.xhr();g.cors=!!Kt&&"withCredentials"in Kt,g.ajax=Kt=!!Kt,T.ajaxTransport((function(e){var t,n;if(g.cors||Kt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Yt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||T.expando+"_"+Dt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var o,i,a,s=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+o):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||T.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=r[o],r[o]=function(){a=arguments},n.always((function(){void 0===i?T(r).removeProp(o):r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,en.push(o)),a&&v(i)&&i(a[0]),a=i=void 0})),"script"})),g.createHTMLDocument=((Zt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),i=!n&&[],(o=I.exec(e))?[t.createElement(o[1])]:(o=Ne([e],t,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=Ct(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,o,i,a,s,c,u=T.css(e,"position"),l=T(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=T.css(e,"top"),c=T.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+c).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(c)||0),v(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):l.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(r,"marginTop",!0),left:t.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||me}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return ee(this,(function(e,r,o){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ze(g.pixelPosition,(function(e,n){if(n)return n=Ke(e,t),Xe.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return ee(this,(function(t,n,o){var i;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?T.css(t,n,s):T.style(t,n,o,s)}),t,a?o:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),o=function(){return e.apply(t||this,r.concat(s.call(arguments)))},o.guid=e.guid=e.guid||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=A,T.isFunction=v,T.isWindow=y,T.camelCase=oe,T.type=j,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(nn,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var rn=r.jQuery,on=r.$;return T.noConflict=function(e){return r.$===T&&(r.$=on),e&&r.jQuery===T&&(r.jQuery=rn),T},void 0===o&&(r.jQuery=r.$=T),T}))},98:(e,t,n)=>{var r,o;
/*!
* jQuery Migrate - v3.5.2 - 2024-07-17T22:31Z
* Copyright OpenJS Foundation and other contributors
*/!function(){"use strict";r=[n(263)],o=function(e){return function(e,t){function n(e,t){var n,r=/^(\d+)\.(\d+)\.(\d+)/,o=r.exec(e)||[],i=r.exec(t)||[];for(n=1;n<=3;n++){if(+o[n]>+i[n])return 1;if(+o[n]<+i[n])return-1}return 0}function r(t){return n(e.fn.jquery,t)>=0}e.migrateVersion="3.5.2";var o=Object.create(null);e.migrateDisablePatches=function(){var e;for(e=0;e<arguments.length;e++)o[arguments[e]]=!0},e.migrateEnablePatches=function(){var e;for(e=0;e<arguments.length;e++)delete o[arguments[e]]},e.migrateIsPatchEnabled=function(e){return!o[e]},t.console&&t.console.log&&(e&&r("3.0.0")&&!r("5.0.0")||t.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var i={};e.migrateDeduplicateWarnings=!0,e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0);function a(n,r){var o=t.console;!e.migrateIsPatchEnabled(n)||e.migrateDeduplicateWarnings&&i[r]||(i[r]=!0,e.migrateWarnings.push(r+" ["+n+"]"),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+r),e.migrateTrace&&o.trace&&o.trace()))}function s(e,t,n,r,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return a(r,o),n},set:function(e){a(r,o),n=e}})}function c(t,n,r,o,i){var s=t[n];t[n]=function(){return i&&a(o,i),(e.migrateIsPatchEnabled(o)?r:s||e.noop).apply(this,arguments)}}function u(e,t,n,r,o){if(!o)throw new Error("No warning message provided");return c(e,t,n,r,o)}function l(e,t,n,r){return c(e,t,n,r)}e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&a("quirks","jQuery is not compatible with Quirks Mode");var d,p={},f=e.fn.init,h=e.find,m=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in l(e.fn,"init",(function(t){var n=Array.prototype.slice.call(arguments);return e.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof t&&"#"===t&&(a("selector-empty-id","jQuery( '#' ) is not a valid selector"),n[0]=[]),f.apply(this,n)}),"selector-empty-id"),e.fn.init.prototype=e.fn,l(e,"find",(function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&m.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(g,(function(e,t,n,r){return"["+t+n+'"'+r+'"]'}));try{t.document.querySelector(e),a("selector-hash","Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){a("selector-hash","Attribute selector with '#' was not fixed: "+n[0])}}return h.apply(this,n)}),"selector-hash"),h)Object.prototype.hasOwnProperty.call(h,d)&&(e.find[d]=h[d]);u(e.fn,"size",(function(){return this.length}),"size","jQuery.fn.size() is deprecated and removed; use the .length property"),u(e,"parseJSON",(function(){return JSON.parse.apply(null,arguments)}),"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),u(e,"holdReady",e.holdReady,"holdReady","jQuery.holdReady is deprecated"),u(e,"unique",e.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),s(e.expr,"filters",e.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),s(e.expr,":",e.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),r("3.1.1")&&u(e,"trim",(function(e){return null==e?"":(e+"").replace(v,"$1")}),"trim","jQuery.trim is deprecated; use String.prototype.trim");r("3.2.0")&&(u(e,"nodeName",(function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}),"nodeName","jQuery.nodeName is deprecated"),u(e,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray"));r("3.3.0")&&(u(e,"isNumeric",(function(e){var t=typeof e;return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))}),"isNumeric","jQuery.isNumeric() is deprecated"),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase()})),u(e,"type",(function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[Object.prototype.toString.call(e)]||"object":typeof e}),"type","jQuery.type is deprecated"),u(e,"isFunction",(function(e){return"function"==typeof e}),"isFunction","jQuery.isFunction() is deprecated"),u(e,"isWindow",(function(e){return null!=e&&e===e.window}),"isWindow","jQuery.isWindow() is deprecated"));if(e.ajax){var y=e.ajax,b=/(=)\?(?=&|$)|\?\?/;l(e,"ajax",(function(){var e=y.apply(this,arguments);return e.promise&&(u(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),u(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),u(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e}),"jqXHR-methods"),r("4.0.0")||e.ajaxPrefilter("+json",(function(e){!1!==e.jsonp&&(b.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&b.test(e.data))&&a("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}))}var x=e.fn.removeAttr,w=e.fn.toggleClass,j=/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,k=/\S+/g;function C(e){return e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))}l(e.fn,"removeAttr",(function(t){var n=this,r=!1;return e.each(t.match(k),(function(t,o){j.test(o)&&n.each((function(){if(!1!==e(this).prop(o))return r=!0,!1})),r&&(a("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+o),n.prop(o,!1))})),x.apply(this,arguments)}),"removeAttr-bool"),l(e.fn,"toggleClass",(function(t){return void 0!==t&&"boolean"!=typeof t?w.apply(this,arguments):(a("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each((function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")})))}),"toggleClass-bool");var T,S,A=!1,E=/^[a-z]/,D=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;e.swap&&e.each(["height","width","reliableMarginRight"],(function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return A=!0,e=r.apply(this,arguments),A=!1,e})}));l(e,"swap",(function(e,t,n,r){var o,i,s={};for(i in A||a("swap","jQuery.swap() is undocumented and deprecated"),t)s[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=s[i];return o}),"swap"),r("3.4.0")&&"undefined"!=typeof Proxy&&(e.cssProps=new Proxy(e.cssProps||{},{set:function(){return a("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}}));r("4.0.0")?(S={animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},"undefined"!=typeof Proxy?e.cssNumber=new Proxy(S,{get:function(){return a("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return a("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):e.cssNumber=S):S=e.cssNumber;function P(e){return E.test(e)&&D.test(e[0].toUpperCase()+e.slice(1))}T=e.fn.css,l(e.fn,"css",(function(t,n){var r,o=this;return t&&"object"==typeof t&&!Array.isArray(t)?(e.each(t,(function(t,n){e.fn.css.call(o,t,n)})),this):("number"==typeof n&&(P(r=C(t))||S[r]||a("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+t+'", value )')),T.apply(this,arguments))}),"css-number");var q=e.data;if(l(e,"data",(function(t,n,r){var o,i,s;if(n&&"object"==typeof n&&2===arguments.length){for(s in o=e.hasData(t)&&q.call(this,t),i={},n)s!==C(s)?(a("data-camelCase","jQuery.data() always sets/gets camelCased names: "+s),o[s]=n[s]):i[s]=n[s];return q.call(this,t,i),n}return n&&"string"==typeof n&&n!==C(n)&&(o=e.hasData(t)&&q.call(this,t))&&n in o?(a("data-camelCase","jQuery.data() always sets/gets camelCased names: "+n),arguments.length>2&&(o[n]=r),o[n]):q.apply(this,arguments)}),"data-camelCase"),e.fx){var N,O,_=e.Tween.prototype.run,$=function(e){return e};l(e.Tween.prototype,"run",(function(){e.easing[this.easing].length>1&&(a("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),e.easing[this.easing]=$),_.apply(this,arguments)}),"easing-one-arg"),N=e.fx.interval,O="jQuery.fx.interval is deprecated",t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden||a("fx-interval",O),e.migrateIsPatchEnabled("fx-interval")&&void 0===N?13:N},set:function(e){a("fx-interval",O),N=e}})}var H=e.fn.load,L=e.event.add,R=e.event.fix;e.event.props=[],e.event.fixHooks={},s(e.event.props,"concat",e.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),l(e.event,"fix",(function(t){var n,r=t.type,o=this.fixHooks[r],i=e.event.props;if(i.length)for(a("event-old-patch","jQuery.event.props are deprecated and removed: "+i.join());i.length;)e.event.addProp(i.pop());if(o&&!o._migrated_&&(o._migrated_=!0,a("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(i=o.props)&&i.length))for(;i.length;)e.event.addProp(i.pop());return n=R.call(this,t),o&&o.filter?o.filter(n,t):n}),"event-old-patch"),l(e.event,"add",(function(e,n){return e===t&&"load"===n&&"complete"===t.document.readyState&&a("load-after-event","jQuery(window).on('load'...) called after load event occurred"),L.apply(this,arguments)}),"load-after-event"),e.each(["load","unload","error"],(function(t,n){l(e.fn,n,(function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?H.apply(this,e):(a("shorthand-removed-v3","jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}),"shorthand-removed-v3")})),e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){u(e.fn,n,(function(e,t){return arguments.length>0?this.on(n,null,e,t):this.trigger(n)}),"shorthand-deprecated-v3","jQuery.fn."+n+"() event shorthand is deprecated")})),e((function(){e(t.document).triggerHandler("ready")})),e.event.special.ready={setup:function(){this===t.document&&a("ready-event","'ready' event is deprecated")}},u(e.fn,"bind",(function(e,t,n){return this.on(e,null,t,n)}),"pre-on-methods","jQuery.fn.bind() is deprecated"),u(e.fn,"unbind",(function(e,t){return this.off(e,null,t)}),"pre-on-methods","jQuery.fn.unbind() is deprecated"),u(e.fn,"delegate",(function(e,t,n,r){return this.on(t,e,n,r)}),"pre-on-methods","jQuery.fn.delegate() is deprecated"),u(e.fn,"undelegate",(function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}),"pre-on-methods","jQuery.fn.undelegate() is deprecated"),u(e.fn,"hover",(function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}),"pre-on-methods","jQuery.fn.hover() is deprecated");var M=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,I=function(e){var n=t.document.implementation.createHTMLDocument("");return n.body.innerHTML=e,n.body&&n.body.innerHTML},F=function(e){var t=e.replace(M,"<$1></$2>");t!==e&&I(e)!==I(t)&&a("self-closed-tags","HTML tags must be properly nested and closed: "+e)};u(e,"UNSAFE_restoreLegacyHtmlPrefilter",(function(){e.migrateEnablePatches("self-closed-tags")}),"legacy-self-closed-tags",'jQuery.UNSAFE_restoreLegacyHtmlPrefilter deprecated; use `jQuery.migrateEnablePatches( "self-closed-tags" )`'),l(e,"htmlPrefilter",(function(e){return F(e),e.replace(M,"<$1></$2>")}),"self-closed-tags"),e.migrateDisablePatches("self-closed-tags");var W=e.fn.offset;if(l(e.fn,"offset",(function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?W.apply(this,arguments):(a("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)}),"offset-valid-elem"),e.ajax){var Q=e.param;l(e,"param",(function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(a("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),Q.call(this,t,n)}),"param-ajax-traditional")}if(u(e.fn,"andSelf",e.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),e.Deferred){var B=e.Deferred,z=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];l(e,"Deferred",(function(t){var n=B(),r=n.promise();function o(){var t=arguments;return e.Deferred((function(o){e.each(z,(function(e,i){var a="function"==typeof t[e]&&t[e];n[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[i[0]+"With"](this===r?o.promise():this,a?[e]:arguments)}))})),t=null})).promise()}return u(n,"pipe",o,"deferred-pipe","deferred.pipe() is deprecated"),u(r,"pipe",o,"deferred-pipe","deferred.pipe() is deprecated"),t&&t.call(n,n),n}),"deferred-pipe"),e.Deferred.exceptionHook=B.exceptionHook}return e}(e,window)}.apply(t,r),void 0===o||(e.exports=o)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>({247:"ccf615bf752e3a708933",736:"5fd077d4d21a6cb1e86b",794:"a3cc4722cb70e7390a3c"}[e]+"-chunk.js"),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="prestashop-core-theme-js:",o.l=(n,r,i,a)=>{if(e[n])e[n].push(r);else{var s,c;if(void 0!==i)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[a,s,c]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)c(o)}for(t&&t(n);u<a.length;u++)i=a[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkprestashop_core_theme_js=self.webpackChunkprestashop_core_theme_js||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e=o(263),t=o.n(e);void 0===t().migrateMute&&(t().migrateMute=!window.prestashop.debug);o(98);const n=prestashop;var r=o.n(n);r().selectors={quantityWanted:"#quantity_wanted",product:{imageContainer:".quickview .images-container, .page-product:not(.modal-open) .row .images-container, .page-product:not(.modal-open) .product-container .images-container, .quickview .js-images-container, .page-product:not(.modal-open) .row .js-images-container, .page-product:not(.modal-open) .product-container .js-images-container",container:".product-container, .js-product-container",availability:"#product-availability, .js-product-availability",actions:".product-actions, .js-product-actions",variants:".product-variants, .js-product-variants",refresh:".product-refresh, .js-product-refresh",miniature:".js-product-miniature",minimalQuantity:".product-minimal-quantity, .js-product-minimal-quantity",addToCart:".quickview .product-add-to-cart, .page-product:not(.modal-open) .row .product-add-to-cart, .page-product:not(.modal-open) .product-container .product-add-to-cart, .quickview .js-product-add-to-cart, .page-product:not(.modal-open) .row .js-product-add-to-cart, .page-product:not(.modal-open) .product-container .js-product-add-to-cart",prices:".quickview .product-prices, .page-product:not(.modal-open) .row .product-prices, .page-product:not(.modal-open) .product-container .product-prices, .quickview .js-product-prices, .page-product:not(.modal-open) .row .js-product-prices, .page-product:not(.modal-open) .product-container .js-product-prices",inputCustomization:'.product-actions input[name="id_customization"], .js-product-actions .js-product-customization-id',customization:".quickview .product-customization, .page-product:not(.modal-open) .row .product-customization, .page-product:not(.modal-open) .product-container .product-customization, .quickview .js-product-customization, .page-product:not(.modal-open) .row .js-product-customization, .page-product:not(.modal-open) .product-container .js-product-customization",variantsUpdate:".quickview .product-variants, .page-product:not(.modal-open) .row .product-variants, .page-product:not(.modal-open) .product-container .product-variants, .quickview .js-product-variants, .page-product:not(.modal-open) .row .js-product-variants, .page-product:not(.modal-open) .js-product-container .js-product-variants",discounts:".quickview .product-discounts, .page-product:not(.modal-open) .row .product-discounts, .page-product:not(.modal-open) .product-container .product-discounts, .quickview .js-product-discounts, .page-product:not(.modal-open) .row .js-product-discounts, .page-product:not(.modal-open) .product-container .js-product-discounts",additionalInfos:".quickview .product-additional-info, .page-product:not(.modal-open) .row .product-additional-info, .page-product:not(.modal-open) .product-container .product-additional-info, .quickview .js-product-additional-info, .page-product:not(.modal-open) .row .js-product-additional-info, .page-product:not(.modal-open) .js-product-container .js-product-additional-info",details:".quickview #product-details, #product-details, .quickview .js-product-details, .js-product-details",flags:".quickview .product-flags, .page-product:not(.modal-open) .row .product-flags, .page-product:not(.modal-open) .product-container .product-flags, .quickview .js-product-flags, .page-product:not(.modal-open) .row .js-product-flags, .page-product:not(.modal-open) .js-product-container .js-product-flags"},listing:{quickview:".quick-view, .js-quick-view"},checkout:{form:".checkout-step form",currentStep:"js-current-step",step:".checkout-step",stepTitle:".step-title, .js-step-title",confirmationSelector:"#payment-confirmation button, .js-payment-confirmation",conditionsSelector:'#conditions-to-approve input[type="checkbox"], .js-conditions-to-approve',conditionAlertSelector:".js-alert-payment-conditions",additionalInformatonSelector:".js-additional-information",optionsForm:".js-payment-option-form",termsCheckboxSelector:'#conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"], .js-conditions-to-approve input[name="conditions_to_approve[terms-and-conditions]"]',paymentBinary:".payment-binary, .js-payment-binary",deliveryFormSelector:"#js-delivery",summarySelector:"#js-checkout-summary",deliveryStepSelector:"#checkout-delivery-step",editDeliveryButtonSelector:".js-edit-delivery",deliveryOption:".delivery-option, .js-delivery-option",cartPaymentStepRefresh:".js-cart-payment-step-refresh",editAddresses:".js-edit-addresses",deliveryAddressRadios:"#delivery-addresses input[type=radio], #invoice-addresses input[type=radio], .js-address-selector input[type=radio]",addressItem:".address-item, .js-address-item",addressesStep:"#checkout-addresses-step",addressItemChecked:".address-item:has(input[type=radio]:checked), .js-address-item:has(input[type=radio]:checked)",addressError:".js-address-error",notValidAddresses:"#not-valid-addresses, .js-not-valid-addresses",invoiceAddresses:"#invoice-addresses, .js-address-selector",addressForm:".js-address-form"},cart:{detailedTotals:".cart-detailed-totals, .js-cart-detailed-totals",summaryItemsSubtotal:".cart-summary-items-subtotal, .js-cart-summary-items-subtotal",summarySubTotalsContainer:".cart-summary-subtotals-container, .js-cart-summary-subtotals-container",summaryTotals:".cart-summary-totals, .js-cart-summary-totals",summaryProducts:".cart-summary-products, .js-cart-summary-products",detailedActions:".cart-detailed-actions, .js-cart-detailed-actions",voucher:".cart-voucher, .js-cart-voucher",overview:".cart-overview",summaryTop:".cart-summary-top, .js-cart-summary-top",productCustomizationId:"#product_customization_id, .js-product-customization-id",lineProductQuantity:".js-cart-line-product-quantity"}},t()((()=>{r().emit("selectorsInit")}));var i=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(a)for(var n of a(t))c.call(t,n)&&u(e,n,t[n]);return e};function d(e){const t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,((e,n,r)=>{t[n]=void 0!==r?r:""})),void 0!==e?t[e]?t[e]:null:t}function p(){const e=d();if(e.updatedTransaction)return void window.location.reload();e.updatedTransaction=1;const t=Object.entries(e).map((e=>e.join("="))).join("&");window.location.href=`${window.location.pathname}?${t}`}r().checkPasswordScore=e=>{return t=void 0,n=null,r=function*(){const{zxcvbn:t,zxcvbnOptions:n}=yield o.e(736).then(o.bind(o,736)),r=yield o.e(247).then(o.bind(o,247)),i=yield o.e(794).then(o.bind(o,794)),a={translations:i.translations,graphs:r.adjacencyGraphs,dictionary:l(l({},r.dictionary),i.dictionary)};return n.setOptions(a),t(e)},new Promise(((e,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,a);s((r=r.apply(t,n)).next())}));var t,n,r},t()((()=>{r().on("updateCart",(e=>{r().cart=e.resp.cart;const n=t()(".js-cart").data("refresh-url");if(!n)return;let o={};e&&e.reason&&(o={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),t().post(n,o).then((e=>{t()(r().selectors.cart.detailedTotals).replaceWith(e.cart_detailed_totals),t()(r().selectors.cart.summaryItemsSubtotal).replaceWith(e.cart_summary_items_subtotal),t()(r().selectors.cart.summarySubTotalsContainer).replaceWith(e.cart_summary_subtotals_container),t()(r().selectors.cart.summaryProducts).replaceWith(e.cart_summary_products),t()(r().selectors.cart.summaryTotals).replaceWith(e.cart_summary_totals),t()(r().selectors.cart.detailedActions).replaceWith(e.cart_detailed_actions),t()(r().selectors.cart.voucher).replaceWith(e.cart_voucher),t()(r().selectors.cart.overview).replaceWith(e.cart_detailed),t()(r().selectors.cart.summaryTop).replaceWith(e.cart_summary_top),t()(r().selectors.cart.productCustomizationId).val(0),t()(r().selectors.cart.lineProductQuantity).each(((e,n)=>{const r=t()(n);r.attr("value",r.val())})),t()(r().selectors.checkout.cartPaymentStepRefresh).length&&p(),r().emit("updatedCart",{eventType:"updateCart",resp:e})})).fail((e=>{r().emit("handleError",{eventType:"updateCart",resp:e})}))}));const e=t()("body");e.on("click",'[data-button-action="add-to-cart"]',(e=>{e.preventDefault();const n=t()(e.currentTarget.form),o=`${n.serialize()}&add=1&action=update`,i=n.attr("action"),a=t()(e.currentTarget);a.prop("disabled",!0);let s=e=>{e.parents(r().selectors.product.addToCart).first().find(r().selectors.product.minimalQuantity).addClass("error"),e.parent().find("label").addClass("error")};const c=n.find("input[min]");(e=>{let n=!0;return e.each(((e,r)=>{const o=t()(r),i=parseInt(o.attr("min"),10);i&&o.val()<i&&(s(o),n=!1)})),n})(c)?t().post(i,o,null,"json").then((e=>{e.hasError?r().emit("handleError",{eventType:"addProductToCart",resp:e}):r().emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})})).fail((e=>{r().emit("handleError",{eventType:"addProductToCart",resp:e})})).always((()=>{setTimeout((()=>{a.prop("disabled",!1)}),1e3)})):s(c)})),e.on("submit",'[data-link-action="add-voucher"]',(e=>{e.preventDefault();const n=t()(e.currentTarget),o=n.attr("action");0===n.find("[name=action]").length&&n.append(t()("<input>",{type:"hidden",name:"ajax",value:1})),0===n.find("[name=action]").length&&n.append(t()("<input>",{type:"hidden",name:"action",value:"update"})),t().post(o,n.serialize(),null,"json").then((n=>{n.hasError?t()(".js-error").show().find(".js-error-text").text(n.errors[0]):r().emit("updateCart",{reason:e.target.dataset,resp:n})})).fail((e=>{r().emit("handleError",{eventType:"updateCart",resp:e})}))}))}));const{addressForm:f}=r().selectors.checkout,h=d("editAddress"),m=d("use_same_address");function g(){t()(r().selectors.checkout.editAddresses).on("click",(e=>{e.stopPropagation(),t()(r().selectors.checkout.addressesStep).trigger("click"),r().emit("editAddress")})),t()(r().selectors.checkout.deliveryAddressRadios).on("click",(function(){t()(r().selectors.checkout.addressItem).removeClass("selected"),t()(r().selectors.checkout.addressItemChecked).addClass("selected"),function(){const e=t()(`${f} form`),n=e.serialize(),o=new URLSearchParams(n);o.append("confirm-addresses",1),t().post(e.data("refresh-url"),o.toString()).fail((e=>{r().emit("handleError",{eventType:"updatedAddressForm",resp:e})}))}();const e=t()(r().selectors.checkout.addressError).prop("id").split("-").pop(),n=t()(r().selectors.checkout.notValidAddresses).val(),o=this.name.split("_").pop(),i=t()(`${r().selectors.checkout.addressError}[name=alert-${o}]`);v(!1,e,o),""!==n&&null===h&&n.split(",").indexOf(this.value)>=0?(i.show(),v(!0,this.value,o),t()(r().selectors.checkout.addressError).prop("id",`id-failure-address-${this.value}`)):i.hide();const a=t()(`${r().selectors.checkout.addressError}:visible`);y(a.length<=0)}))}t()(window).on("load",(()=>{let e=t()(`${r().selectors.checkout.addressError}:visible`);if(0===parseInt(m,10)&&t()(r().selectors.checkout.invoiceAddresses).trigger("click"),(null!==h||t()(`${r().selectors.checkout.addressForm}:visible`).length>1)&&e.hide(),e.length>0){const n=t()(r().selectors.checkout.addressError).prop("id").split("-").pop();e.each((function(){v(!0,n,t()(this).attr("name").split("-").pop())}))}e=t()(`${r().selectors.checkout.addressError}:visible`),y(e.length<=0)}));const v=function(e,n,r){const o=t()(`#id-address-${r}-address-${n} a.edit-address`),i=["text-info","address-item-invalid"];t()(`#${r}-addresses a.edit-address`).removeClass(i),o.toggleClass(i,e)},y=function(e){t()("button[name=confirm-addresses]").prop("disabled",!e)};r().checkout=r().checkout||{},r().checkout.onCheckOrderableCartResponse=(e,t)=>!0===e.errors&&(r().emit("orderConfirmationErrors",{resp:e,paymentObject:t}),!0);class b{constructor(){this.confirmationSelector=r().selectors.checkout.confirmationSelector,this.conditionsSelector=r().selectors.checkout.conditionsSelector,this.conditionAlertSelector=r().selectors.checkout.conditionAlertSelector,this.additionalInformatonSelector=r().selectors.checkout.additionalInformatonSelector,this.optionsForm=r().selectors.checkout.optionsForm,this.termsCheckboxSelector=r().selectors.checkout.termsCheckboxSelector}init(){r().on("orderConfirmationErrors",(({resp:e,paymentObject:t})=>{""!==e.cartUrl&&(location.href=e.cartUrl)}));const e=t()("body");e.on("change",`${this.conditionsSelector} input[type="checkbox"]`,t().proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',t().proxy(this.toggleOrderButton,this)),this.toggleOrderButton(),e.on("click",`${this.confirmationSelector} button`,t().proxy(this.confirm,this)),this.getSelectedOption()||this.collapseOptions()}collapseOptions(){t()(`${this.additionalInformatonSelector}, ${this.optionsForm}`).hide()}getSelectedOption(){return t()('input[name="payment-option"]:checked').attr("id")}haveTermsBeenAccepted(){return t()(this.termsCheckboxSelector).prop("checked")}hideConfirmation(){t()(this.confirmationSelector).hide()}showConfirmation(){t()(this.confirmationSelector).show()}toggleOrderButton(){let e=!0;t()(`${this.conditionsSelector} input[type="checkbox"]`).each(((t,n)=>{n.checked||(e=!1)})),r().emit("termsUpdated",{isChecked:e}),this.collapseOptions();const n=this.getSelectedOption();if(n||(e=!1),t()(`#${n}-additional-information`).show(),t()(`#pay-with-${n}-form`).show(),t()(r().selectors.checkout.paymentBinary).hide(),t()(`#${n}`).hasClass("binary")){const r=this.getPaymentOptionSelector(n);this.hideConfirmation(),t()(r).show(),document.querySelectorAll(`${r} button, ${r} input`).forEach((t=>{e?t.removeAttribute("disabled"):t.setAttribute("disabled",!e)})),e?t()(r).removeClass("disabled"):t()(r).addClass("disabled")}else this.showConfirmation(),t()(`${this.confirmationSelector} button`).toggleClass("disabled",!e),t()(`${this.confirmationSelector} button`).attr("disabled",!e),e?t()(this.conditionAlertSelector).hide():t()(this.conditionAlertSelector).show()}getPaymentOptionSelector(e){return`.js-payment-${t()(`#${e}`).data("module-name")}`}showNativeFormErrors(){t()(`input[name=payment-option], ${this.termsCheckboxSelector}`).each((function(){this.reportValidity()}))}confirm(){return e=this,n=null,o=function*(){const e=this.getSelectedOption(),n=this.haveTermsBeenAccepted();if(void 0===e||!1===n)return void this.showNativeFormErrors();const o=yield t().post(window.prestashop.urls.pages.order,{ajax:1,action:"checkCartStillOrderable"});r().checkout.onCheckOrderableCartResponse(o,this)||(t()(`${this.confirmationSelector} button`).addClass("disabled"),t()(`#pay-with-${e}-form form`).submit())},new Promise(((t,r)=>{var i=e=>{try{s(o.next(e))}catch(e){r(e)}},a=e=>{try{s(o.throw(e))}catch(e){r(e)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,a);s((o=o.apply(e,n)).next())}));var e,n,o}}const x=r().selectors.checkout.currentStep,w=`.${x}`;class j{constructor(){this.$steps=t()(r().selectors.checkout.step),this.$steps.off("click"),this.$clickableSteps=t()(w).prevAll().addBack(),this.$clickableSteps.addClass("-clickable")}getClickableSteps(){return this.$clickableSteps}makeCurrent(e){this.$steps.removeClass("-current"),this.$steps.removeClass(x),e.makeCurrent()}static getClickedStep(e){return new k(t()(e.target).closest(r().selectors.checkout.step))}}class k{constructor(e){this.$step=e}isUnreachable(){return this.$step.hasClass("-unreachable")}makeCurrent(){this.$step.addClass("-current"),this.$step.addClass(x)}hasContinueButton(){return t()("button.continue",this.$step).length>0}disableAllAfter(){const e=this.$step.nextAll();e.addClass("-unreachable").removeClass("-complete"),t()(r().selectors.checkout.stepTitle,e).addClass("not-allowed")}enableAllBefore(){const e=this.$step.nextAll(`${r().selectors.checkout.step}.-clickable`);e.removeClass("-unreachable").addClass("-complete"),t()(r().selectors.checkout.stepTitle,e).removeClass("not-allowed")}}function C(){g(),function(){const e=t()("body"),{deliveryFormSelector:n}=r().selectors.checkout,{summarySelector:o}=r().selectors.checkout,{deliveryStepSelector:i}=r().selectors.checkout,{editDeliveryButtonSelector:a}=r().selectors.checkout;e.on("change",`${n} input`,(e=>{const i=t()(n),a=i.serialize(),s=t()(e.currentTarget).parents(r().selectors.checkout.deliveryOption);t().post(i.data("url-update"),a).then((e=>{t()(o).replaceWith(e.preview),t()(r().selectors.checkout.cartPaymentStepRefresh).length&&p(),r().emit("updatedDeliveryForm",{dataForm:i.serializeArray(),deliveryOption:s,resp:e})})).fail((e=>{r().trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})}))})),e.on("click",a,(e=>{e.stopPropagation(),t()(i).trigger("click"),r().emit("editDelivery")}))}(),function(){const e=new b;e.init()}(),function(){const e=new j;e.getClickableSteps().on("click",(t=>{const n=j.getClickedStep(t);n.isUnreachable()||(e.makeCurrent(n),n.hasContinueButton()?n.disableAllAfter():n.enableAllBefore()),r().emit("changedCheckoutStep",{event:t})}))}(),function(){const e=r().selectors.checkout.form;t()(e).on("submit",(function(e){!0===t()(this).data("disabled")&&e.preventDefault(),t()(this).data("disabled",!0),t()('button[type="submit"]',this).addClass("disabled")}))}()}t()((()=>{1===t()("#checkout").length&&C()}));let T=null;function S(e){r().emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url)}function A(e,t){return"abort"!==t}function E(e){T===e&&(T=null)}t()((()=>{r().on("updateFacets",(e=>{!function(e){T&&T.abort();const n=e.indexOf("?")>=0?"&":"?",r=`${e+n}from-xhr`;T=t().ajax({url:r,dataType:"json",success:S,error:A,complete:E})}(e)}))})),t()((()=>{t()("body").on("click",r().selectors.listing.quickview,(e=>{r().emit("clickQuickView",{dataset:t()(e.target).closest(r().selectors.product.miniature).data()}),e.preventDefault()}))}));var D=Object.defineProperty,P=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))q.call(t,n)&&O(e,n,t[n]);if(P)for(var n of P(t))N.call(t,n)&&O(e,n,t[n]);return e};let $=null,H=null,L=!1;const R=[];let M=!1;function I(e){!function(e,n){const r=t()(`<div class="alert alert-danger ajax-error" role="alert">${n}</div>`);e.replaceWith(r)}(t()(".quickview #product-availability, .page-product:not(.modal-open) .row #product-availability, .page-product:not(.modal-open) .product-container #product-availability"),e)}function F(e,n,o){const i=t()(r().selectors.product.actions).last(),a=i.find(r().selectors.quantityWanted),s=i.find("form:first"),c=s.serialize();let u,l=d("preview");if("function"==typeof Event?u=new Event("updateRating"):(u=document.createEvent("Event"),u.initEvent("updateRating",!0,!0)),null!==l){const e=d("adtoken"),t=d("id_employee");l=`&preview=${l}&adtoken=${e}&id_employee=${t}`}else l="";if(null===o)return void I();if(e&&"keyup"===e.type&&a.val()===a.data("old-value"))return;a.data("old-value",a.val()),H&&clearTimeout(H);let p=30;"updatedProductQuantity"===n&&(p=750),H=setTimeout((()=>{""!==c&&($=t().ajax({url:o+(-1===o.indexOf("?")?"?":"&")+c+l,method:"POST",data:{quickview:t()(".modal.quickview.in, .modal.quickview.show").length,ajax:1,action:"refresh",quantity_wanted:"updatedProductCombination"===n?a.attr("min"):a.val()},dataType:"json",beforeSend(){null!==$&&$.abort()},error(e,n){"abort"!==n&&0===t()("section#main > .ajax-error").length&&I()},success(e){const o=t()("<div>").append(e.product_cover_thumbnails);t()(r().selectors.product.imageContainer).html()!==o.find(r().selectors.product.imageContainer).html()&&t()(r().selectors.product.imageContainer).replaceWith(e.product_cover_thumbnails),t()(r().selectors.product.prices).first().replaceWith(e.product_prices),t()(r().selectors.product.customization).first().replaceWith(e.product_customization),"updatedProductQuantity"!==n&&"updatedProductCombination"!==n||!e.id_customization?t()(r().selectors.product.inputCustomization).val(0):t()(r().selectors.cart.productCustomizationId).val(e.id_customization),t()(r().selectors.product.variantsUpdate).first().replaceWith(e.product_variants),t()(r().selectors.product.discounts).first().replaceWith(e.product_discounts),t()(r().selectors.product.additionalInfos).first().replaceWith(e.product_additional_info),t()(r().selectors.product.details).replaceWith(e.product_details),t()(r().selectors.product.flags).first().replaceWith(e.product_flags),function(e){let n=null;t()(e.product_add_to_cart).each(((e,r)=>!t()(r).hasClass("product-add-to-cart")||(n=t()(r),!1))),null===n&&I();const o=t()(r().selectors.product.addToCart),i="#product-availability",a=".product-minimal-quantity";W({$addToCartSnippet:n,$targetParent:o,targetSelector:".add"}),W({$addToCartSnippet:n,$targetParent:o,targetSelector:i}),W({$addToCartSnippet:n,$targetParent:o,targetSelector:a})}(e);const i=parseInt(e.product_minimal_quantity,10);document.dispatchEvent(u),isNaN(i)||"updatedProductQuantity"===n||(a.attr("min",i),a.val(i)),r().emit("updatedProduct",e,s.serializeArray())},complete(){$=null,H=null}}))}),p)}function W(e){const n=t()(e.$targetParent.find(e.targetSelector));if(n.length<=0)return;const r=e.$addToCartSnippet.find(e.targetSelector);r.length>0?n.replaceWith(r[0].outerHTML):n.html("")}t()((()=>{const e=t()(r().selectors.product.actions);t()("body").on("change touchspin.on.startspin",`${r().selectors.product.variants} *[name]`,(e=>{M=!0,r().emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),t()(e.find("form:first").serializeArray()).each(((e,{value:t,name:n})=>{R.push({value:t,name:n})})),window.addEventListener("popstate",(e=>{if(L=!0,(!e.state||e.state&&e.state.form&&0===e.state.form.length)&&!M)return;const n=t()(r().selectors.product.actions).find("form:first");e.state&&e.state.form?e.state.form.forEach((e=>{n.find(`[name="${e.name}"]`).val(e.value)})):R.forEach((e=>{n.find(`[name="${e.name}"]`).val(e.value)})),r().emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),t()("body").on("click",r().selectors.product.refresh,((e,t)=>{e.preventDefault();let n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),r().emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:r().urls.pages.product||""}})})),r().on("updateProduct",(e=>{const{eventType:n}=e,{event:o}=e;(function(){const e=t().Deferred(),n=t()(r().selectors.product.actions),o=t()(r().selectors.quantityWanted);if(null!==r()&&null!==r().urls&&null!==r().urls.pages&&""!==r().urls.pages.product&&null!==r().urls.pages.product)return e.resolve(r().urls.pages.product),e.promise();const i={};return t()(n.find("form:first").serializeArray()).each(((e,t)=>{i[t.name]=t.value})),t().ajax({url:n.find("form:first").attr("action"),method:"POST",data:_({ajax:1,action:"productrefresh",quantity_wanted:o.val()},i),dataType:"json",success(t){const n=t.productUrl;r().page.canonical=n,e.resolve(n)},error(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done((e=>F(o,n,e))).fail((()=>{0===t()("section#main > .ajax-error").length&&I()}))})),r().on("updatedProduct",((e,n)=>{if(!e.product_url||!e.id_product_attribute)return;if(t()(".modal.quickview").length)return;let r=document.title;e.product_title&&(r=e.product_title,t()(document).attr("title",r)),L||window.history.pushState({id_product_attribute:e.id_product_attribute,form:n},r,e.product_url),L=!1})),r().on("updateCart",(e=>{if(!e||!e.reason||"add-to-cart"!==e.reason.linkAction)return;t()("#quantity_wanted").val(1)})),r().on("showErrorNextToAddtoCartButton",(e=>{e&&e.errorMessage&&I(e.errorMessage)}))})),t()((()=>{var e;e={country:".js-country",address:".js-address-form"},t()("body").on("change",e.country,(n=>{const o={id_country:t()(e.country).val(),id_address:t()(`${e.address} form`).data("id-address")},i=t()(`${e.address} form`).data("refresh-url"),a=`${e.address} input`,s=t()(n.target);t().post(i,o).then((n=>{const o=[];t()(a).each((function(){o[t()(this).prop("name")]=t()(this).val()})),t()(s.closest(e.address)).replaceWith(n.address_form),t()(a).each((function(){t()(this).val(o[t()(this).prop("name")])})),r().emit("updatedAddressForm",{target:t()(e.address),resp:n})})).fail((e=>{r().emit("handleError",{eventType:"updateAddressForm",resp:e})}))}))}));const Q=2147483647,B=36,z=/^xn--/,U=/[^\0-\x7F]/,X=/[\x2E\u3002\uFF0E\uFF61]/g,V={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},J=Math.floor,G=String.fromCharCode;function Y(e){throw new RangeError(V[e])}function K(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(X,".")).split("."),t).join(".");return r+o}function Z(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const ee=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},te=function(e,t,n){let r=0;for(e=n?J(e/700):e>>1,e+=J(e/t);e>455;r+=B)e=J(e/35);return J(r+36*e/(e+38))},ne=function(e){const t=[],n=e.length;let r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&Y("not-basic"),t.push(e.charCodeAt(n));for(let c=a>0?a+1:0;c<n;){const a=r;for(let t=1,o=B;;o+=B){c>=n&&Y("invalid-input");const a=(s=e.charCodeAt(c++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:B;a>=B&&Y("invalid-input"),a>J((Q-r)/t)&&Y("overflow"),r+=a*t;const u=o<=i?1:o>=i+26?26:o-i;if(a<u)break;const l=B-u;t>J(Q/l)&&Y("overflow"),t*=l}const u=t.length+1;i=te(r-a,u,0==a),J(r/u)>Q-o&&Y("overflow"),o+=J(r/u),r%=u,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},re=function(e){const t=[],n=(e=Z(e)).length;let r=128,o=0,i=72;for(const n of e)n<128&&t.push(G(n));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=Q;for(const t of e)t>=r&&t<n&&(n=t);const c=s+1;n-r>J((Q-o)/c)&&Y("overflow"),o+=(n-r)*c,r=n;for(const n of e)if(n<r&&++o>Q&&Y("overflow"),n===r){let e=o;for(let n=B;;n+=B){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=B-r;t.push(G(ee(r+o%a,0))),e=J(o/a)}t.push(G(ee(e,0))),i=te(o,c,s===a),o=0,++s}++o,++r}return t.join("")},oe={version:"2.3.1",ucs2:{decode:Z,encode:e=>String.fromCodePoint(...e)},decode:ne,encode:re,toASCII:function(e){return K(e,(function(e){return U.test(e)?"xn--"+re(e):e}))},toUnicode:function(e){return K(e,(function(e){return z.test(e)?ne(e.slice(4).toLowerCase()):e}))}},ie=function(e){const n=t()(e);t().each(n,((e,t)=>{if(!t.checkValidity()){const e=t.value.split("@");oe.toASCII(e[0])===e[0]&&(t.value=oe.toASCII(t.value))}}))};o.p=window.prestashop.core_js_public_path,window.$=t(),window.jQuery=t(),t()((()=>{t()(".ps-shown-by-js").show(),t()(".ps-hidden-by-js").hide(),ie('input[type="email"]')}))})()})();/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);;/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}})})(jQuery);/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(a!==e)return a;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var a,p,m,g,v,b,_=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),x=(e.collision||"flip").split(" "),k={};return b=n(_),_[0].preventDefault&&(e.at="left top"),p=b.width,m=b.height,g=b.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),a=i(k.at,p,m),v.left+=a[0],v.top+=a[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),b=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,T=d+b+s(this,"marginBottom")+w.height,C=t.extend({},v),M=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?C.left-=u:"center"===e.my[0]&&(C.left-=u/2),"bottom"===e.my[1]?C.top-=d:"center"===e.my[1]&&(C.top-=d/2),C.left+=M[0],C.top+=M[1],t.support.offsetFractions||(C.left=h(C.left),C.top=h(C.top)),n={marginLeft:f,marginTop:b},t.each(["left","top"],function(i,s){t.ui.position[x[i]]&&t.ui.position[x[i]][s](C,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:T,offset:[a[0]+M[0],a[1]+M[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(l=function(t){var i=g.left-C.left,s=i+p-u,n=g.top-C.top,a=n+m-d,h={target:{element:_,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:C.left,top:C.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>m&&m>r(n+a)&&(h.vertical="middle"),h.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(C,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-o-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-o-a,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-o-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>c?(s=t.top+p+f+m+e.collisionHeight-o-a,t.top+p+f+m>c&&(0>s||r(c)>s)&&(t.top+=p+f+m)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+m-h,t.top+p+f+m>u&&(i>0||u>r(i))&&(t.top+=p+f+m))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,a,o=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in s)e.style[a]=s[a];e.appendChild(r),i=o||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()})(jQuery);/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(t){t.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(e),i.has(".ui-menu").length?this.expand(e):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var s,n,a,o,r,h=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:h=!1,n=this.previousFilter||"",a=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),a===n?o=!0:a=n+a,r=RegExp("^"+i(a),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())}),s=o&&-1!==s.index(this.active.next())?this.active.nextAll(".ui-menu-item"):s,s.length||(a=String.fromCharCode(e.keyCode),r=RegExp("^"+i(a),"i"),s=this.activeMenu.children(".ui-menu-item").filter(function(){return r.test(t(this).children("a").text())})),s.length?(this.focus(e,s),s.length>1?(this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,s=this.element.find(this.options.menus);s.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),s=e.prev("a"),n=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);s.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",s.attr("id"))}),e=s.add(this.element),e.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,a,o,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),o=this.activeMenu.height(),r=e.height(),0>n?this.activeMenu.scrollTop(a+n):n+r>o&&this.activeMenu.scrollTop(a+n-o+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())),undefined):(this.next(e),undefined)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())),undefined):(this.next(e),undefined)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})})(jQuery);/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(t){var e=0;t.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),a="textarea"===n,o="input"===n;this.isMultiLine=a?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[a||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,undefined;e=!1,s=!1,i=!1;var a=t.ui.keyCode;switch(n.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",n);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case a.UP:e=!0,this._keyEvent("previous",n);break;case a.DOWN:e=!0,this._keyEvent("next",n);break;case a.ENTER:case a.NUMPAD_ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case a.TAB:this.menu.active&&this.menu.select(n);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),undefined;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),undefined):(this._searchTimeout(t),undefined)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,undefined):(clearTimeout(this.searching),this.close(t),this._change(t),undefined)}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(s){s.target===e.element[0]||s.target===i||t.contains(i,s.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),undefined;var s=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:s})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value):this.liveRegion.text(s.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):undefined},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,i=++e;return function(s){i===e&&t.__response(s),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),this.menu.blur(),undefined):(this.menu[t](e),undefined):(this.search(null,e),undefined)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})})(jQuery);(()=>{var am=Object.defineProperty,cm=Object.defineProperties;var lm=Object.getOwnPropertyDescriptors;var Na=Object.getOwnPropertySymbols;var um=Object.prototype.hasOwnProperty,dm=Object.prototype.propertyIsEnumerable;var Ra=(Ge,Oe,re)=>Oe in Ge?am(Ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):Ge[Oe]=re,Me=(Ge,Oe)=>{for(var re in Oe||(Oe={}))um.call(Oe,re)&&Ra(Ge,re,Oe[re]);if(Na)for(var re of Na(Oe))dm.call(Oe,re)&&Ra(Ge,re,Oe[re]);return Ge},Mr=(Ge,Oe)=>cm(Ge,lm(Oe));(()=>{var Ge={7:Z=>{"use strict";var te=typeof Reflect=="object"?Reflect:null,he=te&&typeof te.apply=="function"?te.apply:function(p,A,R){return Function.prototype.apply.call(p,A,R)},xe;te&&typeof te.ownKeys=="function"?xe=te.ownKeys:Object.getOwnPropertySymbols?xe=function(p){return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p))}:xe=function(p){return Object.getOwnPropertyNames(p)};function me(_){console&&console.warn&&console.warn(_)}var le=Number.isNaN||function(p){return p!==p};function W(){W.init.call(this)}Z.exports=W,Z.exports.once=T,W.EventEmitter=W,W.prototype._events=void 0,W.prototype._eventsCount=0,W.prototype._maxListeners=void 0;var st=10;function He(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}Object.defineProperty(W,"defaultMaxListeners",{enumerable:!0,get:function(){return st},set:function(_){if(typeof _!="number"||_<0||le(_))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_+".");st=_}}),W.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},W.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||le(p))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+p+".");return this._maxListeners=p,this};function ot(_){return _._maxListeners===void 0?W.defaultMaxListeners:_._maxListeners}W.prototype.getMaxListeners=function(){return ot(this)},W.prototype.emit=function(p){for(var A=[],R=1;R<arguments.length;R++)A.push(arguments[R]);var V=p==="error",z=this._events;if(z!==void 0)V=V&&z.error===void 0;else if(!V)return!1;if(V){var H;if(A.length>0&&(H=A[0]),H instanceof Error)throw H;var D=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw D.context=H,D}var it=z[p];if(it===void 0)return!1;if(typeof it=="function")he(it,this,A);else for(var Pe=it.length,ge=ne(it,Pe),R=0;R<Pe;++R)he(ge[R],this,A);return!0};function pe(_,p,A,R){var V,z,H;if(He(A),z=_._events,z===void 0?(z=_._events=Object.create(null),_._eventsCount=0):(z.newListener!==void 0&&(_.emit("newListener",p,A.listener?A.listener:A),z=_._events),H=z[p]),H===void 0)H=z[p]=A,++_._eventsCount;else if(typeof H=="function"?H=z[p]=R?[A,H]:[H,A]:R?H.unshift(A):H.push(A),V=ot(_),V>0&&H.length>V&&!H.warned){H.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(p)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=p,D.count=H.length,me(D)}return _}W.prototype.addListener=function(p,A){return pe(this,p,A,!1)},W.prototype.on=W.prototype.addListener,W.prototype.prependListener=function(p,A){return pe(this,p,A,!0)};function be(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function se(_,p,A){var R={fired:!1,wrapFn:void 0,target:_,type:p,listener:A},V=be.bind(R);return V.listener=A,R.wrapFn=V,V}W.prototype.once=function(p,A){return He(A),this.on(p,se(this,p,A)),this},W.prototype.prependOnceListener=function(p,A){return He(A),this.prependListener(p,se(this,p,A)),this},W.prototype.removeListener=function(p,A){var R,V,z,H,D;if(He(A),V=this._events,V===void 0)return this;if(R=V[p],R===void 0)return this;if(R===A||R.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete V[p],V.removeListener&&this.emit("removeListener",p,R.listener||A));else if(typeof R!="function"){for(z=-1,H=R.length-1;H>=0;H--)if(R[H]===A||R[H].listener===A){D=R[H].listener,z=H;break}if(z<0)return this;z===0?R.shift():G(R,z),R.length===1&&(V[p]=R[0]),V.removeListener!==void 0&&this.emit("removeListener",p,D||A)}return this},W.prototype.off=W.prototype.removeListener,W.prototype.removeAllListeners=function(p){var A,R,V;if(R=this._events,R===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[p]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete R[p]),this;if(arguments.length===0){var z=Object.keys(R),H;for(V=0;V<z.length;++V)H=z[V],H!=="removeListener"&&this.removeAllListeners(H);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=R[p],typeof A=="function")this.removeListener(p,A);else if(A!==void 0)for(V=A.length-1;V>=0;V--)this.removeListener(p,A[V]);return this};function $e(_,p,A){var R=_._events;if(R===void 0)return[];var V=R[p];return V===void 0?[]:typeof V=="function"?A?[V.listener||V]:[V]:A?w(V):ne(V,V.length)}W.prototype.listeners=function(p){return $e(this,p,!0)},W.prototype.rawListeners=function(p){return $e(this,p,!1)},W.listenerCount=function(_,p){return typeof _.listenerCount=="function"?_.listenerCount(p):O.call(_,p)},W.prototype.listenerCount=O;function O(_){var p=this._events;if(p!==void 0){var A=p[_];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}W.prototype.eventNames=function(){return this._eventsCount>0?xe(this._events):[]};function ne(_,p){for(var A=new Array(p),R=0;R<p;++R)A[R]=_[R];return A}function G(_,p){for(;p+1<_.length;p++)_[p]=_[p+1];_.pop()}function w(_){for(var p=new Array(_.length),A=0;A<p.length;++A)p[A]=_[A].listener||_[A];return p}function T(_,p){return new Promise(function(A,R){function V(H){_.removeListener(p,z),R(H)}function z(){typeof _.removeListener=="function"&&_.removeListener("error",V),A([].slice.call(arguments))}ee(_,p,z,{once:!0}),p!=="error"&&K(_,V,{once:!0})})}function K(_,p,A){typeof _.on=="function"&&ee(_,"error",p,A)}function ee(_,p,A,R){if(typeof _.on=="function")R.once?_.once(p,A):_.on(p,A);else if(typeof _.addEventListener=="function")_.addEventListener(p,function V(z){R.once&&_.removeEventListener(p,V),A(z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _)}},604:(Z,te,he)=>{var xe;(function(){"use strict";var me={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function le(pe){return st(ot(pe),arguments)}function W(pe,be){return le.apply(null,[pe].concat(be||[]))}function st(pe,be){var se=1,$e=pe.length,O,ne="",G,w,T,K,ee,_,p,A;for(G=0;G<$e;G++)if(typeof pe[G]=="string")ne+=pe[G];else if(typeof pe[G]=="object"){if(T=pe[G],T.keys)for(O=be[se],w=0;w<T.keys.length;w++){if(O==null)throw new Error(le('[sprintf] Cannot access property "%s" of undefined value "%s"',T.keys[w],T.keys[w-1]));O=O[T.keys[w]]}else T.param_no?O=be[T.param_no]:O=be[se++];if(me.not_type.test(T.type)&&me.not_primitive.test(T.type)&&O instanceof Function&&(O=O()),me.numeric_arg.test(T.type)&&typeof O!="number"&&isNaN(O))throw new TypeError(le("[sprintf] expecting number but found %T",O));switch(me.number.test(T.type)&&(p=O>=0),T.type){case"b":O=parseInt(O,10).toString(2);break;case"c":O=String.fromCharCode(parseInt(O,10));break;case"d":case"i":O=parseInt(O,10);break;case"j":O=JSON.stringify(O,null,T.width?parseInt(T.width):0);break;case"e":O=T.precision?parseFloat(O).toExponential(T.precision):parseFloat(O).toExponential();break;case"f":O=T.precision?parseFloat(O).toFixed(T.precision):parseFloat(O);break;case"g":O=T.precision?String(Number(O.toPrecision(T.precision))):parseFloat(O);break;case"o":O=(parseInt(O,10)>>>0).toString(8);break;case"s":O=String(O),O=T.precision?O.substring(0,T.precision):O;break;case"t":O=String(!!O),O=T.precision?O.substring(0,T.precision):O;break;case"T":O=Object.prototype.toString.call(O).slice(8,-1).toLowerCase(),O=T.precision?O.substring(0,T.precision):O;break;case"u":O=parseInt(O,10)>>>0;break;case"v":O=O.valueOf(),O=T.precision?O.substring(0,T.precision):O;break;case"x":O=(parseInt(O,10)>>>0).toString(16);break;case"X":O=(parseInt(O,10)>>>0).toString(16).toUpperCase();break}me.json.test(T.type)?ne+=O:(me.number.test(T.type)&&(!p||T.sign)?(A=p?"+":"-",O=O.toString().replace(me.sign,"")):A="",ee=T.pad_char?T.pad_char==="0"?"0":T.pad_char.charAt(1):" ",_=T.width-(A+O).length,K=T.width&&_>0?ee.repeat(_):"",ne+=T.align?A+O+K:ee==="0"?A+K+O:K+A+O)}return ne}var He=Object.create(null);function ot(pe){if(He[pe])return He[pe];for(var be=pe,se,$e=[],O=0;be;){if((se=me.text.exec(be))!==null)$e.push(se[0]);else if((se=me.modulo.exec(be))!==null)$e.push("%");else if((se=me.placeholder.exec(be))!==null){if(se[2]){O|=1;var ne=[],G=se[2],w=[];if((w=me.key.exec(G))!==null)for(ne.push(w[1]);(G=G.substring(w[0].length))!=="";)if((w=me.key_access.exec(G))!==null)ne.push(w[1]);else if((w=me.index_access.exec(G))!==null)ne.push(w[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");se[2]=ne}else O|=2;if(O===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");$e.push({placeholder:se[0],param_no:se[1],keys:se[2],sign:se[3],pad_char:se[4],align:se[5],width:se[6],precision:se[7],type:se[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");be=be.substring(se[0].length)}return He[pe]=$e}te.sprintf=le,te.vsprintf=W,typeof window!="undefined"&&(window.sprintf=le,window.vsprintf=W,xe=function(){return{sprintf:le,vsprintf:W}}.call(te,he,te,Z),xe!==void 0&&(Z.exports=xe))})()},935:(Z,te)=>{var he,xe,me;(function(le){xe=[],he=le,me=typeof he=="function"?he.apply(te,xe):he,me!==void 0&&(Z.exports=me)})(function(){"use strict";var le=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function W(w){return w.split("").reverse().join("")}function st(w,T){return w.substring(0,T.length)===T}function He(w,T){return w.slice(-1*T.length)===T}function ot(w,T,K){if((w[T]||w[K])&&w[T]===w[K])throw new Error(T)}function pe(w){return typeof w=="number"&&isFinite(w)}function be(w,T){return w=w.toString().split("e"),w=Math.round(+(w[0]+"e"+(w[1]?+w[1]+T:T))),w=w.toString().split("e"),(+(w[0]+"e"+(w[1]?+w[1]-T:-T))).toFixed(T)}function se(w,T,K,ee,_,p,A,R,V,z,H,D){var it=D,Pe,ge,Qe,gn="",Xe="";return p&&(D=p(D)),pe(D)?(w!==!1&&parseFloat(D.toFixed(w))===0&&(D=0),D<0&&(Pe=!0,D=Math.abs(D)),w!==!1&&(D=be(D,w)),D=D.toString(),D.indexOf(".")!==-1?(ge=D.split("."),Qe=ge[0],K&&(gn=K+ge[1])):Qe=D,T&&(Qe=W(Qe).match(/.{1,3}/g),Qe=W(Qe.join(W(T)))),Pe&&R&&(Xe+=R),ee&&(Xe+=ee),Pe&&V&&(Xe+=V),Xe+=Qe,Xe+=gn,_&&(Xe+=_),z&&(Xe=z(Xe,it)),Xe):!1}function $e(w,T,K,ee,_,p,A,R,V,z,H,D){var it=D,Pe,ge="";return H&&(D=H(D)),!D||typeof D!="string"||(R&&st(D,R)&&(D=D.replace(R,""),Pe=!0),ee&&st(D,ee)&&(D=D.replace(ee,"")),V&&st(D,V)&&(D=D.replace(V,""),Pe=!0),_&&He(D,_)&&(D=D.slice(0,-1*_.length)),T&&(D=D.split(T).join("")),K&&(D=D.replace(K,".")),Pe&&(ge+="-"),ge+=D,ge=ge.replace(/[^0-9\.\-.]/g,""),ge==="")||(ge=Number(ge),A&&(ge=A(ge)),!pe(ge))?!1:ge}function O(w){var T,K,ee,_={};for(w.suffix===void 0&&(w.suffix=w.postfix),T=0;T<le.length;T+=1)if(K=le[T],ee=w[K],ee===void 0)K==="negative"&&!_.negativeBefore?_[K]="-":K==="mark"&&_.thousand!=="."?_[K]=".":_[K]=!1;else if(K==="decimals")if(ee>=0&&ee<8)_[K]=ee;else throw new Error(K);else if(K==="encoder"||K==="decoder"||K==="edit"||K==="undo")if(typeof ee=="function")_[K]=ee;else throw new Error(K);else if(typeof ee=="string")_[K]=ee;else throw new Error(K);return ot(_,"mark","thousand"),ot(_,"prefix","negative"),ot(_,"prefix","negativeBefore"),_}function ne(w,T,K){var ee,_=[];for(ee=0;ee<le.length;ee+=1)_.push(w[le[ee]]);return _.push(K),T.apply("",_)}function G(w){if(!(this instanceof G))return new G(w);typeof w=="object"&&(w=O(w),this.to=function(T){return ne(w,se,T)},this.from=function(T){return ne(w,$e,T)})}return G})}},Oe={};function re(Z){var te=Oe[Z];if(te!==void 0)return te.exports;var he=Oe[Z]={exports:{}};return Ge[Z](he,he.exports,re),he.exports}re.n=Z=>{var te=Z&&Z.__esModule?()=>Z.default:()=>Z;return re.d(te,{a:te}),te},re.d=(Z,te)=>{for(var he in te)re.o(te,he)&&!re.o(Z,he)&&Object.defineProperty(Z,he,{enumerable:!0,get:te[he]})},re.o=(Z,te)=>Object.prototype.hasOwnProperty.call(Z,te),re.r=Z=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})};var Or={};(()=>{"use strict"})(),(()=>{"use strict";re.r(Or),re.d(Or,{components:()=>Qh,default:()=>Zh,events:()=>kn,helpers:()=>Xh,selectors:()=>Jh});var Z={};re.r(Z),re.d(Z,{afterMain:()=>Zs,afterRead:()=>Qs,afterWrite:()=>no,applyStyles:()=>xr,arrow:()=>uo,auto:()=>jn,basePlacements:()=>Wt,beforeMain:()=>Xs,beforeRead:()=>zs,beforeWrite:()=>eo,bottom:()=>qe,clippingParents:()=>Ks,computeStyles:()=>Fr,createPopper:()=>Yr,createPopperBase:()=>rl,createPopperLite:()=>il,detectOverflow:()=>Xt,end:()=>Kt,eventListeners:()=>Ur,flip:()=>vo,hide:()=>bo,left:()=>De,main:()=>Js,modifierPhases:()=>ro,offset:()=>yo,placements:()=>Rr,popper:()=>Yt,popperGenerator:()=>Yn,popperOffsets:()=>Kr,preventOverflow:()=>wo,read:()=>Gs,reference:()=>Ys,right:()=>Ve,start:()=>Rt,top:()=>ke,variationPlacements:()=>Nr,viewport:()=>Dr,write:()=>to});const te={stickyHeader:".js-sticky-header"},he={range:".js-faceted-slider",rangeContainer:".js-faceted-slider-container",rangeValues:".js-faceted-values",filterSlider:".js-faceted-filter-slider",offCanvasFaceted:"#offcanvas-faceted",colorLabel:'[data-ps-ref="color-label"]'},xe=".js-page-loader",me={searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search-filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",product:".js-product",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",listFooter:"#js-product-list-footer",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link",paginationLink:".js-pager-link"},le={container:".js-cart-container",summaryContainer:".js-cart-summary",overview:".js-cart",voucherCode:".js-voucher-code",voucherInput:".js-voucher-input",voucherAccordion:".js-voucher-accordion",productQuantity:".js-cart-list .js-quantity-button",productItem:".js-cart-item",productItemQuantityInput:".js-cart-line-product-quantity",removeFromCart:".js-remove-from-cart",alertPlaceholder:".js-cart-update-alert",deleteLinkAction:"delete-from-cart",removeVoucherLinkAction:"remove-voucher",voucherContainer:'[data-ps-ref="voucher-container"]',voucherAccordionButton:'[data-ps-ref="voucher-accordion-button"]',voucherForm:'[data-ps-ref="voucher-form"]',voucherList:'[data-ps-ref="voucher-list"]',voucherError:'[data-ps-ref="voucher-error"]'},W={modal:"#blockcart-modal"},st={currencySelector:".js-currency-selector"},He={languageSelector:".js-language-selector"},ot={searchCanvas:".js-search-offcanvas",searchWidget:".js-search-widget",searchDropdown:".js-search-dropdown",searchResults:".js-search-results",searchTemplate:".js-search-template",searchInput:".js-search-input",searchIcon:".js-search-icon",searchClear:".js-search-clear",searchResultLink:'[data-ps-ref="searchbar-result-link"]'},pe={steps:{item:".js-step-item",current:".js-current-step",button:'[data-ps-ref="step-button"]',shownResponsiveStep:".checkout-steps__step-mobile:not(.d-none)",specificStep:n=>`.checkout-steps__step-mobile[data-step="${n}"]`,specificStepContent:n=>`#${n}`,backButton:n=>`.js-step-item button[data-bs-target="#${n}"]`},actionsButtons:".js-back, .js-edit-addresses, .js-edit-shipping",termsLink:".js-terms a",checkoutModal:"#checkout-modal",carrierExtraContentWrapper:".js-carrier-extra",carrierExtraContentWrapperActive:".js-carrier-extra[data-active]",carrierExtraContent:".js-carrier-extra-content",summaryContainer:".js-checkout-summary"},be={checkout:{element:".progress-ring",circle:".progress-ring__circle",backgroundCircle:".progress-ring__background-circle"},text:".progress-ring text"},se={openChildsButton:".js-menu-open-child",backTitle:".js-menu-back-title",backButton:".js-back-button",menuCanvas:".js-menu-canvas",menuCurrent:".menu--current",specificParent:n=>`.menu--parent[data-depth="${n}"]`,specificChild:n=>`.menu[data-id="${n}"]`},$e={checkbox:".js-password-form__check",passwordWrapper:".js-password-form__input-wrapper"},O={visiblePassword:'[data-ps-action="toggle-password"]'},ne={consent:'[data-ps-ref="gdpr-consent"]',consentWrapper:'[data-ps-component="gdpr"]',checkbox:'[data-ps-ref="gdpr-checkbox"]',submitButton:'[data-ps-ref="gdpr-submit"]'},G={wrapper:'[data-ps-ref="emailalerts"]',content:'[data-ps-ref="emailalerts-content"]',submitButton:'[data-ps-action="emailalerts-subscribe"]',emailInput:'[data-ps-ref="emailalerts-email"]',alertsContainer:'[data-ps-target="emailalerts-alerts"]',deleteButton:'[data-ps-action="emailalerts-delete"]',product:'[data-ps-ref="emailalerts-product"]',productList:'[data-ps-ref="emailalerts-product-list"]',noAlerts:'[data-ps-ref="emailalerts-account-no-alerts"]'},w={container:'[data-ps-ref="desktop-menu-container"]',menuTree:'[data-ps-ref="desktop-menu-tree"]',menuItem:'[data-ps-ref="desktop-menu-item"]',menuLink:'[data-ps-ref="desktop-menu-link"]',dropdownToggle:'[data-ps-ref="desktop-menu-dropdown-toggle"]',subMenu:'[data-ps-ref="desktop-submenu"]',subMenuLeft:'[data-ps-ref="desktop-submenu-left"]',subMenuLeftItem:'[data-ps-ref="desktop-submenu-left-item"]',subMenuRight:'[data-ps-ref="desktop-submenu-right"]',subMenuRightItems:'[data-ps-ref="desktop-submenu-right-items"]'},T={default:".js-quantity-button",idProductInput:'input[name="id_product"]',modal:".modal-dialog .js-quantity-button",increment:".js-increment-button",decrement:".js-decrement-button",quantityWanted:".js-quantity-wanted",confirm:".confirmation",icon:".material-icons",spinner:".spinner-border",alert:n=>`#js-product-line-alert--${n}`},p={layout:te,qtyInput:T,alert:{selector:"#notifications .container",alert:".alert",heading:".alert-heading",body:".alert-body",icon:".material-icons",close:".btn-close"},toast:{container:"#js-toast-container",template:".js-toast-template",toast:".toast",body:".toast-body",close:".btn-close"},product:{container:'[data-ps-ref="product-container"]',images:".js-images-container",carousel:".js-product-carousel",miniature:".js-product-miniature",thumbnail:".js-thumb-container",productImagesModal:'[data-ps-ref="product-images-modal"]',productImagesModalCarousel:'[data-ps-ref="product-images-modal-carousel"]',activeThumbail:n=>`.js-thumb-container:nth-child(${n+1})`,productAvailability:'[data-ps-ref="product-availability"]',rightSection:'[data-ps-ref="product-right"]'},order:{returnForm:".js-order-return-form",returnFormSelectAll:'[data-ps-ref="select-all-products"]',returnFormProductsTable:'[data-ps-ref="order-return-products-table"]',returnFormProductCheckbox:'[data-ps-ref="select-product"]'},modalBody:".modal-body",pageCms:".js-page-content-cms",quickview:'[data-ps-action="open-quickview"]',quickviewModal:'[data-ps-ref="quickview-modal"]',quickviewModalStatus:'[data-ps-target="quickview-modal-status"]',quickviewButton:'[data-ps-ref="quickview-button"]',modalContainer:'[data-ps-target="modal-container"]',blockcartModal:'[data-ps-ref="blockcart-modal"]',blockcartModalStatus:'[data-ps-target="blockcart-modal-status"]',addToCartButton:'[data-ps-ref="add-to-cart"]',facetedsearch:he,pageLoader:xe,listing:me,cart:le,progressRing:be,checkout:pe,blockcart:W,currencySelector:st,languageSelector:He,searchBar:ot,mobileMenu:se,guestPasswordToggle:$e,visiblePassword:O,desktopMenu:w,formValidation:{default:'[data-ps-action="form-validation"]',submitButton:'[data-ps-action="form-validation-submit"]'},passwordPolicy:{template:'[data-ps-ref="password-feedback-template"]',field:'[data-ps-ref="password-field"]',input:'[data-ps-ref="password-policy-input"]',feedbackContainer:'[data-ps-ref="password-feedback-container"]',feedbackTarget:'[data-ps-target="password-feedback-target"]',hint:'[data-ps-ref="password-strength-hints"]',requirementScore:'[data-ps-ref="password-requirements-score"]',requirementLength:'[data-ps-ref="password-requirements-length"]',requirementScoreMessage:'[data-ps-ref="password-requirements-score-message"]',requirementLengthMessage:'[data-ps-ref="password-requirements-length-message"]',requirementScoreIcon:'[data-ps-ref="password-requirements-score-icon"]',requirementLengthIcon:'[data-ps-ref="password-requirements-length-icon"]',progressBar:'[data-ps-ref="password-strength-progress-bar"]',invalidMessage:'[data-ps-ref="password-invalid-message"]',validMessage:'[data-ps-ref="password-valid-message"]',lengthMessage:'[data-ps-ref="password-length-message"]',announceValidity:'[data-ps-target="password-announce-validity"]'},emailAlerts:G,gdpr:ne},A={quickviewOpened:"quickviewOpened",clickQuickview:"clickQuickview",handleError:"handleError",responsiveUpdate:"responsiveUpdate",updateCart:"updateCart",updatedCart:"updatedCart",updateProductList:"updateProductList",updateProduct:"updateProduct",updatedProduct:"updatedProduct",updateFacets:"updateFacets",updatedDeliveryForm:"updatedDeliveryForm",combinationFocusRestored:"combinationFocusRestored"};var R=re(7);const V=()=>{Object.assign(window.prestashop,R.EventEmitter.prototype)};function z(n,e){const t=n.innerHTML;n.innerHTML="",e.innerHTML=t}var H;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(H||(H={}));var D;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(D||(D={}));function it(n){return Pe(n)&&typeof n.from=="function"}function Pe(n){return typeof n=="object"&&typeof n.to=="function"}function ge(n){n.parentElement.removeChild(n)}function Qe(n){return n!=null}function gn(n){n.preventDefault()}function Xe(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function Ia(n,e){return Math.round(n/e)*e}function xa(n,e){var t=n.getBoundingClientRect(),r=n.ownerDocument,s=r.documentElement,o=Vs(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),e?t.top+o.y-s.clientTop:t.left+o.x-s.clientLeft}function Je(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function $s(n,e,t){t>0&&(Ce(n,e),setTimeout(function(){Un(n,e)},t))}function qs(n){return Math.max(Math.min(n,100),0)}function Fn(n){return Array.isArray(n)?n:[n]}function $a(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function Ce(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function Un(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function qa(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function Vs(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",r=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,s=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:r,y:s}}function Va(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function Fa(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch(t){}return n}function Ua(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Pr(n,e){return 100/(e-n)}function kr(n,e,t){return e*100/(n[t+1]-n[t])}function ja(n,e){return kr(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function Ha(n,e){return e*(n[1]-n[0])/100+n[0]}function vn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function Ba(n,e,t){if(t>=n.slice(-1)[0])return 100;var r=vn(t,n),s=n[r-1],o=n[r],i=e[r-1],a=e[r];return i+ja([s,o],t)/Pr(i,a)}function Wa(n,e,t){if(t>=100)return n.slice(-1)[0];var r=vn(t,e),s=n[r-1],o=n[r],i=e[r-1],a=e[r];return Ha([s,o],(t-i)*Pr(i,a))}function Ka(n,e,t,r){if(r===100)return r;var s=vn(r,n),o=n[s-1],i=n[s];return t?r-o>(i-o)/2?i:o:e[s-1]?n[s-1]+Ia(r-n[s-1],e[s-1]):r}var Fs=function(){function n(e,t,r){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var s,o=[];for(Object.keys(e).forEach(function(i){o.push([Fn(e[i]),i])}),o.sort(function(i,a){return i[0][0]-a[0][0]}),s=0;s<o.length;s++)this.handleEntryPoint(o[s][1],o[s][0]);for(this.xNumSteps=this.xSteps.slice(0),s=0;s<this.xNumSteps.length;s++)this.handleStepPoint(s,this.xNumSteps[s])}return n.prototype.getDistance=function(e){for(var t=[],r=0;r<this.xNumSteps.length-1;r++)t[r]=kr(this.xVal,e,r);return t},n.prototype.getAbsoluteDistance=function(e,t,r){var s=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[s+1];)s++;else e===this.xPct[this.xPct.length-1]&&(s=this.xPct.length-2);!r&&e===this.xPct[s+1]&&s++,t===null&&(t=[]);var o,i=1,a=t[s],c=0,l=0,d=0,v=0;for(r?o=(e-this.xPct[s])/(this.xPct[s+1]-this.xPct[s]):o=(this.xPct[s+1]-e)/(this.xPct[s+1]-this.xPct[s]);a>0;)c=this.xPct[s+1+v]-this.xPct[s+v],t[s+v]*i+100-o*100>100?(l=c*o,i=(a-100*o)/t[s+v],o=1):(l=t[s+v]*c/100*i,i=0),r?(d=d-l,this.xPct.length+v>=1&&v--):(d=d+l,this.xPct.length-v>=1&&v++),a=t[s+v]*i;return e+d},n.prototype.toStepping=function(e){return e=Ba(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return Wa(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=Ka(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,r){var s=vn(e,this.xPct);return(e===100||t&&e===this.xPct[s-1])&&(s=Math.max(s-1,1)),(this.xVal[s]-this.xVal[s-1])/r},n.prototype.getNearbySteps=function(e){var t=vn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map($a);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var r;if(e==="min"?r=0:e==="max"?r=100:r=parseFloat(e),!Je(r)||!Je(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(r),this.xVal.push(t[0]);var s=Number(t[1]);r?this.xSteps.push(isNaN(s)?!1:s):isNaN(s)||(this.xSteps[0]=s),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=kr([this.xVal[e],this.xVal[e+1]],t,0)/Pr(this.xPct[e],this.xPct[e+1]);var r=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],s=Math.ceil(Number(r.toFixed(3))-1),o=this.xVal[e]+this.xNumSteps[e]*s;this.xHighestCompleteStep[e]=o}},n}(),Us={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},js={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},wt={tooltips:".__tooltips",aria:".__aria"};function Ya(n,e){if(!Je(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function za(n,e){if(!Je(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function Ga(n,e){if(!Je(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function Qa(n,e){if(!Je(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function Xa(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new Fs(e,n.snap||!1,n.singleStep)}function Ja(n,e){if(e=Fn(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function Za(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function ec(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function tc(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function Hs(n,e){var t=[!1],r;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(r=1;r<n.handles;r++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function nc(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Bs(n,e){if(!Je(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function rc(n,e){if(!Je(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function sc(n,e){var t;if(!Je(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||Je(e[0])||Je(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var r=e[0]+e[1],s=n.spectrum.xVal[0],o=n.spectrum.xVal[n.spectrum.xVal.length-1];if(r/(o-s)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function oc(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ic(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,s=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,i=e.indexOf("hover")>=0,a=e.indexOf("unconstrained")>=0,c=e.indexOf("invert-connects")>=0,l=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(s){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Bs(n,n.start[1]-n.start[0])}if(c&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||o,drag:r,dragAll:l,smoothSteps:d,fixed:s,snap:o,hover:i,unconstrained:a,invertConnects:c}}function ac(n,e){if(e!==!1)if(e===!0||Pe(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=Fn(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(r){if(typeof r!="boolean"&&!Pe(r))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function cc(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function lc(n,e){if(!Pe(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function uc(n,e){if(!it(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function dc(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function fc(n,e){n.documentElement=e}function pc(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function hc(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function Ws(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Us,format:Us},t={step:{r:!1,t:Ya},keyboardPageMultiplier:{r:!1,t:za},keyboardMultiplier:{r:!1,t:Ga},keyboardDefaultStep:{r:!1,t:Qa},start:{r:!0,t:Ja},connect:{r:!0,t:Hs},direction:{r:!0,t:oc},snap:{r:!1,t:Za},animate:{r:!1,t:ec},animationDuration:{r:!1,t:tc},range:{r:!0,t:Xa},orientation:{r:!1,t:nc},margin:{r:!1,t:Bs},limit:{r:!1,t:rc},padding:{r:!1,t:sc},behaviour:{r:!0,t:ic},ariaFormat:{r:!1,t:lc},format:{r:!1,t:uc},tooltips:{r:!1,t:ac},keyboardSupport:{r:!0,t:dc},documentElement:{r:!1,t:fc},cssPrefix:{r:!0,t:pc},cssClasses:{r:!0,t:hc},handleAttributes:{r:!1,t:cc}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:js,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(c){if(!Qe(n[c])&&r[c]===void 0){if(t[c].r)throw new Error("noUiSlider: '"+c+"' is required.");return}t[c].t(e,Qe(n[c])?n[c]:r[c])}),e.pips=n.pips;var s=document.createElement("div"),o=s.style.msTransform!==void 0,i=s.style.transform!==void 0;e.transformRule=i?"transform":o?"msTransform":"webkitTransform";var a=[["left","top"],["right","bottom"]];return e.style=a[e.dir][e.ort],e}function mc(n,e,t){var r=Va(),s=Ua(),o=s&&Fa(),i=n,a,c,l,d,v,g,m=e.spectrum,k=[],E=[],S=[],M=0,x={},I=!1,P=n.ownerDocument,j=e.documentElement||P.documentElement,U=P.body,X=P.dir==="rtl"||e.ort===1?0:100;function Q(u,f){var h=P.createElement("div");return f&&Ce(h,f),u.appendChild(h),h}function _e(u,f){var h=Q(u,e.cssClasses.origin),y=Q(h,e.cssClasses.handle);if(Q(y,e.cssClasses.touchArea),y.setAttribute("data-handle",String(f)),e.keyboardSupport&&(y.setAttribute("tabindex","0"),y.addEventListener("keydown",function(L){return ks(L,f)})),e.handleAttributes!==void 0){var C=e.handleAttributes[f];Object.keys(C).forEach(function(L){y.setAttribute(L,C[L])})}return y.setAttribute("role","slider"),y.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),f===0?Ce(y,e.cssClasses.handleLower):f===e.handles-1&&Ce(y,e.cssClasses.handleUpper),h.handle=y,h}function ue(u,f){return f?Q(u,e.cssClasses.connect):!1}function we(u,f){c=Q(f,e.cssClasses.connects),l=[],d=[],d.push(ue(c,u[0]));for(var h=0;h<e.handles;h++)l.push(_e(f,h)),S[h]=h,d.push(ue(c,u[h+1]))}function Ue(u){Ce(u,e.cssClasses.target),e.dir===0?Ce(u,e.cssClasses.ltr):Ce(u,e.cssClasses.rtl),e.ort===0?Ce(u,e.cssClasses.horizontal):Ce(u,e.cssClasses.vertical);var f=getComputedStyle(u).direction;return f==="rtl"?Ce(u,e.cssClasses.textDirectionRtl):Ce(u,e.cssClasses.textDirectionLtr),Q(u,e.cssClasses.base)}function Ae(u,f){return!e.tooltips||!e.tooltips[f]?!1:Q(u.firstChild,e.cssClasses.tooltip)}function dt(){return i.hasAttribute("disabled")}function nt(u){var f=l[u];return f.hasAttribute("disabled")}function Ne(u){u!=null?(l[u].setAttribute("disabled",""),l[u].handle.removeAttribute("tabindex")):(i.setAttribute("disabled",""),l.forEach(function(f){f.handle.removeAttribute("tabindex")}))}function je(u){u!=null?(l[u].removeAttribute("disabled"),l[u].handle.setAttribute("tabindex","0")):(i.removeAttribute("disabled"),l.forEach(function(f){f.removeAttribute("disabled"),f.handle.setAttribute("tabindex","0")}))}function Ot(){g&&(Dt("update"+wt.tooltips),g.forEach(function(u){u&&ge(u)}),g=null)}function ft(){Ot(),g=l.map(Ae),rt("update"+wt.tooltips,function(u,f,h){if(!(!g||!e.tooltips)&&g[f]!==!1){var y=u[f];e.tooltips[f]!==!0&&(y=e.tooltips[f].to(h[f])),g[f].innerHTML=y}})}function fn(){Dt("update"+wt.aria),rt("update"+wt.aria,function(u,f,h,y,C){S.forEach(function(L){var F=l[L],N=Nt(E,L,0,!0,!0,!0),oe=Nt(E,L,100,!0,!0,!0),ie=C[L],de=String(e.ariaFormat.to(h[L]));N=m.fromStepping(N).toFixed(1),oe=m.fromStepping(oe).toFixed(1),ie=m.fromStepping(ie).toFixed(1),F.children[0].setAttribute("aria-valuemin",N),F.children[0].setAttribute("aria-valuemax",oe),F.children[0].setAttribute("aria-valuenow",ie),F.children[0].setAttribute("aria-valuetext",de)})})}function Dn(u){if(u.mode===H.Range||u.mode===H.Steps)return m.xVal;if(u.mode===H.Count){if(u.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var f=u.values-1,h=100/f,y=[];f--;)y[f]=f*h;return y.push(100),Pt(y,u.stepped)}return u.mode===H.Positions?Pt(u.values,u.stepped):u.mode===H.Values?u.stepped?u.values.map(function(C){return m.fromStepping(m.getStep(m.toStepping(C)))}):u.values:[]}function Pt(u,f){return u.map(function(h){return m.fromStepping(f?m.getStep(h):h)})}function pn(u){function f(ie,de){return Number((ie+de).toFixed(7))}var h=Dn(u),y={},C=m.xVal[0],L=m.xVal[m.xVal.length-1],F=!1,N=!1,oe=0;return h=Xe(h.slice().sort(function(ie,de){return ie-de})),h[0]!==C&&(h.unshift(C),F=!0),h[h.length-1]!==L&&(h.push(L),N=!0),h.forEach(function(ie,de){var fe,J,Ee,Le=ie,Se=h[de+1],Te,Ns,Rs,Is,Pa,xs,ka,Da=u.mode===H.Steps;for(Da&&(fe=m.xNumSteps[de]),fe||(fe=Se-Le),Se===void 0&&(Se=Le),fe=Math.max(fe,1e-7),J=Le;J<=Se;J=f(J,fe)){for(Te=m.toStepping(J),Ns=Te-oe,Pa=Ns/(u.density||1),xs=Math.round(Pa),ka=Ns/xs,Ee=1;Ee<=xs;Ee+=1)Rs=oe+Ee*ka,y[Rs.toFixed(5)]=[m.fromStepping(Rs),0];Is=h.indexOf(J)>-1?D.LargeValue:Da?D.SmallValue:D.NoValue,!de&&F&&J!==Se&&(Is=0),J===Se&&N||(y[Te.toFixed(5)]=[J,Is]),oe=Te}}),y}function kt(u,f,h){var y,C,L=P.createElement("div"),F=(y={},y[D.None]="",y[D.NoValue]=e.cssClasses.valueNormal,y[D.LargeValue]=e.cssClasses.valueLarge,y[D.SmallValue]=e.cssClasses.valueSub,y),N=(C={},C[D.None]="",C[D.NoValue]=e.cssClasses.markerNormal,C[D.LargeValue]=e.cssClasses.markerLarge,C[D.SmallValue]=e.cssClasses.markerSub,C),oe=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],ie=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];Ce(L,e.cssClasses.pips),Ce(L,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function de(J,Ee){var Le=Ee===e.cssClasses.value,Se=Le?oe:ie,Te=Le?F:N;return Ee+" "+Se[e.ort]+" "+Te[J]}function fe(J,Ee,Le){if(Le=f?f(Ee,Le):Le,Le!==D.None){var Se=Q(L,!1);Se.className=de(Le,e.cssClasses.marker),Se.style[e.style]=J+"%",Le>D.NoValue&&(Se=Q(L,!1),Se.className=de(Le,e.cssClasses.value),Se.setAttribute("data-value",String(Ee)),Se.style[e.style]=J+"%",Se.innerHTML=String(h.to(Ee)))}}return Object.keys(u).forEach(function(J){fe(J,u[J][0],u[J][1])}),L}function ze(){v&&(ge(v),v=null)}function yt(u){ze();var f=pn(u),h=u.filter,y=u.format||{to:function(C){return String(Math.round(C))}};return v=i.appendChild(kt(f,h,y)),v}function jt(){var u=a.getBoundingClientRect(),f="offset"+["Width","Height"][e.ort];return e.ort===0?u.width||a[f]:u.height||a[f]}function Re(u,f,h,y){var C=function(F){var N=Nn(F,y.pageOffset,y.target||f);if(!N||dt()&&!y.doNotReject||qa(i,e.cssClasses.tap)&&!y.doNotReject||u===r.start&&N.buttons!==void 0&&N.buttons>1||y.hover&&N.buttons)return!1;o||N.preventDefault(),N.calcPoint=N.points[e.ort],h(N,y)},L=[];return u.split(" ").forEach(function(F){f.addEventListener(F,C,o?{passive:!0}:!1),L.push([F,C])}),L}function Nn(u,f,h){var y=u.type.indexOf("touch")===0,C=u.type.indexOf("mouse")===0,L=u.type.indexOf("pointer")===0,F=0,N=0;if(u.type.indexOf("MSPointer")===0&&(L=!0),u.type==="mousedown"&&!u.buttons&&!u.touches)return!1;if(y){var oe=function(fe){var J=fe.target;return J===h||h.contains(J)||u.composed&&u.composedPath().shift()===h};if(u.type==="touchstart"){var ie=Array.prototype.filter.call(u.touches,oe);if(ie.length>1)return!1;F=ie[0].pageX,N=ie[0].pageY}else{var de=Array.prototype.find.call(u.changedTouches,oe);if(!de)return!1;F=de.pageX,N=de.pageY}}return f=f||Vs(P),(C||L)&&(F=u.clientX+f.x,N=u.clientY+f.y),u.pageOffset=f,u.points=[F,N],u.cursor=C||L,u}function br(u){var f=u-xa(a,e.ort),h=f*100/jt();return h=qs(h),e.dir?100-h:h}function Rn(u){var f=100,h=!1;return l.forEach(function(y,C){if(!nt(C)){var L=E[C],F=Math.abs(L-u),N=F===100&&f===100,oe=F<f,ie=F<=f&&u>L;(oe||ie||N)&&(h=C,f=F)}}),h}function Ps(u,f){u.type==="mouseout"&&u.target.nodeName==="HTML"&&u.relatedTarget===null&&In(u,f)}function yr(u,f){if(navigator.appVersion.indexOf("MSIE 9")===-1&&u.buttons===0&&f.buttonsProperty!==0)return In(u,f);var h=(e.dir?-1:1)*(u.calcPoint-f.startCalcPoint),y=h*100/f.baseSize;$n(h>0,y,f.locations,f.handleNumbers,f.connect)}function In(u,f){f.handle&&(Un(f.handle,e.cssClasses.active),M-=1),f.listeners.forEach(function(h){j.removeEventListener(h[0],h[1])}),M===0&&(Un(i,e.cssClasses.drag),Ds(),u.cursor&&(U.style.cursor="",U.removeEventListener("selectstart",gn))),e.events.smoothSteps&&(f.handleNumbers.forEach(function(h){Ht(h,E[h],!0,!0,!1,!1)}),f.handleNumbers.forEach(function(h){ce("update",h)})),f.handleNumbers.forEach(function(h){ce("change",h),ce("set",h),ce("end",h)})}function xn(u,f){if(!f.handleNumbers.some(nt)){var h;if(f.handleNumbers.length===1){var y=l[f.handleNumbers[0]];h=y.children[0],M+=1,Ce(h,e.cssClasses.active)}u.stopPropagation();var C=[],L=Re(r.move,j,yr,{target:u.target,handle:h,connect:f.connect,listeners:C,startCalcPoint:u.calcPoint,baseSize:jt(),pageOffset:u.pageOffset,handleNumbers:f.handleNumbers,buttonsProperty:u.buttons,locations:E.slice()}),F=Re(r.end,j,In,{target:u.target,handle:h,listeners:C,doNotReject:!0,handleNumbers:f.handleNumbers}),N=Re("mouseout",j,Ps,{target:u.target,handle:h,listeners:C,doNotReject:!0,handleNumbers:f.handleNumbers});C.push.apply(C,L.concat(F,N)),u.cursor&&(U.style.cursor=getComputedStyle(u.target).cursor,l.length>1&&Ce(i,e.cssClasses.drag),U.addEventListener("selectstart",gn,!1)),f.handleNumbers.forEach(function(oe){ce("start",oe)})}}function wr(u){u.stopPropagation();var f=br(u.calcPoint),h=Rn(f);h!==!1&&(e.events.snap||$s(i,e.cssClasses.tap,e.animationDuration),Ht(h,f,!0,!0),Ds(),ce("slide",h,!0),ce("update",h,!0),e.events.snap?xn(u,{handleNumbers:[h]}):(ce("change",h,!0),ce("set",h,!0)))}function Sr(u){var f=br(u.calcPoint),h=m.getStep(f),y=m.fromStepping(h);Object.keys(x).forEach(function(C){C.split(".")[0]==="hover"&&x[C].forEach(function(L){L.call(Lr,y)})})}function ks(u,f){if(dt()||nt(f))return!1;var h=["Left","Right"],y=["Down","Up"],C=["PageDown","PageUp"],L=["Home","End"];e.dir&&!e.ort?h.reverse():e.ort&&!e.dir&&(y.reverse(),C.reverse());var F=u.key.replace("Arrow",""),N=F===C[0],oe=F===C[1],ie=F===y[0]||F===h[0]||N,de=F===y[1]||F===h[1]||oe,fe=F===L[0],J=F===L[1];if(!ie&&!de&&!fe&&!J)return!0;u.preventDefault();var Ee;if(de||ie){var Le=ie?0:1,Se=Ma(f),Te=Se[Le];if(Te===null)return!1;Te===!1&&(Te=m.getDefaultStep(E[f],ie,e.keyboardDefaultStep)),oe||N?Te*=e.keyboardPageMultiplier:Te*=e.keyboardMultiplier,Te=Math.max(Te,1e-7),Te=(ie?-1:1)*Te,Ee=k[f]+Te}else J?Ee=e.spectrum.xVal[e.spectrum.xVal.length-1]:Ee=e.spectrum.xVal[0];return Ht(f,m.toStepping(Ee),!0,!0),ce("slide",f),ce("update",f),ce("change",f),ce("set",f),!1}function Ar(u){u.fixed||l.forEach(function(f,h){Re(r.start,f.children[0],xn,{handleNumbers:[h]})}),u.tap&&Re(r.start,a,wr,{}),u.hover&&Re(r.move,a,Sr,{hover:!0}),u.drag&&d.forEach(function(f,h){if(!(f===!1||h===0||h===d.length-1)){var y=l[h-1],C=l[h],L=[f],F=[y,C],N=[h-1,h];Ce(f,e.cssClasses.draggable),u.fixed&&(L.push(y.children[0]),L.push(C.children[0])),u.dragAll&&(F=l,N=S),L.forEach(function(oe){Re(r.start,oe,xn,{handles:F,handleNumbers:N,connect:f})})}})}function rt(u,f){x[u]=x[u]||[],x[u].push(f),u.split(".")[0]==="update"&&l.forEach(function(h,y){ce("update",y)})}function hn(u){return u===wt.aria||u===wt.tooltips}function Dt(u){var f=u&&u.split(".")[0],h=f?u.substring(f.length):u;Object.keys(x).forEach(function(y){var C=y.split(".")[0],L=y.substring(C.length);(!f||f===C)&&(!h||h===L)&&(!hn(L)||h===L)&&delete x[y]})}function ce(u,f,h){Object.keys(x).forEach(function(y){var C=y.split(".")[0];u===C&&x[y].forEach(function(L){L.call(Lr,k.map(e.format.to),f,k.slice(),h||!1,E.slice(),Lr)})})}function Nt(u,f,h,y,C,L,F){var N;return l.length>1&&!e.events.unconstrained&&(y&&f>0&&(N=m.getAbsoluteDistance(u[f-1],e.margin,!1),h=Math.max(h,N)),C&&f<l.length-1&&(N=m.getAbsoluteDistance(u[f+1],e.margin,!0),h=Math.min(h,N))),l.length>1&&e.limit&&(y&&f>0&&(N=m.getAbsoluteDistance(u[f-1],e.limit,!1),h=Math.min(h,N)),C&&f<l.length-1&&(N=m.getAbsoluteDistance(u[f+1],e.limit,!0),h=Math.max(h,N))),e.padding&&(f===0&&(N=m.getAbsoluteDistance(0,e.padding[0],!1),h=Math.max(h,N)),f===l.length-1&&(N=m.getAbsoluteDistance(100,e.padding[1],!0),h=Math.min(h,N))),F||(h=m.getStep(h)),h=qs(h),h===u[f]&&!L?!1:h}function mn(u,f){var h=e.ort;return(h?f:u)+", "+(h?u:f)}function $n(u,f,h,y,C){var L=h.slice(),F=y[0],N=e.events.smoothSteps,oe=[!u,u],ie=[u,!u];y=y.slice(),u&&y.reverse(),y.length>1?y.forEach(function(fe,J){var Ee=Nt(L,fe,L[fe]+f,oe[J],ie[J],!1,N);Ee===!1?f=0:(f=Ee-L[fe],L[fe]=Ee)}):oe=ie=[!0];var de=!1;y.forEach(function(fe,J){de=Ht(fe,h[fe]+f,oe[J],ie[J],!1,N)||de}),de&&(y.forEach(function(fe){ce("update",fe),ce("slide",fe)}),C!=null&&ce("drag",F))}function qn(u,f){return e.dir?100-u-f:u}function Tr(u,f){E[u]=f,k[u]=m.fromStepping(f);var h=qn(f,0)-X,y="translate("+mn(h+"%","0")+")";if(l[u].style[e.transformRule]=y,e.events.invertConnects&&E.length>1){var C=E.every(function(L,F,N){return F===0||L>=N[F-1]});if(I!==!C){om();return}}Vn(u),Vn(u+1),I&&(Vn(u-1),Vn(u+2))}function Ds(){S.forEach(function(u){var f=E[u]>50?-1:1,h=3+(l.length+f*u);l[u].style.zIndex=String(h)})}function Ht(u,f,h,y,C,L){return C||(f=Nt(E,u,f,h,y,!1,L)),f===!1?!1:(Tr(u,f),!0)}function Vn(u){if(d[u]){var f=E.slice();I&&f.sort(function(N,oe){return N-oe});var h=0,y=100;u!==0&&(h=f[u-1]),u!==d.length-1&&(y=f[u]);var C=y-h,L="translate("+mn(qn(h,C)+"%","0")+")",F="scale("+mn(C/100,"1")+")";d[u].style[e.transformRule]=L+" "+F}}function Ca(u,f){return u===null||u===!1||u===void 0||(typeof u=="number"&&(u=String(u)),u=e.format.from(u),u!==!1&&(u=m.toStepping(u)),u===!1||isNaN(u))?E[f]:u}function Cr(u,f,h){var y=Fn(u),C=E[0]===void 0;f=f===void 0?!0:f,e.animate&&!C&&$s(i,e.cssClasses.tap,e.animationDuration),S.forEach(function(N){Ht(N,Ca(y[N],N),!0,!1,h)});var L=S.length===1?0:1;if(C&&m.hasNoSize()&&(h=!0,E[0]=0,S.length>1)){var F=100/(S.length-1);S.forEach(function(N){E[N]=N*F})}for(;L<S.length;++L)S.forEach(function(N){Ht(N,E[N],!0,!0,h)});Ds(),S.forEach(function(N){ce("update",N),y[N]!==null&&f&&ce("set",N)})}function em(u){Cr(e.start,u)}function tm(u,f,h,y){if(u=Number(u),!(u>=0&&u<S.length))throw new Error("noUiSlider: invalid handle number, got: "+u);Ht(u,Ca(f,u),!0,!0,y),ce("update",u),h&&ce("set",u)}function La(u){if(u===void 0&&(u=!1),u)return k.length===1?k[0]:k.slice(0);var f=k.map(e.format.to);return f.length===1?f[0]:f}function nm(){for(Dt(wt.aria),Dt(wt.tooltips),Object.keys(e.cssClasses).forEach(function(u){Un(i,e.cssClasses[u])});i.firstChild;)i.removeChild(i.firstChild);delete i.noUiSlider}function Ma(u){var f=E[u],h=m.getNearbySteps(f),y=k[u],C=h.thisStep.step,L=null;if(e.snap)return[y-h.stepBefore.startValue||null,h.stepAfter.startValue-y||null];C!==!1&&y+C>h.stepAfter.startValue&&(C=h.stepAfter.startValue-y),y>h.thisStep.startValue?L=h.thisStep.step:h.stepBefore.step===!1?L=!1:L=y-h.stepBefore.highestStep,f===100?C=null:f===0&&(L=null);var F=m.countStepDecimals();return C!==null&&C!==!1&&(C=Number(C.toFixed(F))),L!==null&&L!==!1&&(L=Number(L.toFixed(F))),[L,C]}function rm(){return S.map(Ma)}function sm(u,f){var h=La(),y=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];y.forEach(function(L){u[L]!==void 0&&(t[L]=u[L])});var C=Ws(t);y.forEach(function(L){u[L]!==void 0&&(e[L]=C[L])}),m=C.spectrum,e.margin=C.margin,e.limit=C.limit,e.padding=C.padding,e.pips?yt(e.pips):ze(),e.tooltips?ft():Ot(),E=[],Cr(Qe(u.start)?u.start:h,f),u.connect&&Oa()}function Oa(){for(;c.firstChild;)c.removeChild(c.firstChild);for(var u=0;u<=e.handles;u++)d[u]=ue(c,e.connect[u]),Vn(u);Ar({drag:e.events.drag,fixed:!0})}function om(){I=!I,Hs(e,e.connect.map(function(u){return!u})),Oa()}function im(){a=Ue(i),we(e.connect,a),Ar(e.events),Cr(e.start),e.pips&&yt(e.pips),e.tooltips&&ft(),fn()}im();var Lr={destroy:nm,steps:rm,on:rt,off:Dt,get:La,set:Cr,setHandle:tm,reset:em,disable:Ne,enable:je,__moveHandles:function(u,f,h){$n(u,f,E,h)},options:t,updateOptions:sm,target:i,removePips:ze,removeTooltips:Ot,getPositions:function(){return E.slice()},getTooltips:function(){return g},getOrigins:function(){return l},pips:yt};return Lr}function gc(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=Ws(e),r=mc(n,t,e);return n.noUiSlider=r,r}const vc={__spectrum:Fs,cssClasses:js,create:gc};var _c=re(935),Ec=re.n(_c);const bc={delay:250},Bt=(n,e)=>{let t;return(...r)=>{typeof t!="undefined"&&window.clearTimeout(t),t=window.setTimeout(()=>{n(...r)},e)}};var ke="top",qe="bottom",Ve="right",De="left",jn="auto",Wt=[ke,qe,Ve,De],Rt="start",Kt="end",Ks="clippingParents",Dr="viewport",Yt="popper",Ys="reference",Nr=Wt.reduce(function(n,e){return n.concat([e+"-"+Rt,e+"-"+Kt])},[]),Rr=[].concat(Wt,[jn]).reduce(function(n,e){return n.concat([e,e+"-"+Rt,e+"-"+Kt])},[]),zs="beforeRead",Gs="read",Qs="afterRead",Xs="beforeMain",Js="main",Zs="afterMain",eo="beforeWrite",to="write",no="afterWrite",ro=[zs,Gs,Qs,Xs,Js,Zs,eo,to,no];function at(n){return n?(n.nodeName||"").toLowerCase():null}function Fe(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function It(n){var e=Fe(n).Element;return n instanceof e||n instanceof Element}function Be(n){var e=Fe(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ir(n){if(typeof ShadowRoot=="undefined")return!1;var e=Fe(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function yc(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];!Be(o)||!at(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(i){var a=s[i];a===!1?o.removeAttribute(i):o.setAttribute(i,a===!0?"":a)}))})}function wc(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],o=e.attributes[r]||{},i=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=i.reduce(function(c,l){return c[l]="",c},{});!Be(s)||!at(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}const xr={name:"applyStyles",enabled:!0,phase:"write",fn:yc,effect:wc,requires:["computeStyles"]};function ct(n){return n.split("-")[0]}var xt=Math.max,Hn=Math.min,zt=Math.round;function $r(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function so(){return!/^((?!chrome|android).)*safari/i.test($r())}function Gt(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),s=1,o=1;e&&Be(n)&&(s=n.offsetWidth>0&&zt(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&zt(r.height)/n.offsetHeight||1);var i=It(n)?Fe(n):window,a=i.visualViewport,c=!so()&&t,l=(r.left+(c&&a?a.offsetLeft:0))/s,d=(r.top+(c&&a?a.offsetTop:0))/o,v=r.width/s,g=r.height/o;return{width:v,height:g,top:d,right:l+v,bottom:d+g,left:l,x:l,y:d}}function qr(n){var e=Gt(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function oo(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ir(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pt(n){return Fe(n).getComputedStyle(n)}function Sc(n){return["table","td","th"].indexOf(at(n))>=0}function St(n){return((It(n)?n.ownerDocument:n.document)||window.document).documentElement}function Bn(n){return at(n)==="html"?n:n.assignedSlot||n.parentNode||(Ir(n)?n.host:null)||St(n)}function io(n){return!Be(n)||pt(n).position==="fixed"?null:n.offsetParent}function Ac(n){var e=/firefox/i.test($r()),t=/Trident/i.test($r());if(t&&Be(n)){var r=pt(n);if(r.position==="fixed")return null}var s=Bn(n);for(Ir(s)&&(s=s.host);Be(s)&&["html","body"].indexOf(at(s))<0;){var o=pt(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function _n(n){for(var e=Fe(n),t=io(n);t&&Sc(t)&&pt(t).position==="static";)t=io(t);return t&&(at(t)==="html"||at(t)==="body"&&pt(t).position==="static")?e:t||Ac(n)||e}function Vr(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function En(n,e,t){return xt(n,Hn(e,t))}function Tc(n,e,t){var r=En(n,e,t);return r>t?t:r}function ao(){return{top:0,right:0,bottom:0,left:0}}function co(n){return Object.assign({},ao(),n)}function lo(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Cc=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,co(typeof e!="number"?e:lo(e,Wt))};function Lc(n){var e,t=n.state,r=n.name,s=n.options,o=t.elements.arrow,i=t.modifiersData.popperOffsets,a=ct(t.placement),c=Vr(a),l=[De,Ve].indexOf(a)>=0,d=l?"height":"width";if(!(!o||!i)){var v=Cc(s.padding,t),g=qr(o),m=c==="y"?ke:De,k=c==="y"?qe:Ve,E=t.rects.reference[d]+t.rects.reference[c]-i[c]-t.rects.popper[d],S=i[c]-t.rects.reference[c],M=_n(o),x=M?c==="y"?M.clientHeight||0:M.clientWidth||0:0,I=E/2-S/2,P=v[m],j=x-g[d]-v[k],U=x/2-g[d]/2+I,X=En(P,U,j),Q=c;t.modifiersData[r]=(e={},e[Q]=X,e.centerOffset=X-U,e)}}function Mc(n){var e=n.state,t=n.options,r=t.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||oo(e.elements.popper,s)&&(e.elements.arrow=s))}const uo={name:"arrow",enabled:!0,phase:"main",fn:Lc,effect:Mc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qt(n){return n.split("-")[1]}var Oc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pc(n,e){var t=n.x,r=n.y,s=e.devicePixelRatio||1;return{x:zt(t*s)/s||0,y:zt(r*s)/s||0}}function fo(n){var e,t=n.popper,r=n.popperRect,s=n.placement,o=n.variation,i=n.offsets,a=n.position,c=n.gpuAcceleration,l=n.adaptive,d=n.roundOffsets,v=n.isFixed,g=i.x,m=g===void 0?0:g,k=i.y,E=k===void 0?0:k,S=typeof d=="function"?d({x:m,y:E}):{x:m,y:E};m=S.x,E=S.y;var M=i.hasOwnProperty("x"),x=i.hasOwnProperty("y"),I=De,P=ke,j=window;if(l){var U=_n(t),X="clientHeight",Q="clientWidth";if(U===Fe(t)&&(U=St(t),pt(U).position!=="static"&&a==="absolute"&&(X="scrollHeight",Q="scrollWidth")),U=U,s===ke||(s===De||s===Ve)&&o===Kt){P=qe;var _e=v&&U===j&&j.visualViewport?j.visualViewport.height:U[X];E-=_e-r.height,E*=c?1:-1}if(s===De||(s===ke||s===qe)&&o===Kt){I=Ve;var ue=v&&U===j&&j.visualViewport?j.visualViewport.width:U[Q];m-=ue-r.width,m*=c?1:-1}}var we=Object.assign({position:a},l&&Oc),Ue=d===!0?Pc({x:m,y:E},Fe(t)):{x:m,y:E};if(m=Ue.x,E=Ue.y,c){var Ae;return Object.assign({},we,(Ae={},Ae[P]=x?"0":"",Ae[I]=M?"0":"",Ae.transform=(j.devicePixelRatio||1)<=1?"translate("+m+"px, "+E+"px)":"translate3d("+m+"px, "+E+"px, 0)",Ae))}return Object.assign({},we,(e={},e[P]=x?E+"px":"",e[I]=M?m+"px":"",e.transform="",e))}function kc(n){var e=n.state,t=n.options,r=t.gpuAcceleration,s=r===void 0?!0:r,o=t.adaptive,i=o===void 0?!0:o,a=t.roundOffsets,c=a===void 0?!0:a,l={placement:ct(e.placement),variation:Qt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fo(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fo(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Fr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kc,data:{}};var Wn={passive:!0};function Dc(n){var e=n.state,t=n.instance,r=n.options,s=r.scroll,o=s===void 0?!0:s,i=r.resize,a=i===void 0?!0:i,c=Fe(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach(function(d){d.addEventListener("scroll",t.update,Wn)}),a&&c.addEventListener("resize",t.update,Wn),function(){o&&l.forEach(function(d){d.removeEventListener("scroll",t.update,Wn)}),a&&c.removeEventListener("resize",t.update,Wn)}}const Ur={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dc,data:{}};var Nc={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(n){return n.replace(/left|right|bottom|top/g,function(e){return Nc[e]})}var Rc={start:"end",end:"start"};function po(n){return n.replace(/start|end/g,function(e){return Rc[e]})}function jr(n){var e=Fe(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Hr(n){return Gt(St(n)).left+jr(n).scrollLeft}function Ic(n,e){var t=Fe(n),r=St(n),s=t.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,c=0;if(s){o=s.width,i=s.height;var l=so();(l||!l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:o,height:i,x:a+Hr(n),y:c}}function xc(n){var e,t=St(n),r=jr(n),s=(e=n.ownerDocument)==null?void 0:e.body,o=xt(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),i=xt(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-r.scrollLeft+Hr(n),c=-r.scrollTop;return pt(s||t).direction==="rtl"&&(a+=xt(t.clientWidth,s?s.clientWidth:0)-o),{width:o,height:i,x:a,y:c}}function Br(n){var e=pt(n),t=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+r)}function ho(n){return["html","body","#document"].indexOf(at(n))>=0?n.ownerDocument.body:Be(n)&&Br(n)?n:ho(Bn(n))}function bn(n,e){var t;e===void 0&&(e=[]);var r=ho(n),s=r===((t=n.ownerDocument)==null?void 0:t.body),o=Fe(r),i=s?[o].concat(o.visualViewport||[],Br(r)?r:[]):r,a=e.concat(i);return s?a:a.concat(bn(Bn(i)))}function Wr(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function $c(n,e){var t=Gt(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function mo(n,e,t){return e===Dr?Wr(Ic(n,t)):It(e)?$c(e,t):Wr(xc(St(n)))}function qc(n){var e=bn(Bn(n)),t=["absolute","fixed"].indexOf(pt(n).position)>=0,r=t&&Be(n)?_n(n):n;return It(r)?e.filter(function(s){return It(s)&&oo(s,r)&&at(s)!=="body"}):[]}function Vc(n,e,t,r){var s=e==="clippingParents"?qc(n):[].concat(e),o=[].concat(s,[t]),i=o[0],a=o.reduce(function(c,l){var d=mo(n,l,r);return c.top=xt(d.top,c.top),c.right=Hn(d.right,c.right),c.bottom=Hn(d.bottom,c.bottom),c.left=xt(d.left,c.left),c},mo(n,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function go(n){var e=n.reference,t=n.element,r=n.placement,s=r?ct(r):null,o=r?Qt(r):null,i=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,c;switch(s){case ke:c={x:i,y:e.y-t.height};break;case qe:c={x:i,y:e.y+e.height};break;case Ve:c={x:e.x+e.width,y:a};break;case De:c={x:e.x-t.width,y:a};break;default:c={x:e.x,y:e.y}}var l=s?Vr(s):null;if(l!=null){var d=l==="y"?"height":"width";switch(o){case Rt:c[l]=c[l]-(e[d]/2-t[d]/2);break;case Kt:c[l]=c[l]+(e[d]/2-t[d]/2);break;default:}}return c}function Xt(n,e){e===void 0&&(e={});var t=e,r=t.placement,s=r===void 0?n.placement:r,o=t.strategy,i=o===void 0?n.strategy:o,a=t.boundary,c=a===void 0?Ks:a,l=t.rootBoundary,d=l===void 0?Dr:l,v=t.elementContext,g=v===void 0?Yt:v,m=t.altBoundary,k=m===void 0?!1:m,E=t.padding,S=E===void 0?0:E,M=co(typeof S!="number"?S:lo(S,Wt)),x=g===Yt?Ys:Yt,I=n.rects.popper,P=n.elements[k?x:g],j=Vc(It(P)?P:P.contextElement||St(n.elements.popper),c,d,i),U=Gt(n.elements.reference),X=go({reference:U,element:I,strategy:"absolute",placement:s}),Q=Wr(Object.assign({},I,X)),_e=g===Yt?Q:U,ue={top:j.top-_e.top+M.top,bottom:_e.bottom-j.bottom+M.bottom,left:j.left-_e.left+M.left,right:_e.right-j.right+M.right},we=n.modifiersData.offset;if(g===Yt&&we){var Ue=we[s];Object.keys(ue).forEach(function(Ae){var dt=[Ve,qe].indexOf(Ae)>=0?1:-1,nt=[ke,qe].indexOf(Ae)>=0?"y":"x";ue[Ae]+=Ue[nt]*dt})}return ue}function Fc(n,e){e===void 0&&(e={});var t=e,r=t.placement,s=t.boundary,o=t.rootBoundary,i=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,l=c===void 0?Rr:c,d=Qt(r),v=d?a?Nr:Nr.filter(function(k){return Qt(k)===d}):Wt,g=v.filter(function(k){return l.indexOf(k)>=0});g.length===0&&(g=v);var m=g.reduce(function(k,E){return k[E]=Xt(n,{placement:E,boundary:s,rootBoundary:o,padding:i})[ct(E)],k},{});return Object.keys(m).sort(function(k,E){return m[k]-m[E]})}function Uc(n){if(ct(n)===jn)return[];var e=Kn(n);return[po(n),e,po(e)]}function jc(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var s=t.mainAxis,o=s===void 0?!0:s,i=t.altAxis,a=i===void 0?!0:i,c=t.fallbackPlacements,l=t.padding,d=t.boundary,v=t.rootBoundary,g=t.altBoundary,m=t.flipVariations,k=m===void 0?!0:m,E=t.allowedAutoPlacements,S=e.options.placement,M=ct(S),x=M===S,I=c||(x||!k?[Kn(S)]:Uc(S)),P=[S].concat(I).reduce(function(kt,ze){return kt.concat(ct(ze)===jn?Fc(e,{placement:ze,boundary:d,rootBoundary:v,padding:l,flipVariations:k,allowedAutoPlacements:E}):ze)},[]),j=e.rects.reference,U=e.rects.popper,X=new Map,Q=!0,_e=P[0],ue=0;ue<P.length;ue++){var we=P[ue],Ue=ct(we),Ae=Qt(we)===Rt,dt=[ke,qe].indexOf(Ue)>=0,nt=dt?"width":"height",Ne=Xt(e,{placement:we,boundary:d,rootBoundary:v,altBoundary:g,padding:l}),je=dt?Ae?Ve:De:Ae?qe:ke;j[nt]>U[nt]&&(je=Kn(je));var Ot=Kn(je),ft=[];if(o&&ft.push(Ne[Ue]<=0),a&&ft.push(Ne[je]<=0,Ne[Ot]<=0),ft.every(function(kt){return kt})){_e=we,Q=!1;break}X.set(we,ft)}if(Q)for(var fn=k?3:1,Dn=function(ze){var yt=P.find(function(jt){var Re=X.get(jt);if(Re)return Re.slice(0,ze).every(function(Nn){return Nn})});if(yt)return _e=yt,"break"},Pt=fn;Pt>0;Pt--){var pn=Dn(Pt);if(pn==="break")break}e.placement!==_e&&(e.modifiersData[r]._skip=!0,e.placement=_e,e.reset=!0)}}const vo={name:"flip",enabled:!0,phase:"main",fn:jc,requiresIfExists:["offset"],data:{_skip:!1}};function _o(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Eo(n){return[ke,Ve,qe,De].some(function(e){return n[e]>=0})}function Hc(n){var e=n.state,t=n.name,r=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,i=Xt(e,{elementContext:"reference"}),a=Xt(e,{altBoundary:!0}),c=_o(i,r),l=_o(a,s,o),d=Eo(c),v=Eo(l);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}const bo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hc};function Bc(n,e,t){var r=ct(n),s=[De,ke].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,i=o[0],a=o[1];return i=i||0,a=(a||0)*s,[De,Ve].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Wc(n){var e=n.state,t=n.options,r=n.name,s=t.offset,o=s===void 0?[0,0]:s,i=Rr.reduce(function(d,v){return d[v]=Bc(v,e.rects,o),d},{}),a=i[e.placement],c=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=i}const yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wc};function Kc(n){var e=n.state,t=n.name;e.modifiersData[t]=go({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Kr={name:"popperOffsets",enabled:!0,phase:"read",fn:Kc,data:{}};function Yc(n){return n==="x"?"y":"x"}function zc(n){var e=n.state,t=n.options,r=n.name,s=t.mainAxis,o=s===void 0?!0:s,i=t.altAxis,a=i===void 0?!1:i,c=t.boundary,l=t.rootBoundary,d=t.altBoundary,v=t.padding,g=t.tether,m=g===void 0?!0:g,k=t.tetherOffset,E=k===void 0?0:k,S=Xt(e,{boundary:c,rootBoundary:l,padding:v,altBoundary:d}),M=ct(e.placement),x=Qt(e.placement),I=!x,P=Vr(M),j=Yc(P),U=e.modifiersData.popperOffsets,X=e.rects.reference,Q=e.rects.popper,_e=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,ue=typeof _e=="number"?{mainAxis:_e,altAxis:_e}:Object.assign({mainAxis:0,altAxis:0},_e),we=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Ue={x:0,y:0};if(U){if(o){var Ae,dt=P==="y"?ke:De,nt=P==="y"?qe:Ve,Ne=P==="y"?"height":"width",je=U[P],Ot=je+S[dt],ft=je-S[nt],fn=m?-Q[Ne]/2:0,Dn=x===Rt?X[Ne]:Q[Ne],Pt=x===Rt?-Q[Ne]:-X[Ne],pn=e.elements.arrow,kt=m&&pn?qr(pn):{width:0,height:0},ze=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ao(),yt=ze[dt],jt=ze[nt],Re=En(0,X[Ne],kt[Ne]),Nn=I?X[Ne]/2-fn-Re-yt-ue.mainAxis:Dn-Re-yt-ue.mainAxis,br=I?-X[Ne]/2+fn+Re+jt+ue.mainAxis:Pt+Re+jt+ue.mainAxis,Rn=e.elements.arrow&&_n(e.elements.arrow),Ps=Rn?P==="y"?Rn.clientTop||0:Rn.clientLeft||0:0,yr=(Ae=we==null?void 0:we[P])!=null?Ae:0,In=je+Nn-yr-Ps,xn=je+br-yr,wr=En(m?Hn(Ot,In):Ot,je,m?xt(ft,xn):ft);U[P]=wr,Ue[P]=wr-je}if(a){var Sr,ks=P==="x"?ke:De,Ar=P==="x"?qe:Ve,rt=U[j],hn=j==="y"?"height":"width",Dt=rt+S[ks],ce=rt-S[Ar],Nt=[ke,De].indexOf(M)!==-1,mn=(Sr=we==null?void 0:we[j])!=null?Sr:0,$n=Nt?Dt:rt-X[hn]-Q[hn]-mn+ue.altAxis,qn=Nt?rt+X[hn]+Q[hn]-mn-ue.altAxis:ce,Tr=m&&Nt?Tc($n,rt,qn):En(m?$n:Dt,rt,m?qn:ce);U[j]=Tr,Ue[j]=Tr-rt}e.modifiersData[r]=Ue}}const wo={name:"preventOverflow",enabled:!0,phase:"main",fn:zc,requiresIfExists:["offset"]};function Gc(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Qc(n){return n===Fe(n)||!Be(n)?jr(n):Gc(n)}function Xc(n){var e=n.getBoundingClientRect(),t=zt(e.width)/n.offsetWidth||1,r=zt(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Jc(n,e,t){t===void 0&&(t=!1);var r=Be(e),s=Be(e)&&Xc(e),o=St(e),i=Gt(n,s,t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!t)&&((at(e)!=="body"||Br(o))&&(a=Qc(e)),Be(e)?(c=Gt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=Hr(o))),{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function Zc(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function s(o){t.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(a){if(!t.has(a)){var c=e.get(a);c&&s(c)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||s(o)}),r}function el(n){var e=Zc(n);return ro.reduce(function(t,r){return t.concat(e.filter(function(s){return s.phase===r}))},[])}function tl(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function nl(n){var e=n.reduce(function(t,r){var s=t[r.name];return t[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var So={placement:"bottom",modifiers:[],strategy:"absolute"};function Ao(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Yn(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,s=e.defaultOptions,o=s===void 0?So:s;return function(a,c,l){l===void 0&&(l=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},So,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},v=[],g=!1,m={state:d,setOptions:function(M){var x=typeof M=="function"?M(d.options):M;E(),d.options=Object.assign({},o,d.options,x),d.scrollParents={reference:It(a)?bn(a):a.contextElement?bn(a.contextElement):[],popper:bn(c)};var I=el(nl([].concat(r,d.options.modifiers)));return d.orderedModifiers=I.filter(function(P){return P.enabled}),k(),m.update()},forceUpdate:function(){if(!g){var M=d.elements,x=M.reference,I=M.popper;if(Ao(x,I)){d.rects={reference:Jc(x,_n(I),d.options.strategy==="fixed"),popper:qr(I)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(ue){return d.modifiersData[ue.name]=Object.assign({},ue.data)});for(var P=0;P<d.orderedModifiers.length;P++){if(d.reset===!0){d.reset=!1,P=-1;continue}var j=d.orderedModifiers[P],U=j.fn,X=j.options,Q=X===void 0?{}:X,_e=j.name;typeof U=="function"&&(d=U({state:d,options:Q,name:_e,instance:m})||d)}}}},update:tl(function(){return new Promise(function(S){m.forceUpdate(),S(d)})}),destroy:function(){E(),g=!0}};if(!Ao(a,c))return m;m.setOptions(l).then(function(S){!g&&l.onFirstUpdate&&l.onFirstUpdate(S)});function k(){d.orderedModifiers.forEach(function(S){var M=S.name,x=S.options,I=x===void 0?{}:x,P=S.effect;if(typeof P=="function"){var j=P({state:d,name:M,instance:m,options:I}),U=function(){};v.push(j||U)}})}function E(){v.forEach(function(S){return S()}),v=[]}return m}}var rl=Yn(),sl=[Ur,Kr,Fr,xr,yo,vo,wo,uo,bo],Yr=Yn({defaultModifiers:sl}),ol=[Ur,Kr,Fr,xr],il=Yn({defaultModifiers:ol});/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/const At=new Map,zr={set(n,e,t){At.has(n)||At.set(n,new Map);const r=At.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return At.has(n)&&At.get(n).get(e)||null},remove(n,e){if(!At.has(n))return;const t=At.get(n);t.delete(e),t.size===0&&At.delete(n)}},al=1e6,cl=1e3,Gr="transitionend",To=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),ll=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),ul=n=>{do n+=Math.floor(Math.random()*al);while(document.getElementById(n));return n},dl=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),s=Number.parseFloat(t);return!r&&!s?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*cl)},Co=n=>{n.dispatchEvent(new Event(Gr))},ht=n=>!n||typeof n!="object"?!1:(typeof n.jquery!="undefined"&&(n=n[0]),typeof n.nodeType!="undefined"),Tt=n=>ht(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(To(n)):null,Jt=n=>{if(!ht(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Ct=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled!="undefined"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Lo=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Lo(n.parentNode):null},zn=()=>{},yn=n=>{n.offsetHeight},Mo=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Qr=[],fl=n=>{document.readyState==="loading"?(Qr.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Qr)e()}),Qr.push(n)):n()},We=()=>document.documentElement.dir==="rtl",Ke=n=>{fl(()=>{const e=Mo();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ie=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Oo=(n,e,t=!0)=>{if(!t){Ie(n);return}const r=5,s=dl(e)+r;let o=!1;const i=({target:a})=>{a===e&&(o=!0,e.removeEventListener(Gr,i),Ie(n))};e.addEventListener(Gr,i),setTimeout(()=>{o||Co(e)},s)},Xr=(n,e,t,r)=>{const s=n.length;let o=n.indexOf(e);return o===-1?!t&&r?n[s-1]:n[0]:(o+=t?1:-1,r&&(o=(o+s)%s),n[Math.max(0,Math.min(o,s-1))])},pl=/[^.]*(?=\..*)\.|.*/,hl=/\..*/,ml=/::\d+$/,Jr={};let Po=1;const ko={mouseenter:"mouseover",mouseleave:"mouseout"},gl=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Do(n,e){return e&&`${e}::${Po++}`||n.uidEvent||Po++}function No(n){const e=Do(n);return n.uidEvent=e,Jr[e]=Jr[e]||{},Jr[e]}function vl(n,e){return function t(r){return es(r,{delegateTarget:n}),t.oneOff&&b.off(n,r.type,e),e.apply(n,[r])}}function _l(n,e,t){return function r(s){const o=n.querySelectorAll(e);for(let{target:i}=s;i&&i!==this;i=i.parentNode)for(const a of o)if(a===i)return es(s,{delegateTarget:i}),r.oneOff&&b.off(n,s.type,e,t),t.apply(i,[s])}}function Ro(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Io(n,e,t){const r=typeof e=="string",s=r?t:e||t;let o=$o(n);return gl.has(o)||(o=n),[r,s,o]}function xo(n,e,t,r,s){if(typeof e!="string"||!n)return;let[o,i,a]=Io(e,t,r);e in ko&&(i=(k=>function(E){if(!E.relatedTarget||E.relatedTarget!==E.delegateTarget&&!E.delegateTarget.contains(E.relatedTarget))return k.call(this,E)})(i));const c=No(n),l=c[a]||(c[a]={}),d=Ro(l,i,o?t:null);if(d){d.oneOff=d.oneOff&&s;return}const v=Do(i,e.replace(pl,"")),g=o?_l(n,t,i):vl(n,i);g.delegationSelector=o?t:null,g.callable=i,g.oneOff=s,g.uidEvent=v,l[v]=g,n.addEventListener(a,g,o)}function Zr(n,e,t,r,s){const o=Ro(e[t],r,s);o&&(n.removeEventListener(t,o,Boolean(s)),delete e[t][o.uidEvent])}function El(n,e,t,r){const s=e[t]||{};for(const[o,i]of Object.entries(s))o.includes(r)&&Zr(n,e,t,i.callable,i.delegationSelector)}function $o(n){return n=n.replace(hl,""),ko[n]||n}const b={on(n,e,t,r){xo(n,e,t,r,!1)},one(n,e,t,r){xo(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[s,o,i]=Io(e,t,r),a=i!==e,c=No(n),l=c[i]||{},d=e.startsWith(".");if(typeof o!="undefined"){if(!Object.keys(l).length)return;Zr(n,c,i,o,s?t:null);return}if(d)for(const v of Object.keys(c))El(n,c,v,e.slice(1));for(const[v,g]of Object.entries(l)){const m=v.replace(ml,"");(!a||e.includes(m))&&Zr(n,c,i,g.callable,g.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Mo(),s=$o(e),o=e!==s;let i=null,a=!0,c=!0,l=!1;o&&r&&(i=r.Event(e,t),r(n).trigger(i),a=!i.isPropagationStopped(),c=!i.isImmediatePropagationStopped(),l=i.isDefaultPrevented());const d=es(new Event(e,{bubbles:a,cancelable:!0}),t);return l&&d.preventDefault(),c&&n.dispatchEvent(d),d.defaultPrevented&&i&&i.preventDefault(),d}};function es(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch(s){Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function qo(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch(e){return n}}function ts(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const mt={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${ts(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${ts(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let s=r.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=qo(n.dataset[r])}return e},getDataAttribute(n,e){return qo(n.getAttribute(`data-bs-${ts(e)}`))}};class wn{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=ht(t)?mt.getDataAttribute(t,"config"):{};return Me(Me(Me(Me({},this.constructor.Default),typeof r=="object"?r:{}),ht(t)?mt.getDataAttributes(t):{}),typeof e=="object"?e:{})}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,s]of Object.entries(t)){const o=e[r],i=ht(o)?"element":ll(o);if(!new RegExp(s).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${s}".`)}}}const bl="5.3.3";class Ze extends wn{constructor(e,t){super(),e=Tt(e),e&&(this._element=e,this._config=this._getConfig(t),zr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zr.remove(this._element,this.constructor.DATA_KEY),b.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Oo(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return zr.get(Tt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return bl}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ns=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>To(t)).join(","):null},q={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Ct(t)&&Jt(t))},getSelectorFromElement(n){const e=ns(n);return e&&q.findOne(e)?e:null},getElementFromSelector(n){const e=ns(n);return e?q.findOne(e):null},getMultipleElementsFromSelector(n){const e=ns(n);return e?q.find(e):[]}},Gn=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;b.on(document,t,`[data-bs-dismiss="${r}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),Ct(this))return;const o=q.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(o)[e]()})},yl="alert",Vo=".bs.alert",wl=`close${Vo}`,Sl=`closed${Vo}`,Al="fade",Tl="show";class Sn extends Ze{static get NAME(){return yl}close(){if(b.trigger(this._element,wl).defaultPrevented)return;this._element.classList.remove(Tl);const t=this._element.classList.contains(Al);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),b.trigger(this._element,Sl),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Sn.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gn(Sn,"close"),Ke(Sn);const Cl="button",Ll=".bs.button",Ml=".data-api",Ol="active",Fo='[data-bs-toggle="button"]',Pl=`click${Ll}${Ml}`;class Qn extends Ze{static get NAME(){return Cl}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ol))}static jQueryInterface(e){return this.each(function(){const t=Qn.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}b.on(document,Pl,Fo,n=>{n.preventDefault();const e=n.target.closest(Fo);Qn.getOrCreateInstance(e).toggle()}),Ke(Qn);const kl="swipe",Zt=".bs.swipe",Dl=`touchstart${Zt}`,Nl=`touchmove${Zt}`,Rl=`touchend${Zt}`,Il=`pointerdown${Zt}`,xl=`pointerup${Zt}`,$l="touch",ql="pen",Vl="pointer-event",Fl=40,Ul={endCallback:null,leftCallback:null,rightCallback:null},jl={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Xn extends wn{constructor(e,t){super(),this._element=e,!(!e||!Xn.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ul}static get DefaultType(){return jl}static get NAME(){return kl}dispose(){b.off(this._element,Zt)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ie(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Fl)return;const t=e/this._deltaX;this._deltaX=0,t&&Ie(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(b.on(this._element,Il,e=>this._start(e)),b.on(this._element,xl,e=>this._end(e)),this._element.classList.add(Vl)):(b.on(this._element,Dl,e=>this._start(e)),b.on(this._element,Nl,e=>this._move(e)),b.on(this._element,Rl,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===ql||e.pointerType===$l)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Hl="carousel",Lt=".bs.carousel",Uo=".data-api",Bl="ArrowLeft",Wl="ArrowRight",Kl=500,An="next",en="prev",tn="left",Jn="right",Yl=`slide${Lt}`,rs=`slid${Lt}`,zl=`keydown${Lt}`,Gl=`mouseenter${Lt}`,Ql=`mouseleave${Lt}`,Xl=`dragstart${Lt}`,Jl=`load${Lt}${Uo}`,Zl=`click${Lt}${Uo}`,jo="carousel",Zn="active",eu="slide",tu="carousel-item-end",nu="carousel-item-start",ru="carousel-item-next",su="carousel-item-prev",Ho=".active",Bo=".carousel-item",ou=Ho+Bo,iu=".carousel-item img",au=".carousel-indicators",cu="[data-bs-slide], [data-bs-slide-to]",lu='[data-bs-ride="carousel"]',uu={[Bl]:Jn,[Wl]:tn},du={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},fu={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class $t extends Ze{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=q.findOne(au,this._element),this._addEventListeners(),this._config.ride===jo&&this.cycle()}static get Default(){return du}static get DefaultType(){return fu}static get NAME(){return Hl}next(){this._slide(An)}nextWhenVisible(){!document.hidden&&Jt(this._element)&&this.next()}prev(){this._slide(en)}pause(){this._isSliding&&Co(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){b.one(this._element,rs,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){b.one(this._element,rs,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const s=e>r?An:en;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&b.on(this._element,zl,e=>this._keydown(e)),this._config.pause==="hover"&&(b.on(this._element,Gl,()=>this.pause()),b.on(this._element,Ql,()=>this._maybeEnableCycle())),this._config.touch&&Xn.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of q.find(iu,this._element))b.on(r,Xl,s=>s.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(tn)),rightCallback:()=>this._slide(this._directionToOrder(Jn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Kl+this._config.interval))}};this._swipeHelper=new Xn(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=uu[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=q.findOne(Ho,this._indicatorsElement);t.classList.remove(Zn),t.removeAttribute("aria-current");const r=q.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Zn),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),s=e===An,o=t||Xr(this._getItems(),r,s,this._config.wrap);if(o===r)return;const i=this._getItemIndex(o),a=m=>b.trigger(this._element,m,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(a(Yl).defaultPrevented||!r||!o)return;const l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=o;const d=s?nu:tu,v=s?ru:su;o.classList.add(v),yn(o),r.classList.add(d),o.classList.add(d);const g=()=>{o.classList.remove(d,v),o.classList.add(Zn),r.classList.remove(Zn,v,d),this._isSliding=!1,a(rs)};this._queueCallback(g,r,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(eu)}_getActive(){return q.findOne(ou,this._element)}_getItems(){return q.find(Bo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return We()?e===tn?en:An:e===tn?An:en}_orderToDirection(e){return We()?e===en?tn:Jn:e===en?Jn:tn}static jQueryInterface(e){return this.each(function(){const t=$t.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}b.on(document,Zl,cu,function(n){const e=q.getElementFromSelector(this);if(!e||!e.classList.contains(jo))return;n.preventDefault();const t=$t.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(mt.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),b.on(window,Jl,()=>{const n=q.find(lu);for(const e of n)$t.getOrCreateInstance(e)}),Ke($t);const pu="collapse",Tn=".bs.collapse",hu=".data-api",mu=`show${Tn}`,gu=`shown${Tn}`,vu=`hide${Tn}`,_u=`hidden${Tn}`,Eu=`click${Tn}${hu}`,ss="show",nn="collapse",er="collapsing",bu="collapsed",yu=`:scope .${nn} .${nn}`,wu="collapse-horizontal",Su="width",Au="height",Tu=".collapse.show, .collapse.collapsing",os='[data-bs-toggle="collapse"]',Cu={parent:null,toggle:!0},Lu={parent:"(null|element)",toggle:"boolean"};class rn extends Ze{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=q.find(os);for(const s of r){const o=q.getSelectorFromElement(s),i=q.find(o).filter(a=>a===this._element);o!==null&&i.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Cu}static get DefaultType(){return Lu}static get NAME(){return pu}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Tu).filter(a=>a!==this._element).map(a=>rn.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||b.trigger(this._element,mu).defaultPrevented)return;for(const a of e)a.hide();const r=this._getDimension();this._element.classList.remove(nn),this._element.classList.add(er),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(er),this._element.classList.add(nn,ss),this._element.style[r]="",b.trigger(this._element,gu)},i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||b.trigger(this._element,vu).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,yn(this._element),this._element.classList.add(er),this._element.classList.remove(nn,ss);for(const s of this._triggerArray){const o=q.getElementFromSelector(s);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([s],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(er),this._element.classList.add(nn),b.trigger(this._element,_u)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ss)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Tt(e.parent),e}_getDimension(){return this._element.classList.contains(wu)?Su:Au}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(os);for(const t of e){const r=q.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=q.find(yu,this._config.parent);return q.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(bu,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=rn.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e]()}})}}b.on(document,Eu,os,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of q.getMultipleElementsFromSelector(this))rn.getOrCreateInstance(e,{toggle:!1}).toggle()}),Ke(rn);const Wo="dropdown",qt=".bs.dropdown",is=".data-api",Mu="Escape",Ko="Tab",Ou="ArrowUp",Yo="ArrowDown",Pu=2,ku=`hide${qt}`,Du=`hidden${qt}`,Nu=`show${qt}`,Ru=`shown${qt}`,zo=`click${qt}${is}`,Go=`keydown${qt}${is}`,Iu=`keyup${qt}${is}`,sn="show",xu="dropup",$u="dropend",qu="dropstart",Vu="dropup-center",Fu="dropdown-center",Vt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Uu=`${Vt}.${sn}`,tr=".dropdown-menu",ju=".navbar",Hu=".navbar-nav",Bu=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Wu=We()?"top-end":"top-start",Ku=We()?"top-start":"top-end",Yu=We()?"bottom-end":"bottom-start",zu=We()?"bottom-start":"bottom-end",Gu=We()?"left-start":"right-start",Qu=We()?"right-start":"left-start",Xu="top",Ju="bottom",Zu={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ed={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class lt extends Ze{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=q.next(this._element,tr)[0]||q.prev(this._element,tr)[0]||q.findOne(tr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Zu}static get DefaultType(){return ed}static get NAME(){return Wo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ct(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!b.trigger(this._element,Nu,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Hu))for(const r of[].concat(...document.body.children))b.on(r,"mouseover",zn);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(sn),this._element.classList.add(sn),b.trigger(this._element,Ru,e)}}hide(){if(Ct(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!b.trigger(this._element,ku,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))b.off(r,"mouseover",zn);this._popper&&this._popper.destroy(),this._menu.classList.remove(sn),this._element.classList.remove(sn),this._element.setAttribute("aria-expanded","false"),mt.removeDataAttribute(this._menu,"popper"),b.trigger(this._element,Du,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!ht(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Wo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Z=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:ht(this._config.reference)?e=Tt(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Yr(e,this._menu,t)}_isShown(){return this._menu.classList.contains(sn)}_getPlacement(){const e=this._parent;if(e.classList.contains($u))return Gu;if(e.classList.contains(qu))return Qu;if(e.classList.contains(Vu))return Xu;if(e.classList.contains(Fu))return Ju;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(xu)?t?Ku:Wu:t?zu:Yu}_detectNavbar(){return this._element.closest(ju)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(mt.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),Me(Me({},e),Ie(this._config.popperConfig,[e]))}_selectMenuItem({key:e,target:t}){const r=q.find(Bu,this._menu).filter(s=>Jt(s));r.length&&Xr(r,t,e===Yo,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=lt.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]=="undefined")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===Pu||e.type==="keyup"&&e.key!==Ko)return;const t=q.find(Uu);for(const r of t){const s=lt.getInstance(r);if(!s||s._config.autoClose===!1)continue;const o=e.composedPath(),i=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!i||s._config.autoClose==="outside"&&i||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ko||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};e.type==="click"&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===Mu,s=[Ou,Yo].includes(e.key);if(!s&&!r||t&&!r)return;e.preventDefault();const o=this.matches(Vt)?this:q.prev(this,Vt)[0]||q.next(this,Vt)[0]||q.findOne(Vt,e.delegateTarget.parentNode),i=lt.getOrCreateInstance(o);if(s){e.stopPropagation(),i.show(),i._selectMenuItem(e);return}i._isShown()&&(e.stopPropagation(),i.hide(),o.focus())}}b.on(document,Go,Vt,lt.dataApiKeydownHandler),b.on(document,Go,tr,lt.dataApiKeydownHandler),b.on(document,zo,lt.clearMenus),b.on(document,Iu,lt.clearMenus),b.on(document,zo,Vt,function(n){n.preventDefault(),lt.getOrCreateInstance(this).toggle()}),Ke(lt);const Qo="backdrop",td="fade",Xo="show",Jo=`mousedown.bs.${Qo}`,nd={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},rd={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zo extends wn{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return nd}static get DefaultType(){return rd}static get NAME(){return Qo}show(e){if(!this._config.isVisible){Ie(e);return}this._append();const t=this._getElement();this._config.isAnimated&&yn(t),t.classList.add(Xo),this._emulateAnimation(()=>{Ie(e)})}hide(e){if(!this._config.isVisible){Ie(e);return}this._getElement().classList.remove(Xo),this._emulateAnimation(()=>{this.dispose(),Ie(e)})}dispose(){this._isAppended&&(b.off(this._element,Jo),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(td),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Tt(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),b.on(e,Jo,()=>{Ie(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Oo(e,this._getElement(),this._config.isAnimated)}}const sd="focustrap",nr=".bs.focustrap",od=`focusin${nr}`,id=`keydown.tab${nr}`,ad="Tab",cd="forward",ei="backward",ld={autofocus:!0,trapElement:null},ud={autofocus:"boolean",trapElement:"element"};class ti extends wn{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ld}static get DefaultType(){return ud}static get NAME(){return sd}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),b.off(document,nr),b.on(document,od,e=>this._handleFocusin(e)),b.on(document,id,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,b.off(document,nr))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=q.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===ei?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===ad&&(this._lastTabNavDirection=e.shiftKey?ei:cd)}}const ni=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ri=".sticky-top",rr="padding-right",si="margin-right";class as{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,rr,t=>t+e),this._setElementAttributes(ni,rr,t=>t+e),this._setElementAttributes(ri,si,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,rr),this._resetElementAttributes(ni,rr),this._resetElementAttributes(ri,si)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const s=this.getWidth(),o=i=>{if(i!==this._element&&window.innerWidth>i.clientWidth+s)return;this._saveInitialAttribute(i,t);const a=window.getComputedStyle(i).getPropertyValue(t);i.style.setProperty(t,`${r(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&mt.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=s=>{const o=mt.getDataAttribute(s,t);if(o===null){s.style.removeProperty(t);return}mt.removeDataAttribute(s,t),s.style.setProperty(t,o)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(ht(e)){t(e);return}for(const r of q.find(e,this._element))t(r)}}const dd="modal",Ye=".bs.modal",fd=".data-api",pd="Escape",hd=`hide${Ye}`,md=`hidePrevented${Ye}`,oi=`hidden${Ye}`,ii=`show${Ye}`,gd=`shown${Ye}`,vd=`resize${Ye}`,_d=`click.dismiss${Ye}`,Ed=`mousedown.dismiss${Ye}`,bd=`keydown.dismiss${Ye}`,yd=`click${Ye}${fd}`,ai="modal-open",wd="fade",ci="show",cs="modal-static",Sd=".modal.show",Ad=".modal-dialog",Td=".modal-body",Cd='[data-bs-toggle="modal"]',Ld={backdrop:!0,focus:!0,keyboard:!0},Md={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ye extends Ze{constructor(e,t){super(e,t),this._dialog=q.findOne(Ad,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new as,this._addEventListeners()}static get Default(){return Ld}static get DefaultType(){return Md}static get NAME(){return dd}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||b.trigger(this._element,ii,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ai),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||b.trigger(this._element,hd).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ci),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){b.off(window,Ye),b.off(this._dialog,Ye),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zo({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ti({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=q.findOne(Td,this._dialog);t&&(t.scrollTop=0),yn(this._element),this._element.classList.add(ci);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,b.trigger(this._element,gd,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){b.on(this._element,bd,e=>{if(e.key===pd){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),b.on(window,vd,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),b.on(this._element,Ed,e=>{b.one(this._element,_d,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ai),this._resetAdjustments(),this._scrollBar.reset(),b.trigger(this._element,oi)})}_isAnimated(){return this._element.classList.contains(wd)}_triggerBackdropTransition(){if(b.trigger(this._element,md).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(cs)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(cs),this._queueCallback(()=>{this._element.classList.remove(cs),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const s=We()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!r&&e){const s=We()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=ye.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]=="undefined")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}b.on(document,yd,Cd,function(n){const e=q.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),b.one(e,ii,s=>{s.defaultPrevented||b.one(e,oi,()=>{Jt(this)&&this.focus()})});const t=q.findOne(Sd);t&&ye.getInstance(t).hide(),ye.getOrCreateInstance(e).toggle(this)}),Gn(ye),Ke(ye);const Od="offcanvas",gt=".bs.offcanvas",li=".data-api",Pd=`load${gt}${li}`,kd="Escape",ui="show",di="showing",fi="hiding",Dd="offcanvas-backdrop",pi=".offcanvas.show",Nd=`show${gt}`,Rd=`shown${gt}`,Id=`hide${gt}`,hi=`hidePrevented${gt}`,mi=`hidden${gt}`,xd=`resize${gt}`,$d=`click${gt}${li}`,qd=`keydown.dismiss${gt}`,Vd='[data-bs-toggle="offcanvas"]',Fd={backdrop:!0,keyboard:!0,scroll:!1},Ud={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vt extends Ze{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Fd}static get DefaultType(){return Ud}static get NAME(){return Od}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||b.trigger(this._element,Nd,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new as().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(di);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ui),this._element.classList.remove(di),b.trigger(this._element,Rd,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||b.trigger(this._element,Id).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fi),this._backdrop.hide();const t=()=>{this._element.classList.remove(ui,fi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new as().reset(),b.trigger(this._element,mi)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){b.trigger(this._element,hi);return}this.hide()},t=Boolean(this._config.backdrop);return new Zo({className:Dd,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new ti({trapElement:this._element})}_addEventListeners(){b.on(this._element,qd,e=>{if(e.key===kd){if(this._config.keyboard){this.hide();return}b.trigger(this._element,hi)}})}static jQueryInterface(e){return this.each(function(){const t=vt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}b.on(document,$d,Vd,function(n){const e=q.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Ct(this))return;b.one(e,mi,()=>{Jt(this)&&this.focus()});const t=q.findOne(pi);t&&t!==e&&vt.getInstance(t).hide(),vt.getOrCreateInstance(e).toggle(this)}),b.on(window,Pd,()=>{for(const n of q.find(pi))vt.getOrCreateInstance(n).show()}),b.on(window,xd,()=>{for(const n of q.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&vt.getOrCreateInstance(n).hide()}),Gn(vt),Ke(vt);const gi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},jd=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Hd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Bd=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?jd.has(t)?Boolean(Hd.test(n.nodeValue)):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function Wd(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const s=new window.DOMParser().parseFromString(n,"text/html"),o=[].concat(...s.body.querySelectorAll("*"));for(const i of o){const a=i.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){i.remove();continue}const c=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[a]||[]);for(const d of c)Bd(d,l)||i.removeAttribute(d.nodeName)}return s.body.innerHTML}const Kd="TemplateFactory",Yd={allowList:gi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},zd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Gd={entry:"(string|element|function|null)",selector:"(string|element)"};class Qd extends wn{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Yd}static get DefaultType(){return zd}static get NAME(){return Kd}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content=Me(Me({},this._config.content),e),this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},Gd)}_setContent(e,t,r){const s=q.findOne(r,e);if(s){if(t=this._resolvePossibleFunction(t),!t){s.remove();return}if(ht(t)){this._putElementInTemplate(Tt(t),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(t);return}s.textContent=t}}_maybeSanitize(e){return this._config.sanitize?Wd(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ie(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const Xd="tooltip",Jd=new Set(["sanitize","allowList","sanitizeFn"]),ls="fade",Zd="modal",sr="show",ef=".tooltip-inner",vi=`.${Zd}`,_i="hide.bs.modal",Cn="hover",us="focus",tf="click",nf="manual",rf="hide",sf="hidden",of="show",af="shown",cf="inserted",lf="click",uf="focusin",df="focusout",ff="mouseenter",pf="mouseleave",hf={AUTO:"auto",TOP:"top",RIGHT:We()?"left":"right",BOTTOM:"bottom",LEFT:We()?"right":"left"},mf={allowList:gi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},gf={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class on extends Ze{constructor(e,t){if(typeof Z=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return mf}static get DefaultType(){return gf}static get NAME(){return Xd}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),b.off(this._element.closest(vi),_i,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=b.trigger(this._element,this.constructor.eventName(of)),r=(Lo(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(s),b.trigger(this._element,this.constructor.eventName(cf))),this._popper=this._createPopper(s),s.classList.add(sr),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))b.on(a,"mouseover",zn);const i=()=>{b.trigger(this._element,this.constructor.eventName(af)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||b.trigger(this._element,this.constructor.eventName(rf)).defaultPrevented)return;if(this._getTipElement().classList.remove(sr),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))b.off(s,"mouseover",zn);this._activeTrigger[tf]=!1,this._activeTrigger[us]=!1,this._activeTrigger[Cn]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),b.trigger(this._element,this.constructor.eventName(sf)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ls,sr),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=ul(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(ls),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Qd(Mr(Me({},this._config),{content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[ef]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ls)}_isShown(){return this.tip&&this.tip.classList.contains(sr)}_createPopper(e){const t=Ie(this._config.placement,[this,e,this._element]),r=hf[t.toUpperCase()];return Yr(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ie(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return Me(Me({},t),Ie(this._config.popperConfig,[t]))}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")b.on(this._element,this.constructor.eventName(lf),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==nf){const r=t===Cn?this.constructor.eventName(ff):this.constructor.eventName(uf),s=t===Cn?this.constructor.eventName(pf):this.constructor.eventName(df);b.on(this._element,r,this._config.selector,o=>{const i=this._initializeOnDelegatedTarget(o);i._activeTrigger[o.type==="focusin"?us:Cn]=!0,i._enter()}),b.on(this._element,s,this._config.selector,o=>{const i=this._initializeOnDelegatedTarget(o);i._activeTrigger[o.type==="focusout"?us:Cn]=i._element.contains(o.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},b.on(this._element.closest(vi),_i,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=mt.getDataAttributes(this._element);for(const r of Object.keys(t))Jd.has(r)&&delete t[r];return e=Me(Me({},t),typeof e=="object"&&e?e:{}),e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Tt(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=on.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]=="undefined")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ke(on);const vf="popover",_f=".popover-header",Ef=".popover-body",bf=Mr(Me({},on.Default),{content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"}),yf=Mr(Me({},on.DefaultType),{content:"(null|string|element|function)"});class ds extends on{static get Default(){return bf}static get DefaultType(){return yf}static get NAME(){return vf}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_f]:this._getTitle(),[Ef]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ds.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]=="undefined")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Ke(ds);const wf="scrollspy",fs=".bs.scrollspy",Sf=".data-api",Af=`activate${fs}`,Ei=`click${fs}`,Tf=`load${fs}${Sf}`,Cf="dropdown-item",an="active",Lf='[data-bs-spy="scroll"]',ps="[href]",Mf=".nav, .list-group",bi=".nav-link",Of=`${bi}, .nav-item > ${bi}, .list-group-item`,Pf=".dropdown",kf=".dropdown-toggle",Df={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Nf={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class or extends Ze{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Df}static get DefaultType(){return Nf}static get NAME(){return wf}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Tt(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(b.off(this._config.target,Ei),b.on(this._config.target,Ei,ps,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:s,behavior:"smooth"});return}r.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=i=>this._targetLinks.get(`#${i.target.id}`),r=i=>{this._previousScrollData.visibleEntryTop=i.target.offsetTop,this._process(t(i))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const a=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(r(i),!s)return;continue}!o&&!a&&r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=q.find(ps,this._config.target);for(const t of e){if(!t.hash||Ct(t))continue;const r=q.findOne(decodeURI(t.hash),this._element);Jt(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(an),this._activateParents(e),b.trigger(this._element,Af,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Cf)){q.findOne(kf,e.closest(Pf)).classList.add(an);return}for(const t of q.parents(e,Mf))for(const r of q.prev(t,Of))r.classList.add(an)}_clearActiveClass(e){e.classList.remove(an);const t=q.find(`${ps}.${an}`,e);for(const r of t)r.classList.remove(an)}static jQueryInterface(e){return this.each(function(){const t=or.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}b.on(window,Tf,()=>{for(const n of q.find(Lf))or.getOrCreateInstance(n)}),Ke(or);const Rf="tab",Ft=".bs.tab",If=`hide${Ft}`,xf=`hidden${Ft}`,$f=`show${Ft}`,qf=`shown${Ft}`,Vf=`click${Ft}`,Ff=`keydown${Ft}`,Uf=`load${Ft}`,jf="ArrowLeft",yi="ArrowRight",Hf="ArrowUp",wi="ArrowDown",hs="Home",Si="End",Ut="active",Ai="fade",ms="show",Bf="dropdown",Ti=".dropdown-toggle",Wf=".dropdown-menu",gs=`:not(${Ti})`,Kf='.list-group, .nav, [role="tablist"]',Yf=".nav-item, .list-group-item",zf=`.nav-link${gs}, .list-group-item${gs}, [role="tab"]${gs}`,Ci='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',vs=`${zf}, ${Ci}`,Gf=`.${Ut}[data-bs-toggle="tab"], .${Ut}[data-bs-toggle="pill"], .${Ut}[data-bs-toggle="list"]`;class cn extends Ze{constructor(e){super(e),this._parent=this._element.closest(Kf),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),b.on(this._element,Ff,t=>this._keydown(t)))}static get NAME(){return Rf}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?b.trigger(t,If,{relatedTarget:e}):null;b.trigger(e,$f,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ut),this._activate(q.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(ms);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),b.trigger(e,qf,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Ai))}_deactivate(e,t){if(!e)return;e.classList.remove(Ut),e.blur(),this._deactivate(q.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(ms);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),b.trigger(e,xf,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Ai))}_keydown(e){if(![jf,yi,Hf,wi,hs,Si].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(s=>!Ct(s));let r;if([hs,Si].includes(e.key))r=t[e.key===hs?0:t.length-1];else{const s=[yi,wi].includes(e.key);r=Xr(t,e.target,s,!0)}r&&(r.focus({preventScroll:!0}),cn.getOrCreateInstance(r).show())}_getChildren(){return q.find(vs,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=q.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(Bf))return;const s=(o,i)=>{const a=q.findOne(o,r);a&&a.classList.toggle(i,t)};s(Ti,Ut),s(Wf,ms),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(Ut)}_getInnerElement(e){return e.matches(vs)?e:q.findOne(vs,e)}_getOuterElement(e){return e.closest(Yf)||e}static jQueryInterface(e){return this.each(function(){const t=cn.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}b.on(document,Vf,Ci,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Ct(this)&&cn.getOrCreateInstance(this).show()}),b.on(window,Uf,()=>{for(const n of q.find(Gf))cn.getOrCreateInstance(n)}),Ke(cn);const Qf="toast",Mt=".bs.toast",Xf=`mouseover${Mt}`,Jf=`mouseout${Mt}`,Zf=`focusin${Mt}`,ep=`focusout${Mt}`,tp=`hide${Mt}`,np=`hidden${Mt}`,rp=`show${Mt}`,sp=`shown${Mt}`,op="fade",Li="hide",ir="show",ar="showing",ip={animation:"boolean",autohide:"boolean",delay:"number"},ap={animation:!0,autohide:!0,delay:5e3};class Ln extends Ze{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ap}static get DefaultType(){return ip}static get NAME(){return Qf}show(){if(b.trigger(this._element,rp).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(op);const t=()=>{this._element.classList.remove(ar),b.trigger(this._element,sp),this._maybeScheduleHide()};this._element.classList.remove(Li),yn(this._element),this._element.classList.add(ir,ar),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||b.trigger(this._element,tp).defaultPrevented)return;const t=()=>{this._element.classList.add(Li),this._element.classList.remove(ar,ir),b.trigger(this._element,np)};this._element.classList.add(ar),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ir),super.dispose()}isShown(){return this._element.classList.contains(ir)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){b.on(this._element,Xf,e=>this._onInteraction(e,!0)),b.on(this._element,Jf,e=>this._onInteraction(e,!1)),b.on(this._element,Zf,e=>this._onInteraction(e,!0)),b.on(this._element,ep,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Ln.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]=="undefined")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Gn(Ln),Ke(Ln);const cp={light:"alert-light",dark:"alert-dark",primary:"alert-primary",secondary:"alert-secondary",info:"alert-info",success:"alert-success",warning:"alert-warning",danger:"alert-danger"},lp={light:"e88f",dark:"e88f",primary:"e88f",secondary:"e88f",info:"e88e",success:"e5ca",warning:"e002",danger:"e000"},up=`
<div class="alert alert-dismissible fade d-flex align-items-center" role="alert">
<h4 class="alert-heading w-100 d-none"></h4>
<i class="material-icons flex-shrink-0 me-2"></i>
<div class="alert-body flex-fill"></div>
<button type="button" class="btn-close ms-2" data-bs-dismiss="alert"></button>
</div>
`,dp={type:"info",dismissible:!0};var fp=Object.defineProperty,Mi=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,hp=Object.prototype.propertyIsEnumerable,Oi=(n,e,t)=>e in n?fp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Pi=(n,e)=>{for(var t in e||(e={}))pp.call(e,t)&&Oi(n,t,e[t]);if(Mi)for(var t of Mi(e))hp.call(e,t)&&Oi(n,t,e[t]);return n};const mp=(n,e)=>{let t={instance:null,element:null,show:()=>!1,hide:()=>!1,dispose:()=>!1,title:()=>!1,message:()=>!1,remove:()=>!1};const r=gp(e);if(r){const s=vp(r,e==null?void 0:e.title),o=_p(r,n),i=new Sn(r);t={instance:i,element:r,show:()=>r.isConnected?(r.classList.add("show"),!0):!1,hide:()=>r.isConnected?(r.classList.remove("show"),!0):!1,dispose:()=>r.isConnected?(i.dispose(),!0):!1,title:a=>s!=null&&s.isConnected?(a&&(s.innerHTML=a),s.innerHTML):!1,message:a=>o!=null&&o.isConnected?(a&&(o.innerHTML=a),o.innerHTML):!1,remove:()=>r.isConnected?(r.remove(),!0):!1}}return t},gp=n=>{var e;const t=Pi(Pi({},dp),n),r=(e=t.selector)!=null?e:p.alert.selector,s=document.querySelector(r);if(s){const o=document.createElement("div");o.innerHTML=up;const i=o.querySelector(p.alert.alert);if(i){i.classList.add(cp[t.type]);const a=i.querySelector(p.alert.icon);if(a)if(t.title===void 0){const c=t.icon?t.icon:lp[t.type];a.setAttribute("aria-hidden","true"),a.innerHTML=`&#x${c};`}else i.classList.add("flex-wrap"),a.classList.add("d-none");if(t.dismissible===!1){const c=i.querySelector(p.alert.close);c==null||c.classList.add("d-none")}t.classlist&&t.classlist.split(" ").forEach(c=>{c&&i.classList.add(c)}),s.appendChild(i)}return i}return console.error("The selector for alert is not valid: %c%o","color: white",r),null},vp=(n,e)=>{if(e){const t=n.querySelector(p.alert.heading);if(t)return t.innerHTML=e,t.classList.remove("d-none"),t}return null},_p=(n,e)=>{const t=n.querySelector(p.alert.body);return t&&(t.innerHTML=e),t},cr=mp,Ep={light:"bg-light-subtle border-light-subtle",dark:"bg-dark-subtle border-dark-subtle",primary:"bg-primary-subtle border-primary-subtle",secondary:"bg-secondary-subtle border-secondary-subtle",info:"bg-info-subtle border-info-subtle",success:"bg-success-subtle border-success-subtle",warning:"bg-warning-subtle border-warning-subtle",danger:"bg-danger-subtle border-danger-subtle"},bp=`
<div class="toast-container toast-container--fallback position-fixed top-0 end-0 p-3" id="js-toast-container">
<template class="js-toast-template">
<div class="toast toast--fallback" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body"></div>
<button type="button" class="btn-close me-2 m-auto d-none" data-bs-dismiss="toast"></button>
</div>
</div>
</template>
</div>
`,yp={type:"info",autohide:!0,delay:3e3};var wp=Object.defineProperty,ki=Object.getOwnPropertySymbols,Sp=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable,Di=(n,e,t)=>e in n?wp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ni=(n,e)=>{for(var t in e||(e={}))Sp.call(e,t)&&Di(n,t,e[t]);if(ki)for(var t of ki(e))Ap.call(e,t)&&Di(n,t,e[t]);return n};const Tp=(n,e)=>{let t={instance:null,element:null,content:null,show:()=>!1,hide:()=>!1,dispose:()=>!1,message:()=>!1,remove:()=>!1};const r=Cp(e==null?void 0:e.template);if(r){Mp(r,n);const s=Ni(Ni({},yp),e);Op(r,s),s.autohide===!1&&Pp(r);const o=r.querySelector(p.toast.body);if(o){const i=new Ln(r,{autohide:s.autohide,delay:s.delay});t={instance:i,element:r,content:o,show:()=>r.isConnected?(i.show(),!0):!1,hide:()=>r.isConnected?(i.hide(),!0):!1,dispose:()=>r.isConnected?(i.dispose(),!0):!1,message:a=>r.isConnected?(a&&(o.innerHTML=a),o.innerHTML):!1,remove:()=>r.isConnected?(r.remove(),!0):!1}}}return t},Cp=n=>{const e=document.querySelector(p.toast.container);return e?n===void 0?_s(e):Ri(e,n):Lp(n)},_s=(n,e=!0)=>{const t=n.querySelector(p.toast.template),r=t==null?void 0:t.content.cloneNode(!0),s=r==null?void 0:r.querySelector(p.toast.toast),o=s==null?void 0:s.querySelector(p.toast.body);if(s&&o)return n.appendChild(s),s;if(e){const i=Ii();if(i)return n.innerHTML=i.innerHTML,_s(n,!1)}return xi("Failed to clone toast template.","Check the toast markup in theme or JS fallback."),null},Ri=(n,e)=>{const t=document.createElement("div");t.innerHTML=e;const r=t==null?void 0:t.querySelector(p.toast.toast),s=r==null?void 0:r.querySelector(p.toast.body);return r&&s?(n.appendChild(r),r):(xi("The override toast template is not valid.","Reference: https://getbootstrap.com/docs/5.0/components/toasts/"),null)},Lp=n=>{const e=document.querySelector("body"),t=Ii();if(e&&t){const r=n===void 0?_s(t,!1):Ri(t,n);if(r)return t.appendChild(r),e.appendChild(t),r}return null},Ii=()=>{const n=document.createElement("div");return n.innerHTML=bp,n.querySelector(p.toast.container)},Mp=(n,e)=>{const t=n.querySelector(p.toast.body);t&&(t.innerHTML=e)},Op=(n,e)=>{let t=Ep[e.type];const r=e.classlist;r&&(t=t.concat(" ",r.trim())),t.split(" ").forEach(s=>{s&&n.classList.add(s)})},Pp=n=>{var e;const t=n.querySelector(p.toast.close);if(t){const r=(e=n.classList.toString().match(/(?:text-bg-)\w+/))==null?void 0:e[0],s=r==null?void 0:r.split("-").pop();s&&["dark","primary","secondary","success"].includes(s)?t.classList.add("btn-close-white"):t.classList.add("btn-close-black"),t.classList.remove("d-none")}},xi=(n,e)=>{e?(console.group("useToast"),console.error(n),console.info(e),console.groupEnd()):console.error(n)},lr=Tp;var kp=Object.defineProperty,$i=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable,qi=(n,e,t)=>e in n?kp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Vi=(n,e)=>{for(var t in e||(e={}))Dp.call(e,t)&&qi(n,t,e[t]);if($i)for(var t of $i(e))Np.call(e,t)&&qi(n,t,e[t]);return n};const _t={DELETE_FROM_CART:"delete-from-cart",UPDATE_PRODUCT_QUANTITY:"update-product-quantity",SUBMIT_VOUCHER:"submit-voucher",REMOVE_VOUCHER:"remove-voucher"};class Rp{constructor(){this.state={lastUpdateAction:null,storedFocusElement:null,storedFocusElementId:null}}get(e){return this.state[e]}set(e,t){this.state[e]=t}merge(e){this.state=Vi(Vi({},this.state),e)}}const Mm=null,ve=new Rp;class Ip{getStoredFocus(){return ve.get("storedFocusElement")}getStoredFocusId(){return ve.get("storedFocusElementId")}setFocus(e){e.focus(),ve.set("storedFocusElement",e),ve.set("storedFocusElementId",e.id)}storeFocus(){const e=document.activeElement;ve.set("storedFocusElement",e),ve.set("storedFocusElementId",e.id)}clearStoredFocus(){ve.set("storedFocusElement",null),ve.set("storedFocusElementId",null)}restoreFocus(e=null){let t=!1;try{const r=ve.get("storedFocusElementId"),s=ve.get("storedFocusElement");if(r){const o=document.getElementById(r);o&&(o.focus(),t=!0)}!t&&s&&document.contains(s)&&(s.focus(),t=!0),!t&&e&&document.contains(e)&&(e.focus(),t=!1),!t&&!e&&(t=!1)}catch(r){t=!1}finally{this.clearStoredFocus()}return t}}const ur=Ip;var dr=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const Fi=new ur,Es="Enter",xp="Escape",$p="ArrowUp",qp="ArrowDown",bs=(n=T.default,e=bc.delay)=>{document.querySelectorAll(n).forEach(r=>{const s=r.querySelector("input");if(s){const o=r.querySelector(T.increment),i=r.querySelector(T.decrement);if(o&&i){const a={qtyInput:s,incrementButton:o,decrementButton:i};o.addEventListener("click",()=>fr(s,1)),i.addEventListener("click",()=>fr(s,-1)),s.addEventListener("keydown",c=>{c.key===$p&&fr(s,1,!0),c.key===qp&&fr(s,-1,!0)}),s.addEventListener("input",c=>{const l=c.target,d=ji(l),v=Hi(l.value),g=Bi(v,d);l.value!==g.toString()&&(l.value=g.toString())}),s.addEventListener("blur",c=>{const l=c.target,d=ji(l),v=Hi(l.value);l.value=Bi(v,d).toString()}),s.hasAttribute("data-update-url")&&(o.addEventListener("click",Bt(()=>dr(void 0,null,function*(){pr(a,1)}),e)),i.addEventListener("click",Bt(()=>dr(void 0,null,function*(){pr(a,-1)}),e)),s.addEventListener("keyup",c=>{const l=s.getAttribute("value");if(s.value!==l?Up(a):Mn(a),c.key===Es)if(s.value==="0"){const d=s.closest(le.productItem),v=d==null?void 0:d.querySelector(le.removeFromCart);v?v.click():pr(a,1)}else pr(a,1);c.key===xp&&Mn(a)}))}}})},Ui=n=>!Number.isNaN(n)&&Number.isInteger(n),ji=n=>Number(n.getAttribute("min"))||1,Hi=n=>Number(n.replace(/[^\d]/g,""))||0,Bi=(n,e)=>Math.max(n,e),fr=(n,e,t=!1)=>{const{mode:r}=n.dataset;if(r!=="confirmation"||t){const s=Number(n.getAttribute("value")),o=Number(n.value),i=n.dataset.updateUrl===void 0?Number(n.getAttribute("min")):0,a=Math.max(o+e,i);n.value=String(Ui(a)?a:s)}},pr=(n,e)=>dr(void 0,null,function*(){var t,r;const{prestashop:s,Theme:{events:o}}=window,{qtyInput:i}=n,{mode:a}=i.dataset;if(a==="confirmation"&&e<0)Mn(n);else{const c=Number(i.value),l=Number(i.getAttribute("value")),d=c-l;if(c===0&&i.getAttribute("min")==="1")return;if(Ui(c)&&d!==0){const v=i.dataset.updateUrl;if(v!==void 0){const g=Vp(n,e),m=g.querySelector("i:not(.d-none)"),k=g.querySelector(T.spinner);Wi(g,m,k);try{const E=yield Yi(v,d);if(E.ok){const S=yield E.json();if(S.hasError){const M=S.errors;M&&M.forEach(x=>{lr(x,{type:"danger"}).show()})}else{const M=S.errors;M&&lr(M,{type:"danger"}).show()}if(((r=(t=S.cart)==null?void 0:t.products)==null?void 0:r.length)>0){const M=S.cart.products.find(x=>S.id_product===Number(x.id_product)&&S.id_product_attribute===Number(x.id_product_attribute));if(M&&M.availability==="unavailable"&&M.allow_oosp===0&&Number(M.quantity_wanted)>Number(M.stock_quantity)){const x=Number(M.stock_quantity)-Number(M.quantity_wanted);yield Yi(M.update_quantity_url,x)}}s.emit(o.updateCart,{reason:i.dataset,resp:S}),i.value=S.quantity,i.setAttribute("value",S.quantity)}else throw E}catch(E){i.value=String(l);const S=E;if(S.status!==void 0){const M=`${S.statusText}: ${S.url}`,x=Fp(i);cr(M,{type:"danger",selector:x}).show(),s.emit(o.handleError,{eventType:"updateProductInCart",resp:S})}}finally{Wi(g,m,k),Mn(n)}}}else Mn(n)}}),Vp=(n,e)=>{const{incrementButton:t,decrementButton:r}=n;return e>0?t:r},Fp=n=>{const{alertId:e}=n.dataset;if(e){const t=T.alert(e),r=document.querySelector(t);return r&&(r.innerHTML=""),t}},Wi=(n,e,t)=>{n.toggleAttribute("disabled"),e==null||e.classList.toggle("d-none"),t==null||t.classList.toggle("d-none")},Mn=n=>{const{qtyInput:e,incrementButton:t,decrementButton:r}=n,{mode:s}=e.dataset;if(s==="confirmation"){Ki(t,r),e.dataset.mode="spin";const o=e.getAttribute("value");o&&(e.value=o)}},Up=n=>{const{qtyInput:e,incrementButton:t,decrementButton:r}=n,{mode:s}=e.dataset;s!=="confirmation"&&(Ki(t,r),e.dataset.mode="confirmation")},Ki=(n,e)=>{n.querySelectorAll("i").forEach(s=>{s.classList.toggle("d-none")}),e.querySelectorAll("i").forEach(s=>{s.classList.toggle("d-none")})},Yi=(n,e)=>dr(void 0,null,function*(){const t=new FormData;return t.append("ajax","1"),t.append("action","update"),t.append("qty",String(Math.abs(e))),t.append("op",e>0?"up":"down"),yield fetch(n,{method:"POST",headers:{Accept:"application/json, text/javascript, */*; q=0.01"},body:t})});document.addEventListener("DOMContentLoaded",()=>{const{prestashop:n,Theme:{events:e}}=window;document.addEventListener("keydown",t=>{const r=t.target;r&&(t.key===Es||t.key===" "||t.code==="Space")&&r.closest(le.productQuantity)&&(ve.set("lastUpdateAction",_t.UPDATE_PRODUCT_QUANTITY),Fi.storeFocus())}),document.addEventListener("click",t=>{const r=t.target;if(!r)return;r.closest(`${le.productQuantity} button`)&&(t.key===Es||t.key===" "||t.code==="Space")&&(ve.set("lastUpdateAction",_t.UPDATE_PRODUCT_QUANTITY),Fi.storeFocus())}),n.on(e.updatedCart,()=>{bs(le.productQuantity)}),n.on(e.quickviewOpened,()=>{bs(T.modal)})});const hr=bs,zi=n=>{const e=n.target.closest("[data-search-url]"),t=e==null?void 0:e.dataset.searchUrl;if(!t)throw console.error("No data-search-url found for event:",n),new Error("Cannot parse search URL");return t};function jp(n){const{Theme:e}=window,{listing:t}=e.selectors,r=(s,o)=>{const i=document.querySelector(s);if(!i||!o)return;const a=document.createElement("template");a.innerHTML=o.trim();const c=a.content.firstElementChild;c&&i.replaceWith(c)};r(t.searchFilters,n.rendered_facets),r(t.activeSearchFilters,n.rendered_active_filters),r(t.listTop,n.rendered_products_top),r(t.list,n.rendered_products),r(t.listBottom,n.rendered_products_bottom),r(t.listHeader,n.rendered_products_header),r(t.listFooter,n.rendered_products_footer)}function Hp(n,e){var t;return((t=n.closest(e))==null?void 0:t.getAttribute("href"))||null}function Bp(){const{prestashop:n}=window,{Theme:e}=window,{events:t,selectors:r}=e,{listing:s}=r,o=i=>n.emit(t.updateFacets,i);document.body.addEventListener("change",i=>{i.target.closest(`${s.searchFilters} input[data-search-url]`)&&o(zi(i))}),document.body.addEventListener("click",i=>{var a;const c=i.target;if(c.closest(s.searchFiltersClearAll))o(zi(i));else if(c.closest(s.searchLink)){i.preventDefault();const l=Hp(c,"a");if(!l){console.error(`Cannot find href attribute for the element ${s.searchLink}`);return}o(l)}else if(c.closest(s.paginationLink)){i.preventDefault();const l=document.querySelector(s.listHeader);l&&l.scrollIntoView({block:"start",behavior:"auto"});const d=(a=i.target.closest("button"))==null?void 0:a.getAttribute("data-ps-data");if(!d){console.error(`Cannot find href attribute for the element ${s.paginationLink}`);return}o(d)}}),document.querySelector(s.list)&&window.addEventListener("popstate",i=>{const a=i.state;a!=null&&a.current_url&&a.current_url.trim()!==""&&a.current_url!=="#"&&(window.location.href=a.current_url)}),n.on(t.updateProductList,i=>{jp(i),hr()}),document.body.addEventListener("keydown",i=>{const a=i.target;if(a.closest(r.facetedsearch.colorLabel)&&i.key===" "){i.preventDefault();const c=a.closest(r.facetedsearch.colorLabel),l=document.getElementById(c.getAttribute("for"));l&&l.click()}})}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/const Wp=n=>n.split("&").map(e=>{const[t,r]=e.split("=");return{name:t,value:decodeURIComponent(r).replace(/\+/g," ")}});function Gi(n,e){const{prestashop:t,Theme:{events:r}}=window;let s=[];const i=e.target.dataset.sliderEncodedUrl.split("?");i!==void 0&&i.length>1&&(s=Wp(i[1]));let a=!1;s.forEach(l=>{l.name==="q"&&(a=!0)}),a||s.push({name:"q",value:""}),s.forEach(l=>{l.name==="q"&&(l.value+=[l.value.length>0?"/":"",e.target.dataset.sliderLabel,"-",e.target.dataset.sliderUnit,"-",n[0],"-",n[1]].join(""))});const c=[i[0],"?",$.param(s)].join("");t.emit(r.updateFacets,c)}const mr=()=>{const{Theme:n}=window;document.querySelectorAll(n.selectors.facetedsearch.filterSlider).forEach(e=>{const t=e.querySelector(n.selectors.facetedsearch.rangeContainer),r=t.dataset.sliderCurrency;let s="suffix",o=t.dataset.sliderUnit,i=2,a=".",c="";const l=JSON.parse(t.dataset.sliderSpecifications);l!==null&&(l.positivePattern!==void 0&&l.positivePattern.indexOf("\xA4")===0&&(s="prefix"),l.currencySymbol!==void 0&&(o=l.currencySymbol),l.numberSymbols!==void 0&&(a=l.numberSymbols[0],c=l.numberSymbols[1]),l.minFractionDigits!==void 0&&(i=l.minFractionDigits));const d=parseInt(t.dataset.sliderMin,10),v=parseInt(t.dataset.sliderMax,10),g=t.dataset.sliderDirection==="1"?"rtl":"ltr";let m;const k=Ec()({mark:a,thousand:c,decimals:i,[s]:s==="prefix"?o:` ${o}`}),E=JSON.parse(t.dataset.sliderValues);if(t.noUiSlider)t.noUiSlider.updateOptions({start:E!=null?E:[d,v],tooltips:[k,k],range:{min:d,max:v}},!0),t.noUiSlider.removeTooltips(),t.noUiSlider.on("set",(S,M,x,I,P,j)=>{Gi(S,j)}),t.noUiSlider.on("update",S=>{const M=S.map(P=>s==="suffix"?`${P}${o}`:`${o}${P}`),I=m.target.closest(n.selectors.facetedsearch.filterSlider).querySelector(n.selectors.facetedsearch.rangeValues);I.innerHTML=M.join(" - ")});else{const S=t.querySelector(".noUi-base");S&&S.remove(),m=vc.create(t,{start:E!=null?E:[d,v],tooltips:[k,k],direction:g,connect:[!1,!0,!1],range:{min:d,max:v}}),m.removeTooltips(),m.on("set",(M,x,I,P,j,U)=>{Gi(M,U)}),m.on("update",M=>{const x=M.map(j=>s==="suffix"?`${j}${o}`:`${o}${j}`),P=m.target.closest(n.selectors.facetedsearch.filterSlider).querySelector(n.selectors.facetedsearch.rangeValues);P.innerHTML=x.join(" - ")}),m.target.querySelectorAll(".noUi-handle").forEach(M=>{M.setAttribute("tabindex","0");const x=r?`Adjust filter range in ${r}`:`Adjust filter range' in ${o}`;M.setAttribute("aria-label",x)})}})},Qi=n=>{const{Theme:e}=window,t=document.querySelector(e.selectors.pageLoader);t&&t.classList.toggle("d-none",n)};document.addEventListener("DOMContentLoaded",()=>{const{prestashop:n,Theme:{events:e}}=window;Bp(),n.on(e.updateProductList,()=>{Qi(!0),mr()}),mr(),n.on(e.updateFacets,()=>{Qi(!1)})});var Kp=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const{prestashop:Et}=window;Et&&(Et.responsive=Et.responsive||{},Et.responsive.current_width=window.innerWidth,Et.responsive.min_width=768,Et.responsive.mobile=Et.responsive.current_width<Et.responsive.min_width);function Xi(){var n;const{prestashop:e,Theme:{events:t}}=window;if(e.responsive.mobile)Array.prototype.forEach.call(document.querySelectorAll("*[id^='_desktop_']"),r=>{const s=document.querySelector(`#${r.id}`),o=document.querySelector(`#${r.id.replace("_desktop_","_mobile_")}`);o&&s&&z(s,o)}),mr();else{Array.prototype.forEach.call(document.querySelectorAll("*[id^='_mobile_']"),s=>Kp(this,null,function*(){const o=document.querySelector(`#${s.id}`),i=document.querySelector(`#${s.id.replace("_mobile_","_desktop_")}`);i&&o&&z(o,i)}));const r=document.querySelector(he.offCanvasFaceted);r!=null&&((n=vt.getInstance(r))==null||n.hide()),mr()}e.emit(t.responsiveUpdate,{mobile:e.responsive.mobile})}function Ji(){const{prestashop:n}=window;n.responsive=n.responsive||{},n.responsive.current_width=window.innerWidth,n.responsive.min_width=768,n.responsive.mobile=n.responsive.current_width<n.responsive.min_width,window.addEventListener("resize",()=>{const e=n.responsive.current_width,t=n.responsive.min_width,r=window.innerWidth,s=e>=t&&r<t||e<t&&r>=t;n.responsive.current_width=r,n.responsive.mobile=n.responsive.current_width<n.responsive.min_width,s&&Xi()})}document.addEventListener("DOMContentLoaded",()=>{Et.responsive.mobile&&Xi()});function Zi(){const n=document.querySelector(p.modalContainer);if(!n)throw new Error(`Missing div with "${p.modalContainer}" in the DOM.`);return n}var Yp=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});function ea(){const{prestashop:n,Theme:{events:e}}=window;let t=null;function r(o){return Yp(this,null,function*(){const i=n.urls.pages.product,a=new URLSearchParams;Object.entries(o).forEach(([l,d])=>{d!=null&&a.append(l,String(d))});const c=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest",Accept:"application/json"},body:a,credentials:"same-origin"});if(!c.ok){const l=yield c.text().catch(()=>"");throw new Error(`Quickview fetch failed: ${c.status} ${l}`)}return c.json()})}function s(o){const i=Zi();if(i)i.innerHTML=o.quickview_html;else throw new Error("Modal container not found.");const a=`quickview-modal-${o.product.id}-${o.product.id_product_attribute}`,c=document.getElementById(a);if(!c)throw new Error(`Modal element #${a} not found.`);let l="unknown";const d=g=>{(g.key==="Escape"||g.key==="Esc")&&(l="keyboard");const m=document.activeElement;m&&m.closest('[data-bs-dismiss="modal"]')&&(g.key==="Enter"||g.key===" "||g.code==="Space")&&(l="keyboard")},v=()=>{l="pointer"};c.addEventListener("shown.bs.modal",()=>{var g;document.addEventListener("keydown",d,{capture:!0}),document.addEventListener("pointerdown",v,{capture:!0});const m=c.querySelector(p.quickviewModalStatus);m&&(m.textContent=(g=m.getAttribute("data-ps-data"))!=null?g:""),n.emit(e.quickviewOpened)}),c.addEventListener("hidden.bs.modal",()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),l==="keyboard"&&t&&document.contains(t)?t.focus():t||console.error("Last quickview opener not found."),c.remove()}),ye.getOrCreateInstance(c,{focus:!0,keyboard:!0}).show()}n.on(e.clickQuickview,o=>{const i={action:"quickview",id_product:o.dataset.idProduct,id_product_attribute:o.dataset.idProductAttribute};r(i).then(a=>s(a)).catch(a=>{n.emit(e.handleError,{eventType:"clickQuickView",resp:a})})}),document.addEventListener("click",o=>{const i=o.target;if(!i)return;const a=i.closest(p.quickview);if(a){const c=a.closest(p.product.miniature);c&&(t=a,a.focus(),n.emit(e.clickQuickview,c))}}),n.on(e.updateCart,()=>{document.querySelectorAll(p.quickviewModal).forEach(o=>{(ye.getInstance(o)||ye.getOrCreateInstance(o)).hide()})})}const gr=n=>n.innerText!==void 0,Pm={isHTMLElement:gr},zp=n=>{n.stopPropagation(),n.preventDefault();const e=n.target;Gp(e)},Gp=n=>{const{prestashop:e,Theme:{events:t}}=window,{dataset:r}=n,s=n.getAttribute("href");if(s===null)return;const o=new FormData;o.append("ajax","1"),o.append("action","update"),fetch(s,{method:"POST",body:o}).then(i=>{var a;if(e.emit(t.updateCart,{reason:r,resp:i}),n&&n.getAttribute("data-link-action")===p.cart.deleteLinkAction){ve.set("lastUpdateAction",_t.DELETE_FROM_CART);const c=document.querySelector(p.cart.alertPlaceholder),l=n.getAttribute("data-product-url"),d=n.getAttribute("data-product-name");if(c&&l&&d){const v=c.getAttribute("data-ps-data"),g=c.getAttribute("data-ps-data-close"),m=document.createElement("a");m.classList.add("alert-link"),m.setAttribute("href",l),m.textContent=d;const k=document.createElement("span");k.appendChild(m),k.append(` ${v}`);const E=document.createElement("div");E.appendChild(k);const S=cr(E.innerHTML,{type:"success",selector:p.cart.alertPlaceholder});S.element&&(S.element.setAttribute("data-ps-action","to-be-announced"),(a=S.element.querySelector(".btn-close"))==null||a.setAttribute("aria-label",`${g}`)),S.show()}}}).catch(i=>{const a=i;e.emit(t.handleError,{eventType:"updateProductInCart",errorData:a})})},ta=zp;var Qp=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const na=()=>{const n=Bt((...a)=>Qp(void 0,null,function*(){const c=a[0];c&&c.click()}),500),e=a=>{a.stopPropagation();const c=a.target;if(gr(c)&&c.matches(p.cart.voucherCode)){const l=c,d=document.querySelector(p.cart.voucherInput),v=document.querySelector(p.cart.voucherAccordion);if(v&&d){const g=new rn(v,{toggle:!1});d.value=l.innerText,g.show()}}},t=()=>{ve.set("lastUpdateAction",_t.SUBMIT_VOUCHER)},r=a=>{const c=a.target,l=c.closest(p.cart.productItem),d=l==null?void 0:l.querySelector(p.cart.productItemQuantityInput),v=l==null?void 0:l.querySelector(p.cart.removeFromCart);d&&c.classList.contains("js-decrement-button")&&d.value==="0"&&d.getAttribute("min")==="1"&&v&&n(v),c.dataset.linkAction===p.cart.deleteLinkAction&&ta(a)},s=a=>{const c=a.target.closest(`[data-link-action="${p.cart.removeVoucherLinkAction}"]`);if(c){ve.set("lastUpdateAction",_t.REMOVE_VOUCHER),a.preventDefault();const l=new Event("click",{bubbles:!0});Object.defineProperty(l,"target",{value:c}),ta(l)}},o=()=>{const a=document.querySelectorAll(p.cart.voucherCode),c=document.querySelector(p.cart.container),l=document.querySelector(p.cart.summaryContainer),d=document.querySelector(p.checkout.summaryContainer),v=document.querySelector(p.cart.voucherForm);a.forEach(g=>{g.addEventListener("click",e)}),v&&v.addEventListener("submit",t),c&&c.addEventListener("click",r),[l,d].forEach(g=>{g&&g.addEventListener("click",s)})},i=()=>{const a=document.querySelector(p.cart.summaryContainer),c=document.querySelector(p.checkout.summaryContainer),l=new MutationObserver(()=>{o()});[a,c].forEach(d=>{d&&l.observe(d,{childList:!0,subtree:!0})})};o(),i()},ra={enum:"enum",percent:"percent",hidden:"hidden"},km=null,{progressRing:Xp}=p,Jp="The circle is not linked to an SVG circle",sa=(n,e)=>{const t=document.querySelector(n);if(t){const r=t.querySelector("text"),s=t.querySelector(Xp.checkout.circle);if(s){const i=Number(s.getAttribute("r"))*2*Math.PI;return{setProgress:c=>{const l=Math.min(c,e.steps)/e.steps*100,d=i-l/100*i;if(s.style.strokeDashoffset=d.toString(),s.dataset.percent=String(l),r&&e.text!==ra.hidden){const v=e.text===void 0||e.text===ra.enum?`${Math.min(c,e.steps)} / ${e.steps}`:`${l}%`;r.innerHTML=v}},progressElement:t}}}return{error:new Error(Jp)}};var Zp=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const oa=()=>{const{prestashop:n}=window,{Theme:{selectors:e,events:t}}=window,{progressRing:r,checkout:s}=e,o=new ur,i=document.querySelectorAll(s.steps.item),a=document.querySelectorAll(s.actionsButtons),{setProgress:c}=sa(r.checkout.element,{steps:i.length}),l=document.querySelector(s.termsLink),d=document.querySelector(s.checkoutModal),v=(g,m)=>{const k=document.querySelector(s.steps.current),E=m==null?void 0:m.querySelector(s.steps.button);if(E==null||E.focus(),k==null||k.classList.remove("step--current","js-current-step"),m){const S=document.querySelector(s.steps.specificStep(m.dataset.step)),M=document.querySelector(s.steps.shownResponsiveStep);M==null||M.classList.add("d-none"),S==null||S.classList.remove("d-none")}g.classList.add("js-current-step","step--current")};a.forEach(g=>{const m=document.querySelector(s.steps.specificStepContent(g.dataset.step));g.addEventListener("click",k=>{k.preventDefault();const E=document.querySelector(s.steps.backButton(g.dataset.step));m&&E&&(E.click(),v(m))})}),i.forEach((g,m)=>{const k=document.querySelector(s.steps.specificStepContent(g.dataset.step)),E=g.querySelector("button");if(k){if(k.classList.contains("step--complete")&&g.classList.add("checkout-steps__step--success"),k.classList.contains("step--current")){g.classList.add("checkout-steps__step--current"),E==null||E.classList.add("active");const S=document.querySelector(s.steps.specificStep(g.dataset.step)),M=document.querySelector(s.steps.shownResponsiveStep);M==null||M.classList.add("d-none"),S==null||S.classList.remove("d-none"),c&&c(m+1)}else E==null||E.classList.remove("active");k.classList.contains("step--reachable")&&(E==null||E.addEventListener("click",()=>{c&&c(m+1),v(k,g)})),k.classList.contains("step--unreachable")&&(E==null||E.setAttribute("disabled","true"),E==null||E.addEventListener("click",()=>{v(k,g)}))}}),l==null||l.addEventListener("click",g=>{if(g.preventDefault(),o.storeFocus(),d){const m=new ye(d);let E=g.target.getAttribute("href");E&&(E+="?content_only=1",Zp(void 0,null,function*(){try{const M=yield(yield fetch(E)).text(),x=document.createElement("div");x.innerHTML=M;const I=d.querySelector(e.modalBody),P=x.querySelector(e.pageCms);P&&I&&(I.innerHTML=P.innerHTML,m.show())}catch(S){n.emit(t.handleError,{eventType:"clickOnTermsLink",error:S})}}))}}),d==null||d.addEventListener("hidden.bs.modal",()=>{o.restoreFocus()}),n.on(t.updatedDeliveryForm,g=>{var m;const k=(m=g.deliveryOption)==null?void 0:m[0];if(!k)return;const E=k.querySelector(s.carrierExtraContentWrapper);if(!(E instanceof HTMLElement))return;document.querySelectorAll(s.carrierExtraContentWrapper).forEach(M=>{M.removeAttribute("data-active")}),E.setAttribute("data-active","")})},eh=()=>{const{returnFormSelectAll:n,returnFormProductCheckbox:e}=p.order,t=document.querySelector(n),r=document.querySelectorAll(e);t==null||t.addEventListener("click",()=>{const{checked:s}=t;r.forEach(o=>{o.disabled||(o.checked=s)})})};var th=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const ia=()=>{const{prestashop:n,Theme:{events:e}}=window,t=()=>{var i;(i=document.querySelectorAll(p.product.carousel))==null||i.forEach(a=>{a.addEventListener("slide.bs.carousel",r)})};function r(i){var a;const l=i.target.closest(p.product.images);l&&(l.querySelectorAll(p.product.thumbnail).forEach(d=>d.classList.remove("active")),(a=l.querySelector(p.product.activeThumbail(i.to)))==null||a.classList.add("active"))}t(),n.on(e.updatedProduct,t),n.on(e.quickviewOpened,t);function s(){const i=document.querySelector(p.qtyInput.quantityWanted),a=document.querySelector(p.qtyInput.increment),c=document.querySelector(p.qtyInput.decrement);if(i&&a&&c){const l=()=>th(this,null,function*(){const v=parseInt(i.value,10),g=o(i);v>=g?i.value=v.toString():i.value=g.toString(),n.emit("updateProduct",{eventType:"updatedProductQuantity"})}),d=Bt(l,500);i.addEventListener("input",()=>{d()}),i.addEventListener("blur",()=>{l()}),i.addEventListener("change",l),a.addEventListener("click",l),c.addEventListener("click",l)}}const o=i=>Number(i.getAttribute("min"))||1;s()},aa=()=>{const{Theme:n}=window,{mobileMenu:e}=n.selectors,t=document.querySelectorAll(e.openChildsButton),r=document.querySelector(e.backTitle),s=document.querySelector(e.backButton),o=document.querySelector(e.menuCanvas),i=r==null?void 0:r.innerHTML,a=()=>{var c;if(r&&s&&i){const l=document.querySelector(e.menuCurrent),d=Number(l==null?void 0:l.dataset.depth),v=d===2?0:d-1,g=document.querySelector(e.specificParent(v));d===2&&s.classList.add("d-none"),l&&l.classList.remove("js-menu-current","menu--current"),g&&(d>3?r.innerHTML=(c=g.dataset.backTitle)!=null?c:"":r.innerHTML=i,g.classList.add("js-menu-current","menu--fromLeft","menu--current"),g.classList.remove("menu--parent"))}};o==null||o.addEventListener("hidden.bs.offcanvas",()=>{const c=document.querySelector(e.menuCurrent);if(gr(c)){let l=Number(c.dataset.depth);if(l!==0)for(;l>=2;)a(),l-=1}}),t.forEach(c=>{c.addEventListener("click",()=>{const l=document.querySelector(e.menuCurrent);if(l){const d=Number(l.dataset.depth),v=c;l&&(l.classList.remove("js-menu-current","menu--current","menu--fromLeft","menu--fromRight"),l.classList.add("menu--parent"));const g=document.querySelector(e.specificChild(v.dataset.target));s==null||s.classList.remove("d-none"),d>=1&&r&&(g!=null&&g.dataset.backTitle)&&(r.innerHTML=g.dataset.backTitle),gr(g)&&(g.classList.add("js-menu-current","menu--fromRight","menu--current"),g.classList.remove("js-menu-child","menu--child"))}})}),s==null||s.addEventListener("click",()=>{a()})};var nh=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const rh=(n,e,t=10)=>nh(void 0,null,function*(){const r=new FormData;return r.append("s",e),r.append("resultsPerPage",t.toString()),(yield(yield fetch(n,{method:"POST",body:r,headers:{Accept:"application/json, text/javascript, */*; q=0.01"}})).json()).products});var sh=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const ys=()=>{const{Theme:n}=window,{searchBar:e}=n.selectors,t=document.querySelector(e.searchCanvas),r=document.querySelector(e.searchWidget),s=document.querySelector(e.searchDropdown),o=document.querySelector(e.searchResults),i=document.querySelector(e.searchTemplate),a=document.querySelector(e.searchInput),c=document.querySelector(e.searchIcon),l=document.querySelector(e.searchClear),d=r==null?void 0:r.dataset.searchControllerUrl;r==null||r.addEventListener("click",()=>{a==null||a.focus()}),c==null||c.addEventListener("click",()=>{var g;a!=null&&a.value&&((g=a==null?void 0:a.form)==null||g.submit())});const v=()=>{a!=null&&a.value&&(a.value="",a.dispatchEvent(new KeyboardEvent("keydown"))),l==null||l.classList.add("d-none"),l==null||l.setAttribute("tabindex","-1"),a==null||a.focus()};if(l==null||l.addEventListener("click",v),l==null||l.addEventListener("keydown",g=>{(g.key==="Enter"||g.key===" "||g.code==="Space")&&(g.preventDefault(),v()),g.key==="Tab"&&g.shiftKey&&(g.preventDefault(),a==null||a.focus())}),a==null||a.addEventListener("focus",()=>{a!=null&&a.value&&(l==null||l.classList.remove("d-none"),l==null||l.setAttribute("tabindex","0"))}),a==null||a.addEventListener("input",()=>{a.value.trim()===""?(l==null||l.classList.add("d-none"),l==null||l.setAttribute("tabindex","-1"),s&&o&&(s.classList.add("d-none"),a.setAttribute("aria-expanded","false"),o.innerHTML="")):(l==null||l.classList.remove("d-none"),l==null||l.setAttribute("tabindex","0"))}),t==null||t.addEventListener("hidden.bs.offcanvas",()=>{s&&o&&a&&(o.innerHTML="",s.classList.add("d-none"),a.setAttribute("aria-expanded","false"))}),r&&a&&o&&s){const g=I=>{o.innerHTML="",I.forEach(P=>{const j=i==null?void 0:i.content.cloneNode(!0);if(j){const U=j.querySelector("a"),X=j.querySelector("p"),Q=j.querySelector("img");U&&X&&Q&&(U.href=P.canonical_url,U.id=`result_product_option_${P.id_product.toString()}`,U.setAttribute("aria-label",P.name),X.innerHTML=P.name,P.cover?(Q.src=P.cover.small.url,Q.alt=P.cover.legend):Q.innerHTML="",o.append(j))}})};let m=-1;const k=I=>{const P=o.querySelectorAll(e.searchResultLink);switch(I.key){case"ArrowDown":I.preventDefault(),m=Math.min(m+1,P.length-1),E(P,m);break;case"ArrowUp":I.preventDefault(),m>0?(m=Math.max(m-1,0),E(P,m)):(m=-1,a.focus());break;case"Enter":m>=0&&P[m]&&(I.preventDefault(),P[m].click());break;case"Escape":I.preventDefault(),s.classList.add("d-none"),a.setAttribute("aria-expanded","false"),a.focus(),m=-1;break;default:break}},E=(I,P)=>{I.forEach((j,U)=>{U===P?(j.focus(),j.setAttribute("aria-selected","true"),a.setAttribute("aria-activedescendant",I[P].id)):j.setAttribute("aria-selected","false")})};let S=!1,M=null;a.addEventListener("focus",()=>{a.removeAttribute("aria-activedescendant"),m=-1,S=!0,M&&(clearTimeout(M),M=null),a.value&&o&&o.children.length>0&&(s==null||s.classList.remove("d-none"),a.setAttribute("aria-expanded","true"))});const x=()=>{S=!1,M=window.setTimeout(()=>{!S&&s&&a&&(s.classList.add("d-none"),a.setAttribute("aria-expanded","false"),m=-1)},100)};a.addEventListener("blur",x),l==null||l.addEventListener("focus",()=>{S=!0,M&&(clearTimeout(M),M=null),a!=null&&a.value&&o&&o.children.length>0&&(s.classList.remove("d-none"),a.setAttribute("aria-expanded","true"))}),l==null||l.addEventListener("blur",x),a.addEventListener("keydown",I=>{if(I.key==="Tab"&&!I.shiftKey&&!(l!=null&&l.classList.contains("d-none"))&&!(s!=null&&s.classList.contains("d-none"))){I.preventDefault(),l==null||l.focus();return}if(["ArrowDown","ArrowUp","Enter","Escape"].includes(I.key)){k(I);return}["Tab","Shift","Control","Alt","Meta"].includes(I.key)||I.ctrlKey||I.altKey||I.metaKey||Bt(()=>sh(void 0,null,function*(){if(!d)return;const P=yield rh(d,a.value,10);P.length>0?(g(P),l==null||l.classList.remove("d-none"),l==null||l.setAttribute("tabindex","0"),s==null||s.classList.remove("d-none"),m=-1,a.setAttribute("aria-expanded","true"),o.querySelectorAll(e.searchResultLink).forEach(U=>{U.setAttribute("role","option"),U.setAttribute("aria-selected","false"),U.setAttribute("tabindex","-1"),U.addEventListener("keydown",k),U.addEventListener("focus",()=>{S=!0,M&&(clearTimeout(M),M=null)}),U.addEventListener("blur",x)}),window.addEventListener("click",U=>{const X=U.target;!r.contains(X)&&!s.contains(X)&&(s.classList.add("d-none"),a.setAttribute("aria-expanded","false"),m=-1,S=!1)})):(o.innerHTML="",s.classList.add("d-none"),a.setAttribute("aria-expanded","false"),m=-1)}),250)()})}},vr=(n,e)=>{if(!("psData"in n.dataset))return null;const t=n.dataset.psData;if(t===void 0)return console.warn("Attribute data-ps-data is not defined."),null;try{const r=JSON.parse(t);return e(r)?r:(console.warn("Attribute data-ps-data has validation error."),null)}catch(r){return console.error("Attribute data-ps-data is not a valid JSON format.",r),null}};var oh=Object.defineProperty,ih=Object.defineProperties,ah=Object.getOwnPropertyDescriptors,_r=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,la=Object.prototype.propertyIsEnumerable,ua=(n,e,t)=>e in n?oh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ch=(n,e)=>{for(var t in e||(e={}))ca.call(e,t)&&ua(n,t,e[t]);if(_r)for(var t of _r(e))la.call(e,t)&&ua(n,t,e[t]);return n},lh=(n,e)=>ih(n,ah(e)),uh=(n,e)=>{var t={};for(var r in n)ca.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&_r)for(var r of _r(n))e.indexOf(r)<0&&la.call(n,r)&&(t[r]=n[r]);return t},da=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const dh=n=>typeof n=="object"&&n!==null&&typeof n.id_product=="string"&&typeof n.id_product_attribute=="string",fh=n=>typeof n=="object"&&n!==null&&typeof n.id_product=="string"&&typeof n.id_product_attribute=="string"&&typeof n.url=="string",ph=(n,e)=>da(void 0,null,function*(){var t,r;const{url:s}=n.dataset;if(!s)return;const o=n.querySelector(G.emailInput),i=n.querySelector(G.alertsContainer),a=new URLSearchParams(lh(ch({},e),{customer_email:(t=o==null?void 0:o.value)!=null?t:""}));try{const l=yield(yield fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a.toString()})).json();i&&(i.innerHTML="",i.classList.remove("d-none"),cr(l.message,{type:l.error?"danger":"success",selector:G.alertsContainer}).show()),l.error||(r=n.querySelector(G.content))==null||r.classList.add("d-none")}catch(c){console.error("[EmailAlerts] Subscribe error:",c)}}),hh=(n,e)=>da(void 0,null,function*(){var t,r;const s=n.closest(G.product);if(!s)return;const o=e,{url:i}=o,a=uh(o,["url"]),c=new URLSearchParams(a);try{(yield(yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c.toString()})).text())==="0"&&(s.remove(),document.querySelectorAll(G.product).length===0&&((t=document.querySelector(G.productList))==null||t.classList.add("d-none"),(r=document.querySelector(G.noAlerts))==null||r.classList.remove("d-none")))}catch(l){console.error("[EmailAlerts] Unsubscribe error:",l)}}),mh=n=>{const e=n.target,t=e.closest(G.submitButton);if(t){n.preventDefault();const s=t.closest(G.wrapper),o=vr(t,dh);o&&s&&ph(s,o);return}const r=e.closest(G.deleteButton);if(r){n.preventDefault();const s=vr(r,fh);s&&hh(r,s)}},gh=()=>{document.addEventListener("click",mh)};var vh=Object.defineProperty,Er=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,pa=Object.prototype.propertyIsEnumerable,ha=(n,e,t)=>e in n?vh(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,_h=(n,e)=>{for(var t in e||(e={}))fa.call(e,t)&&ha(n,t,e[t]);if(Er)for(var t of Er(e))pa.call(e,t)&&ha(n,t,e[t]);return n},Eh=(n,e)=>{var t={};for(var r in n)fa.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Er)for(var r of Er(n))e.indexOf(r)<0&&pa.call(n,r)&&(t[r]=n[r]);return t},bh=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const yh=n=>typeof n=="object"&&n!==null&&typeof n.id_module=="string"&&typeof n.front_controller=="string"&&typeof n.id_customer=="string"&&typeof n.customer_token=="string"&&typeof n.id_guest=="string"&&typeof n.guest_token=="string",wh=n=>{const e=vr(n,yh);return e?(e.front_controller&&(e.front_controller=e.front_controller.replace(/&amp;/g,"&")),e):null},ma=n=>{var e,t;const r=n.closest(ne.consentWrapper);if(r)return(e=r.querySelector(ne.submitButton))!=null?e:r.querySelector('[type="submit"]');const s=n.closest("form");return(t=s==null?void 0:s.querySelector('[type="submit"]'))!=null?t:null},ga=(n,e)=>{e.disabled=!n.checked},Sh=n=>bh(void 0,null,function*(){const e=n,{front_controller:t}=e,r=Eh(e,["front_controller"]),s=new URLSearchParams(_h({ajax:"true",action:"AddLog"},r));try{yield fetch(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.toString()})}catch(o){console.error("[GDPR] Log consent error:",o)}}),ws=()=>{document.querySelectorAll(ne.consent).forEach(n=>{const e=n.querySelector(ne.checkbox),t=ma(n);e&&t&&ga(e,t)})},Ah=n=>{const e=n.target;if(!e.matches(ne.checkbox))return;const t=e.closest(ne.consent);if(!t)return;const r=ma(t);r&&ga(e,r)},va=n=>{const e=n.querySelector(ne.checkbox),t=wh(n);t&&(e!=null&&e.checked)&&Sh(t)},Th=n=>{const t=n.target.closest(ne.submitButton);if(!t)return;const r=t.closest(ne.consentWrapper),s=r==null?void 0:r.querySelector(ne.consent);s&&va(s)},Ch=n=>{const e=n.target;if(!e.matches("form"))return;const t=e.querySelector(ne.consent);t&&va(t)},Lh=()=>{ws(),document.addEventListener("change",Ah),document.addEventListener("click",Th),document.addEventListener("submit",Ch);const{prestashop:n}=window;n&&(n.on("updatedProduct",ws),n.on("updatedCart",ws))},Ss=()=>{const{Theme:n}=window,{languageSelector:e}=n.selectors,t=document.querySelector(e.languageSelector);t==null||t.addEventListener("change",r=>{const s=r.target;window.location.href=s.value})},As=()=>{const{Theme:n}=window,{currencySelector:e}=n.selectors,t=document.querySelector(e.currencySelector);t==null||t.addEventListener("change",r=>{const s=r.target;window.location.href=s.value})},_a=()=>{const{Theme:n}=window,{guestPasswordToggle:e}=n.selectors,t=document.querySelector(e.checkbox),r=document.querySelector(e.passwordWrapper);t&&r&&t.addEventListener("change",()=>{const s=r.querySelector('input[type="password"]');if(t.checked)r.classList.remove("d-none");else if(r.classList.add("d-none"),s){const o=document.querySelector(n.selectors.passwordPolicy.container);s.value="",s.classList.remove("border-success","border-danger","border"),o&&o.classList.add("d-none")}})},Ea=()=>{const{Theme:n}=window,{visiblePassword:e}=n.selectors;document.querySelectorAll(e.visiblePassword).forEach(r=>{const s=r==null?void 0:r.previousElementSibling;r==null||r.addEventListener("click",()=>{const o=s.getAttribute("type")==="text"?"password":"text";s.setAttribute("type",o);const i=r.firstElementChild;if(i){i.innerHTML=o==="text"?"visibility_off":"visibility";const{textHide:a,textShow:c}=r.dataset;c&&a&&r.setAttribute("aria-label",o==="text"?a:c)}})})},Mh=()=>{const{Theme:{events:n}}=window,{prestashop:e}=window;e.on(n.handleError,({resp:t})=>{t.errors&&Array.isArray(t.errors)&&t.errors.forEach(r=>{lr(r,{type:"danger"}).show()})})};var ba=re(604),Ts=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/const{passwordPolicy:ae}=p,Oh=n=>{try{return JSON.parse(n)}catch(e){return{}}},Ph=(n,e,t)=>{const r=n.querySelector(ae.requirementLengthIcon),s=n.querySelector(ae.requirementScoreIcon),o=!e.validity.tooShort&&!e.validity.tooLong;r&&(r.classList.toggle("text-success",o),r.classList.toggle("text-danger",!o)),s&&(s.classList.toggle("text-success",t),s.classList.toggle("text-danger",!t))},kh=(n,e)=>{const t=Nh(e),r=n.querySelector(ae.progressBar);r&&(r.style.width=`${t.percentage}%`,r.classList.remove("bg-success","bg-danger"),r.classList.add(t.color))},Dh=(n,e,t,r,s)=>{var o,i;let a="";if(r){if(!s){const c=n.querySelector(ae.invalidMessage);a=`${(i=c==null?void 0:c.dataset)==null?void 0:i.psData}
`||`Your password is too weak
`}}else{const c=n.querySelector(ae.lengthMessage);a=`${(o=c==null?void 0:c.dataset)==null?void 0:o.psData}
`||`Your password length is invalid
`}return e.feedback.warning&&e.feedback.warning in t&&(a+=`
${t[e.feedback.warning]}
`),e.feedback.suggestions&&e.feedback.suggestions.forEach(c=>{c&&c in t&&(a+=a?`
${t[c]}`:t[c])}),a},Nh=n=>{const e={0:{color:"bg-danger",percentage:20},1:{color:"bg-danger",percentage:40},2:{color:"bg-danger",percentage:60},3:{color:"bg-success",percentage:80},4:{color:"bg-success",percentage:100}},r=Object.keys(e).map(Number).includes(n)?n:0;return e[r]},Cs=(n,e,t)=>Ts(void 0,null,function*(){const r=n.value;if(r===""){e.classList.add("d-none");return}try{const{prestashop:s}=window,o=yield s.checkPasswordScore(r),i=parseInt(n.dataset.minscore||"3",10);e.classList.remove("d-none");const a=!n.validity.tooShort&&!n.validity.tooLong,c=i<=o.score;Ph(e,n,c),kh(e,o.score);const l=e.querySelector(ae.announceValidity),d=e.querySelector(ae.validMessage);if(c&&a){if(n.setCustomValidity(""),n.reportValidity(),l&&d){const v=d.dataset.psData;v&&v!==""&&(l.textContent=v)}}else{const v=Dh(e,o,t,a,c);n.setCustomValidity(v),l&&(l.textContent=v)}}catch(s){console.error("Password validation error:",s)}}),Rh=Bt((...n)=>Ts(void 0,null,function*(){const e=n[0];e&&e.setAttribute("aria-live","polite")}),250),Ih=(n,e,t)=>{const r=n.querySelector(ae.requirementLength),s=n.querySelector(ae.requirementScore),o=n.querySelector(ae.requirementLengthMessage),i=n.querySelector(ae.requirementScoreMessage);if(o&&(r!=null&&r.dataset.translation)){const a=e.getAttribute("minlength")||"8",c=e.getAttribute("maxlength")||"72";o.innerText=(0,ba.sprintf)(r.dataset.translation,a,c)}if(i&&(s!=null&&s.dataset.translation)){const a=e.dataset.minscore||"3",c=t[a]||"Strong";i.innerText=(0,ba.sprintf)(s.dataset.translation,c)}},ln=(n,e,t=null)=>{var r;const s=(r=t==null?void 0:t.querySelector(n))!=null?r:document.querySelector(n);if(!s)throw new Error(e);return s},xh=(n,e,t)=>{const r=()=>Cs(n,e,t);n.addEventListener("input",r);const s=n.closest("form");let o=null;s&&(o=()=>Ts(void 0,null,function*(){yield Cs(n,e,t)}),s.addEventListener("submit",o));const i=e.querySelector(ae.announceValidity);return i&&Rh(i),{inputHandler:r,formSubmitHandler:o,form:s}},$h=()=>{let n;try{n=ln(ae.field,`The element "${ae.field}" for password policy is not found.`)}catch(v){return}const e=ln(ae.input,`The input element "${ae.input}" for password policy is not found.`,n),t=ln(ae.feedbackTarget,`The target element "${ae.feedbackTarget}" for password policy is not found.`,n),r=ln(ae.template,`The feedback template "${ae.template}" for password policy is not found.`);t.innerHTML=r.innerHTML;const s=ln(ae.feedbackContainer,`The feedback container element "${ae.feedbackContainer}" for password policy is not found.`,t),o=ln(ae.hint,`The hint element "${ae.hint}" for password policy is not found.`,n),i=Oh(o.innerHTML);Ih(s,e,i);const{inputHandler:a,formSubmitHandler:c,form:l}=xh(e,s,i);return e.value!==""&&Cs(e,s,i),{element:n,cleanup:()=>{e.removeEventListener("input",a),l&&c&&l.removeEventListener("submit",c)}}};function ya(){const{prestashop:n}=window;let e=null,t=null,r=null;function s(o){const i=Zi();i.innerHTML=o;const a=i.querySelector(p.blockcartModal);if(!a)throw new Error("Blockcart modal element not found in provided HTML.");let c="unknown";const l=v=>{(v.key==="Escape"||v.key==="Esc")&&(c="keyboard");const g=document.activeElement;g&&g.closest('[data-bs-dismiss="modal"]')&&(v.key==="Enter"||v.key===" "||v.code==="Space")&&(c="keyboard")},d=()=>{c="pointer"};a.addEventListener("shown.bs.modal",()=>{var v;document.addEventListener("keydown",l,{capture:!0}),document.addEventListener("pointerdown",d,{capture:!0});const g=a.querySelector(p.blockcartModalStatus);g&&(g.textContent=(v=g.getAttribute("data-ps-data"))!=null?v:"")}),a.addEventListener("hidden.bs.modal",v=>{const g=v.currentTarget;g&&n.emit(kn.updateProduct,{reason:g.dataset,event:v}),document.removeEventListener("keydown",l,{capture:!0}),document.removeEventListener("pointerdown",d,{capture:!0}),c==="keyboard"&&e&&document.contains(e)?(e.focus(),t=null):e||console.error("Last blockcart opener not found."),a.remove()}),ye.getOrCreateInstance(a,{focus:!0,keyboard:!0}).show()}n.on(kn.clickQuickview,o=>{r=o}),document.addEventListener("click",o=>{var i,a,c,l;const d=o.target;if(!d)return;const{quickview:v,quickviewButton:g,addToCartButton:m,product:{miniature:k,container:E}}=p,S=d.closest(g)!==null,M=d.closest(m)!==null;if(S)t=d.closest(k),e=(i=t==null?void 0:t.querySelector(v))!=null?i:null;else if(M){const x=d.closest(k),I=d.closest(E);if(x)t=x,e=(a=t==null?void 0:t.querySelector(m))!=null?a:null;else if(I){const P=I;e=(c=P==null?void 0:P.querySelector(m))!=null?c:null}else t=r,e=(l=t==null?void 0:t.querySelector(v))!=null?l:null}}),n.blockcart=n.blockcart||{},n.blockcart.showModal=function(i){s(i)}}const Ls={HAS_CHILD:"data-ps-has-child",OPEN_TAB:"data-open-tab",DEPTH:"data-depth",SELECTED:'aria-selected="true"'};class qh{constructor(){this.state={isSubMenuOpen:!1,currentSubMenu:null,currentDropdownButton:null}}get isSubMenuOpen(){return this.state.isSubMenuOpen}get currentSubMenu(){return this.state.currentSubMenu}get currentDropdownButton(){return this.state.currentDropdownButton}setSubMenuOpen(e){this.state.isSubMenuOpen=e}setCurrentSubMenu(e){this.state.currentSubMenu=e}setCurrentDropdownButton(e){this.state.currentDropdownButton=e}reset(){this.state={isSubMenuOpen:!1,currentSubMenu:null,currentDropdownButton:null}}}class bt{static getMainMenuItems(){return document.querySelectorAll(`${w.container} ${w.menuLink}`)}static getDropdownButtons(){return document.querySelectorAll(`${w.container} ${w.dropdownToggle}`)}static getAllSubMenus(){return document.querySelectorAll(`${w.subMenu}`)}static getSubMenuLeftItems(){return document.querySelectorAll(`${w.subMenuLeft} > ${w.subMenuLeftItem}`)}static getSubMenuRightTabs(){return document.querySelectorAll(`${w.subMenuRight} ${w.subMenuRightItems}`)}static getActiveSubMenuLeftItem(e){return e.querySelector(`${w.subMenuLeftItem}[${Ls.SELECTED}]`)}static createMainMenuElementsArray(e){const t=[];return e.forEach(r=>{t.push(r);const s=r.closest(w.menuItem),o=s==null?void 0:s.querySelector(w.dropdownToggle);o&&t.push(o)}),t}}class et{static setSubMenuVisibility(e,t){e.style.display=t?"block":"none"}static setDropdownButtonState(e,t){e.setAttribute("aria-expanded",t.toString())}static setTabSelection(e,t){e.setAttribute("aria-selected",t.toString()),e.setAttribute("tabindex",t?"0":"-1"),e.classList.toggle("active",t)}static setTabPanelVisibility(e,t){e.classList.toggle("active",t),e.classList.toggle("not-active",!t)}static resetAllSubMenuStates(){const e=bt.getAllSubMenus(),t=bt.getDropdownButtons();e.forEach(r=>{this.setSubMenuVisibility(r,!1)}),t.forEach(r=>{this.setDropdownButtonState(r,!1)})}}class un{static navigateMainMenu(e,t,r){const s=r.indexOf(e);if(s<0)return;const o=this.calculateTargetIndex(s,t,r.length),i=r[o];i&&i.focus()}static getNextSubMenuTab(e,t,r){const s=r.querySelectorAll(w.subMenuLeftItem),o=Array.from(s).indexOf(e);if(o<0)return null;const i=this.calculateTargetIndex(o,t,s.length);return s[i]}static calculateTargetIndex(e,t,r){return t==="next"?(e+1)%r:e===0?r-1:e-1}}class Vh{constructor(e){this.stateManager=e}showSubMenu(e,t){this.closeAllSubMenus(),this.positionSubMenu(e,t),this.updateSubMenuState(e,t,!0),this.initializeSubMenuTabs(t)}hideSubMenu(e,t){et.setSubMenuVisibility(t,!1),et.setDropdownButtonState(e,!1),this.stateManager.setSubMenuOpen(!1),this.stateManager.setCurrentSubMenu(null),this.stateManager.setCurrentDropdownButton(null)}closeAllSubMenus(){et.resetAllSubMenuStates(),this.stateManager.reset()}switchSubMenuTab(e,t){const r=t.querySelectorAll(w.subMenuLeftItem),s=t.querySelectorAll(`${w.subMenuRight} ${w.subMenuRightItems}`);r.forEach(o=>{et.setTabSelection(o,!1)}),e.hasAttribute(Ls.HAS_CHILD)&&et.setTabSelection(e,!0),s.forEach(o=>{et.setTabPanelVisibility(o,!1)}),this.showCorrespondingRightTab(e,t)}positionSubMenu(e,t){const r=e.closest(w.menuItem);if(!r)return;const s=r.offsetHeight+r.offsetTop;t.style.top=`${s}px`}updateSubMenuState(e,t,r){et.setSubMenuVisibility(t,r),et.setDropdownButtonState(e,r),this.stateManager.setSubMenuOpen(r),this.stateManager.setCurrentSubMenu(t),this.stateManager.setCurrentDropdownButton(e)}initializeSubMenuTabs(e){const t=e.querySelectorAll(`${w.subMenuRight} ${w.subMenuRightItems}`),r=e.querySelectorAll(w.subMenuLeftItem);t.forEach(s=>{et.setTabPanelVisibility(s,!1)}),r.forEach((s,o)=>{et.setTabSelection(s,o===0),o===0&&this.showCorrespondingRightTab(s,e)})}showCorrespondingRightTab(e,t){const r=e.getAttribute(Ls.OPEN_TAB);if(!r)return;const s=t.querySelector(`#${r}`);s&&et.setTabPanelVisibility(s,!0)}}class Fh{constructor(e,t,r){this.stateManager=e,this.subMenuManager=t,this.allMainMenuElements=r,this.handleMainMenuLinkKeydown=s=>{const o=s.target;switch(s.key){case"ArrowRight":case"ArrowDown":s.preventDefault(),un.navigateMainMenu(o,"next",this.allMainMenuElements);break;case"ArrowLeft":case"ArrowUp":s.preventDefault(),un.navigateMainMenu(o,"prev",this.allMainMenuElements);break;default:}},this.handleDropdownButtonKeydown=(s,o)=>i=>{switch(i.key){case"Enter":case" ":i.preventDefault(),this.toggleSubMenu(s,o);break;case"Escape":i.preventDefault(),this.subMenuManager.hideSubMenu(s,o),s.focus();break;case"ArrowRight":i.preventDefault(),un.navigateMainMenu(s,"next",this.allMainMenuElements);break;case"ArrowDown":if(i.preventDefault(),this.stateManager.isSubMenuOpen&&this.stateManager.currentSubMenu===o){const a=o.querySelector(w.subMenuLeftItem);a&&a.focus()}else un.navigateMainMenu(s,"next",this.allMainMenuElements);break;case"ArrowLeft":case"ArrowUp":i.preventDefault(),un.navigateMainMenu(s,"prev",this.allMainMenuElements);break;default:}},this.handleSubMenuTabKeydown=s=>o=>{const i=s.closest(w.subMenu);if(i)switch(o.key){case"ArrowDown":o.preventDefault(),this.navigateToSubMenuTab(s,"next",i);break;case"ArrowUp":o.preventDefault(),this.navigateToSubMenuTab(s,"prev",i);break;case" ":o.preventDefault(),this.subMenuManager.switchSubMenuTab(s,i);break;case"Escape":o.preventDefault(),this.handleSubMenuEscape(i);break;default:}},this.handleClickOutside=s=>{s.target.closest(w.container)||this.subMenuManager.closeAllSubMenus()},this.handleFocusOut=s=>{const o=s.target,i=s.relatedTarget;o&&o.closest(w.container)&&(!i||!i.closest(w.container))&&this.subMenuManager.closeAllSubMenus()},this.handleRightSubMenuKeydown=s=>{const i=s.target.closest(w.subMenu);if(i)switch(s.key){case"Escape":s.preventDefault(),this.handleSubMenuEscape(i);break;case"ArrowLeft":{s.preventDefault();const a=bt.getActiveSubMenuLeftItem(i);a&&a.focus();break}default:}}}toggleSubMenu(e,t){this.stateManager.isSubMenuOpen&&this.stateManager.currentSubMenu===t?this.subMenuManager.hideSubMenu(e,t):this.subMenuManager.showSubMenu(e,t)}navigateToSubMenuTab(e,t,r){const s=un.getNextSubMenuTab(e,t,r);s&&(s.focus(),this.subMenuManager.switchSubMenuTab(s,r))}handleSubMenuEscape(e){var t;const r=(t=e.closest(w.menuItem))==null?void 0:t.querySelector(w.dropdownToggle);r&&(r.focus(),this.subMenuManager.closeAllSubMenus())}}class Uh{constructor(e,t){this.subMenuManager=e,this.eventHandlers=t}setupDropdownButton(e){const t=e.closest(w.menuItem),r=t==null?void 0:t.querySelector(w.subMenu);r&&(t==null||t.addEventListener("mouseenter",()=>this.subMenuManager.showSubMenu(e,r)),t==null||t.addEventListener("mouseleave",()=>this.subMenuManager.hideSubMenu(e,r)),e.addEventListener("keydown",this.eventHandlers.handleDropdownButtonKeydown(e,r)))}setupMainMenuLink(e){e.addEventListener("keydown",this.eventHandlers.handleMainMenuLinkKeydown)}setupSubMenuNavigation(){const e=bt.getSubMenuLeftItems(),t=bt.getSubMenuRightTabs();e.forEach(r=>{r.addEventListener("mouseenter",()=>{const s=r.closest(w.subMenu);s&&this.subMenuManager.switchSubMenuTab(r,s)}),r.addEventListener("keydown",this.eventHandlers.handleSubMenuTabKeydown(r)),r.addEventListener("focus",()=>{const s=r.closest(w.subMenu);s&&this.subMenuManager.switchSubMenuTab(r,s)})}),t.forEach(r=>{r.addEventListener("keydown",this.eventHandlers.handleRightSubMenuKeydown)})}setupGlobalEventListeners(){document.addEventListener("click",this.eventHandlers.handleClickOutside),document.addEventListener("focusout",this.eventHandlers.handleFocusOut)}}const Ms=()=>{const n=new qh,e={mainMenuItems:bt.getMainMenuItems(),dropdownButtons:bt.getDropdownButtons(),allMainMenuElements:bt.createMainMenuElementsArray(bt.getMainMenuItems())},t=new Vh(n),r=new Fh(n,t,e.allMainMenuElements),s=new Uh(t,r);e.dropdownButtons.forEach(o=>s.setupDropdownButton(o)),e.mainMenuItems.forEach(o=>s.setupMainMenuLink(o)),s.setupSubMenuNavigation(),s.setupGlobalEventListeners()},jh=n=>{const{Theme:e}=window,{formValidation:t}=e.selectors;document.querySelectorAll(n!=null?n:t.default).forEach(s=>{const o=s.querySelector(t.submitButton);o&&o.addEventListener("click",i=>{s.classList.add("was-validated"),s.checkValidity()||(i.preventDefault(),s.reportValidity())})})},Hh=()=>{const n=document.querySelector(".ps-categorytree");n&&n.querySelectorAll(".accordion-button").forEach(t=>{t.addEventListener("click",()=>{var r;const s=t.getAttribute("aria-expanded")==="true";(r=t.closest(".category-tree__item"))==null||r.classList.toggle("active",s)})})},wa=()=>{const n=document.querySelector(p.layout.stickyHeader);if(n){const e=n.offsetHeight,t=16;document.documentElement.style.setProperty("--scroll-padding-top",`${e+t}px`),document.documentElement.style.setProperty("scroll-padding-top","var(--scroll-padding-top)")}},Bh=()=>{window.addEventListener("load",wa),window.addEventListener("resize",wa)},Wh=()=>{const{prestashop:n,Theme:{events:e}}=window;document.addEventListener("show.bs.modal",s=>{const o=s.target;if(!o.matches(p.product.productImagesModal))return;const i=o.querySelector(p.product.productImagesModalCarousel),a=document.querySelector(p.product.carousel);if(!i||!a)return;const c=$t.getOrCreateInstance(i),l=t(a);l!==-1&&c.to(l)}),document.addEventListener("hide.bs.modal",s=>{const o=s.target;if(!o.matches(p.product.productImagesModal))return;const i=o.querySelector(p.product.productImagesModalCarousel),a=document.querySelector(p.product.carousel);if(!i||!a)return;const c=$t.getOrCreateInstance(a),l=t(i);l!==-1&&c.to(l)});const t=s=>{const o=s.querySelectorAll(".carousel-item");return Array.from(o).findIndex(i=>i.classList.contains("active"))},r=new Map;n.on(e.updateProduct,({event:s})=>{const o=s==null?void 0:s.target;if(!o||!o.id)return;const a=!!o.closest(p.quickviewModal)?"quickview":"main";r.set(a,{id:o.id})}),n.on(e.updatedProduct,()=>{r.forEach((s,o)=>{let i=null;if(o==="quickview"?i=document.querySelector(p.quickviewModal):i=document.querySelector(p.product.container),!i)return;const a=i.querySelector(`#${s.id}`);a&&(a.focus(),n.emit(e.combinationFocusRestored,{context:o,elementId:s.id})),r.delete(o)})}),n.on(e.combinationFocusRestored,({context:s})=>{let o=null;if(s==="quickview"?o=document.querySelector(p.quickviewModal):o=document.querySelector(p.product.container),!o)return;const i=o.querySelector(p.product.productAvailability);i&&setTimeout(()=>{i.setAttribute("aria-live","polite")},250)})},Sa=new ur,Kh=()=>{const{prestashop:n,Theme:{events:e}}=window;n.on(e.updatedCart,()=>{if(ve.get("lastUpdateAction")===_t.DELETE_FROM_CART){const t=document.querySelector(p.cart.alertPlaceholder);if(t)Array.from(t.children).forEach(r=>{const s=r;s.getAttribute("data-ps-action")==="to-be-announced"&&(s.removeAttribute("data-ps-action"),s.setAttribute("tabindex","-1"),s.focus())});else{const r=document.querySelector(p.cart.overview);r&&Sa.setFocus(r)}}if(ve.get("lastUpdateAction")===_t.UPDATE_PRODUCT_QUANTITY&&Sa.restoreFocus(document.querySelector(p.cart.overview)),ve.get("lastUpdateAction")===_t.SUBMIT_VOUCHER){const t=document.querySelector(p.cart.voucherError),r=document.querySelector(p.cart.voucherList),s=document.querySelector(p.cart.voucherContainer);t&&t.style.display!=="none"?t.focus():r?r.focus():s&&s.focus()}if(ve.get("lastUpdateAction")===_t.REMOVE_VOUCHER){const t=document.querySelector(p.cart.voucherAccordionButton);t&&t.focus()}ve.set("lastUpdateAction",null)})};var dn=(n,e,t)=>new Promise((r,s)=>{var o=c=>{try{a(t.next(c))}catch(l){s(l)}},i=c=>{try{a(t.throw(c))}catch(l){s(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,i);a((t=t.apply(n,e)).next())});const tt=new ur,{prestashop:Aa}=window,Y={POST_REVIEW_BUTTON:"[data-ps-ref='product-post-review-button']",MODAL_REVIEW:"[data-ps-ref='product-post-review-modal']",MODAL_REVIEW_FORM:"[data-ps-ref='product-post-review-form']",MODAL_REVIEW_ERROR:"[data-ps-ref='product-post-review-error-modal']",MODAL_REVIEW_POSTED:"[data-ps-ref='product-post-review-posted-modal']",FORM_VALIDATION_BUTTON:"[data-ps-action='form-validation-submit']",FORM_FIELD:"[data-ps-ref='product-post-review-form'] [name]",COMMENTS_LIST:"[data-ps-ref='product-comments-list']",PRODUCT_LIST_REVIEW:"[data-ps-ref='product-list-review']",PRODUCT_LIST_GRADE_NUMBER:"[data-ps-ref='product-list-comments-number'] [data-ps-ref='grade-value']",PRODUCT_LIST_COMMENTS_NUMBER:"[data-ps-ref='product-list-comments-number'] [data-ps-ref='number-value']",PAGINATION:"[data-ps-ref='product-comments-pagination']",PAGINATION_ITEM:"[data-ps-ref='pagination-item']",PAGINATION_PREV:"[data-ps-ref='pagination-item'][data-ps-action='prev']",PAGINATION_NEXT:"[data-ps-ref='pagination-item'][data-ps-action='next']",GRADE_STARS:"[data-ps-ref='grade-stars']",PRODUCT_LIST_GRADE_STARS:"[data-ps-ref='product-list-review'] [data-ps-ref='grade-stars']",COMMENT_LIST_GRADE_STARS:"[data-ps-ref='product-comments-list'] [data-ps-ref='grade-stars']",USEFUL_REVIEW:"[data-ps-ref='useful-review']",NOT_USEFUL_REVIEW:"[data-ps-ref='not-useful-review']",USEFUL_REVIEW_VALUE:"[data-ps-ref='useful-review-value']",NOT_USEFUL_REVIEW_VALUE:"[data-ps-ref='not-useful-review-value']",REPORT_ABUSE:"[data-ps-ref='report-abuse']",CONFIRM_BUTTON:"[data-ps-ref='confirm-button']",REFUSE_BUTTON:"[data-ps-ref='refuse-button']",UPDATE_COMMENT_USEFULNESS_POST_ERROR:"[data-ps-ref='update-comment-usefulness-post-error']",REPORT_COMMENT_CONFIRMATION:"[data-ps-ref='report-comment-confirmation']",REPORT_COMMENT_POST_ERROR:"[data-ps-ref='report-comment-post-error']",REPORT_COMMENT_POST_SUCCESS:"[data-ps-ref='report-comment-post-success']",BS_MODAL_BODY:".modal-body"};class B{static get postReviewButtons(){return Array.from(document.querySelectorAll(Y.POST_REVIEW_BUTTON))}static get modalReview(){return document.querySelector(Y.MODAL_REVIEW)}static get modalReviewForm(){return document.querySelector(Y.MODAL_REVIEW_FORM)}static get modalReviewError(){return document.querySelector(Y.MODAL_REVIEW_ERROR)}static get modalReviewPosted(){return document.querySelector(Y.MODAL_REVIEW_POSTED)}static get gradeStars(){return document.querySelectorAll(Y.GRADE_STARS)}static get productListGradeStars(){return document.querySelectorAll(Y.PRODUCT_LIST_GRADE_STARS)}static get commentListGradeStars(){return document.querySelectorAll(Y.COMMENT_LIST_GRADE_STARS)}static getFormValidationButton(e){return e.querySelector(Y.FORM_VALIDATION_BUTTON)}static getFormField(e){return document.querySelector(`${Y.FORM_FIELD}="${e}"]`)}static get commentsList(){return document.querySelector(Y.COMMENTS_LIST)}static get pagination(){return document.querySelector(Y.PAGINATION)}static get paginationItems(){return document.querySelectorAll(Y.PAGINATION_ITEM)}static get paginationPrev(){return document.querySelector(Y.PAGINATION_PREV)}static get paginationNext(){return document.querySelector(Y.PAGINATION_NEXT)}static getPaginationPage(e){return document.querySelector(`${Y.PAGINATION_ITEM}[data-ps-data="${e}"]`)}static get productListReviews(){return document.querySelectorAll(Y.PRODUCT_LIST_REVIEW)}static getProductListGradeNumber(e){return e.querySelector(Y.PRODUCT_LIST_GRADE_NUMBER)}static getProductListCommentsNumber(e){return e.querySelector(Y.PRODUCT_LIST_COMMENTS_NUMBER)}static getUsefulReviewButtons(e){return e.querySelectorAll(Y.USEFUL_REVIEW)}static getNotUsefulReviewButtons(e){return e.querySelectorAll(Y.NOT_USEFUL_REVIEW)}static getReportAbuseButtons(e){return e.querySelectorAll(Y.REPORT_ABUSE)}static getUsefulReviewValue(e){return e.querySelector(Y.USEFUL_REVIEW_VALUE)}static getNotUsefulReviewValue(e){return e.querySelector(Y.NOT_USEFUL_REVIEW_VALUE)}static get updateCommentUsefulnessPostErrorModal(){return document.querySelector(Y.UPDATE_COMMENT_USEFULNESS_POST_ERROR)}static get reportCommentConfirmationModal(){return document.querySelector(Y.REPORT_COMMENT_CONFIRMATION)}static get reportCommentPostErrorModal(){return document.querySelector(Y.REPORT_COMMENT_POST_ERROR)}static get reportCommentPostSuccessModal(){return document.querySelector(Y.REPORT_COMMENT_POST_SUCCESS)}}class Ta{static validateForm(e){return e.checkValidity()}static clearReviewForm(){const e=B.modalReviewForm;e&&(e.reset(),e.classList.remove("was-validated"))}static submitReviewForm(e,t){return dn(this,null,function*(){t.preventDefault();const r=new FormData(e);if(this.validateForm(e))try{const o=yield(yield fetch(e.action,{method:"POST",body:r})).json();o?o.success?(this.clearReviewForm(),On.showReviewPostedModal()):this.handleSubmissionError(o):On.showReviewErrorModal(window.productCommentPostErrorMessage)}catch(s){On.showReviewErrorModal(window.productCommentPostErrorMessage)}})}static handleSubmissionError(e){if(e.errors&&Array.isArray(e.errors)){const t=document.createElement("ul");e.errors.forEach(r=>{const s=document.createElement("li");s.textContent=r,t.appendChild(s)}),On.showReviewErrorModal(t.outerHTML)}else{const t=e.error||window.productCommentPostErrorMessage;On.showReviewErrorModal(t)}}}class On{static showReviewPostedModal(){this.closeReviewRelatedModals();const e=B.modalReviewPosted;e&&ye.getOrCreateInstance(e).show()}static showReviewErrorModal(e){this.closeReviewRelatedModals();const t=B.modalReviewError;if(t){const r=t.querySelector(Y.BS_MODAL_BODY),s=ye.getOrCreateInstance(t);r&&(r.innerHTML=e),s.show()}}static closeReviewRelatedModals(){[B.modalReview,B.modalReviewPosted,B.modalReviewError].forEach(t=>{if(t){const r=ye.getInstance(t);r&&r.hide()}})}}class Pn{static init(){const{commentsList:e}=B;e&&(this.currentPage=parseInt(e.dataset.currentPage||"1",10),this.totalPages=parseInt(e.dataset.totalPages||"0",10),this.commentsListUrl=e.dataset.listCommentsUrl||"",this.commentPrototype=e.dataset.commentItemPrototype||"",this.initCommentsListingRatingSystem(),this.initPagination())}static initCommentsListingRatingSystem(){ut.initCommentListRatingSystem(),document.addEventListener("updateRating",()=>{ut.initCommentListRatingSystem()})}static initPagination(){const{pagination:e}=B;if(!e||this.totalPages<=1){this.loadInitialComments();return}this.initPaginationListeners(),this.initOnePagePagination()}static initPaginationListeners(){const{paginationItems:e}=B;e.forEach(t=>{t.addEventListener("click",r=>{if(r.preventDefault(),t.classList.contains("disabled"))return;const s=t.getAttribute("data-ps-action"),o=t.getAttribute("data-ps-data");this.handlePageClick(s,o)})})}static handlePageClick(e,t){let r=this.currentPage;e==="prev"?r=this.currentPage-1:e==="next"?r=this.currentPage+1:e==="page"&&t&&(r=parseInt(t,10)),!(r<1||r>this.totalPages||r===this.currentPage)&&(this.currentPage=r,this.fetchComments(r),this.updatePaginationUI())}static updatePaginationUI(){for(let r=1;r<=this.totalPages;r+=1){const s=B.getPaginationPage(r);if(s){const o=r===this.currentPage;s.classList.toggle("active",o);const i=s.querySelector("button");i&&(o?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}const e=B.paginationPrev;if(e){const r=e.querySelector("button");if(r){const s=this.currentPage===1;e.classList.toggle("disabled",s),r.disabled=s}}const t=B.paginationNext;if(t){const r=t.querySelector("button");if(r){const s=this.currentPage===this.totalPages;t.classList.toggle("disabled",s),r.disabled=s}}}static fetchComments(e){return dn(this,null,function*(){try{const t=yield fetch(`${this.commentsListUrl}&page=${e}`);if(t.status===200){const r=yield t.text(),s=JSON.parse(r);this.populateComments(s.comments)}}catch(t){console.error("Error fetching comments:",t)}})}static populateComments(e){const{commentsList:t}=B;t&&(t.innerHTML="",e.forEach(r=>{this.addComment(r)}))}static formatCommentContent(e){return e?e.replace(/\r\n|\r|\n/g,"<br>"):""}static addComment(e){const{commentsList:t}=B;if(!t)return;let r=this.commentPrototype;if(!r)return;const s=e.customer_name||`${e.firstname} ${e.lastname}`;r=r.replace(/@COMMENT_ID@/g,e.id_product_comment.toString()),r=r.replace(/@PRODUCT_ID@/g,e.id_product.toString()),r=r.replace(/@CUSTOMER_NAME@/g,s),r=r.replace(/@COMMENT_DATE@/g,e.date_add),r=r.replace(/@COMMENT_TITLE@/g,e.title),r=r.replace(/@COMMENT_COMMENT@/g,this.formatCommentContent(e.content)),r=r.replace(/@COMMENT_USEFUL_ADVICES@/g,e.usefulness.toString()),r=r.replace(/@COMMENT_GRADE@/g,e.grade.toString()),r=r.replace(/@COMMENT_NOT_USEFUL_ADVICES@/g,(e.total_usefulness-e.usefulness).toString()),r=r.replace(/@COMMENT_TOTAL_ADVICES@/g,e.total_usefulness.toString());const o=document.createElement("div");o.innerHTML=r;const i=o.firstElementChild;i&&(t.appendChild(i),this.initCommentInteractions(i,e))}static initCommentInteractions(e,t){ut.initCommentRating(e,t.grade);const r=B.getUsefulReviewButtons(e),s=B.getNotUsefulReviewButtons(e),o=B.getReportAbuseButtons(e);r.forEach(i=>{i.addEventListener("click",()=>{Os.updateCommentUsefulness(e,t.id_product_comment,1),tt.storeFocus()})}),s.forEach(i=>{i.addEventListener("click",()=>{Os.updateCommentUsefulness(e,t.id_product_comment,0),tt.storeFocus()})}),o.forEach(i=>{i.addEventListener("click",()=>{Os.confirmCommentAbuse(t.id_product_comment),tt.storeFocus()})})}static initOnePagePagination(){this.totalPages>0&&(this.currentPage=1,this.updatePaginationUI(),this.fetchComments(1))}static loadInitialComments(){return dn(this,null,function*(){if(this.commentsListUrl)try{const e=yield fetch(`${this.commentsListUrl}&page=1`);if(e.status===200){const t=yield e.text(),r=JSON.parse(t);this.populateComments(r.comments)}}catch(e){console.error("Error loading initial comments:",e)}})}}Pn.currentPage=1,Pn.totalPages=0,Pn.commentsListUrl=null,Pn.commentPrototype=null;class ut{static getJQueryRating(e){return window.jQuery(e)}static initProductRatingSystem(){const{gradeStars:e}=B;e.forEach(t=>{this.isRatingPluginAvailable()&&this.getJQueryRating(t).rating()})}static initProductListRatingSystem(){const{productListGradeStars:e}=B;e.forEach(t=>{this.isRatingPluginAvailable()&&this.getJQueryRating(t).rating()})}static initCommentListRatingSystem(){const{commentListGradeStars:e}=B;e.forEach(t=>{this.isRatingPluginAvailable()&&this.getJQueryRating(t).rating()})}static resetModalStars(){const e=B.modalReview;e&&e.querySelectorAll(Y.GRADE_STARS).forEach(r=>{this.isRatingPluginAvailable()&&(this.getJQueryRating(r).rating("destroy"),this.getJQueryRating(r).rating())})}static initCommentRating(e,t){e.querySelectorAll(Y.GRADE_STARS).forEach(s=>{this.isRatingPluginAvailable()&&this.getJQueryRating(s).rating({grade:t})})}static isRatingPluginAvailable(){return!!window.jQuery&&typeof window.jQuery.fn.rating=="function"}}class Os{static updateCommentUsefulness(e,t,r){return dn(this,null,function*(){const{commentsList:s}=B;if(!s)return;const o=s.dataset.updateCommentUsefulnessUrl;if(o)try{const i=yield fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`id_product_comment=${t}&usefulness=${r}`});if(i.status===200){const a=yield i.json();a.success&&a.usefulness!==void 0&&a.total_usefulness!==void 0?this.updateUsefulnessValues(e,a.usefulness,a.total_usefulness):this.showUpdatePostCommentErrorModal(a.error||"Unknown error")}else this.showUpdatePostCommentErrorModal(window.productCommentUpdatePostErrorMessage)}catch(i){this.showUpdatePostCommentErrorModal(i instanceof Error?i.message:"Network error")}})}static updateUsefulnessValues(e,t,r){const s=B.getUsefulReviewValue(e),o=B.getNotUsefulReviewValue(e);s&&(s.textContent=t.toString()),o&&(o.textContent=(r-t).toString())}static confirmCommentAbuse(e){const t=B.reportCommentConfirmationModal;if(!t)return;ye.getOrCreateInstance(t).show();const s=o=>{var i;(i=o.detail)!=null&&i.confirm&&this.confirmCommentAbuseFetch(e)};t.addEventListener("modal:confirm",s,{once:!0})}static confirmCommentAbuseFetch(e){return dn(this,null,function*(){const{commentsList:t}=B;if(!t)return;const r=t.dataset.reportCommentUrl;if(r)try{const s=yield fetch(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:`id_product_comment=${e}`});if(s.status===200){const o=yield s.json();o.success?this.showReportCommentPostedModal():this.showReportCommentErrorModal(o.error||"Unknown error")}else this.showReportCommentErrorModal(window.productCommentAbuseReportErrorMessage)}catch(s){this.showReportCommentErrorModal(s instanceof Error?s.message:"Network error")}})}static showUpdatePostCommentErrorModal(e){const t=B.updateCommentUsefulnessPostErrorModal;if(!t)return;const r=t.querySelector(Y.BS_MODAL_BODY);r&&(r.innerHTML=e),ye.getOrCreateInstance(t).show()}static showReportCommentErrorModal(e){const t=B.reportCommentPostErrorModal;if(!t)return;const r=t.querySelector("#report-comment-post-error-message");r&&(r.innerHTML=e),ye.getOrCreateInstance(t).show()}static showReportCommentPostedModal(){const e=B.reportCommentPostSuccessModal;if(!e)return;ye.getOrCreateInstance(e).show()}}class Yh{static init(){this.loadProductListReviews(),this.setupUpdateListener()}static setupUpdateListener(){Aa.on(kn.updateProductList,()=>{this.loadProductListReviews()}),Aa.on(kn.updatedProduct,()=>{this.loadProductListReviews(),ut.initProductRatingSystem()})}static loadProductListReviews(){return dn(this,null,function*(){const{productListReviews:e}=B;if(!e)return;const t=[];if(e.forEach(r=>{const s=parseInt(r.getAttribute("data-id")||"0",10);s>0&&t.push(s)}),t.length!==0)try{const r=document.querySelector(Y.PRODUCT_LIST_REVIEW),s=r==null?void 0:r.getAttribute("data-url");if(!s)return;const o=yield fetch(`${s}?id_products[]=${t.join("&id_products[]=")}`);if(o.status===200){const i=yield o.json();this.updateProductListReviews(i)}}catch(r){console.error("Error loading product list reviews:",r)}})}static updateProductListReviews(e){const{productListReviews:t}=B;t.forEach(r=>{const s=parseInt(r.getAttribute("data-id")||"0",10),o=e.products.find(i=>i.id_product===s);o&&o.comments_nb!=="0"&&o.average_grade!==null&&(this.updateSingleProductReview(r,{grade:Math.round(o.average_grade),comments_nb:parseInt(o.comments_nb,10)}),r.classList.add("d-flex"))})}static updateSingleProductReview(e,t){const r=e.querySelector(Y.GRADE_STARS);r&&this.updateStarsWithRating(r,t.grade);const s=B.getProductListCommentsNumber(e),o=B.getProductListGradeNumber(e);s&&o&&(s.textContent=t.comments_nb.toString(),o.textContent=t.grade.toString())}static updateStarsWithRating(e,t){this.isRatingPluginAvailable()&&(ut.getJQueryRating(e).rating("destroy"),ut.getJQueryRating(e).rating({grade:t,readOnly:!0}))}static isRatingPluginAvailable(){return!!window.jQuery&&typeof window.jQuery.fn.rating=="function"}}class zh{static init(){this.initPostReviewButton(),this.initReviewModal(),this.initReviewPostedModal(),this.initReviewErrorModal(),this.initCommentsListing(),this.initProductListReviews(),this.initConfirmationModals(),this.initCommentsModalHandler(),this.initProductRatingSystem()}static initProductRatingSystem(){ut.initProductRatingSystem(),ut.initProductListRatingSystem(),ut.initCommentListRatingSystem()}static initReviewModal(){const e=B.modalReview,t=B.modalReviewForm,r=t?B.getFormValidationButton(t):null;e&&t&&r&&t.addEventListener("submit",s=>{Ta.submitReviewForm(t,s)})}static initReviewPostedModal(){const e=B.modalReviewPosted;e&&e.addEventListener("hidden.bs.modal",()=>{const t=document.querySelector(p.product.rightSection);tt.restoreFocus(t),Ta.clearReviewForm(),ut.resetModalStars()})}static initReviewErrorModal(){const e=B.modalReviewError;e&&e.addEventListener("hidden.bs.modal",()=>{const t=document.querySelector(p.product.rightSection);tt.restoreFocus(t)})}static initCommentsListing(){Pn.init()}static initProductListReviews(){Yh.init()}static initConfirmationModals(){this.initReportCommentConfirmationModal()}static initReportCommentConfirmationModal(){const e=B.reportCommentConfirmationModal;if(!e)return;e.addEventListener("hidden.bs.modal",()=>{const s=new CustomEvent("modal:confirm",{detail:{confirm:!1},bubbles:!0});e.dispatchEvent(s)});const t=e.querySelector(Y.CONFIRM_BUTTON);t&&t.addEventListener("click",()=>{const s=new CustomEvent("modal:confirm",{detail:{confirm:!0},bubbles:!0});e.dispatchEvent(s)});const r=e.querySelector(Y.REFUSE_BUTTON);r&&r.addEventListener("click",()=>{const s=new CustomEvent("modal:confirm",{detail:{confirm:!1},bubbles:!0});e.dispatchEvent(s)})}static initPostReviewButton(){const e=B.postReviewButtons;e&&e.forEach(t=>{t.addEventListener("click",()=>{tt.storeFocus()})})}static initCommentsModalHandler(){const{updateCommentUsefulnessPostErrorModal:e}=B,{reportCommentConfirmationModal:t}=B,{reportCommentPostErrorModal:r}=B,{reportCommentPostSuccessModal:s}=B;e&&e.addEventListener("hidden.bs.modal",()=>{tt.restoreFocus()}),t&&t.addEventListener("hidden.bs.modal",()=>{const o=tt.getStoredFocus();setTimeout(()=>{o&&!(r!=null&&r.classList.contains("show"))&&!(s!=null&&s.classList.contains("show"))&&tt.setFocus(o)},250)}),r&&r.addEventListener("hidden.bs.modal",()=>{tt.restoreFocus()}),s&&s.addEventListener("hidden.bs.modal",()=>{tt.restoreFocus()})}}const Gh=()=>{zh.init()};V(),document.addEventListener("DOMContentLoaded",()=>{const{prestashop:n,Theme:{events:e}}=window;ia(),ea(),oa(),eh(),Ji(),na(),hr(),ys(),gh(),Lh(),Ss(),As(),aa(),_a(),Ea(),Ms(),jh(),Mh(),$h(),Hh(),Bh(),ya(),Gh(),Wh(),Kh(),n.on(e.responsiveUpdate,()=>{ys(),Ss(),As(),Ms()})});const Qh={useToast:lr,useAlert:cr,useProgressRing:sa,useQuantityInput:hr},Xh={parseData:vr},Jh=p,kn=A,Zh={initProductBehavior:ia,initQuickview:ea,initCheckout:oa,initResponsiveToggler:Ji,initCart:na,useQuantityInput:hr,initSearchbar:ys,initLanguageSelector:Ss,initCurrencySelector:As,initMobileMenu:aa,initGuestPasswordToggle:_a,initVisiblePassword:Ea,initDesktopMenu:Ms,initBlockCart:ya}})(),window.Theme=Or})()})();/*! For license information please see front.js.LICENSE.txt */
(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},o=[],i=0;i<e.length;i++){var c=e[i],u=n.base?c[0]+n.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var p=r(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var v=s(f,n);n.byIndex=i,t.splice(i,0,{identifier:d,updater:v,references:1})}o.push(d)}return o}function s(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var i=r(a[o]);t[i].references--}for(var c=n(e,s),u=0;u<a.length;u++){var l=r(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0,(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),u=r(216),l=r.n(u),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=l(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{const e=$(".blockreassurance_product img.svg, .blockreassurance img.svg").map((function(){return $(this).attr("src")})).toArray();e.filter(((t,r)=>e.indexOf(t)===r)).forEach((function(e){const t=$(`.blockreassurance_product img.svg.invisible[src="${e}"], .blockreassurance img.svg.invisible[src="${e}"]`);0!==t.length&&$.ajax({url:e,type:"GET",success(r){if($.isXMLDoc(r)){let n=$(r).find("svg");n=n.attr("data-img-url",e),n=n.removeAttr("xmlns:a"),n.find("path[fill]").attr("fill",window.psr_icon_color),n.find("path:not([fill])").css("fill",window.psr_icon_color),t.each((function(){const e=$(this).attr("id"),t=$(this).attr("class");let r=n.clone();r=void 0!==e?r.attr("id",e):r,r=void 0!==t?r.attr("class",`${t} replaced-svg`):r.attr("class"," replaced-svg"),r.removeClass("invisible"),$(this).replaceWith(r)}))}}})}))}))})()})();/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
function addNotification(productId,productAttributeId){if(typeof productId==='undefined'){var ids=$('div.js-mailalert > input[type=hidden]');productId=ids.eq(0).val();productIdAttribute=ids.eq(1).val()}
$.ajax({type:'POST',url:$('div.js-mailalert').data('url'),data:'id_product='+productId+'&id_product_attribute='+productAttributeId+'&customer_email='+$('div.js-mailalert input[type=email]').val(),success:function(resp){resp=JSON.parse(resp);$('.js-mailalert-alerts').html('<article class="mt-1 alert alert-'+(resp.error?'danger':'success')+'" role="alert" data-alert="'+(resp.error?'error':'success')+'">'+resp.message+'</article>').show();if(!resp.error){$('div.js-mailalert > .js-mailalert-add, div.js-mailalert > input[type=email], div.js-mailalert .gdpr_consent_wrapper').hide()}}});return!1}
$(document).on('ready',function(){const mailAlertSubmitButtonClass='.js-mailalert-add';const mailAlertWrapper=$('.js-mailalert');const mailAlertSubmitButton=mailAlertWrapper.find(mailAlertSubmitButtonClass);if(mailAlertWrapper.find('#gdpr_consent, .gdpr_consent').length){setTimeout(()=>{mailAlertSubmitButton.prop('disabled',!0);mailAlertWrapper.find('[name="psgdpr_consent_checkbox"]').on('change',function(e){e.stopPropagation();mailAlertSubmitButton.prop('disabled',!$(this).prop('checked'))})},0)}
$(document).on('click',mailAlertSubmitButtonClass,function(e){e.preventDefault();addNotification($(this).data('product'),$(this).data('product-attribute'))});$(document).on('click','.js-remove-email-alert',function(){var self=$(this);var ids=self.attr('rel').replace('js-id-emailalerts-','');ids=ids.split('-');var id_product_mail_alert=ids[0];var id_product_attribute_mail_alert=ids[1];var parent=self.closest('li');$.ajax({url:self.data('url'),type:"POST",data:{'id_product':id_product_mail_alert,'id_product_attribute':id_product_attribute_mail_alert},success:function(result){if(result=='0'){parent.fadeOut("normal",function(){parent.remove()})}}})})});/**
* 2007-2020 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
$(document).ready(function(){$('.block_newsletter form').on('submit',function(){var psemailsubscriptionForm=$(this);if(typeof psemailsubscription_subscription==='undefined'){return!0}
$('.block_newsletter_alert').remove();$.ajax({type:'POST',dataType:'JSON',url:psemailsubscription_subscription,cache:!1,data:$(this).serialize(),success:function(data){if(data.nw_error){psemailsubscriptionForm.prepend('<p class="alert alert-danger block_newsletter_alert">'+data.msg+'</p>')}else{psemailsubscriptionForm.prepend('<p class="alert alert-success block_newsletter_alert">'+data.msg+'</p>')}},error:function(err){console.log(err)}});return!1})});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
$(document).ready(function(){prestashop.on('updateProduct',function(params){if(params.eventType==='updatedProductCombination'){var productId=$('input[name="id_product"]').val();var $productAttributes=$(params.event.handleObj.selector);var attributes=[];$productAttributes.each(function(key,attribute){if($(attribute).is("input")&&!$(attribute).is(':checked')){return}
attributes.push($(attribute).val())})
ajaxProductCombinationChange(productId,attributes)}});function ajaxProductCombinationChange(productId,attributes){$.ajax({type:'POST',url:prestashopFacebookAjaxController,data:{action:'CustomizeProduct',ajax:!0,id_product:productId,attribute_ids:attributes,}})}});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/
jQuery.fn.rating=function(generalOptions){const $ratings=$(this);$ratings.each(function initRating(){const $ratingComponent=$(this);var options=generalOptions?generalOptions:{};if(!options.grade&&$ratingComponent.data('grade')){options.grade=$ratingComponent.data('grade')}
if(!options.min&&$ratingComponent.data('min')){options.min=$ratingComponent.data('min')}
if(!options.max&&$ratingComponent.data('max')){options.max=$ratingComponent.data('max')}
if(!options.input&&$ratingComponent.data('input')){options.input=$ratingComponent.data('input')}
var componentOptions=jQuery.extend({grade:null,input:null,min:1,max:5,starWidth:20},options);const minValue=Math.min(componentOptions.min,componentOptions.max);const maxValue=Math.max(componentOptions.min,componentOptions.max);const ratingValue=Math.min(Math.max(minValue,componentOptions.grade),maxValue);$ratingComponent.html('');$ratingComponent.append('<div class="star-content star-empty clearfix"></div>');$ratingComponent.append('<div class="star-content star-full clearfix"></div>');const emptyStars=$('.star-empty',this);const fullStars=$('.star-full',this);const emptyStar=$('<div class="star"></div>');const fullStar=$('<div class="star-on"></div>');var ratingInput;if(componentOptions.input){ratingInput=$('<input type="number" name="'+componentOptions.input+'" id="'+componentOptions.input+'" />');ratingInput.val(ratingValue);ratingInput.css('display','none');ratingInput.on('change',displayInteractiveGrade);$ratingComponent.append(ratingInput);initInteractiveGrade()}else{displayGrade(ratingValue)}
function initInteractiveGrade(){emptyStars.html('');fullStars.html('');var newStar;for(var i=minValue;i<=maxValue;++i){newStar=emptyStar.clone();newStar.data('grade',i);newStar.on('mouseenter mouseleave',function overStar(){var overIndex=$('.star',fullStars).index($(this));$('.star',fullStars).each(function overStars(){$(this).removeClass('star-on');var starIndex=$('.star',fullStars).index($(this));if(starIndex<=overIndex){$(this).addClass('star-hover')}else{$(this).removeClass('star-hover')}})});newStar.on('click',function selectGrade(){var selectedGrade=$(this).data('grade');ratingInput.val(selectedGrade);ratingChosen=!0});fullStars.append(newStar)}
fullStars.on('mouseenter',function(){}).on('mouseleave',displayInteractiveGrade);displayInteractiveGrade()}
function displayInteractiveGrade(){$('.star',fullStars).each(function displayStar(){var starValue=$(this).data('grade');$(this).removeClass('star-hover');if(starValue<=ratingInput.val()){$(this).addClass('star-on')}else{$(this).removeClass('star-on')}})}
function displayGrade(grade){emptyStars.html('');fullStars.html('');var newStar;for(var i=minValue;i<=maxValue;++i){if(i<=Math.floor(grade)){newStar=emptyStar.clone();newStar.css('visibility','hidden');emptyStars.append(newStar);fullStars.append(fullStar.clone())}else if(i>Math.ceil(grade)){newStar=emptyStar.clone();emptyStars.append(newStar.clone())}else{var fullWidth=(grade-i+1)*componentOptions.starWidth;var emptyWidth=componentOptions.starWidth-fullWidth;newStar=emptyStar.clone();newStar.css('visibility','hidden');newStar.css('width',fullWidth);emptyStars.append(newStar);newStar=emptyStar.clone();newStar.css('width',emptyWidth);newStar.css('background-position','0px -'+fullWidth+'px');newStar.css('background-position','-'+fullWidth+'px 0px');newStar.css('marginLeft',0);emptyStars.append(newStar);fullStar.css('width',fullWidth);fullStars.append(fullStar.clone())}}}})};;;;;/**
* 2007-2020 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
$(document).ready(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&typeof event.resp!=='undefined'&&!event.resp.hasError){requestData={id_customization:event.reason.idCustomization,id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction}}
if(event&&event.resp&&event.resp.hasError){prestashop.emit('showErrorNextToAddtoCartButton',{errorMessage:event.resp.errors.join('<br/>')})}
$.post(refreshURL,requestData).then(function(resp){var html=$('<div />').append($.parseHTML(resp.preview));$('.blockcart').replaceWith($(resp.preview).find('.blockcart'));if(resp.modal){showModal(resp.modal)}}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})})