var Weglot=function(){"use strict";var e={v1:[],v2:["ABBR","ACRONYM","B","BDO","BIG","CITE","EM","I","KBD","Q","SMALL","STRONG","SUB","SUP","U"],v3:["A","BDI","BR","DEL","DFN","INS","S","SPAN"]};e.v2.unshift("#text");var t=e,n={excluded_blocks:[],media_enabled:!1,external_enabled:!1,extra_definitions:[],translation_engine:2,noTranslateAttribute:"data-wg-notranslate",mergeNodes:[]},r={ddtags:"env:prod",clientToken:"pub4efaec96ce2494088ba70a2049d58dc3",site:"datadoghq.com"},o={"dd-api-key":"pub4efaec96ce2494088ba70a2049d58dc3",ddsource:"browser"},a="prod";function i(e){var t=e.service;function n(e,n,i){var s=i.sendToConsole;void 0===s&&(s=!0);var c=i.consoleOverride,l=i.sendToDatadog;if(void 0===l&&(l=!0),l&&"dev"!==a&&function(e,t,n){"string"==typeof t&&(t={message:t});var a=Object.assign({},t,{service:e,status:n},window.location&&{view:{url:window.location.href}},t.message&&{message:t.message},t.stack&&{stack:t.stack},t.status&&{logStatus:t.status},r);window.Weglot&&window.Weglot.options&&(a.projectInfo=["host","api_key","url_type","technology_name","technology_id","is_connect","auto_switch"].reduce((function(e,t){var n;return Object.assign({},e,((n={})[t]=window.Weglot.options[t],n))}),{}));var i=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&");fetch("https://http-intake.logs.datadoghq.com/api/v2/logs?"+i,{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}})}(t,e,n),s){var u=c||e,f=["notice","info"].includes(n)?"log":n;console[f]("[Weglot]",u)}}var i=function(e){return function(t,r){return void 0===r&&(r={}),n(t,e,r)}};return{log:i("info"),info:i("info"),notice:i("notice"),warn:i("warn"),error:i("error")}}var s=i({service:"html-parser-engine"}),c=function(){try{return JSON.parse('{"TRANSLATION":"translations.weglot.io","SWITCHER":"switchers.weglot.io","EXCLUSION":"exclusions.weglot.io","DEFINITION":"definitions.weglot.io"}')}catch(e){return{}}}(),l=Object.keys(c).map((function(e){return c[e]}));function u(e){for(var t=0,n=l;t-1&&e.indexOf(">")>-1}var x=new WeakMap;function C(e){if(!e)return[];var t=e.querySelectorAll?e:e.parentNode;if(!t)return[];if(function(e){var t=n.excluded_blocks;if(t&&t.length){var r=t.map((function(e){return e.value})),o=r.join(",");if(b(e,o)){if(n.private_mode){var a=r.find((function(t){return b(e,t)}));e.wgNoTranslate="Excluded by selector: "+a}else e.wgNoTranslate=!0;return}var i=w(e,o);if(i)for(var s=function(){var e=l[c];if(n.private_mode){var t=r.find((function(t){return b(e,t)}));e.wgNoTranslate="Excluded by selector: "+t}else e.wgNoTranslate=!0},c=0,l=i;c0&&o.push.apply(o,r.querySelectorAll(a)),o);l=2,a=document.createTreeWalker(e,4,S,!1);for(;t=a.nextNode();){var i=(o&&(p(t.parentNode)||t.parentNode.childNodes.length>1)?L:N)(t,a);i&&r.push(i)}return r}(e))}function S(e){return!g(e)||v(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}function L(e,t){var r=function(e){if(e.wgResolved)return!1;var t=e;do{if(t.wgResolved)return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return!1}(e);if(r&&x.has(r)){var o=x.get(r);return{element:o[0],words:o[1],type:1,properties:o[2]}}var a=function(e,t){var r=[],o=e;for(;d(e.parentNode);)e=e.parentNode,o.textContent.trim()!==e.textContent.trim()&&(o=e);o.textContent.trim()===e.textContent.trim()&&(e=o);for(;t.nextNode();)if(!e.contains||!e.contains(t.currentNode)){t.previousNode();break}var a=e.cloneNode(!0);if(n.translation_engine>2){T(e,(function(e){if(1===e.nodeType){var t=function(e){for(var t=[],n=0,r=e.attributes;n0;)e.removeAttribute(e.attributes[0].name)}(e),e.setAttribute("wg-"+i++,""))}))}if(e){return e.wgResolved=!0,[e,(a.innerHTML||a.textContent||"").replace(//g,""),r]}}(e,t);if(a){var i=a[0],s=a[1],c=a[2];if(!A(s))return x.set(i,a),{element:i,words:s,type:1,properties:c}}}function N(e){var t=e.textContent;if(!A(t))return{element:e,words:t,type:1,properties:{}}}function T(e,t){if(e.childNodes)for(var n=0,r=e.childNodes;n=r+1&&[].push.apply(e,t[n]),e}),[])),Array.isArray(n.extra_merged_selectors)&&(n.selectorMerging=r.extra_merged_selectors.filter((function(e){return e&&"string"==typeof e})).join(",")),r.merged_selectors_remove&&(n.mergedSelectorRemove=r.merged_selectors_remove.map((function(e){return e.value})).join(",")),{getTextNodes:C,setTextNodes:j,definitions:M=H(n)}}var z,F={};try{document.cookie,z=!0}catch(Fn){z=!1}F.set=function(e){var t=e.name,n=e.value,r=e.domain;void 0===r&&(r=null);var o=e.path;void 0===o&&(o=null);var a=e.expires;void 0===a&&(a=null);var i=e.options;if(z&&t){var s=i.host,c=i.is_connect,l=i.subdirectory;t=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29"),n=n.toString().replace(/[^+#$&/:<-[\]-}]/g,encodeURIComponent),!r&&c&&s&&(r=l?s:s.split("www.").pop());var u=r?";domain="+r:"",f=a?";expires="+a:"",d=";path=/"+(o||"");document.cookie=t+"="+n+u+d+f+";SameSite=None;Secure"}},F.get=function(e){if(!z)return null;for(var t=document.cookie.split(";");t.length;){var n=t.pop(),r=n.indexOf("=");if(r=r<0?n.length:r,decodeURIComponent(n.slice(0,r).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(r+1))}return null},F.erase=function(e){var t=e.name,n=e.domain;void 0===n&&(n=null);var r=e.path;void 0===r&&(r=null);var o=e.options;F.set({name:t,value:"",domain:n,path:r,expires:"Thu, 01 Jan 1970 00:00:00 GMT",options:o})};var B=i({service:"js-library"}),$="https://cdn.weglot.com/projects-settings/",V="preview.weglot.io",G="wglang",J="wg-style-trans",X="data-wg-notranslate",Y="wg-translations",K="wg-slugs",Z="Shopify",Q="BigCommerce",ee="Jimdo",te="Squarespace",ne="Wix",re="Webflow",oe="Square Online",ae="Bubble",ie="Salesforce",se=["excluded_blocks","excluded_blocks_remove","dynamics","excluded_paths","dangerously_force_dynamic","extra_definitions","translate_event"],ce=["polyfillReady","languageChanged","initialized","start","switchersReady"],le={button_style:{full_name:!0,with_name:!0,is_dropdown:!0,with_flags:!1,flag_type:""},switchers:[],auto_switch:!1,auto_switch_fallback:"",excluded_blocks:[],excluded_blocks_remove:[],whitelist:[],translate_event:[{selector:"[data-wg-translate-event]",eventName:null}],customer_tag:!1,order_tag:!0,dynamics:[],excluded_paths:[],wait_transition:!0,hide_switcher:!1,translate_search:!1,media_enabled:!1,search_forms:"",cache:!1,live:!0,loading_bar:!0,search_parameter:"",translation_engine:2,override_hreflang:!0},ue=["none","shiny","square","circle","rectangle_mat"],fe={};!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){try{return encodeURIComponent(e).replace(/%20/g,"+")}catch(t){return e}},o=function(e){try{return decodeURIComponent(String(e).replace(/\+/g," "))}catch(t){return e}};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var o=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=typeof e;if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof o){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;rt[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n1?o(r[1]):"")}})}(fe),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,o=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=n,o.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var a=o.createElement("a");a.href=t,r&&(o.body.appendChild(a),a.href=a.href);var i=o.createElement("input");if(i.type="url",i.value=t,":"===a.protocol||!/:/.test(a.href)||!i.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a});var s=new e.URLSearchParams(this.search),c=!0,l=!0,u=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),c&&(l=!1,u.search=s.toString(),l=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,l&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(fe);var de=fe.URL,ge=function(e,t){return function(n,r){if(!n||!n[e]||!r)return t;try{return n[e](r)}catch(e){B.error(e,{consoleOverride:"The CSS selectors that you provided are incorrect: "+r,sendToDatadog:!1})}return t}},pe=ge("querySelectorAll",[]),_e=ge("querySelector",null),he=ge("closest",null),me=function(e){return document.getElementById(e)};function ve(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ye(e){e=""+e;return[" ","&",""","<",">"].some((function(t){return-1!==e.indexOf(t)}))?e.replace(/ /g," ").replace(/&/g,"&").replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">"):e}function we(e){var t=window.location.search.slice(1).split("&").map((function(e){return e&&e.split("=")})).find((function(t){return t[0]===e}));return t&&t[1]}function be(){try{if(window.frameElement||window.self!==window.top)return"with-window-top"}catch(e){return"no-window-top"}}function ke(e,t){var n=document.createElement("style");ve(me(t)),n.id=t,n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),document.head&&document.head.appendChild(n)}var Ee=function(){return/google|facebook|bing|yahoo|baidu|yandex|lighthouse/i.test(navigator.userAgent)};function xe(e){try{document.createDocumentFragment().querySelector(e)}catch(e){return!1}return!0}var Ce=function(e,t,n){var r=new de(e,location.href);return r.searchParams.set(t,n),""+r.pathname+r.search};function Oe(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){return e()}))}var Se=function(e,t){var n;return void 0===t&&(t=1e3),function(){for(var r=this,o=[],a=arguments.length;a--;)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}},Le=function(e){var t=(new Date).getTime().toString();try{var n=e.contentWindow;return n[t]="asd","asd"===n[t]}catch(e){return!1}};var Ne={},Te=function(e,t){Ne[e]||(Ne[e]=[]),Ne[e].push(t)},Ae=function(e,t){if(Ne[e])for(var n=0,r=Ne[e];n0;)t[n]=arguments[n+1];for(var r=je.filter((function(t){return t.name===e})),o=0,a=r;o0,"onOptionsReady",(function(){if(ja.dynamicPushState){var e=history.pushState;history.pushState=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];e.apply(history,t);var r=De();Ue.hostname=r.hostname,Ue.pathname=r.pathname,Ue.url=r.url,Ie("onCurrentLocationChanged")}}}));var We,He={};function Me(e){var t=1;return e.replace(/\((.*?)\)/g,(function(){return"$"+t++}))}function qe(){var e=Ue.pathname,t=ja.localeRules;void 0===t&&(t=[]);var n=ja.languages,r={position:0,translatedFormat:"CODE",originalFormat:"",addedByDefault:!0},o=ja.language_from;if(t.length){var a=[];t.map((function(e){var t=e.position,n=e.translatedFormat;n&&"CODE"!==n&&a.push(t||0)}));var i=a.filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return Object.assign({},r,{position:e})}));t.unshift.apply(t,i)}else t.push(r);var s=null,c=null,l=t.find((function(t){var r=t.position;void 0===r&&(r=0);var a=t.translatedFormat;void 0===a&&(a="CODE");var i=t.originalFormat;void 0===i&&(i="");var l=t.addedByDefault;if(!a.includes("CODE"))return!1;var u=e.split("/");if(u.length<=r)return!1;var f=u[r+1],d=n.find((function(e){var t=e.custom_code||e.language_to,n=a.replace("CODE",t),r=new RegExp("^"+n+"$","g");return!!r.test(f)&&(c=r,!0)}));if(d)return s=d.custom_code||d.language_to,!0;if(i){var g=i.replace("CODE",o);return new RegExp("^"+g+"$","g").test(f)}return!l}))||r;return He.convertLocale=function(t,n,r,a){if(void 0===n&&(n=e),void 0===r&&(r=s||o),void 0===a&&(a=null),r===t)return n;var i=l.position;void 0===i&&(i=0);var u=l.originalFormat;void 0===u&&(u="");var f=l.translatedFormat;void 0===f&&(f="CODE");var d=n.split("/");if(d.length<=i)return n;var g=d[i+1];if(r===o){var p=f.replace(/CODE/g,t),_=!1;if(u){var h=u.replace(/CODE/g,o),m=new RegExp("^"+h+"$","g"),v=Me(p);p=g.replace(m,v),a&&!m.test(g)&&(_=!0,p=a.split("/")[i+1])}var y=u&&!_?2:1;return d.slice(0,i+1).concat([p],d.slice(i+y)).join("/")}if(t===o&&!u)return d.slice(0,i+1).concat(d.slice(i+2)).join("/");var w=Me((t===o?u:f).replace(/CODE/g,t)),b=g.replace(c,w);return d.slice(0,i+1).concat([b],d.slice(i+2)).join("/")},He.language=s||o,He}function ze(){var e=Ue.hostname,t=ja.languages.find((function(t){return t.connect_host_destination&&t.connect_host_destination.host===e}));return t?t.custom_code||t.language_to:ja.language_from}function Fe(){return qe().language}function Be(){if(We)return We;if(ja.is_connect){var e=document.documentElement.dataset.wgTranslated;return e?(We=e,e):We=ja.subdirectory?Fe():ze()}return We=ja.language_from}function $e(e,t){var n=t;n||(n=Be());for(var r=0,o=e;rspan.cc-message",".hc-widget",".jdgm-rev-widg__header",".jdgm-rev__body",".jdgm-rev-title",".yotpo-main-widget","#swell-popup",".swell-tab",".yotpo-widget-override-css",".cw-row",".mini-popup-container","email-field cw-form-control","phone-field cw-form-control",".sms-policy-text",".wlo-content-holder",".wlo-wheel-holder",".yotpo-smsbump-modal__content",".cw-compliance-text","#saso-notifications",".saso-cross-sell-popup",".saso-cart-item-discount-notes",".saso-cart-item-upsell-notes",".saso-volume-discount-tiers",".opw-leading-normal",".opw-my-2.opw-leading-normal.opw-text-lg.opw-text-left",".opinew-navbar.opw-flex.opw-items-center.opw-justify-between.opw-flex-wrap.opw-py-4.opw-px-6",".main-content-container.opw--mx-1",".opw-text-center.opw-text-sm.opw-border-solid.opw-border-0.opw-mt-3",".summary-card-container.opw-mx-1",".opw-reviews-container.opw-mt-3.opw--mx-1",".opinew-reviews-title.opw-flex.opw-items-center.opw-flex-no-shrink.opw-mr-6",".opw-flex.opw-flex-row-reverse","#opinew-app-container",".gem_dynamic-content",".pp_tracking_content",".pp_all_form_div",".pp_tracking_result_title",".progress-bar-style",".pp_tracking_left",".pp_num_status_show",".pp_tracking_status_tips",".pp_page_map_div",".pp_tracking_result_parent",".pp_tracking_right",".pp_recommend_product_parent",".currency-converter-cart-note",".cbb-shipping-rates-calculator",".cbb-frequently-bought-container",".cbb-frequently-bought-discount-applied-message",".cbb-also-bought-container","#zonos",".buddha-menu-item",".R-GlobalModal",".ruk-rating-snippet-count",".R-ContentList-container",".R-ReviewsList-container",".R-SliderIndicator-group",".R-TextBody",".widgetId-reviewsio-carousel-widget",".REVIEWSIO-FloatingMinimised",".REVIEWSIO-FloatingMinimised__Container",".reviewsio-carousel-widget",".reviews-io-floating-widget",".reviews_container",".site-nav.style--sidebar .site-nav-container .subtitle",".search-more",".variant-quantity",".lion-claimed-rewards-list",".lion-header",".lion-header__join-buttons",".lion-header__join-today",".lion-history-table",".lion-integrated-page-section__heading-text",".lion-loyalty-panel",".lion-loyalty-splash",".lion-loyalty-widget",".lion-modal__content",".lion-modal__header",".lion-referral-widget",".lion-rewards-list",".lion-rules-list",".lion-tier-overview",".ccpops-popup__content__bottom-text",".ccpops-popup__content__top-text",".ccpops-trigger__text",".ks-table-row",".klaviyo-form"];function _t(e){if(e&&e.toLowerCase){var t=e.toLowerCase(),n=ja.languages.find((function(e){var n=e.language_to,r=e.custom_code;return n===t||(r?r.toLowerCase()===t:void 0)}));return n?n.language_to:e}}var ht,mt={};function vt(e){return{START_WITH:function(t){return 0===e.indexOf(t)},NOT_START_WITH:function(t){return 0!==e.indexOf(t)},END_WITH:function(t){return-1!==e.indexOf(t,e.length-t.length)},NOT_END_WITH:function(t){return-1===e.indexOf(t,e.length-t.length)},CONTAIN:function(t){return-1!==e.indexOf(t)},NOT_CONTAIN:function(t){return-1===e.indexOf(t)},IS_EXACTLY:function(t){return e===t},NOT_IS_EXACTLY:function(t){return e!==t},MATCH_REGEX:function(t){try{return new RegExp(t,"i").test(e)}catch(e){return B.warn(e,{consoleOverride:t+" is an invalid regex",sendToDatadog:!1}),!1}}}}function yt(e){var t=ja.excluded_paths,n=Ue.pathname;if(n=n.toLowerCase(),"shopify.weglot.com"===window.location.host||!t||!t.length)return!1;if("string"==typeof t&&t.split(",").some((function(e){return new RegExp(e,"i").test(n)})))return{allExcluded:!0,language_button_displayed:!0};var r=e||_t(Be());return void 0!==mt[r]&&mt.currentLang===r||(mt.currentLang=r,ja.injectedData&&ja.injectedData.originalPath&&(n=ja.injectedData.originalPath.toLowerCase()),t.some((function(e){var t=e.type,o=e.value,a=e.excluded_languages,i=e.language_button_displayed,s=e.regex;o=o.toLowerCase();var c={language_button_displayed:i,allExcluded:!(!a||!(0===a.length||a.length>=ja.languages.length))};if(a&&a.length&&!a.includes(r))return!1;var l=vt(n);if(s&&!t.startsWith("NOT")?l.MATCH_REGEX(s):l[t](o))return mt[r]=c,!0;var u=n;try{u=decodeURIComponent(n)}catch(e){return}if(u!==n){var f=vt(u);return(s&&!t.startsWith("NOT")?f.MATCH_REGEX(s):f[t](o))?(mt[r]=c,!0):void 0}}))),mt[r]}function wt(){if(ht)return ht;if(!ja.api_key)return B.warn("Weglot must be initialized to use it.",{sendToDatadog:!1}),[];var e=(ja.languages||[]).filter((function(e){var t=yt(e.language_to),n=!t||t.language_button_displayed;return(!1!==e.enabled||ja.private_mode)&&n&&(ja.subdirectory||!ja.is_connect||e.connect_host_destination&&e.connect_host_destination.created_on_aws)})).map((function(e){return e.custom_code||e.language_to})),t=[ja.language_from].concat(e);return ht=t.filter((function(e,n){return e&&t.indexOf(e)==n})),e.length||B.log("No public language available.",{sendToDatadog:!1}),ht}function bt(){var e=Je().getItem(G);if(e&&wt().includes(e))return e}Pe("onCurrentLocationChanged",(function(){mt={}}),!0),Pe("onCurrentLocationChanged",(function(){ht=null}),!0);var kt=function(e){return e&&Je().setItem(G,e)},Et=[{condition:[{type:"TECHNOLOGY_ID",payload:2}],value:[{original:"^/checkouts/(?:[\\w]{32})(/.*)?$",formatted:"/checkouts$1"},{original:"^/account/(orders|activate)/(?:[\\w]{32})$",formatted:"/account/$1/"},{original:"^/orders/(?:[\\w]{32})$",formatted:"/orders/"},{original:"^/wallets/checkouts/(?:.*)$",formatted:"/wallets/checkouts/"},{original:"^/(.+)\\.(json|xml)$",formatted:"/$1"}]}],xt=!1,Ct={},Ot={},St=Je({type:"local"});if(St.getItem(Y))try{Ct=JSON.parse(St.getItem(Y)),Object.keys(Ct).forEach((function(e){Object.keys(Ct[e]).forEach((function(t){if(2===t.length){Ot[t]||(Ot[t]={});var n=Ct[e][t];Ot[t][n]=e}}))})),xt=!0}catch(Fn){xt=!0}function Lt(e){return Ct[e]}function Nt(e,t,n,r){var o,a=Lt(e);a?(a[r]=n,a.createdTime=(new Date).getTime(),a.t=t):Ct[e]=((o={})[r]=n,o.createdTime=(new Date).getTime(),o.t=t,o),Ot[r]||(Ot[r]={}),Ot[r][n]=e,ja.cache&&Se(Tt)()}var Tt=function(){return Ct&&St.setItem(Y,JSON.stringify(Ct))};var At=[],jt=new Set,Rt=!1,Pt=function(e){return jt.has(Dt(e))},It=function(e){return jt.add(Dt(e))};function Dt(e){return ye(e).replace(/<([^>]+)\/>/g,"<$1>").replace(/[\n\r]+/g,"")}function Ut(e,t){void 0===e&&(e=document.documentElement);var n=Be();return C(e).filter((function(e){return(t||Wt)(e)})).map(function(e){return function(t){var n=t.element,r=t.words,o=t.type,a=t.properties,i=t.attrSetter;n.weglot||(n.weglot={content:[]});var s,c,l=n.weglot,u={},f=(s=r,!!Ot[c=e]&&Ot[c][s]);if(f&&(u[e]=r,r=f),a){var d=l.content.find((function(e){return e.html}));d?Object.assign(d,{original:r,properties:a,translations:u}):l.content.push({html:!0,original:r,type:o,properties:a,translations:u})}if(i){var g=l.content.find((function(e){return e.attrSetter===i})),p={attrSetter:i,original:r,type:o,translations:u};g?Object.assign(g,p):l.content.push(p)}return n}}(n))}function Wt(e){var t=e.element,n=e.words;return!t.weglot||!t.weglot.content||!t.weglot.content.some((function(e){var t,r=e.original,o=e.translations;return r===n||(t=o,Object.keys(t).map((function(e){return t[e]}))).includes(ye(n))}))}function Ht(e){for(var t=[],n=0,r=e;n/g,'wg-$1="">');ja.prevent_retranslation&&It(g),f[t]=g}}var p;try{j(n,t)}catch(e){B.error(e)}}function zt(e,t){var n;void 0===t&&(t={cdn:!1,search:!1});var r=e.l_to,o=e.words;e.l_to=_t(r);var a,i=o;if(!ja.visual_editor){if(n=function(e,t){var n=[],r=[],o=[];return e.forEach((function(e){var a=Lt(e.w);a&&a[t]?(n.push(a[t]),r.push(ye(e.w))):o.push(e)})),{cachedWords:{to_words:n,from_words:r},newWords:o}}(o,r),i=n.newWords,(a=n.cachedWords).to_words.length&&!t.search){if(!i.length)return Promise.resolve(a);qt(a,r,t.nodes)}xt&&[].push.apply(i,function(){xt=!1;var e=(new Date).getTime();return Object.keys(Ct).filter((function(t){return Ct[t].createdTime+216e5=402)throw Error(e.statusText);return e}function $t(e){var t=ja.api_key;return fetch("https://api.weglot.com/pageviews?api_key="+t,{method:"POST",body:JSON.stringify({url:e||Ue.url,language:Be(),browser_language:navigator.language})})}function Vt(e,t,n){void 0===n&&(n={});n=Object.assign({},{title:!0,cdn:!1,search:!1},n);var r={l_from:ja.language_from,l_to:t,words:e};return n.title&&(r.title=document.title),zt(r,n)}function Gt(e,t){if("string"!=typeof e||"function"!=typeof t)return!1;var n=Be();return n===ja.language_from?(t(e),!1):(zt({l_from:n,l_to:ja.language_from,words:[{t:2,w:e}]},{cdn:!0,search:!0}).then((function(e){return e.to_words[0].toLowerCase().trim()})).then(t),!0)}var Jt=[];function Xt(e){var t=e.langTo;void 0===t&&(t=Be());var n=e.node;void 0===n&&(n=document.documentElement);var r=ja.proxify_iframes,o=ja.api_key,a=ja.language_from;if(r&&r.length&&Array.isArray(r))for(var i=0,s=pe(n,r.join(","));i2&&(i.children=arguments.length>3?Zt.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return gn(e,i,r,o,null)}function gn(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++en:o};return null==o&&null!=Qt.vnode&&Qt.vnode(a),a}function pn(e){return e.children}function _n(e,t){this.props=e,this.context=t}function hn(e,t){if(null==t)return e.__?hn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&tn.sort(on));yn.__r=0}function wn(e,t,n,r,o,a,i,s,c,l){var u,f,d,g,p,_,h,m=r&&r.__k||cn,v=m.length;for(n.__k=[],u=0;u0?gn(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(d=m[u])||d&&g.key==d.key&&g.type===d.type)m[u]=void 0;else for(f=0;f=0;t--)if((n=e.__k[t])&&(r=xn(n)))return r;return null}function Cn(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ln.test(t)?n:n+"px"}function On(e,t,n,r,o){var a;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Cn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Cn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?Ln:Sn,a):e.removeEventListener(t,a?Ln:Sn,a);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Sn(e){return this.l[e.type+!1](Qt.event?Qt.event(e):e)}function Ln(e){return this.l[e.type+!0](Qt.event?Qt.event(e):e)}function Nn(e,t,n,r,o,a,i,s,c){var l,u,f,d,g,p,_,h,m,v,y,w,b,k,E,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=Qt.__b)&&l(t);try{e:if("function"==typeof x){if(h=t.props,m=(l=x.contextType)&&r[l.__c],v=l?m?m.props.value:l.__:r,n.__c?_=(u=t.__c=n.__c).__=u.__E:("prototype"in x&&x.prototype.render?t.__c=u=new x(h,v):(t.__c=u=new _n(h,v),u.constructor=x,u.render=Pn),m&&m.sub(u),u.props=h,u.state||(u.state={}),u.context=v,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=x.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=un({},u.__s)),un(u.__s,x.getDerivedStateFromProps(h,u.__s))),d=u.props,g=u.state,u.__v=t,f)null==x.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==x.getDerivedStateFromProps&&h!==d&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(h,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(h,u.__s,v)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=h,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),y=0;y=n.__.length&&n.__.push({__V:zn}),n.__[e]}function Xn(e){return Mn=1,function(e,t,n){var r=Jn(Dn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):or(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Un,!Un.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var i=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};Un.u=!0;var a=Un.shouldComponentUpdate,i=Un.componentWillUpdate;Un.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,o(e,t,n),a=r}i&&i.call(this,e,t,n)},Un.shouldComponentUpdate=o}return r.__N||r.__}(or,e)}function Yn(e,t){var n=Jn(Dn++,3);!Qt.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Un.__H.__h.push(n))}function Kn(e){return Mn=5,function(e,t){var n=Jn(Dn++,7);return rr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}((function(){return{current:e}}),[])}function Zn(){for(var e;e=qn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tr),e.__H.__h.forEach(nr),e.__H.__h=[]}catch(t){e.__H.__h=[],Qt.__e(t,e.__v)}}Qt.__b=function(e){Un=null,Fn&&Fn(e)},Qt.__r=function(e){Bn&&Bn(e),Dn=0;var t=(Un=e.__c).__H;t&&(Wn===Un?(t.__h=[],Un.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=zn,e.__N=e.i=void 0}))):(t.__h.forEach(tr),t.__h.forEach(nr),t.__h=[])),Wn=Un},Qt.diffed=function(e){$n&&$n(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==qn.push(t)&&Hn===Qt.requestAnimationFrame||((Hn=Qt.requestAnimationFrame)||er)(Zn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==zn&&(e.__=e.__V),e.i=void 0,e.__V=zn}))),Wn=Un=null},Qt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(tr),e.__h=e.__h.filter((function(e){return!e.__||nr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Qt.__e(n,e.__v)}})),Vn&&Vn(e,t)},Qt.unmount=function(e){Gn&&Gn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{tr(e)}catch(e){t=e}})),n.__H=void 0,t&&Qt.__e(t,n.__v))};var Qn="function"==typeof requestAnimationFrame;function er(e){var t,n=function(){clearTimeout(r),Qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Qn&&(t=requestAnimationFrame(n))}function tr(e){var t=Un,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Un=t}function nr(e){var t=Un;e.__c=e.__(),Un=t}function rr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function or(e,t){return"function"==typeof t?t(e):t}function ar(e,t){for(var n in t)e[n]=t[n];return e}function ir(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function sr(e){this.props=e}(sr.prototype=new _n).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return ir(this.props,e)||ir(this.state,t)};var cr=Qt.__b;Qt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cr&&cr(e)};var lr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var ur=Qt.__e;Qt.__e=function(e,t,n,r){if(e.then)for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ur(e,t,n,r)};var fr=Qt.unmount;function dr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ar({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return dr(e,t,n)}))),e}function gr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return gr(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function pr(){this.__u=0,this.t=null,this.__b=null}function _r(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function hr(){this.u=null,this.o=null}Qt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),fr&&fr(e)},(pr.prototype=new _n).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=_r(r.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=gr(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},pr.prototype.componentWillUnmount=function(){this.t=[]},pr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&dn(pn,null,e.fallback);return o&&(o.__h=null),[dn(pn,null,t.__a?null:e.children),o]};var mr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]n?n:t}function Fr(e,t){return t&&1!==t?Math.round(e*t*100)/100:e}function Br(e,t){return"WordPress"===ja.technology_name&&ja.injectedData&&!ja.is_connect?t(ja.injectedData.switcher_links[e]):rt(e,t)}var $r=13,Vr=27,Gr=38,Jr=40;var Xr=["none","shiny","square","circle","rectangle_mat"];function Yr(e){return e?e.getBoundingClientRect():{bottom:0,height:0,left:0,right:0,top:0,width:0}}function Kr(){var e=Xn("WordPress"===ja.technology_name&&ja.injectedData&&!ja.is_connect?ja.injectedData.current_language:ja.switcher_editor?ja.language_from:window.Weglot.getCurrentLang()),t=e[0],n=e[1];return Yn((function(){ja.is_connect||"WordPress"===ja.technology_name||ja.switcher_editor||window.Weglot.on("languageChanged",(function(e){n(e)}))}),[]),[t,n]}function Zr(e,t){var n=window.innerWidth>0?window.innerWidth:screen.width,r=t||768;return"mobile"===e?n<=r:n>r}function Qr(e,t,n){var r=Xn(!1),o=r[0],a=r[1];return Yn((function(){var r=e.size_scale;if("default"!==n||r&&1!==r){var o,i,s,c,l,u=(o=t(e),i=n,s=ja.button_style&&ja.button_style.custom_css,c="default"===i,l=o.map((function(e){var t=e.selector,n=e.declarations;return[(c?"aside.country-selector":"")+".weglot_switcher."+i+t+" {",Object.keys(n).map((function(e){return"\t"+e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()+": "+n[e]+";"})).join("\n"),"}"].join("\n")})).join("\n\n"),!s||ja.switcher_gallery?l:l+"\n\n"+s);!function(e,t){if(e){var n=document.querySelector("style#weglot-switcher-"+t);if(n)n.textContent=e;else if(document.head){var r=document.createElement("style");r.id="weglot-switcher-"+t,r.textContent=e,document.head.appendChild(r)}}}(u,n),a(!0)}}),[]),o}function eo(e){var t=e.close_outside_click;void 0===t&&(t=!1);var n=e.open_hover;void 0===n&&(n=!1);var r=Kr(),o=r[0],a=r[1],i=Xn(!1),s=i[0],c=i[1],l=function(e){var t=Kn(null);return Yn((function(){if(e)return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)};function n(n){t.current&&!t.current.contains(n.target)&&e()}}),[t]),t}(t&&!n&&E),f=Kn(null),d=wt().filter((function(e){return e!==o})),g=Xn(null),p=g[0],_=g[1],h=Xn(!1),m=h[0],v=h[1],y=Xn(!1),w=y[0],b=y[1];function k(){var e=Yr(l.current),t=e.bottom;void 0===t&&(t=0);var n=e.left;void 0===n&&(n=0),b(t>window.innerHeight/2),v(n>window.innerWidth/2),c(!0)}function E(){c(!1),_(null)}function x(){return s?E():k()}function C(e){if(ja.switcher_editor)return c(!1);var t;a(e),t=e,"WordPress"===ja.technology_name&&ja.injectedData&&!ja.is_connect?Br(t,(function(e){u(window.location.hostname)?window.dispatchEvent(new CustomEvent("veLanguageChangeUrl",{detail:{targetUrl:e}})):window.location.replace(e)})):window.Weglot.switchTo(t),c(!1)}return Yn((function(){p&&f.current.scrollIntoView({block:"center"})}),[p]),{open:s,opensUpward:w,opensLeftward:m,language:o,otherLanguages:d,focusedLanguage:p,switcherContainerRef:l,focusedLanguageRef:f,handleMouseEnter:function(){n&&k()},handleMouseLeave:function(){n&&E()},handleKeyDown:function(e){return e.keyCode===$r?(e.preventDefault(),p&&C(p),x()):e.keyCode===Jr||e.keyCode===Gr?(e.preventDefault(),void function(e){var t=e===Jr?"down":"up",n=d.slice(-1).pop(),r=d[0],o=Yr(l.current).bottom;void 0===o&&(o=0);var a=o>window.innerHeight/2;if(!p||!s){return _("down"===t?r:n),void(!s&&("up"===t&&a||"down"===t&&!a)&&k())}if(!a&&"up"===t&&p===r||a&&"down"===t&&p===n)return void x();var i="up"===t?-1:1,c=d.indexOf(p)+i;if(c===d.length||-1===c)return;_(d[c])}(e.keyCode)):void(e.keyCode===Vr&&s&&(e.preventDefault(),x()))},switchLanguage:C,toggleOpen:x}}var to={rectangle_mat:{width:30,height:20},shiny:{width:30,height:20},circle:{width:24,height:24},square:{width:24,height:24}},no=function(e){var t=e.language,n=e.flagType;void 0===n&&(n="circle");var r=e.size_scale,o=qr(t),a=to[n]||{},i=a.width,s=a.height;if(o)return dn("img",{src:o.indexOf("http")>-1?o:"https://cdn.weglot.com/flags/"+n+"/"+o+".svg",width:Fr(i,r),height:Fr(s,r),className:"wg-flag",role:"none",alt:Hr(t)+" flag"})},ro=function(e){var t=e.styleOpts,n=e.language,r=e.onClick,o=e.legacyFlags,a=e.open;void 0===a&&(a=!1);var i=e.url,s=e.focusedLanguage,c=e.isSelected;void 0===c&&(c=!1);var l=e.focusRef;void 0===l&&(l=null);var u=t.with_name;void 0===u&&(u=!0);var f=t.full_name;void 0===f&&(f=!0);var d=t.with_flags,g=t.size_scale,p=t.flag_type,_=!!s&&n===s,h=f?Hr(n):n.toUpperCase(),m=c?"div":"li",v=Xr.indexOf(p||"rectangle_mat"),y=d?" wg-flags"+(o?" flag-"+v+" legacy":""):"",w=_&&!c?" focus":"",b=c?" wgcurrent":"";return dn(m,Object.assign({},{"data-l":n,onClick:function(e){return function(e,t){e.preventDefault(),r(t)}(e,n)},className:"wg-li "+n+b+y+w},c?{role:"combobox","aria-activedescendant":s?"weglot-language-"+s:"","aria-label":"Language",tabindex:"0","aria-expanded":a,"aria-controls":"weglot-listbox"}:{role:"none",id:"wg-"+n}),dn("a",Object.assign({},c?{target:"_self"}:{role:"option"},{href:i},!u&&{"aria-label":h},_&&!c&&{ref:l},{id:"weglot-language-"+n,tabIndex:-1}),d&&!o&&dn(no,{language:n,flagType:p,size_scale:g}),u&&h))};function oo(e){var t=e.size_scale,n=function(e){return Fr(e,t)};return[{selector:".wg-drop ul",declarations:{top:n(38)+"px",bottom:"auto"}},{selector:".wg-drop.weg-openup ul",declarations:{bottom:n(38)+"px",top:"auto"}},{selector:" a",declarations:{fontSize:n(13)+"px"}},{selector:".wg-drop a img.wg-flag",declarations:{height:n(30)+"px"}},{selector:".wg-drop .wg-li.wgcurrent",declarations:{height:n(38)+"px",display:"flex",alignItems:"center"}},{selector:".wg-drop a",declarations:{height:n(38)+"px"}},{selector:" .wgcurrent:after",declarations:{height:n(38)+"px",backgroundSize:n(9)+"px"}},{selector:".wg-drop .wgcurrent a",declarations:{paddingRight:zr(22,n(40),40)+"px",paddingLeft:zr(5,n(10),10)+"px"}}]}var ao,io,so,co="default",lo=function(e,t){return function(n){var r=n||{},o=r.style;void 0===o&&(o={});var a=r.opts;void 0===a&&(a={});var i=Dr(t),s=i.style,c=i.opts,l=document.createElement("div");return function(e,t,n){var r,o,a;Qt.__&&Qt.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],Nn(t,e=(!r&&n||t).__k=dn(pn,null,[e]),o||sn,sn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?Zt.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),Tn(a,e)}(dn(Pr,{logger:Ur.error,displayError:!1},dn(e,{style:Object.assign({},s,o),opts:Object.assign({},c,a)})),l),l.classList.add("weglot-container"),l}}((function(e){var t=e.style,n=e.opts,r=eo(n),o=r.open,a=r.opensUpward,i=r.opensLeftward,s=r.language,c=r.focusedLanguage,l=r.switcherContainerRef,u=r.focusedLanguageRef,f=r.handleMouseEnter,d=r.handleMouseLeave,g=r.handleKeyDown,p=r.switchLanguage,_=r.toggleOpen,h=function(){var e=wt(),t=Xn(e.reduce((function(e,t){var n;return Object.assign({},e,((n={})[t]="",n))}),{})),n=t[0],r=t[1];return Yn((function(){Promise.all(e.map((function(e){return new Promise((function(t){return Br(e,(function(n){return t({l:e,url:n})}))}))}))).then((function(e){return r(e.reduce((function(e,t){var n,r=t.l,o=t.url;return Object.assign({},e,((n={})[r]=o,n))}),{}))}))}),[]),n}(),m=function(e){var t=e.is_responsive,n=e.display_device,r=e.pixel_cutoff,o=Xn(!t||Zr(n,r)),a=o[0],i=o[1],s=function(){return i(Zr(n,r))};return Yn((function(){if(t)return window.addEventListener("resize",s),function(){window.removeEventListener("resize",s)}}),[t,n,r]),a}(n);Qr(t,oo,co);var v=ja.switcher_editor,y=t.is_dropdown,w=t.invert_flags,b=y||w,k=wt().filter((function(e){return!b||e!==s})),E=/background-position/i.test(ja.button_style.custom_css)&&!ja.languages.some((function(e){return e.custom_flag})),x=function(){for(var e,t,n=arguments,r=0,o="",a=arguments.length;r20}(n)&&t(n)})),a=0,i=o;a1?u:f[0];if(a.includes(d))break;if(o(d),a.push(d),!n)break;for(var g=0,p=f;gDate.now()-1e3})),jo.times.length&&(jo.timeout||jo.times.length>=10))return jo.nodes=jo.nodes.concat(e),void(jo.timeout=setTimeout((function(){return Ro()}),1e3));jo.timeout=null,jo.times.push(Date.now());var n=jo.nodes.concat(e);return jo.nodes=[],Vt(Mt(n),t,{title:!1,cdn:!0,nodes:n}).then((function(e){return qt(e,t,n)}))}}var Po=[{codes:["no"],pattern:/^(nn|nb)(-[a-z]+)?$/i},{codes:["zh"],pattern:/^zh(-hans(-\w{2})?)?(-(cn|sg))?$/i},{codes:["tw","zh-TW"],pattern:/^zh-(hant)?-?(tw|hk|mo)?$/i},{codes:["br"],pattern:/^pt-br$/i},{codes:["fl"],pattern:/^fil$/i}];function Io(e){void 0===e&&(e=wt());for(var t={},n={},r=0,o=e;r=0?n[t[d][y]]:n[t[d].shift()]}}}function Do(){var e=window.location.search.indexOf("no_redirect=true")>-1;if(!(!ja.auto_switch||ja.subdirectory||e||Je({type:"cookie"}).getItem("WG_CHOOSE_ORIGINAL")||Ee()||ja.visual_editor)){var t=Io();return t&&!yt(t)?t:ja.auto_switch_fallback&&!yt(ja.auto_switch_fallback)?ja.auto_switch_fallback:void 0}e&&Uo(Be())}function Uo(e){if(e===ja.language_from){var t=new Date;t.setTime(t.getTime()+2592e6),Je({type:"cookie"}).setItem("WG_CHOOSE_ORIGINAL","1",{expires:t.toUTCString()})}else Je({type:"cookie"}).removeItem("WG_CHOOSE_ORIGINAL")}function Wo(){ve(me(J))}function Ho(){var e=me("wg_progress").firstElementChild,t=e.getAttribute("aria-valuenow"),n=parseInt(t)+(4*Math.random()+2);n<=100&&(e.setAttribute("aria-valuenow",n.toString()),e.style.width=n+"%")}function Mo(e){clearInterval(e),ve(me("wg_progress"))}var qo=function(e,t){return Array.prototype.slice.call(e,t)},zo=null;"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?zo=self:"undefined"!=typeof global?zo=global:window&&(zo=window);var Fo=zo,Bo=zo.document,$o=["load","loadend","loadstart"],Vo=["progress","abort","error","timeout"],Go=function(e){return["returnValue","totalSize","position"].includes(e)},Jo=function(e,t){for(var n in e)if(!Go(n)){var r=e[n];try{t[n]=r}catch(e){}}return t},Xo=function(e,t,n){for(var r=function(e){return function(r){var o={};for(var a in r)if(!Go(a)){var i=r[a];o[a]=i===t?n:i}return n.dispatchEvent(e,o)}},o=0,a=Array.from(e);o=0||(o=void 0===o?t[e].length:o,t[e].splice(o,0,r))},removeEventListener:function(e,r){if(void 0!==e){void 0===r&&(t[e]=[]);var o=n(e).indexOf(r);-1!==o&&n(e).splice(o,1)}else t={}},dispatchEvent:function(){var t=qo(arguments),o=t.shift();e||(t[0]=Jo(t[0],Yo(o)),Object.defineProperty(t[0],"target",{writable:!1,value:this}));var a=r["on"+o];a&&a.apply(r,t);for(var i=n(o).concat(n("*")),s=0;si&&i<4;)d.readyState=++i,1===i&&d.dispatchEvent("loadstart",{}),2===i&&c(),4===i&&(c(),"text"in a&&(d.responseText=a.text),"xml"in a&&(d.responseXML=a.xml),"data"in a&&(d.response=a.data),"finalUrl"in a&&(d.responseURL=a.finalUrl)),d.dispatchEvent("readystatechange",{}),4===i&&(!1===t.async?l():setTimeout(l,0))},f=function(e){if(4===e){var n=Qo.listeners("after"),r=function(){if(n.length>0){var e=n.shift();2===e.length?(e(t,a),r()):3===e.length&&t.async?e(t,a,r):r()}else u(4)};r()}else u(e)},d=Ko();t.xhr=d,e.onreadystatechange=function(t){try{2===e.readyState&&s()}catch(e){}4===e.readyState&&(o=!1,s(),function(){if(e.responseType&&"text"!==e.responseType)"document"===e.responseType?(a.xml=e.responseXML,a.data=e.responseXML):a.data=e.response;else{a.text=e.responseText,a.data=e.responseText;try{a.xml=e.responseXML}catch(e){}}"responseURL"in e&&(a.finalUrl=e.responseURL)}()),f(e.readyState)};var g=function(){r=!0};d.addEventListener("error",g),d.addEventListener("timeout",g),d.addEventListener("abort",g),d.addEventListener("progress",(function(t){i<3?f(3):e.readyState<=3&&d.dispatchEvent("readystatechange",{})})),"withCredentials"in e&&(d.withCredentials=!1),d.status=0;for(var p=0,_=Array.from(Vo.concat($o));p<_.length;p+=1){var h=_[p];d["on"+h]=null}if(d.open=function(e,n,s,c,l){i=0,r=!1,o=!1,t.headers={},t.headerNames={},t.status=0,t.method=e,t.url=n,t.async=!1!==s,t.user=c,t.pass=l,(a={}).headers={},f(1)},d.send=function(n){for(var r,i,s=0,c=["type","timeout","withCredentials"];s0)for(var r=function(){var e=a[o],t=e.mutations,n=e.documentElement,r=function(){var e=t.splice(0,100);e.length>0&&(Lo(e,n),setTimeout(r,0))};r()},o=0,a=Co;o2)throw"invalid hook";return ua.on("before",e,t)},ua.after=function(e,t){if(e.length<2||e.length>3)throw"invalid hook";return ua.on("after",e,t)},ua.enable=function(){ra.patch(),la.patch()},ua.disable=function(){ra.unpatch(),la.unpatch()},ua.XMLHttpRequest=ra.Native,ua.fetch=la.Native,ua.headers=Zo,ua.enable(),ua.disable(),Pe("initialized",(function(){ja.translate_search&&!ja.switcher_editor&&function(){var e=ja.search_forms,t=ja.search_parameter;if(t){for(var n=0,r=pe(document,e);noption:not([value])",".ui-autocomplete",".shopify-payment-button__button","#shopify-section-static-recently-viewed-products","#recently-viewed-products","#shopify-section-product-recommendations",".action_button.add_to_cart"]),t=/^\/(\d+\/checkouts|checkouts\/[a-z]{1,2})\/(?:\w{2}-)?\w{32}/.test(document.location.pathname),n="loox.io"===document.location.hostname&&be();return Object.assign({},{cart_attributes:["lang","Invoice Language"],excluded_blocks:["input[type='radio']",".money",".price",".product__prices","#admin-bar-iframe",".notranslate",".skiptranslate","#isp_refine_nevigation","#isp_header_subtitle",".isp_sorting_and_result_view_wrapper","#isp_results_did_you_mean > span",".isp_facet_show_hide_values","#isp_main_search_box",".snize-filter-variant-count",".snize-search-results-header a",".snize-search-results-header b",".hc-author__text",".hc-avatar__initials",".hc-rating-chart__count",".hc-rating-chart__percentage-value",".yotpo-review-date",".yotpo-user-name",".yotpo-user-letter",".yotpo .avg-score",".yotpo .sr-only",".yotpo-mandatory-mark"].map((function(e){return{value:e}})),search_forms:"form[action='/pages/search-results'],form[action='/search']",search_parameter:"q"},n&&ja.is_connect&&{dynamicPushState:!0},{dynamics:e.map((function(e){return{value:e}})),extra_definitions:[{type:1,selector:".snize-color-swatch",attribute:"data-sntooltip"},{type:1,selector:"button[data-pf-type=ProductATC]",attribute:"data-soldout"},{type:1,selector:"button[data-pf-type=ProductATC]",attribute:"data-adding"},{type:1,selector:"button[data-pf-type=ProductATC]",attribute:"data-added"}],shopifyCheckout:t})},wa[Q]=function(){return Te("onPageLanguageSet",(function(e){!function(e){for(var t=0,n=document.querySelectorAll('[href*="/checkout.php"],[href*="/cart.php"]');t p"));var n=window.location.host.endsWith("squarespace.com");if(Pe("initialized",(function(){try{var e=window.ExtensionScriptsSDK;if(!e)return;e["1.0"].page.events.dispatchScriptLoadEvent("Weglot")}catch(e){}})),!ja.is_connect)try{document.querySelectorAll(".animation-segment-wrapper").forEach((function(e){e.parentNode.dataset.dynamicStrings=e.textContent})),document.querySelectorAll(".animation-segment-parent-hidden").forEach((function(e){e.dataset.dynamicStrings=""})),t.push(".animation-segment-wrapper"),t.push(".animation-segment-parent-hidden > *")}catch(e){}return{force_translation:e.join(","),dynamics:["#sqs-cart-container","#checkout",".sqs-widgets-confirmation",".video-player",".jdgm-widget",".calendar-block",".opentable-v2-block",".blog-item-comments"].map((function(e){return{value:e}})).concat(ja.is_connect?[{value:".sqs-add-to-cart-button.cart-adding"},{value:".sqs-add-to-cart-button.cart-added"}]:[{value:"[data-dynamic-strings]"},{value:".sqs-add-to-cart-button"},{value:".variant-select-wrapper"}]),excluded_blocks:t.map((function(e){return{value:e}})).concat(ja.is_connect?[{value:".comment-body"}]:[]),forceDisableConnect:n,merged_selectors_remove:[{value:".plyr__menu__container"},{value:".product-price .original-price"},{value:".comment-btn-wrapper"}],extra_definitions:[{type:1,selector:".variant-select-wrapper",attribute:"data-text"}]}},wa[ne]=function(){var e={dynamics:document.documentElement.getAttribute("data-wg-translated")?[]:[{value:"#SITE_CONTAINER"}],dynamicPushState:!0};if(window.wixBiSession&&"bolt"!==window.wixBiSession.renderType&&!ja.visual_editor&&(document.addEventListener("DOMContentLoaded",(function(){new MutationObserver((function(e){for(var t=0;t0&&t!==n?t+=","+n:t=n:t))})),n="https://cdn.weglot.com/weglot.min.css?v=4",(r=document.createElement("link")).rel="stylesheet",r.type="text/css",r.href=n,document.head.appendChild(r),Sa.button_style&&Sa.button_style.custom_css&&ke(Sa.button_style.custom_css,"weglot-custom-style"),Sa.switchers&&0!==Sa.switchers.length?Sa.switchers=Sa.switchers.map((function(e){var t=e.button_style,n=Oa(e,["button_style"]);return Object.assign({},{style:n.style||t},n)})):Sa.switchers=[{style:Sa.button_style,location:{},default:!0}],Sa.cache&&Sa.visual_editor&&(Sa.cache=!1),Sa.api_key.length<36&&(Sa.translation_engine=1),Sa.excluded_blocks_remove&&(Sa.excluded_blocks=Sa.excluded_blocks.filter((function(e){return!Sa.excluded_blocks_remove.includes(e.value)}))),Sa.dangerously_force_dynamic&&(Sa.dynamics=Sa.dynamics.concat(Sa.dangerously_force_dynamic.split(",").map((function(e){return{value:e.trim()}})))),Sa.excluded_blocks=Sa.excluded_blocks.filter((function(e){return xe(e.value)})),Sa.dynamics=Sa.dynamics.filter((function(e){return xe(e.value)})),Sa.dynamics_remove&&(Sa.dynamics=Sa.dynamics.filter((function(e){return!Sa.dynamics_remove.includes(e.value)}))),Sa.is_tld=!1,a.forceDisableConnect&&(Sa.is_connect=!1),Sa.is_connect&&!Sa.previewHash){var s=Sa.host.split("www.").pop();Sa.is_tld=Sa.languages.some((function(e){if(e.connect_host_destination&&e.connect_host_destination.host)return-1===e.connect_host_destination.host.indexOf(s)}))}return Sa.whitelist&&!Array.isArray(Sa.whitelist)&&(Sa.whitelist=[{value:String(Sa.whitelist)}]),Sa}var ja=Sa;var Ra,Pa,Ia,Da={"Node.prototype.contains":document.contains,"Element.prototype.cloneNode":"document"in self&&"cloneNode"in document.documentElement,"location.origin":"location"in self&&"origin"in self.location,MutationObserver:"MutationObserver"in self,Promise:"Promise"in self&&"resolve"in Promise,"Element.prototype.matches":"document"in self&&"matches"in document.documentElement,"Element.prototype.closest":"document"in self&&"closest"in document.documentElement,"Element.prototype.classList":"document"in self&&"classList"in document.documentElement&&function(){var e=document.createElement("div");if(!(e.classList&&e.classList.add&&e.classList.remove&&e.classList.contains&&e.classList.toggle))return!1;var t=!0;e.classList.add("add1","add2"),t=t&&e.className.indexOf("add1")>=0&&e.className.indexOf("add2")>=0,e.className="remove1 remove2 remove3",e.classList.remove("remove1","remove3"),t=t&&-1===e.className.indexOf("remove1")&&e.className.indexOf("remove2")>=0&&-1===e.className.indexOf("remove3");try{e.remove()}catch(t){e=null}return t}(),"String.prototype.includes":"includes"in String.prototype,fetch:"fetch"in self,"Array.prototype.find":"find"in Array.prototype,"Array.prototype.findIndex":"findIndex"in Array.prototype,"Object.assign":"assign"in Object,"Array.prototype.includes":"includes"in Array.prototype,URL:function(e){try{var t=new e.URL("http://weglot.com");if("href"in t&&"searchParams"in t){var n=new URL("http://weglot.com");if(n.search="a=1&b=2","http://weglot.com/?a=1&b=2"===n.href&&(n.search="","http://weglot.com/"===n.href)){var r=new e.URLSearchParams("a=1"),o=new e.URLSearchParams(r);if("a=1"===String(o))return!0}}return!1}catch(e){return!1}}(self)},Ua=!1;function Wa(){Ua=!0,Ie("polyfillReady")}function Ha(){return Ua}!function(e){window.Prototype&&(delete Object.prototype.toJSON,delete Array.prototype.toJSON);var t=Object.keys(Da).filter((function(e){return!Da[e]}));if(t.length){!function(e,t,n){var r=!1;function o(){r||(r=!0,setTimeout((function(){return t(n)}),20))}var a=document.getElementsByTagName("head")[0]||document.documentElement,i=document.createElement("script");i.type="text/javascript",i.src=e,i.addEventListener?(i.addEventListener("load",o,!1),i.addEventListener("error",o,!1)):i.readyState&&(i.onreadystatechange=o),a.insertBefore(i,a.firstChild)}("https://cdn.polyfill.io/v2/polyfill.min.js?callback=Weglot.polyReady&features="+t.join(","),(function(){}))}else e()}(Wa);var Ma=!1;function qa(){window.addEventListener("message",Ba,!1);var e=document.createElement("meta");e.name="google",e.content="notranslate",document.head&&document.head.appendChild(e);document.documentElement&&-1===["cms.e.jimdo.com","proxy.weglot.com"].indexOf(window.location.host)&&document.documentElement.setAttribute("translate","no");var t=document.head.querySelector("link[href*=weglot_shopify]");t&&document.head.removeChild(t)}function za(){if(ja.api_key){Pe("initialized",(function(){ja.page_views_enabled&&(ja.is_connect?rt(ja.language_from,(function(e){return $t(e)})):$t())}),!0);try{q(document,ja)}catch(e){B.error(e)}if(Ae("onWeglotSetup"),!Va.initialized||window.Turbolinks){Pa=function(){var e=wt();if(ja.is_connect){var t=document.documentElement.dataset.wgTranslated||(ja.subdirectory?Fe():ze());if(t!==ja.language_from)return t;if(ja.technology_name===Z){if(F.get("wg_checkout_redirect"))return ja.language_from;var n=F.get("wg_checkout_language");if(n&&!ja.shopifyCheckout&&!be()&&e.includes(n))return F.erase({name:"wg_checkout_language",options:ja}),n}var r=Do();return t===ja.language_from&&r&&e.includes(r)?r:ja.language_from}var o=we("lang");if(o&&e.includes(o))return Ma=!0,o;var a=bt();if(a&&e.includes(a))return a;var i=Do();if(i&&e.includes(i))return Ma=!0,i;return ja.language_from}(),Be();var e=yt();if((Ia=Pa&&Pa!==ja.language_from&&document.documentElement.dataset.wgTranslated!==Pa&&!e&&!document.documentElement.dataset.wgExcludedUrl&&!ja.switcher_editor)&&ja.wait_transition?ke("@keyframes wg{from{color:transparent;}to{color:transparent;}}body *{color:transparent!important;animation:1s linear infinite wg!important;}",J):Wo(),ja.delayStart)return Pe("start",(function(){return Fa()}),!0);Oe(Fa)}}}function Fa(){if(!document.querySelector("#has-script-tags")||document.querySelector("#has-script-tags")&&(document.head.innerHTML.indexOf("weglot_script_tag")>0||document.documentElement.innerHTML.indexOf("weglot_script_tag")>0))try{ga(Pa,Ma,Ia)}catch(e){Wo(),B.error(e,{consoleOverride:"There has been an error initializing, "+e.stack})}else Wo();Ra=!1,Va.initialized=!0}function Ba(e){if(e.data)try{var t=JSON.parse(e.data);switch(t.message){case"Weglot.detect":e.source.postMessage(JSON.stringify({message:"Weglot.ready",data:{initialized:Va.initialized,options:ja}}),e.origin);break;case"Weglot.switchTo":pa(t.language)}}catch(e){}}function $a(e){try{for(var t=null,n=0,r=[/cdn(?:-staging)?\.weglot\.(?:com|us)\/weglot\.min\.js\?([^#]+)/,/cdn(?:-staging)?\.weglot\.(?:com|us)\/weglot-switcher-editor\.js\?([^#]+)/,/cdn(?:-staging)?\.weglot\.(?:com|us)\/weglot_squarespace-[0-9]+\.min\.js\?([^#]+)/];n=36?2:1,function(e){try{var t=["api_key","originalLanguage","destinationLanguages"];if(!e||t.some((function(t){return!e[t]})))throw{wgErrMsg:"You have to provide at least: "+t.join(", ")};Aa(Ca(e))}catch(e){throw new Error(e&&e.wgErrMsg||"Error while reading Weglot options")}}(e),za()}))})))},initialize:function(e){qa(),Ra||(Ra=!0,Re(Ha(),"polyfillReady",(function(){La(e).then((function(){return za()}))})))},on:function(e,t){return Pe(e,t,!1)},off:function(e,t){var n,r=!1,o=function(t){return je[t].name===e&&!je[t].internal};n="function"==typeof t?function(e){return o(e)&&je[e].callback===t}:function(e){return o(e)};for(var a=je.length-1;a>=0;a--)n(a)&&(je.splice(a,1),r=!0);return r},getStoredLang:bt,getLanguageName:Hr,getCurrentLang:Be,polyReady:Wa,getCache:function(){return Ct},addNodes:function(e){var t=Ut(e);return Ht(t),Ro(t)},search:Gt,translate:function(e,t){void 0===e&&(e={});var n=e.words,r=e.languageTo;if(void 0===r&&(r=Be()),!Array.isArray(n)||"object"!=typeof n[0]){var o="Weglot.translate: 1st arg must be an array of objects";return B.error(o,{sendToDatadog:!1}),t&&t(null,o),Promise.reject()}return r===ja.language_from?(t&&t(n.map((function(e){return e.w}))),Promise.resolve(n.map((function(e){return e.w})))):new Promise((function(e,o){Vt(n,r,{title:!1,cdn:!0}).then((function(n){if(!n||!n.to_words)throw n;t&&t(n.to_words),e(n.to_words)})).catch((function(e){o(e),t&&t(null,e)}))}))},getBestAvailableLanguage:Io,getAvailableLanguages:wt};return Re(Ha(),"polyfillReady",(function(){To(document);for(var e=0,t=[document.currentScript].concat(Array.from(document.scripts));e